Soru

Zorluk: OrtaRouter Forwarding Decision Logic

A Cisco router receives an IPv4 packet destined for a remote host. Place the sequential steps of the router's forwarding decision logic in the correct order from first to last.

  1. 1Extract the destination IPv4 address from the incoming packet header.
  2. 2Filter routing table entries to find candidate routes matching the destination IP based on Longest Prefix Match.
  3. 3Compare Administrative Distance values among candidate routes that share the exact same longest prefix length.
  4. 4Compare metric/cost values to select the best path if multiple routes are from the same routing protocol with equal prefix length.
  5. 5Determine the next-hop IP and egress interface, rewrite the Layer 2 header, and transmit the packet.

Cevap

The correct sequence begins with extracting the packet's destination IP address, applying Longest Prefix Match to identify candidate routes, comparing Administrative Distance for equal-length prefix ties, comparing metric/cost for intra-protocol ties, and completing Layer 2 encapsulation for egress transmission.
When forwarding an IP packet, a Cisco router follows a precise hierarchy: it extracts the destination address, evaluates all matching routing table entries to find the Longest Prefix Match (most specific subnet mask), breaks ties between different routing protocols using Administrative Distance (lowest wins), breaks ties within the same protocol using Metric/Cost (lowest wins), and finally resolves the Layer 2 next-hop rewrite for frame transmission.

Adım Adım Çözüm

1
Extract Destination IPv4 Address
The destination IP address is identified from the incoming IPv4 packet header.
The destination address is required to query the routing table.
2
Apply Longest Prefix Match (LPM)
Routes with the longest/most specific matching prefix length (subnet mask) are isolated.
LPM is the primary rule of IP routing decision logic and overrides Administrative Distance and Metric.
3
Evaluate Administrative Distance (AD)
If candidate routes have identical prefix lengths, the route with the lowest AD is selected.
AD determines the believability of different routing sources.
4
Evaluate Protocol Metric / Cost
If candidate routes are from the same routing protocol and share equal prefix lengths, the path with the lowest metric is chosen.
Metric measures path efficiency within a single routing protocol.
5
Encapsulate and Forward Frame
The router looks up the next-hop IP in the ARP table, constructs a new Layer 2 header, and sends the frame out the exit interface.
Layer 2 rewrite completes the packet forwarding action at the data plane.

Anahtar Kavram

Router Forwarding Decision Logic Sequence
Bu soruyu puanla