Prerequisites for Cisco Express Forwarding
Cisco Express Forwarding requires a software image that includes Cisco Express Forwarding and IP routing enabled on the device.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This module contains information about Cisco Express Forwarding and describes the required and optional tasks for verifying Cisco Express Forwarding operation.
Cisco Express Forwarding is an advanced Layer 3 IP switching technology. It optimizes network performance and scalability for all kinds of networks: those that carry small amounts of traffic and those that carry large amounts of traffic in complex patterns, such as the Internet, and networks characterized by intensive web-based applications or interactive sessions.
Cisco Express Forwarding requires a software image that includes Cisco Express Forwarding and IP routing enabled on the device.
The Cisco ASR 1000 Series Aggregation Services Routers operate only in distributed Cisco Express Forwarding mode.
If your network architecture requires that you disable or reenable Cisco Express Forwarding or distributed Cisco Express Forwarding switching and forwarding, change your load balancing scheme, refresh Cisco Express Forwarding tables, configure network accounting for Cisco Express Forwarding, or customize the display of Cisco Express Forwarding events, go to the "Related Documents" section for links to information on these tasks. Otherwise, you need do nothing more to configure Cisco Express Forwarding or distributed Cisco Express Forwarding operation in your network.
Note |
Cisco Express Forwarding is supported on interfaces on which IEEE 802.1Q encapsulation has been enabled at the subinterface level. You no longer need to disable Cisco Express Forwarding operation on interfaces that are using IEEE 802.1Q encapsulation on VLAN subinterfaces. |
Cisco Express Forwarding is enable by default on the Cisco ASR 1000 Series Aggregation Services Routers.
To find out if Cisco Express Forwarding is enabled by default on your platform, enter the show ip cef command. If Cisco Express Forwarding is enabled, you receive output that looks like the following:
Router# show ip cef
Prefix Next Hop Interface
[...]
10.2.61.8/24 192.168.100.1 FastEthernet1/0/0
192.168.101.1 FastEthernet2/1/0
[...]
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cef command looks like this:
Router# show ip cef
%CEF not running
If Cisco Express Forwarding is not enabled on your platform, use the ip cef command to enable Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
Improved performance--Cisco Express Forwarding is less CPU-intensive than fast switching route caching. As a result, more CPU processing power can be dedicated to Layer 3 services such as quality of service (QoS) and encryption.
Scalability--Cisco Express Forwarding offers full switching capacity at each line card when distributed Cisco Express Forwarding mode is active. Distributed Cisco Express Forwarding is a distributed switching mechanism that scales linearly with the number of interface cards and the bandwidth installed in the router.
Resiliency--Cisco Express Forwarding offers an unprecedented level of switching consistency and stability in large dynamic networks. In dynamic networks, fast-switched cache entries are frequently invalidated by routing changes. These changes can cause traffic to be process-switched through use of the routing table, rather than fast-switched through use of the route cache. Because the forwarding information base (FIB) lookup table contains all known routes that exist in the routing table, it eliminates the need for route cache maintenance and the steps involved with fast-switch or process-switch forwarding. Cisco Express Forwarding can switch traffic more efficiently than typical demand caching schemes.
Information conventionally stored in a route cache is stored in several data structures for Cisco Express Forwarding switching. The data structures provide optimized lookup for efficient packet forwarding. The two main components of Cisco Express Forwarding operation are the forwarding information base (FIB) and the adjacency tables.
The FIB is conceptually similar to a routing table or information base. A router uses this lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The FIB is updated as changes occur in the network and contains all routes known at the time. For more information on the FIB, see the "Cisco Express Forwarding Overview" module.
Adjacency tables maintain Layer 2 next-hop addresses for all FIB entries. For more information on adjacency tables, see the "Cisco Express Forwarding Overview" module.
This separation of the reachability information (in the Cisco Express Forwarding table) and the forwarding information (in the adjacency table), provides two main benefits:
The adjacency table can be built separately from the Cisco Express Forwarding table, allowing both tables to build without the process switching of any packets.
The MAC header rewrite used to forward a packet isn't stored in cache entries, so changes in a MAC header rewrite string do not require invalidation of cache entries.
There are no configuration tasks. Cisco Express Forwarding is enabled by default.
The following section contains instructions for verifying basic Cisco Express Forwarding or distributed Cisco Express Forwarding operation.
Before you perform the remaining tasks in this section you need to know which mode of Cisco Express Forwarding is running on your router. Distributed Cisco Express Forwarding is enabled by default on the Cisco ASR 1000 Series Routers. To determine if Cisco Express Forwarding or distributed Cisco Express Forwarding is enabled on your router, you can enter the show ip interface command and look for the entry "IP CEF switching enabled" or "IP Distributed CEF switching enabled." If Cisco Express Forwarding is not enabled, the entry in the command display would indicate that "IP CEF switching is disabled."
To verify basic Cisco Express Forwarding or distributed Cisco Express Forwarding operation, perform the following procedures and tasks:
To determine if the router is configured for Cisco Express Forwarding or distributed Cisco Express Forwarding, perform the following task.
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
Step 2 |
show ip interface [type slot / subslot / port [. subinterface -number ]] [brief ] Example:
|
Configures an interface type and enters interface configuration mode.
Refer to the platform-specific SPA hardware installation guide and the corresponding "Specifying the Interface Address on a SPA" topic in the platform-specific SPA software configuration guide for subslot information.
Refer to the appropriate hardware manual for port information. For SPAs, refer to the corresponding "Specifying the Interface Address on a SPA" topics in the platform-specific SPA software configuration guide.
Look for the entry "IP CEF switching enabled" or "IP Distributed CEF switching enabled." |
Step 3 |
disable Example:
|
Exits to user EXEC mode. |
Perform the following tasks, in the order presented, to verify Cisco Express Forwarding operation on your router or to look for Cisco Express Forwarding operation information on your router:
See the Verifying Distributed Cisco Express Forwarding Operation for the tasks to perform for distributed Cisco Express Forwarding operation.
To verify that Cisco Express Forwarding switching is enabled on the input (ingress) interface on the router, perform the following steps.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef Use this command to verify that Cisco Express Forwarding is enabled globally. For example: Example:
If Cisco Express Forwarding is not running, use the ip cef command to enable Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding. When Cisco Express Forwarding or distributed Cisco Express Forwarding is enabled, the show ip cef command shows a brief display of all FIB entries. |
Step 3 |
show cef interface type slot / subslot / port [. subinterface-number ] Use this command to verify that Cisco Express Forwarding is enabled on a particular ingress interface. Look for the entry "IP CEF switching enabled." For example: Example:
|
Step 4 |
show ip interface type slot / subslot / port [. subinterface-number ] Use this command to display the Cisco IOS switching methods enabled on an interface. For example: Example:
In the above output, the "IP CEF switching is enabled" entry indicates that Cisco Express Forwarding is enabled by default. The "No CEF" IP route-cache flag indicates that Cisco Express Forwarding is disabled because an administrator entered the no ip route-cache cef command on this interface. To enable Cisco Express Forwarding on this interface, enter the ip route-cache cef command. Once you do that, the "CEF" flag indicates that Cisco Express Forwarding is running. |
Step 5 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
To locate the prefix in a forwarding table, perform the following steps.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef Use this command to show entries in the FIB and confirm that prefixes are listed in the FIB. For example: Example:
|
Step 3 |
show ip cef vrf vrf-name Use this command to locate prefixes in forwarding tables associated with Virtual Private Network (VPN) routing/forwarding table instances (VRFs). For example, this command shows prefixes in the left-hand column for a VRF named vpn1: Example:
|
Step 4 |
Repeat Step 2 as many times as required to locate the prefix. If Cisco Express Forwarding is in a VPN, you might need to look at multiple VRFs. |
Step 5 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
To find the Cisco Express Forwarding output information associated with the prefix on the RP, perform the following steps.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef Use this command to confirm that the prefix is listed in the FIB. For example: Example:
|
Step 3 |
show ip cef prefix Use this command to display the prefix entry in the FIB for centralized Cisco Express Forwarding. For example: Example:
|
Step 4 |
show ip cef prefix detail Use this command to show more detail for each of the active paths associated with a destination prefix. For example: Example:
|
Step 5 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
To verify the adjacency or next-hop information, perform the following steps.
Adjacencies are added to the adjacency table when the adjacency is
Indirectly configured manually
Dynamically discovered through ARP
Created when a routing protocol, for example, Border Gateway Protocol (BGP) or Open Shortest Path First (OSPF), forms a neighbor relationship
For more information on adjacencies, see the "Cisco Express Forwarding Overview" module.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef Use this command to find the output interface. For example: Example:
In this example, the output interface for the prefix 10.2.61.8/24 is FastEthernet 1/0/0, and the next hop address is 192.168.100.1. |
Step 3 |
show adjacency detail Use this command to display adjacency information, including Layer 2 information. For example: Example:
The encapsulation string 00107BC30D5C00500B32D8200800 is that of an adjacency used for traffic switched out of a router on a FastEthernet link by means of Ethernet II encapsulation. |
Step 4 |
show adjacency summary Use this command to display Cisco Express Forwarding adjacency table summary information. For example: Example:
|
Step 5 |
show adjacency type slot / subslot / port [. subinterface-number ] Use this command to display adjacency information for a particular interface. For example: Example:
|
Step 6 |
show ip cef exact-route source-address destination-address Use this command to display the exact route for a source-destination IP address pair and verify the next-hop address. For example: Example:
In this example, the exact route from source address 10.1.1.1 to destination address 10.2.61.8 is through interface FastEthernet1/0/0 to next hop address 192.168.100.1. |
Step 7 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
Perform the following tasks, in the order presented, to verify distributed Cisco Express Forwarding operation on your router:
To verify that distributed Cisco Express Forwarding switching is enabled on the input (ingress) interface on the line card, perform the following steps.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef Use this command to verify that Cisco Express Forwarding is enabled globally. For example: Example:
If Cisco Express Forwarding is not running, use the ip cef command to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding. When Cisco Express Forwarding or distributed Cisco Express Forwarding is enabled, the show ip cef command shows a brief display of all FIB entries. |
Step 3 |
show ip cef prefix type slot / subslot / port[ . subinterface-number] Use this command to verify information about interfaces on a line card. For example: Example:
|
Step 4 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
Perform the following tasks to interpret information in Cisco Express Forwarding command output:
Perform the following tasks to verify that the Cisco Express Forwarding information looks as you expected.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip route Use this command to look at the forwarding information contained in the IP routing table. For example: Example:
In the example, c indicates a directly connected route and o represents a route discovered by means of OSPF. |
Step 3 |
show ip cef Use this command to display entries in the FIB. For example: Example:
|
Step 4 |
Compare the command output in Steps 2 and 3. Cisco Express Forwarding maintains the information contained in the IP routing table structured in a way that optimizes forwarding. Check that there is a one-to-one correlation between FIB entries and routing table entries. For example, the following lines from the sample output in Step 2 and Step 2 show a one-to-one correlation. The destination prefix 192.92.92.0/24, the next hop IP address 10.5.5.5, and the next-hop interface POS2/0/0 are the same.
Example:
Example:
If there is not a one-to-one correlation, you can recreate the central FIB table by clearing the IP routing table and allowing the routing table to be rebuilt, which in turn causes the central FIB table to be repopulated with up-to-date routing information. |
Step 5 |
(For distributed Cisco Express Forwarding operation only) show ip cef type slot / subslot / port [. subinterface-number Use this command to display FIB entries on all line cards. For example: Example:
|
Step 6 |
(For distributed Cisco Express Forwarding operation only) Compare the command output in Steps 2 and 4. The output from the show ip cef command in Step 3 should be identical to the output from the show ip cef command in Step 5. If the outputs are not identical, see the " Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards " module for information on synchronizing FIB entries on the RP and the line card. |
Step 7 |
disable Use this command to exit privileged EXEC mode. For example: Example:
|
Perform the following steps to interpret Multiprotocol Label Switching (MPLS) information in Cisco Express Forwarding output.
Cisco Express Forwarding interacts with a label switched path (LSP) primarily at the beginning and end of the LSP--that is, on label imposition (IP packet to MPLS packet) and label disposition (MPLS packet to IP packet). Output from Cisco Express Forwarding commands should show these processes.
The Cisco implementation of MPLS leverages the advantages of Cisco Express Forwarding. When you use a router as an MPLS edge router, Cisco Express Forwarding identifies the route for incoming packets and finds the label to apply to the packet.
However, when you use a router as a label switch router (LSR), tables from the MPLS label forwarding information base (LFIB) are used to switch MPLS packets. These tables are distributed to the line cards in the same way that the FIB tables are distributed in Cisco Express Forwarding.
A customer-site VRF contains all the routes available to the site from the VPNs to which it belongs. VPN routing information is stored in the IP routing table and in the Cisco Express Forwarding table for each VRF. A separate set of tables is maintained for each VRF, which prevents information from being forwarded outside a VPN and prevents packets that are outside a VPN from being forwarded to a router within the VPN. Based on the routing information stored in the VRF IP routing table and the VRF Cisco Express Forwarding table, packets are forwarded to their destinations. Output from Cisco Express Forwarding commands shows details from the VRF Cisco Express Forwarding tables.
Step 1 |
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example: Example:
|
Step 2 |
show ip cef vrf vrf-name detail Use this command to display detailed information from the Cisco Express Forwarding forwarding table that is associated with a VRF. For example: Example:
The following section of the Cisco Express Forwarding output provides MPLS information for the first adjacency. The "tag rewrite" is an equivalent of a Cisco Express Forwarding adjacency. Look at the tags imposed field. The first tag {20} is the tag used to reach the next hop, 10.1.1.13. The second tag {30} is the tag advertised to the local provider edge (PE) router by the remote PE router. Example:
The following section of the output provides information about the second adjacency. For the second adjacency, no tag rewrite occurs as indicated by the entry "tag rewrite with , ," and MPLS tags are not imposed on the packet indicated by the entry "tags imposed : {}." The router also discards this packet indicated by the entry "valid discard adjacency." Example:
|
Step 3 |
disable Use this command to exit to user EXEC mode. For example: Example:
|
There are no configuration examples for Cisco Express Forwarding. Cisco Express Forwarding is enabled by default.
If you want to disable Cisco Express Forwarding or distributed Cisco Express Forwarding operation, refer to Enabling or Disabling Cisco Express Forwarding or distributed Cisco Express Forwarding to Customize Switching/Forwarding for Dynamic Networks.
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved.
Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor (RP) to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation.
distributed Cisco Express Forwarding --A type of Cisco Express Forwarding switching in which line cards maintain identical copies of the Forwarding Information Base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Processor of involvement in the switching operation.
FIB --forwarding information base. A component of Cisco Express Forwarding. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table.
IPC --interprocess communication. The mechanism that enables the distribution of Cisco Express Forwarding tables from the Route Processor (RP) to the line card when the router is operating in distributed Cisco Express Forwarding mode.
label disposition --The removal of Multiprotocol Label Switching (MPLS) headers at the edge of a network. In MPLS label disposition, packets arrive on a router as MPLS packets and, with the headers removed, are transmitted as IP packets.
label imposition --The action of putting a label on a packet.
LER --label edge router. A router that performs label imposition.
LFIB --label forwarding information base. The data structure used by switching functions to switch labeled packets.
LIB --label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR.
line card --A general term for an interface processor that can be used in various Cisco products.
LSP --label switched path. A sequence of hops (Router 0...Router n). A packet travels from R0 to Rn by means of label switching mechanisms. An LSP can be chosen dynamically, based on normal routing mechanisms, or it can be configured manually.
LSR --label switch router. A Layer 3 router that forwards a packet based on the value of a label encapsulated in the packet.
MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along the normal routing paths (sometimes called MPLS hop-by-hop forwarding).
prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0.
RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table.
RP --Route Processor. The processor module contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor.
VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network.
VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a provider edge (PE) router.