cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
37578
Views
89
Helpful
4
Replies

RIB and FIB tables

ncnaveen_arasu
Beginner
Beginner

Hi Team

Please let me know the diffrence between RIB and FIB. when do we use these two.

What are the tables CEF contains and when we use CEF.

Thanks in advance,

naveen

4 Replies 4

paul driver
VIP Expert VIP Expert
VIP Expert

Hello

RIB - Routing information base - sh ip route ( shows rib- Where routing table is built- CONTROL PLANE)

FIB - Forward Information base - sh ip cef

( where RIB looks when deceiding where to forward the traffic - DATA PLANE)

MPLS - FORWARDS PACKETS BASED ON FIB & LFIB TABLES (DATA PLANE)

####

LIB - Label information Base - sh mpls ip bindings

(Is where all mpls labels are known and mapped from FIB -  CONTROL PLANE)

LFIB -Label Forwading Information Base - sh mpls forwarding table

(where LIB mostly looks when deceiding where to forward Labeled MPLS packets - LFIB is mostly built by FIB & LIB tables - DATA PLANE)

Note:

#####

All routers in MPLS domain have both FIB and LFIB tables but only edge routers use FIB

(ingress router uses FIB, egress router uses LFIB and FIB)

Ingress LSR -  lookup is against the FIB

Egress LSR - lookup is against the FIB only if there was a single label in the stack

         and that this label was popped by penultimate hop, Rest of the time lookup is against the LFIB

Core mpls - lookup is against the LFIB

res

Paul

Please don't forget to rate any posts that have been helpful.

Thanks.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Simple and easy explanation for an otherwise confusing subject

InayathUlla Sharieff
Cisco Employee
Cisco Employee

Naveen,

In layman terms:

Both RIB and FIB in work concept they are similar functions both use to find the proper interface to which the input interface should send the packet to be transmitted out of the device(Router/Switch).

RIB works at the control plan as said above. RIB are optimized for efficient updating by Routing Protocols and other control plane infomration and it contains complete list of routes which is learned by the router.

FIB =Works at DATA Plane. FIbs are optimized for fast lookup of destination address.

(AS you are aware that when you enable ip Cef the two tables will be created (FIB and Adjacency table) In short All the routes will be downloaded from the RIB to the FIB and have it on the data plane.)

Below is the great article on difference between these:

http://blog.ioshints.info/2010/09/ribs-and-fibs.html

http://web.eecs.umich.edu/~zmao/eecs598-4/notes/Lecture4.pdf

HTH

Regards

Inayath

paulstone80
Participant
Participant

To answer the point about CEF, CEF uses the FIB and an adjacency table.

Traditional packet forwarding on a router involves ingress packets being matched against the routing table to determine the next hop, and also examining the ARP table to determine the layer 2 address of the next hop so it can be written into the egress packet.

CEF uses the FIB and the adjacency table to bypass this process and speed up packet forwarding.

The FIB re-orders the routing table so the most specific routes are first, it also contains the next-hop address for each entry.

The adjacency table contains the layer 2 information for the next-hop addresses in the FIB.

These tables are learnt as packets are forwarded through the traditional routing process, and when an entry is entered into the table subsequent packets are forwarded based on the information in the FIB and adjacency table, thus speeding up the process forwarding. This is done using special hardware.

To view the CEF FIB use:
show ip cef [type mod/number | vlan vlan-id] detail

To view the adjacency table use:
show adjacency [type mod/number | vlan vlan-id] [summary | detail]

HTH

Paul


Sent from Cisco Technical Support Android App

HTH Paul ****Please rate useful posts****
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers