HP 6600/HSR6600 Routers ACL and QoS Command Reference Part number: 5998-1490 Software version: A6602-CMW520-R3303P05 A6600-CMW520-R3303P05-RPE A6600-CMW520-R3303P05-RSE HSR6602_MCP-CMW520-R3303P05 Document version: 6PW105-20140507
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents ACL commands ···························································································································································· 1 acl ·············································································································································································· 1 acl accelerate ·······································································································································
display qos policy ················································································································································· 57 display qos policy interface ································································································································· 58 display qos vlan-policy ········································································································································· 62 qos apply policy
CBQ commands ··························································································································································· 101 display qos cbq interface ··································································································································· 101 qos max-bandwidth ············································································································································· 102 qos reserved-
dar protocol-group ·············································································································································· 138 dar protocol-statistic ············································································································································ 138 display dar protocol-statistic ······························································································································· 139 protocol ······
ACL commands acl Use acl to create an IPv4 basic, IPv4 advanced, or Ethernet frame header ACL, and enter its view. If the ACL has been created, you directly enter its view. Use undo acl to delete the specified ACLs. Syntax acl number acl-number [ name acl-name ] [ match-order { auto | config } ] undo acl { all | name acl-name | number acl-number } Default No ACL exists.
To display any ACLs you have created, use the display acl command. Examples # Create IPv4 basic ACL 2000, and enter its view. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] # Create IPv4 basic ACL 2001 with the name flow, and enter its view. system-view [Sysname] acl number 2001 name flow [Sysname-acl-basic-2001-flow] acl accelerate Use acl accelerate to enable ACL acceleration for an IPv4 basic or IPv4 advanced ACL.
Examples # Enable ACL acceleration for IPv4 advanced ACL 3000. system-view [Sysname] acl accelerate number 3000 Related commands display acl accelerate acl copy Use acl copy to create an IPv4 basic, IPv4 advanced, or Ethernet frame header ACL by copying an ACL that already exists. The new ACL has the same properties and content as the source IPv4 ACL, but not the same ACL number and name.
acl ipv6 Use acl ipv6 to create an IPv6 basic or IPv6 advanced ACL, and enter its ACL view. If the ACL has been created, you directly enter its view. Use undo acl ipv6 to delete the specified ACLs. Syntax acl ipv6 number acl6-number [ name acl6-name ] [ match-order { auto | config } ] undo acl ipv6 { all | name acl6-name | number acl6-number } Default No ACL exists.
[Sysname-acl6-basic-2001-flow] acl ipv6 copy Use acl ipv6 copy to create an IPv6 basic or IPv6 advanced ACL by copying an ACL that already exists. The new ACL has the same properties and content as the source ACL, but not the same ACL number and name.
Views System view Default command level 2: System level Parameters acl6-name: Specifies an IPv6 basic or IPv6 advanced ACL name, a case-insensitive string of 1 to 63 characters. It must start with an English letter. The ACL must already exist. Examples # Enter the view of IPv6 basic ACL flow.
Syntax description text undo description Default An ACL has no ACL description. Views IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default command level 2: System level Parameters text: ACL description, a case-sensitive string of 1 to 127 characters. Examples # Configure a description for IPv4 basic ACL 2000. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] description This is an IPv4 basic ACL.
all: Displays information for all IPv4 basic, IPv4 advanced, and Ethernet frame header ACLs. name acl-name: Specifies an ACL by its name. The acl-name argument takes a case-insensitive string of 1 to 63 characters. It must start with an English letter. slot slot-number: Displays the match statistics for ACLs on a card. The slot-number argument specifies a card by its slot number. If no slot is provided, the command displays the ACL configuration on the device.
Field Description named flow The name of the ACL is flow. "-none-" means the ACL is not named. 3 rules The ACL contains three rules. match-order is auto The match order for the ACL is auto, which sorts ACL rules in depth-first order. This field is not present when the match order is config. This is an IPv4 basic ACL. Description of the ACL. ACL's step is 5 The rule numbering step is 5. rule 0 permit Content of rule 0. 2 times matched There have been two matches for the rule.
Examples # Display ACL acceleration status for the specified IPv4 ACL or all IPv4 basic and IPv4 advanced ACLs. display acl accelerate all Status: UTD -- up to date, OOD -- out of date Accelerate: ACC -- accelerated, Group UNACC -- unaccelerated Accelerate Status -------------------------------------------------2000 ACC UTD 3000 ACC OOD 3001 ACC UTD 3002 UNACC UTD Table 2 Command output Field Description Group ACL number.
name acl6-name: Specifies an ACL by its name. The acl6-name argument takes a case-insensitive string of 1 to 63 characters. It must start with an English letter. slot slot-number: Displays the match statistics for ACLs on a card. The slot-number argument represents the slot number of the card. If no slot number is provided, the command displays ACL configuration on the device.
Field Description 3 rules The ACL contains three rules. This is an IPv6 basic ACL. Description of the ACL. match-order is auto The match order of the ACL is auto. This field is not displayed for an ACL whose match order is config. ACL's step is 5 The rule numbering step is 5. rule 0 permit Content of rule 0. 2 times matched There have been two matches for the rule. The statistic counts only ACL matches performed by software. This field is not displayed when no packets have matched the rule.
Hardware Compatibility HSR6602 No 6604/6608/6616 • Routers with RPE-X1 or RSE-X1 installed: Yes • Routers with MCP installed: No Examples # Display the usage of ACL rules for slot 7.
Field Description Configured Number of ACL rules that have been applied. Remaining Number of ACL rules that you can apply. display time-range Use display time-range to display the configuration and status of the specified time range or all time ranges.
reset acl counter Use reset acl counter to clear statistics for one or all IPv4 basic, IPv4 advanced, and Ethernet frame header ACLs.
name acl6-name: Specifies an ACL by its name. The acl6-name argument takes a case-insensitive string of 1 to 63 characters. It must start with an English letter. Examples # Clear statistics for IPv6 basic ACL 2001. reset acl ipv6 counter 2001 Related commands display acl ipv6 rule (Ethernet frame header ACL view) Use rule to create or edit an Ethernet frame header ACL rule. You can edit ACL rules only when the match order is config.
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.
{ source-address source-wildcard | any } | source-port operator port1 [ port2 ] | time-range time-range-name | tos tos | vpn-instance vpn-instance-name ] * undo rule rule-id [ { { ack | fin | psh | rst | syn | urg } * | established } | counting | destination | destination-port | dscp | fragment | icmp-type | logging | precedence | reflective | source | source-port | time-range | tos | vpn-instance ] * Default An IPv4 advanced ACL does not contain any rule.
Parameters Function Description Specifies a ToS preference The tos argument can be a number in the range of 0 to 15, or in words, max-reliability (2), max-throughput (4), min-delay (8), min-monetary-cost (1), or normal (0).
Parameters Function Description destination-port operator port1 [ port2 ] Specifies one or more UDP or TCP destination ports.
ICMP message name ICMP message type ICMP message code port-unreachable 3 3 protocol-unreachable 3 2 reassembly-timeout 11 1 source-quench 4 0 source-route-failed 3 5 timestamp-reply 14 0 timestamp-request 13 0 ttl-exceeded 11 0 Usage guidelines Within an ACL, the permit or deny statement of each rule must be unique. If the ACL rule you are creating or editing has the same deny or permit statement as another rule in the ACL, your creation or editing attempt fails.
Related commands • acl • display acl • step • time-range rule (IPv4 basic ACL view) Use rule to create or edit an IPv4 basic ACL rule. You can edit ACL rules only when the match order is config. Use undo rule to delete an entire IPv4 basic ACL rule or some attributes in the rule. If no optional keywords are provided, this command deletes the entire rule. If optional keywords or arguments are provided, this command deletes the specified attributes.
configured, the system creates the rule. However, the rule using the time range can take effect only after you configure the timer range. vpn-instance vpn-instance-name: Applies the rule to a VPN instance. The vpn-instance-name argument takes a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the rule applies only to non-VPN packets. Usage guidelines Within an ACL, the permit or deny statement of each rule must be unique.
Default An IPv6 advanced ACL does not contain any rule. Views IPv6 advanced ACL view Default command level 2: System level Parameters rule-id: Specifies a rule ID in the range of 0 to 65534. If no rule ID is provided when you create an ACL rule, the system automatically assigns it a rule ID. This rule ID takes the nearest higher multiple of the numbering step to the current highest rule ID, starting from 0.
Parameters Function Description The routing-type argument takes a value in the range of 0 to 255. routing [ type routing-type ] Specifies the type of routing header. fragment Applies the rule to only non-first fragments. Without this keyword, the rule applies to all fragments and non-fragments. time-range time-range-name Specifies a time range for the rule. The time-range-name argument takes a case-insensitive string of 1 to 32 characters. It must start with an English letter.
If the protocol argument takes icmpv6 (58), set the parameters shown in Table 12. Table 12 ICMPv6-specific parameters for IPv6 advanced ACL rules Parameters Function Description The icmp6-type argument is in the range of 0 to 255. icmp6-type { icmp6-type icmp6-code | icmp6-message } Specifies the ICMPv6 message type and code. The icmp6-code argument is in the range of 0 to 255. The icmp6-message argument specifies a message name.
[Sysname-acl6-adv-3000] rule permit tcp source 2030:5060::/64 destination fe80:5060::/96 destination-port eq 80 logging # Create IPv6 advanced ACL rules to permit all IPv6 packets but the ICMPv6 packets destined for FE80:5060:1001::/48. system-view [Sysname] acl ipv6 number 3001 [Sysname-acl6-adv-3001] rule permit ipv6 [Sysname-acl6-adv-3001] rule deny icmpv6 destination fe80:5060:1001:: 48 # Create IPv6 advanced ACL rules to permit inbound and outbound FTP packets.
Views IPv6 basic ACL view Default command level 2: System level Parameters rule-id: Specifies a rule ID in the range of 0 to 65534. If no rule ID is provided when you create an ACL rule, the system automatically assigns it a rule ID. This rule ID takes the nearest higher multiple of the 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.
Related commands • acl ipv6 • display ipv6 acl • step • time-range rule comment Use rule comment to add a comment about an existing ACL rule or edit its comment to make the rule easy to understand. Use undo rule comment to delete the ACL rule comment. Syntax rule rule-id comment text undo rule rule-id comment Default An ACL rule has no rule comment.
Use undo rule remark to delete the specified or all rule range remarks. Syntax rule [ rule-id ] remark text undo rule [ rule-id ] remark [ text ] Default No rule range remarks are configured. Views IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default command level 2: System level Parameters rule-id: Specifies a rule number in the range of 0 to 65534. The specified rule can be one that has been created or not.
rule 0 permit source 14.1.1.0 0.0.0.255 rule 5 permit source 10.1.1.1 0 time-range work-time rule 10 permit source 192.168.0.0 0.0.0.255 rule 15 permit source 1.1.1.1 0 rule 20 permit source 10.1.1.1 0 rule 25 permit counting # return # Add a start comment "Rules for VIP_start" and an end comment "Rules for VIP_end" for the rule range 10 to 25. [Sysname-acl-basic-2000] rule 10 remark Rules for VIP_start [Sysname-acl-basic-2000] rule 26 remark Rules for VIP_end # Verify the configuration.
Views IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default command level 2: System level Parameters step-value: ACL rule numbering step in the range of 1 to 20. Usage guidelines After you restore the default numbering step by using the undo step command, the rules are renumbered in steps of 5. Examples # Set the rule numbering step to 2 for IPv4 basic ACL 2000.
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, it 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). The value is in the range of 00:00 to 23:59 for the start time, and 00:00 to 24:00 for the end time. The end time must be greater than the start time.
Examples # Create a periodic time range t1, setting it to be active between 8:00 to 18:00 during working days. 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. system-view [Sysname] time-range t2 from 0:0 1/1/2010 to 24:0 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.
QoS policy commands Class commands display traffic classifier Use display traffic classifier to display class information. Syntax display traffic classifier { system-defined | user-defined } [ classifier-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters system-defined: Displays system-defined classes. user-defined: Displays user-defined classes. classifier-name: Class name, a string of 1 to 31 characters.
Table 14 Command output Field Description Classifier Class name and its match criteria. Operator Match operator you set for the class. If the operator is AND, the class matches the packets that match all its match criteria. If the operator is OR, the class matches the packets that match any of its match criteria. Rule(s) Match criteria. if-match Use if-match to define a match criterion. Use undo if-match to delete a match criterion.
Keyword and argument combination Description any Matches all packets. Matches a QoS class. classifier classifier-name The classifier-name argument is the name of the class. This option is not supported on SAP modules operating in bridge mode. 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 of 0 to 63. destination-mac mac-address Matches a destination MAC address. Matches the 802.1p priority of the customer network.
If a class that uses the AND operator has multiple if-match customer-vlan-id or if-match service-vlan-id clauses, a packet that matches any of the clauses matches the class. 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 criteria or inputting multiple values for any of the list arguments, such as the 8021p-list argument.
{ • Defining a criterion to match 802.1p priority in customer or service provider VLAN tags { { { • { { You can configure up to eight 802.1p priority values in one command line. If the same 802.1p priority value is specified multiple times, the system considers them as one. If a packet matches one of the defined 802.1p priority values, it matches the if-match clause. To delete a criterion that matches 802.1p priority values, the specified 802.
{ { You can configure multiple VLAN IDs in one command line. If the same VLAN ID is specified multiple times, the system considers them as one. If a packet matches one of the defined VLAN IDs, it matches the if-match clause. To delete a criterion that matches VLAN IDs, the specified VLAN IDs in the command must be identical with those defined in the criterion (the sequence can be different).
system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match acl ipv6 3101 # Define a match criterion for class class1 to match the IPv6 ACL named flow. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match acl ipv6 name flow # Define a match criterion for class class1 to match all packets.
system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match rtp start-port 16384 end-port 32767 # Define a match criterion for class class1 to match the packets of customer network VLAN 1, 6, or 9. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match customer-vlan-id 1 6 9 # Define a match criterion for class class1 to match packets with their local QoS IDs being 3.
Examples # Create a class class1. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] Related commands • qos policy • qos apply policy • classifier behavior Traffic behavior commands accounting Use accounting to configure the class-based traffic accounting action in a traffic behavior. Use undo accounting to remove the class-based traffic accounting action from a traffic behavior.
car Use car to configure a CAR action in a traffic behavior. Use undo car to delete the CAR action in a traffic behavior. Syntax car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ green action ] [ red action ] [ yellow action ] undo car Default CBS is the amount of traffic transmitted at the rate of CIR over 500 ms.
• remark-prec-pass new-precedence: Sets the IP precedence of the packet to new-precedence and permits the packet to pass through. The value range for new-precedence is 0 to 7. This option is not supported on SAP modules operating in bridge mode. Usage guidelines A QoS policy that has a CAR action can be applied to the inbound or outbound direction of an interface or PVC.
|: 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. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description Green Action Action to be taken on green packets. For more information, see car. Red Action Action to be taken on red packets. For more information, see car. Expedited Forwarding Information about expedited forwarding. Redirect enable Traffic redirecting configuration information. Redirect type Traffic redirecting type: VLAN, CPU, interface, next hop, or service-loop group.
Views Traffic behavior view Default command level 2: System level Parameters cir committed-information-rate: CIR in kbps, which specifies the average traffic rate. cbs committed-burst-size: CBS in bytes, which specifies the size of bursty traffic when the actual average rate is not greater than CIR. ebs excess-burst-size: EBS in bytes. The default is 0. queue-length queue-length: Maximum queue length. The default is 50.
Parameters cir cir-percent: Sets the CIR in percentage, in the range of 0 to 100. The actual CIR value is cir-percent × interface bandwidth. cbs cbs-time: Sets the CBS in the specified time in ms. The default cbs-time is 500. The actual CBS value is cbs-time × the actual CIR value. ebs ebs-time: Sets the EBS in the specified time in ms. The default ebs-time is 0 ms. The actual EBS value is ebs-time × the actual CIR value.
Parameters cpu: Redirects traffic to the CPU. interface: Redirects traffic to an interface. interface-type interface-number: Specifies an interface by its type and number. To redirect traffic to a tunnel, set the interface type to tunnel. To redirect traffic to a Layer 2 aggregate interface, set the interface type to bridgeport-aggregation. To redirect traffic to a Layer 3 aggregate interface, set the interface type to routeport-aggregation. next-hop: Redirects traffic to a next hop.
Examples # Configure traffic behavior database to mark matching traffic with 802.1p 2. system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark dot1p 2 Related commands • qos policy • traffic behavior • classifier behavior remark drop-precedence Use remark drop-precedence to configure a drop precedence marking action. Use undo remark drop-precedence to delete the action.
undo remark dscp Views Traffic behavior view Default command level 2: System level Parameters dscp-value: Sets the DSCP value, which can be a number from 0 to 63 or any keyword in Table 17.
• traffic behavior • classifier behavior remark ip-precedence Use remark ip-precedence to configure an IP precedence marking action. Use undo remark ip-precedence to delete the action. Syntax remark ip-precedence ip-precedence-value undo remark ip-precedence Views Traffic behavior view Default command level 2: System level Parameters ip-precedence-value: Sets the IP precedence value to be marked for packets, in the range of 0 to 7. Examples # Set the IP precedence to 6 for packets.
Usage guidelines This command is supported only on SAP modules operating in bridge mode and RPR interfaces. Examples # Configure traffic behavior database to mark matching traffic with local precedence 2.
Default command 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, or be-flow-based. Usage guidelines A traffic behavior is a set of actions, such as priority marking, dropping, rate limiting, and accounting. You provide QoS for a class of traffic by associating a traffic behavior with the class of traffic. Examples # Create a traffic behavior named behavior1.
• A parent policy can nest only one child policy. This child policy cannot be the parent policy itself or the parent of any other policy. • You can reference only one child policy in a behavior. • If` the parent policy and the child policy contain the same behavior, the system performs the behavior in the parent policy first and then that in the child policy.
Usage guidelines You cannot remove a default class. You can perform a set of QoS actions on a traffic class by associating a traffic behavior with the traffic class. You can configure multiple class-behavior associations in a QoS policy, and each class can associate with only one traffic behavior. If the specified class or traffic behavior does not exist, the system creates a null class or traffic behavior. Examples # Associate traffic class database with traffic behavior test in QoS policy user1.
Examples # Display the configuration information of user-defined QoS policies.
Syntax display qos policy interface [ interface-type interface-number [ slot slot-number ] [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ] [ inbound | outbound ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number to display information about the QoS policy or policies applied to it.
Classifier: default-class Matched : 0/0 (Packets/Bytes) Rule(s) : If-match any Behavior: be Default Queue: Flow Based Weighted Fair Queuing Max number of hashed queues: 256 Matched : 0/0 (Packets/Bytes) Enqueued : 0/0 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) Discard Method: Tail Classifier: USER1 Matched : 0/0 (Packets/Bytes) Operator: AND Rule(s) : If-match ip-precedence 5 Behavior: USER1 Marking 0(Packets): Remark IP Precedence 3 Committed Access Rate: CIR 200 (kbps), CBS 15000 (byte), EBS 0 (byte
Discard Method: Tail Nest Policy: Traffic policy son1 Classifier: default-class Matched : 0/0 (Packets/Bytes) 5-minute statistics: Forwarded: 0/0 (pps/bps) Dropped : 0/0 (pps/bps) Rule(s) : If-match any Behavior: be Default Queue: Flow Based Weighted Fair Queuing Max number of hashed queues: 256 Matched : 0/0 (Packets/Bytes) Enqueued : 0/0 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) Discard Method: Tail Classifier: son1 Matched : 0/0 (Packets/Bytes) 5-minute statistics: Forwarded: 0/0 (pps/bps) Dropp
Field Description Enqueued Number of packets/bytes enqueued. Operator Logical relationship between match criteria in the class. Rule(s) Match criteria in the class. Behavior Behavior name and configuration information. Discarded Number of packets/bytes dropped. Discard Method Drop mode. Marking Marking-related information. Green Action Action to take on green packets. Red Action Action to take on red packets. Green Traffic statistics for green packets.
vlan vlan-id: Displays information about the QoS policy or policies applied to the VLAN specified by its ID. inbound: Displays information about the QoS policy applied to the inbound direction of the specified VLAN. 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. |: Filters command output by specifying a regular expression.
Operator: AND Rule(s) : If-match acl 2000 Behavior: 2 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) Red : 43904(Bytes) Table 21 Command output Field Description Vlan ID of the VLAN where the QoS policy is applied. Direction Direction in which the QoS policy is applied for the VLAN. Classifier Class name and its contents.
Views Interface view, PVC view Default command level 2: System level Parameters inbound: Inbound direction. outbound: Outbound direction. policy-name: Specifies a policy name, a string of 1 to 31 characters. Usage guidelines To successfully apply a policy to an interface or PVC, make sure that the total bandwidth assigned to AF and EF in the policy is smaller than the available bandwidth of the interface or PVC.
qos apply policy (user-profile view) Use qos apply policy to apply a QoS policy to a user profile. Use undo qos apply policy to remove the QoS policy. Syntax qos apply policy policy-name { inbound | outbound } undo qos apply policy [ policy-name ] { inbound | outbound } Views User profile view Default command level 2: System level Parameters inbound: Applies the QoS policy to the traffic sent by the online users. outbound: Applies the QoS policy to the traffic received by the online users.
Default command level 2: System level 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. Usage guidelines 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. Examples # Define QoS policy user1.
Command 6602 HSR6602 6604/6608/6616 qos vlan-policy No No Yes on routers installed with the MPU RPE-X1 or RSE-X1 Examples # Apply the QoS policy test to the inbound direction of VLAN 200, VLAN 300, VLAN 400, and VLAN 500. system-view [Sysname] qos vlan-policy test vlan 200 300 400 500 inbound reset qos vlan-policy Use reset qos vlan-policy to clear the statistics of the QoS policy applied in a certain direction of a VLAN.
Priority mapping commands The commands in this chapter are supported only on SAP modules operating in bridge mode. Priority mapping table commands display qos map-table Use display qos map-table to display the configuration of a priority mapping table. Syntax display qos map-table [ dot1p-dp | dot1p-lp | dscp-dot1p | dscp-dp | dscp-dscp ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters dot1p-dp: 802.1p-to-drop mapping table.
0 : 2 1 : 0 2 : 1 3 : 3 4 : 4 5 : 5 6 : 6 7 : 7 # Display the configuration information of the 802.1p-to-drop mapping table.
Syntax import import-value-list export export-value undo import { import-value-list | all } Views Priority mapping table view Default command 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. Usage guidelines In the DSCP-to-drop mapping table, the router does not support mapping DSCP values to drop precedence 1. Examples # Configure the 802.1p-to-drop mapping table to map 802.
Usage guidelines For the DSCP-to-drop mapping table, the router does not support mapping DSCP values to drop precedence 1. Examples # Enter the inbound 802.1p-to-drop mapping table view. system-view [Sysname] qos map-table inbound dot1p-dp [Sysname-maptbl-dot1p-dp] Related commands display qos map-table Port priority commands qos priority Use qos priority to change the port priority of an interface. Use undo qos priority to restore the default.
Per-port priority trust mode commands display qos trust interface Use display qos trust interface to display priority trust mode and port priority information on an interface. Syntax display qos trust interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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.
qos trust Use qos trust to configure an interface to use a particular priority field carried in packets for priority mapping. Use undo qos trust to restore the default priority trust mode. Syntax qos trust dscp undo qos trust Default No trusted packet priority type is configured. Views Interface view, port group view Default command level 2: System level Parameters dscp: Uses the DSCP value in incoming packets for priority mapping.
Traffic policing, GTS, and rate limit commands Traffic policing commands display qos car interface Use display qos car interface to display the CAR settings and operational statistics on a specified interface. Syntax display qos car interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number.
Red : 0(Packets) 0(Bytes) Direction: Outbound Rule(s): If-match ACL CIR 10 (kbps), 2002 CBS 1875 (byte), EBS 0 (byte) Green Action: pass Red Action : discard Green : 0(Packets) 0(Bytes) Red : 0(Packets) 0(Bytes) Table 24 Command output Field Description Interface Interface name, including interface type and interface number. Direction Direction in which traffic policing is applied. Rule(s) Match criteria. CIR CIR in kbps.
Usage guidelines If no carl-index is specified, this command displays information about all the CAR lists. Examples # Display the rule indexed 1 in the CARL. display qos carl 1 Current CARL Configuration: List Params -----------------------------------------------------1 MAC Address 0001-0001-0001 Table 25 Command output Field Description List CAR list number. Params Match object. qos car Use qos car to configure a CAR policy on an interface or port group.
ebs excess-burst-size: EBS in bytes. The default is 0. green: Action conducted to packets when the traffic rate conforms to CIR. The default is pass. red: Action conducted to packets when the traffic rate exceeds CIR. The default is discard. action: Action conducted to packets: • continue: Continues to process the packet using the next CAR policy. • discard: Drops the packet. • pass: Permits the packet to pass through. • remark-dot1p-continue new-cos: Sets the 802.1p priority value of the 802.
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 Views System view Default command level 2: System level Parameters carl-index: Specifies a CAR list by its number in the range of 1 to 199.
To perform rate limiting for a single IP address, use the qos car acl command in interface view. When you apply an IP network segment-based CAR list to an interface with the qos car command, the CIR you defined takes different meanings depending on the configuration of the per-address keyword and the shared-bandwidth keyword for the CAR list.
Syntax display qos gts interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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 Fundamentals Configuration Guide.
Field Description Queue Length Number of packets that the buffer can hold. Queue Size Number of packets in the buffer. Passed Number and bytes of the packets that have passed. Discarded Number and bytes of dropped packets. Delayed Number and bytes of delayed packets. qos gts Use qos gts to set GTS parameters for a specific class of traffic or all the traffic on the interface or port group. Use qos gts acl to set GTS parameters for the traffic matching the specific ACL.
queue-length queue-length: Maximum queue length in the buffer. The maximum buffer queue length is 50 by default. Usage guidelines The qos gts any, qos gts acl, and qos gts queue commands are mutually exclusive with one another. GTS for software forwarding does not support IPv6. 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.
Examples # Display the rate limit configuration information and operational statistics on all the interfaces. display qos lr interface Interface: GigabitEthernet1/0/1 Direction: Outbound CIR 10 (kbps), CBS 1875 (byte), EBS 0 (byte) Passed : 0(Packets) 0(Bytes) Delayed: 0(Packets) 0(Bytes) Active Shaping: NO Table 27 Command output Field Description Interface Interface type and interface number. Direction Direction in which the rate limit configuration is applied: inbound or outbound.
Usage guidelines 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 # Limit the rate of outgoing packets on GigabitEthernet 1/0/1, with CIR 20 kbps, CBS 2000 bytes, and EBS 0.
Congestion management commands FIFO queuing commands qos fifo queue-length Use qos fifo queue-length to set the FIFO queue length. Use undo qos fifo queue-length to restore the default. Syntax qos fifo queue-length queue-length undo qos fifo queue-length Views Interface view, PVC view Default command level 2: System level Parameters queue-length: Specifies the maximum queue length.
PQ commands display qos pq interface Use display qos pq interface to display the Priority Queuing (PQ) configuration and statistics of an interface or all the interfaces. Syntax display qos pq interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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.
Field Description Size Number of packets in a queue. Length Queue length, which specifies the maximum number of packets a queue can hold. Discards Number of dropped packets. Top Top priority queue. Middle Middle priority queue. Normal Normal priority queue. Bottom Bottom priority queue. Related commands qos pq display qos pql Use display qos pql to display the configuration information of a PQ list or all the PQ lists.
2 Bottom Length 40 Related commands • qos pq pql • qos pq qos pq Use qos pq to apply a PQ list to an interface. Use undo qos pq to restore the default. Syntax qos pq pql pql-index undo qos pq Default The congestion management policy of an interface is FIFO. Views Interface view, PVC view Default command level 2: System level Parameters pql: Specifies a PQ list. pql-index: PQ list index in the range of 1 to 16. Usage guidelines An interface can use only one PQ list.
qos pql default-queue Use qos pql default-queue to specify the default queue for packets matching no match criterion. Use undo qos pql default-queue to restore the default. Syntax qos pql pql-index default-queue { bottom | middle | normal | top } undo qos pql pql-index default-queue Views System view Default command level 2: System level Parameters pql-index: PQ list index in the range of 1 to 16. top, middle, normal, bottom: Corresponds to the four queues in PQ in descending priority order.
Default command level 2: System level Parameters pql-index: PQ list index in the range of 1 to 16. top, middle, normal, bottom: Corresponds to the four queues in PQ in descending priority order. ip [ queue-key key-value ]: Classifies and enqueues IP packets. If neither the queue-key argument nor the key-value argument is specified, all IP packets are enqueued.
undo qos pql pql-index queue { bottom | middle | normal | top } queue-length Default The queue length values for the four priority queues are as follows: Views System view Default command level 2: System level Parameters pql-index: PQL index in the range of 1 to 16. queue-length: Queue length for the specified queue, in the range of 1 to 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 all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Syntax display qos cql [ cql-index ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters cql-index: CQ list index in the range of 1 to 16. |: 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.
Default command level 2: System level Parameters cql-index: CQ list index in the range of 1 to 16. Usage guidelines All physical interfaces can use CQ. An interface can use only one CQ list. You can configure multiple match criteria for a CQ list. During traffic classification, the system matches packets with the rules in the CQ list. If a packet matches a certain rule, the packet is assigned to the queue, and the matching process is over.
Parameters cql-index: CQ list index in the range of 1 to 16. queue-number: Queue number in the range of 1 to 16. Usage guidelines Packets that match no match criterion are allocated to the default queue. Examples # Specify queue 2 as the default queue for CQ list 5.
queue-key key-value Description greater-than Length (0 to 65535) IP packets larger than a specified value are enqueued. less-than Length (0 to 65535) IP packets smaller than a specified value are enqueued. tcp Port number (0 to 65535) IP packets with a specified TCP source or destination port number are enqueued. udp Port number (0 to 65535) IP packets with a specified UDP source or destination port number are enqueued.
queue-length queue-length: Specifies the maximum queue length in the range of 1 to 1024. This argument is 20 by default. Usage guidelines If the queue is full, subsequent packets are dropped. Examples # Set the length of queue 4 in CQ list 5 to 40.
WFQ commands display qos wfq interface Use display qos wfq interface to display weighted fair queuing (WFQ) configuration and statistics of an interface or all interfaces. Syntax display qos wfq interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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.
Field Description Size Number of packets in the queue. Length Queue length. Discards Number of dropped packets. Hashed by Weight type: IP precedence or DSCP. Hashed queues Information about hashed queues. Active Number of active hashed queues. Max active Maximum number of active hashed queues. Total Total number of hashed queues. Related commands qos wfq qos wfq Use qos wfq to apply WFQ to an interface or modify WFQ parameters on an interface/PVC.
Usage guidelines You must enable the rate limit 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. Examples # Apply WFQ to GigabitEthernet 1/0/1, set the maximum queue length to 100, and the total number of queues to 512.
Usage guidelines 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.
Views Interface view Default command level 2: System level Parameters bandwidth: Maximum available bandwidth of the interface, in the range of 1 to 10000000 kbps. Usage guidelines HP recommends that you configure the maximum available bandwidth to be smaller than the actual available bandwidth of a physical interface or logical link. If the maximum available bandwidth is not configured, the base QoS bandwidth used for CBQ calculation is as follows: • Actual baudrate or rate of an physical interface.
Views Interface view, PVC view Default command level 2: System level Parameters pct percent: Specifies the percentage of available bandwidth to be reserved. The value range is 1 to 100, and the default is 80. Usage guidelines The maximum reserved bandwidth is set on a per-interface basis. It decides the maximum bandwidth assignable for the QoS queues on an interface. It is typically set no greater than 80% of available bandwidth, considering the bandwidth for control traffic and Layer 2 frame headers.
• 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. Examples # Configure AF in traffic behavior database and assign the minimum guaranteed bandwidth 200 kbps for it.
The bandwidths assigned for AF and EF in a policy must have the same type, bandwidth or 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.
[Sysname] traffic behavior test [Sysname-behavior-test] queue wfq queue-number 16 [Sysname] qos policy user1 [Sysname-qospolicy-user1] classifier default-class behavior test Related commands • qos policy • traffic behavior • classifier behavior queue-length Use queue-length to configure the maximum queue length and use tail drop. Use undo queue-length to delete the configuration. Syntax queue-length queue-length undo queue-length queue-length Default Tail drop is used.
Related commands • qos policy • traffic behavior • classifier behavior wred Use wred to enable WRED drop. Use undo wred to disable WRED. Syntax wred [ dscp | ip-precedence ] undo wred Views Traffic behavior view Default command level 2: System level Parameters dscp: Uses the DSCP value for calculating drop probability of a packet. ip-precedence: Uses the IP precedence value for calculating drop probability of a packet. This keyword is the default.
Syntax wred dscp dscp-value low-limit low-limit high-limit high-limit [ discard-probability discard-prob ] undo wred dscp dscp-value Views Traffic behavior view Default command level 2: System level Parameters dscp-value: DSCP value in the range of 0 to 63. This argument can also be represented using one of the keywords listed in Table 17. low limit low-limit: Specifies the lower WRED limit in number of packets. The value range for the low-limit argument is 1 to 1024, and the default is 10.
Syntax wred ip-precedence precedence low-limit low-limit high-limit high-limit [ discard-probability discard-prob ] undo wred ip-precedence precedence Views Traffic behavior view Default command level 2: System level Parameters precedence: IP precedence in the range of 0 to 7. low limit low-limit: Specifies the lower WRED limit in number of packets. The value range for the low-limit argument is 1 to 1024, and the default is 10. high-limit high-limit: Specifies the upper WRED limit in number of packets.
Syntax wred weighting-constant exponent undo wred weighting-constant Views Traffic behavior view Default command level 2: System level Parameters exponent: Exponent in the range of 1 to 16. This argument is 9 by default. Usage guidelines Before configuring this command, make sure that the queue af command or the queue wfq command is configured and WRED drop is enabled using the wred command. The wred weighting-constant command configuration is removed if the wred command configuration is removed.
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. include: Displays all lines that match the specified regular expression.
Views Interface view, PVC view Default command level 2: System level Parameters start-port first-rtp-port-number: First UDP port number in the range of 2000 to 65535. end-port last-rtp-port-number: Last UDP port number in the range of 2000 to 65535. bandwidth bandwidth: Bandwidth for the RTP priority queue, in the range of 8 to 1000000 in kbps and is a part of the maximum reserved bandwidth. cbs burst: CBS in the range of 1500 to 2000000 bytes.
Default The feature is disabled. Views Interface view Default command level 2: System level Parameters token-number: Number of tokens, in the range 1 to 50. Usage guidelines This command is supported only on serial interfaces. After you configure this command on an interface, you must execute the shutdown command and then the undo shutdown command on the interface to have the feature take effect.
Default command level 2: System level Examples # Enable packet information pre-extraction on tunnel interface Tunnel 1.
Hardware congestion management commands The commands in this chapter are supported only on SAP modules operating in bridge mode. SP queuing commands display qos sp Use display qos sp interface to view the strict priority (SP) queuing configuration of an interface.
Field Description Strict-priority queue SP queuing is used for queue scheduling. Related commands qos sp qos sp Use qos sp to configure SP queuing on an interface. Use undo qos sp to restore the default. Syntax qos sp undo qos sp Default SP queuing is used. Views Interface view, port group view Default command level 2: System level Parameters None. Usage guidelines Settings in interface view take effect on the current interface.
Syntax display qos wrr interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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 Fundamentals Configuration Guide.
Related commands qos wrr qos wrr Use qos wrr to enable WRR queuing. Use undo qos wrr to disable WRR queuing. Syntax qos wrr undo qos wrr Default An interface uses SP queuing. Views Interface view, port group view Default command level 2: System level Parameters None. Usage guidelines Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.
Views Interface view, port group view Default command level 2: System level Parameters queue-id: Specifies a queue by its ID in the range of 0 to n-1 (n is the maximum number of queues on an interface and varies by device). sp: Specifies strict priority (SP) queuing. Usage guidelines This command is available only on a WRR-enabled interface. Queues in the SP group are scheduled with SP. The SP group has strict higher scheduling priority than the WRR groups.
weight schedule-value: Specifies a scheduling weight for the specified queue in packet-based WRR queuing. The value range for the schedule-value argument is 1 to 8. Table 37 shows the default weight values for queues. Table 37 Default weight values for queues Queue Weight 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 Usage guidelines Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.
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. include: Displays all lines that match the specified regular expression.
Syntax qos bandwidth queue queue-id min bandwidth-value undo qos bandwidth queue queue-id [ min bandwidth-value ] Views Interface view, port group view Default command level 2: System level Parameters queue-id: Queue ID. min bandwidth-value: Sets the minimum guaranteed bandwidth in kbps for a queue when the port is congested. Usage guidelines Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.
You must enable WFQ before you can configure WFQ queuing parameters for a queue on an interface. Examples # Enable WFQ on GigabitEthernet 1/0/1. system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos wfq qos wfq weight Use qos wfq weight to assign a queue to a WFQ group, with a certain scheduling weight, on an interface that performs packet-based WRR queuing. Use undo qos wfq weight to restore the default WFQ settings of a queue on an interface.
CBQ commands queue af Use queue af to enable assured-forwarding (AF) and set the minimum guaranteed bandwidth. Use undo queue af to delete the configuration from the traffic behavior. Syntax queue af bandwidth bandwidth undo queue af Views Traffic behavior view Default command level 2: System level Parameters bandwidth: Specifies the minimum guaranteed bandwidth in the range of 8 to 10000000 kbps.
Default command level 2: System level Parameters bandwidth: Specifies the maximum queue bandwidth in the range of 8 to 10000000 kbps. cbs burst: Sets the committed burst size (CBS) in the range of 32 to 40000000 bytes. Usage guidelines You can define only one EF or AF action in a traffic behavior. The EF and AF actions can overwrite each other, whichever is last configured. If CBS is not set in the queue ef command, it equals bandwidth × 25.
Related commands • qos policy • traffic behavior • classifier behavior wred Use wred to enable WRED drop in a traffic behavior. Use undo wred to delete the configuration from a traffic behavior. Syntax wred [ dscp | ip-precedence ] undo wred Views Traffic behavior view Default command level 2: System level Parameters dscp: Uses DSCP for calculating drop probability for a packet. ip-precedence: Uses IP precedence for calculating drop probability for a packet.
Congestion avoidance commands WRED commands display qos wred interface Use display qos wred interface to display the WRED configuration and statistics of an interface/PVC. Syntax display qos wred interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command 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.
Table 39 Command output 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 Upper limit for a queue. Discard probability Drop probability. qos wred enable Use qos wred enable to enable WRED on an interface/PVC.
• display qos wred interface qos wred dscp Use qos wred dscp to configure the lower limit, upper limit, and drop probability for a DSCP value. Use undo qos wred dscp to restore the default. Syntax qos wred dscp dscp-value low-limit low-limit high-limit high-limit discard-probability discard-prob undo qos wred dscp dscp-value Views Interface view, PVC view Default command level 2: System level Parameters dscp-value: DSCP value in the range of 0 to 63.
Use undo qos wred ip-precedence to restore the default. 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 Views Interface view, PVC view Default command level 2: System level Parameters ip-precedence precedence: IP precedence value in the range of 0 to 7. low limit low-limit: Specifies the lower WRED limit in number of packets.
Views Interface view, PVC view Default command level 2: System level Parameters exponent: Exponent for average queue length calculation, in the range of 1 to 16. This argument is 9 by default. Usage guidelines Before this configuration, enable WRED on the interface/PVC with the qos wred enable command first. Examples # Set the exponent for the average queue length calculation to 6 on GigabitEthernet 1/0/1.
Usage guidelines If no WRED table name is specified, this command displays the configuration of all the WRED tables. Examples # Display the configuration of WRED table 1.
undo qos wred table table-name Default No global WRED table is created. Views System view Default command level 2: System level Parameters queue: Creates a queue-based table. Packets are dropped based on the queue when congestion occurs. table table-name: Specifies a name for the table. Usage guidelines A WRED table in use cannot be removed. A queue-based WRED table applies to only Layer 2 ports. Examples # Create an EXP-based WRED table named 1.
drop-level drop-level: Drop level. If this argument is not specified, the subsequent configuration takes effect on the packets in the queue regardless of the drop level. low limit low-limit: Specifies the lower WRED limit in number of packets. The value range for the low-limit argument is 1 to 1024, and the default is 10. discard-probability discard-prob: Specifies the denominator for the drop probability. The value range for the discard-prob argument is 0 to 90, and the default is 10.
Related commands • display qos wred interface • display qos wred table • qos wred table 136
DAR commands The following matrix shows the commands and router compatibility: Commands 6602 HSR6602 6604/6608/6616 DAR commands Yes No No dar enable Use dar enable to enable DAR for traffic recognition on the current interface. Use undo dar enable to disable DAR on the current interface. Syntax dar enable undo dar enable Default DAR is disabled on an interface.
Default command level 2: System level Parameters filename: P2P signature file name, which must be suffixed with .mtd. Usage guidelines Place the signature file in the root directory. The system can load a signature file only from the root directory. Examples # Load the P2P signature file p2p.mtd. system-view [Sysname] dar p2p signature-file flash:/p2p.mtd dar protocol-group Use dar protocol-group to create a P2P protocol group and enter its view.
undo dar protocol-statistic Default The packet accounting function of DAR is disabled. Views Ethernet interface view Default command level 2: System level Parameters flow-interval time: Specifies the accounting interval in the range of 1 to 30 minutes and defaulting to 5 minutes. Usage guidelines The packet accounting function of DAR collects the traffic statistics on a per-application basis on interfaces. It helps you identify aggressive applications.
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. Examples # Display the DAR packet statistics in both directions for all interfaces.
Views Protocol group view Default command level 2: System level Parameters protocol-name: Protocol name, a string of 1 to 31 characters. Usage guidelines 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. Examples # Add protocol MSN to protocol group 1.
QPPB commands bgp-policy Use bgp-policy to enable the QPPB function, which transmits the apply ip-precedence and apply qos-local-id configuration through BGP routing policies. Use undo bgp-policy to cancel the configuration. Syntax bgp-policy { destination | source } { ip-prec-map | ip-qos-map } * undo bgp-policy { destination | source } [ ip-prec-map | ip-qos-map ] * Default QPPB is disabled.
Related commands • route-policy (Layer 3—IP Routing Command Reference) • apply ip-precedence (Layer 3—IP Routing Command Reference) • apply qos-local-id (Layer 3—IP Routing Command Reference) 143
MPLS QoS commands if-match mpls-exp Use if-match mpls-exp to define an MPLS EXP-based match criterion. Use undo if-match mpls-exp to remove the match criterion. Syntax if-match [ not ] mpls-exp exp-value-list undo if-match [ not ] mpls-exp exp-value-list Views Traffic class view Default command level 2: System level Parameters not: Matches packets not conforming to the specified criterion. exp-value-list: List of EXP values. You can enter up to eight EXP values. An EXP value is in the range of 0 to 7.
Parameters cql-index: CQ list index in the range of 1 to 16. queue queue: Specifies a custom queue by its number in the range of 1 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. Usage guidelines This command can be executed multiple times with the same cql-index argument to create multiple classification rules for the CQ list. The classification rules of a CQ list are matched in the order configured.
[Sysname] qos pql 10 protocol mpls exp 5 queue top Related commands qos pql protocol remark mpls-exp Use remark mpls-exp to remark the EXP value for MPLS packets. Use undo remark mpls-exp to remove the configuration. Syntax remark mpls-exp exp-value undo remark mpls-exp Views Traffic behavior view Default command level 2: System level Parameters exp-value: EXP value in the range of 0 to 7. Examples # Set the EXP value to 0 for MPLS packets.
FR QoS configuration commands cbs Use cbs to set the CBS for the FR PVCs. Use undo cbs to restore the default. Syntax cbs [ inbound | outbound ] committed-burst-size undo cbs [ inbound | outbound ] Views FR class view Default command 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. outbound: Sets the CBS for the outgoing packets.
Use undo cir to restore the default. Syntax cir committed-information-rate undo cir Views FR class view Default command level 2: System level Parameters committed-information-rate: Minimum CIR in the range of 1000 to 45000000 bps. The CIR is 56000 bps by default. Usage guidelines CIR is the minimum transmit rate that a PVC can provide. When congestion occurs to the network, the user can still send data at the rate of CIR.
Default command level 2: System level Parameters inbound: Sets the CIR ALLOW for the incoming packets. This argument is available when FR traffic policing is enabled on interfaces. outbound: Sets the CIR ALLOW for the outgoing packets. This argument is available when FR traffic policing is enabled on interfaces. committed-information-rate: CIR ALLOW in the range of 1000 to 45000000 bps. The CIR ALLOW is 56000 bps by default.
ecn: Sets the BECN flag bits and FECN flag bits of FR packets to 1 when congestion occurs. queue-percentage: Threshold for network congestion, expressed in the usage percentage of PVC queues (the percentage of the current PVC queue length to the total queue length). The value range for this argument is 1 to 100, and the default is 7. Usage guidelines When the percentage of the current PVC queue length to the total PVC queue length exceeds the set threshold for congestion, congestion occurs to the PVCs.
Usage guidelines For this command, you can specify an FR class name, or specify a primary interface. However, you cannot specify a subinterface. Examples # Display the mapping relationship between Serial 2/0/1 and FR classes. display fr class-map interface Serial 2/0/1 Serial2/0/1 fr-class ts1 Serial2/0/1.1 fr-class ts2 fr dlci 100 Serial2/0/1 fr-class ts fr dlci 222 Serial2/0/1.
Parameters interface interface-type interface-number: Displays the FR fragmentation information about an interface specified by its type and number. dlci-number: Displays the FR fragmentation information for an DLCI specified by its number in the range of 16 to 1007. With this argument specified, this command displays the detailed fragmentation information. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Table 44 Command output Field Description Type Fragment type, which can only be FRF12. Size Fragment size in bytes. 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. out pkts / out bytes Number of outgoing packets and bytes of outgoing packets.
display fr switch-table all Total PVC switch records:2 PVC-Name Status a Inactive Pos4/1/0(50) Interface(Dlci) <-----> Interface(Dlci) Pos4/1/1(50) b Active Pos5/2/3(50) Pos5/2/1(40) Table 45 Command output Field Description PVC-Name Name of a switching PVC. Status Connection state of the frame relay switching link. Interface The first interface represents a local interface, and the second interface represents a peer interface.
system-view [Sysname] fr class test1 [Sysname-fr-class-test1] ebs 32000 Related commands • cbs • cir allow • cir fifo queue-length Use fifo queue-length to set the FIFO queue length for FR PVCs. Use undo fifo queue-length to restore the default. Syntax fifo queue-length queue-length undo fifo queue-length Views FR class view Default command level 2: System level Parameters queue-length: FIFO queue length, which specifies the maximum number of packets that a FIFO queue can hold.
Syntax fr class class-name undo fr class class-name Default No FR class is created. Views System view Default command level 2: System level Parameters class-name: Name of an FR class, a string of 1 to 30 characters. Usage guidelines 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.
ecn: Sets the BECN flag bits and FECN flag bits of FR packets to 1 when congestion occurs. queue-percentage: Congestion threshold, expressed in the interface queue utilization rate, which means the percentage of the current interface queue length to the total queue length. The value range for this argument is 1 to 100, and the default is 100. Usage guidelines This command is similar to the congestion-threshold command.
With a DE rule list applied to an FR PVC, the DE flag bits of packets matching the DE rule list are set to 1. Examples # Apply DE rule list 3 to DLCI 100 of Serial 2/0/1. system-view [Sysname]interface Serial 2/0/1 [Sysname-Serial2/0/1] fr dlci 100 [Sysname-Serial2/0/1] fr de del 3 dlci 100 Related commands • fr del inbound-interface • fr del protocol fr del inbound-interface Use fr del inbound-interface to configure an interface-based DE rule list.
• fr del protocol fr del protocol Use fr del protocol ip to configure an IP protocol-based DE rule list. The DE flag bits of FR packets encapsulated with the IP packets matching the specific rule are set to 1. Use undo fr del protocol ip to remove the specific DE rules from the DE rule list.
Examples # Add a rule that sets the DE flag bits of all the FR packets encapsulated with IP packets to 1 to DE rule list 1. system-view [Sysname] fr del 1 protocol ip Related commands • fr de del • fr del inbound-interface fr traffic-policing Use fr traffic-policing to enable FR traffic policing. Use undo fr traffic-policing to disable FR traffic policing.
Default FRTS is disabled. Views FR interface view, MFR interface view Default command level 2: System level Usage guidelines FRTS is applied to the outgoing interfaces and are usually applied to the DCE of an FR network. Examples # Enable FRTS on Serial 2/0/1.
[Sysname] fr class test1 [Sysname-fr-class-test1] fragment 128 Related commands fr class fr-class Use fr-class to associate an FR class with the current FR PVC or FR interface. Use undo fr-class to cancel the association. Syntax fr-class class-name undo fr-class class-name Default No FR class is associated with an FR PVC or an FR interface. Views FR DLCI view, FR interface view Default command level 2: System level Parameters class-name: Name of an FR class, a string of 1 to 30 characters.
pq Use pq to apply PQ to the FR PVCs. Use undo pq to restore the default queuing (FIFO queuing). Syntax pq pql pql-index undo pq Default FR PVCs adopt FIFO queuing. Views FR class view Default command level 2: System level Parameters pql-index: PQL index in the range of 1 to 16. Examples # Apply PQL 10 to the FR class test1.
Parameters bottom: Specifies the bottom queue. middle: Specifies the middle queue. normal: Specifies the normal queue. top: Specifies the top queue. Usage guidelines PVC PQ queues include the top queue, the middle queue, the normal queue, and the bottom queue, in descending priority order. The packets of a given PVC can only be assigned to a specific queue. Examples # Assign packets from the PVCs associated with the FR class test1 to the top queue of PVC PQ.
preferentially within the configured bandwidth. When no congestion occurs to the PVC, packets destination to the UDP ports within the specified range can be transmitted using the available bandwidth of the PVC. The UDP port range for VoIP is generally configured as 16384 to 37267. Examples # Apply RTPQ to the FR class test1 and set the RTP priority queue length to 20 kbps.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
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. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
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. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGIPQRSTW display qos cql,93 A display qos gts interface,80 accounting,43 display qos lr interface,83 acl,1 display qos map-table,69 acl accelerate,2 display qos policy,57 acl copy,3 display qos policy interface,58 acl ipv6,4 display qos pq interface,87 acl ipv6 copy,5 display qos pql,88 acl ipv6 name,5 display qos rtpq interface,111 acl name,6 display qos sp,116 B display qos trust interface,73 bgp-policy,142 display qos vlan-policy,62 C display qos wfq interface,99 displ
gts percent,48 qos wfq weight,124 I qos wred apply,135 qos wred dscp,130 if-match,36 qos wred enable,129 if-match mpls-exp,144 qos wred ip-precedence,130 import,70 qos wred table,133 P qos wred weighting-constant,131 pq,163 qos wrr,119 protocol,140 qos wrr group sp,119 pvc-pq,163 qos wrr weight,120 queue,134 Q queue af,104 qos apply policy (interface view),64 queue af,125 qos apply policy (user-profile view),66 queue ef,105 qos bandwidth queue,122 queue ef,125 qos car,77 queue wfq
Websites,166 time-range,32 traffic behavior,54 wred,108 traffic classifier,42 wred,127 traffic-policy,55 wred dscp,108 traffic-shaping adaptation,165 wred ip-precedence,109 W wred weighting-constant,110 171