A Cisco router receives an IPv4 packet on an ingress interface that must be forwarded to a remote destination. Place the router forwarding decision and processing steps in the correct chronological order from packet arrival to egress transmission.
- 1Extract the destination IPv4 address from the incoming packet header.
- 2Search the routing table for matching entries and select the route with the longest prefix mask.
- 3Identify the designated exit interface and next-hop IPv4 address from the winning route entry.
- 4Query the ARP cache to resolve the Layer 2 MAC address associated with the next-hop IPv4 address.
- 5Decrement the IPv4 Time-to-Live (TTL) value, recalculate the header checksum, and encapsulate the packet into a new Layer 2 frame for egress.
Cevap
The correct sequence of router forwarding decision steps is: 1. Extract the destination IPv4 address from the incoming packet header. 2. Search the routing table for matching entries and select the route with the longest prefix mask. 3. Identify the designated exit interface and next-hop IPv4 address from the winning route entry. 4. Query the ARP cache to resolve the Layer 2 MAC address associated with the next-hop IPv4 address. 5. Decrement the IPv4 Time-to-Live (TTL) value, recalculate the header checksum, and encapsulate the packet into a new Layer 2 frame for egress.
When an IPv4 packet arrives on a router interface, the router first parses the IP header to extract the destination IP address. Next, it consults the routing table to find matching network prefixes, selecting the route entry with the longest prefix mask (most specific match). From this winning entry, the router extracts the designated exit interface and next-hop IP. It then queries its ARP cache to discover the destination MAC address corresponding to that next-hop IP. Finally, the router modifies the IP header by decrementing the TTL and recalculating the checksum, encapsulates the packet in a fresh Layer 2 frame with new source/destination MAC addresses, and transmits it out the exit interface.
Adım Adım Çözüm
Anahtar Kavram
Router Forwarding Decision Logic and Packet Lifecycle