Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
Page 3
Preface The H3C SR6600 documentation set includes 13 command references, which describe the commands and command syntax options available for the H3C SR6600 Routers. The ACL and QoS Command Reference describes the QoS configuration commands. This preface includes: Audience •...
Page 4
An alert that calls attention to essential information. IMPORTANT An alert that contains additional or supplementary information. NOTE An alert that provides helpful information. About the H3C SR6600 documentation set The H3C SR6600 documentation set includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
Page 5
Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support & Documents > Technical Documents] –...
ACL configuration commands Syntax acl number acl-number [ name acl-name ] [ match-order { auto | config } ] undo acl { all | name acl-name | number acl-number } View System view Default level 2: System level Parameters number acl-number: Specifies the number of an IPv4 access control list (ACL): •...
ACL acceleration uses memory. To achieve the best trade-off between memory and ACL processing performance, H3C recommends you enable ACL acceleration for large ACLs. For example, when you use a large ACL for a session-based service, such as NAT or ASPF, you can enable ACL acceleration to avoid session timeouts caused by ACL processing delays.
acl copy Syntax acl copy { source-acl-number | name source-acl-name } to { dest-acl-number | name dest-acl-name } View System view Default level 2: System level Parameters source-acl-number: Specifies a source IPv4 ACL that already exists by its number: 2000 to 2999 for IPv4 basic ACLs •...
Default level 2: System level Parameters number acl6-number: Specifies the number of an IPv6 ACL: 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs • name acl6-name: Assigns a name for the IPv6 ACL for easy identification. The acl6-name argument takes a case insensitive string of 1 to 63 characters.
Default level 2: System level Parameters source-acl6-number: Specifies a source IPv6 ACL that already exists by its number: 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs • name source-acl6-name: Specifies a source IPv6 ACL that already exists by its name. The source-acl6-name argument takes a case insensitive string of 1 to 63 characters.
Examples # Enter the view of IPv6 ACL flow. <Sysname> system-view [Sysname] acl ipv6 name flow [Sysname-acl6-basic-2001-flow] acl name Syntax acl name acl-name View System view Default level 2: System level Parameters acl-name: Specifies the name of an existing IPv4 ACL, which is a case insensitive string of 1 to 63 characters.
By default, an ACL has no ACL description. Related commands: display acl and display acl ipv6. Examples # Configure a description for IPv4 basic ACL 2000. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] description This is an IPv4 basic ACL. # Configure a description for IPv6 basic ACL 2000.
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display acl command to display configuration and match statistics for the specified or all IPv4 ACLs. This command displays ACL rules in config or depth-first order, whichever is configured. Examples # Display the configuration and match statistics for all IPv4 ACLs.
Page 18
View Any view Default level 1: Monitor level Parameters acl-number: Specifies an IPv4 ACL number: 2000 to 2999 for IPv4 basic ACL • • 3000 to 3999 for IPv4 advanced ACL all: Displays ACL acceleration status information for all IPv4 ACLs. |: Filters command output by specifying a regular expression.
Field Description Whether ACL acceleration is using up to date criteria for rule matching: • UTD—The ACL criteria are up to date and have not changed since ACL acceleration was enabled. Status • OOD—The ACL criteria are out of date. This state is displayed, if you have modified the ACL after ACL acceleration was enabled.
This command displays ACL rules in config or depth-first order, whichever is configured. Examples # Display the configuration and match statistics for all IPv6 ACLs. <Sysname> display acl ipv6 all Basic IPv6 ACL 2000, named flow, 3 rules, ACL's step is 5 rule 0 permit rule 5 permit source 1::/64 rule 10 permit source 1::1/128 (2 times matched)
Page 21
Parameters slot slot-number: Displays the usage of ACL rules on a card. The slot-number argument specifies the slot number of the card. If no slot number is specified, the usage of ACL rules on the main board is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Table 4 Output description Field Description Interface Interface type and number Resource type, which be one of the following value: • VFP ACL—ACL rules for QinQ before Layer 2 forwarding • IFP ACL—ACL rules applied to inbound traffic • IFP Meter—Traffic policing rules for inbound traffic Type •...
<Sysname> display time-range t4 Current time is 17:12:34 4/13/2010 Tuesday Time-range : t4 ( Inactive ) 10:00 to 12:00 Mon 14:00 to 16:00 Wed from 00:00 1/1/2010 to 23:59 1/31/2010 from 00:00 6/1/2010 to 23:59 6/30/2010 Table 5 Output description Field Description Current time...
reset acl ipv6 counter Syntax reset acl ipv6 counter { acl6-number | all | name acl6-name } View User view Default level 2: System level Parameters acl6-number: Specifies an IPv6 ACL by its number: 2000 to 2999 for IPv6 basic ACLs •...
deny: Denies matching packets. permit: Allows matching packets to pass. cos vlan-pri: Matches an 802.1p priority. The vlan-pri argument can be a number in the range 0 to 7, or in words, best-effort (0), background (1), spare (2), excellent-effort (3), controlled-load (4), video (5), voice (6), or network-management (7).
Page 27
Parameters Function Description The tos argument can be a number in the range 0 to 15, or in words, max-reliability (2), tos tos Specifies a ToS preference max-throughput (4), min-delay (8), min-monetary-cost (1), or normal (0). The dscp argument can be a number in the range 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp...
Page 28
Parameters Function Description The port1 and port2 arguments are TCP or UDP port numbers in the range 0 to 65535. port2 is needed only when the operator argument is range. TCP port numbers can be represented in these words: chargen (19), bgp (179), cmd (514), daytime (13), discard (9), domain (53), echo (7), exec (512), finger (79), ftp (21), ftp-data (20), gopher (70), hostname (101), irc (194), klogin (543), kshell (544), login...
Page 29
ICMP message name ICMP message type ICMP message code echo-reply fragmentneed-DFset host-redirect host-tos-redirect host-unreachable information-reply information-request net-redirect net-tos-redirect net-unreachable parameter-problem port-unreachable protocol-unreachable reassembly-timeout source-quench source-route-failed timestamp-reply timestamp-request ttl-exceeded Description Use the rule command to create or edit an IPv4 advanced ACL rule. You can edit ACL rules only when the match order is config.
Related commands: acl, display acl, and step. Examples # Create a rule in IPv4 basic ACL 2000 to deny packets sourced from 1.1.1.1/32. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 1.1.1.1 0 rule (IPv6 advanced ACL view) Syntax rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value | syn syn-value | urg urg-value } * | established } | counting | destination { dest dest-prefix |...
Page 32
Parameters Function Description The dest and dest-prefix arguments represent a destination IPv6 address, and prefix length that destination { dest Specifies a destination IPv6 ranges from 1 to 128. dest-prefix | address dest/dest-prefix | any } The any keyword specifies any IPv6 destination address.
Page 33
Parameters Function Description The port1 and port2 arguments are TCP or UDP port numbers in the range 0 to 65535. port2 is needed only when the operator argument is range. TCP port numbers can be represented in these words: chargen (19), bgp (179), cmd (514), daytime (13), discard (9), domain (53), echo (7), exec (512), finger (79), ftp (21), ftp-data (20), gopher (70), hostname (101), irc (194),...
Page 34
Table 13 ICMPv6 message names supported in IPv6 advanced ACL rules ICMPv6 message name ICMPv6 message type ICMPv6 message code echo-reply echo-request err-Header-field frag-time-exceeded hop-limit-exceeded host-admin-prohib host-unreachable neighbor-advertisement neighbor-solicitation network-unreachable packet-too-big port-unreachable redirect router-advertisement router-solicitation unknown-ipv6-opt unknown-next-hdr Description Use the rule command to create or edit an IPv6 advanced ACL rule. You can edit ACL rules only when the match order is config.
Default level 2: System level Parameters step-value: ACL rule numbering step, which ranges from 1 to 20. Description Use the step command to set a rule numbering step for an ACL. The rule numbering step sets the increment by which the system numbers rules automatically. For example, the default ACL rule numbering step is 5.
Page 38
days: Specifies the day or days of the week (in words or digits) on which the periodic statement is valid. If you specify multiple values, separate each value with a space, and make sure that they do not overlap. These values can take one of the following forms: •...
Page 39
<Sysname> system-view [Sysname] time-range t1 8:0 to 18:0 working-day # Create an absolute time range t2, setting it to be active in the whole year of 2010. <Sysname> system-view [Sysname] time-range t2 from 0:0 1/1/2010 to 23:59 12/31/2010 # Create a compound time range t3, setting it to be active from 08:00 to 12:00 on Saturdays and Sundays of the year 2010.
Table 14 Output description Field Description Classifier Class name and its match criteria The match operator you set for the class. If the operator is AND, the class matches the packets that Operator match all its match criteria. If the operator is OR, the class matches the packets that match any of its match criteria.
Page 42
Keyword and argument combination Description Matches a QoS class; The tcl-name argument is the classifier tcl-name name of the class. This keyword is not available on an SAP interface card working in bridge mode. Matches DSCP values. The dscp-list argument is a list dscp dscp-list of up to 8 DSCP values.
Page 43
NOTE: The match criteria listed below must be unique in a class that uses the AND operator. To ensure that the class can be successfully applied to interfaces, avoid defining multiple if-match clauses for these match 8021p-list criteria or inputting multiple values for any of the list arguments, such as the argument.
Page 44
Defining a criterion to match a source MAC address You can configure multiple source MAC address match criteria for a class. A criterion to match a source MAC address is significant only to Ethernet interfaces. Defining the relationships between match criteria This subsection describes how to use both AND and OR operators to define the match relationships between the criteria for a class.
Page 45
You can configure up to eight IP precedence values in one command line. If the same IP precedence • is specified multiple times, the system considers them as one. If a packet matches one of the defined IP precedence values, it matches the if-match clause. •...
Page 46
[Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3 # Define a match criterion for class class2 to match the packets with the source MAC address 0050-ba27-bed2. <Sysname> system-view [Sysname] traffic classifier class2 [Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2 # Define a match criterion for class class1 to match the packets with the customer network 802.1p priority value 3.
[Sysname] traffic classifier class2 [Sysname-classifier-class2] if-match classifier class1 [Sysname-classifier-class2] if-match destination-address mac 0050-BA27-BED3 # Define a match criterion for class class1 to match the packets with a DSCP value of 1, 6 or 9. <Sysname> system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match dscp 1 6 9 # Define a match criterion for class class1 to match the packets received on interface GigabitEthernet 1/0/1.
View System view Default level 2: System level Parameters tcl-name: Specifies a class name, a string of 1 to 31 characters. operator: Sets the operator to logic AND or OR for the class. and: Specifies the logic AND operator. The class matches the packets that match all its criteria. or: Specifies the logic OR operator.
Description Use the accounting command to configure the traffic accounting action in the traffic behavior. By referencing the traffic behavior in a QoS policy, you can achieve class-based accounting, with which statistics are collected on a per-traffic class basis. For example, you can define the action to collect statistics for traffic sourced from a certain IP address.
Page 50
action: Sets the action to take on the packet: • discard—Drops the packet. pass—Permits the packet to pass through. • remark-dot1p-pass new-cos—Sets the 802.1p priority value of the 802.1p packet to new-cos and • permits the packet to pass through. The new-cos argument ranges from 0 to 7. •...
Action: discard Expedited Forwarding: Bandwidth 50 (Kbps) CBS 1500 (Bytes) User Defined Behavior Information: Behavior: database Redirect enable: Redirect type: next-hop Redirect destination: 1.1.1.1 Table 16 Output description Field Description User Defined Behavior Information User-defined behavior information Behavior Name of a behavior Assured Forwarding Information about an assured forwarding (AF) queue General Traffic Shape...
Description Use the filter command to configure a traffic filtering action in a traffic behavior. Use the undo filter command to delete the traffic filtering action. Examples # Configure the traffic filtering action as deny in traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] filter deny Syntax...
Examples # Configure a GTS action in absolute value in traffic behavior database. The GTS parameters are as follows: CIR is 200 kbps, CBS is 50000 bytes, EBS is 0, and the maximum buffer queue length is 100. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] gts cir 200 cbs 50000 ebs 0 queue-length 100 redirect...
remark dot1p Syntax remark dot1p 8021p undo remark dot1p View Traffic behavior view Default level 2: System level Parameters 8021p: 802.1p priority to be marked for packets, which ranges from 0 to 7. Description Use the remark dot1p command to configure an 802.1p priority marking action. Use the undo remark dot1p command to delete the action.
Keyword DSCP value (binary) DSCP value (decimal) 110000 111000 101110 Description Use the remark dscp command to configure a DSCP marking action. Use the undo remark dscp command to delete the action. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure traffic behavior database to mark matching traffic with DSCP 6.
undo remark local-precedence View Traffic behavior view Default level 2: System level Parameters local-precedence: Sets the local precedence to be marked for packets, which ranges from 0 to 7. Description Use the remark local-precedence command to configure a local precedence marking action. Use the undo remark local-precedence command to delete the action.
[Sysname] traffic behavior database [Sysname-behavior-database] remark qos-local-id 2 traffic behavior Syntax traffic behavior behavior-name undo traffic behavior behavior-name View System view Default level 2: System level Parameters behavior-name: Sets a behavior name, a string of 1 to 31 characters. The specified behavior-name must not be a system-defined traffic behavior name like ef, af, be, and be-flow-based.
Description Use the traffic-policy command to reference a policy in a traffic behavior. By associating the traffic behavior with a class in another policy, you perform policy nesting. The referenced policy is the child policy and the referencing policy is the parent policy. Use the undo traffic-policy command to remove the child policy from the behavior.
View Policy view Default level 2: System level Parameters tcl-name: Class name, a string of 1 to 31 characters. behavior-name: Behavior name, a string of 1 to 31 characters. Description Use the classifier behavior command to associate a behavior with a class in a QoS policy. Use the undo classifier command to remove a class from the policy.
Page 62
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display qos policy command to display system-defined or user-defined QoS policy configuration information.
Field Description Class name A policy can contain multiple classes, and each class is associated with a traffic behavior. A class can be Classifier configured with multiple match criteria. For more information, see the traffic classifier command in “Class configuration commands.”...
Page 64
If a VT interface is specified, this command displays information about the QoS policy or policies applied to each VA interface inheriting the VT interface, but does not display QoS information about the VT interface. Examples # Display information about the QoS policy or policies applied to GigabitEthernet 1/0/1. <Sysname>...
Page 66
outbound: Displays information about the QoS policy applied to the outbound direction of the specified VLAN. slot slot-number: Displays the VLAN QoS policy information of the card specified by the slot number. This keyword-argument combination is available only on a distributed router. |: Filters command output by specifying a regular expression.
Accounting Enable 163 (Packets) 20864 (Bytes) Committed Access Rate: CIR 128 (kbps), CBS 8000 (byte), EBS 0 (byte) Red Action: discard Green : 12928(Bytes) Yellow: 7936(Bytes) : 43904(Bytes) Table 21 Output description Field Description Vlan ID of the VLAN where the QoS policy is applied The direction in which the QoS policy is applied for Direction the VLAN.
Page 68
Parameters inbound: Inbound direction. outbound: Outbound direction. policy-name: Specifies a policy name, a string of 1 to 31 characters. Description Use the qos apply policy command to apply a QoS policy. Use the undo qos apply policy command to remove the QoS policy. To successfully apply a policy to an interface/PVC, make sure that the total bandwidth assigned to AF and EF in the policy is smaller than the available bandwidth of the interface/PVC.
Parameters policy-name: Policy name, a string of 1 to 31 characters. The specified policy-name cannot be the name of the system-defined policy default. Description Use the qos policy command to create a policy and enter policy view. Use the undo qos policy command to delete a policy. To use the undo qos policy command to delete a policy that has been applied to a certain object, you must first remove it from the object.
Priority mapping configuration commands NOTE: The commands in this chapter are aivalable on only a SAP interface card working in bridge mode. Priority mapping table configuration commands display qos map-table Syntax display qos map-table [ dot1p-dp | dot1p-lp | dscp-dot1p| dot1p-exp | dscp-dp | dscp-dscp | exp-dot1p | exp-dp ] [ | { begin | exclude | include } regular-expression ] View Any view...
Page 73
If no priority mapping table is specified, this command displays the configuration information of all priority mapping tables. If no direction is specified, this command displays the priority mapping tables in any direction. Related commands: qos map-table. Examples # Display the configuration of the 802.1p-to-local priority mapping table. <Sysname>...
import Syntax import import-value-list export export-value undo import { import-value-list | all } View Priority mapping table view Default level 2: System level Parameters import-value-list: List of input values. export-value: Output value. all: Deletes all the mappings in the priority mapping table. Description Use the import command to configure a mapping from one or multiple input values to an output value.
Description Use the qos map-table command to enter the specified priority mapping table view. NOTE: The SR6600 router does not support mapping any DSCP value to drop precedence value 1. Related commands: display qos map-table. Examples # Enter the 802.1p-to-drop priority mapping table view.
The default port priority is 0. In Ethernet interface view, the setting takes effect on the current interface only. In port group view, the setting takes effect on all interfaces in the port group. Examples # Set the port priority of interface GigabitEthernet 1/0/1 to 2. <Sysname>...
Port priority trust type: dscp, Override: disable Table 23 Output description Field Description Interface Interface type and interface number. Port priority The port priority set for the interface. Priority trust mode on the interface, which can be Port priority trust type dot11e, dot1p, dscp, or untrust.
Traffic policing, GTS and line rate configuration commands Traffic policing configuration commands display qos car interface Syntax display qos car interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Page 81
cir committed-information-rate: Committed information rate (CIR) in kbps. cbs committed-burst-size: Committed burst size (CBS) in bytes, which specifies the size of bursty traffic when the actual average rate is not greater than CIR. By default, the CBS is the traffic transmitted at the rate of CIR withn 500 milliseconds.
<Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos car outbound carl 1 cir 200 cbs 50000 ebs 0 green pass red remark-prec-pass 0 qos carl Syntax qos carl carl-index { precedence precedence-value | mac mac-address | mpls-exp mpls-exp-value | dscp dscp-list | { destination-ip-address | source-ip-address } { subnet ip-address mask-length | range start-ip-address to end-ip-address } [ per-address [ shared-bandwidth ] ] } undo qos carl carl-index View...
Page 83
Using the command repeatedly with different CAR list indexes creates multiple CAR lists. Using the command repeatedly with the same carl-index modifies the parameters for the CAR list. You can configure up to eight precedence values for a CAR list. If the same precedence value is specified multiple times, the system considers them as one value by default.
[Sysname] carl source-ip-address range 1.1.2.100 1.1.2.199 per-address shared-bandwidth [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos car outbound carl 2 cir 5000 cbs 3125 ebs 31250 green pass red discard qos resequencing Syntax qos resequencing undo qos resequencing View Interface View Default level 2: System level Parameters None...
Page 85
View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description Queue The number of packets in the buffer Size Passed The number and bytes of the packets that have passed Discarded The number and bytes of dropped packets Delayed The number and bytes of delayed packets qos gts Syntax qos gts { any | acl acl-number } cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] [ queue-length queue-length ] ]...
NOTE: GTS for software forwarding does not support IPv6. Related commands: acl. Examples # Shape the packets matching ACL 2001 on GigabitEthernet 1/0/1. The GTS parameters are as follows: CIR is 200 kbps, CBS is 50000 bytes, EBS is 0, and the maximum buffer queue length is 100. <Sysname>...
Direction: Outbound CIR 10 (kbps), CBS 1875 (byte), EBS 0 (byte) Passed : 0/0 (Packets/Bytes) Delayed: 0/0 (Packets/Bytes) Table 27 Output description Field Description Interface Interface type and interface number The direction in which the line rate configuration is Direction applied: inbound or outbound Committed information rate (CIR) in kbps Committed burst size (CBS) in bytes, which specifies...
Page 89
Examples # Limit the rate of outgoing packets on GigabitEthernet 1/0/1, with CIR 20 kbps, CBS 2000 bytes, and EBS 0. <Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos lr outbound cir 20 cbs 2000 ebs 0...
Congestion management configuration commands FIFO queuing configuration commands qos fifo queue-length Syntax qos fifo queue-length queue-length undo qos fifo queue-length View Interface view, PVC view Default level 2: System level Parameters queue-length: Queue length threshold, which ranges from 1 to 1024. By default, the queue-length is 1024 for the GE interface of an SR6602 router or an FIP-200/FIP-210/SAP interface card, 1024 for the POS interface of an SR6602 router or an FIP-200/FIP-210 interface card, and 75 for any other interface.
Field Description Size Number of packets in a queue Queue length, which specifies the maximum number Length of packets a queue can hold Discards Number of dropped packets Top priority queue Middle Middle priority queue Normal Normal priority queue Bottom Bottom priority queue display qos pql Syntax...
qos pq Syntax qos pq pql pql-index undo qos pq View Interface view, PVC view Default level 2: System level Parameters pql: Specifies a PQ list. pql-index: PQ list index, which ranges from 1 to 16. Description Use the qos pq command to apply a PQ list to an interface. Use the undo qos pq command to restore the default.
Default level 2: System level Parameters pql-index: PQ list index, which ranges from 1 to 16. top, middle, normal, bottom: Corresponds to the four queues in PQ in the descending priority order. The default queue is the normal queue. Description Use the qos pql default-queue command to specify the default queue for packets matching no match criterion.
queue-key key-value Description IP packets smaller than a specified less-than Length (0 to 65535) value are enqueued. IP packets with a specified source Port number (0 to 65535) or destination TCP port number are enqueued. IP packets with a specified source Port number (0 to 65535) or destination UDP port number are enqueued.
40 for the middle queue • • 60 for the normal queue 80 for the bottom queue • Description Use the qos pql queue command to specify the length of a specified priority queue (the maximum number of packets that the priority queue can hold). Use the undo qos pql queue command to restore the default for a priority queue.
Description Use the display qos cql command to display the configuration of the specified or all custom queue lists. This command displays no default items. If no CQ list index is specified, this command displays the configuration of all CQ lists. Related commands: qos cq and qos cql.
queue queue-number: Specifies an custom queue by its number, which ranges from 1 to 16. ip [ queue-key key-value ]: Classifies and enqueues IP packets. The values for the queue-key argument and the key-value argument are displayed in Table 31. If neither the queue-key argument nor the key-value argument is specified, all IP packets are enqueued.
undo qos cql cql-index queue queue-number queue-length View System view Default level 2: System level Parameters cql-index: CQ list index, which ranges from 1 to 16. queue-number: Queue number, which ranges from 1 to 16. queue-length: Maximum queue length, which ranges from 1 to 1024. This argument is 20 by default. Description Use the qos cql queue command to specify the length of a custom queue, the maximum number of packets a custom queue can hold.
Hashed by IP Precedence Hashed queues: 0/0/128 (Active/Max active/Total) Table 32 Output description Field Description Interface Interface type and interface number Output queue Information about the current output queue Size Number of packets in the queue Length Queue length Discards Number of dropped packets Hashed by Weight type, which can be IP precedence or DSCP...
By default, the weight is based on IP precedence. CAUTION: You must enable the line rate function for the queuing function to take effect on these interfaces: tunnel interfaces, subinterfaces, Layer 3 aggregate interfaces, HDLC link bundle interfaces, RPR logical interfaces, and VT interfaces configured with PPPoE, PPPoA, or PPPoEoA encapsulation.
If no interface is specified, this command displays the CBQ configuration and operational information of all interfaces. If a VT interface is specified, this command displays QoS CBQ information of all VA interfaces inheriting the VT interface, but does not display QoS information about the VT interface. Examples # Display the CBQ configuration and operational information of all interfaces.
0 kbps applies. NOTE: H3C recommends that you configure the maximum available bandwidth to be smaller than the actual available bandwidth of a physical interface or logical link. On an MP-group interface or MFR interface configured with the qos max-bandwidth command, AF and EF perform queue bandwidth check and calculation based on the bandwidth specified with the qos max-bandwidth command.
Default level 2: System level Parameters pct percent: Specifies the percentage of available bandwidth to be reserved. It ranges from 1 to 100 and the default is 80. Description Use the qos reserved-bandwidth command to set the maximum reserved bandwidth as a percentage of available bandwidth of the interface.
The total percentage of the maximum available bandwidth assigned for AF and EF in a policy must • be no more than 100. • The bandwidth assigned to AF and EF in a policy must use the same form, either as an absolute bandwidth value or as a percentage.
After the queue ef bandwidth pct percentage [ cbs-ratio ratio ] command is used, CBS equals • (Interface available bandwidth × percentage × ratio)/100/1000. • After the queue ef bandwidth bandwidth [ cbs burst ] command is used, CBS equals burst. If the burst argument is not specified, CBS equals bandwidth×25.
undo queue-length queue-length View Traffic behavior view Default level 2: System level Parameters queue-length: Maximum queue length, which ranges from 1 to 512. The default is 64. Description Use the queue-length command to configure the maximum queue length and use tail drop. Use the undo queue-length command to delete the configuration.
Parameters ip-precedence: Uses the IP precedence value for calculating drop probability of a packet. This keyword is the default. Description Use the wred command to use WRED drop. Use the undo wred command to delete the configuration. You can configure this command only after you have configured the queue af command or the queue wfq command.
Removing the wred command configuration removes the wred dscp command configuration as well. The drop-related parameters are removed if the configuration set with the queue af command or the queue wfq command is removed. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Set the following parameters for packets with DSCP value 3: lower limit 20, upper limit 40, and drop probability denominator 15.
Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure the following parameters for packets with IP precedence 3: lower limit 20, upper limit 40, and drop probability denominator 15. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] queue wfq [Sysname-behavior-database] wred ip-precedence [Sysname-behavior-database] wred...
Field Description Discards Number of dropped packets qos rtpq Syntax qos rtpq start-port first-rtp-port-number end-port last-rtp-port-number bandwidth bandwidth [ cbs burst ] undo qos rtpq View Interface view, PVC view Default level 2: System level Parameters start-port first-rtp-port-number: First UDP port number, which ranges from 2000 to 65535. end-port last-rtp-port-number: Last UDP port number, which ranges from 2000 to 65535.
This feature can control the number of packets sent to such queues based on the number of tokens. H3C recommends that you set the token-number to 1 on an interface for FTP transmission. NOTE: After you configure this command on an interface, you must perform the shutdown command and then the undo shutdown command on the interface to have the feature take effect.
Packet information pre-extraction configuration command qos pre-classify Syntax qos pre-classify undo qos pre-classify View Tunnel interface view, RPR logical interface view, Layer 3 aggregate interface view, HDLC link bundle interface view Default level 2: System level Parameters None Description Use the qos pre-classify command to enable packet information pre-extraction on the interface. Use the undo qos pre-classify command to disable packet information pre-extraction on the interface.
Hardware congestion management configuration commands NOTE: The commands in this chapter are available on only a SAP interface card working in bridge mode. SP queuing configuration commands display qos sp Syntax display qos sp interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view...
Table 35 Output description Field Description Interface Interface type and interface number Output queue Pattern of the current output queue Strict-priority queue pattern2 SP queuing pattern 2 is used for queue scheduling qos sp Syntax qos sp undo qos sp View Interface view, port group view Default level...
Page 120
Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description Queue weight based on which queues are scheduled. Weight N/A indicates that the queue uses the SP queue scheduling algorithm. qos wrr Syntax qos wrr undo qos wrr View Interface view, port group view Default level 2: System level Parameters None Description...
Default level 2: System level Parameters queue-id: Specifies a queue by its ID, which ranges from 0 to n- 1 (n is the maximum number of queues on an interface and varies by router). sp: Specifies strict priority (SP) queuing. Description Use the qos wrr group sp command to assign a queue to the strict priority (SP) group on a WRR-enabled interface.
Use the undo qos wrr weight command to restore the default WRR queuing settings of a queue on an interface. With a WRR queue configured on an interface, WRR queuing is enabled on the interface, and other queues on the interface use the default WRR scheduling value and are assigned to the default WRR priority group.
Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Examples # Set the minimum guaranteed bandwidth to 100 kbps for queue 0 on GigabitEthernet 1/0/1. <Sysname>...
Parameters queue-id: Specifies a queue by its ID, which ranges from 0 to n- 1 (n is the maximum number of queues on an interface and varies by router). weight schedule-value: Specifies a scheduling weight for the specified queue in packet-based WFQ. The value range and default value of this argument depend on your router model.
Examples # Enable AF and set the minimum guaranteed bandwidth to 200 kbps in traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] queue af bandwidth 200 queue ef Syntax queue ef bandwidth bandwidth [ cbs burst ] undo queue ef View Traffic behavior view Default level...
View Traffic behavior view Default level 2: System level Parameters None Description Use the queue wfq command to configure WFQ in a traffic behavior. Use the undo queue wfq command to delete the configuration from a traffic behavior. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure WFQ in traffic behavior test.
1000 Table 38 Output description Field Description Interface Interface type and interface number Exponent WRED exponent for average queue length calculation Precedence IP precedence Random discard Number of packets randomly dropped Tail discard Number of packets dropped using tail drop Low limit Lower limit for a queue High limit...
qos wred ip-precedence Syntax qos wred ip-precedence ip-precedence low-limit low-limit high-limit high-limit discard-probability discard-prob undo qos wred ip-precedence ip-precedence View Interface view, PVC view Default level 2: System level Parameters ip-precedence precedence: IP precedence value, which ranges from 0 to 7. low limit low-limit: Specifies the lower WRED limit (in packets).
Page 134
View Interface view, PVC view Default level 2: System level Parameters exponent: Exponent for average queue length calculation, which ranges from 1 to 16. This argument is 9 by default. Description Use the qos wred weighting-constant command to configure the exponent for calculating the average queue length.
DAR configuration commands NOTE: The commands in this chapter are available on only the SR6602 routers. dar enable Syntax dar enable undo dar enable View Layer 3 Ethernet interface view Default level 2: System level Parameters None Description Use the dar enable command to enable DAR for traffic recognition on the current interface. Use the undo dar enable command to disable DAR on the current interface.
Parameters filename: P2P signature file name, which must be suffixed with .mtd. Description Use the dar p2p signature-file command to load the specified P2P signature file. Use the undo dar p2p signature-file command to unload the specified P2P signature file. By default, no P2P signature file exists in the system.
View Ethernet interface view Default level 2: System level Parameters None Description Use the dar protocol-statistic command to enable the packet accounting function of DAR. Use the undo dar protocol-statistic command to disable the packet accounting function of DAR. By default, the packet accounting function of DAR is disabled. With the packet accounting function of DAR, you can monitor the number of packets and the amount of data traffic of application protocols on each interface.
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display dar protocol-statistic command to display the DAR packet statistics. Examples # Display the packet statistics of all the protocols on all interfaces. <Sysname>...
Description Use the protocol command to add the specified protocol to the current protocol group. Use the undo protocol command to delete the specified protocol from the protocol group. By default, no protocol exists in a protocol group. Only the protocols included in the signature file can be added to a protocol group. If an existing protocol in the protocol group is not included in the signature file to be loaded, the protocol is removed from the protocol group automatically when the new signature file is loaded.
Page 141
Examples # Configure interface GigabitEthernet 1/0/1 to get the QoS-local ID by looking up routes based on source IP address. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] bgp-policy source ip-qos-map...
Parameters cql-index: CQ list index, in the range of 1 to 16. queue queue: Specifies a custom queue by its number, which is in the range of 0 to 16. exp-value-list: List of EXP values in the range of 0 to 7. You can enter up to eight EXP values for this argument.
Examples # Create a match criterion for MPLS-based PQ list 10 to assign MPLS packets with the EXP value 5 to the top queue. <Sysname> system-view [Sysname] qos pql 10 protocol mpls exp 5 queue top remark mpls-exp Syntax remark mpls-exp exp-value undo remark mpls-exp View Traffic behavior view...
FR QoS configuration commands FR QoS configuration commands Syntax cbs [ inbound | outbound ] committed-burst-size undo cbs [ inbound | outbound ] View FR class view Default level 2: System level Parameters inbound: Sets the CBS for the incoming packets. This argument is available when FR traffic policing is enabled on interfaces.
undo cir View FR class view Default level 2: System level Parameters committed-information-rate: Minimum CIR in bps, which ranges from 1000 to 45000000. The CIR is 56000 bps by default. Description Use the cir command to set CIR for FR PVCs. Use the undo cir command to restore the default.
committed-information-rate: CIR ALLOW in bps, which ranges from 1000 to 45000000. The CIR ALLOW is 56000 bps by default. Description Use the cir allow command to set the CIR ALLOW for FR PVCs. Use the undo cir allow command to restore the default. CIR ALLOW is the transmit rate that an FR PVC can provide when no congestion occurs to the network.
performed for packets of PVCs as follows: dropping the FR packets with the DE flag bit 1, and setting the BECN flag bits and FECN flag bits of FR packets to 1. Related commands: fr congestion-threshold. Examples # Create an FR class test1 and configure the FR network to drop FR packets with the DE flag bit 1 when the current PVC queue length uses more than 80% of the total PVC queue length.
Serial2/0/1.1 fr-class ts2 fr dlci Serial2/0/1 fr-class ts fr dlci 222 Serial2/0/1.1 fr-class ts Table 40 Output description Field Description Serial2/0/1 FR interface and the FR class corresponding to the FR interface fr-class ts1 Serial2/0/1.1 FR subinterface and the FR class corresponding to the FR subinterface fr-class ts2 fr dlci 100...
Page 150
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display fr fragment-info command to display the FR fragmentation information. Related commands: fragment.
Field Description Data-level Fragment size when voice service is not enabled Voice-level Fragment size when voice service is enabled Pre-fragment Number of packets to be fragmented Fragmented Number of fragmented packets Assembled Number of assembled fragments Dropped Number of dropped fragments Out-of-sequence pkts Number of out-of-sequence fragments Number of outgoing packets and bytes of outgoing...
Examples # Display the information about all the FR switching PVCs. <Sysname> display fr switch-table all Switch-Name Interface DLCI Interface DLCI State test MFR1/0 MFR1/1 Table 43 Output description Field Description Switch-Name Name of a switching PVC The first interface represents a local interface, and the Interface second interface represents a peer interface The first DLCI represents a local DLCI, and the second...
Page 153
Examples # Display the information about CBQ applied to DLCI 25 of MFR 1/0/0. <Sysname> display qos policy interface mfr 1/0/0 MFR1/0/0, DLCI 25 Direction: Outbound Policy: policy1 Classifier: default-class Matched : 1/133 (Packets/Bytes) Rule(s) : if-match any Behavior: Default Queue: Flow Based Weighted Fair Queueing Max number of hashed queues: 256 Matched...
Field Description Max number of hashed queues The maximum number of hashed queues The number of matched packets and the bytes of these Matched packets The number of enqueued packets and bytes of these Enqueued packets The number of discarded packets and bytes of these Discarded packets Drop method, which can be tail drop, IP...
[Sysname-fr-class-test1] ebs 32000 fifo queue-length Syntax fifo queue-length queue-length undo fifo queue-length View FR class view Default level 2: System level Parameters queue-length: FIFO queue length, which specifies the maximum number of packets that a FIFO queue can hold. This argument ranges from 1 to 1024 and defaults to 40. Description Use the fifo queue-length command to set the FIFO queue length for FR PVCs.
By default, no FR class is created. The FR class parameters do not take effect until you associate the FR class with an interface or PVC and enable the FR QoS function on the interface. With an FR class removed, all the associations associating this FR class with an interface or a DLCI are released.
Examples # Configure Serial 2/0/1 to drop FR packets with the DE flag bit 1 when the current interface queues uses more than 80% of the total queue length. <Sysname> system-view [Sysname]interface Serial 2/0/1 [Sysname-Serial2/0/1] fr interface-type dce [Sysname-Serial2/0/1] fr congestion-threshold de 80 fr de del Syntax fr de del list-number dlci dlci-number...
View System view Default level 2: System level Parameters list-number: DE rule list number, which ranges from 1 to 10. interface-type interface-number: Specifies an interface by its type and number. Description Use the fr del inbound-interface command to configure an interface-based DE rule list. Before the incoming packets of the specific interfaces are to be forwarded as FR packets, the DE flag bits of these packets are set to 1.
greater-than bytes: IP packets with the length greater than the bytes argument. The bytes argument ranges from 0 to 65535. less-than bytes: IP packets with the length less than the bytes argument. The bytes argument ranges from 0 to 65535. tcp ports: IP packets with the source or destination TCP port number as the ports argument.
Description Use the fr traffic-policing command to enable FR traffic policing. Use the undo fr traffic-policing command to disable FR traffic policing. FR traffic policing is applicable only to the ingress interfaces on the DCE side of an FR network. Before enabling traffic policing for the incoming interfaces, make sure that FR switching is globally enabled on the DCE by using the fr switching command.
undo fragment [ data-level | voice-level ] View FR class view Default level 2: System level Parameters fragment-size: Fragment size, which ranges from 16 bytes to 1600 bytes. This argument is 45 bytes by default. Description Use the fragment command to enable the packet fragmentation function (conforming to frame relay forum’s FRF.12) for FR PVCs.
Instead of removing an FR class, the undo fr-class command just cancels the association between the FR class and the current FR PVC or interface. Use the undo fr class command to remove an FR class. For an interface associated with an FR class, all the PVCs on the interface inherit the FR QoS parameters in the FR class.
Index A B C D E F G I P Q R S T W display qos cql,88 display qos gts interface,75 accounting,39 display qos lr interface,78 acl,1 display qos map-table,63 accelerate,2 display qos policy,52 copy,3 display qos policy interface,143 ipv6,3 display qos policy interface,54...