1 computer communication & networks lecture 25 transport layer: congestion control waleed ejaz...

14
1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control http://web.uettaxila.edu.pk/CMS/coeCCNbsSp0 9/index.asp Waleed Ejaz [email protected]

Upload: hilary-strickland

Post on 21-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

1

Computer Communication & Networks

Lecture 25

Transport Layer: Congestion Control

http://web.uettaxila.edu.pk/CMS/coeCCNbsSp09/index.asp

Waleed [email protected]

Page 2: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

2

Transport Layer

Page 3: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

3

Transport Layer Topics to CoverUDP, TCP, STCP

Congestion Control

Page 4: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

4

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.

Page 5: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

5

Question:

Is it possible to avoid/reduce congestion by increasing buffer size?

Congestion in packet switching networks

Page 6: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

6

NO

Buffer is larger, then waiting time is longer. It willcause time out and retransmit packets, thus more

congestion. If buffer size is infinite, then packet can delay forever.

Congestion control is a very hard problem

Congestion in packet switching networks

Page 7: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

7

Packet delay and throughput as functions of load

Page 8: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

8

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) closed-loop congestion control (removal)

Page 9: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

9

Example

To better understand the concept of congestion control, let us give an example: Congestion Control in TCP.

Page 10: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

10

Slow Start, Exponential Increase In the slow-start algorithm, the size of the

congestion window increases exponentially until it reaches a threshold.

Page 11: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

11

Congestion Avoidance: Additive Increase In the congestion avoidance algorithm, the

size of the congestion window increases additively until congestion is detected.

Page 12: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

12

Congestion Example

Page 13: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

13

Quiz 5 (1)

Use the Bellman Ford algorithm to find the shortest paths from all other nodes to node 3.

Page 14: 1 Computer Communication & Networks Lecture 25 Transport Layer: Congestion Control  Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

14

Quiz 5 (2)

Apply Dijkstra’s algorithm to the following network to generate a shortest-path-tree for node E, and build a routing table for node E.