chapter 24 congestion control and quality of serviceplw/dccn/presentation/ch24.pdf · chapter 24...

48
Chapter 24 Congestion Control and Quality of Service 24.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Upload: vodieu

Post on 05-Mar-2018

235 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Chapter 24

Congestion Control andQuality of Service

24.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--1 1 DATA TRAFFICDATA TRAFFIC

TheThe mainmain focusfocus ofof congestioncongestion controlcontrol andand qualityquality ofofTheThe mainmain focusfocus ofof congestioncongestion controlcontrol andand qualityquality ofofserviceservice isis datadata traffictraffic.. InIn congestioncongestion controlcontrol wewe trytry totoavoidavoid traffictraffic congestioncongestion InIn qualityquality ofof serviceservice wewe trytry totoavoidavoid traffictraffic congestioncongestion.. InIn qualityquality ofof service,service, wewe trytry totocreatecreate anan appropriateappropriate environmentenvironment forfor thethe traffictraffic.. So,So,beforebefore talkingtalking aboutabout congestioncongestion controlcontrol andand qualityquality ofofbeforebefore talkingtalking aboutabout congestioncongestion controlcontrol andand qualityquality ofofservice,service, wewe discussdiscuss thethe datadata traffictraffic itselfitself..

Topics discussed in this section:Topics discussed in this section:Traffic DescriptorTraffic Profiles

24.2

Page 3: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.1 Traffic descriptors

24.3

Page 4: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.2 Three traffic profiles

24.4

Page 5: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--2 2 CONGESTIONCONGESTION

C tiC ti ii t kt k ifif thth l dl d ththCongestionCongestion inin aa networknetwork maymay occuroccur ifif thethe loadload onon thethenetworknetwork——thethe numbernumber ofof packetspackets sentsent toto thethe networknetwork——ii tt thth thth itit ff thth t kt k ththisis greatergreater thanthan thethe capacitycapacity ofof thethe networknetwork——thethenumbernumber ofof packetspackets aa networknetwork cancan handlehandle.. CongestionCongestion

t lt l ff tt thth h ih i dd t h it h i ttcontrolcontrol refersrefers toto thethe mechanismsmechanisms andand techniquestechniques totocontrolcontrol thethe congestioncongestion andand keepkeep thethe loadload belowbelow thethe

ititcapacitycapacity..

T i di d i thi tiT i di d i thi tiNetwork PerformanceTopics discussed in this section:Topics discussed in this section:

24.5

Page 6: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.3 Queues in a router

24.6

Page 7: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure Packet delay and throughput as functions of load

24.7

Page 8: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--3 3 CONGESTION CONTROLCONGESTION CONTROL

CongestionCongestion controlcontrol refersrefers toto techniquestechniques andandCongestionCongestion controlcontrol refersrefers toto techniquestechniques andandmechanismsmechanisms thatthat cancan eithereither preventprevent congestion,congestion, beforebeforeitit happens,happens, oror removeremove congestion,congestion, afterafter itit hashasitit happens,happens, oror removeremove congestion,congestion, afterafter itit hashashappenedhappened.. InIn general,general, wewe cancan dividedivide congestioncongestioncontrolcontrol mechanismsmechanisms intointo twotwo broadbroad categoriescategories:: openopen--controlcontrol mechanismsmechanisms intointo twotwo broadbroad categoriescategories:: openopenlooploop congestioncongestion controlcontrol (prevention)(prevention) andand closedclosed--looploopcongestioncongestion controlcontrol (removal)(removal)..congestioncongestion controlcontrol (removal)(removal)..

Topics discussed in this section:Topics discussed in this section:Open-Loop Congestion ControlClosed-Loop Congestion Control

Topics discussed in this section:Topics discussed in this section:

24.8

p g

Page 9: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.5 Congestion control categories

24.9

Page 10: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.6 Backpressure method for alleviating congestion

24.10

Page 11: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.7 Choke packet

24.11

Page 12: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--4 4 TWO EXAMPLESTWO EXAMPLES

ToTo betterbetter understandunderstand thethe conceptconcept ofof congestioncongestioncontrol,control, letlet usus givegive twotwo examplesexamples:: oneone inin TCPTCP andand thetheotherother inin FrameFrame RelayRelay..

Congestion Control in TCPTopics discussed in this section:Topics discussed in this section:

Congestion Control in Frame Relay

24.12

Page 13: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.8 Slow start, exponential increase

24.13

Page 14: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

I th l t t l ith th i f

Note

In the slow-start algorithm, the size of the congestion window increases

exponentially until it reaches a threshold.t es o d

24.14

Page 15: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.9 Congestion avoidance, additive increase

24.15

Page 16: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

I th ti id l ith

Note

In the congestion avoidance algorithm, the size of the congestion window

increases additively until congestion is detected.co gest o s detected

24.16

Page 17: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Note

An implementation reacts to congestion

Note

An implementation reacts to congestion detection in one of the following ways:❏ If detection is by time out a new slow❏ If detection is by time-out, a new slow

start phase starts.❏ If d t ti i b th ACK❏ If detection is by three ACKs, a new

congestion avoidance phase starts.

24.17

Page 18: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.10 TCP congestion policy summary

24.18

Page 19: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.11 Congestion example

24.19

Page 20: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.12 BECN

24.20

Page 21: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.13 FECN

24.21

Page 22: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.14 Four cases of congestion

24.22

Page 23: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--5 5 QUALITY OF SERVICEQUALITY OF SERVICEQQ

QualityQuality ofof serviceservice (QoS)(QoS) isis anan internetworkinginternetworking issueissueQualityQuality ofof serviceservice (QoS)(QoS) isis anan internetworkinginternetworking issueissuethatthat hashas beenbeen discusseddiscussed moremore thanthan defineddefined.. WeWe cancaninformallyinformally definedefine qualityquality ofof serviceservice asas somethingsomething aainformallyinformally definedefine qualityquality ofof serviceservice asas somethingsomething aaflowflow seeksseeks toto attainattain..

Flow CharacteristicsTopics discussed in this section:Topics discussed in this section:

Flow Classes

24.23

Page 24: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.15 Flow characteristics

24.24

Page 25: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--6 6 TECHNIQUES TO IMPROVE QoSTECHNIQUES TO IMPROVE QoSQ QQ Q

InIn SectionSection 2424 55 wewe triedtried toto definedefine QoSQoS inin termsterms ofof itsitsInIn SectionSection 2424..55 wewe triedtried toto definedefine QoSQoS inin termsterms ofof itsitscharacteristicscharacteristics.. InIn thisthis section,section, wewe discussdiscuss somesometechniquestechniques thatthat cancan bebe usedused toto improveimprove thethe qualityquality ofoftechniquestechniques thatthat cancan bebe usedused toto improveimprove thethe qualityquality ofofserviceservice.. WeWe brieflybriefly discussdiscuss fourfour commoncommon methodsmethods::schedulingscheduling traffictraffic shapingshaping admissionadmission controlcontrol andandscheduling,scheduling, traffictraffic shaping,shaping, admissionadmission control,control, andandresourceresource reservationreservation..

SchedulingTopics discussed in this section:Topics discussed in this section:

Traffic ShapingResource ReservationAdmission Control

24.25

Admission Control

Page 26: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.16 FIFO queue

24.26

Page 27: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.17 Priority queuing

24.27

Page 28: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.18 Weighted fair queuing

24.28

Page 29: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.19 Leaky bucket

24.29

Page 30: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.20 Leaky bucket implementation

24.30

Page 31: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Note

A leaky bucket algorithm shapes bursty

Note

A leaky bucket algorithm shapes bursty traffic into fixed-rate traffic by averaging the data rate It ma drop the packets ifthe data rate. It may drop the packets if

the bucket is full.

24.31

Page 32: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Note

The token bucket allows bursty traffic at l t d i ta regulated maximum rate.

24.32

Page 33: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.21 Token bucket

24.33

Page 34: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--7 7 INTEGRATED SERVICESINTEGRATED SERVICES

TT d ld l hh bb d i dd i d tt idid litlit ffTwoTwo modelsmodels havehave beenbeen designeddesigned toto provideprovide qualityquality ofofserviceservice inin thethe InternetInternet:: IntegratedIntegrated ServicesServices andandDiff ti t dDiff ti t d S iS i WW didi thth fi tfi t d ld lDifferentiatedDifferentiated ServicesServices.. WeWe discussdiscuss thethe firstfirst modelmodelherehere..

SignalingTopics discussed in this section:Topics discussed in this section:SignalingFlow SpecificationAdmissionService ClassesRSVP

24.34

Problems with Integrated Services

Page 35: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Note

Integrated Services is a flow-based QoS d l d i d f IPmodel designed for IP.

24.35

Page 36: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.22 Path messages

24.36

Page 37: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.23 Resv messages

24.37

Page 38: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.24 Reservation merging

24.38

Page 39: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.25 Reservation styles

24.39

Page 40: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--8 8 DIFFERENTIATED SERVICESDIFFERENTIATED SERVICES

DifferentiatedDifferentiated ServicesServices (DS(DS oror Diffserv)Diffserv) waswasDifferentiatedDifferentiated ServicesServices (DS(DS oror Diffserv)Diffserv) waswasintroducedintroduced byby thethe IETFIETF (Internet(Internet EngineeringEngineering TaskTaskForce)Force) toto handlehandle thethe shortcomingsshortcomings ofof IntegratedIntegratedForce)Force) toto handlehandle thethe shortcomingsshortcomings ofof IntegratedIntegratedServicesServices..

DS FieldTopics discussed in this section:Topics discussed in this section:

24.40

Page 41: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Note

Differentiated Services is a class-based Q S d l d i d f IPQoS model designed for IP.

24.41

Page 42: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.26 DS field

24.42

Page 43: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.27 Traffic conditioner

24.43

Page 44: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

2424--9 9 QoS IN SWITCHED NETWORKSQoS IN SWITCHED NETWORKSQQ

LetLet usus nownow discussdiscuss QoSQoS asas usedused inin twotwo switchedswitchednetworksnetworks:: FrameFrame RelayRelay andand ATMATM.. TheseThese twotwo networksnetworksareare virtualvirtual--circuitcircuit networksnetworks thatthat needneed aa signalingsignalingprotocolprotocol suchsuch asas RSVPRSVP..

QoS in Frame Relay

Topics discussed in this section:Topics discussed in this section:QoS e e yQoS in ATM

24.44

Page 45: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.28 Relationship between traffic control attributes

24.45

Page 46: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.29 User rate in relation to Bc and Bc + Be

24.46

Page 47: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.30 Service classes

24.47

Page 48: Chapter 24 Congestion Control and Quality of Serviceplw/dccn/presentation/ch24.pdf · Chapter 24 Congestion Control and Quality of Service ... The main focus of congestion control

Figure 24.31 Relationship of service classes to the total capacity of the network

24.48