A network administrator analyzes a multi-hop traffic path between Host A () and Server B () separated by a default gateway Layer 3 router. Host A initiates a file transfer over TCP. As the data payload traverses the egress interface of the router toward Server B's local subnet, which structural transformations occur during the de-encapsulation and re-encapsulation process at Layer 2 and Layer 3?
- The router strips the incoming Layer 2 frame header and FCS trailer, decrements the Layer 3 IPv4 Time to Live (TTL) field, recalculates the IPv4 header checksum, and encapsulates the unchanged Layer 3 packet into a new Layer 2 frame with the router egress interface's MAC as the source and Server B's MAC as the destination.Cevap
- BThe router strips both the Layer 2 frame header and Layer 3 IPv4 header, translates the TCP segment into a UDP datagram to minimize hop latency, and prepends a new Layer 2 header containing Server B's MAC address.
- CThe router retains the original Layer 2 frame header intact, alters the source and destination IPv4 addresses within the Layer 3 IP packet header to reflect the router's egress interface and Server B, and recalculates the Layer 4 TCP checksum.
- DThe router unwraps the frame to Layer 4, strips the TCP header and sequence numbers, replaces them with Layer 2 MAC addresses, and forwards the resulting PDU directly to Layer 1 for physical encoding.
Cevap
The router strips the incoming Layer 2 frame header and FCS trailer, decrements the IP TTL, recalculates the IP header checksum, and encapsulates the unchanged IP packet into a new Layer 2 frame using the egress MAC address as source and the destination host's MAC address as target.
When a packet traverses a Layer 3 boundary, the router de-encapsulates the incoming Layer 2 frame by stripping its header and trailer. It operates on the Layer 3 IP header by decrementing the TTL field (and recomputing the checksum). The router then re-encapsulates the original IP packet into a brand-new Layer 2 frame equipped with source MAC address of the router's egress interface and destination MAC address of the destination host (or next-hop router).
Adım Adım Çözüm
Anahtar Kavram
Layer 3 Routing PDU Encapsulation and De-encapsulation Mechanics
Tahmini Süre:2m 0s