HP A8800 Routers ACL and QoS Command Reference Part number: 5998-1761 Software version: A8800-CMW520-R3627 Document version: 6W102-20130906...
Page 2
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
Page 6
·································································································································· 140 qos scheduler-policy ············································································································································ 141 remark qos-local-id ·············································································································································· 141 Support and other resources ·································································································································· 143 Contacting HP ······························································································································································ 143 Subscription service ············································································································································ 143 Related information ······················································································································································ 143 Documents ···························································································································································· 143 ...
ACL configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Syntax acl number acl-number [ name acl-name ] [ match-order { auto | config } ] undo acl { all | name acl-name | number acl-number } View System view...
To display any ACLs you have created, use the display acl command. Examples # Create ACL 2000, and enter its view. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] # Create ACL 2002 with the name flow, and enter its view. <Sysname>...
dest-acl-number: Assigns a unique number to the ACL you are creating. This number must be from the same ACL category as the source ACL. Available value ranges include: 2000 to 2999 for IPv4 basic ACLs • 3000 to 3999 for IPv4 advanced ACLs •...
all: Delete all IPv6 basic and IPv6 advanced ACLs. Description Use acl ipv6 to create an IPv6 basic or advanced ACL and enter its ACL view. If the ACL has been created, you enter its view directly. Use undo acl ipv6 to delete the specified IPv6 ACL or all IPv6 basic and IPv6 advanced ACLs. By default, no ACL exists.
cannot be all. For this ACL, the system automatically picks the smallest number from all available numbers in the same ACL category as the source ACL. Description Use acl ipv6 copy to create an IPv6 basic or IPv6 advanced ACL by copying an IPv6 basic or IPv6 advanced ACL that already exists.
acl ipv6 name Syntax acl ipv6 name acl6-name View System view Default level 2: System level Parameters acl6-name: Specifies the name of an existing IPv6 basic ACL or IPv6 advanced ACL, a case-insensitive string of 1 to 63 characters. It must start with an English letter. Description Use acl ipv6 name to enter the view of an IPv6 basic ACL or IPv6 advanced ACL that has a name.
Parameters acl-name: Specifies the name of an existing IPv4 basic, IPv4 advanced, Ethernet frame header, or user-defined ACL, which is a case-insensitive string of 1 to 63 characters. It must start with an English letter. Description Use acl name to enter the view of an IPv4 basic, IPv4 advanced, Ethernet frame header, or user-defined ACL that has a name.
ACL's step is 5 rule 0 permit source 10.110.0.0 0.0.0.255 Table 1 Command output Field Description Category and number of the ACL. The following field information is Basic ACL 2001 about ACL 2001. named flow The name of the ACL is flow. "-none-" means the ACL is not named. 1 rule The ACL contains one rule.
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, a case-sensitive string of 1 to 256 characters. Description Use display acl ipv6 to display the configuration and match statistics for the specified IPv6 ACL or all IPv6 basic and IPv6 advanced ACLs.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see 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.
Description Use display acl resource to display the usage of ACL rules. If a card does not support counting ACL rules, the command displays only the slot number of the card. Examples # Display the usage of ACL resources on all cards. <Sysname>...
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display flow-template interface to display information about user-defined flow templates applied to interfaces. Examples # Display information about all user-defined flow templates applied to interfaces. <Sysname>...
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display flow-template user-defined to display information about user-defined flow templates. Examples # Display information about all user-defined flow templates. <Sysname>...
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display time-range to display the configuration and status of the specified time range or all time ranges. Examples # Display the configuration and status of time range test. <Sysname>...
tos: ToS field in the IP header. all: Deletes all user-defined flow templates. Description Use flow-template basic to create a basic user-defined flow template. Use undo flow-template to delete one or all user-defined flow templates. To guarantee a successful removal, check that the template you are deleting has not applied to any interface. Examples # Create a basic user-defined flow template.
[Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] hardware-count enable reset acl counter Syntax reset acl counter { acl-number | all | name acl-name } View User view Default level 2: System level Parameters acl-number: Specifies an ACL by its number: 2000 to 2999 for IPv4 basic ACLs •...
2000 to 2999 for IPv6 basic ACLs • • 3000 to 3999 for IPv6 advanced ACLs all: Clears statistics for all IPv6 basic ACLs and IPv6 advanced ACLs. name acl6-name: Specifies an ACL by its name. The acl6-name argument takes a case-insensitive string of 1 to 63 characters.
lsap lsap-type lsap-type-mask: Matches the DSAP and SSAP fields in LLC encapsulation. The lsap-type argument is a 16-bit hexadecimal number that represents the encapsulation format. The lsap-type-mask argument is a 16-bit hexadecimal number that represents the LSAP mask. type protocol-type protocol-type-mask: Matches one or more protocols in the Ethernet frame header. The protocol-type argument is a 16-bit hexadecimal number that represents a protocol type in Ethernet_II and Ethernet_SNAP frames.
Page 29
Parameters Function Description The dscp argument can be a number in the range of 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp Specifies a DSCP priority (22), af31 (26), af32 (28), af33 (30), af41 (34), af42 (36), af43 (38), cs1 (8), cs2 (16), cs3 (24), cs4 (32), cs5 (40), cs6 (48), cs7 (56), default (0), or ef (46).
Page 30
If the protocol argument takes tcp (6) or udp (7), you can set the parameters shown in Table Table 9 TCP/UDP-specific parameters for IPv4 advanced ACL rules Parameters Function Description The operator argument can be lt (lower than), gt source-port operator Specifies one or more (greater than), eq (equal to), neq (not equal to), or port1 [ port2 ]...
Page 31
Table 11 ICMP message names supported in IPv4 advanced ACL rules ICMP message name ICMP message type ICMP message code echo 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 rule to create or edit an IPv4 advanced ACL rule.
[Sysname] acl number 3000 [Sysname-acl-adv-3000] rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0 0.0.0.255 destination-port eq 80 logging # Create IPv4 advanced ACL rules to permit all IP packets but the ICMP packets destined for 192.168.1.0/24. <Sysname> system-view [Sysname] acl number 3001 [Sysname-acl-adv-3001] rule deny icmp destination 192.168.1.0 0.0.0.255 [Sysname-acl-adv-3001] rule permit ip # Create IPv4 advanced ACL rules to permit inbound and outbound FTP packets.
Page 33
fragment: Applies the rule only to fragments. A rule without this keyword applies to both fragments and non-fragments. When the ACL rule length limit is 80 bytes on an SPC card, the ACL rule does not take effect on the first fragment of fragments for each incoming packet. For more information about the ACL rule length limit mode, see "acl mode."...
Page 35
Parameters Function Description The dscp argument can be a number in the range of 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp Specifies a DSCP preference (22), af31 (26), af32 (28), af33 (30), af41 (34), af42 (36), af43 (38), cs1 (8), cs2 (16), cs3 (24), cs4 (32), cs5 (40), cs6 (48), cs7 (56), default (0), or ef (46).
Page 36
Table 13 TCP/UDP-specific parameters for IPv6 advanced ACL rules Parameters Function Description The operator argument can be lt (lower than), gt (greater than), eq (equal to), neq (not equal to), or range (inclusive range). The port1 and port2 arguments are TCP or UDP port numbers in the range of 0 to 65535.
Page 37
Table 14 ICMPv6-specific parameters for IPv6 advanced ACL rules Parameters Function Description The icmp6-type argument is in the range of 0 to 255. The icmp6-code argument is in the range of 0 to icmp6-type { icmp6-type Specifies the ICMPv6 message 255.
To view rules in an ACL and their rule IDs, use the display acl ipv6 all command. Related commands: acl ipv6, display ipv6 acl, step, and time-range. Examples # Create an IPv6 ACL rule to permit TCP packets with the destination port 80 from 2030:5060::/64 to FE80:5060::/96, and enable logging matching packets.
Page 39
numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering step is 5 and the current highest rule ID is 28, the rule is numbered 30. deny: Denies matching packets. permit: Allows matching packets to pass. counting: Counts the number of times the IPv6 ACL rule has been matched.
configured, the system creates the rule. However, the rule using the time range can take effect only after you configure the timer range. Description Use rule to create a user-defined ACL rule. You cannot edit a user-defined ACL rule. If you number the ACL rule the same as an existing rule in the ACL, the new rule contents are added to the existing rule.
[Sysname] acl number 2000 [Sysname-acl-basic-2000] rule 0 deny source 1.1.1.1 0 [Sysname-acl-basic-2000] rule 0 comment This rule is used on GE3/1/2. # Create a rule in IPv6 basic ACL 3000 and configure a description for this rule. <Sysname> system-view [Sysname] acl ipv6 number 3000 [Sysname-acl6-adv-3000] rule 0 permit tcp source 2030:5060::9050/64 [Sysname-acl6-adv-3000] rule 0 comment This rule is used in GE3/1/1 rule remark...
Page 43
Use the undo rule rule-id remark command to delete a specific rule range remark. If you also • specify the text argument, you must type in the remark the same as was specified to successfully remove the remark. TIP: rule-id When adding an end remark for a rule range, you can specify the end rule number plus 1 for the argument so all rules in this range appears between the two remarks.
step Syntax step step-value undo step View IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default level 2: System level Parameters step-value: ACL rule numbering step, in the range of 1 to 20. Description Use step to set a rule numbering step for an ACL. The rule numbering step sets the increment by which the system numbers rules automatically.
Page 45
Default level 2: System level Parameters time-range-name: Specifies a time range name. The name is a case-insensitive string of 1 to 32 characters. It must start with an English letter and to avoid confusion, cannot be all. start-time to end-time: Specifies a periodic statement. Both start-time and end-time are in hh:mm format (24-hour clock).
Page 46
You can create a maximum of 256 time ranges, each with a maximum of 32 periodic statements and 12 absolute statements. The active period of a time range is calculated as follows: Combining all periodic statements Combining all absolute statements Taking the intersection of the two statement sets as the active period of the time range Related commands: display time-range.
QoS policy configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Class configuration commands display traffic classifier Syntax display traffic classifier user-defined [ classifier-name ] [ | { begin | exclude | include } regular-expression ] View...
Rule(s) : If-match acl 3131 Table 16 Command output Field Description User Defined Classifier Information User-defined class information. Classifier Class name and its match criteria. Operator Logical relationship between match criteria. Rule(s) Match criteria. if-match Syntax if-match match-criteria undo if-match match-criteria View Class view Default level...
Page 49
Value Description destination-mac mac-address Matches a destination MAC address. Matches DSCP values. dscp dscp-list The dscp-list argument is a list of up to eight DSCP values. A DSCP value is in the range 0 to 63. Matches Layer 2 forwarded packets or Layer 3 forwarded packets.
Page 50
Description Use if-match to define a match criterion. Use undo if-match to remove a match criterion. When defining match criteria, follow the guidelines described in the subsections: Defining an ACL-based match criterion If the ACL referenced in the if-match command does not exist, the class cannot be applied to hardware.
Page 51
If this command is executed multiple times in a class, the new configuration does not overwrite the previous one. When such a command is configured, the IP precedence values are arranged automatically in ascending order. 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.
# Define match criteria for class class2 to match the packets that have 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 a DSCP precedence of 1, 6 or 9. <Sysname>...
[Sysname-classifier-class1] Traffic behavior configuration commands accounting Syntax accounting [ byte | packet ] undo accounting View Traffic behavior view Default level 2: System level Parameters byte: Counts traffic in bytes. packets: Counts traffic in packets. With this keyword specified, the CAR also counts traffic in packets. Description Use accounting to enable traffic accounting for the traffic behavior.
[Sysname] traffic behavior database [Sysname-behavior-database] accounting Syntax car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ red { discard | pass } ] undo car View Traffic behavior view Default level 2: System level Parameters cir committed-information-rate: Committed information rate (CIR) in kbps, in the range of 64 to 10000000.
10000 kbps × 128 bytes/(128 bytes of packet length – 4 bytes of CRC – 14 bytes of Layer-2 header) When the incoming port and the outgoing port are POS interfaces, the theoretical outgoing interface rate is calculated following this formula: 10000 kbps ×...
primap color-map-dp Syntax primap color-map-dp undo primap color-map-dp View Traffic behavior view Default level 2: System level Description Use primap color-map-dp to configure the action of mapping the packet color to the drop precedence value in the traffic behavior. Use undo primap color-map-dp to delete the action. These two commands must be used in conjunction with the car command.
Description Use primap to configure the action of mapping source precedence to target precedence through the specified priority mapping table for the traffic behavior. Use undo primap pre-defined to remove the action. Related commands: display qos map-table. Examples # Specify a DSCP-to-DSCP priority mapping table for traffic behavior behavior1. <Sysname>...
CAUTION: Do not bind the outgoing interface for the redirected traffic to a NAT service interface. Examples # Configure the action of redirecting traffic to the CPU for traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] redirect cpu redirect-default Syntax redirect-default...
View Traffic behavior view Default level 2: System level Parameters 8021p: 802.1p priority to be marked for packets, in the range of 0 to 7. Description Use remark dot1p to configure the action of setting the specified 802.1p priority for packets. Use undo remark dot1p to remove the action.
remark dscp Syntax remark dscp dscp-value undo remark dscp View Traffic behavior view Default level 2: System level Parameters dscp-value: DSCP value, in the range of 0 to 63 or a keyword, as shown in Table Table 19 DSCP keywords and values Keyword DSCP value (binary) DSCP value (decimal)
Use undo remark dscp to remove the action. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Set the DSCP value of packets to 6. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark dscp 6 remark ip-precedence Syntax remark ip-precedence ip-precedence-value undo remark ip-precedence View...
Parameters local-precedence: Local precedence value to be marked for packets, which can be a number or keyword. The number-keyword mapping is shown in Table Table 20 Description on the local-precedence argument Keyword Local precedence value (decimal) Description Use remark local-precedence to configure the action of setting the specified local precedence for packets.
Default level 2: System level Parameters classifier-name: Class name, a string of 1 to 31 characters. behavior-name: Behavior name, a string of 1 to 31 characters. Description Use classifier behavior to specify a behavior for a class in the policy. Use undo classifier to remove a class from the policy.
Description Use display qos policy to display user-defined QoS policy configuration. Examples # Display the configuration information of user-defined QoS policies. <Sysname> display qos policy user-defined User Defined QoS Policy Information: Policy: user1 Classifier: class1 Behavior: test Accounting Enable Committed Access Rate: CIR 20000 (kbps), CBS 300000 (byte), EBS 100 (byte), PIR 25000 (kbps) Red Action: discard Filter enable : permit...
Page 68
Parameters inbound: Displays information about the inbound global QoS policy. An inbound global QoS policy applies to the inbound direction of all ports. outbound: Displays information about the outbound global QoS policy. An outbound global QoS policy applies to the outbound direction of all ports. slot slot-number: Displays information about the global QoS policies on the card specified by the slot number.
Table 22 Command output Field Description Indicates that the QoS policy is applied in the inbound direction or outbound Direction direction. Policy Policy name and its contents. Classifier Class name and its contents. Mode that the association between the class and the traffic behavior Mode supports.
Page 70
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, a case-sensitive string of 1 to 256 characters. Description Use display qos policy interface to display the QoS policy configuration and operational information of the specified interface or all interfaces.
Field Description Traffic mirroring type: • VLAN—Mirrors traffic to a VLAN. Mirror type • CPU—Mirrors traffic to a CPU. • Interface—Mirrors traffic to an interface. Assured Forwarding Information about AF queues. Bandwidth Bandwidth of the queue. Matched Number of packets matching the match criteria. Enqueued Number of packets and bytes enqueued.
Page 72
|: Filters command output by specifying a regular expression. For more information about regular expressions, see 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.
Table 25 Command output Field Description Vlan ID of the VLAN where the QoS policy is applied. Direction Direction of the VLAN in which the QoS policy is applied. Classifier Class name and its contents. Operator Logical relationship between match criteria. Rule(s) Match criteria.
You can apply QoS policies to all physical interfaces but X.25-enabled or LAPB-enabled interfaces. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. Examples # Apply policy USER1 in the outbound direction of GigabitEthernet 2/1/1.
Default level 2: System level Parameters policy policy-name: Policy name, a string of 1 to 31 characters. Description Use qos policy to create a policy and enter policy view. Use undo qos policy to remove a policy. A policy applied to an interface cannot be deleted directly. You must cancel application of the policy on the interface before deleting the policy with the undo qos policy command.
Examples # Display the configuration of the user-to-local priority mapping table for incoming packets. <Sysname> display qos map-table inbound up-lp MAP-TABLE NAME: up-lp TYPE: pre-define DIRECTION: inbound IMPORT EXPORT Table 26 Command output Field Description MAP-TABLE NAME Name of the priority mapping table. TYPE Type of the priority mapping table.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see 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.
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 import to configure a mapping from one or multiple input values to an output value. Use undo import to restore the specified or all mappings to the default mappings.
Port priority configuration commands qos priority Syntax qos priority priority-value undo qos priority View Interface view, port group view Default level 2: System level Parameters priority-value: Port priority value, in the range of 0 to 7. Description Use qos priority to change the port priority of a port. Use undo qos priority to restore the default.
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 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.
Page 85
An SPE card uses the 802.1p priority of Layer 2 packets, the IP precedence of Layer 3 packets, and • the EXP of MPLS packets for priority mapping. An SPC card uses the IP precedence of IP packets, EXP of MPLS packets, and 802.1p priority of any •...
GTS and rate limit configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. GTS configuration commands display qos gts interface Syntax display qos gts interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]...
Table 29 Command output Field Description Interface Interface type and interface number. Rule(s) Match criteria. Committed information rate (CIR) in kbps. Committed burst size in bytes, which specifies the depth of the token bucket for holding burst traffic. qos gts any Syntax qos gts any cir committed-information-rate [ cbs committed-burst-size ] undo qos gts any...
Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. The qos gts any command and the qos lr outbound command are mutually exclusive for an interface, subinterface, or port group.
300 to 1000000 on a GE interface. • • 2500 to 10000000 on a 10-GE interface. 300 to 10000000 on a non-FR POS interface. • 40 to 1000000 on a serial port channelized from an E-CPOS interface. • cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes, a multiple of 1024. A value that is not a multiple of 1024 is converted into a multiple of 1024.
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 Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays the lines that do not match the specified regular expression.
Page 91
Parameters outbound: Limits the rate of outgoing packets on the interface. cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The value range for committed-information-rate varies by interface type as follows: 300 to 1000000 on a GE interface or the corresponding Layer 3 Ethernet subinterface. •...
Hardware congestion management configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Queue scheduling profile configuration commands The commands in this chapter are available on only the SPC cards. display qos qmprofile configuration Syntax display qos qmprofile configuration [ profile-name ] [ | { begin | exclude | include } regular-expression ]...
Table 32 Command output Field Description Queue management profile Queue scheduling profile name. Queue ID ID of a queue. Queue scheduling type: • Type • WRR. For a WRR queue, this field displays the WRR priority group to which the Group queue belongs.
If no interface is specified, all applications of queue scheduling profiles to interfaces are displayed. Examples # Display the queue scheduling profile applied to GigabitEthernet 3/0/1. <Sysname> display qos qmprofile interface gigabitethernet 3/0/1 Interface: GigabitEthernet3/0/1 Queue management profile: myprofile Table 33 Command output Field Description Interface...
undo qos qmprofile profile-name View System view Default level 2: System level Parameters profile-name: Queue scheduling profile name, a string of 1 to 31 case-sensitive characters. Description Use qos qmprofile to create a queue scheduling profile and enter queue scheduling profile view. Use undo qos qmprofile to delete a queue scheduling profile.
To guarantee that the queue scheduling is exact, make sure that the queues assigned to a WRR group are continuous. Examples # Create queue scheduling profile myprofile and configure queue 1 to use SP. <Sysname> system-view [Sysname] qos qmprofile myprofile [Sysname-qmprofile-myprofile] queue 1 sp # Create queue scheduling profile myprofile, configure queue 1 to use WRR, set the scheduling weight of queue 1 to 20, and assign queue 1 to WRR priority group 1.
<Sysname> display qos wfq interface GigabitEthernet 2/1/1 Interface: GigabitEthernet2/1/1 Output queue: Hardware weighted fair queue Queue ID Weight Min-Bandwidth --------------------------------------------- 2000 Table 34 Command output Field Description Interface Interface type and interface number. Output queue Type of the current output queue. Queue ID ID of a queue.
Keyword Queue number (decimal) min bandwidth-value: Minimum guaranteed bandwidth (in kbps), which specifies the minimum bandwidth guaranteed for a queue when the port is congested. Description Use qos bandwidth queue to set the minimum guaranteed bandwidth for a queue on a port. Use undo qos bandwidth queue to cancel the minimum guaranteed bandwidth configuration for a queue on a port.
Use undo qos wfq weight to restore the default scheduling weight for a WFQ queue on a port. By default, the scheduling weight of a WFQ queue is 1. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.
[Sysname] traffic behavior af_behav [Sysname-behavior-af_behav] queue af bandwidth 5000 [Sysname-behavior-af_behav] quit queue ef Syntax queue ef bandwidth bandwidth [ cbs burst ] undo queue ef View Traffic behavior view Default level 2: System level Parameters bandwidth: Guaranteed bandwidth for expedited forwarding (EF), which ranges from 64 to 10000000 in kbps.
Congestion avoidance configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. WRED configuration commands WRED configuration commands are available to only SPE cards. display qos wred interface Syntax display qos wred interface [ interface-type interface-number ] [ | { begin | exclude | include }...
Table 36 Command output Field Description Interface Interface type and interface number. Applied WRED table name Name of the applied WRED table. WRED table configuration commands WRED table configuration commands are applicable to only SPE cards display qos wred table Syntax display qos wred table [ table-name ] [ | { begin | exclude | include } regular-expression ] View...
queue weighting-constant Syntax queue queue-number weighting-constant exponent undo queue queue-number weighting-constant View WRED table view Default level 2: System level Parameters queue-number: Queue number. weighting-constant exponent: Specifies the exponent for average queue length calculation, in the range of 0 to 21. This argument is 8 by default. Description Use queue weighting-constant to specify an exponent for average queue length calculation for a specified queue.
Page 107
By default, the tail drop mode is adopted on a port. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. An SPC card does not support this command.
Aggregate CAR configuration commands car name Syntax car name car-name undo car View Traffic behavior view Default level 2: System level Parameters car-name: Name of an aggregate CAR action. Description Use car name to reference an aggregate CAR action for the traffic behavior. Use undo car to remove the aggregate CAR action from the traffic behavior.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display qos car name to display the configuration and statistics of a specified aggregate CAR action.
Page 110
aggregative: Indicates that the global CAR action is aggregative. Only aggregate CAR is supported. cir committed-information-rate: Committed information rate (CIR) in kbps, in the range of 64 to 10000000. cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes, which specifies the size of burst traffic when the actual average rate is no bigger than CIR.
reset qos car name Syntax reset qos car name [ car-name ] View User view Default level 2: System level Parameters car-name: Name of an aggregate CAR action. Description Use reset qos car name to clear the statistics about the specified aggregate CAR action. If no car-name is specified, the statistics about all aggregate CAR policies is cleared.
QoS traffic accounting configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. The QoS traffic accounting configuration commands are applicable to only the ports operating in bridge mode on an SPC card display qos traffic-counter Syntax...
Page 113
VLAN: all Local precedence: all Drop priority: all Traffic-counter summary: Unicast: 0 packets Multicast: 0 packets Broadcast: 0 packets Control packets: 2 packets Bridge egress filtered packets: 0 packets Tail drop packets: 0 packets Multicast Tail drop packets: 6 packets Forward restrictions packets: 0 packets Table 39 Command output Field...
Bridge security filter discarded: 0 packets Table 40 Command output Field Description Slot 1 inbound counter0 mode Monitored objects of the counter in the inbound direction. Interface Interfaces monitored by the counter. VLAN VLANs monitored by the counter. Traffic-counter summary Summary statistics collected by the counter.
By default, the traffic accounting function is disabled. A card provides two counters for traffic accounting. The monitored object can be a port, a VLAN, a local precedence value, or a drop precedence value. If no port is specified, the traffic of all the ports on the card is monitored. •...
Page 118
Queue 7: Pass: 0 packets, 0 bytes Drop: 0 packets, 0 bytes Total queue length : 8192 packets Current queue length: 0 packets, 0% use ratio Table 41 Command output Field Description Interface Interface for which port queue traffic statistics are to be displayed. Direction Direction for which port queue traffic statistics are to be displayed.
QoS pipe mode configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. qos pipe-mode Syntax qos pipe-mode undo qos pipe-mode View System view Default level...
FR QoS configuration commands cir allow Syntax cir allow [ inbound | outbound ] committed-information-rate undo cir allow [ inbound | outbound ] View FR class view Default level 2: System level Parameters inbound: Sets the CIR ALLOW for the incoming packets. This keyword is available when FR traffic policing is enabled on interfaces.
display fr class-map Syntax display fr class-map { fr-class class-name | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters class-name: FR class name, which is a string of 1 to 30 characters. interface-type interface-number: Specifies an interface by its type and number.
View System view Default level 2: System level Parameters class-name: FR class name, which is a string of 1 to 30 characters. Description Use fr class to create an FR class and enter FR class view. Use undo fr class to remove the specified FR class. By default, no FR class is created.
Instead of removing an FR class, the undo fr-class command just cancels the association between the FR class and the current FR PVC. To remove an FR class, use the undo fr class command. Related commands: fr class. Examples # Associate FR class test1 with an FR PVC with DLCI 200. <Sysname>...
HQoS configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Only SPE cards support HQoS. SPC cards do not support HQoS. Forwarding class configuration commands display qos forwarding-class Syntax...
remark forwarding-class Syntax remark forwarding-class { id fc-id | name fc-name } undo remark forwarding-class View Traffic behavior view Default level 2: System level Parameters id fc-id: Specifies a forwarding class by its ID, range from 0 to 3. Only the ID of a pre-defined forwarding class can be specified.
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, a case-sensitive string of 1 to 256 characters. Description Use display qos forwarding-group to display forwarding group information.
View System view Default level 2: System level Parameters fg-source: Source forwarding group name, a case-sensitive string of 1 to 31 characters. The forwarding group identified by this argument must already exist. fg-dest: Destination forwarding group name, a case-sensitive string of 1 to 31 characters. Up to eight destination forwarding groups can be specified.
Field Description Yellow thresholds Drop parameters for yellow packets. Red thresholds Drop parameters for red packets. Threshold at which packet drop begins. Threshold at which all newly arriving packets are dropped. prob Drop probability. Weighting constant Exponent for average queue length calculation. green Syntax green low-limit low-limit high-limit high-limit discard-probability discard-prob...
undo qos drop-profile dp-name View System view Default level 2: System level Parameters dp-name: User-defined drop profile name, a case-sensitive string of 1 to 31 characters. This argument cannot take the name of the pre-defined drop profile. id dp-id: Specifies the user-defined drop profile ID, in the range of 0 to 31. The dp-id argument cannot take the ID of the pre-defined drop profile.
Description Use red to set drop parameters for red packets. Use undo red to restore the default. Examples # Set drop parameters for red packets as follows: set lower threshold to 500, upper threshold to 700, and drop probability to 40. <Sysname>...
Parameters low-limit low-limit: Specifies the lower threshold in packets. When the average queue length reaches the threshold, newly arriving packets are randomly dropped. The low-limit argument ranges from 0 to 10240 and defaults to 10224. high-limit high-limit: Specifies the upper threshold in packets. When the average queue length reaches the upper threshold, all newly arriving packets are dropped.
Parameters dp-name: Drop profile name, a case-sensitive string of 1 to 31 characters. Description Use drop-profile to bind a drop profile to a forwarding profile. Use undo drop-profile to remove the drop profile from the forwarding profile. By default, a forwarding profile does not reference any drop profile but adopts tail drop. Examples # Bind drop profile testdp to forwarding profile testfp.
qos forwarding-profile Syntax qos forwarding-profile fp-name [ id fp-id ] undo qos forwarding-profile fp-name View System view Default level 2: System level Parameters fp-name: User-defined forwarding profile name, a case-sensitive string of 1 to 31 characters. This argument cannot be the name of a pre-defined forwarding profile. id fp-id: Specifies the user-defined forwarding profile ID, in the range of 0 to 255.
Use undo wfq to disable WFQ in the forwarding profile. By default, a forwarding profile uses WFQ with the scheduling weight 1. Examples # Configure forwarding profile testfp to use WFQ queue scheduling, and set the weight to 2. <Sysname> system-view [Sysname] qos forwarding-profile testfp [Sysname-hqos-fp-testfp] wfq weight 2 Scheduler policy configuration commands...
Page 138
FG: default FP: default Rule: group FP status: Success FG: default Rule: group FC: BE FP: default FP status: Success FG: fg10 Rule: group FG: fg11 FP: fp11 Rule: match qos-local-id 11 to 20 FP status: GTS Failed FG: fg10 Rule: group FG: fg11 Rule: match qos-local-id 11 to 20...
display qos scheduler-policy interface Syntax display qos scheduler-policy interface [ interface-type interface-number [ outbound ] ] [ | { 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 interface number. If no interface is specified, this command displays the scheduler policy configurations and statistics for all ports.
Field Description Direction Direction in which the scheduler policy is applied. Rule Match criteria for instantiation. Total queue length Total length of the queue. Current queue length Current length of the queue. use rate Current queue length/total queue length. Forwarded packets/bytes Number of forwarded packets/bytes.
forwarding-group group Syntax forwarding-group fg-name group undo forwarding-group fg-name group View Scheduler policy layer view Default level 2: System level Parameters fg-name: Forwarding group name, a case-sensitive string of 1 to 31 characters. Description Use forwarding-group group to instantiate a forwarding group in the group mode. Use undo forwarding-group group to delete the instance generated from the forwarding group in the group mode.
Description Use forwarding-group match to instantiate a forwarding group in the match mode according to the specified match criterion. Use undo forwarding-group match to delete the instance generated from the forwarding group according to the specified match criterion. In the same scheduler policy, instantiate a parent forwarding group before instantiating its child forwarding groups.
Use undo forwarding-group to remove the specified forwarding group from the scheduler policy. The forwarding group to be nested in a scheduler policy and the forwarding profile to be specified for the forwarding group must already exist. You cannot remove any forwarding group from a scheduler policy that has been applied to a port. You cannot remove the default forwarding group automatically nested in a scheduler policy.
Default level 2: System level Parameters sp-name: Scheduler policy name, a case-sensitive string of 1 to 31 characters. Description Use qos apply scheduler-policy to apply a scheduler policy in the inbound direction of an interface or port group. Use undo qos apply scheduler-policy to remove the scheduler policy applied in the inbound direction of the interface or port group.
<Sysname> system-view [Sysname] qos copy scheduler-policy sp-source to sp-dest qos scheduler-policy Syntax qos scheduler-policy sp-name [ id sp-id ] undo qos scheduler-policy sp-name View System view Default level 2: System level Parameters sp-name: User-defined scheduler policy name, a case-sensitive string of 1 to 31 characters. id sp-id: Specifies a user-defined scheduler policy ID, in the range of 0 to 15.
Page 148
Description Use remark qos-local-id to configure the action of setting the specified local QoS ID for packets. Use undo remark qos-local-id to delete the action. Examples # Configure the action of marking packets with local QoS ID 2. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark qos-local-id 2...
Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. •...
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
Page 151
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
Index A B C D F G H I L P Q R S T W Y display qos policy,60 display qos policy global,61 accounting,47 display qos policy interface,63 acl,1 display qos qmprofile configuration,86 copy,2 display qos qmprofile interface,87 ipv6,3 display qos queue-statistics interface,1 10 acl ipv6...