Juniper Protocol Independent Routing
Published: 2019-02-23
Overview
Juniper protocol-independent routing covers IP routing components such as static routes and the various route tables within Junos that are not particular to any dynamic routing protocol.
Routing Table
The RE holds a copy of all routes from all protocols in its routing table. The best routes based on the protocol preference are declared active and placed in the forwarding table. The forwarding table is shared with the PFE.
Forwarding Table
The PFE stores a local copy of the forwarding table received from the RE containing the best routes to each destination.
Both the layer 2 and layer 3 forwarding tables are received from the RE.
Configured Routes
Within Junos there are three types of administrator configurable routes.
- Static Routes
- Aggregated Routes
- Generated Routes
Static Routes
A static route defines a destination prefix and the next-hop (IP or label) to reach the destination.
Next Hop
For a route to be present in the routing table, the route must have a valid next-hop. For a next-hop to be valid the router must be able to forward traffic to the next-hop address.
Next-Hop Options
There are a number of next-hop options which can be applied to protocol-independent routes outlined in the table below.
Route Attributes
As well as next-hop options, attributes can also be assigned to all locally configured routes. The various attributes are defined in the table below.
Aggregate Routes
Aggregate routes are used to announce a collection of multiple smaller routes summarized into a single route announcement.
Contributing Routes
For an aggregate route to be present in the routing table at least one of its more specific routes must be present in the routing table. Thus the more specific routes are known as contributing routes.
Primary Contributing Route
The route with the numerically smallest prefix is selected as the primary contributing route. An administrator can influence the selection using routing policy.
Generated Routes
Generated routes are identical to an aggregate route except that a generated route has an IP address defined for its next-hop and the ability to apply the discard option.
Contributing routes must have an IP address for a next-hop or come from a connected P2P interface. Additionally, routes with a next-hop options of either discard or reject cannot contribute.
Martian Routes
Martian routes are prefixes that should never be publicly routed on the internet. Prefixes that fall into the category of a martian route will not be placed in the routing table. Additionally, martian routes received via routing protocols will be ignored.
Routing Tables
Junos includes a number of different routing tables for various protocols as outlined in the table below.
Routing Preference
When a prefix is learned by more than one protocol Junos selects the most believable route based on the preference. The lower the preference the more believable the route. The default preferences are listed in the table below.
Bibliography
Links
https://www.juniper.net/documentation/en_US/junos/topics/concept/routing-tables-understanding.html