HP A8800 Series Command Reference Manual
HP A8800 Series Command Reference Manual

HP A8800 Series Command Reference Manual

Acl and qos
Hide thumbs Also See for A8800 Series:
Table of Contents

Advertisement

HP A8800 Routers
ACL and QoS

Command Reference

Part number: 5998-1761
Software version: A8800-CMW520-R3627
Document version: 6W102-20130906

Advertisement

Table of Contents
loading

Summary of Contents for HP A8800 Series

  • Page 1: Command Reference

    HP A8800 Routers ACL and QoS Command Reference Part number: 5998-1761 Software version: A8800-CMW520-R3627 Document version: 6W102-20130906...
  • Page 2 The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
  • Page 3: Table Of Contents

    Contents ACL configuration commands ····································································································································· 1   acl ·············································································································································································· 1   acl copy ····································································································································································· 2   acl ipv6 ······································································································································································ 3   acl ipv6 copy ···························································································································································· 4   acl ipv6 logging frequence ····································································································································· 5   acl ipv6 name ··························································································································································· 6   acl logging frequence ··············································································································································...
  • Page 4 remark dot1p ························································································································································· 54   remark drop-precedence ······································································································································ 55   remark dscp ··························································································································································· 56   remark ip-precedence ··········································································································································· 57   remark local-precedence ······································································································································ 57   remark mpls-exp ···················································································································································· 58   traffic behavior ······················································································································································ 59   QoS policy configuration and application commands ······························································································ 59  ...
  • Page 5 queue wfq ······························································································································································ 94   wred ········································································································································································ 95   Congestion avoidance configuration commands ···································································································· 96   WRED configuration commands ·································································································································· 96   display qos wred interface ··································································································································· 96   WRED table configuration commands ························································································································· 97   display qos wred table ········································································································································· 97  ...
  • Page 6 ·································································································································· 140   qos scheduler-policy ············································································································································ 141   remark qos-local-id ·············································································································································· 141   Support and other resources ·································································································································· 143   Contacting HP ······························································································································································ 143   Subscription service ············································································································································ 143   Related information ······················································································································································ 143   Documents ···························································································································································· 143  ...
  • Page 7: Acl Configuration Commands

    ACL configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Syntax acl number acl-number [ name acl-name ] [ match-order { auto | config } ] undo acl { all | name acl-name | number acl-number } View System view...
  • Page 8: Acl Copy

    To display any ACLs you have created, use the display acl command. Examples # Create ACL 2000, and enter its view. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] # Create ACL 2002 with the name flow, and enter its view. <Sysname>...
  • Page 9: Acl Ipv6

    dest-acl-number: Assigns a unique number to the ACL you are creating. This number must be from the same ACL category as the source ACL. Available value ranges include: 2000 to 2999 for IPv4 basic ACLs • 3000 to 3999 for IPv4 advanced ACLs •...
  • Page 10: Acl Ipv6 Copy

    all: Delete all IPv6 basic and IPv6 advanced ACLs. Description Use acl ipv6 to create an IPv6 basic or advanced ACL and enter its ACL view. If the ACL has been created, you enter its view directly. Use undo acl ipv6 to delete the specified IPv6 ACL or all IPv6 basic and IPv6 advanced ACLs. By default, no ACL exists.
  • Page 11: Acl Ipv6 Logging Frequence

    cannot be all. For this ACL, the system automatically picks the smallest number from all available numbers in the same ACL category as the source ACL. Description Use acl ipv6 copy to create an IPv6 basic or IPv6 advanced ACL by copying an IPv6 basic or IPv6 advanced ACL that already exists.
  • Page 12: Acl Ipv6 Name

    acl ipv6 name Syntax acl ipv6 name acl6-name View System view Default level 2: System level Parameters acl6-name: Specifies the name of an existing IPv6 basic ACL or IPv6 advanced ACL, a case-insensitive string of 1 to 63 characters. It must start with an English letter. Description Use acl ipv6 name to enter the view of an IPv6 basic ACL or IPv6 advanced ACL that has a name.
  • Page 13: Acl Mode

    Related commands: rule (IPv4 advanced ACL view) and rule (IPv4 basic ACL view). Examples # Enable the device to generate and output IPv4 packet filtering logs at 10-minute intervals. <Sysname> system-view [Sysname] acl logging frequence 10 acl mode Syntax acl mode { 1 | 2 | 3 | 4 } View System view Default Level...
  • Page 14: Description

    Parameters acl-name: Specifies the name of an existing IPv4 basic, IPv4 advanced, Ethernet frame header, or user-defined ACL, which is a case-insensitive string of 1 to 63 characters. It must start with an English letter. Description Use acl name to enter the view of an IPv4 basic, IPv4 advanced, Ethernet frame header, or user-defined ACL that has a name.
  • Page 15: Display Acl

    display acl Syntax display acl { acl-number | all | name acl-name } [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters acl-number: Specifies an ACL by its number: •...
  • Page 16: Display Acl Ipv6

    ACL's step is 5 rule 0 permit source 10.110.0.0 0.0.0.255 Table 1 Command output Field Description Category and number of the ACL. The following field information is Basic ACL 2001 about ACL 2001. named flow The name of the ACL is flow. "-none-" means the ACL is not named. 1 rule The ACL contains one rule.
  • Page 17: Display Acl Mode

    exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display acl ipv6 to display the configuration and match statistics for the specified IPv6 ACL or all IPv6 basic and IPv6 advanced ACLs.
  • Page 18: Display Acl Resource

    Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
  • Page 19: Display Flow-Template Interface

    Description Use display acl resource to display the usage of ACL rules. If a card does not support counting ACL rules, the command displays only the slot number of the card. Examples # Display the usage of ACL resources on all cards. <Sysname>...
  • Page 20: Display Flow-Template User-Defined

    include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display flow-template interface to display information about user-defined flow templates applied to interfaces. Examples # Display information about all user-defined flow templates applied to interfaces. <Sysname>...
  • Page 21: Display Time-Range

    include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display flow-template user-defined to display information about user-defined flow templates. Examples # Display information about all user-defined flow templates. <Sysname>...
  • Page 22: Flow-Template

    regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display time-range to display the configuration and status of the specified time range or all time ranges. Examples # Display the configuration and status of time range test. <Sysname>...
  • Page 23: Flow-Template Basic

    # Apply user-defined flow template f1 to port group 1. <Sysname> system-view [Sysname] port-group manual 1 [Sysname-port-group-manual-1] group-member GigabitEthernet 3/1/1 to GigabitEthernet 3/1/6 [Sysname-port-group-manual-1] flow-template f1 flow-template basic Syntax flow-template flow-template-name basic { customer-vlan-id | dip | dmac | dport | dscp | ethernet-protocol | fragments | icmp-code | icmp-type | ip-precedence | ip-protocol | mpls-exp | service-cos | sip | smac | sport | tcp-flag | tos } * undo flow-template { all | name flow-template-name }...
  • Page 24: Hardware-Count Enable

    tos: ToS field in the IP header. all: Deletes all user-defined flow templates. Description Use flow-template basic to create a basic user-defined flow template. Use undo flow-template to delete one or all user-defined flow templates. To guarantee a successful removal, check that the template you are deleting has not applied to any interface. Examples # Create a basic user-defined flow template.
  • Page 25: Reset Acl Counter

    [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] hardware-count enable reset acl counter Syntax reset acl counter { acl-number | all | name acl-name } View User view Default level 2: System level Parameters acl-number: Specifies an ACL by its number: 2000 to 2999 for IPv4 basic ACLs •...
  • Page 26: Rule (Ethernet Frame Header Acl View)

    2000 to 2999 for IPv6 basic ACLs • • 3000 to 3999 for IPv6 advanced ACLs all: Clears statistics for all IPv6 basic ACLs and IPv6 advanced ACLs. name acl6-name: Specifies an ACL by its name. The acl6-name argument takes a case-insensitive string of 1 to 63 characters.
  • Page 27: Rule (Ipv4 Advanced Acl View)

    lsap lsap-type lsap-type-mask: Matches the DSAP and SSAP fields in LLC encapsulation. The lsap-type argument is a 16-bit hexadecimal number that represents the encapsulation format. The lsap-type-mask argument is a 16-bit hexadecimal number that represents the LSAP mask. type protocol-type protocol-type-mask: Matches one or more protocols in the Ethernet frame header. The protocol-type argument is a 16-bit hexadecimal number that represents a protocol type in Ethernet_II and Ethernet_SNAP frames.
  • Page 28 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 ] * View IPv4 advanced ACL view...
  • Page 29 Parameters Function Description The dscp argument can be a number in the range of 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp Specifies a DSCP priority (22), af31 (26), af32 (28), af33 (30), af41 (34), af42 (36), af43 (38), cs1 (8), cs2 (16), cs3 (24), cs4 (32), cs5 (40), cs6 (48), cs7 (56), default (0), or ef (46).
  • Page 30 If the protocol argument takes tcp (6) or udp (7), you can set the parameters shown in Table Table 9 TCP/UDP-specific parameters for IPv4 advanced ACL rules Parameters Function Description The operator argument can be lt (lower than), gt source-port operator Specifies one or more (greater than), eq (equal to), neq (not equal to), or port1 [ port2 ]...
  • Page 31 Table 11 ICMP message names supported in IPv4 advanced ACL rules ICMP message name ICMP message type ICMP message code echo echo-reply fragmentneed-DFset host-redirect host-tos-redirect host-unreachable information-reply information-request net-redirect net-tos-redirect net-unreachable parameter-problem port-unreachable protocol-unreachable reassembly-timeout source-quench source-route-failed timestamp-reply timestamp-request ttl-exceeded Description Use rule to create or edit an IPv4 advanced ACL rule.
  • Page 32: Rule (Ipv4 Basic Acl View)

    [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0 0.0.0.255 destination-port eq 80 logging # Create IPv4 advanced ACL rules to permit all IP packets but the ICMP packets destined for 192.168.1.0/24. <Sysname> system-view [Sysname] acl number 3001 [Sysname-acl-adv-3001] rule deny icmp destination 192.168.1.0 0.0.0.255 [Sysname-acl-adv-3001] rule permit ip # Create IPv4 advanced ACL rules to permit inbound and outbound FTP packets.
  • Page 33 fragment: Applies the rule only to fragments. A rule without this keyword applies to both fragments and non-fragments. When the ACL rule length limit is 80 bytes on an SPC card, the ACL rule does not take effect on the first fragment of fragments for each incoming packet. For more information about the ACL rule length limit mode, see "acl mode."...
  • Page 34: Rule (Ipv6 Advanced Acl View)

    rule (IPv6 advanced ACL view) Syntax rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value | syn syn-value | urg urg-value } * | established } | counting | destination { dest-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/source-prefix |...
  • Page 35 Parameters Function Description The dscp argument can be a number in the range of 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp Specifies a DSCP preference (22), af31 (26), af32 (28), af33 (30), af41 (34), af42 (36), af43 (38), cs1 (8), cs2 (16), cs3 (24), cs4 (32), cs5 (40), cs6 (48), cs7 (56), default (0), or ef (46).
  • Page 36 Table 13 TCP/UDP-specific parameters for IPv6 advanced ACL rules Parameters Function Description The operator argument can be lt (lower than), gt (greater than), eq (equal to), neq (not equal to), or range (inclusive range). The port1 and port2 arguments are TCP or UDP port numbers in the range of 0 to 65535.
  • Page 37 Table 14 ICMPv6-specific parameters for IPv6 advanced ACL rules Parameters Function Description The icmp6-type argument is in the range of 0 to 255. The icmp6-code argument is in the range of 0 to icmp6-type { icmp6-type Specifies the ICMPv6 message 255.
  • Page 38: Rule (Ipv6 Basic Acl View)

    To view rules in an ACL and their rule IDs, use the display acl ipv6 all command. Related commands: acl ipv6, display ipv6 acl, step, and time-range. Examples # Create an IPv6 ACL rule to permit TCP packets with the destination port 80 from 2030:5060::/64 to FE80:5060::/96, and enable logging matching packets.
  • Page 39 numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering step is 5 and the current highest rule ID is 28, the rule is numbered 30. deny: Denies matching packets. permit: Allows matching packets to pass. counting: Counts the number of times the IPv6 ACL rule has been matched.
  • Page 40: Rule (User-Defined Acl View)

    Examples # Create an IPv6 basic ACL rule to deny the packets from any source IP segment but 1001::/16, 3124:1 123::/32, or FE80:5060:1001::/48. <Sysname> system-view [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] rule permit source 1001:: 16 [Sysname-acl6-basic-2000] rule permit source 3124:1123:: 32 [Sysname-acl6-basic-2000] rule permit source fe80:5060:1001:: 48 [Sysname-acl6-basic-2000] rule deny source any rule (user-defined ACL view)
  • Page 41: Rule Comment

    configured, the system creates the rule. However, the rule using the time range can take effect only after you configure the timer range. Description Use rule to create a user-defined ACL rule. You cannot edit a user-defined ACL rule. If you number the ACL rule the same as an existing rule in the ACL, the new rule contents are added to the existing rule.
  • Page 42: Rule Remark

    [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule 0 deny source 1.1.1.1 0 [Sysname-acl-basic-2000] rule 0 comment This rule is used on GE3/1/2. # Create a rule in IPv6 basic ACL 3000 and configure a description for this rule. <Sysname> system-view [Sysname] acl ipv6 number 3000 [Sysname-acl6-adv-3000] rule 0 permit tcp source 2030:5060::9050/64 [Sysname-acl6-adv-3000] rule 0 comment This rule is used in GE3/1/1 rule remark...
  • Page 43 Use the undo rule rule-id remark command to delete a specific rule range remark. If you also • specify the text argument, you must type in the remark the same as was specified to successfully remove the remark. TIP: rule-id When adding an end remark for a rule range, you can specify the end rule number plus 1 for the argument so all rules in this range appears between the two remarks.
  • Page 44: Step

    step Syntax step step-value undo step View IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default level 2: System level Parameters step-value: ACL rule numbering step, in the range of 1 to 20. Description Use step to set a rule numbering step for an ACL. The rule numbering step sets the increment by which the system numbers rules automatically.
  • Page 45 Default level 2: System level Parameters time-range-name: Specifies a time range name. The name is a case-insensitive string of 1 to 32 characters. It must start with an English letter and to avoid confusion, cannot be all. start-time to end-time: Specifies a periodic statement. Both start-time and end-time are in hh:mm format (24-hour clock).
  • Page 46 You can create a maximum of 256 time ranges, each with a maximum of 32 periodic statements and 12 absolute statements. The active period of a time range is calculated as follows: Combining all periodic statements Combining all absolute statements Taking the intersection of the two statement sets as the active period of the time range Related commands: display time-range.
  • Page 47: Qos Policy Configuration Commands

    QoS policy configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Class configuration commands display traffic classifier Syntax display traffic classifier user-defined [ classifier-name ] [ | { begin | exclude | include } regular-expression ] View...
  • Page 48: If-Match

    Rule(s) : If-match acl 3131 Table 16 Command output Field Description User Defined Classifier Information User-defined class information. Classifier Class name and its match criteria. Operator Logical relationship between match criteria. Rule(s) Match criteria. if-match Syntax if-match match-criteria undo if-match match-criteria View Class view Default level...
  • Page 49 Value Description destination-mac mac-address Matches a destination MAC address. Matches DSCP values. dscp dscp-list The dscp-list argument is a list of up to eight DSCP values. A DSCP value is in the range 0 to 63. Matches Layer 2 forwarded packets or Layer 3 forwarded packets.
  • Page 50 Description Use if-match to define a match criterion. Use undo if-match to remove a match criterion. When defining match criteria, follow the guidelines described in the subsections: Defining an ACL-based match criterion If the ACL referenced in the if-match command does not exist, the class cannot be applied to hardware.
  • Page 51 If this command is executed multiple times in a class, the new configuration does not overwrite the previous one. When such a command is configured, the IP precedence values are arranged automatically in ascending order. You can configure up to eight IP precedence values in one command line. If the same IP precedence is specified multiple times, the system considers them as one.
  • Page 52: Traffic Classifier

    # Define match criteria for class class2 to match the packets that have the source MAC address 0050-ba27-bed2. <Sysname> system-view [Sysname] traffic classifier class2 [Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2 # Define a match criterion for class class1 to match the packets with a DSCP precedence of 1, 6 or 9. <Sysname>...
  • Page 53: Traffic Behavior Configuration Commands

    [Sysname-classifier-class1] Traffic behavior configuration commands accounting Syntax accounting [ byte | packet ] undo accounting View Traffic behavior view Default level 2: System level Parameters byte: Counts traffic in bytes. packets: Counts traffic in packets. With this keyword specified, the CAR also counts traffic in packets. Description Use accounting to enable traffic accounting for the traffic behavior.
  • Page 54: Car

    [Sysname] traffic behavior database [Sysname-behavior-database] accounting Syntax car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ red { discard | pass } ] undo car View Traffic behavior view Default level 2: System level Parameters cir committed-information-rate: Committed information rate (CIR) in kbps, in the range of 64 to 10000000.
  • Page 55: Display Traffic Behavior

    10000 kbps × 128 bytes/(128 bytes of packet length – 4 bytes of CRC – 14 bytes of Layer-2 header) When the incoming port and the outgoing port are POS interfaces, the theoretical outgoing interface rate is calculated following this formula: 10000 kbps ×...
  • Page 56: Filter

    Mirror enable: Mirror type: vlan Mirror destination: 23 Behavior: 23 Mirror enable: Mirror type: vlan Mirror destination: 25 Table 18 Command output Field Description Mirror enable Information about traffic mirroring. Traffic mirroring type: • VLAN. Mirror type • CPU. • Interface.
  • Page 57: Primap Color-Map-Dp

    primap color-map-dp Syntax primap color-map-dp undo primap color-map-dp View Traffic behavior view Default level 2: System level Description Use primap color-map-dp to configure the action of mapping the packet color to the drop precedence value in the traffic behavior. Use undo primap color-map-dp to delete the action. These two commands must be used in conjunction with the car command.
  • Page 58: Primap Pre-Defined Color

    Description Use primap to configure the action of mapping source precedence to target precedence through the specified priority mapping table for the traffic behavior. Use undo primap pre-defined to remove the action. Related commands: display qos map-table. Examples # Specify a DSCP-to-DSCP priority mapping table for traffic behavior behavior1. <Sysname>...
  • Page 59: Redirect

    redirect Syntax redirect { cpu | interface interface-type interface-number | next-hop { ipv4-add1 [ track track-entry-number ] [ ipv4-add2 [ track track-entry-number ] ] | ipv6-add1 [ interface-type interface-number ] [ track track-entry-number ] [ ipv6-add2 [ interface-type interface-number ] [ track track-entry-number ] ] } [ fail-action { discard | forward } ] | vpn-instance vpn-instance-name } undo redirect { cpu | interface interface-type interface-number | next-hop | vpn-instance } View...
  • Page 60: Redirect-Default

    CAUTION: Do not bind the outgoing interface for the redirected traffic to a NAT service interface. Examples # Configure the action of redirecting traffic to the CPU for traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] redirect cpu redirect-default Syntax redirect-default...
  • Page 61: Remark Drop-Precedence

    View Traffic behavior view Default level 2: System level Parameters 8021p: 802.1p priority to be marked for packets, in the range of 0 to 7. Description Use remark dot1p to configure the action of setting the specified 802.1p priority for packets. Use undo remark dot1p to remove the action.
  • Page 62: Remark Dscp

    remark dscp Syntax remark dscp dscp-value undo remark dscp View Traffic behavior view Default level 2: System level Parameters dscp-value: DSCP value, in the range of 0 to 63 or a keyword, as shown in Table Table 19 DSCP keywords and values Keyword DSCP value (binary) DSCP value (decimal)
  • Page 63: Remark Ip-Precedence

    Use undo remark dscp to remove the action. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Set the DSCP value of packets to 6. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark dscp 6 remark ip-precedence Syntax remark ip-precedence ip-precedence-value undo remark ip-precedence View...
  • Page 64: Remark Mpls-Exp

    Parameters local-precedence: Local precedence value to be marked for packets, which can be a number or keyword. The number-keyword mapping is shown in Table Table 20 Description on the local-precedence argument Keyword Local precedence value (decimal) Description Use remark local-precedence to configure the action of setting the specified local precedence for packets.
  • Page 65: Traffic Behavior

    Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Set the EXP value of MPLS packets to 2. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark mpls-exp 2 traffic behavior Syntax traffic behavior behavior-name undo traffic behavior behavior-name View System view Default level...
  • Page 66: Display Qos Policy

    Default level 2: System level Parameters classifier-name: Class name, a string of 1 to 31 characters. behavior-name: Behavior name, a string of 1 to 31 characters. Description Use classifier behavior to specify a behavior for a class in the policy. Use undo classifier to remove a class from the policy.
  • Page 67: Display Qos Policy Global

    Description Use display qos policy to display user-defined QoS policy configuration. Examples # Display the configuration information of user-defined QoS policies. <Sysname> display qos policy user-defined User Defined QoS Policy Information: Policy: user1 Classifier: class1 Behavior: test Accounting Enable Committed Access Rate: CIR 20000 (kbps), CBS 300000 (byte), EBS 100 (byte), PIR 25000 (kbps) Red Action: discard Filter enable : permit...
  • Page 68 Parameters inbound: Displays information about the inbound global QoS policy. An inbound global QoS policy applies to the inbound direction of all ports. outbound: Displays information about the outbound global QoS policy. An outbound global QoS policy applies to the outbound direction of all ports. slot slot-number: Displays information about the global QoS policies on the card specified by the slot number.
  • Page 69: Display Qos Policy Interface

    Table 22 Command output Field Description Indicates that the QoS policy is applied in the inbound direction or outbound Direction direction. Policy Policy name and its contents. Classifier Class name and its contents. Mode that the association between the class and the traffic behavior Mode supports.
  • Page 70 exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display qos policy interface to display the QoS policy configuration and operational information of the specified interface or all interfaces.
  • Page 71: Display Qos Vlan-Policy

    Field Description Traffic mirroring type: • VLAN—Mirrors traffic to a VLAN. Mirror type • CPU—Mirrors traffic to a CPU. • Interface—Mirrors traffic to an interface. Assured Forwarding Information about AF queues. Bandwidth Bandwidth of the queue. Matched Number of packets matching the match criteria. Enqueued Number of packets and bytes enqueued.
  • Page 72 |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
  • Page 73: Qos Apply Policy

    Table 25 Command output Field Description Vlan ID of the VLAN where the QoS policy is applied. Direction Direction of the VLAN in which the QoS policy is applied. Classifier Class name and its contents. Operator Logical relationship between match criteria. Rule(s) Match criteria.
  • Page 74: Qos Apply Policy Global

    You can apply QoS policies to all physical interfaces but X.25-enabled or LAPB-enabled interfaces. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. Examples # Apply policy USER1 in the outbound direction of GigabitEthernet 2/1/1.
  • Page 75: Qos Vlan-Policy

    Default level 2: System level Parameters policy policy-name: Policy name, a string of 1 to 31 characters. Description Use qos policy to create a policy and enter policy view. Use undo qos policy to remove a policy. A policy applied to an interface cannot be deleted directly. You must cancel application of the policy on the interface before deleting the policy with the undo qos policy command.
  • Page 76: Reset Qos Policy Global

    Examples # Apply the QoS policy test to the inbound direction of VLAN 200, VLAN 300, VLAN 400, VLAN 500, VLAN 600, VLAN 700, VLAN 800, and VLAN 900. <Sysname> system-view [Sysname] qos vlan-policy test vlan 200 300 400 500 600 700 800 900 inbound reset qos policy global Syntax reset qos policy global [ inbound | outbound ]...
  • Page 77 Examples # Clear the statistics of QoS policies applied to VLAN 2. <Sysname> reset qos vlan-policy vlan 2...
  • Page 78: Priority Mapping Configuration Commands

    Priority mapping configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Priority mapping table configuration commands display qos map-table Syntax display qos map-table [ dscp-dscp | inbound [ up-dp | up-lp | up-up] | outbound [ up-dp | up-fc | up-lp | up-rpr ] ] [ | { begin | exclude | include } regular-expression ]...
  • Page 79: Display Qos Map-Table Color

    Examples # Display the configuration of the user-to-local priority mapping table for incoming packets. <Sysname> display qos map-table inbound up-lp MAP-TABLE NAME: up-lp TYPE: pre-define DIRECTION: inbound IMPORT EXPORT Table 26 Command output Field Description MAP-TABLE NAME Name of the priority mapping table. TYPE Type of the priority mapping table.
  • Page 80: Import

    |: 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.
  • Page 81: Qos Map-Table

    View Priority mapping table view Default level 2: System level Parameters import-value-list: List of input values. export-value: Output value. all: Deletes all the mappings in the priority mapping table. Description Use import to configure a mapping from one or multiple input values to an output value. Use undo import to restore the specified or all mappings to the default mappings.
  • Page 82: Qos Map-Table Color

    up-fc: User-to-forwarding-class priority mapping table. up-lp: User-to-local priority mapping table. up-rpr: User-to-RPR priority mapping table. Description Use qos map-table to enter the specified priority mapping table view. Related commands: display qos map-table. Examples # Enter the DSCP-to-DSCP priority mapping table view. <Sysname>...
  • Page 83: Port Priority Configuration Commands

    Port priority configuration commands qos priority Syntax qos priority priority-value undo qos priority View Interface view, port group view Default level 2: System level Parameters priority-value: Port priority value, in the range of 0 to 7. Description Use qos priority to change the port priority of a port. Use undo qos priority to restore the default.
  • Page 84: Qos Trust

    Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
  • Page 85 An SPE card uses the 802.1p priority of Layer 2 packets, the IP precedence of Layer 3 packets, and • the EXP of MPLS packets for priority mapping. An SPC card uses the IP precedence of IP packets, EXP of MPLS packets, and 802.1p priority of any •...
  • Page 86: Gts And Rate Limit Configuration Commands

    GTS and rate limit configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. GTS configuration commands display qos gts interface Syntax display qos gts interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]...
  • Page 87: Qos Gts Any

    Table 29 Command output Field Description Interface Interface type and interface number. Rule(s) Match criteria. Committed information rate (CIR) in kbps. Committed burst size in bytes, which specifies the depth of the token bucket for holding burst traffic. qos gts any Syntax qos gts any cir committed-information-rate [ cbs committed-burst-size ] undo qos gts any...
  • Page 88: Qos Gts Queue

    Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. The qos gts any command and the qos lr outbound command are mutually exclusive for an interface, subinterface, or port group.
  • Page 89: Rate Limit Configuration Commands

    300 to 1000000 on a GE interface. • • 2500 to 10000000 on a 10-GE interface. 300 to 10000000 on a non-FR POS interface. • 40 to 1000000 on a serial port channelized from an E-CPOS interface. • cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes, a multiple of 1024. A value that is not a multiple of 1024 is converted into a multiple of 1024.
  • Page 90: Qos Lr

    Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays the lines that do not match the specified regular expression.
  • Page 91 Parameters outbound: Limits the rate of outgoing packets on the interface. cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The value range for committed-information-rate varies by interface type as follows: 300 to 1000000 on a GE interface or the corresponding Layer 3 Ethernet subinterface. •...
  • Page 92: Hardware Congestion Management Configuration Commands

    Hardware congestion management configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Queue scheduling profile configuration commands The commands in this chapter are available on only the SPC cards. display qos qmprofile configuration Syntax display qos qmprofile configuration [ profile-name ] [ | { begin | exclude | include } regular-expression ]...
  • Page 93: Display Qos Qmprofile Interface

    Table 32 Command output Field Description Queue management profile Queue scheduling profile name. Queue ID ID of a queue. Queue scheduling type: • Type • WRR. For a WRR queue, this field displays the WRR priority group to which the Group queue belongs.
  • Page 94: Qos Apply Qmprofile

    If no interface is specified, all applications of queue scheduling profiles to interfaces are displayed. Examples # Display the queue scheduling profile applied to GigabitEthernet 3/0/1. <Sysname> display qos qmprofile interface gigabitethernet 3/0/1 Interface: GigabitEthernet3/0/1 Queue management profile: myprofile Table 33 Command output Field Description Interface...
  • Page 95: Queue

    undo qos qmprofile profile-name View System view Default level 2: System level Parameters profile-name: Queue scheduling profile name, a string of 1 to 31 case-sensitive characters. Description Use qos qmprofile to create a queue scheduling profile and enter queue scheduling profile view. Use undo qos qmprofile to delete a queue scheduling profile.
  • Page 96: Wfq Queuing Configuration Commands

    To guarantee that the queue scheduling is exact, make sure that the queues assigned to a WRR group are continuous. Examples # Create queue scheduling profile myprofile and configure queue 1 to use SP. <Sysname> system-view [Sysname] qos qmprofile myprofile [Sysname-qmprofile-myprofile] queue 1 sp # Create queue scheduling profile myprofile, configure queue 1 to use WRR, set the scheduling weight of queue 1 to 20, and assign queue 1 to WRR priority group 1.
  • Page 97: Qos Bandwidth Queue

    <Sysname> display qos wfq interface GigabitEthernet 2/1/1 Interface: GigabitEthernet2/1/1 Output queue: Hardware weighted fair queue Queue ID Weight Min-Bandwidth --------------------------------------------- 2000 Table 34 Command output Field Description Interface Interface type and interface number. Output queue Type of the current output queue. Queue ID ID of a queue.
  • Page 98: Qos Wfq Weight

    Keyword Queue number (decimal) min bandwidth-value: Minimum guaranteed bandwidth (in kbps), which specifies the minimum bandwidth guaranteed for a queue when the port is congested. Description Use qos bandwidth queue to set the minimum guaranteed bandwidth for a queue on a port. Use undo qos bandwidth queue to cancel the minimum guaranteed bandwidth configuration for a queue on a port.
  • Page 99: Cbq Configuration Commands

    Use undo qos wfq weight to restore the default scheduling weight for a WFQ queue on a port. By default, the scheduling weight of a WFQ queue is 1. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.
  • Page 100: Queue Ef

    [Sysname] traffic behavior af_behav [Sysname-behavior-af_behav] queue af bandwidth 5000 [Sysname-behavior-af_behav] quit queue ef Syntax queue ef bandwidth bandwidth [ cbs burst ] undo queue ef View Traffic behavior view Default level 2: System level Parameters bandwidth: Guaranteed bandwidth for expedited forwarding (EF), which ranges from 64 to 10000000 in kbps.
  • Page 101: Wred

    Default level 2: System level Parameters None Description Use queue wfq to configure WFQ for the behavior. Use undo queue wfq to remove the configuration. Examples # Configure WFQ for behavior be_behav. [Sysname] traffic behavior be_behav [Sysname-behavior-be_behav] queue wfq wred Syntax wred [ dscp | ip-precedence ] undo wred...
  • Page 102: Congestion Avoidance Configuration Commands

    Congestion avoidance configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. WRED configuration commands WRED configuration commands are available to only SPE cards. display qos wred interface Syntax display qos wred interface [ interface-type interface-number ] [ | { begin | exclude | include }...
  • Page 103: Wred Table Configuration Commands

    Table 36 Command output Field Description Interface Interface type and interface number. Applied WRED table name Name of the applied WRED table. WRED table configuration commands WRED table configuration commands are applicable to only SPE cards display qos wred table Syntax display qos wred table [ table-name ] [ | { begin | exclude | include } regular-expression ] View...
  • Page 104: Qos Wred Table

    5 10224 10240 100 10224 10240 100 10224 10240 6 10224 10240 100 10224 10240 100 10224 10240 7 10224 10240 100 10224 10240 100 10224 10240 Table 37 Command output Field Description Table name Name of a WRED table. Table type Type of a WRED table.
  • Page 105: Queue

    Related commands: display qos wred table and display qos wred interface. Examples # Create WRED table exp-table1. <Sysname> system-view [Sysname] qos wred queue table exp-table1 [Sysname-wred-table-exp-table1] queue Syntax queue queue-number [ drop-level drop-level ] low-limit low-limit high-limit high-limit [ discard-probability discard-prob ] undo queue { queue-number | all } View...
  • Page 106: Queue Weighting-Constant

    queue weighting-constant Syntax queue queue-number weighting-constant exponent undo queue queue-number weighting-constant View WRED table view Default level 2: System level Parameters queue-number: Queue number. weighting-constant exponent: Specifies the exponent for average queue length calculation, in the range of 0 to 21. This argument is 8 by default. Description Use queue weighting-constant to specify an exponent for average queue length calculation for a specified queue.
  • Page 107 By default, the tail drop mode is adopted on a port. Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Settings in subinterface view take effect on the current subinterface. An SPC card does not support this command.
  • Page 108: Aggregate Car Configuration Commands

    Aggregate CAR configuration commands car name Syntax car name car-name undo car View Traffic behavior view Default level 2: System level Parameters car-name: Name of an aggregate CAR action. Description Use car name to reference an aggregate CAR action for the traffic behavior. Use undo car to remove the aggregate CAR action from the traffic behavior.
  • Page 109: Qos Car Aggregative

    include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display qos car name to display the configuration and statistics of a specified aggregate CAR action.
  • Page 110 aggregative: Indicates that the global CAR action is aggregative. Only aggregate CAR is supported. cir committed-information-rate: Committed information rate (CIR) in kbps, in the range of 64 to 10000000. cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes, which specifies the size of burst traffic when the actual average rate is no bigger than CIR.
  • Page 111: Reset Qos Car Name

    reset qos car name Syntax reset qos car name [ car-name ] View User view Default level 2: System level Parameters car-name: Name of an aggregate CAR action. Description Use reset qos car name to clear the statistics about the specified aggregate CAR action. If no car-name is specified, the statistics about all aggregate CAR policies is cleared.
  • Page 112: Qos Traffic Accounting Configuration Commands

    QoS traffic accounting configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. The QoS traffic accounting configuration commands are applicable to only the ports operating in bridge mode on an SPC card display qos traffic-counter Syntax...
  • Page 113 VLAN: all Local precedence: all Drop priority: all Traffic-counter summary: Unicast: 0 packets Multicast: 0 packets Broadcast: 0 packets Control packets: 2 packets Bridge egress filtered packets: 0 packets Tail drop packets: 0 packets Multicast Tail drop packets: 6 packets Forward restrictions packets: 0 packets Table 39 Command output Field...
  • Page 114: Qos Traffic-Counter

    Bridge security filter discarded: 0 packets Table 40 Command output Field Description Slot 1 inbound counter0 mode Monitored objects of the counter in the inbound direction. Interface Interfaces monitored by the counter. VLAN VLANs monitored by the counter. Traffic-counter summary Summary statistics collected by the counter.
  • Page 115: Reset Qos Traffic-Counter

    By default, the traffic accounting function is disabled. A card provides two counters for traffic accounting. The monitored object can be a port, a VLAN, a local precedence value, or a drop precedence value. If no port is specified, the traffic of all the ports on the card is monitored. •...
  • Page 116: Per-Port Queue-Based Traffic Statistics Displaying Commands

    Per-port queue-based traffic statistics displaying commands display qos queue-statistics interface Syntax display qos queue-statistics interface [ interface-type interface-number ] [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] [ dlci dlci-number ] [ outbound ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 117 <Sysname>display qos queue-statistics interface GigabitEthernet 2/1/3 Interface: GigabitEthernet2/1/3 Direction: Outbound Pass: 0 packets, 0 bytes Drop: 0 packets, 0 bytes Data Flow: Queue 0: Pass: 0 packets, 0 bytes Drop: 0 packets, 0 bytes Total queue length : 4096 packets Current queue length: 0 packets, 0% use ratio Queue 1: Pass: 0 packets, 0 bytes...
  • Page 118 Queue 7: Pass: 0 packets, 0 bytes Drop: 0 packets, 0 bytes Total queue length : 8192 packets Current queue length: 0 packets, 0% use ratio Table 41 Command output Field Description Interface Interface for which port queue traffic statistics are to be displayed. Direction Direction for which port queue traffic statistics are to be displayed.
  • Page 119: Qos Pipe Mode Configuration Commands

    QoS pipe mode configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. qos pipe-mode Syntax qos pipe-mode undo qos pipe-mode View System view Default level...
  • Page 120: Fr Qos Configuration Commands

    FR QoS configuration commands cir allow Syntax cir allow [ inbound | outbound ] committed-information-rate undo cir allow [ inbound | outbound ] View FR class view Default level 2: System level Parameters inbound: Sets the CIR ALLOW for the incoming packets. This keyword is available when FR traffic policing is enabled on interfaces.
  • Page 121: Display Fr Class-Map

    display fr class-map Syntax display fr class-map { fr-class class-name | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters class-name: FR class name, which is a string of 1 to 30 characters. interface-type interface-number: Specifies an interface by its type and number.
  • Page 122: Fr-Class

    View System view Default level 2: System level Parameters class-name: FR class name, which is a string of 1 to 30 characters. Description Use fr class to create an FR class and enter FR class view. Use undo fr class to remove the specified FR class. By default, no FR class is created.
  • Page 123: Fr Traffic-Shaping

    Instead of removing an FR class, the undo fr-class command just cancels the association between the FR class and the current FR PVC. To remove an FR class, use the undo fr class command. Related commands: fr class. Examples # Associate FR class test1 with an FR PVC with DLCI 200. <Sysname>...
  • Page 124: Hqos Configuration Commands

    HQoS configuration commands In this chapter, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the cards prefixed with SPE, for example, SPE- 1 020-E-II. Only SPE cards support HQoS. SPC cards do not support HQoS. Forwarding class configuration commands display qos forwarding-class Syntax...
  • Page 125: Remark Forwarding-Class

    remark forwarding-class Syntax remark forwarding-class { id fc-id | name fc-name } undo remark forwarding-class View Traffic behavior view Default level 2: System level Parameters id fc-id: Specifies a forwarding class by its ID, range from 0 to 3. Only the ID of a pre-defined forwarding class can be specified.
  • Page 126: Forwarding-Class Profile

    begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display qos forwarding-group to display forwarding group information.
  • Page 127: Forwarding-Group Profile (Forwarding-Group View)

    Examples # Nest forwarding class BE in forwarding group testfg and specify forwarding profile testfp for this forwarding class. <Sysname> system-view [Sysname] qos forwarding-group testfg [Sysname-hqos-fg-testfg] forwarding-class BE profile testfp forwarding-group profile (forwarding-group view) Syntax forwarding-group sub-fg-name profile fp-name undo forwarding-group sub-fg-name View Forwarding group view Default level...
  • Page 128: Qos Forwarding-Group

    View System view Default level 2: System level Parameters fg-source: Source forwarding group name, a case-sensitive string of 1 to 31 characters. The forwarding group identified by this argument must already exist. fg-dest: Destination forwarding group name, a case-sensitive string of 1 to 31 characters. Up to eight destination forwarding groups can be specified.
  • Page 129: Drop Profile Configuration Commands

    Examples # Create forwarding group testfg. <Sysname> system-view [Sysname] qos forwarding-group testfg Drop profile configuration commands display qos drop-profile Syntax display qos drop-profile [ dp-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters...
  • Page 130: Green

    Field Description Yellow thresholds Drop parameters for yellow packets. Red thresholds Drop parameters for red packets. Threshold at which packet drop begins. Threshold at which all newly arriving packets are dropped. prob Drop probability. Weighting constant Exponent for average queue length calculation. green Syntax green low-limit low-limit high-limit high-limit discard-probability discard-prob...
  • Page 131: Red

    undo qos drop-profile dp-name View System view Default level 2: System level Parameters dp-name: User-defined drop profile name, a case-sensitive string of 1 to 31 characters. This argument cannot take the name of the pre-defined drop profile. id dp-id: Specifies the user-defined drop profile ID, in the range of 0 to 31. The dp-id argument cannot take the ID of the pre-defined drop profile.
  • Page 132: Weighting-Constant

    Description Use red to set drop parameters for red packets. Use undo red to restore the default. Examples # Set drop parameters for red packets as follows: set lower threshold to 500, upper threshold to 700, and drop probability to 40. <Sysname>...
  • Page 133: Forwarding Profile Configuration Commands

    Parameters low-limit low-limit: Specifies the lower threshold in packets. When the average queue length reaches the threshold, newly arriving packets are randomly dropped. The low-limit argument ranges from 0 to 10240 and defaults to 10224. high-limit high-limit: Specifies the upper threshold in packets. When the average queue length reaches the upper threshold, all newly arriving packets are dropped.
  • Page 134: Display Qos Forwarding-Profile

    [Sysname] qos forwarding-profile testfp [Sysname-hqos-fp-testfp] bandwidth 2000 display qos forwarding-profile Syntax display qos forwarding-profile [ fp-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters fp-name: Forwarding profile name, a case-sensitive string of 1 to 31 characters. |: Filters command output by specifying a regular expression.
  • Page 135: Gts Cir

    Parameters dp-name: Drop profile name, a case-sensitive string of 1 to 31 characters. Description Use drop-profile to bind a drop profile to a forwarding profile. Use undo drop-profile to remove the drop profile from the forwarding profile. By default, a forwarding profile does not reference any drop profile but adopts tail drop. Examples # Bind drop profile testdp to forwarding profile testfp.
  • Page 136: Qos Forwarding-Profile

    qos forwarding-profile Syntax qos forwarding-profile fp-name [ id fp-id ] undo qos forwarding-profile fp-name View System view Default level 2: System level Parameters fp-name: User-defined forwarding profile name, a case-sensitive string of 1 to 31 characters. This argument cannot be the name of a pre-defined forwarding profile. id fp-id: Specifies the user-defined forwarding profile ID, in the range of 0 to 255.
  • Page 137: Scheduler Policy Configuration Commands

    Use undo wfq to disable WFQ in the forwarding profile. By default, a forwarding profile uses WFQ with the scheduling weight 1. Examples # Configure forwarding profile testfp to use WFQ queue scheduling, and set the weight to 2. <Sysname> system-view [Sysname] qos forwarding-profile testfp [Sysname-hqos-fp-testfp] wfq weight 2 Scheduler policy configuration commands...
  • Page 138 FG: default FP: default Rule: group FP status: Success FG: default Rule: group FC: BE FP: default FP status: Success FG: fg10 Rule: group FG: fg11 FP: fp11 Rule: match qos-local-id 11 to 20 FP status: GTS Failed FG: fg10 Rule: group FG: fg11 Rule: match qos-local-id 11 to 20...
  • Page 139: Display Qos Scheduler-Policy Interface

    display qos scheduler-policy interface Syntax display qos scheduler-policy interface [ interface-type interface-number [ outbound ] ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and interface number. If no interface is specified, this command displays the scheduler policy configurations and statistics for all ports.
  • Page 140 Rule: group FC: BE FP: default Total queue length: 512 packets Current queue length: 0 packets, 0% use rate Forwarded: 0 packets, 0 bytes Forwarded green: 0 packets, 0 bytes Forwarded yellow: 0 packets, 0 bytes Forwarded red: 0 packets, 0 bytes Dropped: 0 packets, 0 bytes FG: default Rule: group...
  • Page 141: Display Qos Scheduler-Policy Name

    Field Description Direction Direction in which the scheduler policy is applied. Rule Match criteria for instantiation. Total queue length Total length of the queue. Current queue length Current length of the queue. use rate Current queue length/total queue length. Forwarded packets/bytes Number of forwarded packets/bytes.
  • Page 142 FP: default(0) group |--FC: BE(0) FP: default(0) |--FC: AF(1) FP: default(0) |--FC: EF(2) FP: default(0) |--FC: NC(3) FP: default(0) |--FG(L1): 2(1) FP: 2(2) group |--FG(L2): 1(2) FP: 1(1) match: qos-local-id 2 to 10 |--FC: BE(0) FP: 3(3) |--FC: AF(1) FP: default(0) |--FC: EF(2) FP: default(0) |--FC: NC(3)
  • Page 143: Forwarding-Group Group

    forwarding-group group Syntax forwarding-group fg-name group undo forwarding-group fg-name group View Scheduler policy layer view Default level 2: System level Parameters fg-name: Forwarding group name, a case-sensitive string of 1 to 31 characters. Description Use forwarding-group group to instantiate a forwarding group in the group mode. Use undo forwarding-group group to delete the instance generated from the forwarding group in the group mode.
  • Page 144: Forwarding-Group Profile (Scheduler-Policy View)

    Description Use forwarding-group match to instantiate a forwarding group in the match mode according to the specified match criterion. Use undo forwarding-group match to delete the instance generated from the forwarding group according to the specified match criterion. In the same scheduler policy, instantiate a parent forwarding group before instantiating its child forwarding groups.
  • Page 145: Layer

    Use undo forwarding-group to remove the specified forwarding group from the scheduler policy. The forwarding group to be nested in a scheduler policy and the forwarding profile to be specified for the forwarding group must already exist. You cannot remove any forwarding group from a scheduler policy that has been applied to a port. You cannot remove the default forwarding group automatically nested in a scheduler policy.
  • Page 146: Qos Copy Scheduler-Policy

    Default level 2: System level Parameters sp-name: Scheduler policy name, a case-sensitive string of 1 to 31 characters. Description Use qos apply scheduler-policy to apply a scheduler policy in the inbound direction of an interface or port group. Use undo qos apply scheduler-policy to remove the scheduler policy applied in the inbound direction of the interface or port group.
  • Page 147: Qos Scheduler-Policy

    <Sysname> system-view [Sysname] qos copy scheduler-policy sp-source to sp-dest qos scheduler-policy Syntax qos scheduler-policy sp-name [ id sp-id ] undo qos scheduler-policy sp-name View System view Default level 2: System level Parameters sp-name: User-defined scheduler policy name, a case-sensitive string of 1 to 31 characters. id sp-id: Specifies a user-defined scheduler policy ID, in the range of 0 to 15.
  • Page 148 Description Use remark qos-local-id to configure the action of setting the specified local QoS ID for packets. Use undo remark qos-local-id to delete the action. Examples # Configure the action of marking packets with local QoS ID 2. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark qos-local-id 2...
  • Page 149: Support And Other Resources

    Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. •...
  • Page 150: Conventions

    Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
  • Page 151 Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
  • Page 152: Index

    Index A B C D F G H I L P Q R S T W Y display qos policy,60 display qos policy global,61 accounting,47 display qos policy interface,63 acl,1 display qos qmprofile configuration,86 copy,2 display qos qmprofile interface,87 ipv6,3 display qos queue-statistics interface,1 10 acl ipv6...
  • Page 153 queue wfq,94 if-match,42 import,74 red,125 redirect,53 redirect-default,54 layer,139 remark dot1p,54 remark drop-precedence,55 primap color-map-dp,51 remark dscp,56 primap pre-defined,51 remark forwarding-class,1 19 primap pre-defined color,52 remark ip-precedence,57 remark local-precedence,57 remark mpls-exp,58 qos apply policy,67 remark qos-local-id,141 qos apply policy global,68 reset acl counter,19 qos apply qmprofile,88...

Table of Contents