CN Module 3 Network Layer 2024
CN Module 3 Network Layer 2024
of CSE/ISE/AI & ML
The Network Layer
Module 3
NETWORK LAYER DESIGN ISSUES, 9.Routing for Mobile Hosts
Forwarding Mechanism:
•Once the packet is fully received and processed, it is
forwarded to the next router along the path.
•This forwarding process continues until the packet
reaches the destination host.
Store-and-Forward Packet Switching:
•Describes the mechanism where packets are stored at
each router before being forwarded.
•Emphasizes the completion of packet reception and
processing before forwarding to the next router.
NETWORK LAYER DESIGN ISSUES
2
1 3
1
5 2
3 4 6
1 3
2
2 5
4
ROUTING ALGORITHMS
Iterations N
Initial {1} 3 2 5 ∞ ∞
1 {1,3} 3 2 4 ∞ 3
2 {1, 2,3} 3 2 4 7 3
3 {1,2,3,6} 3 2 4 5 3
4 {1,2,3,4,6} 3 2 4 5 3
5 {1,2,3,4,5,6} 3 2 4 5 3
RNSIT – Depts. of CSE/ISE/AI & ML
6
1
3
5
2
4
2
1
1
2
3
ROUTING ALGORITHMS
2
1 3
1
2
3 4 6
2
2 5
ROUTING ALGORITHMS
Iterations N
Initial {1} 3 2 5 ∞ ∞
1 {1,3} 3 2 4 ∞ 3
2 {1, 2,3} 3 2 4 7 3
3 {1,2,3,6} 3 2 4 5 3
4 {1,2,3,4,6} 3 2 4 5 3
5 {1,2,3,4,5,6} 3 2 4 5 3
ROUTING ALGORITHMS
𝑆𝑡𝑒𝑝 1: 𝐼𝑛𝑖𝑡𝑖𝑎𝑙𝑖𝑧𝑎𝑡𝑖𝑜𝑛.
• 𝐷𝑖= ∞ where ∀ i ≠ d;
𝑆𝑡𝑒𝑝 2: 𝑈𝑝𝑑𝑎𝑡𝑖𝑛𝑔.
Find the minimum distance to destination from its neighbors.
• 𝐷𝑖 = min{𝐶𝑖,𝑗 + 𝐷𝑗 } where ∀ i ≠ d;
Repeat Step 2 until converge.
Bellman-Ford Routing
2
1 3
1
5 2
3 4 6
1 3
4 2
2 5
Bellman-Ford Routing
2
1 3
1
2
4 6
1
2
2 5
RNSIT – Depts. of CSE/ISE/AI & ML
Bellman-Ford Routing
Bellman-Ford Routing
4. Forwarding Copies:
• Forward copies of the broadcast packet onto all interfaces except the one it
arrived on.
• This ensures the packet reaches all possible destinations in the network.
5. Duplicate Check:
• If the incoming interface does not match the preferred outgoing interface:
1. Discard the packet as a likely duplicate.
2. This is based on the assumption that the packet arriving on a different interface might
be a duplicate or has taken a less optimal route.
Reverse Path Forwarding
• Adapting routes based on changing traffic patterns during the day, optimizing
network capacity utilization.
• Identifying Onset of Congestion: Monitoring average load, queueing delay, or
packet loss to identify growing congestion.
• Feedback Loop for Congestion Control: Establishing a feedback loop between
routers and traffic sources.
• Load Shedding as a Last Resort: Load shedding involves a policy for selecting
which packets to discard, aiming to prioritize critical data and prevent network
degradation.
CONGESTION CONTROL ALGORITHMS
• Fair queueing algorithm, proposed by Nagle, uses separate queues for each flow.
• When the line becomes idle, the router scans the queues round-robin, allowing
each flow to send one packet in turn. Aims to provide fairness by ensuring that all
flows get to send packets at the same rate.
• The fair queueing algorithm treats all hosts equally, providing them with the same
priority. In practical scenarios, there is often a need to prioritize certain hosts,
such as video servers over file servers.
Quality of Service (QoS)
• Where Ai is the arrival time, Fi−1 is the finish time of the previous packet, Li is the
length of packet i, and W is the weight of the flow.
Quality of Service (QoS)
End