IPv4 in Practice: The Life of a Packet
In this lesson, we'll consolidate everything we have learned about the network layer so far by tracing the journey of a packet.
We'll cover the following...
At this point in the description of IPv4, it is useful to have a detailed look at how an IPv4 implementation sends, receives and forwards IPv4 packets.
The simplest case is when a host needs to send a transport layer segment in an IPv4 packet. In order to do so, it performs two operations.
-
First, it must decide on which interface the packet will be sent.
-
Second, it must create the corresponding IP packet(s).
To simplify the discussion in this section, we ignore the utilization of IPv4 options. This is not a bad idea as most of the traffic today consists of IP packets that don’t make any use of IP options. Furthermore, we also assume that only point-to-point links are used.
An IPv4 host with data link layer interfaces manage IPv4 addresses:
-
The IPv4 address assigned by convention to its loopback address.
-
One IPv4 address assigned to each of its ...