Per VC Frame Relay QoS
QoS parameters can be set on Frame Relay interfaces or subinterfaces using MQC commands. The disadvantage is that the policy applies to all the traffic of the interface, and not per virtual circuit (DLCI). For this purpose, the concept of Frame Relay map-classes was developed. A map-class contains configuration information that can be applied both per interface and per DLCI.
Defining a Frame Relay map-class
To define a map-class, use:
Inside the map class you can define several QoS parameters that will be applied with the class.
Queuing – FIFO, WFQ, CQ, PQ, PIPQ
The default Queuing method is FIFO, but it can be changed using one of the following:
There is also the option of frame-relay PVC Interface Priority (PIPQ). This means that you assign each DLCI to a Strict Priority Queue, that works similar to PQ. The DLCIs will be served in the order that results from their assignment to one of the priority queues (high>medium>normal>low). By default, all DLCIs go to the normal priority queue. This configuration is only useful when you have different types of traffic on each DLCI. To configure PIPQ, first define the priority inside the map-class:
Then, configure the interface for PIPQ:
When you assign the map class to the interface, or to a DLCI, they will be served based on the priority assigned to each DLCI. Map-class inheritance still works!
Traffic Shaping and Policing
For information about CIR, Bc, Be and Tc, read about Token Bucket. The token bucket parameters can be configured using the following commands. Pay attention to the differences between the measurement units of MQC Traffic Shaping and FR Traffic Shaping. In MQC, Bc and Be were configured in Bytes. In FR, Bc and Be are configured in bits. Traffic Shaping uses the values for Outgoing, while policing uses the values for incoming. Also note that if shaping or policing is enabled but no map-class is set, default values for CIR, Bc, Be and Tc are used.
The value for Tc is only used when CIR is 0. Otherwise, Tc=Bc/CIR
Another method of specifying the values for CIR, Bc and Be is by entering both PIR and CIR. However, this will only be used to compute the values for CIR, Bc and Be that are used for traffic shaping.
Enabling Traffic Shaping
The size of the shaping queue can be set using:
Just applying this Frame Relay class will not be enough to enable Traffic Shaping. Additionally, you will have to enable traffic shaping per interface with:
To verify traffic-shaping parameters used on an PVC, use:
Traffic shaping can be also be monitored using:
Enabling Traffic Policing
Policing only works for incoming traffic and will use the in values of CIR, Bc and Be. You must enable traffic policing on the physical interface before the feature is used:
Adaptive Traffic Shaping
Adaptive Traffic Shaping is a method of shaping the traffic to a rate that adapts to network conditions. When a congestion notification is received (BECN or Foresight), the CIR is decreased gradually until it reaches MINCIR value. To set the MINCIR value, use:
To enable adaptive shaping in response to BECN or FORESIGHT, use:
Another way to enable Adaptive Shaping is to set an interface congestion threshold. Once the Queue Depth is passed that threshold, the interface is considered congested, and the class-maps will start to decrease CIR down to MINCIR. To enable this functionality, use:
When adaptive shaping is on, you can also enable reflection of FECNs as BECNs using:
Also, remember to enable Frame Relay Traffic Shaping on the physical interface:
Congestion Management – Drop DE, mark ECN
When a certain congestion threshold is reached (percentage of Queue LIMIT), you can configure the router to drop packets marked with the DE bit or to mark them with ECN bits – which translates in generating FECNs.
To configure the Queue LIMIT, use:
Apart from this per-VC method, you can also configure a Congestion management mechanism that applies to the entire interface. See Interface Based Congestion Management
Fragmentation
To enable fragmentation on a VC, use:
IP RTP Priority
To enable IP RTP Priority, use:
Frame Relay Traffic Shaping (FRTS) and Frame Relay Fragmentation (FRF.12) must be configured in order for Frame Relay IP RTP Priority to work For details, see IP RTP Priority
Applying an MQC Policy
To use an MQC service policy for a specific DLCI, use it in a map-class:
Applying a map-class
Physical interface
A map-class applied on the physical interface will be applied to all PVCs of the Physical interface and any of its subinterfaces:
For some functions of a class map you also have to explicitly enable their usage on the physical interface:
These commands can only be ran on physical interfaces.
Subinterface
A map-class applied on a subinterface will be applied to all PVCs of the subinterface and will override the settings of the map-class defined on the physical interface. To configure it, use:
Per VC (DLCI)
A map-class applied on a DLCI will be applied only to that DLCI and will override the settings of the map-class defined on the physical interface or on its subinterface. To configure it, first enter the DLCI configuration mode with any of the following commands:
Then apply the map class, with:
Monitoring
You can monitor the QoS settings applied on each pvc by running the command:
When a map-class is applied on an interface or DLCI, this command will display additional information regarding the frame-relay QoS settings that apply.
Last updated