TAs: Junda Liu, DK Moon, David Zats

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.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 – QoS.
Xiaowei Yang CS 356: Computer Network Architectures Lecture 19: Integrated Services and Differentiated Services Xiaowei Yang
QoS: IntServ and DiffServ Supplemental Slides Aditya Akella 02/26/2007.
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #11 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
Differentiated Services. Service Differentiation in the Internet Different applications have varying bandwidth, delay, and reliability requirements How.
A Case for Relative Differentiated Services and the Proportional Differentiation Model Constantinos Dovrolis Parameswaran Ramanathan University of Wisconsin-Madison.
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.
1 EE 122: Final Review Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson,
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
CS 268: Differentiated Services Ion Stoica February 25, 2003.
CSE 401N Multimedia Networking-2 Lecture-19. Improving QOS in IP Networks Thus far: “making the best of best effort” Future: next generation Internet.
1 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services.
15-744: Computer Networking
1 CS 268: Lecture 13 QoS: DiffServ and IntServ Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences University.
1 Network Architecture and Design Internet QoS Differentiated Services (DiffServ) Multiprotocol Label Switching (MPLS) Reference Zheng Wang, Internet QoS,
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 Network Architecture and Design Internet QoS Differentiated Services (DiffServ) Multiprotocol Label Switching (MPLS) Reference Zheng Wang, Internet QoS,
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.
Tiziana FerrariQuality of Service for Remote Control in the High Energy Physics Experiments CHEP, 07 Feb Quality of Service for Remote Control in.
QoS in MPLS SMU CSE 8344.
Computer Networking Quality-of-Service (QoS) Dr Sandra I. Woolley.
Integrated Services (RFC 1633) r Architecture for providing QoS guarantees to individual application sessions r Call setup: a session requiring QoS guarantees.
A Two-bit Differentiated Services Architecture K. Nichols, V. Jacobson, L. Zhang presented by Wendy Edwards.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 23 - Multimedia Network Protocols (Layer 3) Klara Nahrstedt Spring 2011.
1 Quality of Service (QoS) - DiffServ EE 122: Intro to Communication Networks Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew.
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.
Quality of Service (QoS)
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.
1 Quality of Service Outline Realtime Applications Integrated Services Differentiated Services MPLS.
CIS679: DiffServ Model r Review of Last Lecture r 2-bit DiffServ architecture.
Wolfgang EffelsbergUniversity of Mannheim1 Differentiated Services for the Internet Wolfgang Effelsberg University of Mannheim September 2001.
Differentiated Services for the Internet Selma Yilmaz.
Network Support for QoS – DiffServ and IntServ Hongli Luo CEIT, IPFW.
Providing QoS in IP Networks Future: next generation Internet with QoS guarantees m Differentiated Services: differential guarantees m Integrated Services:
© 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.
Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.
1 Multimedia Networking: Beyond Best-Effort Internet.
An End-to-End Service Architecture r Provide assured service, premium service, and best effort service (RFC 2638) Assured service: provide reliable service.
Differentiated Services IntServ is too complex –More focus on services than deployment –Functionality similar to ATM, but at the IP layer –Per flow QoS.
Differentiated Services Two Approaches for Providing QoS on the Internet u “Freeway model” -- integrated services Internet (intserv) – Build a dedicated.
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.
Mar-16 1 Cairo University Faculty of Engineering Electronics &Communication dpt. 4th year Linux-based Implementation Of a Router (B.Sc Graduation project)
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
EE 122: Quality of Service and Resource Allocation
EE 122: Lecture 18 (Differentiated Services)
Computer Science Division
Congestion Control, Quality of Service, & Internetworking
EE 122: Differentiated Services
CIS679: Two Planes and Int-Serv Model
Presentation transcript:

TAs: Junda Liu, DK Moon, David Zats EE 122: Quality of Service Ion Stoica TAs: Junda Liu, DK Moon, David Zats http://inst.eecs.berkeley.edu/~ee122/fa09 (Materials with thanks to Vern Paxson, Jennifer Rexford, and colleagues at UC Berkeley)

Goals of Today’s Lecture Traffic characterization Token bucket QoS models: Integrated Services: End-to-end network “reservations” Differentiated Services: First Class vs. Coach

Reserving Resources End-to-End Source sends a reservation message E.g., “this flow needs 5 Mbps” Each router along the path Keeps track of the reserved resources E.g., “the link has 6 Mbps left” Checks if enough resources remain E.g., “6 Mbps > 5 Mbps, so circuit can be accepted” Creates state for flow and reserves resources E.g., “now only 1 Mbps is available”

How to Specify Bursty Traffic Option #1: Specify the maximum bit rate. Problems? Maximum bit rate may be much higher average Reserving for the worst case is wasteful Option #2: Specify the average bit rate. Problems? Average bit rate is not sufficient Network will not be able to carry all of the packets Reserving for average case leads to bad performance Option #3: Specify the burstiness of the traffic Specify both the average rate and the burst size Allows the sender to transmit bursty traffic … and the network to reserve the necessary resources

Characterizing Burstiness: Token Bucket Parameters r – average rate, i.e., rate at which tokens fill the bucket b – bucket depth (limits size of burst) R – maximum link capacity or peak rate A bit can be transmitted only when a token is available time bits b·R/(R-r) slope R slope r Maximum # of bits sent b/(R-r) r bps b bits ≤ R bps regulator

Traffic Enforcement: Example r = 100 Kbps; b = 3 Kb; R = 500 Kbps 2.2Kb T = 2ms : packet transmitted b = 3Kb – 1Kb + 2ms*100Kbps = 2.2Kb (b) 3Kb T = 0 : 1Kb packet arrives (a) 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)

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

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

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

Ensuring the Source Behaves Guarantees depend on the source behaving Extra traffic might overload one or more links Leading to congestion, and resulting delay and loss Solution: need to enforce the traffic specification Solution #1: policing Drop all data in excess of the traffic specification Solution #2: shaping Delay the data until it obeys the traffic specification Solution #3: marking Mark all data in excess of the traffic specification … and give these packets lower priority in the network

Integrated Services: Required Elements Reservation Protocol How service request gets from host to network Admission control algorithm How network decides if it can accept flow Packet scheduling algorithms How routers deliver service Architecture for solution: IntServ Provides service guarantees at a per-flow granularity

Control Plane vs. Data Plane How information gets to routers Data plane: What routers do with that information when processing data packets Control Data

Control Plane: Resource Reservation Receiver Sender

Control Plane: Resource Reservation Sender sends specification of traffic profile Receiver Sender

Control Plane: Resource Reservation Path established (or perhaps admission control denies path) Receiver Sender

Control Plane: Resource Reservation Receiver Sender The receiver accepts reservation request

Control Plane: Admission Control Per-flow state (soft state) Receiver Sender

Control Plane: Admission Control Receiver Per-flow state on all routers in path Sender

Data Plane Receiver Sender Per-flow classification on each router

Data Plane Receiver Sender Per-flow classification on each router

Data Plane Per-flow scheduling on each router Receiver Sender

Admission Control Parameter-based: worst case analysis Guaranteed service Lower utilization Measurement-based: measure current traffic “Controlled load” service Higher utilization Remember that best-effort service co-exists No need for IntServ traffic to achieve high utilization

Problems with IntServ Scalability: per-flow state & classification Aggregation/encapsulation techniques can help Can overprovision big links, per-flow ok on small links Scalability can be fixed - but no second chance Economic arrangements: Need sophisticated settlements between ISPs Contemporary settlements are primitive Unidirectional, or barter User charging mechanisms: need QoS pricing On a fine-grained basis

Questions Before We Proceed? 5 Minute Break Questions Before We Proceed?

Differentiated Services (DiffServ) Give some traffic better treatment than other Application requirements: interactive vs. bulk transfer Economic arrangements: first-class versus coach What kind of better service could you give? Fewer drops Lower delay Lower delay variation (jitter) How to know which packets get better service? Bits in packet header Deals with traffic in aggregate Provides weaker services But much more scalable

Diffserv Architecture Ingress routers - entrance to a DiffServ domain Police or shape traffic Set Differentiated Service Code Point (DSCP) in IP header Core routers Implement Per Hop Behavior (PHB) for each DSCP Process packets based on DSCP Ingress Egress DS-1 DS-2 Edge router Core router

Traffic Limitations Can’t give all traffic better service! Must limit the amount of traffic that gets better service Service Level Agreements (SLA) Source agrees to limit amount of traffic in given class Network agrees to give that traffic “better” service For a price! Economics play an important (fatal?) role in QoS

Expedited Forwarding (EF) Give packet minimal delay and loss service E.g., put EF packets in high priority queue To make this a true “absolute” service All SLAs must sum to less than the link speed

Is Delay the Problem? Packets are dropped when queue starts to grow Thus, delays are mostly speed-of-light latency Service quality is mostly expressed by drop-rate Want to give traffic different levels of dropping

Assured Forwarding (AS) Packets are all serviced in order Makes TCP implementations perform well But some packets can be marked as low-drop and others as high-drop Think of it as priority levels for dropping

Example 10% premium traffic, 90% ordinary traffic Overall drop rate is 5% Give premium traffic 0% drops; ordinary traffic a 5.55% drop rate Large improvement in service for the small class of traffic without imposing much of a penalty on the other traffic Count on SLAs to control premium traffic

DiffServ “Code Points” Use six of the ToS bits in IP packet header Define various “code points” Alternative classes of service (drop probability and assured forwarding) Each code point defines a desired per-hop behavior Description of the service the packet should get Not a description of the router implementation of that service

Differentiated Service (DS) Field Version HLen TOS Length Identification Fragment offset Flags Source address Destination address TTL Protocol Header checksum 4 8 16 19 31 Data IP header DS Field 5 6 7 ECN DS field encodes Per-Hop Behavior (PHB) E.g., Expedited Forwarding (all packets receive minimal delay & loss) E.g., Assured Forwarding (packets marked with low/high drop probabilities)

Edge Router Class 1 Marked traffic Class 2 Data traffic Classifier Ingress Traffic conditioner Class 1 Marked traffic Traffic conditioner Class 2 Data traffic Classifier Scheduler Best-effort Per aggregate Classification (e.g., user)

Assumptions Assume two bits Traffic conditioner (TC) implement P-bit denotes premium traffic A-bit denotes assured traffic Traffic conditioner (TC) implement Metering (policing) Marking Shaping

TC Performing Metering/Marking Used to implement Assured Service In-profile traffic is marked: A-bit is set in every packet Out-of-profile (excess) traffic is unmarked A-bit is cleared (if it was previously set) in every packet; this traffic treated as best-effort r bps User profile (token bucket) b bits assured traffic Set A-bit in-profile traffic Metering Clear A-bit out-of-profile traffic

TC Performing Metering/Marking/Shaping Used to implement Premium Service In-profile traffic marked: Set P-bit in each packet Out-of-profile traffic is delayed, and when buffer overflows it is dropped r bps User profile (token bucket) b bits premium traffic Metering/ Shaper/ Set P-bit in-profile traffic out-of-profile traffic (delayed or dropped)

Scheduler Premium traffic sent at high priority Assured and best-effort traffic sent at low priority Always drop OUT (best-effort) packets first Implemented by the RED with In and Out (RIO) scheduler yes P-bit set? high priority no yes A-bit set? low priority no RIO

Control Path Each domain is assigned a Bandwidth Broker (BB) Usually, used to perform ingress-egress bandwidth allocation BB is responsible to perform admission control in the entire domain BB not easy to implement Require complete knowledge about domain Single point of failure, may be performance bottleneck Designing BB still a research problem

Example Achieve end-to-end bandwidth guarantee BB BB BB 2 3 1 7 5 9 8 profile 6 profile 4 profile receiver sender

Comparison to Best-Effort & Intserv Diffserv Intserv Service Connectivity No isolation No guarantees Per aggregate isolation Per aggregate guarantee Per flow isolation Per flow guarantee Service scope End-to-end Domain Complexity No setup Long term setup Per flow steup Scalability Highly scalable (nodes maintain only routing state) Scalable (edge routers maintain per aggregate state; core routers per class state) Not scalable (each router maintains per flow state)

Discussion: Limited QoS Deployment End-to-end QoS across multiple providers/domains is not available today Issue #1: complexity of payment Requires payment system among multiple parties And agreement on what constitutes service Diffserv tries to structure this as series of bilateral agreements … … but lessens likelihood of end-to-end service Architecture includes notion of “Bandwidth Broker” for end-to-end provisioning Solid design has proved elusive Need infrastructure for metering/billing end user

Limited QoS Deployment, con’t Issue #2: prevalence of overprovisioning Within a large ISP, links tend to have plenty of headroom Inter-ISP links are not over provisioned, however Is overprovisioning enough? If so, is this only because access links are slow? What about Korea, Japan, and other countries with fast access links? Disconnect: ISPs overprovision, users get bad service Key difference: intra-ISP vs. general end-to-end

Exploiting Lack of End-to-End QoS Suppose an ISP offers their own Internet service E.g., portal (ala’ Yahoo) or search engine (ala’ Google) Then it’s in their interest that performance to Yahoo or Google is inferior So customers prefer to use their value-added services ISP can recognize traffic to competitor and demote it charge competitor if they want well-provision paths just not put effort/$ into high-capacity interconnects w/ other ISPs; congestion provides traffic demotion directly Works particularly well for large providers w/ lots of valuable content

Summary QoS models IntServ provides per-flow performance guarantees Reservations & admission control Descriptions of bursty traffic: token buckets IntServ provides per-flow performance guarantees But lacks scalability DiffServ provides per-aggregate tiers of relative perf. Scalable, but not as powerful Neither is generally available end-to-end today ISPs may manipulate what services receive what performance raises issues of: network neutrality