Devices on different networks need to address and route packets across multiple hops. Link-layer protocols only work within a single network, so a network-layer protocol is needed for internetwork communication.
The fundamental network-layer protocol that provides logical addressing (IP addresses) and routing packets across networks from source to destination.
- Assigns logical IP addresses to devices (IPv4: 32-bit, IPv6: 128-bit)
- Each packet contains source and destination IP addresses
- Routers examine destination IP and forward packets toward destination
- Connectionless and unreliable: best-effort delivery without guarantees
- TTL (Time To Live) field prevents packets from looping forever
- Connectionless: each packet routed independently
- Unreliable: no delivery guarantees, no error recovery
- Provides logical addressing and routing
- Foundation of the internet protocol suite
- Fragmentation can occur when packet exceeds MTU (Maximum Transmission Unit)
- NAT (Network Address Translation) complicates end-to-end addressing
- IPv4 address exhaustion led to IPv6 development