Implementing Cisco Express Forwarding
Cisco Express Forwarding (CEF) is an advanced, Layer 3 IP switching technology. CEF optimizes network performance and scalability for networks with large and dynamic traffic patterns, such as the Internet, on networks characterized by intensive web-based applications, or interactive sessions. CEF is an inherent feature and the users need not perform any configuration to enable it. If required, the users can change the default route purge delay and static routes.
Components
Cisco IOS XR software CEF always operates in CEF mode with two distinct components:- Forwarding Information Base (FIB) database: The protocol-dependent FIB process maintains the forwarding tables for IPv4 and IPv6 unicast in the route processor . The FIB on each node processes Routing Information Base (RIB) updates, performing route resolution and maintaining FIB tables independently in the route processor . FIB tables on each node can be slightly different.
-
Adjacency table—a protocol-independent adjacency information base (AIB)
Adjacency FIB entries are maintained only on a local node, and adjacency entries linked to FIB entries could be different.
-
Software switching path
-
Maintaining forwarding table and adjacency tables (which are maintained by the AIB) for software and hardware forwarding engines
The following features are supported for CEF on Cisco IOS XR software:
-
Bundle interface support
-
Multipath support
-
Route consistency
-
High availability features such as packaging, restartability, and Out of Resource (OOR) handling
-
OSPFv2 SPF prefix prioritization
-
BGP attributes download
CEF Benefits
-
Improved performance—CEF is less CPU-intensive than fast-switching route caching. More CPU processing power can be dedicated to Layer 3 services such as quality of service (QoS) and encryption.
-
Scalability—CEF offers full switching capacity at each line card.
-
Resilience—CEF offers an unprecedented level of switching consistency and stability in large dynamic networks. In dynamic networks, fast-switched cache entries are frequently invalidated due to routing changes. These changes can cause traffic to be process switched using the routing table, rather than fast switched using the route cache. Because the Forwarding Information Base (FIB) lookup table contains all known routes that exist in the routing table, it eliminates route cache maintenance and the fast-switch or process-switch forwarding scenario. CEF can switch traffic more efficiently than typical demand caching schemes.
The following CEF forwarding tables are maintained in Cisco IOS XR software:
-
IPv4 CEF database—Stores IPv4 Unicast routes for forwarding IPv4 unicast packets
-
IPv6 CEF database—Stores IPv6 Unicast routes for forwarding IPv6 unicast packets
-
MPLS LFD database—Stores MPLS Label table for forwarding MPLS packets