|
|
This chapter describes the tasks for configuring Frame Relay and Frame Relay Traffic Shaping (FRTS) on a router.
For complete conceptual information, see the section "Traffic Shaping" in the chapter "Policing and Shaping Overview" in this book.
For a complete description of the commands mentioned in this chapter, refer to the Cisco IOS Quality of Service Solutions Command Reference and the Cisco IOS Wide-Area Networking Command Reference. To locate documentation of other commands that appear in this chapter, use the command reference master index, or search online.
For more information on configuring Frame Relay, refer to the "Configuring Frame Relay" chapter in the Cisco IOS Wide-Area Networking Configuration Guide. For information on configuring Frame Relay as it relates to voice traffic, refer to the "Configuring Voice over Frame Relay" chapter in the Cisco IOS Multiservice Applications Configuration Guide.
To configure FRTS and verify that the information is correct, perform the tasks in the following sections:
See the end of this chapter for the section "FRTS Configuration Examples."
To configure a map class, perform the tasks in the following sections. The first section is required; the other section is optional.
To configure a map class, use the following command in global configuration mode:
Command | Purpose |
|---|---|
map-class frame-relay map-class-name |
|
For switched virtual circuits (SVCs), you can define multiple map classes. A map class is associated with a static map, not with the interface or subinterface itself. Because of the flexibility this association allows, you can define different map classes for different destinations.
After specifying the Frame Relay map class, you can perform the following tasks to set the parameters for the map class:
To set the parameters for a map class, use the following commands beginning in map-class configuration mode:
| Command | Purpose | |
|---|---|---|
Step 1 | frame-relay custom-queue-list list-number | Specifies a custom queue list to be used for the map class. |
Step 2 | frame-relay priority-group list-number | Assigns a priority list to VCs associated with the map class. |
Step 3 | frame-relay adaptive-shaping [becn | foresight]1 | Selects either BECN or ForeSight as the congestion backward-notification mechanism to which traffic shaping will adapt. |
Step 4 | frame-relay cir out bps2 | Specifies the outbound committed information rate (CIR). |
Step 5 | frame-relay mincir in bps_ (SUP)_2 | Sets the minimum acceptable incoming CIR. |
Step 6 | frame-relay mincir out bps_ (SUP)_2 | Sets the minimum acceptable outgoing CIR. |
Step 7 | frame-relay bc out bits2 | Sets the outgoing Committed Burst (Bc) size. |
Step 8 | frame-relay be out bits2 | Sets the outgoing Excess Burst (Be) size. |
Step 9 | frame-relay idle-timer duration | Sets the idle timeout interval. |
| 1This command replaces the frame-relay becn-response-enable command, which will be removed in a future Cisco IOS release. If you use the frame-relay becn-response-enable command in scripts, you should replace it with the frame-relay adaptive-shaping becn command. 2The in and out keywords are optional. Configuring the command without the in and out keywords will apply that value to both the incoming and outgoing traffic values for the SVC setup. For example, frame-relay cir 56000 applies 56000 to both incoming and outgoing traffic values for setting up the SVC. |
FRTS provides these capabilities:
![]() |
Note FRTS is not effective for Layer 2 PVC switching using the frame-relay route command. |
By defining separate VCs for different types of traffic and specifying queueing and an outbound traffic rate for each VC, you can provide guaranteed bandwidth for each type of traffic. By specifying different traffic rates for different VCs over the same line, you can perform virtual time-division multiplexing. By throttling outbound traffic from high-speed lines in central offices to lower-speed lines in remote locations, you can ease congestion and data loss in the network; enhanced queueing also prevents congestion-caused data loss.
Traffic shaping applies to both permanent virtual circuits (PVCs) and SVCs. To configure FRTS, perform the tasks in the following sections. The tasks in the first two sections are required; the remaining tasks are optional.
Before you configure FRTS, you must first enable Frame Relay encapsulation on an interface. For information on how to enable Frame Relay encapsulation, refer to the chapter "Configuring Frame Relay" in the Cisco IOS Wide-Area Networking Configuration Guide.
Enabling FRTS on an interface enables both traffic shaping and per-VC queueing on all the PVCs and SVCs on the interface. Traffic shaping enables the router to control the output rate of the circuit and react to congestion notification information if also configured.
To enable FRTS on the specified interface, use the following command in interface configuration mode:
Command | Purpose |
|---|---|
frame-relay traffic-shaping |
|
The router ForeSight feature is the network traffic control software used in Cisco switches. The Cisco Frame Relay switch can extend ForeSight messages over a User-to-Network Interface (UNI), passing the BECN bit for VCs.
The ForeSight feature allows Cisco Frame Relay routers to process and react to ForeSight messages and adjust VC-level traffic shaping in a timely manner.
The ForeSight feature must be configured explicitly on both the Cisco router and the Cisco switch. It is enabled on the Cisco router when FRTS is configured. However, the response of the router to the ForeSight feature is not applied to any VC until the frame-relay adaptive-shaping foresight command is added to the VC's map class. When the ForeSight feature is enabled on the switch, the switch will periodically send out a ForeSight message based on the time value configured. The time interval can range from 40 to 5000 milliseconds.
When a Cisco router receives a ForeSight message indicating that certain data-link connection identifiers (DLCIs) are experiencing congestion, the Cisco router reacts by activating its traffic shaping function to slow down the output rate. The router reacts as it would if it were to detect the congestion by receiving a packet with the BECN bit set.
The difference between the BECN and ForeSight congestion notification methods is that BECN requires a user packet to be sent in the direction of the congested DLCI to convey the signal. The sending of user packets is not predictable and therefore is not reliable as a notification mechanism. Rather than wait for user packets to provide the congestion notification, timed ForeSight messages guarantee that the router receives notification before congestion becomes a problem. Traffic can be slowed down in the direction of the congested DLCI.
For the ForeSight feature to work, the following conditions must exist on the Cisco router:
The following additional condition must exist on the Cisco switch: The UNI connecting to the router is Consolidated Link Layer Management (CLLM) enabled, with the proper time interval specified.
The ForeSight feature is enabled automatically when you use the frame-relay traffic-shaping command. However, you must enter the map-class frame-relay command and the frame-relay adaptive-shaping foresight command before the router will respond to the ForeSight feature and apply the traffic shaping effect on a specific interface, subinterface, or VC.
When used in conjunction with traffic shaping, the router can respond to changes in the network dynamically. This optional feature allows the router to learn QoS parameters from the Cisco switch and use them for traffic shaping, configuration, or management purposes.
Enhanced Local Management Interface (ELMI) also simplifies traffic shaping configuration on the router. Previously, users needed to configure traffic shaping rate enforcement values, possibly for every VC. Enabling ELMI reduces the chance of specifying inconsistent or incorrect values when configuring the router.
To enable ELMI, you must configure it on the main interface. Use the following optional commands in interface configuration mode:
![]() |
Note ELMI enables automated exchange of Frame Relay QoS parameter information between the Cisco router and the Cisco switch. Routers can base congestion management and prioritization decisions on known QoS values, such as the CIR, Bc, and Be. The router senses QoS values from the switch and can be configured to use those values in traffic shaping. This enhancement works between Cisco routers and Cisco switches (BPX/MGX and IGX platforms). |
It is not necessary to configure traffic shaping on the interface to enable ELMI. You might want to enable it to know the values being used by the switch. If you want the router to respond to the QoS information received from the switch by adjusting the output rate, you must configure traffic shaping on the interface using the frame-relay traffic-shaping command in interface configuration mode.
For an example of how to configure a Frame Relay interface with QoS autosense enabled, see the section "Enhanced Local Management Interface Example" later in this chapter.
When you specify a Frame Relay map class for a main interface, all the VCs on its subinterfaces inherit all the traffic shaping parameters defined for the class.
To specify a map class for a particular ELMI interface, use the following command in interface configuration mode:
Command | Purpose |
|---|---|
frame-relay class map-class-name |
|
You can override the default for a specific DLCI on a specific subinterface by using the frame-relay class VC configuration command to assign the DLCI explicitly to a different class. For an example of assigning subinterface DLCIs to the default class and assigning others explicitly to a different class, see the section "FRTS Configuration Examples" later in this chapter.
When you define a map class for Frame Relay, you can define the average and peak rates (in bits per second) allowed on VCs associated with the map class. You can also specify either a custom queue list or a priority queue group to use on VCs associated with the map class.
To define a map class, use the following commands in global configuration mode:
| Command | Purpose | |
|---|---|---|
Step 1 | map-class frame-relay map-class-name | Specifies a map class to define. |
Step 2 | frame-relay traffic-rate average [peak] | Defines the traffic rate for the map class. |
Step 3 | frame-relay custom-queue-list list-number | Specifies a custom queue list. |
Step 4 | frame-relay priority-group list-number | Specifies a priority queue list. |
Step 5 | frame-relay adaptive-shaping {becn |
foresight}1
| Selects either BECN or ForeSight as the congestion backward notification mechanism to which traffic shaping will adapt. |
You can specify access lists and associate them with the custom queue list defined for any map class. The list number specified in the access list and the custom queue list ties them together.
See the appropriate protocol chapters for information about defining access lists for the protocols you want to send on the Frame Relay network.
You can define a priority list for a protocol and you can also define a default priority list. The number used for a specific priority list ties the list to the Frame Relay priority group defined for a specified map class.
For example, if you enter the frame relay priority-group 2 command for the map class fast_vcs and then you enter the priority-list 2 protocol decnet high command, that priority list is used for the map class fast_vcs. The average and peak traffic rates defined for the map class fast_vcs are used for DECnet traffic.
You can define a queue list for a protocol and a default queue list. You can also specify the maximum number of bytes to be sent in any cycle. The number used for a specific queue list ties the list to the Frame Relay custom queue list defined for a specified map class.
For example, if you enter the frame relay custom-queue-list 1 command for the map class slow_vcs and then you enter the queue-list 1 protocol ip list 100 command, that queue list is used for the map class slow_vcs; access-list 100 definition is also used for that map class and queue. The average and peak traffic rates defined for the map class slow_vcs are used for IP traffic that meets the access-list 100 criteria.
Very large Frame Relay networks might have performance problems when many DLCIs terminate in a single router or access server that must replicate routing updates and service advertising updates on each DLCI. The updates can consume access-link bandwidth and cause significant latency variations in user traffic; the updates can also consume interface buffers and lead to higher packet rate loss for both user data and routing updates.
To avoid such problems, you can create a special broadcast queue for an interface. The broadcast queue is managed independently of the normal interface queue, has its own buffers, and has a configurable size and service rate.
To create a broadcast queue, use the following command in interface configuration mode:
Command | Purpose |
|---|---|
frame-relay broadcast-queue size byte-rate packet-rate |
|
You can specify which Frame Relay packets have low priority or low time sensitivity and will be the first to be dropped when a Frame Relay switch is congested. The mechanism that allows a Frame Relay switch to identify such packets is the discard eligible (DE) bit.
This feature requires that the Frame Relay network be able to interpret the DE bit. Some networks take no action when the DE bit is set. Other networks use the DE bit to determine which packets to discard. The most desirable interpretation is to use the DE bit to determine which packets should be dropped first and also which packets have lower time sensitivity.
You can define DE lists that identify the characteristics of packets to be eligible for discarding, and you can also specify DE groups to identify the DLCI that is affected.
To define a DE list specifying the packets that can be dropped when the Frame Relay switch is congested, use the following command in global configuration mode:
Command | Purpose |
|---|---|
frame-relay de-list list-number {protocol protocol| interface interface-type interface-number} characteristic |
|
You can specify DE lists based on the protocol or the interface, and on characteristics such as fragmentation of the packet, a specific TCP or User Datagram Protocol (UDP) port, an access list number, or a packet size. See the frame-relay de-list command in the Cisco IOS Wide-Area Networking Command Reference publication for arguments and other information.
To define a DE group specifying the DE list and DLCI affected, use the following command in interface configuration mode:
Command | Purpose |
|---|---|
frame-relay de-group group-number dlci |
|
DLCI priority levels allow you to separate different types of traffic and can provide a traffic management tool for congestion problems caused by the following situations:
Before you configure the DLCI priority levels, complete the following tasks:
To configure DLCI priority levels, use the following command in interface configuration mode:
Command | Purpose |
|---|---|
frame-relay priority-dlci-group group-number high-dlci medium-dlci normal-dlci low-dlci |
|
![]() |
Note If you do not explicitly specify a DLCI for each of the priority levels, the last DLCI specified in the command line is used as the value of the remaining arguments. At a minimum, you must configure the high-priority and the medium-priority DLCIs. |
To monitor Frame Relay connections, use one or more of the following commands in EXEC mode:
Command | Purpose |
|---|---|
clear frame-relay-inarp |
|
show interfaces type interface-number |
|
show frame-relay lmi [interface-type interface-number] |
|
show frame-relay map |
|
show frame-relay pvc [interface-type interface-number [dlci]] |
|
show frame-relay route |
|
show frame-relay traffic |
|
show frame-relay lapf |
|
show frame-relay svc maplist |
|
The following sections provide FRTS configuration examples for interfaces and subinterfaces:
The following example configures a physical interface, applies a map group to the physical interface, and then defines the map group:
interface serial 0 ip address 172.10.8.6 encapsulation frame-relay map-group bermuda frame-relay lmi-type q933a frame-relay svc ! map-list bermuda source-addr E164 123456 dest-addr E164 654321 ip 131.108.177.100 class hawaii appletalk 1000.2 class rainbow ! map-class frame-relay rainbow frame-relay idle-timer 60 ! map-class frame-relay hawaii frame-relay cir in 64000 frame-relay cir out 64000
The following example configures a point-to-point interface for SVC operation. This example assumes that the main interface (serial 0) has been configured for signalling, and that SVC operation has been enabled on the main interface.
int s 0.1 point-point ! Define the map-group; details are specified under the map-list holiday command. map-group holiday ! ! Associate the map-group with a specific source and destination. map-list holiday local-addr X121 10.10.10.10 dest-addr E164 10.12.12.12 ! Specify destination protocol addresses for a map-class. ip 131.108.177.100 class hawaii IETF appletalk 1000.2 class rainbow IETF broadcast ! ! Define a map class and its QoS settings. map-class hawaii frame-relay cir in 2000000 frame-relay cir out 56000 frame-relay be 9000 ! ! Define another map class and its QOS settings. map-class rainbow frame-relay cir in 64000 frame-relay idle-timer 2000
In this example, the VCs on subinterfaces Serial0.1 and Serial0.2 inherit class parameters from the main interface, namely those defined in slow_vcs, but the VC defined on subinterface Serial0.2 (DLCI 102) is specifically configured to use map class fast_vcs.
Map class slow_vcs uses a peak rate of 9600 and average rate of 4800 bps. Because BECN feedback is enabled by default, the output rate will be cut back as low as 4800 bps in response to received BECNs. This map class is configured to use custom queueing using queue-list 1. In this example, queue-list 1 has three queues, with the first two being controlled by access lists 100 and 115.
Map class fast_vcs uses a peak rate of 64,000 and average rate of 16,000 bps. Because BECN feedback is enabled by default, the output rate will be cut back to as low as 4800 bps in response to received BECNs. This map class is configured for priority queueing using priority-group 2.
interface Serial0 no ip address encapsulation frame-relay frame-relay lmi-type ansi frame-relay traffic-shaping frame-relay class slow_vcs ! interface Serial0.1 point-to-point ip address 10.128.30.1 255.255.255.248 ip ospf cost 200 bandwidth 10 frame-relay interface-dlci 101 ! interface Serial0.2 point-to-point ip address 10.128.30.9 255.255.255.248 ip ospf cost 400 bandwidth 10 frame-relay interface-dlci 102 class fast_vcs ! interface Serial0.3 point-to-point ip address 10.128.30.17 255.255.255.248 ip ospf cost 200 bandwidth 10 frame-relay interface-dlci 103 ! map-class frame-relay slow_vcs frame-relay traffic-rate 4800 9600 frame-relay custom-queue-list 1 ! map-class frame-relay fast_vcs frame-relay traffic-rate 16000 64000 frame-relay priority-group 2 ! access-list 100 permit tcp any any eq 2065 access-list 115 permit tcp any any eq 256 ! priority-list 2 protocol decnet high priority-list 2 ip normal priority-list 2 default medium ! queue-list 1 protocol ip 1 list 100 queue-list 1 protocol ip 2 list 115 queue-list 1 default 3 queue-list 1 queue 1 byte-count 1600 limit 200 queue-list 1 queue 2 byte-count 600 limit 200 queue-list 1 queue 3 byte-count 500 limit 200
The following example illustrates a router configuration with traffic shaping enabled. DLCIs 100 and 101 on subinterfaces Serial3.2 and Serial3.3 inherit class parameters from the main interface. The traffic shaping for these two VCs will be adaptive to the ForeSight notification.
For serial interface 0, the output rate for DLCI 103 will not be affected by the ForeSight function.
interface Serial0 no ip address encapsulation frame-relay frame-relay lmi-type ansi frame-relay traffic-shaping ! interface Serial0.2 point-to-point ip address 10.128.30.17 255.255.255.248 frame-relay interface-dlci 102 class fast_vcs ! interface Serial0.3 point-to-point ip address 10.128.30.5 255.255.255.248 ip ospf cost 200 frame-relay interface-dlci 103 class slow_vcs ! interface serial 3 no ip address encapsulation frame-relay frame-relay traffic-shaping frame-relay class fast_vcs ! interface Serial3.2 multipoint ip address 100.120.20.13 255.255.255.248 frame-relay map ip 100.120.20.6 16 ietf broadcast ! interface Serial3.3 point-to-point ip address 100.120.10.13 255.255.255.248 frame-relay interface-dlci 101 ! map-class frame-relay slow_vcs frame-relay adaptive-shaping becn frame-relay traffic-rate 4800 9600 ! map-class frame-relay fast_vcs frame-relay adaptive-shaping foresight frame-relay traffic-rate 16000 64000 frame-relay cir 56000 frame-relay bc 64000
Figure 10 illustrates a Cisco switch and a Cisco router, both configured with ELMI enabled. The switch sends QoS information to the router, which uses it for traffic rate enforcement.

The following configuration example shows a Frame Relay interface enabled with QoS autosense. The router receives messages from the Cisco switch, which is also configured with QoS autosense enabled. When ELMI is configured in conjunction with traffic shaping, the router receives congestion information through BECN or ForeSight congestion signalling and reduces its output rate to the value specified in the traffic shaping configuration.
interface serial0 no ip address encapsulation frame-relay frame-relay lmi-type ansi frame-relay traffic-shaping frame-relay qos-autosense ! interface serial0.1 point-to-point no ip address frame-relay interface-dlci 101
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Aug 21 21:26:36 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.