CN Unit 4
CN Unit 4
NETWORK LAYER :
1) Logical Addressing
2) Routing
3) Packetizing
4) Packet Forwarding
5) Packet Fragmentation & Reassembly
6) Error Handling & Diagnostics
Routing :
1. Routing is the process of determining the optimal path
for data packets to travel from source to destination node.
Packet Forwarding -
ROUTING :
Routing is the process of determining the optimal path for
data packets to travel from source to destination node.
ROUTING ALGORITHMS :
A routing algorithm refers to set of rules used by routers
to determine the best path for forwarding packets from
source to destination across a network.
Properties :
1) Correctness
2) Robustness
3) Stability
4) Optimality
5) Simplicity
Types of Routing Algorithms :
Types :
BROADCAST ROUTING :
HIERARCHIAL ROUTING :
Example :
Internet Routing
The Internet itself is a prime example of hierarchical routing, where
different autonomous systems (AS) manage their internal routing while
exchanging summarized routes with other ASes using BGP.
IPv4 vs IPv6
ICMP :
Class A
Network-ID Bits: 8 (first bit always 0)
Host-ID Bits: 24
Number of Networks: 126 (2^7 - 2; 0 and 127 are reserved)
Number of Hosts per Network: 16,777,214 (2^24 - 2)
Range: 1.0.0.0 to 126.255.255.255 (127.x.x.x is reserved for
loopback)124
Class B
Network-ID Bits: 16 (first two bits always 10)
Host-ID Bits: 16
Number of Networks: 16,384 (2^14)
Number of Hosts per Network: 65,534 (2^16 - 2)
Range: 128.0.0.0 to 191.255.255.2551245
Class C
Network-ID Bits: 24 (first three bits always 110)
Host-ID Bits: 8
Number of Networks: 2,097,152 (2^21)
Number of Hosts per Network: 254 (2^8 - 2)
Range: 192.0.0.0 to 223.255.255.2551245
Class D
Network-ID/Host-ID Bits: Not applicable (used for
multicasting)
Range: 224.0.0.0 to 239.255.255.2551245
Class E
Network-ID/Host-ID Bits: Not applicable (reserved for
experimental use)
Range: 240.0.0.0 to 255.255.255.2551245