13-CongestioninDataNetworks REAL
13-CongestioninDataNetworks REAL
Communications
Chapter 13 – Congestion in Data
Networks
Ninth Edition
by William Stallings
3
Queuing Theory
Data network is a network of queues
If arrival rate > transmission rate (>)
queue size grows without bound and
quality of service
• different treatment for different connections
reservations
• traffic contract between user and network
• excess traffic discarded or handled on a best-
effort basis
Traffic Shaping
Another method of congestion control is
to “shape” the traffic before it enters the
network.
Traffic shaping controls the rate at
which packets are sent (not just how
many). Used in ATM and Integrated
Services networks.
At connection set-up time, the sender
and carrier negotiate a traffic pattern
(shape).
Two traffic shaping algorithms are:
Leaky Bucket 26
The Leaky Bucket Algorithm
TheLeaky Bucket Algorithm used to
control rate in a network. It is implemented
as a single-server queue with constant
service time. If the bucket (buffer)
overflows then packets are discarded.
27
The Leaky Bucket Algorithm
5-34
where MSS is the maximum segment size and Ploss is the probability of
packet loss