Soru

Zorluk: OrtaRouter Forwarding Decision Logic

A Cisco router receives an IPv4 unicast packet on an ingress interface and prepares to forward it toward its final destination. Place the sequential steps of the router's packet forwarding decision process in the correct chronological order from first to last.

  1. 1Decapsulate the incoming Layer 2 frame and extract the destination IPv4 address from the IP header.
  2. 2Search the routing table for all matching route entries corresponding to the destination IPv4 address.
  3. 3Select the single best route entry based on the Longest Prefix Match (most specific subnet mask length).
  4. 4Determine the egress interface and next-hop IPv4 address associated with the chosen route entry.
  5. 5Resolve the Layer 2 hardware address of the next-hop device using ARP or cached neighbor information.
  6. 6Decrement the IPv4 Time-to-Live (TTL) field by 1, recompute the checksum, encapsulate the packet into a new Layer 2 frame, and transmit it out the egress interface.

Cevap

The correct sequence starts with decapsulating the incoming Layer 2 frame, searching the routing table for candidate prefix matches, selecting the best match using Longest Prefix Match (LPM), determining the egress interface and next-hop IP, resolving the Layer 2 address of the next-hop device via ARP, and finally decrementing the TTL and encapsulating the packet into a new frame for transmission.
The router processes ingress packets sequentially: it first strips the Layer 2 frame to read the destination IP, searches the routing table, applies the Longest Prefix Match rule to pick the most specific network prefix, determines the next-hop IP and egress interface, resolves the next-hop Layer 2 MAC address, and finishes by decrementing TTL, updating the checksum, encapsulating the packet, and transmitting the frame.

Adım Adım Çözüm

1
Frame Ingress & Decapsulation
The router strips the Layer 2 frame header/trailer to inspect the Layer 3 destination IPv4 address.
Routing decisions occur at Layer 3, requiring packet header extraction.
2
Routing Table Candidate Lookup
Identifies all routes in the IPv4 routing table that contain the destination IP address.
All matching network entries must be collected before evaluating prefix specificity.
3
Longest Prefix Match Selection
The route with the longest subnet mask (most matching network bits) is selected as the forwarding path.
Longest Prefix Match is the primary criterion for route lookup selection during packet forwarding.
4
Egress Interface & Next-Hop Identification
Extracted destination next-hop IPv4 address and outgoing physical/logical interface.
The selected route specifies where to send the packet next.
5
Layer 2 Next-Hop Address Resolution
ARP table lookup retrieves the MAC address associated with the next-hop IP.
Data-link layer framing requires a destination hardware address on Ethernet media.
6
Header Modification, Encapsulation, and Egress Transmission
TTL is decremented, checksum recalculated, new Layer 2 header attached, and frame sent out egress port.
Prevents routing loops via TTL expiration and prepares frame for transit across the next physical link segment.

Anahtar Kavram

Router IPv4 Forwarding Decision Pipeline
Bu soruyu puanla