Network Layer
Network Layer
•
•
•
•
•
How Does the Network Layer Work?
•
•
Routing Algorithms
•
•
•
•
• 1. Static Routing (Manual Routing)
• Routes are manually configured and do not change unless updated
by the network admin.
• Suitable for small, simple networks.
• Advantages: Simple, predictable.
• Disadvantages: No fault tolerance, no adaptability to network changes.
• Example: Home routers with fixed routing tables.
• 2. Dynamic Routing
• Routers automatically adjust paths based on network conditions
(congestion, link failure, etc.).
• Uses routing protocols to exchange routing information.
• Advantages: Adaptive, scalable.
• Disadvantages: More complex, consumes CPU and bandwidth.
• 🔸 A. Distance Vector Routing
• Each router shares information only with its immediate neighbors.
• Based on hop count (number of routers to reach the destination).
• Uses algorithms like Bellman-Ford.
• Slow convergence, prone to routing loops.
• 📌 Example Protocols: RIP (Routing Information Protocol)
•
•
Ipv4(Internet Protocol version 4)
•
•
•
•
•
• →
•
•
•
Ipv6(Internet Protocol version 6)
•
•
•
•
•
•
•
•
•
Classful Addressing (IPv4 Only)
Default
Class Starting Bits Range Use
Subnet Mask
1.0.0.0 to Large
A 0 255.0.0.0
126.0.0.0 networks
128.0.0.0 to Medium
B 10 255.255.0.0
191.255.0.0 networks
192.0.0.0 to Small
C 110 255.255.255.0
223.255.255.0 networks
224.0.0.0 to
D 1110 239.255.255.2 — Multicast
55
240.0.0.0 to
E 1111 255.255.255.2 — Experimental
55
5. Classless Addressing (CIDR - Classless Inter-Domain
Routing)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• →
•
Supernetting
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• →
Thank you