In addition to the Frame Relay protocol functions for transferring data, the Frame Relay specification includes optional LMI extensions. Some of the extensions include:

LMI is used to manage Frame Relay links. Each LMI message is classified by a DLCI appearing in the LMI frame. The 10-bit DLCI field supports 1,024 VC IDs: 0 to 1,023, as shown in Figure 1. The LMI extensions reserve some of these VC IDs, thereby reducing the number of permitted VCs. LMI messages are exchanged between the DTE and DCE using these reserved DLCIs.

There are several LMI types, each of which is incompatible with the others. The LMI type configured on the router must match the type used by the service provider. Three types of LMIs are supported by Cisco routers:

To display the LMI message information and the associated DLCI numbers, use the show interfaces [type number] command, as shown in Figure 2. Cisco uses DLCI 1023 to identify LMI messages used for Frame Relay link management.

Starting with the Cisco IOS software Release 11.2, the default LMI autosense feature detects the LMI type supported by the directly connected Frame Relay switch. Based on the LMI status messages it receives from the Frame Relay switch, the router automatically configures its interface with the supported LMI type acknowledged by the Frame Relay switch. If it is necessary to set the LMI type, use the frame-relay lmi-type [cisco | ansi | q933a] interface configuration command. Configuring the LMI type disables the autosense feature.

In cases where a Frame Relay switch uses non-default timeout settings, the keepalive interval must also be configured on the Frame Relay interface to prevent status exchange messages from timing out. The LMI status exchange messages determine the status of the PVC connection. A large mismatch in the keepalive interval on the router and the switch can cause the switch to declare the router dead. It is important to consult the Frame Relay service provider for information on how to modify the keepalive setting. By default, the keepalive time interval is 10 seconds on Cisco serial interfaces. You can change the keepalive interval with the keepalive interface configuration command.

Status messages help verify the integrity of logical and physical links. This information is critical in a routing environment because routing protocols make decisions based on link integrity.

As shown in Figure 3, LMI status messages are similar to the Frame Relay frame. In place of the Address field of a Frame Relay frame that is used for data transmission, is an LMI DLCI field. Following the DLCI field are the Control, Protocol Discriminator, and Call Reference fields. These are the same as with standard Frame Relay data frames. The fourth field indicates the LMI message type and includes one of the three LMI message types supported by Cisco.