Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit...

43
Integrated and Differentiated Services CSU CS557, Spring 2018 Instructor: Lorenzo De Carli (Slides by Christos Papadopoulos, remixed by Lorenzo De Carli)

Transcript of Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit...

Page 1: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Integrated and Differentiated Services

CSU CS557, Spring 2018 Instructor: Lorenzo De Carli

(Slides by Christos Papadopoulos, remixed by Lorenzo De Carli)

Page 2: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Preliminary concepts: token buffer

2

Page 3: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Characterizing Traffic: Token Bucket Filter

• Parsimonious model to characterize traffic • Described by 2 parameters:

– token rate r: rate of tokens placed in the bucket – bucket depth B: capacity of the bucket

• Operation: – tokens are placed in bucket at rate r – 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

3

Page 4: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Token Bucket Operation

tokens

Packet

overflow

tokens

tokens

Packet

Enough tokens packet goes through, tokens removed

Not enough tokens - wait for tokens to accumulate 4

Page 5: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Token Bucket Characteristics

• In the long run, rate is limited to r • In 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

5

Page 6: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Token Bucket Specs

BW (MB)

Time

1

2

1 2 3

Flow A

Flow BFlow A: r = 1 MBps, B=1 packetFlow B: r = 1 MBps, B=1MB

6

Page 7: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Possible Token Bucket Uses

• Shaping, policing, marking – delay pkts from entering net (shaping) – drop pkts that arrive without tokens (policing) – let all pkts pass through, mark ones without

tokens • Then, network drops pkts without tokens during

congestion

7

Page 8: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Preliminary concepts: RED queuing

8

• Sally Floyd and Van Jacobson, “Random Early Detection Gateways for Congestion Avoidance”, IEEE/ACM ToN Aug 1993

Page 9: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Random Early Detection (RED)

• Motivation: – TCP detects congestion from loss - after queues have

built up and increase delay (not good if goal is to keep queue utilization low!) (full queue problem)

• Aim: – keep throughput high and delay low – accommodate bursts

• Approach: – Probabilistically drop packets before congestions occurs – No per-flow state

9

Page 10: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Solving the Full Queues Problem

• Drop packets before queue becomes full (early drop)

• Intuition: notify senders of incipient congestion

10

Page 11: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

RED OperationMin threshMax thresh

Average queue length

minthresh maxthresh

MaxP

1.0

Avg length

P(drop)

do not dropprobabilistic dropalways drop

11

Page 12: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Integrated services (IntServ)

12

Page 13: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Integrated Services

• Basic idea: let applications specify whatever delay and bandwidth they desire, and network tries to satisfy the application

• Components: – Service interface between applications and network – Admission Control – which flows get in? – Reservation Protocol (e.g., RSVP) - signaling – Scheduling algorithms (e.g. Weighted Fair Queuing)

• A hot research area many years ago – Work has essentially stopped – But old ideas sometimes come back..

13

Page 14: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

State of Integrated Services

• Lots of work done in the area • We understand many of the problems

– But no commercial interest in the technology – Too complex?

• we can probably build schedulers in hardware • Need per-flow state for scheduling • Need end-to-end signaling

• Can we do something simpler?

14

Page 15: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Differentiated Services (DiffServ)

15

Page 16: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Key Ideas

• Traffic classes instead of flows • Forwarding behaviors instead of end-to-end

service guarantees – Tune applications to network services rather than

network services to applications – Discrete vs. continuous space

• No resource reservation • Somewhere between Best Effort and IntServ

16

Page 17: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Service Differentiation

• 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 but by economics and assurances

17

Page 18: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Types of Service

• Premium service: (type P) – admitted based on peak rate – conservative, virtual wire services – unused premium goes to best effort (subsidy!)

• Assured service: (type A) – based on expected capacity usage profiles – traffic unlikely to be dropped if user maintains profile.

Out-of-profile traffic marked • Best effort

18

Page 19: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Differences With Integrated Services

• No need for reservations: just mark packets • Packet marking done at administrative

boundaries before injecting packets into network

• Significant savings in signaling, much simpler overall

19

Page 20: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Service vs. Forwarding Treatment

• Service: end-to-end • Forwarding treatment: hop-by-hop (at each

router) – Reasoning: various forwarding treatments can

be used to construct same e2e service – Free to implement treatments locally in various

ways (buffer management and scheduling) – Example: no-loss service implemented with

priority queue (but needs admission control)

20

Page 21: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Service Level Agreements

• Mostly static or long-lived. Specification: – Traffic profile (e.g., token bucket per class) – Performance metrics (throughput, delay, drop

priority) – Actions for non-conformant packets – Additional marking/shaping

21

Page 22: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Where Things Happen

first hop router

internal router

border router

host

border router

ISP

Company A

Unmarked packet flow

Marked packets

Only scheduling No police or mark

Classify, police and mark

police

22

Page 23: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

A Two-bit Differentiated Services Architecture for the Internet

Nichols99a

23

Page 24: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Premium vs. Assured Forwarding Behaviors

• Premium packets receive virtual circuit type of treatment – Appropriate for intolerant (of loss) and rigid (in

delay) applications • Assured packets receive “better than best

effort” type of treatment – Appropriate for adaptive applications

24

Page 25: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

2-bit Differentiated Service

• Precedence field encodes P & A type packets • P packets are BW limited, shaped and queued at

higher priority than ordinary best effort • A packets treated preferentially wrt dropping

probability in the normal queue • Leaf and border routers have input and output tasks

- other routers just output

25

Page 26: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Leaf Router Input Functionality

Clear A & P bits

Packet classifier

Marker 1

Marker N

Forwarding engine

Arriving packet Best effort

Flow

1Fl

ow N

Markers: service class, rate, permissible burst size

26

Page 27: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Marker Function in Routers

• Leaf routers have traffic profiles - they classify packets based on packet header

• If no profile present, pass as best effort • If profile is for A:

– mark in-profile packets with A, forward others unmarked

• If profile is for P: – delay out-of -profile packets to shape into profile

27

Page 28: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Markers to Implement Two Different Services

Wait for token Set P bit

Packet input

Packet output

Test if token Set A bit

token

No token

Packet input

Packet output

Drop on overflow

28

Page 29: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Output Forwarding

• 2 queues: P packets on higher priority queue • Lower priority queue implements RED “In

or Out” scheme (RIO) • At border routers profile meters test marked

flows: – drop P packets out of profile – unmark A packets

29

Page 30: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Router Output Interface for Two-bit Architecture

P-bit set?

If A-bit set incr A_cnt

High-priority Q

Low-priority Q

If A-bit set decr A_cnt

RIO queue management

Packets outyes

no

30

Page 31: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Red With In or Out (RIO)

• For Assured Services • 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 • As avg queue length increases, “in” packets

are dropped

31

Page 32: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

RIO Drop Probabilities

MaxPin

1.0

Minout Minin MaxinMaxout

P(drop)

AvgLen

More drop probability curves (WRED)?

MaxPout

32

Page 33: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Border Router Input Interface Profile Meters

Arriving packet

Is packet marked?

Token available?

Token available?

Clear A-bit

Drop packet

Forwarding engine

A set

P set

token

token

Not marked

no

no

33

Page 34: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Per-hop Behaviors (PHBs)

• Define behavior of individual routers rather than end-to-end services - there may be much 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)

34

Page 35: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Signaling

• Where? – static (long-term):

• done out-of-band – dynamic:

• from leaf to Bandwidth Broker • and from BB in one domain to another BB

• How? – not clear, but maybe RSVP

35

Page 36: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Signaling: BBs

36

Page 37: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

Diffserv V.S. Intserv Summary

• Resources to aggregated traffic, not flows • Traffic policing at the edges, class

forwarding in the core • Define forwarding behaviors, not services • Guarantees by provisioning and SLAs, not

reservations • Focus on single domain, not e2e (need BBs

for e2e)

37

Page 38: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

38

A few words on differential traffic treatment and net neutrality

Page 39: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

39

What is net neutrality?

• The idea that Internet Service Providers (ISPs) shall abstain from providing preferential treatment to some types of traffic over others

• Hotly debated political issue

• Keep in mind that “net neutrality” is a policy concept, “traffic differentiation” is a technical concept… they are not necessarily incompatible (e.g. guaranteeing low-delay to real time traffic does not necessarily “penalize” a bulk file transfer)

• Let’s debunk a couple of myths…

Page 40: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

40

Myth 1: the original Internet designers never considered differential treatment for commercial purposes

• That’s not true! Clark ’88 (“The Design Philosophy of the DARPA Internet Protocols”) clearly considers accountability (as a feature necessary for commercial exploitation)…

• … but states that it was not a priority because the original Internet was created for military uses

• The work we just discussed also shows that researchers have been thinking about commercial traffic classes for decades

Page 41: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

41

Myth 2: treating different types of traffic differently is easily achievable

• That’s not true either! Lots of research on how to do preferential treatment of traffic, and yet a lot of problems remain unsolved…

• E.g., how can we distinguish traffic if the endpoints do not cooperate? • Can we accept false positives in this

context?

Page 42: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

42

Myth 2: treating different types of traffic differently is easily achievable - II

• If preferential treatment is in place, how can the user be informed in a way which is meaningful to her?

• “An ISP could […] say, for example, that it has deployed a token bucket filter of a certain size, fill rate, and drain rate […] This would constitute a disclosure of a network management practice, but it would be meaningless for consumers. On the other hand, other disclosures might be so vague as to be meaningless” Nick Feamster (Princeton), 3/2018

Page 43: Integrated and Differentiated Servicescs.colostate.edu/~cs557/slides/13.pdf · A Two-bit Differentiated Services Architecture for the Internet Nichols99a 23. Premium vs. Assured Forwarding

43

Bottom line?

• Whatever is your opinion on the net neutrality debate (if you have one)…

• Make sure it is technically informed!