A Cisco router receives an IPv4 packet on an ingress interface. Place the sequential steps of the router's forwarding decision and packet processing logic in the correct order from initial receipt to egress transmission.
- 1Inspect the packet's destination IPv4 address and search the routing table for matching network prefixes.
- 2Select the matching routing table entry that has the longest prefix match (most specific subnet mask).
- 3Extract the next-hop IPv4 address and designated outbound exit interface from the selected route entry.
- 4Query the ARP cache to resolve the Layer 2 destination MAC address associated with the next-hop IPv4 address.
- 5Decrement the IPv4 TTL field by 1, encapsulate the packet in a new Layer 2 frame header, and transmit the frame out the exit interface.
Answer
The correct sequence for router forwarding decision logic is: 1) Inspect the destination IPv4 address and search the routing table for matching prefixes, 2) Select the route with the longest prefix match, 3) Extract the next-hop IPv4 address and exit interface, 4) Query the ARP cache for the next-hop Layer 2 MAC address, and 5) Decrement packet TTL, encapsulate into a new Layer 2 frame, and transmit out the exit interface.
When a router receives an IPv4 packet, the forwarding process follows a strict sequence: First, the destination IPv4 address is compared against candidate routes in the routing table. Next, the router selects the route entry with the longest prefix match (most specific subnet mask). Once the best route is selected, the router identifies the next-hop IPv4 address and exit interface. It then queries the local ARP cache to find the corresponding destination MAC address for the next hop. Finally, it modifies the packet by decrementing the Time to Live (TTL) by 1, recalculating the IPv4 checksum, encapsulating the packet into a new Layer 2 frame with updated source/destination MAC addresses, and forwarding it out the exit interface.
Step-by-Step Solution
Key Concept
Router Forwarding Decision Logic and Layer 2 Frame Rewrite
Estimated Time:1m 30s