1 of 22

Ch 5- Network Layer

  • Introduction:
  • Design Issues
  • Inter connecting devices, IP protocols & subnets
  • Routing Algorithms
    • Routing Classification
    • Goal of Routing Algorithm
    • Shortest path routing, Flooding, Optimality principles
    • Distance vector routing, Link state routing
    • Broadcast, multicast, anycast routing
  • Congestion Control
  • Quality of service
  • Internetworking, Addressing
  • n/w layer protocols, IPv4 and IPv6

Computer Networks

2 of 22

Ch 5- Network Layer (Congestion)

Computer Networks

3 of 22

Congestion Control

  • Congestion:
  • Too many packets present in the network (traffic) that causes packet delay and loss that degrades performance. This situation is called congestion
  • Handling congestion is the responsibility of the Network and Transport layers working together (here n/w layer)
    • Approach: The presence of congestion means that the load is greater than the resources can handle. 🡪 Two solutions come to mind: ( increase the resources or decrease the load. )
      • Traffic-aware routing
      • Admission control
      • Traffic throttling
      • Load shedding

Computer Networks

4 of 22

With too much traffic, performance drops sharply.

CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall , 2011

Congestion Control

5 of 22

Traffic-Aware Routing

6 of 22

Admission Control

7 of 22

Traffic throttling

CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall , 2011

8 of 22

Load Shedding (1)

9 of 22

Load Shedding (2)

CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall , 2011

10 of 22

Quality of service

QOS: Mechanism to control amount and the rate of traffic sent to the n/w

  • Application requirements

  • Traffic Shaping
    • Leaky Bucket
    • Token Bucket

Computer Networks

11 of 22

Application Requirements

Computer Networks

12 of 22

Computer Networks

13 of 22

  • Network performance (Delay & throughput)
    • Traffic Profile (CBR, VBR, Bursty traffic)
  • Quality of service (Traffic shaping)
    • Mechanism to control amount and the rate of traffic sent to the n/w
    • Leakey Bucket: Steps Bursty traffic in to fixed rate traffic by avg. the data rate
    • Leakey Algo: fetched packet from queue at constant rate

    • Tocken Bucket Algo: Allows Bursty traffic at a regulated maximum rate

Computer Networks

14 of 22

Traffic Profiles

Computer Networks

15 of 22

Computer Networks

16 of 22

Network Performance

Computer Networks

17 of 22

Traffic Shaping

Computer Networks

(a) Shaping packets. (b) A leaky bucket. (c) A token bucket.

18 of 22

QOS-Traffic Shaping

    • It is mechanism to control the amount and the rate of the traffic sent to the network
    • Leakey Bucket: algo shapes Bursty traffic in to fixed traffic by averaging the data rate

Computer Networks

19 of 22

QOS-Traffic Shaping

    • Leakey Bucket: Bursty traffic in to fixed traffic by averaging the data rate .
    • For e.g.

Computer Networks

20 of 22

QOS-Traffic Shaping

Token Bucket: it allows Bursty traffic at regulated maximum rate

Computer Networks

21 of 22

What is the different between �Token bucket and Leakey bucket algo.

Computer Networks

Token Bucket

Leakey Bucket

  • Token dependent
  • Token independent
  • If bucket is full, token is discarded

but not the packet

  • If bucket is full, then packets are

discarded

  • Packet can only transmit when there

are enough tokens

  • Packets are transmitted continuously
  • Allows large bursts to be send at

faster rate

  • Sends the packet at a constant rate
  • Saves tokens to send large bursts
  • No concept of token

22 of 22

End of Part-3 (Ch-5 Network layer)

?

Thanks.

By Hitesh Barot