Skip to main content

Short note: IP

Short answer

IP is the connectionless, unreliable, best-effort network-layer protocol that provides logical addressing, routing, and fragmentation. Its IPv4 header includes version, IHL, TTL, protocol, checksum, and source/destination addresses; TCP and UDP handle reliability.

Write a short note on IP.

IP (Internet Protocol) is the network-layer protocol of TCP/IP that delivers packets (datagrams) from a source host to a destination host across interconnected networks. It is connectionless, unreliable and best-effort: it gives no guarantee of delivery, ordering or duplicate protection; higher layers (TCP) handle these.

Main functions

  • Logical addressing (32-bit IPv4 address), routing, and fragmentation/reassembly.

IPv4 header (20 to 60 bytes)

FieldSizePurpose
Version4 bits4
IHL4 bitsHeader length in 32-bit words
Type of service8 bitsPriority / DSCP
Total length16 bitsHeader + data (max 65,535 B)
Identification16 bitsIdentifies fragments of a datagram
Flags (DF, MF)3 bitsDon't fragment, more fragments
Fragment offset13 bitsPosition of fragment (units of 8 B)
TTL8 bitsHop limit, decremented by each router
Protocol8 bits6 TCP, 17 UDP, 1 ICMP
Header checksum16 bitsError check on the header only
Source / destination address32 bits eachIP addresses
Options + paddingvariableOptional features

IP works with ICMP (errors), ARP (address mapping) and IGMP (multicast). IPv6 is its successor.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →