CSE 123b Communications Software

Similar documents
EE 122: Differentiated Services

Problems with IntServ. EECS 122: Introduction to Computer Networks Differentiated Services (DiffServ) DiffServ (cont d)

Lecture 24: Scheduling and QoS

Congestion Control and Resource Allocation

Page 1. Quality of Service. CS 268: Lecture 13. QoS: DiffServ and IntServ. Three Relevant Factors. Providing Better Service.

CSCD 433/533 Advanced Networks Spring Lecture 22 Quality of Service

CSE 461 Quality of Service. David Wetherall

Quality of Service (QoS)

Announcements. Quality of Service (QoS) Goals of Today s Lecture. Scheduling. Link Scheduling: FIFO. Link Scheduling: Strict Priority

Quality of Service II

Real-Time Applications. Delay-adaptive: applications that can adjust their playback point (delay or advance over time).

Lecture 13. Quality of Service II CM0256

Internet Services & Protocols. Quality of Service Architecture

Differentiated Services

Computer Network Fundamentals Fall Week 12 QoS Andreas Terzis

Improving QOS in IP Networks. Principles for QOS Guarantees

Real-Time Protocol (RTP)

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

Mohammad Hossein Manshaei 1393

Principles. IP QoS DiffServ. Agenda. Principles. L74 - IP QoS Differentiated Services Model. L74 - IP QoS Differentiated Services Model

Topic 4b: QoS Principles. Chapter 9 Multimedia Networking. Computer Networking: A Top Down Approach

Overview. Lecture 22 Queue Management and Quality of Service (QoS) Queuing Disciplines. Typical Internet Queuing. FIFO + Drop tail Problems

Part1: Lecture 4 QoS

Last time! Overview! 14/04/15. Part1: Lecture 4! QoS! Router architectures! How to improve TCP? SYN attacks SCTP. SIP and H.

CS 356: Computer Network Architectures. Lecture 24: IP Multicast and QoS [PD] Chapter 4.2, 6.5. Xiaowei Yang

Network Support for Multimedia

Advanced Lab in Computer Communications Meeting 6 QoS. Instructor: Tom Mahler

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Advanced Computer Networks

Quality of Service (QoS)

Differentiated Services

Lecture 14: Performance Architecture

Basics (cont.) Characteristics of data communication technologies OSI-Model

CS519: Computer Networks. Lecture 5, Part 5: Mar 31, 2004 Queuing and QoS

Quality of Service (QoS)

Quality of Service in the Internet

Announcements. Quality of Service (QoS) Goals of Today s Lecture. Scheduling. Link Scheduling: Strict Priority. Link Scheduling: FIFO

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Lesson 14: QoS in IP Networks: IntServ and DiffServ

A Preferred Service Architecture for Payload Data Flows. Ray Gilstrap, Thom Stone, Ken Freeman

Quality of Service in the Internet

Lecture Outline. Bag of Tricks

Telematics 2. Chapter 3 Quality of Service in the Internet. (Acknowledgement: These slides have been compiled from Kurose & Ross, and other sources)

Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

EECS 122: Introduction to Computer Networks Resource Management and QoS. Quality of Service (QoS)

Presentation Outline. Evolution of QoS Architectures. Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

Quality of Service (QoS) Computer network and QoS ATM. QoS parameters. QoS ATM QoS implementations Integrated Services Differentiated Services

QoS for Real Time Applications over Next Generation Data Networks

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Leaky Bucket Algorithm

Towards Service Differentiation on the Internet

VoIP Protocols and QoS

EPL606. Quality of Service and Traffic Classification

of-service Support on the Internet

ITBF WAN Quality of Service (QoS)

Common network/protocol functions

Quality of Service Basics

Queue Overflow. Dropping Packets. Tail Drop. Queues will always sometimes overflow. But Cause more variation in delay (jitter)

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

IP Differentiated Services

Telematics 2 & Performance Evaluation

RSVP and the Integrated Services Architecture for the Internet

QoS in IPv6. Madrid Global IPv6 Summit 2002 March Alberto López Toledo.

Computer Networking. Queue Management and Quality of Service (QOS)

Quality of Service (QoS)

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Quality of Service (QoS)

Internet QoS 1. Integrated Service 2. Differentiated Service 3. Linux Traffic Control

Week 7: Traffic Models and QoS

Quality of Service (QoS)

Multimedia Networking. Network Support for Multimedia Applications

Multiplexing. Common network/protocol functions. Multiplexing: Sharing resource(s) among users of the resource.

Differentiated Service Router Architecture - Classification, Metering and Policing

Congestion Control & Resource Allocation. Issues in Resource Allocation Queuing Discipline TCP Congestion Control

Configuring QoS. Understanding QoS CHAPTER

Institute of Computer Technology - Vienna University of Technology. L73 - IP QoS Integrated Services Model. Integrated Services Model

Quality of Service for Multimedia over Next Generation Data Networks

Design Intentions. IP QoS IntServ. Agenda. Design Intentions. L73 - IP QoS Integrated Services Model. L73 - IP QoS Integrated Services Model

QUALITY of SERVICE. Introduction

Quality of Service. Qos Mechanisms. EECS 122: Lecture 15

Today. March 7, 2006 EECS122 Lecture 15 (AKP) 4. D(t) Scheduling Discipline. March 7, 2006 EECS122 Lecture 15 (AKP) 5

Implementing QoS in IP networks

Principles for QOS Guarantees. Improving QOS in IP Networks

IP Premium Agenda. - Services specification and implementation discussion. - Qos Parameters. M. Campanella - TF-TNG - Münster 7 feb 2001

Configuring QoS CHAPTER

Real-Time Control Protocol (RTCP)

Internet Quality of Service: an Overview

Multimedia Networking

Peer to Peer Infrastructure : QoS enabled traffic prioritization. Mary Barnes Bill McCormick

Project Computer Networking. Resource Management Approaches. Start EARLY Tomorrow s recitation. Lecture 20 Queue Management and QoS

3. Quality of Service

Telecommunication Services Engineering Lab. Roch H. Glitho

Multicast and Quality of Service. Internet Technologies and Applications

Multi-class Applications for Parallel Usage of a Guaranteed Rate and a Scavenger Service

The Evolution of Quality-of- Service on the Internet

Network Layer Enhancements

Grandstream Networks, Inc. GWN7000 QoS - VoIP Traffic Management

Configuring QoS CHAPTER

IP Quality of Service (QoS)

Transcription:

CSE 123b Communications Software Spring 2002 Lecture 10: Quality of Service Stefan Savage

Today s class: Quality of Service What s wrong with Best Effort service? What kinds of service do applications need? Integrated services architecture Differentiated service architecture May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 2

The Problem(s) Best effort service model (send and pray) Statistical multiplexing provides efficient use of bandwidth for bursty applications, but No isolation during contention Smart hosts-dumb routers architecture Congestion control at end-hosts Resource control feedback occurs slowly (min 1 RTT) Must trust end hosts to behave well May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 3

Motivation: Multimedia Playback is a real-time service in the sense that the audio must be received by a deadline to be useful Microphone Sampler, A D converter Internet Buffer, D A Speaker Variable bandwidth and delay (jitter) Real-time apps need assurances from the network Q: What assurances does playback require? May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 4

Network Support for Playback Bandwidth Delay Loss There must be enough on average But we can tolerate to short term fluctuations Ideally it would be fixed But we can tolerate some variation (jitter) Ideally there would be none But we can tolerate some losses May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 5

Example: Delay and Jitter 3 90% 97% 98% 99% Packets (%) 2 1 50 100 150 200 Delay (milliseconds) May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 6

Tolerating Jitter with Buffering Sequence number Packet generation Network delay Buffer Packet arrival Playback Time Buffer before playout so that most late samples will have arrived May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 7

Application requirements Application variations Rigid fixed playback point (low jitter) Adaptive application can vary playback point (jitter ok) Tolerant can tolerate interrupt/degradation Intolerant can t In reality only two classes Rigid and intolerant applications (e.g. telemedicine) Adaptive and tolerant (e.g. RealPlayer) May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 8

Another way to look at it... Utility Elastic Utility Bandwidth Delay-adaptive Utility Hard real-time Bandwidth Bandwidth May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 9

The Integrated Services solution Change service model Multiple service classes; service specification Guaranteed (send and pay), predicted, best-effort Network directly supports per-application service requests Change implementation Hosts explicitly reserve network capacity Routers implement admission control Routers use explicit scheduling mechanisms to provide isolation between admitted flows Requires per-flow state May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 10

Intserv components Service classes What are application demands? What should the network promise? What does the application promise? Service interface How are service requirements described? Service mechanisms How are service guarantees enforced? May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 11

Service interface Specify service class Specify flowspec for application data flow Tspec: describes the flow s traffic characteristics» Average bandwidth + burstiness Rspec: describes the service requested from the network» Delay target Send request to network Network can say no If network says yes, then try to make sure it happens May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 12

Token Buckets Common, simple descriptor Use tokens to send bits Average bandwidth is R bps Maximum burst is B bits Fill rate R tokens/sec Bucket size B tokens Sending drains tokens May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 13

Service mechanisms Admission control protocol RSVP Shaping/policing Making sure that everyone only sends as much as they requested Per-flow scheduling policy in routers Fair Queuing» Each flow gets equal access to bandwidth Weighted Fair Queuing» Each flow gets access to bandwidth proportional to weight May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 14

Using Token bucket traffic conditioning Operation Token bucket size: b (maximum number of tokens) Token bucket rate: r (rate at which new tokens are provided) Need k tokens to send a packet of k bytes Applications Shaping (delay packets until k tokens appear)» Long term rate is limited to r, short term bursts to b» Over some interval T, traffic is limited to b+r*t Policing (drop packets if insufficient tokens) Buffer management (mark packets and transmit if > k)» Drop marked (i.e. out-of-spec) packets during congestion May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 15

Token Bucket Operation Tokens Tokens Tokens Overflow Packet Enough tokens packet goes through, tokens removed Packet Not enough tokens wait for tokens to accumulate May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 16

New elements in the router Routing Messages Routing RSVP Admission Control Control Plane RSVP messages Data In Forwarding Table Route Lookup Classifier Per Flow QoS Table Scheduler Data Plane Data Out May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 17

Integrated Services Example Example: guarantee 1MBps and < 100 ms delay to a flow Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 18

Sender Integrated Services Example Allocate resources - perform per-flow admission control Yes, you may. May I? Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 19

Integrated Services Example Install per-flow state Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 20

Integrated Services Example Install per flow state Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 21

Integrated Services Example: Data Path Per-flow classification Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 22

Integrated Services Example: Data Path Per-flow buffer management Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 23

Integrated Services Example Per-flow scheduling (weighted-fair-queuing: WFQ) Sender Receiver May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 24

Guaranteed service Edge routers shape traffic accord to r,b Routers implement WFQ Weight set according to share r is of total link capacity Parekh & Gallager 91,92 prove bound on delay is b/r! Even if other flows don t behave Why not make all service guaranteed service? May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 25

Issues? End-to-end approach Inter-administrative domain issues Scalability (per-flow state) Efficiency Need to modify applications How much bandwidth does my application need? May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 26

Differentiated Services Goal Provided different classes of service for traffic Economic motivation Extract value through multi-tiered service (like airlines)» Best-effort service is bulk of traffic, but premium service important for capitalization» Aside: impact of flat rate vs usage-based pricing? Bilateral-settlement, not end-to-end Technical motivation Scalability/simplicity No per-flow state; traffic-aggregates only May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 27

Basic architecture Single network (for now) Edge routers Classify traffic as it enters network Possibly shaping/policing to fit a user profile (pre-negotiated) Marks packets to assign them to different traffic classes Core routers Schedule/drop packets according to markings State proportional to # classes; No per-flow state or signaling The Network Engineer Provisions network so there is sufficient bandwidth to accommodate service May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 28

Terminology Differentiated Services Code Point (DSCP) Particular value for 6 bit packet header indicating how packet should be handled; index into table Behavior Aggregate (BA) Collection of packets on a link with the same DSCP Per-Hop Behavior (PHB) Forwarding behavior applied by router to packets according to DSCP; not end-to-end DS Domain Contiguous network using a common set of PHBs and provisioning policy May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 29

DS header field 0 5 7 DS 6 bits stolen from ToS field (other two for ECN) 0 15 16 31 ver HL TOS identification M F length offset TTL protocol header checksum D F R E S source address 20 bytes destination address May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 30

DiffServ architecture Edge router Shape & police traffic Set particular DiffServ Code Point (DSCP) in DS header field Core router Implement Per-Hop Behavior for each BA A B Domain Edge router Core router May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 31

Standard PHBs Expedited Forwarding (Jacobson) Virtual Pipe between ingress and egress routers Pipe has capacity C (negotiated with ISP) If user sends at rate <= C, network guarantees low delay and loss If user sends > C, excess traffic may be delayed or dropped Assured Forwarding (Clark) Better service to anywhere User profile indicates how much assured traffic is allowed Up to that amount, network provides lower loss vs best-effort Out-of-profile traffic is converted to best-effort May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 32

Edge Router Classification Traffic Conditioner 1 Arriving packet Packet classifier Flow 1 Flow N Traffic Conditioner N Best effort Forwarding engine Traffic classified based on packet header (including DSCP) May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 33

Traffic Conditioning for Expedited Forwarding Shape packets according to user profile Marked outbound packets with EF to indicate premium service r bps b bits User Profile (token bucket) Drop on overflow Packet input Wait for token Set EF bit Packet output May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 34

Traffic Conditioning for Assured Forwarding Meter packets according to user profile Mark in-profile packets with AF Out-of-profile packets send with AF cleared r bps User Profile b bits (token bucket) No token Packet input Test if token token Set AF in bit Packet output May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 35

Core Router Scheduling/Buffer Management Two strict priority queues (one for EF, one for AF) What if we used WFQ? Lower priority queue implements preferential dropping for in-profile AF traffic (RED with In/Out) What DSCP? AF EF High-priority Q Packets out If in set incr in_cnt Low-priority Q RIO queue management If in set decr in_cnt May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 36

Comparison to Best-Effort and Intserv Best-Effort Diffserv Intserv Service Service scope Complexity Connectivity No isolation No guarantees End-to-end No setup Per aggregate isolation Per aggregate guarantee Domain Long term setup Per flow isolation Per flow guarantee End-to-end Per flow steup Scalability Highly scalable (nodes maintain only routing state) Scalable (edge routers maintains per aggregate state; core routers per class state) Not scalable (each router maintains per flow state) May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 37

Summary Some applications need improved service Multimedia, teleoperation, etc. Two approaches IntServ: reserve bandwidth end-to-end, and schedule to provide guaranteed service Diffserv: no guarantee, simply differentiate between different classes of service; treat some traffic better than other traffic Token bucket abstraction Useful for describing and controlling traffic May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 38

For next time Midterm Sanjeev will have additional office hours this week 4pm-5pm Wednesday: AP&M 3337A Keep working on projects John-Paul will have additional office hours 1pm-2pm Friday: AP&M 3337D May 8, 2002 CSE 123b -- Lecture 8 IP Multicast 39