Advanced Computer Networks

Similar documents
Real-Time Protocol (RTP)

Improving QOS in IP Networks. Principles for QOS Guarantees

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Internet Services & Protocols. Quality of Service Architecture

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

Mohammad Hossein Manshaei 1393

Quality of Service (QoS)

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

Lecture 14: Performance Architecture

of-service Support on the Internet

Part1: Lecture 4 QoS

Telematics 2 & Performance Evaluation

Lesson 14: QoS in IP Networks: IntServ and DiffServ

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

Real-Time Control Protocol (RTCP)

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

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

Lecture Outline. Bag of Tricks

Common network/protocol functions

Quality of Service (QoS)

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

Week 7: Traffic Models and QoS

Network Support for Multimedia

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

Mul$media Networking. #10 QoS Semester Ganjil 2012 PTIIK Universitas Brawijaya

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

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

Quality of Service in the Internet

Master Course Computer Networks IN2097

Quality of Service in the Internet

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

Master Course Computer Networks IN2097

Multicast and Quality of Service. Internet Technologies and Applications

Differentiated Services

Multimedia networking: outline

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

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

Quality of Service II

CSE 123b Communications Software

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

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

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

Lecture 24: Scheduling and QoS

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

Quality of Service (QoS)

Unit 2 Packet Switching Networks - II

Towards Service Differentiation on the Internet

Multimedia Networking. Network Support for Multimedia Applications

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Multimedia Networking

Differentiated Services

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

Lecture 13. Quality of Service II CM0256

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Network Layer Enhancements

ITBF WAN Quality of Service (QoS)

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

CSE 461 Quality of Service. David Wetherall

Quality of Service (QoS)

EPL606. Quality of Service and Traffic Classification

VoIP Protocols and QoS

Introduction to IP QoS

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

Router s Queue Management

QoS Technology White Paper

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

Prof. Dr. Abdulmotaleb El Saddik. site.uottawa.ca mcrlab.uottawa.ca. Quality of Media vs. Quality of Service

IP QOS Theory and Practice. eng. Nikolay Milovanov CCIE SP# 20094

QoS for Real Time Applications over Next Generation Data Networks

Configuring QoS. Understanding QoS CHAPTER

CCVP QOS Quick Reference Sheets

QUALITY of SERVICE. Introduction

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

Kommunikationssysteme [KS]

H3C S9500 QoS Technology White Paper

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

QOS IN PACKET NETWORKS

Quality of Service for Multimedia over Next Generation Data Networks

Computer Network Fundamentals Fall Week 12 QoS Andreas Terzis

Quality of Service Basics

Quality of Service Mechanism for MANET using Linux Semra Gulder, Mathieu Déziel

Quality of Service (QoS)

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

Defining QoS for Multiple Policy Levels

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

Congestion Control and Resource Allocation

EE 122: Differentiated Services

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

Lecture 22: Buffering & Scheduling. CSE 123: Computer Networks Alex C. Snoeren

Providing DiffServ Quality of Service in b Networks

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

From ATM to IP and back again: the label switched path to the converged Internet, or another blind alley?

HUAWEI NetEngine5000E Core Router V800R002C01. Feature Description - QoS. Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

"Charting the Course... Implementing Cisco Quality of Service (QOS) Course Summary

Configuring QoS CHAPTER

Scheduling. Scheduling algorithms. Scheduling. Output buffered architecture. QoS scheduling algorithms. QoS-capable router

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

Transcription:

Advanced Computer Networks QoS in IP networks Prof. Andrzej Duda duda@imag.fr Contents QoS principles Traffic shaping leaky bucket token bucket Scheduling FIFO Fair queueing RED IntServ DiffServ http://duda.imag.fr 1 2 Improving QOS in IP Networks IETF groups are working on proposals to provide better QOS control in IP networks, i.e., going beyond best effort to provide some assurance for QOS Work in Progress includes Integrated Services, RSVP, and Differentiated Services Simple model for sharing and congestion studies: Principles for QOS Guarantees Consider a phone application at 1Mbps and an FTP application sharing a 1.5 Mbps link. bursts of FTP can congest the router and cause audio packets to be dropped. want to give priority to audio over FTP PRINCIPLE 1: Marking of packets is needed for router to distinguish between different classes; and new router policy to treat packets accordingly 3 4 Principles for QOS Guarantees Applications misbehave (audio sends packets at a rate higher than 1Mbps assumed above); PRINCIPLE 2: provide protection (isolation) for one class from other classes Require Policing Mechanisms to ensure sources adhere to bandwidth requirements; Marking and Policing need to be done at the edges: Principles for QOS Guarantees Alternative to Marking and Policing: allocate a set portion of bandwidth to each application flow; can lead to inefficient use of bandwidth if one of the flows does not use its allocation PRINCIPLE 3: While providing isolation, it is desirable to use resources as efficiently as possible 5 6 1

Principles for QOS Guarantees Cannot support traffic beyond link capacity PRINCIPLE 4: Need a Call Admission Process; application flow declares its needs, network may block call if it cannot satisfy the needs 7 Traffic shaping How to prevent congestion? it may result from burstiness make arrivals more deterministic, obtain better performance example : no. of clients in D/D/1 vs. G/D/1 or group arrivals vs. single arrivals control the rate and burst size traffic description - leaky bucket, token bucket Service contract if the network knows the type of the traffic, it can reserve resources to support the traffic contract between the source and the network source: traffic description - leaky bucket, token bucket network: QoS guarantee if the traffic conforms to the description if the traffic is not conformant (leaky bucket, token bucket), penalty: reject a packet, no guarantees of the QoS (traffic policing) 8 Leaky bucket Token bucket Limited size buffer with constant departure rate m if buffer not empty 0 if buffer empty Equivalent to the queue G/D/1/N Fixed size packets one packet per clock tick Variable size packets number of bytes per clock tick Packet loss if buffer filled m C packet buffer test arrival of tokens : rate m C 9 10 Token bucket Tokens generated with rate m 1 token : 1 packet or k bytes Packet must wait for a token before transmission no losses allows limited bursts (a little bit more than C) When packets are not generated, tokens accumulate n tokens - burst of n packets if bucket filled, tokens are lost Mean departure rate : m Delay limited by C/m (Little's formulae) Example 25 MB/s link Network can support a peak rate 25 MB/s, but prefers sustained throughput of 2 MB/s Data generated 1 MB each second, burst during 40 ms Example 1. leaky bucket with C = 1 MB, p = 25 MB/s, m = 2 MB/s 2. token bucket with C = 250 KB, p = 25 MB/s, m = 2 MB/s 3. token bucket with C = KB, p = 25 MB/s, m = 2 MB/s 4. token bucket with C = 750 KB, p = 25 MB/s, m = 2 MB/s 5. token bucket with C = KB, p = 25 MB/s, m = 2 MB/s and leaky bucket with C = 1 MB, p = 10 MB/s, m = 2 MB/s 11 12 2

(a) 25 MB/sec for 40 msec (b) 2 MB/sec for msec (c) 25 MB/sec for 11 msec 2 MB/sec for 364 msec (d) 25 MB/sec for 22 msec 2 MB/sec for 228 msec (e) 25 MB/sec for 33 msec 2 MB/sec for 92 msec (f) 10 MB/sec for 62 msec 2 MB/sec for 190 msec Fig. 5-25. (a) Input to a leaky bucket. (b) Output from a leaky bucket. (c) - (e) Output from a token bucket with capacities of 250KB, KB, and 750KB. (f) Output from a KB token bucket feeding a 10 MB/sec leaky bucket.

Burst duration Burst duration - S sec Size of the bucket - C bytes Maximal departure rate - p bytes/s Token arrival rate - m bytes /s burst of C + m S bytes burst of ps C + m S = ps Æ S = C/(p - m ) Example C = 250 Ko, p = 25 Mo/s, m = 2 Mo/s S = 11 ms 13 14 Traffic description rate 3 MB/s Flow B 2 MB/s Flow A 1 MB/s 1 s 2 s 3 s 4 s Flow A : m = 1 MB/s, C = 1 byte Flow B : m = 1 MB/s, C = 1 Mbyte during 2 s, the flow saves 2 s 0.5 MB/s = 1 MB time Scheduling strategies packets Scheduler queue defines the order of packet transmission Allocation strategy throughput which packet to choose for transmission transmission when chosen, packet benefits from a given throughput buffers which packet to drop, when no buffers 15 16 FIFO Current state of Internet routers Allows to share bandwidth proportionally to the offered load No isolation elastic flows (rate controlled by the source eg. TCP) may suffer from other flows a greedy UDP flow may obtain an important part of the capacity real time flows may suffer from long delays Last packets are dropped - tail drop TCP adapt bandwidth based on losses RED (Random Early Detection) techniques choose a packet randomly before congestion and drop it Priority Queue Several queues of different priority source may mark paquets with priority eg. ToS field of IP packets of the same priority served FIFO non-preemptive Problems starvation - high priority source prevents less priority sources from transmitting TOS field in IP - 3 bits of priority how to avoid everybody sending high priority packets? 17 18 3

Class Based Queueing (CBQ) Characteristics Class 1 Class 2 Class 3 Also called Custom Queueing (CISCO) Each queue serviced in round-robin order Dequeue a configured byte count from each queue in each cycle Each class obtains a configured proportion of link capacity 19 Limited number of queues (CISCO - 16) Link sharing for Classes of Service (CoS) based on protocols, addresses, ports Method for service differentiation assign different proportions of capacity to different classes not so drastic as Priority Queueing Avoids starvation 20 Per Flow Round Robin flow 1 flow 2 flow 3 Similar to Processor Sharing or Time Sharing one queue per flow cyclic service, one packet at a time Characteristics It modifies the optimal strategy of sources FIFO: be greedy - send as much as possible RR: use your part the best Isolation a greedy source will experience high delays and losses good sources protected from bad ones Problems flows sending large packets get more cost of flow classification 21 22 Fair Queueing Weighted Fair Queueing flow 1 flow 2 flow 3 time Fair queueing equal parts : 1/n Weighted fair queueing each flow may send different number of bits Example - weights w i flow 1 weight 2 flow 2 weight 1 flow 3 weight 3 1/3 1/6 1/2 Round robin "bit per bit" each packet marked with the transmission instant of the last bit served in the order of the instants 23 wi x i = D Â wi D : link capacity 24 4

Rate guarantee Weights expressed as proportions (w i - guaranteed weight) x = Dw, w 1 i i i If no packets of a given flow, unused capacity shared equally by other flows x D i w i Weights to guarantee a given rate wi = xi / D Delay guarantee Flow constrained by a token bucket rate m, capacity C delay limited by C/m If x i > m (the rate obtained is sufficient for the flow) delay limited by C/m total delay limited by the sum of all delays 25 26 Random Early Detection RED Family of techniques used to detect congestion and notify sources when a queue is saturated, packets are dropped losses interpreted as congestion signals Æ decrease rate Idea act before congestion and reduce the rate of sources threshold for starting to drop packets Losses are inefficient result in retransmissions, dropped packets should be retransmitted - enter Slow Start Synchronization of TCP sources several packet dropped several sources detect congestion and enter slow start at the same instant 27 th-max average th-min Estimation of the average queue length average q measure + (1 - q) average If average th-min accept the packet If th-min < average < th-max drop with probability p If th-max average drop the packet 28 RED Characteristics RED Characteristics Tends to keep the queue reasonably short low delay Suitable for TCP single loss recovered by Fast Retransmit Probability p of choosing a given flow is proportional to the rate of the flow more packets of that flow, higher probability of choosing one of its packet Dynamic probability p p-tmp = max-p (average - th-min)/ (th-max - th-min) max-p: maximal drop probablility when the queue attains th-max threshold p = p-tmp/(1 - nb-packets p-tmp) nb-packets: how many packets have been accepted since the last drop p increases slowly with nb-packets drops are spaced in time Recommended values max-p = 0.02 if average in the middle of two thresholds, 1 drop in 50 29 30 5

Drop probability Example network for RED 1 p-tmp S 2 S 1 2 Mb/s, 10 ms destination router 2 Mb/s, 60 ms 2 Mb/s 100 ms max-p 20 seg. 20 seg. th-min th-max average S 3 2 Mb/s, 100 ms Example network with three TCP sources different link delays limited queues on the link (20 packets) 31 32 Throughput in time Throughput in time with RED ACK numbers S 1 ACK numbers S 1 S 2 S 3 S 2 S 3 time 33 time 34 WRED Different drop probabilities th-max 2 th-min 2 p-tmp 1 Weighted RED th-max 1 th-min 1 average Different thresholds for different classes higher priority class - higher thresholds lower drop probability lower priority class - lower thresholds greater drop probability Method for service differentiation 35 max-p th-min 2 th-max 2 th-min 1 th-max 1 average 36 6

QoS architectures Integrated Services (IntServ) per flow reservation at routers (RSVP protocol for reservation) per flow scheduling Differentiated Services (DiffServ) no reservation classification at the border scheduling per aggregated classes in the backbone Integrated Services An architecture for providing QOS guarantees in IP networks for individual application sessions Relies on resource reservation, and routers need to maintain state info, maintaining records of allocated resources and responding to new Call setup requests on that basis 37 38 Flow Admission Session must first declare its QOS requirement (Tspec) and characterize the traffic it will send through the network Routers check for resources and reserve them A signaling protocol is needed to carry QOS requirement to the routers where reservation is required RSVP (Reservation Protocol) PATH message T-spec - source traffic description defines the traffic characteristics token bucket: rate, capacity, and peak rate packet from source to destination determines the return route RESV message R-spec: if receiver wants to have better QoS (e.g. higher rate and jitter) packet from destination to source follows the route established by PATH reservations are done upon receiving this message 39 40 Flow Admission Flow Admission: routers will admit flows based on their T-spec and R-spec and base on the current resource allocated at the routers to other flows Integrated Services: Classes Guaranteed QOS: this class is provided with firm bounds on queuing delay at a router; envisioned for hard real-time applications that are highly sensitive to end-to-end delay expectation and variance rate and delay Controlled Load: this class is provided a QOS closely approximating an unloaded network; envisioned for today s IP network real-time applications which perform well in an unloaded network rate 41 42 7

Differentiated Services Intended to address the following difficulties with Intserv and RSVP Scalability: maintaining states by routers in high speed networks is difficult due to the very large number of flows Flexible Service Models: IntServ has only two classes, want to provide more classes - relative service distinction (Platinum, Gold, Silver, ) Simpler signaling: (than RSVP) many applications and users may only want to specify a more qualitative notion of service Differentiated Services Approach: Only simple functions in the core, and relatively complex functions at edge routers (or hosts) Do not define service classes, instead provide functional components with which service classes can be built 43 44 End-to-end DiffServ architecture Edge Functions PHB Access Router Mobile Hosts At DS-capable host or first DS-capable router Classification: edge node marks packets according to classification rules to be specified (manually by admin, or by some TBD protocol) Host Access Network Edge Router PHB Core Routers PHB SLA Service Level Agreement Edge Router Access Router Mobile Hosts Traffic Conditioning: edge node may delay and then forward or may discard 45 46 Classification and Conditioning Packet is marked in the Type of Service (TOS) in IPv4, and Traffic Class in IPv6 6 bits used for Differentiated Service Code Point (DSCP) and determine PHB that the packet will receive Core Functions Forwarding: according to Per-Hop-Behavior or PHB specified for the particular packet class; such PHB is strictly based on class marking (no other header fields can be used to influence PHB) QoS, if sufficient provisioning BIG ADVANTAGE: No state info to be maintained by routers! 47 48 8

DiffServ service classes Two main types of application interactive (games, interactive distributed simulations, VoIP, device control) delay, jitter elastic (data transfer) sustained throughput Traffic classes EF (Expedited Forwarding) short delay, small jitter AF (Assured Forwarding) minimal sustained throughput 4 subclasses with 3 different drop probabilities (12 subclasses in total) BE (Best Effort) DiffServ - Edge router Classification, metering, marking 49 50 DiffServ - Core router Queue management and scheduling EF: high priority AF, BE: WFQ - Weighted Fair Queueing Traffic shaping 51 52 Facts to remember QoS in packet networks based on scheduling algorithms buffer management policies Traffic shaping helps to deal with QoS limiting bursts traffic description traffic policing Current approach DiffServ 53 54 9