Got it

RIB and FIB

Created: Dec 18, 2021 14:33:41Latest reply: Dec 19, 2021 13:41:12 229 8 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

What is a major difference between RIB and FIB in routers?

Featured Answers
umaryaqub
MVE Created Dec 18, 2021 14:37:25

Hi,

RIB is derived from the control plane, it is not used for forwarding. Every protocol such as OSPF, EIGRP, BGP has its own RIB and select their best candidates to try to install to global RIB so that it can then be selected for forwarding. If this is implemented through totally separate RIBs or one big RIB with partitions I am not aware of.

FIB is used for forwarding, although this information is derived from the RIB and from adjacency tables so that the packet can be rewritten with the correct encapsulation.

I hope it helps.
View more
  • x
  • convention:

YellowFlower
YellowFlower Created Dec 18, 2021 14:39:11 (0) (0)
so both have forwarding information?  
umaryaqub
umaryaqub Reply YellowFlower  Created Dec 18, 2021 14:40:59 (0) (0)
both have routes available. RIB is an inactive DB of routes while FIB has the active routing table information.  
hpl_Panda
hpl_Panda Created Dec 19, 2021 07:51:15 (0) (0)
good  

Recommended answer

jason_hu
Admin Created Dec 18, 2021 14:39:05

Hi friend!
The routing table stores the routes discovered by various routing protocols. The routes in the routing table are classified into the following types: Direct routes, static routes, and dynamic routes.

Forwarding table (FIB): Each forwarding entry in the FIB table specifies the physical interface or logical interface that sends packets to a network segment or a host. Then, the packets can reach the next node of the path or are transmitted to the destination host in the directly connected network without passing through other devices. The matching of the FIB table complies with the longest matching principle. When the FIB table is searched, the destination address of the packet and the mask of each entry in the FIB are bitwise "logical and". The obtained address matches the network address in the FIB entry. Finally, a maximum matching FIB entry is selected to forward the packet.


Differences:
1. The RIB table does not directly guide the forwarding, but guides the generation of the FIB table. The FIB table provides guidance for forwarding, which is irrelevant to route generation.

2. FIB entries are used to guide the actual forwarding of packets on the device. The FIB entries specify the actual interface to which packets are forwarded and the interface on which packets are transmitted.

3. The routing table refers to the line problem, that is, the line scheme for transmitting data packets from one end to the other end. It does not indicate the specific interface that is forwarded by the routing device. Usually, the next-hop routing address is determined at the sending end. The FIB table is delivered to the hardware to guide forwarding. It is mainly used to determine the specific forwarding details (physical interface) rather than the line problem.
Glad to help!

View more
  • x
  • convention:

hpl_Panda
hpl_Panda Created Dec 19, 2021 07:51:23 (0) (0)
note  
All Answers
Hi, dear

Please kindly wait for a while
View more
  • x
  • convention:

Hi,

RIB is derived from the control plane, it is not used for forwarding. Every protocol such as OSPF, EIGRP, BGP has its own RIB and select their best candidates to try to install to global RIB so that it can then be selected for forwarding. If this is implemented through totally separate RIBs or one big RIB with partitions I am not aware of.

FIB is used for forwarding, although this information is derived from the RIB and from adjacency tables so that the packet can be rewritten with the correct encapsulation.

I hope it helps.
View more
  • x
  • convention:

YellowFlower
YellowFlower Created Dec 18, 2021 14:39:11 (0) (0)
so both have forwarding information?  
umaryaqub
umaryaqub Reply YellowFlower  Created Dec 18, 2021 14:40:59 (0) (0)
both have routes available. RIB is an inactive DB of routes while FIB has the active routing table information.  
hpl_Panda
hpl_Panda Created Dec 19, 2021 07:51:15 (0) (0)
good  

Hi friend!
The routing table stores the routes discovered by various routing protocols. The routes in the routing table are classified into the following types: Direct routes, static routes, and dynamic routes.

Forwarding table (FIB): Each forwarding entry in the FIB table specifies the physical interface or logical interface that sends packets to a network segment or a host. Then, the packets can reach the next node of the path or are transmitted to the destination host in the directly connected network without passing through other devices. The matching of the FIB table complies with the longest matching principle. When the FIB table is searched, the destination address of the packet and the mask of each entry in the FIB are bitwise "logical and". The obtained address matches the network address in the FIB entry. Finally, a maximum matching FIB entry is selected to forward the packet.


Differences:
1. The RIB table does not directly guide the forwarding, but guides the generation of the FIB table. The FIB table provides guidance for forwarding, which is irrelevant to route generation.

2. FIB entries are used to guide the actual forwarding of packets on the device. The FIB entries specify the actual interface to which packets are forwarded and the interface on which packets are transmitted.

3. The routing table refers to the line problem, that is, the line scheme for transmitting data packets from one end to the other end. It does not indicate the specific interface that is forwarded by the routing device. Usually, the next-hop routing address is determined at the sending end. The FIB table is delivered to the hardware to guide forwarding. It is mainly used to determine the specific forwarding details (physical interface) rather than the line problem.
Glad to help!

View more
  • x
  • convention:

hpl_Panda
hpl_Panda Created Dec 19, 2021 07:51:23 (0) (0)
note  
NICE
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.