A network packet is a Layer 3 protocol data unit (PDU): a Layer 3 header combined with a Layer 4 segment. Its encapsulated segment is the packet’s payload. Packets matter because Layer 3 delivers segments to the correct destination host, while Layer 2 carries each packet to the next hop. section 4.3.2 section 4.4
Place the packet in the encapsulation sequence:
- Application data plus a Layer 4 header forms a segment, or L4PDU. section 4.3.2
- A Layer 3 header added to the segment forms a packet, or L3PDU. section 4.3.2
- A Layer 2 header and trailer added to the packet form a frame, or L2PDU. section 4.4
- At the destination, the host removes the frame’s Layer 2 information, then the packet’s Layer 3 header, then the segment’s Layer 4 header. section 4.3.2
PC1 sends a packet to PC3
PC1 creates a packet addressed to PC3 and uses ARP to learn the default gateway’s MAC address. The packet travels inside a frame to the gateway. Each router selects the best route and forwards the packet in a new frame addressed to the next hop. The Layer 3 destination remains PC3 throughout the journey, while the Layer 2 frame addresses change at every hop. section 10.0 section 10.1
Figure 4.7 Application data encapsulated in a Layer 4 header is a segment (L4PDU); a segment encapsulated in a Layer 3 header is a packet (L3PDU); and a packet encapsulated in a Layer 2 header/trailer is a frame (L2PDU). The encapsulated contents of each PDU are that PDU’s payload.
Trace the relationship among application data, segments, packets, frames, and payloads. section 4.3.2
