CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.

Slides:



Advertisements
Similar presentations
Fair Queueing. Design space Buffer management: –RED, Drop-Tail, etc. Scheduling: which flow to service at a given time –FIFO –Fair Queueing.
Advertisements

Computer Networking Lecture 20 – Queue Management and QoS.
1 CNPA B Nasser S. Abouzakhar Queuing Disciplines Week 8 – Lecture 2 16 th November, 2009.
1 CONGESTION CONTROL. 2 Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because.
CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
Congestion Control Reasons: - too many packets in the network and not enough buffer space S = rate at which packets are generated R = rate at which receivers.
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
Analysis and Simulation of a Fair Queuing Algorithm
EE689 Lecture 5 Review of last lecture More on HPF RED.
15-744: Computer Networking L-11 Queue Management.
Congestion Control and Resource Allocation
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
ACN: Congestion Control1 Congestion Control and Resource Allocation.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
Random Early Detection Gateways for Congestion Avoidance
Lecture 5: Congestion Control l Challenge: how do we efficiently share network resources among billions of hosts? n Last time: TCP n This time: Alternative.
Computer Networking Lecture 20 – Queue Management and QoS.
7/15/2015HY220: Ιάκωβος Μαυροειδής1 HY220 Schedulers.
Computer Networking Lecture 22 – Queue Management and QoS.
15-744: Computer Networking L-5 Fair Queuing. 2 Fair Queuing Core-stateless Fair queuing Assigned reading [DKS90] Analysis and Simulation of a Fair Queueing.
Computer Networking Queue Management and Quality of Service (QOS)
1 Queue Management Hamed Khanmirza Principles of Networking University of Tehran.
CONGESTION CONTROL and RESOURCE ALLOCATION. Definition Resource Allocation : Process by which network elements try to meet the competing demands that.
Advance Computer Networking L-5 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
CS 268: Computer Networking L-5 Router Queue Management.
Link Scheduling & Queuing COS 461: Computer Networks
CS 268: Computer Networking L-6 Router Congestion Control.
Advance Computer Networking L-6 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
27th, Nov 2001 GLOBECOM /16 Analysis of Dynamic Behaviors of Many TCP Connections Sharing Tail-Drop / RED Routers Go Hasegawa Osaka University, Japan.
CS551: Queue Management Christos Papadopoulos (
March 29 Scheduling ?. What is Packet Scheduling? Decide when and what packet to send on output link 1 2 Scheduler flow 1 flow 2 flow n Buffer management.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Quality of Service Slides used with.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
Queue Scheduling Disciplines
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
Computer Networking Lecture 10 – TCP & Routers.
15-744: Computer Networking L-5 TCP & Routers. 2 Fair Queuing Core-stateless Fair queuing Assigned reading [DKS90] Analysis and Simulation of a Fair Queueing.
15-744: Computer Networking L-5 TCP & Routers. 2 Fair Queuing Core-stateless Fair queuing Assigned reading [DKS90] Analysis and Simulation of a Fair Queueing.
Providing QoS in IP Networks
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
1 Lecture 15 Internet resource allocation and QoS Resource Reservation Protocol Integrated Services Differentiated Services.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
QoS & Queuing Theory CS352.
CS 268: Computer Networking
Topics discussed in this section:
CS 268: Computer Networking
Chapter 6 Queuing Disciplines
Congestion Control and Resource Allocation
CONGESTION CONTROL.
Advance Computer Networking
EE 122: Router Support for Congestion Control: RED and Fair Queueing
TCP, XCP and Fair Queueing
Queuing and Queue Management
Lecture 22 – Queue Management and Quality of Service
15-744: Computer Networking
Advance Computer Networking
Computer Science Division
Advance Computer Networking
Network Simulation NET441
15-744: Computer Networking
15-744: Computer Networking
Congestion Control and Resource Allocation
Presentation transcript:

CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS

2 The Road Ahead Queuing Disciplines Fair Queuing Token Bucket

3 Queuing Disciplines Each router must implement some queuing discipline –Scheduling discipline –Drop policy Queuing allocates both bandwidth and buffer space: –Bandwidth: which packet to serve (transmit) next –Buffer space: which packet to drop next (when required) Queuing also affects latency Important for QoS; also for best effort

4 Typical Internet Queuing FIFO + drop-tail –Simplest choice –Used widely in the Internet –FIFO: scheduling discipline –Drop-tail: drop policy FIFO (first-in-first-out) –Implies single class of traffic, no priority Drop-tail –Arriving packets get dropped when queue is full regardless of flow or importance

5 Lock-out problem –Drop-tail routers treat bursty traffic poorly –Traffic gets synchronized easily  allows a few flows to monopolize the queue space Full queues –Routers are forced to have have large queues to maintain high utilizations –TCP detects congestion from loss Forces network to have long standing queues in steady- state FIFO + Drop-tail Problems

6 No policing: send more packets  get more service –Lack of isolation among flows Synchronization: end hosts react to same events –Full queue  empty  Full  empty… Poor support for bursty traffic –Almost always see burst losses!

7 Active Queue Management Design “active” router queue management to facilitate better behavior under congestion Objectives: solve FIFO problems, better support for QoS –Keep throughput high and delay low High power (throughput/delay) –Accommodate bursts Queue size should reflect ability to accept bursts rather than steady-state queuing –Research focus: Improve TCP performance with minimal hardware changes

8 Lock-out Problem Random drop –Packet arriving when queue is full causes some random packet to be dropped Drop front –On full queue, drop packet at head of queue Random drop and drop front solve the lock-out problem but not the full-queues problem

9 Full Queues Problem Drop packets before queue becomes full (early drop) Intuition: notify senders of incipient congestion –Example: early random drop (ERD): If qlen > drop level, drop each new packet with fixed probability p Does not control misbehaving users

10 Random Early Detection (RED) Detect incipient congestion Assume hosts respond to lost packets –Compliant congestion control Avoid window synchronization –Randomly mark packets Avoid bias against bursty traffic

11 RED Algorithm Maintain running average of queue length If avg < min th do nothing –Low queuing, send packets through If avg > max th, drop packet –Protection from misbehaving sources Else mark packet in a manner proportional to queue length –Notify sources of incipient congestion

12 RED Operation Min thresh Max thresh Average Queue Length min th max th max P 1.0 Avg queue length P(drop)

13 Fair Queuing: Goals How do you protect the most important packets? –How do you provide some isolation in general? –Simple priority queuing does not help Two approaches: –Fair Queuing –Leaky bucket (with other techniques which we will cover next class) FQ key goal: Allocate resources “fairly” –Keep separate queue for each flow Isolate ill-behaved users –Router does not send explicit feedback to source –Still needs e2e congestion control Still achieve statistical muxing –One flow can fill entire pipe if no contenders –Work conserving  scheduler never idles link if it has a packet

14 What is “Fairness”? At what granularity? –Flows, connections, domains? What if users have different RTTs/links/etc. –TCP is “RTT-Fair” BW inversely proportional to RTT of flow –Should they share a link fairly or be TCP-fair? Maximize fairness index? –Fairness = (  x i ) 2 /n(  x i 2 ) 0<fairness<1 Basically a tough question to answer –Typically design mechanisms instead of policy Local notion of fairness, as we will see next –User = arbitrary granularity

15 Max-min Fairness Allocate user with “small” demand what it wants, evenly divide unused resources to “big” users Formally: Resources allocated in terms of increasing demand No source gets resource share larger than its demand Sources with unsatisfied demands get equal share of resource

16 Implementing Max-min Fairness Generalized processor sharing –Fluid fairness –Bitwise round robin among all queues Why not simple round robin? –Variable packet length  can get more service by sending bigger packets –Unfair instantaneous service rate What if arrive just before/after packet departs?

17 Bit-by-bit RR Single flow: clock ticks when a bit is transmitted. For packet i: –P i = length, A i = arrival time, S i = begin transmit time, F i = finish transmit time –F i = S i +P i = max (F i-1, A i ) + P i Multiple flows: clock ticks when a bit from all active flows is transmitted  round number –Can calculate F i for each packet if number of flows is know at all times Why do we need to know flow count?  need to know A  This can be complicated

18 Bit-by-bit RR Illustration Not feasible to interleave bits on real networks –FQ simulates bit- by-bit RR

19 Fair Queuing Mapping bit-by-bit schedule onto packet transmission schedule Transmit packet with the lowest F i at any given time –How do you compute F i ? As we saw before, this is hard.

20 FQ Illustration Flow 1 Flow 2 Flow n I/P O/P Variation: Weighted Fair Queuing (WFQ)  Flows can have weight Key to QoS, as we will see in next class.

21 Bit-by-bit RR Example F=10 Flow 1 (arriving) Flow 2 transmitting F=2 Output F=5 F=8 Flow 1Flow 2 Output F=10 Cannot preempt packet currently being transmitted

22 Fair Queuing Tradeoffs FQ can control congestion by monitoring flows –Non-adaptive flows can still be a problem – why? Complex state –Must keep queue per flow Hard in routers with many flows (e.g., backbone routers) Flow aggregation is a possibility (e.g. do fairness per domain) Complex computation –Classification into flows may be hard –Must keep queues sorted by finish times –Must track number of flows at fine time scales

23 Token Bucket for Traffic Policing Tokens enter bucket at rate r Bucket depth b: capacity of bucket Overflow Tokens Packet Enough tokens  packet goes through, tokens removed Tokens Packet Not enough tokens  wait for tokens to accumulate

24 Token Bucket Characteristics On the long run, rate is limited to r On the short run, a burst of size b can be sent Amount of traffic entering at interval T is bounded by: –Traffic = b + r*T –Can provide a lose sense of isolation mong flows.