About the unicast RIB and FIB
The unicast Routing Information Base (RIB) and Forwarding Information Base (FIB) are integral parts of the Cisco NX-OS forwarding architecture. The RIB maintains the routing table and determines the best next hop for routes, while the FIB is populated with forwarding information for efficient packet delivery.
-
The unicast RIB exists on the active supervisor and maintains the routing table with directly connected, static, and dynamically learned routes.
-
The unicast RIB collects adjacency information from sources such as the Address Resolution Protocol (ARP).
-
The unicast RIB determines the best next hop for each route and populates the unicast FIBs on the modules using the unicast FIB distribution module (FDM).
Unicast RIB and FIB in Cisco NX-OS forwarding architecture
The unicast RIB and FIB are essential for the operation of the Cisco NX-OS forwarding architecture, enabling efficient routing and forwarding of unicast traffic.
-
Directly connected routes, static routes, and routes learned from dynamic unicast routing protocols are maintained in the unicast RIB.
-
Adjacency information is collected from ARP and other sources.
-
The unicast FIB is populated by the RIB and used for forwarding decisions on the modules.
-
Each dynamic routing protocol updates the unicast RIB when a route times out.
-
The unicast RIB deletes the expired route and recalculates the best next hop if an alternate path is available.
Unicast RIB and FIB operation
For example, when a dynamic routing protocol detects that a route has timed out, it updates the unicast RIB. The RIB then removes the route and, if another path exists, recalculates the best next hop and updates the FIB accordingly.
Layer 3 consistency checker
The Layer 3 consistency checker is a feature in Cisco NX-OS that detects inconsistencies between the unicast IPv4 RIB on the supervisor module and the FIB on each interface module.
-
Detects missing prefix, extra prefix, wrong next-hop address, and incorrect Layer 2 rewrite string in the ARP or neighbor discovery (ND) cache.
-
Compares FIB entries to the latest adjacency information from the Adjacency Manager (AM) and logs any inconsistencies.
-
Compares unicast RIB prefixes to the module FIB and logs any inconsistencies.
Layer 3 consistency checker operation and behavior
In rare instances, an inconsistency can occur between the unicast RIB and the FIB on each module. Cisco NX-OS supports the Layer 3 consistency checker to detect and log such inconsistencies.
-
Missing prefix
-
Extra prefix
-
Wrong next-hop address
-
Incorrect Layer 2 rewrite string in the ARP or neighbor discovery (ND) cache
The Layer 3 consistency checker compares the FIB entries to the latest adjacency information from the Adjacency Manager (AM) and logs any inconsistencies. The consistency checker then compares the unicast RIB prefixes to the module FIB and logs any inconsistencies. See the Triggering the Layer 3 Consistency Checker section.
You can then manually clear any inconsistencies. See the Clearing Forwarding Information in the FIB section.
When more routes are learned exceeding the hardware limit, the show consistency-checker forwarding ipv4 command is run, consistency may still show as pass. The same is true when it is transitioning from an inconsistent state to a consistent state. It may show as a failure. Until and unless the test forwarding ipv4 inconsistency route command is run again, it doesn't leave this state. This is an expected behavior.


Feedback