FR QoS commands -- apply policy

Use apply policy to apply a QoS policy to an FR class.

Use undo apply policy to remove an applied QoS policy from an FR class.

Syntax

apply policy policy-name outbound

undo apply policy policy-name outbound

Default

No QoS policy is applied to an FR class.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

outbound: Applies a QoS policy to outgoing packets.

policy-name: Specifies a QoS policy by its name, a case-sensitive string of 1 to 31 characters.

Examples

# Apply a QoS policy to outgoing packets of FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] apply policy policy1 outbound

FR QoS commands -- cbs

Use cbs to set the CBS for an FR class.

Use undo cbs to delete the CBS setting of an FR class.

Syntax

cbs [ inbound | outbound ] committed-burst-size

undo cbs [ inbound | outbound ]

Default

The CBS for an FR class is 56000 bits.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

inbound: Sets the CBS for incoming packets. The inbound CBS takes effect only for FR traffic policing (FRTP).

outbound: Sets the CBS for outgoing packets. The outbound CBS takes effect only for FR traffic shaping (FRTS).

committed-burst-size: Sets the CBS in the range of 300 to 16000000 bits. The default is 56000 bits.

Usage guidelines

If you do not specify the inbound or outbound keyword, the set CBS takes effect on both incoming and outgoing packets.

Examples

# Set the CBS to 64000 bits for both incoming and outgoing packets of FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] cbs 64000

Related commands

cir

cir allow

ebs

FR QoS commands -- cir

Use cir to set the CIR for an FR class.

Use undo cir to restore the default.

Syntax

cir committed-information-rate

undo cir

Default

The CIR for an FR class is 56000 bps.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

committed-information-rate: Specifies the CIR in the range of 1000 to 45000000 bps.

Usage guidelines

The set CIR takes effect only on outgoing traffic and must be equal to or smaller than the outbound CIR ALLOW.

Examples

# Set the CIR to 32000 bps for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] cir 32000

Related commands

cbs

cir allow

ebs

FR QoS commands -- cir allow

Use cir allow to set the CIR ALLOW for an FR class.

Use undo cir allow to delete the CIR ALLOW setting of an FR class.

Syntax

cir allow [ inbound | outbound ] committed-information-rate

undo cir allow [ inbound | outbound ]

Default

The default CIR ALLOW varies by device model.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

inbound: Sets the CIR ALLOW for incoming packets. The inbound CBS ALLOW takes effect only for FRTP.

outbound: Sets the CIR ALLOW for outgoing packets. The outbound CBS ALLOW takes effect only for FRTS.

committed-information-rate: Specifies the CIR ALLOW in bps. The value range for this argument varies by device model.

Usage guidelines

The outbound CIR ALLOW must be greater than or equal to the CIR.

If you do not specify the inbound or outbound keyword, the set CIR ALLOW takes effect on both incoming and outgoing packets.

Examples

# Set the CIR ALLOW to 64000 bps for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] cir allow 64000

FR QoS commands -- cq

Use cq to apply a CQ list to an FR class.

Use undo cq to restore the default.

Syntax

cq cql cql-index

undo cq

Default

An FR class uses FIFO queuing.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

cql-index: Specifies a CQ list by its number in the range of 1 to 16.

Usage guidelines

If you execute this command multiple times for the same FR class, the most recent configuration takes effect. For more information about configuring a CQ list, see ACL and QoS Configuration Guide.

Examples

# Apply CQ list 10 to FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] cq cql 10

FR QoS commands -- display fr class-map

Use display fr class-map to display the associations between FR classes and interfaces (including subinterfaces and PVCs).

Syntax

display fr class-map [ fr-class class-name | interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

fr-class class-name: Specifies an FR class by its name, a case-sensitive string of 1 to 30 characters.

interface interface-type interface-number: Specifies an interface (main interface or subinterface) by its type and number. If you specify a main interface, the command displays the associations between the following elements:

· The FR class and the main interface.

· The FR classes and the subinterfaces on the main interface.

· The FR classes and the PVCs on the main interface.

· The FR classes and the PVCs on each subinterface.

If you specify a subinterface, the command displays the associations between the following elements:

· The FR class and the subinterface.

· The FR classes and the PVCs on the subinterface.

Usage guidelines

If you do not specify an FR class or an interface, the command displays all associations between FR classes and interfaces.

Examples

# Display the associations between Serial 2/1/1 and FR classes.

<Sysname> display fr class-map interface serial 2/1/1

Serial2/1/1

fr-class ts1

fr dlci 100

fr-class ts

Serial2/1/1.1

fr-class ts2

fr dlci 222

fr-class ts

# Display the associations between FR class ts and interfaces.

<Sysname> display fr class-map fr-class ts

Serial2/1/1

fr dlci 100

fr-class ts

Serial2/1/1.1

fr dlci 222

fr-class ts

Table 1 Command output

Field | Description
Serial2/1/1 fr-class ts1 | FR interface and the FR class associated with the FR interface.
fr dlci 100 fr-class ts | PVC on the FR interface and the FR class associated with the PVC.
Serial2/1/1.1 fr-class ts2 | FR subinterface and the FR class associated with the FR subinterface.
fr dlci 222 fr-class ts | PVC on the FR subinterface and the FR class associated with the PVC.

FR QoS commands -- ebs

Use ebs to set the EBS for an FR class.

Use undo ebs to delete the EBS setting of an FR class.

Syntax

ebs [ inbound | outbound ] excess-burst-size

undo ebs [ inbound | outbound ]

Default

The EBS for an FR class is 0 bits.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

inbound: Sets the EBS for incoming packets. The inbound EBS takes effect only for FRTP.

outbound: Sets the EBS for outgoing packets. The outbound EBS takes effect only for FRTS.

excess-burst-size: Specifies the EBS in the range of 0 to 16000000 bits.

Usage guidelines

If you do not specify the inbound or outbound keyword, the set EBS takes effect on both incoming and outgoing packets.

Examples

# Set the EBS to 32000 bits for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] ebs 32000

Related commands

cbs

cir

cir allow

FR QoS commands -- fifo queue-length

Use fifo queue-length to set the FIFO queue length for an FR class.

Use undo fifo queue-length to restore the default.

Syntax

fifo queue-length queue-length

undo fifo queue-length

Default

The FIFO queue length for an FR class is 75.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

queue-length: Specifies the maximum number of packets allowed in the FIFO queue, in the range of 1 to 1024.

Examples

# Set the FIFO queue length to 80 for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] fifo queue-length 80

FR QoS commands -- fr class

Use fr class to create an FR class and enter its view, or enter the view of an existing FR class.

Use undo fr class to delete an FR class.

Syntax

fr class class-name

undo fr class class-name

Default

No FR classes exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

class-name: Specifies the name of the FR class, a case-sensitive string of 1 to 30 characters.

Usage guidelines

For the FR class parameters to take effect, associate the FR class with an interface or PVC and enable FR QoS on the interface.

When an FR class is deleted, all associations between this FR class and interfaces are released.

Examples

# Create an FR class named test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1]

Related commands

fr-class

FR QoS commands -- fr de del

Use fr de del to apply a DE rule list to an FR PVC.

Use undo fr de del to remove a DE rule list from an FR PVC.

Syntax

fr de del list-number dlci dlci-number

undo fr de del list-number dlci dlci-number

Default

No DE rule list is applied to an FR PVC.

Views

FR interface view

MFR interface view

Predefined user roles

network-admin

mdc-admin

Parameters

list-number: Specifies a DE rule list by its number in the range of 1 to 10.

dlci-number: Specifies a FR PVC by its number in the range of 16 to 1007. The PVC can be on a main interface or on a subinterface of the main interface.

Usage guidelines

After a DE rule list is applied to an FR PVC, the DE bits of packets matching the DE rule list are set to 1.

Examples

# Apply DE rule list 3 to DLCI 100 of Serial 2/1/1.

<Sysname> system-view

[Sysname] interface Serial 2/1/1

[Sysname-Serial2/1/1] fr dlci 100

[Sysname-Serial2/1/1-fr-dlci-100] quit

[Sysname-Serial2/1/1] fr de del 3 dlci 100

[Sysname-Serial2/0] fr de del 3 dlci 100

Related commands

fr del inbound-interface

fr del protocol

FR QoS commands -- fr del inbound-interface

Use fr del inbound-interface to create a DE rule list and add an interface-based DE rule.

Use undo fr del inbound-interface to delete an interface-based DE rule from a DE rule list.

Syntax

fr del list-number inbound-interface interface-type interface-number

undo fr del list-number inbound-interface interface-type interface-number

Default

No DE rule lists exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

list-number: Specifies a DE rule list number in the range of 1 to 10.

interface-type interface-number: Specifies an interface by its type and number.

Usage guidelines

This command sets the DE bits of packets that are received on the specified interface to 1.

You can add a maximum of 100 rules for a DE rule list.

When the last DE rule in a DE rule list is deleted, the DE rule list is also deleted.

Examples

# Add a rule to DE rule list 1. The rule sets the DE bits of incoming packets on Serial 2/1/1 to 1.

<Sysname> system-view

[Sysname] fr del 1 inbound-interface serial 2/1/1

Related commands

fr de del

fr del protocol

FR QoS commands -- fr del protocol

Use fr del protocol ip to create a DE rule list and add an IP protocol-based DE rule.

Use undo fr del protocol ip to delete an IP protocol-based DE rule from a DE rule list.

Syntax

fr del list-number protocol ip [ acl acl-number | fragments | greater-than min-number | less-than max-number | tcp-port tcpport-number | udp-port udpport-number ]

undo fr del list-number protocol ip [ fragments | acl acl-number | less-than bytes | greater-than min-number | less-than max-number | tcp-port tcpport-number | udp-port udpport-number ]

Default

No DE rule lists exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

list-number: Specifies a DE rule list number in the range of 1 to 10.

acl acl-number: Specifies the IP packets matching the ACL specified by its number in the range of 2000 to 3999.

fragments: Specifies all fragmented IP packets.

greater-than min-number: Specifies the IP packets that are greater than the specified number of bytes. The value range for the min-number argument is 0 to 65535.

less-than max-number: Specifies the IP packets that smaller than the specified number of bytes. The value range for the max-number argument is 0 to 65535.

tcp-port tcpport-number: Specifies the IP packets with the specified source or destination TCP port number. The value range for the tcpport-number argument is 0 to 65535. The tcpport-number argument can be either an upper-layer application name or the associated port number.

Table 2 Application names and TCP port numbers

Application name | TCP port number
bgp | 179
chargen | 19
cmd | 514
daytime | 13
discard | 9
domain | 53
echo | 7
exec | 512
finger | 79
ftp | 21
ftp-data | 20
gopher | 70
hostname | 101
ident | 113
irc | 194
klogin | 543
kshell | 544
login | 513
lpd | 515
nntp | 119
pop2 | 109
pop3 | 110
smtp | 25
sunrpc | 111
tacacs | 49
talk | 517
telnet | 23
time | 37
uucp | 540
whois | 43
www | 80

udp-port udpport-number: Specifies the IP packets with the specified source or destination UDP port number. The value range for the udpport-number argument is 0 to 65535. The udpport-number argument can be either an upper-layer application name or the associated port number.

Table 3 Application names and UDP port numbers

Application name | UDP port number
biff | 512
bootpc | 68
bootps | 67
discard | 9
dnsix | 195
domain | 53
echo | 7
mobile-ip | 434
nameserver | 42
netbios-dgm | 138
netbios-ns | 137
ntp | 123
rip | 520
snmp | 161
snmptrap | 162
sunrpc | 111
syslog | 514
tacacs | 49
talk | 517
tftp | 69
time | 37
who | 513
xdmcp | 177

Usage guidelines

If you do not specify any parameters, this command applies to all IP packets.

To add more IP-protocol-based DE rules to a DE rule list, repeat this command. A DE rule list can contain both interface-based DE rules and IP-protocol-based DE rules.

When the last DE rule in a DE rule list is deleted, the DE rule list is also deleted.

Examples

# Add a rule to DE rule list 1 that sets the DE bits of all IP packets to 1.

<Sysname> system-view

[Sysname] fr del 1 protocol ip

Related commands

fr de del

fr del inbound-interface

FR QoS commands -- fr pvc-pq

Use fr pvc-pq to enable PVC PQ on an interface.

Use undo fr pvc-pq to restore the default.

Syntax

fr pvc-pq [ top-limit middle-limit normal-limit bottom-limit ]

undo fr pvc-pq

Default

An interface uses FIFO queuing.

Views

FR interface view

MFR interface view

Predefined user roles

network-admin

mdc-admin

Parameters

high-limit: Specifies the top queue length in the range of 1 to 1024 packets. The default is 20 packets.

middle-limit: Specifies the middle queue length in the range of 1 to 1024 packets. The default is 40 packets.

normal-limit: Specifies the normal queue length in the range of 1 to 1024 packets. The default is 60 packets.

bottom-limit: Specifies the bottom queue length in the range of 1 to 1024 packets. The default is 80 packets.

Usage guidelines

If you execute this command multiple times on an interface, the most recent configuration takes effect.

To enable PVC PQ on an interface, you must first enable FRTS on the interface.

Examples

# Enable PVC PQ on Serial 0/0/5.

<Sysname> system-view

[Sysname] interface serial 0/0/5

[Sysname-Serial0/0/5] fr pvc-pq 30 50 70 90

Related commands

fr traffic-shaping

FR QoS commands -- fr traffic-policing

Use fr traffic-policing to enable FRTP.

Use undo fr traffic-policing to disable FRTP.

Syntax

fr traffic-policing

undo fr traffic-policing

Default

FRTP is disabled.

Views

FR interface view

MFR interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

FRTP is applicable only to the ingress interfaces on the DCE of an FR network.

Examples

# Enable FRTP on Serial 2/1/1.

<Sysname> system-view

[Sysname] interface Serial 2/1/1

[Sysname-Serial2/1/1] fr traffic-policing

Related commands

fr class

FR QoS commands -- fr traffic-shaping

Use fr traffic-shaping to enable FRTS.

Use undo fr traffic-shaping to disable FRTS.

Syntax

fr traffic-shaping

undo fr traffic-shaping

Default

FRTS is disabled.

Views

FR interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

FRTS is applied to the outgoing interfaces and is typically used on the DTEs of an FR network.

FRTS cannot be enabled on an FR interface when fragmentation is enabled on the interface.

Examples

# Enable FRTS on Serial 2/1/1.

<Sysname> system-view

[Sysname] interface serial 2/1/1

[Sysname-Serial2/1/1] fr traffic-shaping

FR QoS commands -- fragment enable

Use fragment enable to enable end-to-end FRF.12 fragmentation for an FR class.

Use undo fragment enable to disable end-to-end FRF.12 fragmentation for an FR class.

Syntax

fragment enable

undo fragment enable

Default

End-to-end FRF.12 fragmentation is disabled for an FR class.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

This command enables end-to-end FRF.12 fragmentation on all PVCs associated with an FR class or PVCs of all interfaces associated with an FR class.

Examples

# Enable Frame Relay FRF.12 fragmentation for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] fragment enable

FR QoS commands -- fragment size

Use fragment size to set the fragment size allowed for an FR class.

Use undo fragment size to restore the default.

Syntax

fragment size size

undo fragment size

Default

The fragment size allowed for an FR class is 45 bytes.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

size: Specifies the fragment size in the range 16 to 1600 bytes.

Examples

# Set the fragment size to 128 bytes for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] fragment size 128

FR QoS commands -- fr-class

Use fr-class to associate an FR class with an FR interface or FR PVC.

Use undo fr-class to cancel the association.

Syntax

fr-class class-name

undo fr-class class-name

Default

An FR class is not associated with any FR interface or FR PVC.

Views

FR interface (main interface or subinterface) view

FR PVC view

Predefined user roles

network-admin

mdc-admin

Parameters

class-name: Specifies an FR class by its name, a case-sensitive string of 1 to 30 characters. The FC class must already exist.

Usage guidelines

For an interface associated with an FR class, all PVCs on the interface inherit the FR QoS parameters in the FR class.

Examples

# Associate FR class test1 with an FR PVC with DLCI 200.

<Sysname> system-view

[Sysname] interface serial 2/1/1

[Sysname-Serial2/1/1] fr dlci 200

[Sysname-Serial2/1/1-fr-dlci-200] fr-class test1

Related commands

fr class

FR QoS commands -- pq

Use pq to apply a PQ list to an FR class.

Use undo pq to restore the default.

Syntax

pq pql pql-index

undo pq

Default

An FR class uses FIFO queuing.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

pql-index: Specifies a PQ list by its number in the range of 1 to 16.

Usage guidelines

If you execute this command multiple times for the same FR class, the most recent configuration takes effect. For more information about configuring a PQ list, see ACL and QoS Configuration Guide.

Examples

# Apply PQ list 10 to FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] pq pql 10

FR QoS commands -- pvc-pq

Use pvc-pq to assign packets from an FR class to a PVC PQ queue.

Use undo pvc-pq to restore the default.

Syntax

pvc-pq { bottom | middle | normal | top }

undo pvc-pq

Default

Packets from an FR class are assigned to the normal queue.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

bottom: Specifies the bottom queue.

middle: Specifies the middle queue.

normal: Specifies the normal queue.

top: Specifies the top queue.

Usage guidelines

If you execute this command multiple times for the same FR class, the most recent configuration takes effect.

PVC PQ has four queues: top queue, middle queue, normal queue, and bottom queue, which are in descending priority order.

Examples

# Assign packets from FR class test1 to the top queue of PVC PQ.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] pvc-pq top

Related commands

fr pvc-pq

FR QoS commands -- rtpq

Use rtpq to configure RTPQ for RTP packets destined to specific UDP ports in an FR class.

Use undo rtpq to restore the default.

Syntax

rtpq start-port first-rtp-port-number end-port last-rtp-port-number bandwidth bandwidth [ cbs committed-burst-size ]

undo rtpq

Default

RTPQ is not configured in an FR class.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

start-port first-rtp-port-numbe r: Specifies the start UDP port number in the range of 2000 to 65535.

end-port last-rtp-port-numbe r: Specifies the end UDP port number in the range of 2000 to 65535. The end UDP port number must be greater than the start UDP port number.

bandwidth bandwidth: Specifies the maximum bandwidth allowed for the RTP priority queue, in the range of 8 to 1000000 kbps.

cbs committed-burst-size: Specifies the CBS in the range of 1500 to 2000000 bytes. The default is 25 x bandwidth.

Usage guidelines

If you execute this command multiple times for the same FR class, the most recent configuration takes effect.

RTPQ can coexist with one other queuing mechanism. Packets that do not use the specified destination UDP ports are scheduled by using the other queuing mechanism.

Examples

# Enable RTPQ for RTP packets with destination UDP port numbers 16383 and 16384 in FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] rtpq start-port 16383 end-port 16384 bandwidth 20

FR QoS commands -- traffic-shaping adaptation

Use traffic-shaping adaptation to enable FRTS adaptation for an FR class.

Use undo traffic-shaping adaptation to disable FRTS adaptation for an FR class.

Syntax

traffic-shaping adaptation { becn | interface-congestion number }

undo traffic-shaping adaptation { becn | interface-congestion }

Default

FRTS adaptation is disabled for an FR class.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

becn: Adjusts the traffic rate in response to BECNs.

interface-congestion number: Adjusts the traffic rate in response to the number of packets in the output queue on the interface. The value range for the number argument is 1 to 40.

Usage guidelines

For BECN-based adaptation, the router reduces the transmission rates of all FRTS-enabled PVCs associated with the FR class when it receives packets with the BECN bit set. When the router does not receive packets with the BECN bit set within 125 milliseconds, it increases the transmission rates of those PVCs.

For interface congestion-based adaptation, the router reduces the transmission rates of all FRTS-enabled PVCs associated with the FR class when the number of packets in the output queue reaches the threshold. When the number of packets drops below the threshold, the router increases the transmission rates of those PVCs.

Examples

# Enable FRTS adaptation to adjust the traffic rate in response to BECNs.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] traffic-shaping adaptation becn

Related commands

fr traffic-shaping

FR QoS commands -- traffic-shaping adaptation percentage

Use traffic-shaping adaptation percentage to set the rate adjustment percentage for FRTS adaptation.

Use undo traffic-shaping adaptation percentage to restore the default.

Syntax

traffic-shaping adaptation percentage number

undo traffic-shaping adaptation percentage

Default

The rate adjustment percentage for FRTS adaptation is 25%.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies the rate adjustment percentage, in the range of 1 to 30.

Usage guidelines

When rate adjustment is triggered, the router reduces or increases the traffic rate by the set percentage of the current rate. The adjusted rate must be between the CIR and the CIR ALLOW. For example, the current rate is 3000 bps, the rate adjustment percentage is 20%, and the CIR is 2500 bps. The rate is reduced to 2400 bps (3000 – 3000 x 20%). Because the adjusted rate cannot be lower than the CIR, the adjusted rate should be 2500 bps.

Examples

# Set the rate adjustment percentage to 20%.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] traffic-shaping adaptation 20

Related commands

fr traffic-shaping

FR QoS commands -- wfq

Use wfq to configure WFQ for an FR class.

Use undo wfq to restore the default.

Syntax

wfq [ discard-threshold [ dynamic-queues ] ]

undo wfq

Default

An FR class uses FIFO queuing.

Views

FR class view

Predefined user roles

network-admin

mdc-admin

Parameters

discard-threshold: Specifies the maximum number of packets that a WFQ queue can hold. The value range for this argument is 1 to 1024, and the default is 64. If the number of packets exceeds the threshold, the newly arriving packets are dropped.

dynamic-queues: Specifies the number of WFQ queues. The value can be 16, 32, 64, 128, 256, 512, 1024, 2048, or 4096. The default value is 256.

Examples

# Configure WFQ for FR class test1.

<Sysname> system-view

[Sysname] fr class test1

[Sysname-fr-class-test1] wfq 128 512