Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

37
rn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems

Transcript of Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Page 1: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

1

NETS3303Networked Systems

Page 2: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

2

Section 2 IP QoS

Page 3: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

3

Outcomes

• Understanding components of IP QOS– What they do– Why they are used or proposed

• Have knowledge of some case study technologies

• Understanding the relevance to MM delivery

Page 4: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

4

IP QoS

• Today’s Outline– What is QoS?– Types of traffic– IntServ– Signalling– Queuing and Scheduling– DiffServ

Page 5: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

5

QoS ?

• Many definitions in literature

• My definition is:– “A perceived level of quality of a service or

function in relation to the wanted or expected level of quality”

• In this course, application behaviour depending on network performance

Page 6: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

6

IP QoS

• IP provides only Best Effort service:– No guarantees full stop– No guaranteed packet delivery– No guaranteed time– No guaranteed order

• IP is ignorant of packet content• No “Flows” in IP• Compare telephony network

Page 7: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

7

QoS

Internet Internet

Network parameters•Packet loss•Delay•Jitter

Getting lost is

easy here honey.

Lost speech:“ing”, “is easy here honey”

Get lost

Page 8: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

8

QoS

Internet Internet

Network parameters•Packet loss•Delay•Jitter

Getting lost is

easy here honey.

Delay 1000 ms

Where did he go?

Silence

Page 9: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

9

QoS

Internet Internet

Network parameters•Packet loss•Delay•Jitter

Getting lost is

easy here honey.

Delay 1000 ms

What the

G ettinglos tis easyhere h on ey

Page 10: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

10

Types of Traffic

• Different applications generate different types of traffic e.g.– Web pages (delay sensitive)– FTP (BW sensitive)– Streamed Media (BW sensitive)– Conversational Multimedia (delay and BW)

Page 11: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

11

Building blocks

Network Region

Network Region

Network Region

Network Region

End host End host

Edge Router Edge Router

Routers Routers

•End – to – end signalling•Routers: Queuing and Scheduling•Edge Routers: Add admission control•A defined set of rules or classes to request

Page 12: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

12

IntServ

• Provides a set of service classes per flow– Guaranteed Service

• Hard guarantees (Conversational MM)

– Controlled Load• Same behaviour as lightly loaded BE network

(adaptive MM etc.)

– Best Effort• All other types of traffic

Page 13: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

13

Is there a problem with the per-flow specification?

Page 14: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

14

RSVP

• Create notion of flow:– E2E Signalling

• IETF proposal– Resource Reservation Protocol, RSVP

• Allows Applications to make reservations

Page 15: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

15

RSVP

• App fills in Traffic specification (T-Spec)• Each router: admission control• If requirements met: make reservations

End Host End Host

Router RouterRouter

Can I get?Can I get? Can I get?Can I get?

OKFlow

Page 16: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

16

Why is signalling receiver-based?

Page 17: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

17

Admission Control

• Token Bucket (rate r, size b)– Start with full bucket– If enough tokens in bucket accept packets and

remove tokens– Tokens keep filling with rate r

Page 18: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

18

Queuing

• Traditional queuing: FIFO, one input one output

• Need to separate traffic into classes

• Need to give different priority to different classes

• Need to manage the different queues

Page 19: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

19

QoS Router

• Standard QoS Router Components– Routing Policy (rules for classification)– Routing table (Where to send packets)– Input Lines (where packets com in, no queue)– Output queues (where packets wait to be sent)– Classifier (puts packets into queues acc. to

policy)– Scheduler (decides which queue to empty)

Page 20: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

20

Scheduling

• The scheduler assigns resources to tasks

• In a computer: divide CPU runtime to processes

• In a router: divide available BW (output queues) to packets

• Operates based on router policy

Page 21: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

21

FCFS

• Work Conserving (if packet waiting, serve)• Klienrock Conservation Law

Cqn

N

nn

=∑=1ρ

If delay for one flow is lowered, the delay for one or more other flows must increase

ρ = link utilisationq = mean scheduler delayC = a constant

Page 22: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

22

Non Work Conserving

• Scheduler can be idle even if packets waiting

• Switches packets to– The right destination– At the right time

• Reduces jitter

• Makes traffic predictable

Page 23: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

23

Scheduling Requirements

• Easy to implement– Simple makes fast– Few states allows HW

implementation• High speed routing

• Fairness– Local means global– Protect from other

misbehaving flows

• Performance bounds– Per flow bounds

• Deterministic guaranteed)

• Statistical

– Data rate, jitter, delay, loss

• Admission Control– Easy to implement

– efficient

Page 24: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

24

Scheduling choices

• Priority levels– How many– Serve higher priority

queues first? (can cause starvation)

• Work conserving?– Delay/jitter control

required?– Extra cost acceptable?

• Flow Aggregation– Granularity?

• Per flow• Per application• Per terminal

• Per queue policy– FCFS?– Look inside each

packet and decide?– Performance/overhead

Page 25: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

25

Priority Queuing

• K queues– 1 ≤ k ≤ K– Queue k+1 higher prio. than queue k– Higher prio. served first

• Simple implementation• Low processing overhead • No fairness, low prio. queues can be starved

Page 26: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

26

WFQ

• Round robin scheme – Estimate time to send packet (finish number)– Tag packet with finish number– Serve packet with smallest finish number

• Regardless of queue

• Weights can be assigned to enable prioritisation

• Implemented by manufacturers

Page 27: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

27

CBQ

• Assigns fractions of BW to class nodes

• Values minimum• Nodes can borrow

unused BW• Priority to flows

within a class

100 %

40 %

20 %

60 %

40 %

Root

X Y

RT NRT

Page 28: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

28

Question:Can we do QoS

management without Queuing / Scheduling?

Page 29: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

29

DiffServ

• IntServ per-flow scalability problem

• Solution: aggregate flows– Treat classes not individual flows– Thus, tables kept small

• IP TOS field becomes DSCP– 6 bit identifier of class

Page 30: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

30

DiffServ domain

IngressRouter

EgressRouter

CoreRouter

CoreRouter

Dimensioned to meetIngress router admissioncontrol

PHB PHBPHB

Page 31: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

31

DiffServ PHB

• Expedited Forwarding, EF– Highest priority– WFQ suitable

• Assured Forwarding, AF– Three drop probability classes– Graceful behaviour

Page 32: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

32

What if two DiffServ domains have

different definitions of what a DSCP translates to?

Page 33: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

33

The QoS stair

A DCB

QoSLevel

Domain

Page 34: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

34

DiffServ:Scales wellStatistical guarantee only

Page 35: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

35

Summary

• IP, no flows, no traffic separation• Different types of traffic, different needs• QoS management:

– Classification– Signalling– Admission control– Queuing/scheduling

• IntServ, DiffServ, RSVP

Page 36: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

36

Reading

• Deeper understanding:– RFCs 2205-2216, 2474-2475

Page 37: Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.

Bjorn Landfeldt, The University of Sydney

37

Other areas• MPLS

• VLANS

• Working Intserv and Diffserv together

• QoS in 3G, bearer services, signalling etc.

• Service Level Agreements

• Billing and business models

• Fibre, channel allocations DWDM etc.