1 CS 268: Lecture 13 QoS: DiffServ and IntServ Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences University.

Slides:



Advertisements
Similar presentations
Quality of Service CS 457 Presentation Xue Gu Nov 15, 2001.
Advertisements

Spring 2003CS 4611 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
Spring 2000CS 4611 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 – QoS.
TAs: Junda Liu, DK Moon, David Zats
CS 4700 / CS 5700 Network Fundamentals Lecture 21: Quality of Service (Why is my ping time 1000ms!?!?)
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 20 – March 25, 2010.
CPSC Topics in Multimedia Networking A Mechanism for Equitable Bandwidth Allocation under QoS and Budget Constraints D. Sivakumar IBM Almaden Research.
Differentiated Services. Service Differentiation in the Internet Different applications have varying bandwidth, delay, and reliability requirements How.
Copyright: RSVP The ReSerVation Protocol by Sujay koduri.
15-441: Computer Networking Lecture 18: QoS Thanks to David Anderson and Srini Seshan.
Integrated Services and Differentiated Services. Limitations of IP Architecture in Supporting Resource Management IP provides only best effort service.
ACN: IntServ and DiffServ1 Integrated Service (IntServ) versus Differentiated Service (Diffserv) Information taken from Kurose and Ross textbook “ Computer.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
CS Summer 2003 Lecture 8. CS Summer 2003 Populating LFIB with LDP Assigned/Learned Labels Changes in the LFIB may be triggered routing or.
CS 268: Differentiated Services Ion Stoica February 25, 2003.
1 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
15-744: Computer Networking
School of Information Technologies IP Quality of Service NETS3303/3603 Weeks
Internet QoS Syed Faisal Hasan, PhD (Research Scholar Information Trust Institute) Visiting Lecturer ECE CS/ECE 438: Communication Networks.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 3. QoS.
CS 268: Lecture 10 (Integrated Services) Ion Stoica March 4, 2002.
CS 268: Lecture 11 (Differentiated Services) Ion Stoica March 6, 2001.
Spring 2002CS 4611 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
CS 268: Integrated Services Ion Stoica February 23, 2004.
1 CS 194: Distributed Systems Resource Allocation Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer.
Internet Quality of Service. Quality of Service (QoS) The best-effort model, in which the network tries to deliver data from source to destination but.
24-1 Chapter 24. Congestion Control and Quality of Service part Quality of Service 23.6 Techniques to Improve QoS 23.7 Integrated Services 23.8.
Computer Networking Intserv, Diffserv, RSVP.
QoS Guarantees  introduction  call admission  traffic specification  link-level scheduling  call setup protocol  required reading: text, ,
Integrated Services (RFC 1633) r Architecture for providing QoS guarantees to individual application sessions r Call setup: a session requiring QoS guarantees.
1 Integrated and Differentiated Services Multimedia Systems(Module 5 Lesson 4) Summary: r Intserv Architecture RSVP signaling protocol r Diffserv Architecture.
CSE679: QoS Infrastructure to Support Multimedia Communications r Principles r Policing r Scheduling r RSVP r Integrated and Differentiated Services.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 23 - Multimedia Network Protocols (Layer 3) Klara Nahrstedt Spring 2011.
CSE QoS in IP. CSE Improving QOS in IP Networks Thus far: “making the best of best effort”
IP QoS for 3G. A Possible Solution The main focus of this network QoS mechanism is to provide one, real time, service in addition to the normal best effort.
Computer Networking Intserv, Diffserv, RSVP.
QOS مظفر بگ محمدی دانشگاه ایلام. 2 Why a New Service Model? Best effort clearly insufficient –Some applications need more assurances from the network.
CS 268: Integrated Services Lakshminarayanan Subramanian Feb 20, 2003.
CSC 336 Data Communications and Networking Lecture 8d: Congestion Control : RSVP Dr. Cheer-Sun Yang Spring 2001.
1 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services MPLS.
Wolfgang EffelsbergUniversity of Mannheim1 Differentiated Services for the Internet Wolfgang Effelsberg University of Mannheim September 2001.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 20 – March 25, 2010.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
© Jörg Liebeherr, Quality-of-Service Architectures for the Internet Integrated Services (IntServ)
© Jörg Liebeherr, Quality-of-Service Architectures for the Internet.
CS640: Introduction to Computer Networks Aditya Akella Lecture 21 – QoS.
EE 122: Lecture 15 (Quality of Service) Ion Stoica October 25, 2001.
An End-to-End Service Architecture r Provide assured service, premium service, and best effort service (RFC 2638) Assured service: provide reliable service.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
EE 122: Integrated Services Ion Stoica November 13, 2002.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
An End-to-End Service Architecture r Provide assured service, premium service, and best effort service (RFC 2638) Assured service: provide reliable service.
Integrated Services & RSVP Types of pplications Basic approach in IntServ Key components Service models.
Quality of Service Frameworks Hamed Khanmirza Principles of Network University of Tehran.
1 Lecture 15 Internet resource allocation and QoS Resource Reservation Protocol Integrated Services Differentiated Services.
Advanced Computer Networks
RSVP and Integrated Services in the Internet: A Tutorial
EE 122: Lecture 16/17 (Integrated Services)
Taxonomy of network applications
Advanced Computer Networks
CS 268: Lecture 12 QoS: DiffServ and IntServ More “Why” Than “What”
EE 122: Quality of Service and Resource Allocation
EE 122: Lecture 18 (Differentiated Services)
Computer Science Division
EE 122: Differentiated Services
CIS679: Two Planes and Int-Serv Model
University of Houston Quality of Service Datacom II Lecture 3
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Presentation transcript:

1 CS 268: Lecture 13 QoS: DiffServ and IntServ Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences University of California, Berkeley Berkeley, CA

2 Quality of Service  Traditional Internet gives single class of best-effort service -Even though ToS bits were included in the original IP header  Treats all packets the same -All customers -All applications  Should Internet give better quality service to some packets? -Why? -Why not?

3 Three Relevant Factors  Application performance  Bandwidth required to provide performance  Complexity/cost of required mechanisms

4 Providing Better Service  Routing or Forwarding  Scheduling or Dropping  Relative or Absolute

5 Relative QoS  Priority scheduling -Favored packets get lower delay and lower drop rate  Priority dropping -All sent packets get same average delay  Why bother with priority dropping?

6 Differentiated Services (DiffServ)  Goal: offer different levels of service -Organized around domains -Edge and core routers  Edge routers -Sort packets into classes (based on variety of factors) -Police/shape traffic -Set bits (DSCP) in packet header  Core routers -Handle packet (PHB) based on DSCP

7 DiffServ Architecture Ingress Egress Ingress Egress DS-1 DS-2 Edge router Core router

8 Traffic Policing/Shaping  Token bucket (r,b)  Police: if token is available, packet is considered “in” -Otherwise considered “out”  Shape: packet is delayed until token is available

9 Token Bucket  Parameters -r – average rate, i.e., rate at which tokens fill the bucket -b – bucket depth -R – maximum link capacity or peak rate (optional parameter)  A bit is transmitted only when there is an available token r bps b bits <= R bps regulator time bits b*R/(R-r) slope R slope r Maximum # of bits sent

10 Traffic Enforcement: Example  r = 100 Kbps; b = 3 Kb; R = 500 Kbps 3Kb T = 0 : 1Kb packet arrives (a) 2.2Kb T = 2ms : packet transmitted b = 3Kb – 1Kb + 2ms*100Kbps = 2.2Kb (b) 2.4Kb T = 4ms : 3Kb packet arrives (c) 3Kb T = 10ms : packet needs to wait until enough tokens are in the bucket! (d) 0.6Kb T = 16ms : packet transmitted (e)

11 Source Traffic Characterization: Arrival Curve  Arrival curve – maximum amount of bits transmitted during an interval of time Δt  Use token bucket to bound the arrival curve ΔtΔt bits Arrival curve time bps

12 Arrival Curve: Example  Arrival curve – maximum amount of bits transmitted during an interval of time Δt  Use token bucket to bound the arrival curve bits Arrival curve time bps (R=2,b=1,r=1) ΔtΔt

13 QoS Guarantees: Per-hop Reservation  End-host: specify -the arrival rate characterized by token-bucket with parameters (b,r,R) -the maximum maximum admissible delay D, no losses  Router: allocate bandwidth r a and buffer space B a such that -no packet is dropped -no packet experiences a delay larger than D bits b*R/(R-r) slope r Arrival curve D BaBa slope r a R

14 Implementing Drop Priority  RED in/out (RIO)  Separate dropping curves for in and out traffic -Out curve measures all packets -In curve measures only in packets OUTIN Average queue length 1 Dropping probability

15 Sender and Receiver Versions  Sender-based version: -Sender (or token bucket next to sender) sets in/out bits -Routers service with priority  Receiver-based version: use ECN -Put incoming packets through token bucket -If packet is “in”, cancel any ECN bits -Receiver only told about congestion for “out” packets

16 Combining Drop and Delay Priority  Delay priority traffic gets high forwarding priority  Drop priority traffic uses RIO DelayP? DropP?RIO yes no yes no high forwarding priority low forwarding priority

17 Why Does Giving Priority Help?  Making service for one class of traffic better means that service for another class of traffic must get worse  Why does that help?

18 From Relative to Absolute Service  Priority mechanisms can only deliver absolute assurances if total load is regulated  Service Level Agreements (SLAs) specify: -Amount user (organization, etc.) can send -Level of service delivered to that traffic  Premium Service (DiffServ) offers low (unspecified) delay and no drops -Acceptance of proposed SLAs managed by “Bandwidth Broker” -Only over long time scales

19 Providing Assurances  SLAs are typically defined without restriction on destination  Can’t provision network efficiently, but may not matter Ingress Traffic profile

20 Inter-Domain Premium DiffServ  Achieve end-to-end bandwidth guarantee  But is this done for all paths? BB sender receiver 8 profile 6 4

21 From DiffServ to IntServ  Can easily provide some traffic better service than others -Making absolute assurances requires controlling load  DiffServ worst-case provisioning very inefficient -Based on aggregate offered load, not for a specific path  What about fine-grain assurances about QoS? -Per-flow, not per traffic class  Requires admission control for each flow -E.g., reservations

22 Major Philosophical Change  Per-flow admission control is drastic change to the Internet -But best-effort still available (used for most traffic)  We will first discuss whether this is a good idea -Going back to basics about application performance, etc.  We will then talk about how one might do this -Cursory overview, because details are in the dustbin of history

23 Reservations or Best-Effort  Basic question: -Should we admit all flows (BE), or -Refuse some to preserve good service for current flows (R)  Precedents: -The telephone network uses admission control -The current Internet does not  Which one is right? Huge ideological battle!!  How can we decide? -Which provides better application performance?

24 Modeling Application Performance  Not a simple function of delay/jitter/loss  Depends on user perception -e.g., picture quality, etc.  Depends on adaptive application behavior -Adjust sending rate -Adjust coding (to mask errors) -Adjust “playback point” (later)  For a given application, can describe performance as a function of available bandwidth

25 Classes of Application  Traditional data applications: “elastic” -Tolerant of delay -Tolerant of loss  Streaming media applications: “real-time” -Less tolerant of delay -Less tolerant of loss -Often of the “playback” variety

26 Playback Applications  Video/audio stream being sent  “Played back” at receiver  Receiver picks time to play back content -“playback point”  Playback point: -Moves: distortion -Late: delay -Misses packets: “drops”

27 The Overprovisioning Debate  Some claim bandwidth is plentiful everywhere -Cheap -Or needed for fail-over  But that’s within core of ISPs  Bandwidth is scarce: -At edge -Between providers  Intserv would help pay for bandwidth in those places

28 IntServ  IntServ = Integrated Services Internet  Goal: support wider variety of services in single architecture  Effort largely led by PARC, MIT, USC/ISI

29 Key IntServ Design Decisions  Reservations are made by endpoints -Network is not making guesses about application requirements  IntServ is multicast-oriented -Assumed that large broadcasts would be a driver of both IntServ and multicast -Reservations made by receivers  Soft-state: state in routers always refreshed by endpoints  Service guarantees are end-to-end on a per-flow basis

30 Integrated Services Internet  Flow is QoS abstraction  Each flow has a fixed or stable path  Routers along the path maintain state for the flow  State is used to deliver appropriate service

31 IntServ Mechanisms  Reservation protocol: transmits service request to network -TSpec: traffic description -RSpec: service description  Admission control: determines whether to accept request  Packet scheduling: ensures router meets service rqmts  Routing: pin routes, look for resource-rich routes

32 IntServ Services  Kinds of service assurances: -Guaranteed (never fails unless major failure) -Predictive (will almost never fail)  Corresponding admission control: -Guaranteed: worst-case No guessing about traffic -Predictive: measurement-based Gamble on aggregate behavior changing slowly

33 Integrated Services Example Sender Receiver

34 Integrated Services Example Sender Receiver  Allocate resources - perform per-flow admission control

35 Integrated Services Example Sender Receiver  Install per-flow state

36 Sender Receiver  Install per flow state Integrated Services Example

37 Integrated Services Example: Data Path Sender Receiver  Per-flow classification

38 Integrated Services Example: Data Path Sender Receiver  Per-flow buffer management

39 Integrated Services Example Sender Receiver Per-flow scheduling

40 How Things Fit Together Admission Control Data In Data Out Control Plane Data Plane Scheduler Routing Messages RSVP messages Classifier RSVP Route Lookup Forwarding Table Per Flow QoS Table

41 RSVP Reservation Protocol  Performs signaling to set up reservation state for a session  A session is a simplex data flow sent to a unicast or a multicast address, characterized by -  Multiple senders and receivers can be in same session

42 The Big Picture Network Sender Receiver PATH Msg

43 The Big Picture (2) Network Sender Receiver PATH Msg RESV Msg

44 RSVP Basic Operations  Sender: sends PATH message via the data delivery path -Set up the path state each router including the address of previous hop  Receiver sends RESV message on the reverse path -Specifies the reservation style, QoS desired (RSpec) -Set up the reservation state at each router  Things to notice -Receiver initiated reservation -Decouple routing from reservation

45 Route Pinning  Problem: asymmetric routes -You may reserve resources on R  S3  S5  S4  S1  S, but data travels on S  S1  S2  S3  R !  Solution: use PATH to remember direct path from S to R, i.e., perform route pinning S1 S2 S3 S S R R S5 S4 PATH RESV IP routing

46 PATH and RESV messages  PATH also specifies -Source traffic characteristics Use token bucket  RESV specifies -Service requirements -Source traffic characteristics (from PATH) -Filter specification, i.e., what senders can use reservation -Based on these routers perform reservation

47 Reservation Style  Motivation: achieve more efficient resource  Observation: in a video conferencing when there are M senders, only a few are active simultaneously -Multiple senders can share the same reservation  Various reservation styles specify different rules for sharing among senders  Key distinction: -Reserved resources (bandwidth) -Which packets use those resources

48 Reservation Styles: Filters  Wildcard filter: all session packets share resources -Good for small number of simultaneously active senders  Fixed filter: no sharing among senders, sender explicitly identified in reservation -Sources cannot be modified over time -Allows reserved resources to be targeted to particular paths  Dynamic filter: resource shared by senders that are (explicitly) specified -Sources can be modified over time -Switching between speakers at a conference

49 What Did We Miss?  Make aggregation central to design -In core, don’t want to keep track of each flow -Don’t want to process each RESV message  Economics: user/provider and provider/provider -We talked about it (at great length) but didn’t realize how inflexible the providers would be  Too complicated: filter styles a waste of time  Multicast focus?