830 likes | 849 Views
Explore the concept of QoS, its importance in network performance, types of guarantees, and QoS mechanisms such as IntServ and DiffServ. Learn how QoS affects multimedia applications and resource management.
E N D
IntServ and DiffServ School of Electronics and Information Kyung Hee University. Choong Seon HONG <cshong@khu.ac.kr>
Quality of Service (QoS) • A major driving force in Internet evolution • Not simply defined - means many things to many people • Has sense of predictable network behaviour • Central idea is provision of network resources that an application requires to perform adequately
Quality of Service (QoS) • What is Quality-of-Service?• Quality of service (QoS) is a concept by which applications may indicate and even negotiate their specific service requirements to the network • Why is this an issue? • The default service in many packet networks is to give all applications the same service, and not consider any service requirements to the network. This is called a best-effort service.
Quality of Service (QoS) • Who needs Quality-of-Service? – Video and audio conferencing bounded delay and loss rate – Video and audio streaming bounded packet loss rate – Time-critical applications (real-time control) bounded delays – “valuable applications” better service than less valuable applications
Quality of Service (QoS) • How are Quality-of-Service requirements specified? • QoS parameters are – Delay – Delay Variation (Jitter) – Throughput – Error Rate
Quality of Service (QoS) • What is the granularity of QoS? – Per-flow QoS Guarantees are specified and enforced for single end-to-end data flow – Aggregate QoS Guarantees are specified and enforced for groups of flows
Types of QoS guarantees • Deterministic QoS – Service guarantees are enforced for all traffic • For example, deterministic delay guarantees have the form: Delay of a packet from flow X ≤ D (D is called a delay bound) • Statistical QoS • Allows a certain fraction of traffic to violate the service guarantees • Prob [Delay of a packet from flow X ≤ D ] ≥1 - ε Where e is a small number (e.g., ε = 10-6)ε
Classification and Scheduling • Routers need to be able to 1. classify arriving packets according to their QoS requirements Packet Classification 2. isolate traffic flows and provide requested QoS Packet Scheduling
QoS CoS RSVP Intserv GMPLS MPLS QoS is Generating a Confusing Array of Acronyms Diffserv
Why Do We Need Such a Revolutionary Change? • Current ‘best effort’ technology is essentially a quarter of a century old • Two factors driving the development of a new generation of multimedia applications • commercialisation of the Internet • Increasing availability and decreasing cost of bandwidth • No evidence of ‘free bandwidth’ scenario emerging • rejected in RFC1633 (1994) - still true • demand always rises to meet supply
QoS is Not New • Telephone network has QoS • economics and technology based on a single application • highly developed engineering • but one size fits all • BISDN - an attempt by telephony world to generalise network to encompass diverse applications • ATM technology - first full exploration of QoS on demand concepts
Quality of Service and Resource Management • Fundamental resource is output link rate • Access managed via scheduling discipline • Bursty input traffic held in buffers • adds delay and jitter • overflow causes packet loss • These factors determine QoS at network level • Optimise via buffer management and scheduler parameter setting
QoS in the Internet • Internet Engineering Task Force (IETF) is evolving QoS support mechanisms for the Internet - two approaches • The Integrated Services Internet • QoS for individual microflows • perhaps too complex for large networks - won’t scale easily • Differentiated Services - more scaleable • lose sight of individual microflows - Behaviour Aggregates
Integrated Services (Intserv) • QoS approached via end to end services • best effort - current performance standard • controlled load - lightly loaded network performance - ‘soft’ delay bound • Guaranteed - ‘hard’ bandwidth and delay bounds • Traffic conformance to agreed form expected • ‘token bucket’ model - policing if nonconforming • Resources reserved in routers - RSVP • more complex set of functions than ATM
RSVP is Dead! • Earlier reports of RSVP’s death were somewhat exaggerated • Nevertheless there is a major problem with Intserv- fatal in the eyes of some • Management of router resources requires each router to maintain per flow ‘state’ • Creates ‘state explosion’ in the interior routers of core networks - perhaps confine to edges
Differentiated Services (Diffserv) • Driving philosophy of the Internet has been to minimise complexity in the core network - push complexity and intelligence to the edge nodes. • Differentiated Services concept strives to maintain this philosophy while recognising the need to provide some levels of Quality of Service • First widely deployed QoS mechanism
Content • Intserv/RSVP • Differentiated Service Paradigm • Per-Hop Behavior & Codepoint • Premium Service • Assured Forwarding PHB Group • Resource Manager : Bandwidth Broker(BB) • Boundary Mechanisms • Diffserv WG
Internet Integrated Service Model Guaranteed Quality of Service • Motivation • for applications intolerant of late data • hard real time requirements • End-to-End behavior • an assured level of bandwidth • a delay-bounded service with no queueing loss • firm maximum on end-to-end delay • not control the minimal or average delay • no jitter control
Internet Integrated Service Model • In order for a router to invoke Guaranteed Service for a specific data flow it needs to be informed of the traffic characteristics of the flow, Tspec, along with the reservation characteristics, Rspec • Tspec parameters • p ; peak rate of flow (bytes/second) • b ; bucket depth (bytes) • r ; token bucket rate (byes/second) • m ; minimum policed unit (bytes) • M ; maximum datagram size (bytes) • Rspec parameters • R ; bandwidth, i.e. service rate (bytes/second) • S ; Slack Term (ms)
Internet Integrated Service Model Controlled - Load Service • Motivation • for adaptive real-time applications (today’s internet) • work well on unloaded nets but degrade quickly under overload conditions --> mimics unloaded nets • If the flow is accepted for Controlled-Load Service then the router makes a commitment to offer the flow a service equivalent to that seen by a best-effort flow on a lightly loaded network
Internet Integrated Service Model Controlled - Load Service (cont’d) • End-to-End behavior • Tightly approximates the behavior visible to applications receiving best-effort service under unloaded conditions • A very high percentage of packets delivered successfully • Controlled Load has some fairly simple implementations, in terms of the queuing systems in routers • It is not suited to applications that require very low latency (e.g. distributed VR systems and so forth).
RSVP RSVP Design Principles • Receiver-Initiated Reservation • a receiver • choose the level of reservation • initiate/keep reservation • more flexible and scaleable than source-initiated reservation • heterogeneous receivers • dynamic membership change • Separating reservation from packet filtering • reservation • amount of resources reserved for an entity • packet filtering • dynamically select packets that can use the resources
RSVP Design Principles (cont’d) • Maintain “Soft-state” • dynamic status change (membership change) • soft-state in switches and maintained by end users • state in switches • path state -- periodic path message from the source • reservation state -- periodic reserv. msg from the receivers • timeout driven deletion • Reservations timeout if not refreshed periodically • adaptability and robustness • Protocol overhead • reduce refreshing frequency • merging path/reservation messages
Receiver generates reservation Sender generates connection request Soft state ( refresh / timeout ) Hard state ( explicit delete ) Separate from route establishment Concurrent with route establishment QoS can change dynamically QoS is static for life of connection Receiver heterogeneity Uniform QoS to all receivers RSVP Comparison of RSVP and ATM signaling RSVP ATM
RSVP Message Types 1. Path_msg S1 2. forwarding Path_msg R1 R2 D1 S2 R3 3-1.Resv_msg 4. forwarding Resv_msg D2 3-2. Resv_msg
Internet Integrated Service Model Integrated Services over Specific Link Layers(ISSLL WG) • RSVP designed to work with any protocol • - Protocol must provide QoS support • - Examples: ATM, IP with Integrated Services • IP integrated services with RSVP over ATM • VC management ( traffic flow-VC) • Data VC, RSVP signaling VC • QoS translation • mapping a QoS from the IIS model to a proper ATM QoS • IIS over POTS • IIS over LAN
Intserv / RSVP QoS Approach • Scalability problem • Have to maintain forwarding state between receiver and transmitter
Integrated Services Model • Flow specification • Routing • Admission control • Policy control • Resource reservation • Packet scheduling
RSVPD Routing Process Application Policy Control Policy Control Admissions Control Admissions Control Packet Classifier Packet Scheduler Packet Classifier Packet Scheduler RSVP Functional Diagram Host Router RSVPD D A T A DATA DATA
What is a flow? • Equivalent packets by some classification • RSVP: Set of packets traversing a network element that are all covered by the same QoS request • Packet classifier determines which packets belong to which flows • IPv6 includes a flow label to ease classification • ISP usage (UUNET) • Microflow: TCP or similar bandwidth connection • Macroflow: Large aggregates of packets flowing between two superhubs
Describing and Identifying a Flow • Flowspec defines traffic parameters • Traffic parameters: bandwidth, buffering requirements • Uses token bucket specification • Filterspec identifies packets in flow • Simplest filter: Source, Dest address/port pair • Data filter: classifies packets according to contents
Resource Reservation • Senders advertise using PATH message • Receivers reserve using RESV message • Flowspec + filterspec + policy data • Travels upstream in reverse direction of Path message • Merging of reservations • Sender/receiver notified of changes
Client Traffic Shaping • Issue: Need traffic shaping to meet allocated resources • Source promises that data traffic will conform to a particular shape • Why describe and shape traffic? • Network knows what to expect, can manage traffic better • Better admission control decisions • Network can police flows • Bursty traffic is costly to router, network
Traffic Shaping Example Data Queue Flow 1 Flow 2 Data Queue
Traffic Shapers • Simple leaky bucket • Isosynchronous flow: regular intervals between packets • Token bucket • Bursty flow
Simple Leaky Bucket Data • Sends data at fixed intervals onto network • Bursts bigger than b are discarded • Traffic never injected faster than r • Can be used with cells or datagrams b b = bucket size r = rate data is sent onto network r
Token Bucket r • Sends bursty traffic onto network • Bucket filled with tokens at rate r • Data transmitted when enough tokens exist • Allows bursts, but enforces upper bound b = bucket size in tokens r = rate tokens are added to bucket b Data Queue Data
Restrictions on Reservations • Admissions • Is bandwidth available? • Policy • Service guarantees give preferential access to network bandwidth • Permissions • Pricing issues • What are the policies of nodes on the path? • Policy data represents a scaling and security issue
Resource Reservation Model • Senders advertise using flowspecs • RSVP daemons forward advertisements to receivers, update available bandwidth, minimum delay • Receivers reservations use flowspec, filterspec combination (flow descriptor) • Sender/receiver notified of changes • Reservations are merged in multicast case
Reservation Styles • Wildcard Filter (WF) • Shared reservation, select all upstream senders • Traffic from upstream senders shares a single pipe • Appropriate for audio • Shared Explicit (SE) • Shared reservation, explicit sender selection • Appropriate for audio • Fixed Filter (FF) • District reservations, explicit sender selection • Appropriate for video
RSVP Flowspecs Sender TSpec, Controlled Load Flowspec . . . Token Bucket Rate [r] Token Bucket Size [b] Peak Data Rate [p] Minimum Policed Unit [m] Maximum Policed Unit [M] Guaranteed Flowspec . . . Token Bucket Rate [r] Token Bucket Size [b] Peak Data Rate [p] Minimum Policed Unit [m] Maximum Policed Unit [M] Rate [R] Slack Term [S]
Packet Scheduling • Implemented in hosts/routers to control link allocation • Queuing algorithms • Weighted Fair Queuing (WFQ) • Class Based Queuing (CBQ) • Queue management • Random Early Detection (RED)
Packet Scheduling • Fair Queueing • Attempts to implement a scheduler that serves all flows with a backlog at the same rate • Emulates a bitwise Round Robin scheduling algorithm • Not completely trivial to implement Fair Queuing in a packet network
Weighted Fair Queuing (WFQ) • Traffic placed into queues according to flow specification, flow filter • Fair queuing • Implements fairness of bit by bit scheduling on a per packet basis • Gives queues a fair share of total bandwidth • Weighted • Queue are not weighted evenly for scheduling • Proven: adequate for Guaranteed Service
Class Based Queuing (CBQ) • Combines scheduling and link sharing • Hierarchical link sharing • Hierarchical queues • Enables protocol, organization isolation • Scheduling • Does not define a particular scheduling algorithm • General scheduler for low latency when no congestion • Link-sharing policing scheduler when congested • Scheduling per hierarchy
CBQ Example LINK 60% 40% Company A Company B 30% Real- Time HTTP FTP telnet IP DECnet 10% 20% 20% 20% Video Audio 20% 10%
Random Early Detection (RED) • Random Early Detection (RED) • Queue management algorithm for congestion control • Random packet drops as average queue length increases • Can use Explicit Congestion Notification bit instead of dropping packet • Works well for TCP • Useful for congested Controlled Load service