Juniper® JNCIA Exam Cram Notes :Longest Match Routing

1. Networking Fundamentals

1.8 Longest match routing

Specify the static route on the device to resolve and determine the packet's next-hop interface using the Longest Match Routing Rule (most specific entry), sometimes referred to as the longest prefix match or maximum prefix length match. The Longest Match Routing Rule is an algorithm used by IP routers to select an entry from a routing table. The router uses the longest (prefix) match to determine the egress (outbound) interface and the address of the next device to which to send a packet. Typically, the static route prefers the directly connected subnet route for resolving the next hop rather than performing a longest prefix match with any other available routes.

The router implements the Longest Match Routing Rule as follows:

  • The router receives a packet.
  • While processing the header, the router compares the destination IP address, bit-by-bit, with the entries in the routing table.
  • The entry that has the longest number of network bits that match the IP destination address is always the best match (or best path) as shown in the below example.

Longest Match Example:

The router receives a packet with a destination IP address of 192.168.1.33.

The routing table contains the following possible matches:

192.168.1.32/28 ,192.168.1.0/24,192.168.0.0/16


















Previous   Contents   Next


JNCIA Junos Cram Notes Contents certexams.com ad