Share to: share facebook share twitter share wa share telegram print page

Network scheduler

Packets queuing in a FIFO (first in, first out) data structure.

A network scheduler, also called packet scheduler, queueing discipline (qdisc) or queueing algorithm, is an arbiter on a node in a packet switching communication network. It manages the sequence of network packets in the transmit and receive queues of the protocol stack and network interface controller. There are several network schedulers available for the different operating systems, that implement many of the existing network scheduling algorithms.

The network scheduler logic decides which network packet to forward next. The network scheduler is associated with a queuing system, storing the network packets temporarily until they are transmitted. Systems may have a single or multiple queues in which case each may hold the packets of one flow, classification, or priority.

In some cases it may not be possible to schedule all transmissions within the constraints of the system. In these cases the network scheduler is responsible for deciding which traffic to forward and what gets dropped.

Terminology and responsibilities

A network scheduler may have responsibility in implementation of specific network traffic control initiatives. Network traffic control is an umbrella term for all measures aimed at reducing network congestion, latency and packet loss. Specifically, active queue management (AQM) is the selective dropping of queued network packets to achieve the larger goal of preventing excessive network congestion. The scheduler must choose which packets to drop. Traffic shaping smooths the bandwidth requirements of traffic flows by delaying transmission packets when they are queued in bursts. The scheduler decides the timing for the transmitted packets. Quality of service (QoS) is the prioritization of traffic based on service class (Differentiated services) or reserved connection (Integrated services).

Algorithms

In the course of time, many network queueing disciplines have been developed. Each of these provides specific reordering or dropping of network packets inside various transmit or receive buffers.[1] Queuing disciplines are commonly used as attempts to compensate for various networking conditions, like reducing the latency for certain classes of network packets, and are generally used as part of QoS measures.[2][3][4]

Classful queueing disciplines allow the creation of classes, which work like branches on a tree. Rules can then be set to filter packets into each class. Each class can itself have assigned other classful or classless queueing discipline. Classless queueing disciplines do not allow adding more queueing disciplines to it.[5]

Examples of algorithms suitable for managing network traffic include:

Queueing Algorithms
Algorithm Acronym Type HW Support
Generic cell rate algorithm GCRA
CHOose and Kill for unresponsive flows CHOKe Classless
Controlled delay CoDel Classless
Common Applications Kept Enhanced[6] CAKE
Earliest TxTime First ETF Classless Yes
First in, first out FIFO Classless
Fair queuing FQ Classless
Fair Queuing Controlled Delay FQ-CoDel Classless
Flow Queuing with Proportional Integral controller Enhanced FQ-PIE Classless
Generalized Random Early Detection GRED Classless
Heavy-Hitter Filter[7] HHF Classless
Multiqueue Priority MQ-PRIO Classless Yes
Multiqueue MULTIQ Classless Yes
Network Emulator[8] NETEM Classless
Proportional Integral controller-Enhanced[9] PIE Classless
Random early detection RED Classless
Stochastic fair Blue SFB Classless
Stochastic Fairness Queueing SFQ Classless
Token Bucket Filter TBF Classless
Class-based queueing CBQ Classful
Credit-Based Shaper CBS Classful Yes
Deficit round robin[10] DRR Classful
Enhanced Transmission Selection ETS Classful
Hierarchical fair-service curve HFSC Classful
Hierarchical Token Bucket[11] HTB Classful
Priority PRIO Classful
Quick Fair Queueing[12] QFQ Classful
Time Aware Priority Shaper TAPRIO Classful Yes

Several of the above have been implemented as Linux kernel modules[13][14] and are freely available.

Bufferbloat

Bufferbloat is a phenomenon in packet-switched networks in which excess buffering of packets causes high latency and packet delay variation. Bufferbloat can be addressed by a network scheduler that strategically discards packets to avoid an unnecessarily high buffering backlog. Examples include CoDel, FQ-CoDel and random early detection.

Implementations

Linux kernel

The Linux kernel's packet scheduler is part of the network stack, together with netfilter, nftables, and Berkeley Packet Filter.

The Linux kernel packet scheduler is an integral part of the Linux kernel's network stack and manages the transmit and receive ring buffers of all NICs, by working on the layer 2 of the OSI model and handling Ethernet frames, for example.

The packet scheduler is configured using the utility called tc (short for traffic control). As the default queuing discipline, the packet scheduler uses a FIFO implementation called pfifo_fast,[15] although systemd since its version 217 changes the default queuing discipline to fq_codel.[16]

The ifconfig and ip utilities enable system administrators to configure the buffer sizes txqueuelen and rxqueuelen for each device separately in terms of number of Ethernet frames regardless of their size. The Linux kernel's network stack contains several other buffers, which are not managed by the network scheduler.[a]

Berkeley Packet Filter filters can be attached to the packet scheduler's classifiers. The eBPF functionality brought by version 4.1 of the Linux kernel in 2015 extends the classic BPF programmable classifiers to eBPF.[17] These can be compiled using the LLVM eBPF backend and loaded into a running kernel using the tc utility.[18]

BSD and OpenBSD

ALTQ is the implementation of a network scheduler for BSDs. As of OpenBSD version 5.5 ALTQ was replaced by the HFSC scheduler.

See also

Notes

  1. ^ The overall size of all buffers has been the point of critique by the Bufferbloat project, which provided a partial solution with CoDel that has been primarily tested in OpenWrt.

References

  1. ^ "Traffic Control HOWTO: Classless Queuing Disciplines (qdiscs)". tldp.org. Retrieved November 24, 2013.
  2. ^ "Traffic Control HOWTO: Components of Linux Traffic Control". tldp.org. Retrieved November 24, 2013.
  3. ^ "Traffic Control HOWTO: Traditional Elements of Traffic Control". tldp.org. Retrieved November 24, 2013.
  4. ^ "Queuing Disciplines: Order of Packet Transmission and Dropping" (PDF). tau.ac.il. October 25, 2006. Retrieved March 18, 2014.
  5. ^ "Advanced traffic control - ArchWiki". wiki.archlinux.org. Retrieved 2023-09-11.
  6. ^ "Let them run CAKE". LWN.net.
  7. ^ "Heavy-Hitter Filter qdisc". kernel.org.
  8. ^ "Network emulator Linux kernel network scheduler module". kernel.org. Retrieved 2013-09-07.
  9. ^ "Proportional Integral controller Enhanced (PIE)". kernel.org.
  10. ^ "DRR Linux kernel network scheduler module". kernel.org. Retrieved 2013-09-07.
  11. ^ "HTB Linux kernel network scheduler module". kernel.org. Retrieved 2013-09-07.
  12. ^ "QFQ Linux kernel network scheduler module". kernel.org. Retrieved 2013-09-07.
  13. ^ "The Linux kernel network scheduler". kernel.org. 2012-12-26. Retrieved 2013-09-07.
  14. ^ "tc(8) - Linux manual page". man7.org. Retrieved 2023-09-11.
  15. ^ "Linux Advanced Routing and Traffic Control HOWTO, Section 9.2.1. pfifo_fast". lartc.org. 2012-05-19. Retrieved 2014-09-19.
  16. ^ "systemd System and Service Manager: NEWS file". freedesktop.org. 2015-05-22. Retrieved 2015-06-09.
  17. ^ "Linux kernel 4.1, Section 11. Networking". kernelnewbies.org. 2015-06-21.
  18. ^ "BPF and XDP Reference Guide". Cilium documentation web site.

Read other articles:

4-та Київська стрілецька дивізія Армії УНР Командир дивізії генерал-хорунжий А. Вовк.На службі 1920 — 1921Країна УНРНалежність Армія УНРВид Сухопутні військаВійни/битви Українсько-радянська війна 1917-21Другий зимовий похідКомандуванняВизначнікомандувачі генерал-хорунж...

Labruyère Labruyère (Frankreich) Staat Frankreich Region Bourgogne-Franche-Comté Département (Nr.) Côte-d’Or (21) Arrondissement Beaune Kanton Brazey-en-Plaine Gemeindeverband Communauté de communes Rives de Saône Koordinaten 47° 3′ N, 5° 9′ O47.0447222222225.1508333333333Koordinaten: 47° 3′ N, 5° 9′ O Höhe 176–183 m Fläche 7,28 km² Einwohner 225 (1. Januar 2020) Bevölkerungsdichte 31 Einw./km² Postleitzahl 212...

Jalan Letnan Jenderal S. Parman Suasana Jalan Letjen S. Parman di depan Universitas Trisakti.Bagian dari Jalur Jalan Raya Pluit—Halim PerdanakusumaPanjang 4.8 km (3,0 mi)Lokasi Jakarta BaratUjung utara-barat Grogol, Grogol Petamburan, Jakarta BaratUjung selatan-timur Slipi, Palmerah, Jakarta BaratJalan Letnan Jenderal S. Parman atau Jalan S. Parman adalah nama salah satu jalan utama di kota Jakarta Barat, DKI Jakarta, Indonesia. Nama jalan ini diambil dari nama seorang Pahlawan Re...

Miss Mundo 1980Fecha 13 de noviembre de 1980Presentador Peter Marshall, Judith Chalmers y Anthony NewleyEntretenimiento The Three DegreesRecinto sede Royal Albert Hall, Londres Reino Unido Reino UnidoEmitido por Thames TelevisionCandidatas 67Clasificación 15Retirados Chile, El Salvador, Islandia, Nigeria, Portugal, TahitíRegreso Curazao, Papúa Nueva GuineaGanadora Gabriella Brum Alemania Alemania (renunció)Kimberley Santos Guam Guam (sucesora)Simpatía Canadá CanadáF...

Fictional characters Thomas Dubois redirects here. For the folklorist, see Thomas A. DuBois. The members of the DuBois family — Tom (husband), Sarah (wife), and Jazmine (daughter) — are fictional characters and featured players in Aaron McGruder's Boondocks comic strip and animated TV series. They live across the street from the main characters, the Freeman family — Robert and his grandsons, Huey and Riley. Tom Fictional character Thomas Lancaster DuBoisThe Boondocks characterFirst appe...

名侦探柯南:第14號獵物名探偵コナン 14番目の標的基本资料导演兒玉兼嗣编剧古內一成原著青山剛昌主演高山南山口胜平神谷明山崎和佳奈松井菜櫻子緒方賢一茶風林中尾隆聖配乐大野克夫片尾曲ZARD《彷彿回到少女時代》制片商TMS娱乐「名偵探柯南」製作委員會片长99分鐘产地 日本语言日语上映及发行上映日期 1998年4月18日 1998年7月7日发行商 东宝 普威爾國際票房18.5億日圓

Contoh subdomain Wikipedia Subdomain adalah bagian dari sebuah nama domain induk. Subdomain umumnya mengacu ke suatu alamat fisik di sebuah situs contohnya: wikipedia.org merupakan sebuah domain induk. Sedangkan id.wikipedia.org merupakan sebuah subdomain. Biasanya, subdomain ada di depan domain dan dipisah dengan titik, seperti id.wikipedia.org. id adalah subdomain wikipedia, sedangkan wikipedia itu sendiri adalah domain induk. Subdomain juga sebagai third-level domain. Referensi Pranala lua...

Drs.Sugeng SuparwotoAnggota Dewan Perwakilan Rakyat Republik IndonesiaPetahanaMulai menjabat 1 Oktober 2019PresidenJoko WidodoDaerah pemilihanJawa Tengah VIII Informasi pribadiLahir11 April 1962 (umur 61)Purworejo, Jawa TengahPartai politik  NasDemSuami/istriAmelia AnggrainiAnak4Alma materUniversitas Negeri JakartaSunting kotak info • L • B Drs. Sugeng Suparwoto (lahir 11 April 1962) adalah politikus Indonesia yang menjabat sebagai anggota DPR-RI periode 2019...

Canadian politician This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Raj Chouhan – news · newspapers · books · scholar · JSTOR (January 2012) (Learn how and when to remove this template message) ...

Hamlet in Alberta, CanadaKinsellaHamletKinsellaLocation of Kinsella in AlbertaCoordinates: 53°00′01″N 111°31′26″W / 53.00028°N 111.52389°W / 53.00028; -111.52389CountryCanadaProvinceAlbertaCensus divisionNo. 10Municipal districtBeaver CountyGovernment • TypeUnincorporated • Governing bodyBeaver County CouncilElevation695 m (2,280 ft)Population (2009)[1] • Total40Time zoneUTC-7 (MST) • Su...

I Will edit whatever I wish If you continue to remove pages about the Israeli/Palestinian conflict which include historical and contemporary sources, I fear that Wikipedia as a platform should be exposed. WP:ARBPIA3. HAHA! Clever, clever. — Preceding unsigned comment added by 216.246.231.236 (talk) 02:47, 6 September 2016 (UTC)Reply[reply] Epson Salts, you are invited to the Teahouse! Hi Epson Salts! Thanks for contributing to Wikipedia. Be our guest at the Teahouse! The Teahouse is a frie...

London Youth GamesOfficial LogoFounded1977CompetitorsEst. 1.5m to date (2020) The London Youth Games is an annual multi-sport event held in London, England. The London Youth Games offer competitive opportunities for young people aged 7 to 18 (who live or go to school in London) across approximately 30 sports every year. The London Youth Games are contested between the 32 London boroughs (as well as the City of London) and take place at venues across the capital nine months of the year. The fo...

Заслуженный лётчик-испытатель Российской Федерации Страна Российская Федерация Тип почётное звание Кому вручается лётчикам-испытателям Статус присваивается Статистика Дата учреждения 30 декабря 1995 года Первое награждение 7 мая 1996 года «Заслу́женный лётчик-испыт...

Besi panas memindahkan panas ke lingkungannya melalui radiasi termal Perpindahan panas adalah perpindahan energi akibat adanya perbedaan suhu di antara dua tempat yang berbeda. Bahasan utama dalam perpindahan panas ialah cara energi di dalam panas dapat berpindah tempat dan laju perpindahannya dalam kondisi tertentu.[1] Perpindahan panas meliputi proses pemasukan dan pengeluaran panas. Dalam proses industri, perpindahan panas digunakan untuk mencapai suhu yang diperlukan dalam proses ...

American professional wrestler Eric EmbryEmbry on the ground during a 1981 match with David Von Erich. Mr. Onita is ringside in the background.Birth nameDouglas Eric EmbryBorn (1959-07-10) July 10, 1959 (age 64)Kentucky, United States[1]Professional wrestling careerRing name(s)Don Fulton[1]Don Starr[1]Eric Embry[1]Eric Emery[1]Billed height5 ft 10 in (178 cm)[1]Billed weight224 lb (102 kg)[1]Billed fromDalla...

2015 studio album by Brett KisselPick Me UpStudio album by Brett KisselReleasedSeptember 11, 2015 (2015-09-11)GenreCountryLength35:54LabelWarner Music CanadaProducerMickey Jack ConesBrett KisselBart McKayBrett Kissel chronology Started with a Song(2013) Pick Me Up(2015) We Were That Song(2017) Singles from Pick Me Up AirwavesReleased: June 19, 2015 Pick Me UpReleased: October 2015 Cool with ThatReleased: April 2016 I Didn't Fall in Love with Your HairReleased: September...

У Вікіпедії є статті про інші значення цього терміна: Вулиця Сакко і Ванцетті. Вулиця Пам'ятнаЗапоріжжяМісцевість ЦентрРайон ДніпровськийКолишні назви Сакко і ВанцеттіТранспортРух двостороннійПокриття асфальтБудівлі, пам'ятки, інфраструктураЗабудова багатоповерхов...

つきの ゆうな月野 有菜 2020年プロフィール別名義 光野有菜(旧芸名)生年月日 2002年9月20日現年齢 21歳出身地 日本・大阪府血液型 B型[1]公称サイズ(時期不明)身長 167 cm 単位系換算身長 / 体重5′ 7″ / ― lb活動デビュー 2020年ジャンル モデル、女優、グラビア公式サイト 公式サイト受賞歴 制コレ’20グランプリアイドル: テンプレート - カテゴリ 月野 有菜(つき...

Ця стаття висвітлює поточну подію. Інформація може швидко змінюватися через розвиток подій, початкові відомості можуть виявитися ненадійними. Останні оновлення цієї статті можуть не відображати найсвіжішу інформацію. Коронавірусна хвороба 2019 на острові Різдва Хвороб...

Gedung Serikat Dagang. Untuk gedung dengan nama yang sama di Kiev, lihat Gedung Serikat Dagang (Kiev). Gedung Serikat Buruh (bahasa Rusia: Дом Союзов) (juga disebut Istana Serikat Buruh) adalah sebuah gedung bersejarah di Distrik Tverskoy, tengah Moskwa, Rusia. Gedung tersebut terletak di persimpangan jalan Bolshaya Dmitrovka dan Okhotny Ryad.[1] Referensi Wikimedia Commons memiliki media mengenai House of the Unions. ^ Situs web resmi Gedung Serikat Dagang. Diarsipkan da...

Kembali kehalaman sebelumnya