Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental...

41
Advance Computer Networking L-7 QoS

Transcript of Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental...

Page 1: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

Advance Computer Networking

L-7 QoS

Page 2: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

QoS

• IntServ• DiffServ• Assigned reading

• [ [She95] Fundamental Design Issues for the Future Internet

• [CSZ92] Supporting Real-Time Applications in an Integrated Services Packet Network: Architecture and Mechanisms

• Optional• [CF98] Explicit Allocation of Best-Effort Packet

Delivery Service

2

Page 3: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

3

Overview

• Why QOS?• Integrated services• Differentiated services

Page 4: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

4

Motivation

• Internet currently provides one single class of “best-effort” service• No assurances about delivery

• Existing applications are elastic• Tolerate delays and losses• Can adapt to congestion

• Future “real-time” applications may be inelastic

Page 5: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

5

Inelastic Applications

• Continuous media applications• Lower and upper limit on acceptable performance.• BW below which video and audio are not intelligible• Internet telephones, teleconferencing with high delay

(200 - 300ms) impair human interaction

• Hard real-time applications• Require hard limits on performance• E.g. control applications

Page 6: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

6

Why a New Service Model?

• What is the basic objective of network design?• Maximize total bandwidth? Minimize latency?• Maximize user satisfaction – the total utility

given to users

• What does utility vs. bandwidth look like?• Must be non-decreasing function • Shape depends on application

Page 7: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

7

Utility Curve Shapes

Stay to the right and youare fine for all curves

BW

U Elastic

BW

U Hard real-time

BW

U Delay-adaptive

Page 8: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

8

Utility curve – Elastic traffic

Bandwidth

U Elastic

Page 9: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

9

Admission Control

• If U(bandwidth) is concave

elastic applications

• Incremental utility is decreasing with increasing bandwidth

• Is always advantageous to have more flows with lower bandwidth

• No need of admission control;

This is why the Internet works!

BW

U Elastic

Page 10: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

10

Utility Curves – Inelastic traffic

BW

U Hard real-time

BW

U Delay-adaptive

Page 11: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

11

Admission Control

• If U is convex inelastic applications• U(number of flows) is no longer

monotonically increasing• Need admission control to

maximize total utility

• Admission control deciding when the addition of new people would result in reduction of utility• Basically avoids overload

BW

U Delay-adaptive

Page 12: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

12

Overview

• Why QOS?• Integrated services• Differentiated services

Page 13: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

13

Components of Integrated Services

1. Type of commitment What does the network promise?

2. Packet scheduling How does the network meet promises?

3. Service interface How does the application describe what it wants?

4. Establishing the guarantee How is the promise communicated to/from the network

How is admission of new applications controlled?

Page 14: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

14

1. Type of commitment

What kind of promises/services should network offer?

Depends on the characteristics of the applications that will use the network ….

Page 15: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

15

Playback Applications

• Sample signal packetize transmit buffer playback• Fits most multimedia applications

• Performance concern:• Jitter – variation in end-to-end delay

• Delay = fixed + variable = (propagation + packetization) + queuing

• Solution: • Playback point – delay introduced by buffer to hide network jitter

Page 16: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

Characteristics of Playback Applications

• In general lower delay is preferable.

• Doesn’t matter when packet arrives as long as it is before playback point

• Network guarantees (e.g. bound on jitter) would make it easier to set playback point

• Applications can tolerate some loss

16

Page 17: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

17

Applications Variations

• Rigid & adaptive applications • Rigid – set fixed playback point • Adaptive – adapt playback point

• Gamble that network conditions will be the same as in the past

• Are prepared to deal with errors in their estimate• Will have an earlier playback point than rigid

applications

• Tolerant & intolerant applications• Tolerance to brief interruptions in service

• 4 combinations

Page 18: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

18

Applications Variations

Really only two classes of applications1) Intolerant and rigid

2) Tolerant and adaptive

Other combinations make little sense3) Intolerant and adaptive

- Cannot adapt without interruption

4) Tolerant and rigid

- Missed opportunity to improve delay

So what service classes should the network offer?

Page 19: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

19

Type of Commitments

• Guaranteed service• For intolerant and rigid applications• Fixed guarantee, network meets commitment as long

as clients send at match traffic agreement

• Predicted service• For tolerant and adaptive applications• Two components

• If conditions do not change, commit to current service• If conditions change, take steps to deliver consistent

performance (help apps minimize playback delay)• Implicit assumption – network does not change much over time

• Datagram/best effort service

Page 20: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

20

Components of Integrated Services

1. Type of commitment What does the network promise?

2. Packet scheduling How does the network meet promises?

3. Service interface How does the application describe what it wants?

4. Establishing the guarantee How is the promise communicated to/from the network

How is admission of new applications controlled?

Page 21: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

21

Scheduling for Guaranteed Traffic

• Use token bucket filter to characterize traffic• Described by rate r and bucket depth b

• Use WFQ at the routers• Parekh’s bound for worst case queuing delay =

b/r

Page 22: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

22

Token Bucket Filter

Operation:• If bucket fills, tokens are

discarded• Sending a packet of size P

uses P tokens• If bucket has P tokens,

packet sent at max rate, else must wait for tokens to accumulate

Tokens enter bucket at rate r

Bucket depth b: capacity of bucket

Page 23: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

23

Token Bucket Operation

Tokens

Packet

Overflow

Tokens Tokens

Packet

Enough tokens packet goes through,tokens removed

Not enough tokens wait for tokens to accumulate

Page 24: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

24

Token Bucket Characteristics

• On the long run, rate is limited to r

• On the short run, a burst of size b can be sent

• Amount of traffic entering at interval T is bounded by:• Traffic = b + r*T

• Information useful to admission algorithm

Page 25: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

26

Predicted Service

Goals:• Isolation

• Isolates well-behaved from misbehaving sources

• Sharing• Mixing of different sources in a way beneficial to all

Mechanisms:• WFQ

• Great isolation but no sharing

• FIFO• Great sharing but no isolation

Page 26: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

27

Predicted Service

• FIFO jitter increases with the number of hops• Use opportunity for sharing across hops

• FIFO+• At each hop: measure average delay for class at that

router• For each packet: compute difference of average delay

and delay of that packet in queue• Add/subtract difference in packet header• Packet inserted into queues expected arrival time

instead of actual• More complex queue management!

• Slightly decreases mean delay and significantly decreases jitter

Page 27: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

28

Unified Scheduling

• Assume 3 types of traffic: guaranteed, predictive, best-effort

• Scheduling: use WFQ in routers• Each guaranteed flow gets its own queue• All predicted service flows and best effort

aggregates in single separate queue• Predictive traffic classes

• Multiple FIFO+ queues• Worst case delay for classes separated by order of magnitude• When high priority needs extra bandwidth – steals it from lower

class

• Best effort traffic acts as lowest priority class

Page 28: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

30

Overview

• Why QOS?• Integrated services• Differentiated services

Page 29: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

31

DiffServ

• Analogy:• Airline service, first class, coach, various

restrictions on coach as a function of payment

• Best-effort expected to make up bulk of traffic, but revenue from first class important to economic base (will pay for more plentiful bandwidth overall)

• Not motivated by real-time! Motivated by economics and assurances

Page 30: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

32

Basic Architecture

• Agreements/service provided within a domain• Service Level Agreement (SLA) with ISP

• Edge routers do traffic conditioning• Perform per aggregate shaping and policing• Mark packets with a small number of bits; each bit

encoding represents a class or subclass

• Core routers• Process packets based on packet marking and defined

per hop behavior

• More scalable than IntServ• No per flow state or signaling

Page 31: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

33

Per-hop Behaviors (PHBs)

• Define behavior of individual routers rather than end-to-end services – there may be many more services than behaviors

• Multiple behaviors – need more than one bit in the header

• Six bits from IP TOS field are taken for Diffserv code points (DSCP)

Page 32: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

34

Per-hop Behaviors (PHBs)

• Two PHBs defined so far• Expedited forwarding aka premium service (type

P)• Possible service: providing a virtual wire• Admitted based on peak rate• Unused premium goes to best effort

• Assured forwarding (type A)• Possible service: strong assurance for traffic within

profile & allow source to exceed profile• Based on expected capacity usage profiles• Traffic unlikely to be dropped if user maintains profile• Out-of-profile traffic marked

Page 33: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

35

Expedited Forwarding PHB

• User sends within profile & network commits to delivery with requested profile• Signaling, admission control may get more

elaborate in future

• Rate limiting of EF packets at edges only, using token bucket to shape transmission

• Simple forwarding: classify packet in one of two queues, use priority• EF packets are forwarded with minimal delay

and loss (up to the capacity of the router)

Page 34: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

36

Expedited Forwarding Traffic Flow

first hoprouter

internalrouter

edgerouter

host

edgerouter

ISP

Company A

Unmarkedpacket flow

Packets in premiumflows have bit set

Premium packet flowrestricted to R bytes/sec

Page 35: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

37

Assured Forwarding PHB

• User and network agree to some traffic profile• Edges mark packets up to allowed rate as “in-profile” or

low drop precedence • Other packets are marked with one of 2 higher drop

precedence values

• A congested DS node tries to protect packets with a lower drop precedence value from being lost by preferably discarding packets with a higher drop precedence value• Implemented using RED with In/Out bit

Page 36: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

38

Red with In or Out (RIO)

• Similar to RED, but with two separate probability curves

• Has two classes, “In” and “Out” (of profile)

• “Out” class has lower Minthresh, so packets are dropped from this class first• Based on queue length of all packets

• As avg queue length increases, “in” packets are also dropped• Based on queue length of only “in” packets

Page 37: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

39

RIO Drop Probabilities

P (drop in) P (drop out)

min_in max_inavg_in

P max_in

P max_out

min_out max_outavg_total

Page 38: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

40

Edge Router Input Functionality

Packetclassifier

TrafficConditioner 1

TrafficConditioner N

Forwardingengine

Arrivingpacket

Best effort

Flo

w 1

Flow

N

classify packets based on packet header

Page 39: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

41

Traffic Conditioning

Wait fortoken

Set EF bitPacketinput

Packetoutput

Test iftoken

Set AF “in” bit

token

No token

Packetinput

Packetoutput

Drop on overflow

Page 40: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

Router Output Processing

• 2 queues: EF packets on higher priority queue

• Lower priority queue implements RED “In or Out” scheme (RIO)

42

What DSCP?

If “in” setincr in_cnt

High-priority Q

Low-priority Q

If “in” setdecr in_cnt

RIO queuemanagement

Packets out

EF

AF

Page 41: Advance Computer Networking L-7 QoS. QoS IntServ DiffServ Assigned reading [ [She95] Fundamental Design Issues for the Future Internet [CSZ92] Supporting.

44

Comparison

Service

Service Scope

Complexity

Scalability

• Connectivity• No isolation• No guarantees

• End-to-end

• No set-up

• Highly scalable• (nodes maintain

only routing state)

Best-Effort

• Per aggregation isolation

• Per aggregation guarantee

• Domain

• Long term setup

• Scalable (edge routers maintains per aggregate state; core routers per class state)

Diffserv

• Per flow isolation• Per flow guarantee

• End-to-end

• Per flow setup

• Not scalable (each router maintains per flow state)

Intserv