CEF-RIB

Published

April 26, 2023

CEF Table(FIB) and Routing Table

Cisco Express Forwarding (CEF) maintains two tables in the data plane.
- The Forwarding Information Base (FIB) maintains Layer 3 forwarding information
- the Adjacency Table maintains Layer 2 information for next hops listed in the FIB.
Using these tables, populated from a router’s IP routing table and ARP cache, CEF can efficiently make forwarding decisions.


Source pearsoncmg.com


Source patrickdenis.biz

CAM (Content-Addressable Memory)

The Cam table is equal to the mac address table.
All Catalyst switch models use a Content Addressable Memory (CAM) table for Layer 2 switching. As frames arrive on switch ports, the source MAC addresses are learned and recorded in the CAM table. The port of arrival and the VLAN are both recorded in the table, along with a timestamp.
By default, idle CAM table entries are kept for 300 seconds before they are deleted.

mac address-table aging-time ###seconds
mac address-table static ##mac-address vlan ##vlan-id interface gi1/0/1

Source ciscopress.com

Ternary Content Addressable Memory (TCAM)

In multilayer switches, however, all of the matching process that ACLs provide is implemented in hardware.
TCAM allows a packet to be evaluated against an entire access list in a single table lookup.
Most switches have multiple TCAMs so that both inbound and outbound security and QoS ACLs can be evaluated simultaneously, or entirely in parallel with a Layer 2 or Layer 3 forwarding decision.