CS 4700 / CS 5700 Network Fundamentals Lecture 21: Quality of Service (Why is my ping time 1000ms!?!?)

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.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 20 – March 25, 2010.
Real-Time Protocol (RTP) r Provides standard packet format for real-time application r Typically runs over UDP r Specifies header fields below r Payload.
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.
15-441: Computer Networking Lecture 18: QoS Thanks to David Anderson and Srini Seshan.
ACN: IntServ and DiffServ1 Integrated Service (IntServ) versus Differentiated Service (Diffserv) Information taken from Kurose and Ross textbook “ Computer.
QoS Protocols & Architectures by Harizakis Costas.
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.
School of Information Technologies IP Quality of Service NETS3303/3603 Weeks
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.
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.
QoS Guarantees  introduction  call admission  traffic specification  link-level scheduling  call setup protocol  required reading: text, ,
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.
1 Integrated and Differentiated Services Multimedia Systems(Module 5 Lesson 4) Summary: r Intserv Architecture RSVP signaling protocol r Diffserv Architecture.
IntServ / DiffServ Integrated Services (IntServ)
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.
QoS Architectures for Connectionless Networks
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.
© 2006 Cisco Systems, Inc. All rights reserved. 3.3: Selecting an Appropriate QoS Policy Model.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 3: Introduction to IP QoS.
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.
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.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 10 – Quality of Service (QoS)
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
Multimedia Wireless Networks: Technologies, Standards, and QoS Chapter 3. QoS Mechanisms TTM8100 Slides edited by Steinar Andresen.
© Jörg Liebeherr, Quality-of-Service Architectures for the Internet Integrated Services (IntServ)
Network Support for QoS – DiffServ and IntServ Hongli Luo CEIT, IPFW.
Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.
© Jörg Liebeherr, Quality-of-Service Architectures for the Internet.
EE 122: Lecture 15 (Quality of Service) Ion Stoica October 25, 2001.
Differentiated Services Two Approaches for Providing QoS on the Internet u “Freeway model” -- integrated services Internet (intserv) – Build a dedicated.
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.
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.
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.
Multicast and Quality of Service Internet Technologies and Applications.
Chapter 30 Quality of Service Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10. Mai 20061INF-3190: Multimedia Protocols Quality-of-Service Foreleser: Carsten Griwodz
Internet Quality of Service
Instructor Materials Chapter 6: Quality of Service
CS 4700 / CS 5700 Network Fundamentals
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Quality of Service Connecting Networks.
Advanced Computer Networks
QoS Guarantees introduction call admission traffic specification
EE 122: Quality of Service and Resource Allocation
EE 122: Lecture 18 (Differentiated Services)
EE 122: Differentiated Services
CIS679: Two Planes and Int-Serv Model
Presentation transcript:

CS 4700 / CS 5700 Network Fundamentals Lecture 21: Quality of Service (Why is my ping time 1000ms!?!?)

Motivation 2  Internet is designed to give best-effort service  i.e. all packets are treated the same  However, not all packets are the same  HTTP – delay sensitive  Voice/Video streaming – delay and jitter sensitive  Online Games – delay and jitter sensitive  BitTorrent – totally insensitive Delay, jitter, bandwidth do not matter File transfer will finish eventually  Should the network give better quality to some packets?

Three Relevant Factors 3 1. Application performance  How much bandwidth do you need?  What about delay and jitter? 2. Bandwidth required to provide performance  How to meet performance goals…  While still offering general service to all applications 3. Complexity/cost of required mechanisms  How to modify the network to meet perf. goals?  Political concerns, e.g. network neutrality  Security

QoS: Quality of Service 4  Idea: build some unfairness into the network  Some traffic is high priority, gets better service  Some traffic is low priority, gets reduced service  Thus, “important” traffic receives “better” service  What traffic is important?  What do we mean by “better” service? Is the gain guaranteed and strictly defined? Is the gain relative and fungible?

 “Soft” QoS  Packet shaping/prioritization  DiffServ  “Hard” QoS  IntServ Outline 5

The Problem at the Edge 6  Problem: sharing resources between applications Packet Queue  Large, long lived flows can dominate the queue  Elephants vs. Mice

Port-Based Priority Queues 7  Port-based QoS  Very common in home routers High Priority Queue (Port 22, 25, 80, 110) Low Priority Queue (all other ports)

QoS at Internet Scale 8  Priority queues at the edge of the network help  … but what about QoS across the entire Internet?  Large area of research in the 1990’s  Differentiated Service (DiffServ) Class-based traffic management mechanism Coarse grain control Relative performance improvements / lower overhead  Integrated Service (IntServ) Flow-based traffic management mechanism Fine grained control Guaranteed performance / high overhead

Differentiated Services (DiffServ) 9  Goal: offer different levels of service to packets  Organized around domains (ASs)  Involves edge and core routers (sometimes hosts too)  Edge routers  Sort packets into classes (based on many factors)  Set bits (DiffServ Code Point) in packet headers  Police/shape traffic  Core Routers  Handle per-hop packet behavior based on DSCP

IP Header, Revisited 10 Version HLen DSCP/ECN Datagram Length Identifier Flags Offset TTLProtocolChecksum Source IP Address Destination IP Address Options (if any, usually not) Data DiffServ Code Point Used to label the class of the packet

DiffServ at a High-Level 11 AS-1 AS-2  Ingress/Egress routers assign class to each packet  Must analyze each packet, high overhead  Core routers use classes to do priority queuing  Classes may switch between AS boundaries Ingress/E gress Routers Core Routers

Per-Hop Behavior 12  Traffic classes indicated by 6-bit DSCP in IP header  In practice, only 3 classes used 1. Default PHB: best-effort forwarding  Same as usual for the Internet 2. Expedited Forwarding (EF) PHB  Traffic requiring low delay, low loss, low jitter  Often given strict priority queuing above other classes  Admission control limits to 30% of capacity Why? 3. Assured Forwarding (AF) PHB  More general class with assurance of delivery  Only if traffic rate < subscribed rate

How do we Classify Packets? 13  It depends.  Based on ports i.e. 80 (HTTP) takes precedence over 21 (FTP)  Based on application i.e. HTTP takes precedence over BitTorrent  Based on location i.e. home users get normal service… While hospitals/policy/fire department get priority service  Based on who pays more $$$ $100 for “premium” Internet vs. $25 “value” Internet

Traffic Policing/Shaping 14  Purpose: need a mechanism to control packet flow  High vs. medium vs. low priority flows  Think of it like a toll booth  Token bucket (r, b)  r  rate the bucket fills  b  size of tokens in the bucket  Police: if token is available, packet may pass  Otherwise, packet is queued or dropped  Queuing packets “shapes” the traffic flow

Leaky Buckets 15  Parameters  r –rate at which tokens fill the bucket  b – bucket depth  R – maximum link capacity or peak rate r bps b bits <= R bps  Bits are only transmitted from a queue when there is a token of sufficient size available Packet Queue

Bucket Parameters, Intuitively 16  r – speed packets can exit the queue  b – burst tolerance Fast rSlow r Small bLarge b

Advantages of DiffServ 17  Giving priority does improve performance  … at the expense of reduced perf. for lower classes  Relatively lightweight solution  Some overhead on ingress/egress routers  No per flow state, low overhead on core routers  Easy to deploy  No hard reservations  No advanced setup of flows  No end-to-end negotiation

Disadvantages of DiffServ 18  No performance guarantees  All gains are relative, not absolute  Classes are very course i.e. all packets of a specific class get better performance No per flow or per destination QoS  What if some ASs do not support DiffServ?  Impossible to predict end-to-end behavior  Security  Any host can tag traffic as high priority  E.g. Win 2K tagged all traffic as high priority by default

 “Soft” QoS  Packet shaping/prioritization  DiffServ  “Hard” QoS  IntServ Outline 19

From Relative to Absolute Service 20  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  DiffServ offers low (but unspecified) delay and no drops  Acceptance of proposed SLAs managed by “Bandwidth Broker”  Only over long time scales

Inter-Domain Premium DiffServ 21  Goal of IntServ: end-to-end bandwidth guarantees  Mechanism: end-to-end bandwidth reservations  Like the telephone network, circuit reservations  End hosts ask for reserved capacity from the network AS-1 AS-2 Please reserve 1 Mbps ? ? ? ? ? ? ?

Philosophical Battle 22  If your network allows reservations:  Then you must perform admission control  i.e. who can make reservations, and when?  Basic Question:  Should all flows be admitted (current Internet)  Or, should we refuse some flows to guarantee good service for reserved flows (IntServ Internet)  Which one is right?!?!

High-Level IntServ Design 23  Reservations are made by endpoints  Applications know their own requirements  Applications run on end-hosts  Network does not need to guess about requirements  Guarantees are end-to-end on a per-flow basis  Soft-state  State in routers constantly refreshed by endpoints  IntServ is multicast-oriented  Assumed that large broadcasts would drive multicast and IntServ deployment  This is why reservations are made by receivers

Requirements for IntServ 24  Fixed, stable paths  Only routers on the path know about the reservation  Current Internet cannot guarantee this  Routers maintain per-flow state  Very high overhead (even with soft-state)  State is used to reserve bandwidth  Guarantees QoS for reserved flows  … but some flows may not be admitted  Security?

RSVP Reservation Protocol 25  Performs signaling to set up reservation state  Initiated by the receiver  Each reservation is a simplex data flow sent to a unicast or multicast address   Multiple senders/receivers can be in the same session

RSVP Example 26 PATH RESV  Soft-state: PATH and RESV need to be periodically refreshed

IntServ Summary 27  The good:  Reservations are guaranteed and precise Reserved bandwidth is not shared with a class Tight allocations for each flow  Soft-state slightly reduces overhead on routers  The bad:  IntServ is a whole Internet upgrade  Heavyweight mechanisms, per flow state  Security: end-hosts can DoS by reserving lots of bandwidth

QoS on the Internet Today 28  QoS was huge in the ‘90s  DiffServ and IntServ are both IETF standards  … yet neither are widely deployed today  Internet capacity explosion  Packets only drop when capacity is reached  QoS is only useful if capacity is saturated  After the 2000s Internet boom…  Huge glut of “dark” fiber capacity  Lots of spare capacity = little need for QoS  Another technical solution killed by economics

QoS is Controversial 29  Example: ISP sometimes drop or throttle BitTorrent  Net neutrality: is it okay to favor one kind of traffic over another?  Privacy: is it okay for ISPs to snoop on packets?  Counterargument: BitTorrent negatively impacts other customers  Is it okay for your neighbors BitTorrent traffic to make your Skype calls sound choppy?  Slippery slope:  Who decides which apps are favored?  Is it okay to ban apps entirely?  Is it okay to allow people to pay for higher priority?