The purpose of this chapter is to discuss IP addressing, which is one of the network layer services. The specific topics to be discussed include the following:
Recall that the network layer is concerned with addressing and routing. The Internet layer is the top part of the network layer. The Internet protocol, which is defined for this layer, is a simple connectionless datagram protocol that provides no error recovery and no delivery guarantee. In this section, we consider the addressing aspect of the layer.
The current version of IP is IP version 4 (IPv4). The IPv4 header has the format shown in Figure 6.1.
The length of IPv4 header is variable, and the fields are measured in terms of 32-bit words. The shortest IPv4 header is 20 bytes, and IP header length (IHL) would be 5 since 20 × 8/32 = 5. The fields are defined as follows: