๐ Network-Layer Protocols
The network layer supports logical addressing, routing, and forwarding of packets. Several key protocols operate at this layer, each serving a unique function in enabling communication across networks.
๐ฆ 1. Internet Protocol (IP)
The IP protocol is the primary protocol in the network layer, providing best-effort delivery of packets from source to destination.
- IP Versions:
- IPv4: 32-bit address; widely used.
- IPv6: 128-bit address; designed to overcome IPv4 exhaustion.
- Connectionless and unreliable by nature.
- Handles fragmentation and reassembly of packets.
Example: IP delivers a packet from 192.168.1.1
to 8.8.8.8
, regardless of the path it takes.
๐ถ 2. Address Resolution Protocol (ARP)
ARP maps a known IP address to a MAC address in a local area network.
- Works when a host knows the IP address of another host but not its MAC address.
- Uses ARP requests and ARP replies broadcast within the local subnet.
Example: Host A wants to send data to 192.168.1.10
but only has the IP; ARP resolves the MAC.
๐ฐ 3. Reverse Address Resolution Protocol (RARP)
RARP performs the opposite of ARP โ it maps a MAC address to an IP address.
- Used by diskless workstations to discover their IP address upon booting.
- Largely obsolete today, replaced by DHCP.
Example: A device with MAC 00:0a:95:9d:68:16
sends a RARP request to get its IP.
๐ก 4. Internet Control Message Protocol (ICMP)
ICMP is used for diagnostics and error reporting in IP networks.
- Common messages:
- Echo Request/Reply (used in
ping
) - Destination Unreachable
- Time Exceeded (used in
traceroute
)
- Echo Request/Reply (used in
- Does not transfer data, only control messages.
Example: When ping google.com
, an ICMP Echo Request is sent and a Reply is expected.
๐ 5. Internet Group Management Protocol (IGMP)
IGMP is used for multicast group management.
- Allows routers to know which hosts want to receive multicast traffic.
- Works with Class D addresses (multicast).
Example: A video stream server uses IGMP to deliver packets to all hosts subscribed to a multicast group.
๐ง Deep Insights
- IP does the heavy lifting but needs help from protocols like ARP and ICMP to function properly.
- ARP is vital in LAN environments, whereas ICMP helps identify routing and delivery issues.
- Protocols like IGMP support multimedia delivery and group communication.
๐งญ Key Takeaways
- The network layer consists of multiple protocols working together to provide addressing, delivery, error reporting, and group management.
- While IP handles addressing and routing, ICMP and ARP provide vital supporting services.
- Understanding these protocols is essential for network configuration, troubleshooting, and security analysis.
๐ Links
- Previous: IP Addressing Techniques
- Next: Routing Algorithms