UDP-Lite

UDP-Lite
Communication protocol
PurposeMultimedia
Introduction ()
Based onUDP
RFC(s)3828, 4019, 5097

UDP-Lite (Lightweight User Datagram Protocol) is a connectionless protocol that allows a potentially damaged data payload to be delivered to an application rather than being discarded by the receiving station. This is useful as it allows decisions about the integrity of the data to be made in the application layer (application or the codec), where the significance of the bits is understood. UDP-Lite is described in RFC 3828.

Protocol

UDP-Lite is based on User Datagram Protocol (UDP), but unlike UDP, where either all or none of a packet is protected by a checksum, UDP-Lite allows for partial checksums that only covers part of a datagram (an arbitrary count of octets at the beginning of the packet), and will therefore deliver packets that have been partially corrupted. It is designed for multimedia protocols, such as Voice over IP (VoIP) or streamed video, in which receiving a packet with a damaged payload is better than receiving no packet at all. For conventional UDP and Transmission Control Protocol (TCP), a single bit in error will cause a "bad" checksum, meaning that the whole packet must be discarded: in this way, bit errors are "promoted" to entire packet errors even where the damage to the data is trivial. For computing the checksum UDP-Lite uses the same checksum algorithm used for UDP (and TCP).[1]

Modern multimedia codecs, like G.718 and Adaptive Multi-Rate (AMR) for audio and H.264 and MPEG-4 for video, have resilience features already built into the syntax and structure of the stream. This allows the codec to (a) detect errors in the stream and (b) potentially correct, or at least conceal, the error during playback. These codecs are ideal partners for UDP-Lite, since they are designed to work with a damaged data stream, and it is better for these codecs to receive perhaps 200 bytes where a few bits are damaged rather than have to conceal the loss of an entire packet that was discarded due to a bad checksum. The application layer understands the significance of the data, where the transport only sees UDP packets. This means that error protection can be added if necessary at a higher layer, for example with a forward error correction scheme. The application is the best place to decide which parts of the stream are most sensitive to error and protect them accordingly, rather than have a single "brute force" checksum that covers everything equally. An example of this can be seen in research by Hammer et al. where UDP-Lite is coupled with the AMR codec to give improved speech quality in lossy network conditions.[2]

Since most modern link layers protect the carried data with a strong cyclic redundancy check (CRC) and will discard damaged frames, making effective use of UDP Lite requires the link layer to be aware of the network layer data being carried. Since no current IP stacks implement such cross-layer interactions, making effective use of UDP-Lite currently requires specially modified device drivers.[citation needed]

The IP protocol identifier is 136. UDP-Lite uses the same set of port numbers assigned by the Internet Assigned Numbers Authority (IANA) for use by UDP.

Support for UDP-Lite was added in the Linux kernel version 2.6.20.

Support for UDP-Lite was added in the FreeBSD kernel from r264212.[3] The changeset was also MFC'ed back to stable/10[4] and became available in FreeBSD 10.1-RELEASE.[5]

The BSD socket API is extended to support UDP-Lite by the third parameter of the socket system call: Set it to IPPROTO_UDPLITE to request a UDP-Lite socket:[6]

int fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);

One can also easily set what part of the packet will be covered by the checksum (starting from the beginning including header):

int val = 20; /* 8 octets of header + 12 octets of the application protocol. */
(void)setsockopt(fd, SOL_UDPLITE, UDPLITE_SEND_CSCOV, &val, sizeof val);

If a packet smaller than 12 octets is sent in such a setup, the checksum will cover the whole packet.

On the receiving side a socket will by default drop all packets which are not covered completely (UDP emulation.) To permit for smaller coverage one can use:

int val = 20; /* 8 octets of header + 12 octets of the application protocol. */
(void)setsockopt(fd, SOL_UDPLITE, UDPLITE_RECV_CSCOV, &val, sizeof val);

This will allow for packets where at minimum 12 octets of user data are checksummed. Any packet with a smaller coverage will be silently dropped as bad. If a packet has a coverage length of at least 20 octets (including header) and its checksum is correct, it will be delivered to application (whole or part of the payload can still be corrupted, because it could be not covered by checksum or because the checksum was correct incidentally, but the latter is very unlikely.) If the checksum is incorrect the packet will be dropped, because it is actually impossible to know if the error was inside the payload data or in the UDP-Lite header, so the packet could actually be destined for a different program.

The smallest possible coverage is 8 octets. Headers need to be included in checksum. Packets with a smaller length of coverage will always be dropped independent of any settings (ignoring sniffers which are interested in all traffic) as not conforming to standard.

Support

UDP-Lite is supported by the following operating systems:

  • FreeBSD, since version 10.1-RELEASE
  • Linux, since kernel version 2.6.20
  • Also available on Windows through a third-party library, WULL[7]

References

  1. ^ "Computing the Internet Checksum, RFC 1071". Retrieved 2012-01-12.
  2. ^ "Corrupted Speech Data Considered Useful, 2003". Retrieved 2012-01-12.
  3. ^ "Commit message for introduction into CURRENT". Retrieved 2014-07-26.
  4. ^ "Commit message for MFC from CURRENT". Retrieved 2014-10-05.
  5. ^ "FreeBSD 10.1-RELEASE Release Notes".
  6. ^ "UDP-Lite Howto (kernel and userland applications)". Retrieved 2015-10-11.
  7. ^ Laurent Guillo; Cécile Marc (10 January 2005). "WULL: A Windows UDP-Lite library" (PDF). IRISA. Retrieved 2015-12-15.
  • RFC 3828 — The Lightweight User Datagram Protocol (UDP-Lite)
  • RFC 4019 — RObust Header Compression (ROHC): Profiles for User Datagram Protocol (UDP) Lite
  • RFC 5097 — MIB for the UDP-Lite protocol
  • RFC 5405 — Unicast UDP Usage Guidelines for Application Designers

Read other articles:

Den här artikeln har skapats av Lsjbot, ett program (en robot) för automatisk redigering. (2013-08)Artikeln kan innehålla fakta- eller språkfel, eller ett märkligt urval av fakta, källor eller bilder. Mallen kan avlägsnas efter en kontroll av innehållet (vidare information) Platyplectrus americanaSystematikDomänEukaryoterEukaryotaRikeDjurAnimaliaStamLeddjurArthropodaUnderstamSexfotingarHexapodaKlassEgentliga insekterInsectaOrdningSteklarHymenopteraÖverfamiljGlanssteklarChalcidoideaF...

 

Type of chemical reactor Diagram showing the setup of a continuous stirred-tank reactor The continuous stirred-tank reactor (CSTR), also known as vat- or backmix reactor, mixed flow reactor (MFR), or a continuous-flow stirred-tank reactor (CFSTR), is a common model for a chemical reactor in chemical engineering and environmental engineering. A CSTR often refers to a model used to estimate the key unit operation variables when using a continuous agitated-tank reactor to reach a specified outpu...

 

Sapucái Ciudad y Municipio SapucáiLocalización de Sapucái en ParaguayCoordenadas 25°40′04″S 56°57′20″O / -25.667755555556, -56.955561111111Idioma oficial Castellano y GuaraníEntidad Ciudad y Municipio • País  Paraguay • Departamento ParaguaríIntendente municipal Norma Belén Zárate de Monges (ANR)Fundación 16 de julio de 1910, por Emiliano González NaveroSuperficie   • Total 326 km²Altitud   • Media 87 m s. n. m.P...

Séries éliminatoires 2010 Logo des séries Ligue nationale de hockey Vainqueur Blackhawks de Chicago Finaliste Flyers de Philadelphie Nombre d'équipes 16 Nombre de tours 4 Meilleur joueur Jonathan Toews Année précédente Année suivante modifier Les séries éliminatoires de la Coupe Stanley 2010 font suite à la saison 2009-2010 de la Ligue nationale de hockey. Tableau récapitulatif Les huit premiers de la saison régulière dans chaque association sont qualifiés pour les séries éli...

 

HELLO WORLDPoster film Hello WorldNama lainJepangハロー•ワールドHepburnHarōwārudoArtiHalo Dunia SutradaraTomohiko ItōProduserDitulis olehMado NozakiSkenarioMado NozakiPemeran Takumi Kitamura Tori Matsuzaka Minami Hamabe PerusahaanproduksiGraphinicaDistributorTohoTanggal rilis 20 September 2019 (2019-09-20) Negara Jepang Bahasa Jepang Hello World (atau HELLO WORLD) adalah film animasi Jepang 2019 yang disutradarai oleh Tomohiko Itō dan diproduksi oleh Graphinica. Film i...

 

MonseliceMonselice railway stationGeneral informationLocationVia Trento e Trieste 60MonseliceMonselice, Padua, VenetoItalyCoordinates45°14′48″N 11°44′54″E / 45.24667°N 11.74833°E / 45.24667; 11.74833Owned byRete Ferroviaria ItalianaOperated byCentostazioniLine(s)Padova–BolognaMantova–MonseliceTrain operatorsTrenitaliaOther informationClassificationSilver[1]HistoryOpened11 June 1866; 157 years ago (1866-06-11)LocationMonseliceLo...

Pour les articles homonymes, voir Henri XI. Henri XI de GłogówBiographieNaissance Entre 1428 et 1435Duché de GlogauDécès 1476 ou 22 février 1476KożuchówSépulture Purification of Saint Mary church in Kożuchów (d)Nom dans la langue maternelle Henryk XI GłogowskiActivité FeudataireFamille Dynastie Piast, branche Głogów de la dynastie Piast (d), Piast silésiens (en)Père Henri IX le VieuxMère Hedwig of Oleśnica (d)Fratrie Anna Hlohovská (d)Conjoints Barbara de Brandeb...

 

New Zealand politician (born 1983) For other people named David Seymour, see David Seymour (disambiguation). The HonourableDavid SeymourMPDavid Seymour in 20231st Minister for RegulationIncumbentAssumed office 27 November 2023Prime MinisterChristopher LuxonPreceded byOffice establishedLeader of ACT New ZealandIncumbentAssumed office 4 October 2014DeputyBrooke van Velden (since 2020)Beth Houlbrooke (2017–2020)Kenneth Wang (2014–2017)Preceded byJamie WhyteMember of the New Zeala...

 

Österreichisches Ehrenzeichen für Wissenschaft und Kunst ist eine Weiterleitung auf diesen Artikel. Zum Vorgänger siehe K.u.k. Österreichisches Ehrenzeichen für Kunst und Wissenschaft. Österreichisches Ehrenzeichen für Wissenschaft und Kunst Österreichisches Ehrenkreuz für Wissenschaft und Kunst I. Klasse mit Verleihungsurkunde für Arnulf Rainer Marina Abramović mit dem Ehrenzeichen für Wissenschaft und Kunst Das Österreichische Ehrenzeichen und Österreichische Ehrenkreuz für W...

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: Road Trip soundtrack – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this template message) 2000 soundtrack album by VariousRoad TripSoundtrack album by VariousReleased2000GenrePop, rock, hip hopLabelDrea...

 

This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (November 2020) Theudoria was an ancient town located in south-eastern Epirus. It was one of the chief towns of the Athamanians, along with Argithea, Heraclea and Tetraphylia.[1] References ^ François Charles Hugues Laurent Pouqueville (1820). Travels in Greece and Turkey: Comprehending a Particular Account of the Morea, Albani...

 

Magnetización de un material paramagnético en función de la temperatura Magnetización de un material paramagnético en función de la temperatura inversa En un material paramagnético, la ley de Curie establece que la susceptibilidad magnética del material es inversamente proporcional a la temperatura. Agregando la constante de proporcionalidad, se obtiene la siguiente ecuación: χ m = C T {\displaystyle \chi _{\rm {m}}={\frac {C}{T}}} siendo: χ m {\displaystyle \chi _{\rm ...

Penghargaan Filmfare ke-30Tanggal25 September 1983TempatShanmukhananda Hall, Mumbai[1]SorotanFilm TerbaikShaktiAktor TerbaikDilip KumarPenghargaan terbanyakPrem Rog & Shakti (4)Nominasi terbanyakPrem Rog (12) ← 29th Penghargaan Filmfare ke-31 → Penghargaan Filmfare ke-30 diadakan pada 25 September 1983.[2] Shakti karya Ramesh Sippy meraih Penghargaan untuk Film Terbaik, yang mana dibintangi Dilip Kumar dan Amitabh Bachchan, berperan sebagai ayah dan p...

 

1831 fairy tale by Alexander Pushkin For other uses, see The Tale of Tsar Saltan (disambiguation). The Tale of Tsar SaltanThe mythical island of Buyan (illustration by Ivan Bilibin).Folk taleNameThe Tale of Tsar SaltanAarne–Thompson groupingATU 707, The Three Golden ChildrenRegionRussiaPublished inСказка о царе Салтане (1831), by Александр Сергеевич Пушкин (Alexander Pushkin)Related The Dancing Water, the Singing Apple, and the Speaking Bird Mielikk...

 

Association football club in Spain Football clubSD CompostelaFull nameSociedade Deportiva CompostelaNickname(s)ComposEsedéShort nameCompostela; ComposFounded1928; re-organised in 1962 and in 2004StadiumSan Lázaro, Compostela,GaliciaCapacity16,666OwnerAntonio Quinteiro (100%)PresidentAntonio QuinteiroHead coachRodri VeigaLeagueSegunda Federación – Group 12022–23Segunda Federación – Group 1, 4th of 18WebsiteClub website Home colours Away colours Sociedade Deportiva Compostela is a Spa...

Battle during the Pequot War This article is about the battle of the Pequot War. For the battle of King Philip's War, see Great Swamp Fight. The Great Swamp FightPart of the Pequot WarDateJuly 13–14, 1637Locationpresent-day Fairfield, CT41°08′18″N 73°17′25″W / 41.13833°N 73.29028°W / 41.13833; -73.29028Result English victory and the disbanding of the Pequot tribeBelligerents Pequot people English colonistsCommanders and leaders Sassacus Capt. Israel Stoug...

 

Railway station in Åmli, Norway NelaugRailway stationView of Nelaug station in 2011General informationLocationNelaug, ÅmliNorwayCoordinates58°39′28″N 8°37′47″E / 58.6577°N 08.6297°E / 58.6577; 08.6297Elevation141.1 m (463 ft)Owned byBane NOROperated byGo-Ahead NorgeLine(s)SørlandsbanenArendalsbanenDistance281.41 km (174.86 mi)ConnectionsBus to TreungenConstructionParking10ArchitectBjarne Friis Baastadand Gudmund HoelOther informa...

 

Somali politician; President of Galmudug from 2017 to 2020 Mohamed Abdi WarePresident of HirshabelleIn office16 September 2017 – 2 November 2020Vice PresidentAli Abdullahi HusseinPreceded byAli Abdullahi Hussein (acting)Succeeded byAli Abdullahi Hussein Personal detailsBorn (1960-02-14) 14 February 1960 (age 63)Jowhar, Trust Territory of SomalilandEducationAfgooye Agricultural High SchoolIndiana University Bloomington Mohamed Abdi Ware (Somali: Maxamed Cabdi Waare; born 14 Feb...

パロアルト研究所Palo Alto Research Center Inc.略称 PARC本社所在地 アメリカ合衆国カリフォルニア州パロアルト3333 Coyote Hill Rd設立 1970年事業内容 研究開発主要株主 SRIインターナショナル外部リンク https:/parc.com/テンプレートを表示 正面玄関 パロアルト研究所(パロアルトけんきゅうじょ、Palo Alto Research Center、PARC)は、アメリカ合衆国のカリフォルニア州パロアルトにある研...

 

Ли Канкор. 의친왕 이강 Рождение 30 марта 1877(1877-03-30)Кэйдзё, Чосон Смерть 15 августа 1955(1955-08-15) (78 лет)Сеул, Корейская республика Род Корейская Императорская семья Имя при рождении кор. 이평길 Отец Коджон Мать Imperial Consort Gwi-in of the Deoksu Jang clan[d] Супруга Kim Sudeok[d] Дети Кэнъити Момояма[d], Ли У,&...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!