Data Communication and Networking Ch (24)

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

Transcript of Data Communication and Networking Ch (24)

Page 1: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 1/4824.1

Chapter 24Congestion Control and

Quality of Service

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

Page 2: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 2/4824.2

24-1 DATA TRAFFIC

The main focus of congestion control and quality of 

 service is  data traffic . In congestion control we try to

 avoid traffic congestion. In quality of service, we try to

 create an appropriate environment for the traffic. So,

 before talking about congestion control and quality of 

 service, we discuss the data traffic itself.

Traffic Descriptor

Traffic Profiles

Topics discussed in this section:

Page 3: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 3/4824.3

Figure 24.1 Traffic descriptors

Page 4: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 4/4824.4

Figure 24.2 Three traffic profiles

Page 5: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 5/4824.5

24-2 CONGESTION

Congestion in a network may occur if the load on the

 network —  the number of packets sent to the network — 

is greater than the capacity of the network —  the

 number of packets a network can handle. Congestion control refers to the mechanisms and techniques to

 control the congestion and keep the load below the

 capacity.

Network Performance

Topics discussed in this section:

Page 6: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 6/4824.6

Figure 24.3 Queues in a router

Page 7: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 7/4824.7

Figure Packet delay and throughput as functions of load 

Page 8: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 8/4824.8

24-3 CONGESTION CONTROL

Congestion control refers to techniques and  mechanisms that can either prevent congestion, before

it happens, or remove congestion, after it has

 happened. In general, we can divide congestion

 control mechanisms into two broad categories: open-loop congestion control (prevention) and closed-loop

 congestion control (removal).

Open-Loop Congestion Control

Closed-Loop Congestion Control

Topics discussed in this section:

Page 9: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 9/4824.9

Figure 24.5 Congestion control categories

Page 10: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 10/4824.10

Figure 24.6  Backpressure method for alleviating congestion

Page 11: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 11/4824.11

Figure 24.7 Choke packet

Page 12: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 12/4824.12

24-4 TWO EXAMPLES

To better understand the concept of congestion

 control, let us give two examples: one in TCP and the

 other in Frame Relay.

Congestion Control in TCPCongestion Control in Frame Relay

Topics discussed in this section:

Page 13: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 13/4824.13

Figure 24.8 Slow start, exponential increase

Page 14: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 14/4824.14

In the slow-start algorithm, the size of

the congestion window increasesexponentially until it reaches a

threshold.

 Note

Page 15: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 15/4824.15

Figure 24.9 Congestion avoidance, additive increase

Page 16: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 16/4824.16

In the congestion avoidance algorithm,

the size of the congestion windowincreases additively untilcongestion is detected.

 Note

Page 17: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 17/4824.17

An implementation reacts to congestiondetection in one of the following ways:

❏ If detection is by time-out, a new slowstart phase starts.

❏ If detection is by three ACKs, a new

congestion avoidance phase starts.

 Note

Page 18: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 18/4824.18

Figure 24.10 TCP congestion policy summary

Page 19: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 19/4824.19

Figure 24.11 Congestion example

Page 20: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 20/4824.20

Figure 24.12  BECN 

Page 21: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 21/4824.21

Figure 24.13  FECN 

Page 22: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 22/48

24.22

Figure 24.14  Four cases of congestion

Page 23: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 23/48

24.23

24-5 QUALITY OF SERVICE

Quality of service (QoS) is an internetworking issue that has been discussed more than defined. We can

informally define quality of service as something a

 flow seeks to attain.

Flow CharacteristicsFlow Classes

Topics discussed in this section:

Page 24: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 24/48

24.24

Figure 24.15  Flow characteristics

Page 25: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 25/48

24.25

24-6 TECHNIQUES TO IMPROVE QoS

 In Section 24.5 we tried to define QoS in terms of its characteristics. In this section, we discuss some

 techniques that can be used to improve the quality of 

 service. We briefly discuss four common methods:

 scheduling, traffic shaping, admission control, and 

 resource reservation.

SchedulingTraffic Shaping

Resource Reservation

Admission Control

Topics discussed in this section:

Page 26: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 26/48

24.26

Figure 24.16  FIFO queue

Page 27: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 27/48

24.27

Figure 24.17  Priority queuing

Page 28: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 28/48

24.28

Figure 24.18 Weighted fair queuing

Page 29: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 29/48

24.29

Figure 24.19  Leaky bucket

Page 30: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 30/48

24.30

Figure 24.20  Leaky bucket implementation

Page 31: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 31/48

24.31

A leaky bucket algorithm shapes burstytraffic into fixed-rate traffic by averaging

the data rate. It may drop the packets ifthe bucket is full.

 Note

Page 32: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 32/48

24.32

The token bucket allows bursty traffic ata regulated maximum rate.

 Note

Page 33: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 33/48

24.33

Figure 24.21 Token bucket

Page 34: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 34/48

24.34

24-7 INTEGRATED SERVICES

Two models have been designed to provide quality of 

 service in the Internet: Integrated Services and 

 Differentiated Services. We discuss the first model 

 here.

Signaling

Flow Specification

Admission

Service Classes

RSVP

Problems with Integrated Services

Topics discussed in this section:

Page 35: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 35/48

24.35

Integrated Services is a flow-based QoSmodel designed for IP.

 Note

Page 36: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 36/48

24.36

Figure 24.22  Path messages

Page 37: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 37/48

24.37

Figure 24.23  Resv messages

Page 38: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 38/48

24.38

Figure 24.24  Reservation merging

Page 39: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 39/48

24.39

Figure 24.25  Reservation styles

Page 40: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 40/48

24.40

24-8 DIFFERENTIATED SERVICES

 Differentiated Services (DS or Diffserv) wasintroduced by the IETF (Internet Engineering Task

 Force) to handle the shortcomings of Integrated 

Services.

DS Field

Topics discussed in this section:

Page 41: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 41/48

24.41

Differentiated Services is a class-based

QoS model designed for IP.

 Note

Page 42: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 42/48

24.42

Figure 24.26  DS field 

Page 43: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 43/48

24.43

Figure 24.27 Traffic conditioner

Page 44: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 44/48

24.44

24-9 QoS IN SWITCHED NETWORKS

 Let us now discuss QoS as used in two switched 

 networks: Frame Relay and ATM. These two networks

 are virtual-circuit networks that need a signaling

 protocol such as RSVP.

QoS in Frame Relay

QoS in ATM

Topics discussed in this section:

Page 45: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 45/48

24.45

Figure 24.28  Relationship between traffic control attributes

Page 46: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 46/48

24.46

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

Page 47: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 47/48

24.47

Figure 24.30 Service classes

Page 48: Data Communication and Networking Ch (24)

5/16/2018 Data Communication and Networking Ch (24) - slidepdf.com

http://slidepdf.com/reader/full/data-communication-and-networking-ch-24 48/48

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