1 Comnet 2010 Communication Networks Recitation 10 QoS.

Slides:



Advertisements
Similar presentations
CprE 458/558: Real-Time Systems
Advertisements

Quality of Service CS 457 Presentation Xue Gu Nov 15, 2001.
Computer Networking Lecture 20 – Queue Management and QoS.
Spring 2000CS 4611 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
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.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
Review: Routing algorithms Distance Vector algorithm. –What information is maintained in each router? –How to distribute the global network information?
Network and Communications Hongsik Choi Department of Computer Science Virginia Commonwealth University.
Congestion Control Tanenbaum 5.3 Tanenbaum 6.5. Congestion Control Network Layer – Congestion control point to point Transport Layer – Congestion control.
24-1 Chapter 24. Congestion Control and Quality of Service (part 1) 23.1 Data Traffic 23.2 Congestion 23.3 Congestion Control 23.4 Two Examples.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 16 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2009.
Quality of Service Requirements
1.  Congestion Control Congestion Control  Factors that Cause Congestion Factors that Cause Congestion  Congestion Control vs Flow Control Congestion.
Department of Computer and IT Engineering University of Kurdistan Computer Networks II Quality of Service (QoS) By: Dr. Alireza Abdollahpouri.
Engineering Internet QoS
Jaringan Komputer Lanjut Traffic Management Aurelio Rahmadian.
Network Layer Chapter 5 Design Issues Routing Algorithms
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 16: Congestion control II Slides used with.
Quality of Service Support
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
CSE 401N Multimedia Networking-2 Lecture-19. Improving QOS in IP Networks Thus far: “making the best of best effort” Future: next generation Internet.
Quality of Service Support
1 Comnet 2006 Communication Networks Recitation 10 QoS.
CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8.
Quality of Service. Overview Why QoS? When QoS? One model: Integrated services Contrast to Differentiated Services (more modern; more practical; not covered)
CSE QoS in IP. CSE Improving QOS in IP Networks Thus far: “making the best of best effort”
Quality of Service (QoS)
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
1 Why traffic shaping? yIn packet networks that implement resource sharing xadmission control and scheduling alone are insufficient users may attempt to.
Link Scheduling & Queuing COS 461: Computer Networks
1 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 20 – March 25, 2010.
TCP Trunking: Design, Implementation and Performance H.T. Kung and S. Y. Wang.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 23 Congestion Control and Quality of Service.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
CS 447 Network & Data Communication QoS Implementation for the Internet IntServ and DiffServ Department of Computer Science Southern Illinois University.
Winter 2008CS244a Handout 81 CS244a: An Introduction to Computer Networks Handout 8: Congestion Avoidance and Active Queue Management Nick McKeown Professor.
CONGESTION CONTROL.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
An End-to-End Service Architecture r Provide assured service, premium service, and best effort service (RFC 2638) Assured service: provide reliable service.
NOSSDAV '97 Understanding TCP Dynamics in an Integrated Services Internet Wu-chang Feng, Dilip Kandlur, Debanjan Saha, and Kang Shin.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 16 – Multimedia Transport (Part 2) Klara Nahrstedt Spring 2011.
Congestion Avoidance Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.
An End-to-End Service Architecture r Provide assured service, premium service, and best effort service (RFC 2638) Assured service: provide reliable service.
Providing QoS in IP Networks
1 Lecture 15 Internet resource allocation and QoS Resource Reservation Protocol Integrated Services Differentiated Services.
The Network Layer Congestion Control Algorithms & Quality-of-Service Chapter 5.
Tel Hai Academic College Department of Computer Science Prof. Reuven Aviv Markov Models for data flow In Computer Networks Resource: Fayez Gebali, Analysis.
Other Methods of Dealing with Congestion
QoS & Queuing Theory CS352.
Topics discussed in this section:
Chapter 6 Congestion Avoidance
Buffer Management in a Switch
Congestion Control: The Role of the Routers
CONGESTION CONTROL.
EE 122: Router Support for Congestion Control: RED and Fair Queueing
Queuing and Queue Management
Other Methods of Dealing with Congestion
Other Methods of Dealing with Congestion
Computer Science Division
Congestion Control, Quality of Service, & Internetworking
Figure Areas in an autonomous system
EECS 122: Introduction to Computer Networks TCP Variations
The Network Layer Congestion Control Algorithms & Quality-of-Service
Network Support for Quality of Service (QoS)
Introduction to Traffic Shaping
Presentation transcript:

1 Comnet 2010 Communication Networks Recitation 10 QoS

2 Comnet 2010 Quality of Service: What is it? Multimedia applications: network audio and video network provides application with level of performance needed for application to function. QoS

3 Comnet 2010 Traffic Shaping The Leaky Bucket Algorithm (a) A leaky bucket with water. (b) a leaky bucket with packets.

4 Comnet 2010 Leaky Bucket example A source generates data in terms of bursts: 3 MB bursts lasting 2 msec once every 100 msec.A source generates data in terms of bursts: 3 MB bursts lasting 2 msec once every 100 msec. The network offers a bandwidth of 60 MB/sec.The network offers a bandwidth of 60 MB/sec. The leaky bucket has a capacity of 4 MB. How does the output look like?The leaky bucket has a capacity of 4 MB. How does the output look like? Input: 0-2 msec: 1500 MB/sec; msec: 1500 MB/sec; msec: 1500 MB/sec; …Input: 0-2 msec: 1500 MB/sec; msec: 1500 MB/sec; msec: 1500 MB/sec; … Output: 0-50 msec: 60 MB/sec; msec: 60 MB/sec; ….Output: 0-50 msec: 60 MB/sec; msec: 60 MB/sec; ….

5 Comnet 2010 Leaky Bucket CNTD. What should be the capacity of the leaky bucket to avoid loss?What should be the capacity of the leaky bucket to avoid loss? During the burst, data inflow is at the rate of 1.5 MB/msec and the outflow is at the rate of 0.06 MB/msec.During the burst, data inflow is at the rate of 1.5 MB/msec and the outflow is at the rate of 0.06 MB/msec. So accumulation is at the rate of 1.44 MB/msec. So at the end of 2 msec, there will be an accumulation of 2.88 MB. This is the minimum leaky bucket capacity to avoid buffer overflow and hence data loss.So accumulation is at the rate of 1.44 MB/msec. So at the end of 2 msec, there will be an accumulation of 2.88 MB. This is the minimum leaky bucket capacity to avoid buffer overflow and hence data loss.

6 Comnet 2010 The Token Bucket Algorithm (a) Before. (b) After Token bucket allows some burstiness (up to the number of token the bucket can hold)

7 Comnet 2010 Token Bucket – simple example 2 tokens of size 100 bytes added each second to the token bucket of capacity 500 bytes2 tokens of size 100 bytes added each second to the token bucket of capacity 500 bytes –Avg. rate = 200 bytes/sec, burst size = 500 bytes –Packets bigger than 500 bytes will never be sent –Peak rate is unbounded – i.e., 500 bytes of burst can be transmitted arbitrarily fast

8 Comnet 2010 Token Bucket example Bucket capacity: 1 MBBucket capacity: 1 MB Token arrival rate: 2 MB/secToken arrival rate: 2 MB/sec Network capacity: 10 MB/secNetwork capacity: 10 MB/sec Application produces 0.5 MB burst every 250 msec For 3 secondsApplication produces 0.5 MB burst every 250 msec For 3 seconds The bucket is full of tokensThe bucket is full of tokens

9 Comnet 2010 Token Bucket example CNTD. Initially, output can be at the rate of 10 MB/s. But how long can the bucket sustain this?Initially, output can be at the rate of 10 MB/s. But how long can the bucket sustain this? –First, 1MB can be sent –From then on, for X seconds, the token input rate is 2MB/s, the traffic rate is 10MB/s –1 + 2X = 10X  8X = 1  X = 1/8 sec =125 ms –The bucket can transmit 1.25 MB in this time > 0.5MB the application produces Output:0-50 ms: 10 MB/sOutput:0-50 ms: 10 MB/s ms: None

10 Comnet 2010 Token Bucket example CNTD. At the end of this period, the amount of tokens in the bucket is:At the end of this period, the amount of tokens in the bucket is: –1MB+250ms*2MB/s-0.5MB=1MB So the bucket is full again!So the bucket is full again! Repeat for 3 secondsRepeat for 3 seconds

11 Comnet 2010 Minimum Bucket size and Token Rate Discarding Bucket (Policing)Discarding Bucket (Policing) –Bucket Size ≥ 0.5MB –Token Rate ≥ 0.5MB/250ms = 2MB/s Queueing Bucket (Shaping)Queueing Bucket (Shaping) –How will the traffic look with Bucket Size = 200K? 0.2+2X=10X  X=0.2/8=0.025s=25ms0.2+2X=10X  X=0.2/8=0.025s=25ms 0-25ms : 10 MB/s = 0.25MB. 0.25MB left0-25ms : 10 MB/s = 0.25MB. 0.25MB left 0.25MB/(2MB/s) = 125ms0.25MB/(2MB/s) = 125ms ms: 2MB/s25-150ms: 2MB/s ms: None ms: None –Tokens after: 100ms*2MB/s=0.2MB

12 Comnet 2010 (σ,ρ) Model Over an interval of length t the number of packets/bits that are admitted is less than or equal to (σ+ρt).Over an interval of length t the number of packets/bits that are admitted is less than or equal to (σ+ρt). Composing flows (σ 1,ρ 1 ) & (σ 2,ρ 2 )Composing flows (σ 1,ρ 1 ) & (σ 2,ρ 2 ) –Resulting flow (σ 1 + σ 2,ρ 1 +ρ 2 ) What does a router need to support streams: (σ 1,ρ 1 ) … (σ k,ρ k )What does a router need to support streams: (σ 1,ρ 1 ) … (σ k,ρ k ) –Buffer size B > Σ σ i –Rate R > Σ ρ i Admission Control (at the router)Admission Control (at the router) –Can support (σ k,ρ k ) if –Enough buffers and bandwidth R > Σ ρ i and B > Σ σ iR > Σ ρ i and B > Σ σ i

13 Comnet 2010 (σ,ρ) Model example The line from the previous question has router with 4MB of buffers. How many flows of the above kind can it accept?The line from the previous question has router with 4MB of buffers. How many flows of the above kind can it accept? σ = 0.5MB, ρ = 0.5MB/250ms = 2MB/sσ = 0.5MB, ρ = 0.5MB/250ms = 2MB/s For n flows, we require 0.5n MB buffers, 2n MB/s rate  n = 5.For n flows, we require 0.5n MB buffers, 2n MB/s rate  n = 5. Each line will be served with a 0.5MB:2MB/s token bucketEach line will be served with a 0.5MB:2MB/s token bucket

14 Comnet 2010 QoS Random Early Detection (RED) Basic premise:Basic premise: –router should signal congestion when the queue first starts building up (by dropping a packet) –but router should give flows time to reduce their sending rates before dropping more packets –Note: when RED is coupled with ECN, the router can simply mark a packet instead of dropping it Therefore, packet drops should be:Therefore, packet drops should be: –early: don’t wait for queue to overflow –random: don’t drop all packets in burst, but space them

15 Comnet 2010 RED FIFO schedulingFIFO scheduling Buffer management:Buffer management: –Probabilistically discard packets –Probability is computed as a function of average queue length (why average?) Discard Probability Average Queue Length 0 1 min_thmax_th queue_len

16 Comnet 2010 RED (cont’d) Discard Probability (P) Average Queue Length 0 1 min_thmax_th queue_len Enqueue Discard Discard/Enqueue probabilistically

17 Comnet 2010 RED (cont’d) Setting the discard probability P:Setting the discard probability P: Discard Probability Average Queue Length 0 1 min_thmax_th queue_len avg_len P max_P

18 Comnet 2010 Average vs Instantaneous Queue