The Network Layer
The Network Layer
1
Network Layer Design Issues
• Store-and-Forward Packet Switching
• Services Provided to the Transport Layer
• Implementation of Connectionless Service
• Implementation of Connection-Oriented Service
• Comparison of Virtual-Circuit and Datagram
Subnets
2
Routing Algorithms
• The Optimality Principle
• Flooding
• Multicast Routing 3
Congestion Control Algorithms
• General Principles of Congestion Control
• Congestion Prevention Policies
• Congestion Control in Virtual-Circuit Subnets
• Congestion Control in Datagram Subnets
• Load Shedding
• Jitter Control
4
Congestion Control Algorithms
• Congestion is a problem when too many packets are
present in the subnet, performance degrades
• Congestions can be brought on by several factors:
– All of a sudden, streams of packets arrive on multiple input
lines and all of them need the same output line, a queue is
built up. Allocating more memory may help to a point but
with infinite memory, congestion gets worse because
packets are timed out.
– Slow processors make queue to be built up even though
there are enough bandwidth.
– Low-bandwidth also causes congestion.
5
Congestion
7
General Principles of Congestion Control
• Open loop – solve the problem by essentially good
design.
– deciding when to accept new traffic, when to discard packets,
etc., without regard to the current state of the network
8
General Principles of Congestion Control
• The presence of congestion means that the load is
greater than the resources can handle
• Two solutions
– Increase the resource: increase the bandwidth, Split the
traffic over multiple routes, Put spare routers on-line
9
Congestion Prevention Policies
5-26
• Routing algm
A good routing algm can avoid congestion by spreading the
traffic all over the line.
13
Congestion Prevention Policies- Transport layer:
• Timeout determination
• Determining the timeout interval is very important.
• If the interval is too short, extra packets will be sent
unnecessarily.
• If it is too long, congestion will be reduced, but the
response time will suffer whenever a packet is lost.
14
Congestion Control in Virtual-Circuit
Subnets
16
The choke packets
• When the source host gets the choke packet, it is required
to reduce the traffic to the specific destination by X %.
• After that time interval, the source again listen for choke
packets for another interval. If one arrives, the line is still
congested, so the host reduces the flow still more and
begins ignoring choke packets again.
17
The choke packets
• If no choke packets arrive during the listening period, the
host may increase the flow again.
• For file transfer, old packets worth more than a new one. i.e
dropping packet 6 and keeping packets 7 through 10 will cause
a gap at the receiver which may lead to packet retransmission.
22
Random Early Detection- RED
• i.e detect the congestion before it happens.
23
Random Early Detection- RED
• To determine when to start discarding, routers maintain a
running average of their queue length.
24
Random Early Detection- RED
• How router tell the source about the problem?
– With Choke packets-
» it put even more load on the already congested network.
25
Jitter control
• The variation (standard deviation) in the packet arrival
time is called jitter.
26
Jitter Control
28
29