HP HSR6800 Routers ACL and QoS Command Reference Part number: 5998-4510 Software version: HSR6800-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-
MPLS QoS commands ············································································································································ 138 if-match mpls-exp ················································································································································· 138 qos cql protocol mpls exp ·································································································································· 138 qos pql protocol mpl
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.
Parameters acl-number: Specifies an IPv4 ACL by its number: • 2000 to 2999 for IPv4 basic ACLs • 3000 to 3999 for IPv4 advanced ACLs • 4000 to 4999 for Ethernet frame header ACLs 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.
Table 1 Command output Field Description Basic ACL 2000 Category and number of the ACL. The following field information is about IPv4 basic ACL 2000. 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.
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 ACL acceleration status for the specified IPv4 ACL or all IPv4 basic and IPv4 advanced ACLs.
Default command level 1: Monitor level Parameters acl6-number: Specifies an ACL by its number: • 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs all: Displays information for all IPv6 basic 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. It must start with an English letter. slot slot-number: Displays the match statistics for ACLs on a card.
Table 3 Command output Field Description Basic IPv6 ACL 2000 Category and number of the ACL. The following field information is about this IPv6 basic ACL 2000. named flow The name of the ACL is flow. "-none-" means the ACL is not named. 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.
|: 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 Resource type: Type • • • • • • VFP ACL—ACL rules for QinQ before Layer 2 forwarding IFP ACL—ACL rules applied to inbound traffic IFP Meter—Traffic policing rules for inbound traffic IFP Counter—Traffic counting rules for inbound traffic EFP Meter—Traffic policing rules for outbound traffic EFP Counter—Traffic counting rules for outbound traffic Total Total number of ACL rules supported. Reserved Number of reserved ACL rules. Configured Number of ACL rules that have been applied.
14:00 to 16:00 Wed from 00:00 1/1/2010 to 00:00 2/1/2010 from 00:00 6/1/2010 to 00:00 7/1/2010 Table 5 Command output Field Description Current time Current system time. Time-range Configuration and status of the time range, including its name, status (active or inactive), and start time and end time. reset acl counter Use reset acl counter to clear statistics for one or all IPv4 basic, IPv4 advanced, and Ethernet frame header ACLs.
Views User view Default command level 2: System level Parameters acl6-number: Specifies an ACL by its number: • 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs all: Clears statistics for all IPv6 basic and 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. It must start with an English letter. Examples # Clear statistics for IPv6 basic ACL 2001.
deny: Denies matching packets. permit: Allows matching packets to pass. cos vlan-pri: Matches an 802.1p priority. The vlan-pri argument can be a number in the range of 0 to 7, or in words, best-effort (0), background (1), spare (2), excellent-effort (3), controlled-load (4), video (5), voice (6), or network-management (7). counting: Counts the number of times the ACL rule has been matched. dest-mac dest-address dest-mask: Matches a destination MAC address range.
Use undo rule to delete an entire IPv4 advanced 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.
Parameters Function Description counting Counts the number of times the ACL rule has been matched. This option is disabled by default. N/A precedence precedence Specifies an IP precedence value The precedence argument can be a number in the range of 0 to 7, or in words, routine (0), priority (1), immediate (2), flash (3), flash-override (4), critical (5), internet (6), or network (7).
Table 7 TCP/UDP-specific parameters for IPv4 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). source-port operator port1 [ port2 ] Specifies one or more UDP or TCP source ports. destination-port operator port1 [ port2 ] Specifies one or more UDP or TCP destination ports.
ICMP message name ICMP message type ICMP message code host-redirect 5 1 host-tos-redirect 5 3 host-unreachable 3 1 information-reply 16 0 information-request 15 0 net-redirect 5 0 net-tos-redirect 5 2 net-unreachable 3 0 parameter-problem 12 0 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 perm
[Sysname-acl-adv-3002] rule permit tcp source-port eq ftp-data [Sysname-acl-adv-3002] rule permit tcp destination-port eq ftp [Sysname-acl-adv-3002] rule permit tcp destination-port eq ftp-data # Create IPv4 advanced ACL rules to permit inbound and outbound SNMP and SNMP trap packets.
fragment: Applies the rule only to non-first fragments. A rule without this keyword applies to both fragments and non-fragments. logging: Logs matching packets. This function is available only when the application module (such as the firewall) that uses the ACL supports the logging function. source { source-address source-wildcard | any }: Matches a source address. The source-address source-wildcard arguments represent a source IP address and wildcard mask in dotted decimal notation.
Syntax rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value | syn syn-value | urg urg-value } * | established } | counting | destination { dest-address dest-prefix | dest-address/dest-prefix | any } | destination-port operator port1 [ port2 ] | dscp dscp | flow-label flow-label-value | fragment | icmp6-type { icmp6-type icmp6-code | icmp6-message } | logging | routing [ type routing-type ] | source { source-address source-prefix | source-address/sou
Parameters Function Description dscp dscp Specifies a DSCP preference. 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 (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). flow-label flow-label-value Specifies a flow label value in an IPv6 packet header.
Parameters Function Description { ack ack-value | fin fin-value | psh psh-value | rst rst-value | syn syn-value | urg urg-value } * Specifies one or more TCP flags, including ACK, FIN, PSH, RST, SYN, and URG. Parameters specific to TCP. Parameter specific to TCP. established Specifies the flags for indicating the established status of a TCP connection. The value for each argument can be 0 (flag bit not set) or 1 (flag bit set).
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. To view rules in an ACL and their rule IDs, use the display acl ipv6 all command. Examples # Create an IPv6 advanced ACL rule to permit TCP packets with the destination port 80 from 2030:5060::/64 to FE80:5060::/96, and enable logging matching packets.
Use undo rule to delete an entire IPv6 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.
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. To view rules in an ACL and their rule IDs, use the display acl ipv6 all command. Examples # Create an IPv6 basic ACL rule to deny the packets from any source IP segment but 1001::/16, 3124:1123::/32, or FE80:5060:1001::/48.
[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 GigabitEthernet 0/0./1. # Create a rule in IPv6 basic ACL 2000 and add a comment about the rule. system-view [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] rule 0 permit source 1001::1 128 [Sysname-acl6-basic-2000] rule 0 comment This rule is used on GigabitEthernet 0/0.1.
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. • When adding an end remark for a rule range, you can specify the end rule number plus 1 for the rule-id argument so all rules in this range appears between the two remarks. You can also specify the end rule number for the rule-id argument. In this approach, the end rule appears below the end remark.
step 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. For example, the default ACL rule numbering step is 5. If you do not assign IDs to rules you are creating, they are numbered 0, 5, 10, 15, and so on. The wider the numbering step, the more rules you can insert between two rules. Whenever the step changes, the rules are renumbered, starting from 0.
Syntax time-range time-range-name { start-time to end-time days [ from time1 date1 ] [ to time2 date2 ] | from time1 date1 [ to time2 date2 ] | to time2 date2 } undo time-range time-range-name [ start-time to end-time days [ from time1 date1 ] [ to time2 date2 ] | from time1 date1 [ to time2 date2 ] | to time2 date2 ] Default No time range exists. Views System view Default command level 2: System level Parameters time-range-name: Specifies a time range name.
• Absolute statement in the from time1 date1 to time2 date2 format. An absolute statement does not recur. • Compound statement in the start-time to end-time days from time1 date1 to time2 date2 format. A compound statement recurs on a day or days of the week only within the specified period.
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. Examples # Configure traffic behavior database to mark matching traffic with local precedence 2. system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark local-precedence 2 Related commands • qos policy • traffic behavior • classifier behavior remark qos-local-id Use remark qos-local-id to configure the action of setting the specified QoS-local ID for packets.
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 In standalone mode: 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 ] In IRF mode: display qos policy interface [ interface-type interface-number [ chassis chassis-number slot slot-number ] [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ] [ inbound | outbound ] [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] [ | { begin | exclude | include } regular-expre
Examples # Display information about the QoS policy or policies applied to GigabitEthernet 1/0/1.
Remark MPLS EXP 3 Assured Forwarding: Bandwidth 30 (Kbps) Matched : 0/0 (Packets/Bytes) Enqueued : 0/0 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) 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
Field Description Direction Direction in which the policy is applied to the interface. Policy Name of the policy applied to the interface. Classifier Class name and configuration information. Matched Number of packets meeting the match criteria. 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.
display qos vlan-policy { name policy-name | vlan [ vlan-id ] } [ chassis chassis-number slot slot-number ] [ inbound | outbound ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters name policy-name: Displays information about the VLAN QoS policy specified by its name, a string of 1 to 31 characters. vlan vlan-id: Displays information about the QoS policy or policies applied to the VLAN specified by its ID.
Field Description outbound QoS policy is applied in the outbound direction of the VLAN. # Display information about the QoS policy applied to VLAN 2.
qos apply policy (interface view) Use qos apply policy to apply a QoS policy to an interface or PVC. 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 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.
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. At the same time, you must configure the qos max-bandwidth command to provide base bandwidth for CBQ bandwidth calculation. Examples # Apply policy USER1 in the outbound direction of GigabitEthernet 1/0/1.
qos policy Use qos policy to create a policy and enter policy view. Use undo qos policy to delete a policy. Syntax qos policy policy-name undo qos policy policy-name Views System view 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.
vlan-id-list: Specifies a list of up to eight VLAN IDs. A VLAN ID is in the range of 1 to 4094. You can enter individual discontinuous VLAN IDs and VLAN ID ranges in the form of start-vlan-id to end-vlan-id, where the start VLAN ID must be smaller than the end VLAN ID. Each item in the VLAN list is separated by a space. inbound: Applies the QoS policy to the incoming packets in the specified VLANs. outbound: Applies the QoS policy to the outgoing packets in the specified VLANs.
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. The value range for the queue-length argument is 1 to 262143 and default value is 1024.
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. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description 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. Syntax display qos pql [ pql-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters pql-number: Priority queue list number. |: Filters command output by specifying a regular expression.
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. Multiple match criteria can be configured for a PQ list.
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. The default queue is the normal queue. Usage guidelines If this command is executed multiple times with the same pql-index argument, the new configuration overrides the previous one.
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. Table 29 Values of the queue-key argument and the key-value argument queue-key key-value Description acl ACL number from 2000 to 3999 IP packets matching the specified ACL are enqueued. fragments — Fragmented IP packets are enqueued.
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. 20 for the top queue • 20 for the top queue • 40 for the middle queue • 60 for the normal queue • 80 for the bottom queue Usage guidelines If a queue is full, all subsequent packets to this queue are dropped. Examples # Set the length of the top queue in PQL 10 to 10.
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. Usage guidelines If no interface is specified, this command displays the CQ configuration and statistics of all the interfaces.
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. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
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. If the packet matches no rule in the CQ list, it is allocated to the default queue.
Examples # Specify queue 2 as the default queue for CQ list 5. system-view [Sysname] qos cql 5 default-queue 2 Related commands • qos cql protocol • qos cql queue serving • qos cql queue queue-length • qos cq qos cql protocol Use qos cql protocol to assign a custom queue for IP packets that match a certain criterion. Use undo qos cql protocol to delete the match criterion.
When the queue-key argument is tcp or udp, the key-value argument can take either a port name or a port number. Usage guidelines The system matches a packet with match criteria of a CQ list in the order configured. When the packet matches a certain criterion, it is allocated to the queue and the matching process is over. You can execute this command multiple times with the same cql-index argument to create multiple match criteria for IP packets.
Related commands • qos cql default-queue • qos cql protocol • qos cql queue serving • qos cq qos cql queue serving Use qos cql queue serving to set the byte count for a custom queue on a CQ list. Use undo qos cql queue serving to restore the default. Syntax qos cql cql-index queue queue-number serving byte-count undo qos cql cql-index queue queue-number serving Views System view Default command level 2: System level Parameters cql-index: CQ list index in the range of 1 to 16.
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. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description 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. Use undo qos wfq to restore the default congestion management mechanism FIFO on the interface/PVC. Syntax qos wfq [ dscp | precedence ] [ queue-length max-queue-length [ queue-number total-queue-number ] ] undo qos wfq Default The weight is based on IP precedence.
[Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos wfq queue-length 100 queue-number 512 Related commands • display interface • display qos wfq interface CBQ commands display qos cbq interface Use display qos cbq interface to display the class-based queue (CBQ) configuration and operational information of an interface/PVC or all interfaces/PVCs.
Output queue : (Protocol queuing : Size/Length/Discards) Output queue : (Class Based Queuing : Size/Discards) Queue Size: 0/0/0 (EF/AF/BE) BE Queues: 0/0/256 (Active/Max active/Total) AF Queues: 1 (Allocated) 0/500/0 0/0 Bandwidth(Kbps): 74992/75000 (Available/Max reserve) Table 33 Command output Field Description Interface Interface type and interface number. Output queue Information about the current output queue. Size Number of packets in the queue. Length Queue length.
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. • Total bandwidth of a logical serial interface formed by binding, such as E1 interfaces, MFR interfaces, and MP interfaces. • 1000000 kbps for template interfaces such as VT and VE interfaces.
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. Use the default maximum reserved bandwidth setting in normal cases. When tuning the setting, make sure that the Layer 2 frame header plus the data traffic is under the maximum available bandwidth of the interface.
Related commands • qos policy • traffic behavior • classifier behavior queue ef Use queue ef to configure expedited forwarding (EF) and assign the maximum bandwidth for it. Use undo queue ef to delete the configuration. Syntax queue ef bandwidth { bandwidth [ cbs burst ] | pct percentage [ cbs-ratio ratio ] } undo queue ef Views Traffic behavior view Default command level 2: System level Parameters bandwidth: Bandwidth in the range of 8 to 1000000 kbps.
[Sysname-behavior-database] queue ef bandwidth 200 cbs 5000 Related commands • qos policy • traffic behavior • classifier behavior queue wfq Use queue wfq to configure WFQ in the traffic behavior. Use undo queue wfq to delete the configuration.
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. Views Traffic behavior view Default command level 2: System level Parameters queue-length: Maximum queue length in the range of 1 to 4096. Usage guidelines Before configuring this command, make sure that the queue af command or the queue wfq command has been configured.
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. Usage guidelines You can configure this command only after you have configured the queue af command or the queue wfq command.
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. high-limit high-limit: Specifies the upper WRED limit in number of packets. The value range for the high-limit argument is 1 to 1024, and the default is 30.
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. The value range for the high-limit argument is 1 to 1024, and the default is 30. discard-probability discard-prob: Specifies the denominator for the drop probability.
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. Examples # Set the exponent for calculating the average queue length to 6.
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. Usage guidelines If no interface is specified, this command displays the RTP priority queuing configuration and statistics of all the interfaces.
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. Usage guidelines This command provides preferential services for delay-sensitive applications, such as real-time voice transmission. Set the bandwidth argument to a value greater than the total bandwidth that the real-time application requires to allow bursty traffic.
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. During FTP transmission, flow control provided by the upper layer protocol might invalidate the QoS queuing configuration. The QoS token feature provides a flow control mechanism for underlying-layer queues.
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.
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. Settings in port group view take effect on all ports in the port group. Examples # Enable SP queuing on GigabitEthernet 1/0/1.
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. 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.
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. You must enable WRR queuing before you can configure WRR queuing parameters for a queue on an interface.
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. Settings in Ethernet interface view take effect on the current interface only.
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. Examples # Enable packet-based WRR queuing on GigabitEthernet 1/0/1, and assign queue 0, with the scheduling weight 100, to WRR group 1.
|: 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.
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. Examples # Set the minimum guaranteed bandwidth to 100 kbps for queue 0 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.
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. Usage guidelines When associating AF and EF traffic behaviors with classes in a policy, make sure that the total bandwidth assigned in the behaviors is no more than the maximum available bandwidth of the interface where the policy is to be applied.
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. When associating AF and EF traffic behaviors with classes in a policy, make sure that the total bandwidth assigned in the behaviors is no more than the maximum available bandwidth of the interface where the policy is to be applied.
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. If neither dscp nor ip-precedence is specified, IP precedence applies by default.
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 135
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) 137
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 43 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 44 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.
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. Examples # Create an FR class test1.
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. The difference between the two commands lies in that: this command is applicable to FR interfaces and the congestion-threshold command is applicable to FR PVCs.
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. Before the incoming packets of the specific interfaces are to be forwarded as FR packets, the DE flag bits of these packets are set to 1.
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.
160
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 policy interface,58 A display qos pq interface,86 accounting,43 display qos pql,88 acl,1 display qos rtpq interface,111 acl accelerate,2 display qos sp,115 acl copy,3 display qos trust interface,73 acl ipv6,4 display qos vlan-policy,62 acl ipv6 copy,5 display qos wfq interface,120 acl ipv6 name,5 display qos wfq interface,98 acl name,6 display qos wred interface,127 B display qos wred table,131 bgp-policy,136 display qos wrr interface,116 C display ti
import,70 qos wred weighting-constant,130 P qos wrr,118 qos wrr group sp,118 pq,157 qos wrr weight,119 pvc-pq,157 queue,133 Q queue af,123 qos apply policy (interface view),65 queue af,104 qos apply policy (user-profile view),66 queue ef,124 qos bandwidth queue,121 queue ef,105 qos car,77 queue wfq,125 qos carl,78 queue wfq,106 qos cq,94 queue-length,107 qos cql default-queue,95 R qos cql protocol,96 redirect,49 qos cql protocol mpls exp,138 remark dot1p,50 qos cql queue,97 rema
wred,126 wred ip-precedence,109 wred,107 wred weighting-constant,110 wred dscp,108 166