![]() |
Table Of Contents
BECN and FECN Marking for Frame Relay over MPLS
Prerequisites for BECN and FECN Marking for Frame Relay over MPLS
Restrictions for BECN and FECN Marking for Frame Relay over MPLS
Information About BECN and FECN Marking for Frame Relay over MPLS
How to Configure BECN and FECN Marking for Frame Relay over MPLS
Configuring BECN and FECN Marking at the Class Level
Configuring BECN and FECN Marking at the Interface Level
Configuration Examples for BECN and FECN Marking for Frame Relay over MPLS
frame-relay congestion-management
BECN and FECN Marking for Frame Relay over MPLS
First Published: August 26, 2003Last Updated: February, 2006This feature explains how to configure backward explicit congestion notification (BECN) and forward explicit congestion notification (FECN) bits on packets for Frame Relay over MPLS.
History for the BECN and FECN Marking for Frame Relay over MPLS Feature
Release Modification12.0(26)S
This feature was introduced on the Cisco 7200 and 7500 series routers.
12.2(28)SB
This feature was integrated into Cisco IOS Release 12.2(28)SB.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for BECN and FECN Marking for Frame Relay over MPLS
•
Restrictions for BECN and FECN Marking for Frame Relay over MPLS
•
Information About BECN and FECN Marking for Frame Relay over MPLS
•
How to Configure BECN and FECN Marking for Frame Relay over MPLS
•
Configuration Examples for BECN and FECN Marking for Frame Relay over MPLS
Prerequisites for BECN and FECN Marking for Frame Relay over MPLS
The following prerequisites apply to the Cisco 7500 series router:
•
Enable distributed IP CEF globally.
•
Use VIP modules for both ingress and egress interfaces.
Restrictions for BECN and FECN Marking for Frame Relay over MPLS
•
FECN and BECN marking does not work with L2VPN Interworking. FECN and BECN marking works only with Frame Relay over MPLS in like-to-like configurations.
•
FECN and BECN marking does not work with Frame Relay over MPLS with port-to-port connections.
•
If you configure the ECN thresholds at the interface level and also configure shaping, unpredictable behavior can occur. The software cannot differentiate between packets that are shaped and packets that experienced interface congestion.
•
If you configure ECN thresholds at both the interface level and the class level, only the class-level ECN threshold is used.
•
If you do not configure ECN thresholds at the class level, the software inherits the interface-level ECN threshold.
•
You cannot configure priority or bandwidth after configuring the class ECN threshold. If you attempt to configure priority or bandwidth when ECN thresholds have been configured, you receive the following error:
Please remove set fr-fecn-becn from this class firstInformation About BECN and FECN Marking for Frame Relay over MPLS
This feature provides congestion management on a provider edge (PE) router's egress interface when Frame Relay traffic is being tunneled across an MPLS cloud. When the congestion queue thresholds configured at the interface or class level of the PE router are exceeded, PE router does the following:
•
Sets the FECN bit to 1 on the outgoing packets.
•
Sets the BECN bit to 1 for all traffic destined for the originating CE router, which decreases its traffic based on the number of BECN packets it received.
You can configure FECN and BECN marking at the class level with the set fr-fecn-becn command. You can set up FECN and BECN marking at the interface level with the threshold ecn command.
How to Configure BECN and FECN Marking for Frame Relay over MPLS
You can configure BECN and FECN marking at either the class level or the interface level. This section shows both methods and includes the following sections:
•
Configuring BECN and FECN Marking at the Class Level (Optional)
•
Configuring BECN and FECN Marking at the Interface Level (Optional)
•
Verifying the Configuration (Optional)
Configuring BECN and FECN Marking at the Class Level
Use the following steps to enable BECN and FECN marking at the class level, using the set fr-fecn-becn command.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
class-map class-map-name
4.
match fr-dlci dlci-number
5.
exit
6.
policy-map policy-map-name
7.
class class-name
8.
priority {kbps | percent percent} [bytes]
9.
set fr-fecn-becn percent
10.
exit
11.
interface type number
12.
service-policy {input | output} policy-map-name
DETAILED STEPS
Configuring BECN and FECN Marking at the Interface Level
Use the following steps to enable BECN and FECN marking at the class level, using the threshold ecn command.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
class-map class-map-name
4.
match fr-dlci dlci-number
5.
exit
6.
policy-map policy-map-name
7.
class class-name
8.
priority {kbps | percent percent} [bytes]
9.
exit
10.
interface type number
11.
service-policy {input | output} policy-map-name
12.
frame-relay congestion-management
13.
threshold ecn percentage
DETAILED STEPS
Verifying the Configuration
To verify Frame Relay congestion management on switched PVCs, use the following commands:
•
To displays statistics about PVCs for Frame Relay interfaces, issue the show frame-relay pvc command:
Router# show frame-relay pvc [interface interface] [dlci]•
To display information about the configuration and queue at the interface, issue the show interfaces command:
Router# show interfaces type number
For the Cisco 7200 series routers, you can issue the show hqf interface command to show the queue size for interface and class. For the Cisco 7500 series routers, log on to VIP slot and issue show vip hqf command. For the marking to start, the queue size has to be greater than the aggregate limit multiplied by the threshold ECN percentage.
Router # show hqf interface s2/1
Interface Number 7 (type 53) Serial2/1blt (0x61DDB97C, index 0, fast_if_number 8) layer PHYSICALscheduling policy: WFQclassification policy: CLASS_BASEDdrop policy: TAILblt flags: 0x0 scheduler: 0x61E9377Ctxcount 1532432 drops 0 qdrops 0 nobuffers 0 flowdrops 0qsize 0 qsize_bytes 0 aggregate limit 918 availbuffers 918 weight 1 perc 0.00visible_bw 10000000 allocated_bw 10000000 vc_encap 0 ecn_threshold 91quantum 1500 credit 0 backpressure_policy 1 scheduler_flags 3FcalQ[A]->last_sortq 75, calQ[B]->last_sortq 0, leaf_blt 0x61E9372Cnext layer HQFLAYER_CLASS_HIER0 (max entries 256)blt (0x61DDB918, index 0, fast_if_number 8) layer CLASS_HIER0scheduling policy: FIFOclassification policy: NONEdrop policy: TAILblt flags: 0x0 scheduler: 0x61E9372Ctxcount 1532432 drops 0 qdrops 0 nobuffers 0 flowdrops 0qsize 0 qsize_bytes 0 aggregate limit 918 availbuffers 918 weight 1 perc 0.00visible_bw 10000000 allocated_bw 10000000 vc_encap 0 ecn_threshold 91quantum 1500 credit 0 backpressure_policy 1 scheduler_flags 3FcalQ[A]->last_sortq 75, calQ[B]->last_sortq 0, leaf_blt 0x61E9372CConfiguration Examples for BECN and FECN Marking for Frame Relay over MPLS
Table 1 shows two examples of FECN and BECN marking; one at the class level, the other at the interface level.
Table 1 FECN and BECN Marking at the Class Level and Interface Level Configuration Examples
Additional References
The following sections provide references related to the BECN and FECN Marking for Frame Relay over MPLS feature.
Related Documents
Standards
MIBs
MIB MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents modified commands only.
•
frame-relay congestion-management
frame-relay congestion-management
To enable Frame Relay congestion management functions on all switched permanent virtual circuits (PVCs) on an interface, and to enter Frame Relay congestion management configuration mode, use the frame-relay congestion-management command in interface configuration mode. To disable Frame Relay congestion management, use the no form of this command.
frame-relay congestion-management
no frame-relay congestion-management
Syntax Description
This command has no arguments or keywords.
Defaults
Frame Relay congestion management is not enabled on switched PVCs.
Command Modes
Interface configuration
Command History
Usage Guidelines
You must enable Frame Relay switching, using the frame-relay switching global command, before you can configure Frame Relay congestion management.
Frame Relay congestion management is supported only when the interface is configured with class-based weighted fair queuing (WFQ).
Examples
In the following example, the frame-relay congestion-management command enables Frame Relay congestion management on serial interface 1. The command also enters Frame Relay congestion management configuration mode so that congestion threshold parameters can be configured.
interface serial1encapsulation frame-relayframe-relay intf-type dceframe-relay congestion-managementthreshold ecn be 0threshold ecn bc 20Related Commands
Command Descriptionthreshold ecn
Configures the threshold at which ECN bits are set on packets in switched PVCs on the output interface.
set fr-fecn-becn
To enable forward explicit congestion notification (FECN) and backward explicit congestion notification (BECN) with Frame Relay over MPLS, use the set fr-fecn-becn command in policy map class configuration mode. To disable the configuration notification, use the no form of this command.
set fr-fecn-becn percent
no set fr-fecn-becn percent
Syntax Description
Defaults
Frame Relay does not perform FECN and BECN marking.
Command Modes
Policy map class configuration
Command History
Usage Guidelines
This command works only with Frame Relay over MPLS.
If you configure FECN and BECN bit marking, you cannot configure bandwidth or priority.
Examples
The following example enables marking the FECN and BECN bits when 20 percent of the queue is used:
Router(config)# policy-map policy1Router(config-pmap)# class class1Router(config-pmap-c)# shape 80000Router(config-pmap-c)# set fr-fecn-becn 20Related Commands
threshold ecn
To configure the threshold at which explicit congestion notification (ECN) bits will be set on packets in switched permanent virtual circuits (PVCs) on the output interface, use the threshold ecn command in Frame Relay congestion management configuration mode. To remove the threshold configuration, use the no form of this command.
For Frame Relay Switching
threshold ecn {bc | be} percentage
no threshold ecn {bc | be} percentage
For Frame Relay over MPLS
threshold ecn percentage
no threshold ecn percentage
Syntax Description
Defaults
An ECN threshold is not configured.
Command Modes
Frame Relay congestion management configuration
Command History
Usage Guidelines
You must enable Frame Relay congestion management on the interface before congestion management parameters will be effective. To enable Frame Relay congestion management and to enter Frame Relay congestion management configuration mode, use the frame-relay congestion-management interface command.
Frame Relay Switching Guidelines
•
You must enable Frame Relay switching, using the frame-relay switching global command, before the threshold ecn command will be effective on switched PVCs.
•
You can configure separate queue thresholds for committed and excess traffic.
•
Configure the BECN threshold so that it is greater than or equal to zero and less than or equal to the BECN threshold. Configure the BECN threshold so that it is less than or equal to 100.
Examples
Frame Relay Switching Example
The following example shows how to configure a Be threshold of 0 and a Bc threshold of 20 percent on serial interface 1.
interface serial1encapsulation frame-relayframe-relay congestion-managementthreshold ecn be 0threshold ecn bc 20Frame Relay over MPLS Example
The following example shows a configuration of interface serial2/1 for a threshold of 50 percent.
interface Serial2/1bandwidth 50000service-policy output output-policyframe-relay congestion-managementthreshold ecn 50Related Commands
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2003, 2005-2006 Cisco Systems, Inc. All rights reserved.