Cisco Express Forwarding (CEF) is an advanced layer 3 switching technology used mainly in large core networks or the Internet to enhance the overall network performance.
CEF is mainly used to increase packet switching speed by reducing the overhead and delays introduced by other routing techniques. CEF consists of two key components: The Forwarding Information Base (FIB) and adjacencies.
The FIB is similar to the routing table generated by multiple routing protocols, maintaining only the next-hop address for a particular IP-route.
The adjacency maintains layer 2 or switching information linked to a particular FIB entry, avoiding the need for an ARP request for each table lookup. There are five types of adjacencies:
5 Types of Adjacencies:
2. Punt adjacency
3. Glean adjacency
4. Discard adjacency
5. Drop adjacency
Null adjacency: Handles packets destined to a NULL interface. Packets with FIB entries pointing to NULL adjacencies will normally be dropped.
Punt adjacency: Deals with packets that require special handling or cannot be switched by CEF, like packets sent to the router itself. Such packets are forwarded to the next switching layer (generally fast switching) where they can be forwarded correctly.
Glean adjacency: Handles packets destined for currently attached hosts, but without layer 2 information.
Discard adjacency: FIB entries pointing to this type of adjacency will be discarded.
Drop adjacency: Packets pointing to this entry are dropped, but the prefix will be checked.