SlideShare a Scribd company logo
1 of 28
Download to read offline
Core-Stateless Fair Queueing
Achieving Approximately Fair Bandwidth
Allocations in High Speed Networks
Ion Stoica @ CMU
Scott Shenker @ Xerox PARC
Hui Zhang @ CMU
Presented by Wang Yuanxuan
SIGCOMM ’98
Is end-to-end congestion
control enough?
Limitations of End-to-end Protocols
• All end-host cooperate
– What about ill-behaved users?
• End-hosts implement homogeneous
control algorithms
– Assume all clients adopt TCP
Enforcing Fair Bandwidth Allocation
• Router controls bandwidth
• Each flow is ensured to receive its fair
share
– no matter what control algorithms
Fair Queueing
Fair Queueing (cont.)
• Maintain per flow state
Fair Queueing (cont.)
• A router needs to perform
– Per packet classification
– Per flow buffer management
– Per flow scheduling
• Any disadvantages?
– Complex
– Per flow management
Core-Stateless Fair Queueing
• Significantly reduces implementation
complexity
• Still achieves approximately fair
allocations
How?
decomposing edge and core routers
estimating incoming rate and fair
rate
drop packets probabilistically
Outline
• Previous Work
Design
• Algorithms
• Evaluation
Architecture
• Two types of nodes
– edge nodes
– core nodes
• Only edge routers maintain per flow
state
Probabilistic Dropping
• Given
– rate estimate carried in the label ri(t)
– fair share rate of the router α(t)
• The arrival rate of flow i at time t
min⁡[ 𝑟𝑖 𝑡 , α 𝑡 ]
• The packet is dropped with probability
max⁡(0, 1 −
α(𝑡)
𝑟𝑖(𝑡)
)
Edge Nodes & Core Nodes
• Edge nodes
– estimate the incoming rate of each flow, and
use it to label flow's packets
• All nodes
– periodically estimate the fair rate f
– upon packet arrival, compute the forwarding
probability P and forward it
– when a packet is forwarded reset its label
How to estimating
ri(t) and α(t)?
Example Algorithms
• Computation of Flow Arrival Rate
𝑟𝑖
𝑛𝑒𝑤
= 1 − 𝑒−
𝑇𝑖
𝑘
𝐾
𝑙𝑖
𝑘
𝑇𝑖
𝑘
+ 𝑒−𝑇𝑖 𝑘
/𝐾
𝑟𝑖
𝑜𝑙𝑑
• Link Fair Rate Estimation
ɑ 𝑛𝑒𝑤 = ɑ 𝑜𝑙𝑑
𝐶
𝐹 ri Flow arrival rate
li
k Length of kth packet of flow i
ti
k Arrival time of flow i
Ti
k Duration
C Output link speed
F Estimated rate of the accepted traffic
Pseudocode
Don’t worry
It’s just an initial prototype
And finally…
Evaluation
• Competitors
– FIFO (first in first out, naïve)
– RED (random early detection)
– FRED (flow random early drop, drop based
on flow state)
– DRR (deficit round robin, an efficient
implementation of weighted fair queueing)
– CSFQ
What Should We Evaluate
• Total throughput
• Single flow throughput in congested
network
– TCP
– UDP
• Throughput under Large Latencies
Total Throughput of TCP/UDP Flows
Multiple Congested Links
• Each UDP sends at twice its fair rate
Relative Throughput of A TCP Flow
Relative Throughput of A UDP Flow
Throughputs with Large Latency
• Propagation delay: 100ms
Algorithm Mean Std. dev
DRR 6080 64
CSFQ 5761 220
FRED 4974 190
RED 628 80
FIFO 378 69
Throughputs with Large Latency
• Propagation delay: 100ms
Algorithm Mean Std. dev
DRR 6080 64
CSFQ 5761 220
FRED 4974 190
RED 628 80
FIFO 378 69
Summary
• CSFQ
– a hybrid scheme that asymptotically converges
to max-min fairness
• Two neat ideas
– a decomposition of edge and core routers
– a simple technique to estimate the fair rate in
a core router
• Can achieve a significant degree of
fairness
– comparable or superior to FRED
Drawbacks & Discussion
• Effect of large latencies
• All routers in an island need to be
simultaneously upgraded
• Dynamic packet state needs to be
implemented somehow
– Using IP fragmentation header fields?
• Assume benign routers
– What if buggy or malicious routers exist?
Thanks!

More Related Content

What's hot

Call flow comparison gsm umts
Call flow comparison gsm umtsCall flow comparison gsm umts
Call flow comparison gsm umts
lamno
 
QoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.netQoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.net
Febrian ‎
 
Tech talk network - friend or foe
Tech talk   network - friend or foeTech talk   network - friend or foe
Tech talk network - friend or foe
aragozin
 

What's hot (20)

Basics of Network Traffic Management
Basics of Network Traffic ManagementBasics of Network Traffic Management
Basics of Network Traffic Management
 
Qos Quality of services
Qos   Quality of services Qos   Quality of services
Qos Quality of services
 
Quality of service(qos) by M.BILAL.SATTI
Quality of service(qos) by M.BILAL.SATTIQuality of service(qos) by M.BILAL.SATTI
Quality of service(qos) by M.BILAL.SATTI
 
Call flow comparison gsm umts
Call flow comparison gsm umtsCall flow comparison gsm umts
Call flow comparison gsm umts
 
QoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.netQoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.net
 
Overview of Routing Techniques
Overview of Routing TechniquesOverview of Routing Techniques
Overview of Routing Techniques
 
Tech talk network - friend or foe
Tech talk   network - friend or foeTech talk   network - friend or foe
Tech talk network - friend or foe
 
Quality of service
Quality of serviceQuality of service
Quality of service
 
Auto mac rateless wireless concurrent medium access
Auto mac rateless wireless concurrent medium accessAuto mac rateless wireless concurrent medium access
Auto mac rateless wireless concurrent medium access
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Traffic Characterization
Traffic CharacterizationTraffic Characterization
Traffic Characterization
 
Intelligent Network Services through Active Flow Manipulation
Intelligent Network Services through Active Flow ManipulationIntelligent Network Services through Active Flow Manipulation
Intelligent Network Services through Active Flow Manipulation
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Pause frames an overview
Pause frames an overviewPause frames an overview
Pause frames an overview
 
Call flow comparison gsm umts
Call flow comparison gsm umtsCall flow comparison gsm umts
Call flow comparison gsm umts
 
Wireless networks ..mac layer
Wireless networks ..mac layerWireless networks ..mac layer
Wireless networks ..mac layer
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
 
Traffic and Congestion Control in ATM Networks Chapter 13
Traffic and Congestion Control in ATM Networks Chapter 13Traffic and Congestion Control in ATM Networks Chapter 13
Traffic and Congestion Control in ATM Networks Chapter 13
 
Qo s routing
Qo s  routingQo s  routing
Qo s routing
 
Chap24
Chap24Chap24
Chap24
 

Viewers also liked (8)

H ip qo s for 3g
H ip qo s for 3gH ip qo s for 3g
H ip qo s for 3g
 
Transport layer
Transport layerTransport layer
Transport layer
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Congestion control in tcp
Congestion control in tcpCongestion control in tcp
Congestion control in tcp
 
Leaky bucket algorithm
Leaky bucket algorithmLeaky bucket algorithm
Leaky bucket algorithm
 
3G TECHNOLOGY
3G TECHNOLOGY3G TECHNOLOGY
3G TECHNOLOGY
 
3G Basic Overview
3G Basic Overview3G Basic Overview
3G Basic Overview
 
3G basic
3G basic3G basic
3G basic
 

Similar to Core-Stateless Fair Queueing

New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
Nitesh Singh
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
WifiCren
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdf
Phcng785014
 

Similar to Core-Stateless Fair Queueing (20)

Advanced networking - scheduling and QoS part 1
Advanced networking - scheduling and QoS part 1Advanced networking - scheduling and QoS part 1
Advanced networking - scheduling and QoS part 1
 
Chapter07
Chapter07Chapter07
Chapter07
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
QoSintro.PPT
QoSintro.PPTQoSintro.PPT
QoSintro.PPT
 
Vsat day-2008-comtech
Vsat day-2008-comtechVsat day-2008-comtech
Vsat day-2008-comtech
 
8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdf8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdf
 
High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
 
Week 3
Week 3Week 3
Week 3
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Performance Analysis of Creido Enhanced Chord Overlay Protocol for Wireless S...
Performance Analysis of Creido Enhanced Chord Overlay Protocol for Wireless S...Performance Analysis of Creido Enhanced Chord Overlay Protocol for Wireless S...
Performance Analysis of Creido Enhanced Chord Overlay Protocol for Wireless S...
 
Play With Streams
Play With StreamsPlay With Streams
Play With Streams
 
RIPE 76: TCP and BBR
RIPE 76: TCP and BBRRIPE 76: TCP and BBR
RIPE 76: TCP and BBR
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
 
Network State Awareness & Troubleshooting
Network State Awareness & TroubleshootingNetwork State Awareness & Troubleshooting
Network State Awareness & Troubleshooting
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdf
 
AusNOG 2019: TCP and BBR
AusNOG 2019: TCP and BBRAusNOG 2019: TCP and BBR
AusNOG 2019: TCP and BBR
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Core-Stateless Fair Queueing

  • 1. Core-Stateless Fair Queueing Achieving Approximately Fair Bandwidth Allocations in High Speed Networks Ion Stoica @ CMU Scott Shenker @ Xerox PARC Hui Zhang @ CMU Presented by Wang Yuanxuan SIGCOMM ’98
  • 3. Limitations of End-to-end Protocols • All end-host cooperate – What about ill-behaved users? • End-hosts implement homogeneous control algorithms – Assume all clients adopt TCP
  • 4. Enforcing Fair Bandwidth Allocation • Router controls bandwidth • Each flow is ensured to receive its fair share – no matter what control algorithms
  • 6. Fair Queueing (cont.) • Maintain per flow state
  • 7. Fair Queueing (cont.) • A router needs to perform – Per packet classification – Per flow buffer management – Per flow scheduling • Any disadvantages? – Complex – Per flow management
  • 8. Core-Stateless Fair Queueing • Significantly reduces implementation complexity • Still achieves approximately fair allocations
  • 9. How? decomposing edge and core routers estimating incoming rate and fair rate drop packets probabilistically
  • 10. Outline • Previous Work Design • Algorithms • Evaluation
  • 11. Architecture • Two types of nodes – edge nodes – core nodes • Only edge routers maintain per flow state
  • 12. Probabilistic Dropping • Given – rate estimate carried in the label ri(t) – fair share rate of the router α(t) • The arrival rate of flow i at time t min⁡[ 𝑟𝑖 𝑡 , α 𝑡 ] • The packet is dropped with probability max⁡(0, 1 − α(𝑡) 𝑟𝑖(𝑡) )
  • 13. Edge Nodes & Core Nodes • Edge nodes – estimate the incoming rate of each flow, and use it to label flow's packets • All nodes – periodically estimate the fair rate f – upon packet arrival, compute the forwarding probability P and forward it – when a packet is forwarded reset its label
  • 15. Example Algorithms • Computation of Flow Arrival Rate 𝑟𝑖 𝑛𝑒𝑤 = 1 − 𝑒− 𝑇𝑖 𝑘 𝐾 𝑙𝑖 𝑘 𝑇𝑖 𝑘 + 𝑒−𝑇𝑖 𝑘 /𝐾 𝑟𝑖 𝑜𝑙𝑑 • Link Fair Rate Estimation ɑ 𝑛𝑒𝑤 = ɑ 𝑜𝑙𝑑 𝐶 𝐹 ri Flow arrival rate li k Length of kth packet of flow i ti k Arrival time of flow i Ti k Duration C Output link speed F Estimated rate of the accepted traffic
  • 16. Pseudocode Don’t worry It’s just an initial prototype
  • 18. Evaluation • Competitors – FIFO (first in first out, naïve) – RED (random early detection) – FRED (flow random early drop, drop based on flow state) – DRR (deficit round robin, an efficient implementation of weighted fair queueing) – CSFQ
  • 19. What Should We Evaluate • Total throughput • Single flow throughput in congested network – TCP – UDP • Throughput under Large Latencies
  • 20. Total Throughput of TCP/UDP Flows
  • 21. Multiple Congested Links • Each UDP sends at twice its fair rate
  • 24. Throughputs with Large Latency • Propagation delay: 100ms Algorithm Mean Std. dev DRR 6080 64 CSFQ 5761 220 FRED 4974 190 RED 628 80 FIFO 378 69
  • 25. Throughputs with Large Latency • Propagation delay: 100ms Algorithm Mean Std. dev DRR 6080 64 CSFQ 5761 220 FRED 4974 190 RED 628 80 FIFO 378 69
  • 26. Summary • CSFQ – a hybrid scheme that asymptotically converges to max-min fairness • Two neat ideas – a decomposition of edge and core routers – a simple technique to estimate the fair rate in a core router • Can achieve a significant degree of fairness – comparable or superior to FRED
  • 27. Drawbacks & Discussion • Effect of large latencies • All routers in an island need to be simultaneously upgraded • Dynamic packet state needs to be implemented somehow – Using IP fragmentation header fields? • Assume benign routers – What if buggy or malicious routers exist?