Traversal Using Relays around NAT

Traversal Using Relays around NAT (TURN) is a protocol that assists in traversal of network address translators (NAT) or firewalls for multimedia applications. It may be used with the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). It is most useful for clients on networks masqueraded by symmetric NAT devices. TURN does not aid in running servers on well known ports in the private network through a NAT; it supports the connection of a user behind a NAT to only a single peer, as in telephony, for example.

TURN is specified by RFC 8656. The TURN URI scheme is documented in RFC 7065.

Introduction

Network address translation (NAT), a mechanism that serves as a measure to mitigate the issue of IPv4 address exhaustion during the transition to IPv6, is accompanied by various limitations. The most troublesome among these limitations is the fact that NAT breaks many existing IP applications, and makes it more difficult to deploy new ones.[1] Guidelines have been developed that describe how to build "NAT friendly" protocols, but many protocols simply cannot be constructed according to those guidelines. Examples of such protocols include multimedia applications and file sharing.

Session Traversal Utilities for NAT (STUN) provides one way for an application to traverse a NAT. STUN allows a client to obtain a transport address (an IP address and port) which may be useful for receiving packets from a peer. However, addresses obtained by STUN may not be usable by all peers. Those addresses work depending on the topological conditions of the network. Therefore, STUN by itself cannot provide a complete solution for NAT traversal.

A complete solution requires a means by which a client can obtain a transport address from which it can receive media from any peer which can send packets to the public Internet. This can only be accomplished by relaying data through a server that resides on the public Internet. Traversal Using Relays around NAT (TURN) is a protocol that allows a client to obtain IP addresses and ports from such a relay.

Although TURN almost always provides connectivity to a client, it is resource intensive for the provider of the TURN server. It is therefore desirable to use TURN as a last resort only, preferring other mechanisms (such as STUN or direct connectivity) when possible. To accomplish that, the Interactive Connectivity Establishment (ICE) methodology can be used to discover the optimal means of connectivity.

Protocol

The process begins when a client computer wants to contact a peer computer for a data transaction, but cannot do so due to both client and peer being behind respective NATs. If STUN is not an option because one of the NATs is a symmetric NAT (a type of NAT known to be non-STUN compatible), TURN must be used.

First, the client contacts a TURN server with an "Allocate" request. The Allocate request asks the TURN server to allocate some of its resources for the client so that it may contact a peer. If allocation is possible, the server allocates an address for the client to use as a relay, and sends the client an "Allocation Successful" response, which contains an "allocated relayed transport address" located at the TURN server.

Second, the client sends in a CreatePermissions request to the TURN server to create a permissions check system for peer-server communications. In other words, when a peer is finally contacted and sends information back to the TURN server to be relayed to client, the TURN server uses the permissions to verify that the peer-to-TURN server communication is valid.

After permissions have been created, the client has two choices for sending the actual data, (1) it can use the Send mechanism, or (2) it can reserve a channel using the ChannelBind request. The Send mechanism is more straightforward, but contains a larger header, 36 bytes, that can substantially increase the bandwidth in a TURN relayed conversation. By contrast, the ChannelBind method is lighter: the header is only 4 bytes, but it requires a channel to be reserved which needs to be periodically refreshed, among other considerations.

Using either method, Send or channel binding, the TURN server receives the data from the client and relays it to the peer using UDP datagrams, which contain as their Source Address the "Allocated Relayed Transport Address". The peer receives the data and responds, again using a UDP datagram as the transport protocol, sending the UDP datagram to the relay address at the TURN server.

The TURN server receives the peer UDP datagram, checks the permissions and if they are valid, forwards it to the client.

This process gets around even symmetric NATs because both the client and peer can at least talk to the TURN server, which has allocated a relay IP address for communication.

While TURN is more robust than STUN in that it assists in traversal of more types of NATs, a TURN communication relays the entire communication through the server requiring far more server bandwidth than the STUN protocol, which typically only resolves the public facing IP address and relays the information to client and peer for them to use in direct communication. For this reason, the ICE protocol mandates STUN usage as a first resort, and TURN usage only when dealing with symmetric NATs or other situations where STUN cannot be used.

See also

References

  1. ^ Matthews, Philip; Rosenberg, Jonathan; Mahy, Rohan (April 2010). Traversal Using Relays around NAT (TURN): Relay Extensions to Session Traversal Utilities for NAT (STUN) (Report). Internet Engineering Task Force.

Read other articles:

Untuk provinsi bernama sama yang terletak di kepulauan ini, lihat Maluku. Untuk kegunaan lain, lihat Maluku (disambiguasi). Kepulauan MalukuGeografiLokasiAsia Tenggara (sebagian besar)Oseania (hanya di Kabupaten Kepulauan Aru)Koordinat3°9′S 129°23′E / 3.150°S 129.383°E / -3.150; 129.383Jumlah pulau~ 1'000Pulau besarHalmahera, Seram, Buru, Ambon, Ternate, Tidore, Kepulauan Kei, Kepulauan TanimbarLuas74'505 km2Titik tertinggiBinaiya (3'027 m)P...

 

George EnescuNama dalam bahasa asli(ro) George Enescu BiografiKelahiran19 Agustus 1881 George Enescu (en) Kematian4 Mei 1955 (73 tahun)Arondisemen ke-8 Paris Tempat pemakamanPemakaman Père-Lachaise, 68 48°51′44″N 2°23′31″E / 48.862169°N 2.391839°E / 48.862169; 2.391839Grave of Enesco (en) Data pribadiPendidikanConservatoire de Paris University of Music and Performing Arts Vienna (en) KegiatanPekerjaanKomponis, pemain biola, pianis, dirigen, music teacher (...

 

Maliki Heru Santosa Inspektur Jenderal Kementerian Dalam NegeriMasa jabatan17 September 2010 – 15 Juli 2015 PendahuluSeman WidjojoPenggantiTarmizi Abdul Karim Informasi pribadiLahirJakarta, IndonesiaAlma materSekolah Tinggi Akuntansi NegaraSaint Mary's University CanadaInstitut Pertanian BogorSunting kotak info • L • B Maliki Heru Santosa, [1] adalah seorang birokrat yang pernah menjabat sebagai Inspektur Jenderal Kementerian Dalam Negeri Indonesia. Maliki dil...

Ferrari World Abu Dhabi Stato Emirati Arabi Uniti LocalitàIsola Yas, Abu Dhabi Coordinate24°29′01.18″N 54°36′25.34″E / 24.48366°N 54.60704°E24.48366; 54.60704Coordinate: 24°29′01.18″N 54°36′25.34″E / 24.48366°N 54.60704°E24.48366; 54.60704 TemiFerrari ProprietarioAldar PropertiesFarah Leisure Parks Management L.L.C. Inaugurazione4 novembre 2010 Estensione86.000 m2 Sito webferrariworldabudhabi.com Modifica dati su Wikidata · M...

 

Penghakiman Terakhir, sebuah lukisan karya Jacob de Backer, yang dibuat sekitar tahun 1580: Orang-orang percaya masuk Surga sementara para pendosa dan orang-orang yang menyangkal iman jatuh ke Neraka. Eksklusivisme agama atau eksklusivitas adalah doktrin atau kepercayaan bahwa hanya satu agama atau sistem kepercayaan tertentu yang benar.[1] Eksklusivisme Kristen Artikel utama: One true church Eksklusivisme Islam Informasi lebih lanjut: Islam dan agama lain, Pembagian dunia dalam Islam...

 

Questa voce o sezione sugli argomenti stati scomparsi e Germania non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti dei progetti di riferimento 1, 2. Distretto di Francoforte sull'OderInformazioni generaliNome ufficialeBezirk Frankfurt (Oder) CapoluogoFrancoforte sull'Oder 86.131 abitanti (1990) Dipendente da Germania Est Evoluzion...

Cave in France Grotte de LombrivesEntrance to LombrivesLocation in FranceLocationOrnolac-Ussat-les-Bains, near Tarascon, Ariège, FranceCoordinates42°49′24″N 01°36′59″E / 42.82333°N 1.61639°E / 42.82333; 1.61639WebsiteGrotte de Lombrives Grotte de Lombrives or Lombrives Cave is a large natural cavern located in Ornolac-Ussat-les-Bains, at the eastern edge of the Pyrénées Ariégeoises Natural Regional Park, in the Ariège department of Occitanie, in southw...

 

American Founding Father and politician (1730-1779) For the ships, see USS Joseph Hewes. Joseph HewesBornJuly 9, 1730Princeton, New Jersey, USDiedNovember 10, 1779(1779-11-10) (aged 49)Resting placeChrist Church Burial Ground, Philadelphia, PennsylvaniaKnown forsigner of the United States Declaration of IndependenceSignature Joseph Hewes (July 9, 1730[1][a]– November 10, 1779[3][4]) was an American Founding Father and a signer of the Continental Ass...

 

1985 novel by Margaret Atwood Not to be confused with The Handmaiden. Marthas redirects here. For other uses, see Martha (disambiguation). For the television series, see The Handmaid's Tale (TV series). For the film, see The Handmaid's Tale (film). For the opera, see The Handmaid's Tale (opera). The Handmaid's Tale Cover of the first editionAuthorMargaret AtwoodCover artistTad Aronowicz,[1] design; Gail Geltner, collage (first edition, hardback)CountryCanadaLanguageEnglishGenreDy...

Kebun Raya Kuningan Taman tematik Kebun Raya Kuningan Lokasi di Indonesia Informasi Lokasi Padabeunghar, Pasawahan, Kuningan Negara  Indonesia Koordinat 6°48′30″S 108°23′56″E / 6.80828°S 108.399017°E / -6.80828; 108.399017Koordinat: 6°48′30″S 108°23′56″E / 6.80828°S 108.399017°E / -6.80828; 108.399017 Awal pembangunan 2013 Penyelesaian 2015 Pembukaan 2015 Jenis objek wisata kebun raya Luas 172 ha[1] Situs we...

 

Questa voce o sezione sugli argomenti stadi di calcio del Regno Unito e stadi di rugby non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Memorial StadiumIl Mem Informazioni generaliStato Regno Unito    Inghilterra UbicazioneBristol Inizio lavori24 settembre 1921 Inaugurazione1921 ProprietarioMemorial Stadium Company Informazioni te...

 

Сельское поселение России (МО 2-го уровня)Новотитаровское сельское поселение Флаг[d] Герб 45°14′09″ с. ш. 38°58′16″ в. д.HGЯO Страна  Россия Субъект РФ Краснодарский край Район Динской Включает 4 населённых пункта Адм. центр Новотитаровская Глава сельского пос�...

Xbox Oneconsole Sopra: Xbox One + Kinect ProduttoreMicrosoft TipoConsole da tavolo GenerazioneOttava Presentazionealla stampa21 maggio 2013[1] In vendita 22 novembre 2013[2] 22 novembre 2013[2] 4 settembre 2014[3] 29 settembre 2014[4] Dismissioneottobre-dicembre 2020 Unità vendute56,37 milioni (20 Agosto 2021)[5] Gioco più diffusoGrand Theft Auto V 8,31 milioni (15 dicembre 2018)[6] PredecessoreXbox 360 SuccessoreXbox Series X e Series...

 

Airline of the United States Kenmore Air IATA ICAO Callsign M5 KEN KENMORE Founded1946AOC #United States: GJRA163A[1]Canada: 949[2]Hubs Kenmore Lake Washington Seattle Lake Union Boeing Field Paine Field Fleet size29DestinationsSan Juan Islands, Victoria BC, Nanaimo and Desolation Sound BC (seasonal)Parent companySeattle Hospitality GroupHeadquartersKenmore Air HarborKenmore, Washington, United StatesKey peopleDavid Gudgel, PresidentWebsitewww.kenmoreair.com Kenmore Air H...

 

Imperial estate of the Holy Roman Empire in present-day northern Italy (1027-1803) For the diocese, see Roman Catholic Diocese of Brixen. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Prince-Bishopric of Brixen – news · newspapers · books · scholar · JSTOR (November 2015) (Learn how and when to remove this...

Area of central eastern Tunisia This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Sahel, Tunisia – news · newspapers · books · scholar · JSTOR (August 2015) (Learn how and when to remove this message) Ribat of Monastir Amphitheatre of El Jem The Tunisian Sahel (Arabic: الساحل) or more precisely the Centr...

 

Canal in Gloucestershire in the south-west of England Thames and Severn CanalThe canal at BrimscombeSpecificationsLength28.7 miles (46.2 km)Locks44StatusUnder restorationNavigation authorityStroud Valleys Canal CompanyHistoryOriginal ownerThames and Severn Canal CompanyPrincipal engineerJosiah ClowesDate of act1783Date completed1789Date closed1933Date restored2018GeographyStart pointLechlade, River ThamesEnd pointWallbridge, near StroudConnects toStroudwater Navigation, North Wilts Canal...

 

Horse racing in the United States dates back to 1665, which saw the establishment of the Newmarket course in Salisbury, New York, a section of what is now known as the Hempstead Plains of Long Island, New York.[1] This first racing meet in North America was supervised by New York's colonial governor, Richard Nicolls. The area is now occupied by the present Nassau County, New York, region of Greater Westbury and East Garden City. Horse racing remains a popular sport throughout the Uni...

Farming methodology Agriculture History Prehistory Neolithic Revolution Agriculture in Mesoamerica Austronesian expansion Ancient history Ancient Egypt Ancient Greece Ancient Rome Post-classical Agriculture in the Middle Ages Arab Agricultural Revolution Columbian exchange Modern history British Agricultural Revolution Green Revolution Organic Monoculture On land Agrivoltaic Animal husbandry cattle pigs poultry sheep Dairy Dryland Extensive Fertilizer Free-range Grazing Convertible husbandry ...

 

Gaudí Centre UbicaciónPaís España EspañaComunidad Cataluña CataluñaProvincia Tarragona TarragonaCoordenadas 41°09′19″N 1°06′30″E / 41.15523056, 1.10828611Tipo y coleccionesTipo Centro cultural y OrganizaciónHistoria y gestiónCreación Mayo de 2007Sitio web oficial[editar datos en Wikidata] El Gaudí Centre es un centro cultural de Reus (Tarragona) España, situado en la Plaza Mercadal (la plaza del Ayuntamiento), donde se pueden enco...