H3C SR6600 Command Reference Manual
H3C SR6600 Command Reference Manual

H3C SR6600 Command Reference Manual

Multi-core router
Hide thumbs Also See for SR6600:
Table of Contents

Advertisement

H3C SR6600 Routers
ACL and QoS
Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: SR6600-CMW520-R2603
Document version: 20110627-C-1.11

Advertisement

Table of Contents
loading

Summary of Contents for H3C SR6600

  • Page 1 H3C SR6600 Routers ACL and QoS Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: SR6600-CMW520-R2603 Document version: 20110627-C-1.11...
  • Page 2 SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
  • Page 3 Preface The H3C SR6600 documentation set includes 13 command references, which describe the commands and command syntax options available for the H3C SR6600 Routers. The ACL and QoS Command Reference describes the QoS configuration commands. This preface includes: Audience •...
  • Page 4 An alert that calls attention to essential information. IMPORTANT An alert that contains additional or supplementary information. NOTE An alert that provides helpful information. About the H3C SR6600 documentation set The H3C SR6600 documentation set includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
  • Page 5 Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support & Documents > Technical Documents] –...
  • Page 6: Table Of Contents

    Contents ACL configuration commands ····································································································································· 1 acl ··············································································································································································1 acl accelerate ···························································································································································2 acl copy·····································································································································································3 acl ipv6······································································································································································3 acl ipv6 copy ····························································································································································4 acl ipv6 name···························································································································································5 acl name····································································································································································6 description·································································································································································6 display acl·································································································································································7 display acl accelerate ··············································································································································8 display acl ipv6 ····················································································································································· 10 display acl resource ·············································································································································· 11 display time-range ·················································································································································...
  • Page 7 display qos vlan-policy ········································································································································· 56 qos apply policy (interface view) ························································································································ 58 qos apply policy (user-profile view)····················································································································· 60 qos policy······························································································································································· 60 qos vlan-policy ······················································································································································· 61 reset qos vlan-policy·············································································································································· 62 Priority mapping configuration commands ··············································································································63 Priority mapping table configuration commands········································································································ 63 display qos map-table···········································································································································...
  • Page 8 qos reserved-bandwidth ······································································································································· 97 queue af ································································································································································· 98 queue ef·································································································································································· 99 queue wfq ····························································································································································100 queue-length·························································································································································100 wred······································································································································································101 wred dscp ····························································································································································102 wred ip-precedence ············································································································································103 wred weighting-constant·····································································································································104 RTP queuing configuration commands·······················································································································105 display qos rtpq interface···································································································································105 qos rtpq ································································································································································106 QoS token configuration commands ·························································································································107 qos qmtoken·························································································································································107 Packet information pre-extraction configuration command ·····················································································108 qos pre-classify ····················································································································································108...
  • Page 9 bgp-policy ····························································································································································131 MPLS QoS configuration commands ····················································································································· 133 MPLS QoS configuration commands ·························································································································133 if-match mpls-exp ·················································································································································133 qos cql protocol mpls exp ··································································································································133 qos pql protocol mpls exp··································································································································134 remark mpls-exp ··················································································································································135 FR QoS configuration commands ·························································································································· 136 FR QoS configuration commands·······························································································································136 cbs·········································································································································································136 cir ··········································································································································································136 cir allow································································································································································137...
  • Page 10: Acl Configuration Commands

    ACL configuration commands Syntax acl number acl-number [ name acl-name ] [ match-order { auto | config } ] undo acl { all | name acl-name | number acl-number } View System view Default level 2: System level Parameters number acl-number: Specifies the number of an IPv4 access control list (ACL): •...
  • Page 11: Acl Accelerate

    ACL acceleration uses memory. To achieve the best trade-off between memory and ACL processing performance, H3C recommends you enable ACL acceleration for large ACLs. For example, when you use a large ACL for a session-based service, such as NAT or ASPF, you can enable ACL acceleration to avoid session timeouts caused by ACL processing delays.
  • Page 12: Acl Copy

    acl copy Syntax acl copy { source-acl-number | name source-acl-name } to { dest-acl-number | name dest-acl-name } View System view Default level 2: System level Parameters source-acl-number: Specifies a source IPv4 ACL that already exists by its number: 2000 to 2999 for IPv4 basic ACLs •...
  • Page 13: Acl Ipv6 Copy

    Default level 2: System level Parameters number acl6-number: Specifies the number of an IPv6 ACL: 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs • name acl6-name: Assigns a name for the IPv6 ACL for easy identification. The acl6-name argument takes a case insensitive string of 1 to 63 characters.
  • Page 14: Acl Ipv6 Name

    Default level 2: System level Parameters source-acl6-number: Specifies a source IPv6 ACL that already exists by its number: 2000 to 2999 for IPv6 basic ACLs • 3000 to 3999 for IPv6 advanced ACLs • name source-acl6-name: Specifies a source IPv6 ACL that already exists by its name. The source-acl6-name argument takes a case insensitive string of 1 to 63 characters.
  • Page 15: Acl Name

    Examples # Enter the view of IPv6 ACL flow. <Sysname> system-view [Sysname] acl ipv6 name flow [Sysname-acl6-basic-2001-flow] acl name Syntax acl name acl-name View System view Default level 2: System level Parameters acl-name: Specifies the name of an existing IPv4 ACL, which is a case insensitive string of 1 to 63 characters.
  • Page 16: Display Acl

    By default, an ACL has no ACL description. Related commands: display acl and display acl ipv6. Examples # Configure a description for IPv4 basic ACL 2000. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] description This is an IPv4 basic ACL. # Configure a description for IPv6 basic ACL 2000.
  • Page 17: Display Acl Accelerate

    regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display acl command to display configuration and match statistics for the specified or all IPv4 ACLs. This command displays ACL rules in config or depth-first order, whichever is configured. Examples # Display the configuration and match statistics for all IPv4 ACLs.
  • Page 18 View Any view Default level 1: Monitor level Parameters acl-number: Specifies an IPv4 ACL number: 2000 to 2999 for IPv4 basic ACL • • 3000 to 3999 for IPv4 advanced ACL all: Displays ACL acceleration status information for all IPv4 ACLs. |: Filters command output by specifying a regular expression.
  • Page 19: Display Acl Ipv6

    Field Description Whether ACL acceleration is using up to date criteria for rule matching: • UTD—The ACL criteria are up to date and have not changed since ACL acceleration was enabled. Status • OOD—The ACL criteria are out of date. This state is displayed, if you have modified the ACL after ACL acceleration was enabled.
  • Page 20: Display Acl Resource

    This command displays ACL rules in config or depth-first order, whichever is configured. Examples # Display the configuration and match statistics for all IPv6 ACLs. <Sysname> display acl ipv6 all Basic IPv6 ACL 2000, named flow, 3 rules, ACL's step is 5 rule 0 permit rule 5 permit source 1::/64 rule 10 permit source 1::1/128 (2 times matched)
  • Page 21 Parameters slot slot-number: Displays the usage of ACL rules on a card. The slot-number argument specifies the slot number of the card. If no slot number is specified, the usage of ACL rules on the main board is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
  • Page 22: Display Time-Range

    Table 4 Output description Field Description Interface Interface type and number Resource type, which be one of the following value: • VFP ACL—ACL rules for QinQ before Layer 2 forwarding • IFP ACL—ACL rules applied to inbound traffic • IFP Meter—Traffic policing rules for inbound traffic Type •...
  • Page 23: Reset Acl Counter

    <Sysname> display time-range t4 Current time is 17:12:34 4/13/2010 Tuesday Time-range : t4 ( Inactive ) 10:00 to 12:00 Mon 14:00 to 16:00 Wed from 00:00 1/1/2010 to 23:59 1/31/2010 from 00:00 6/1/2010 to 23:59 6/30/2010 Table 5 Output description Field Description Current time...
  • Page 24: Reset Acl Ipv6 Counter

    reset acl ipv6 counter Syntax reset acl ipv6 counter { acl6-number | all | name acl6-name } View User view Default level 2: System level Parameters acl6-number: Specifies an IPv6 ACL by its number: 2000 to 2999 for IPv6 basic ACLs •...
  • Page 25: Rule (Ipv4 Advanced Acl View)

    deny: Denies matching packets. permit: Allows matching packets to pass. cos vlan-pri: Matches an 802.1p priority. The vlan-pri argument can be a number in the range 0 to 7, or in words, best-effort (0), background (1), spare (2), excellent-effort (3), controlled-load (4), video (5), voice (6), or network-management (7).
  • Page 26 icmp-code | icmp-message } | logging | precedence precedence | reflective | source { sour-addr sour-wildcard | any } | source-port operator port1 [ port2 ] | time-range time-range-name | tos tos | vpn-instance vpn-instance-name ] * undo rule rule-id [ { { ack | fin | psh | rst | syn | urg } * | established } | counting | destination | destination-port | dscp | fragment | icmp-type | logging | precedence | reflective | source | source-port | time-range | tos | vpn-instance ] * View...
  • Page 27 Parameters Function Description The tos argument can be a number in the range 0 to 15, or in words, max-reliability (2), tos tos Specifies a ToS preference max-throughput (4), min-delay (8), min-monetary-cost (1), or normal (0). The dscp argument can be a number in the range 0 to 63, or in words, af11 (10), af12 (12), af13 (14), af21 (18), af22 (20), af23 dscp dscp...
  • Page 28 Parameters Function Description The port1 and port2 arguments are TCP or UDP port numbers in the range 0 to 65535. port2 is needed only when the operator argument is range. TCP port numbers can be represented in these words: chargen (19), bgp (179), cmd (514), daytime (13), discard (9), domain (53), echo (7), exec (512), finger (79), ftp (21), ftp-data (20), gopher (70), hostname (101), irc (194), klogin (543), kshell (544), login...
  • Page 29 ICMP message name ICMP message type ICMP message code echo-reply fragmentneed-DFset host-redirect host-tos-redirect host-unreachable information-reply information-request net-redirect net-tos-redirect net-unreachable parameter-problem port-unreachable protocol-unreachable reassembly-timeout source-quench source-route-failed timestamp-reply timestamp-request ttl-exceeded Description Use the rule command to create or edit an IPv4 advanced ACL rule. You can edit ACL rules only when the match order is config.
  • Page 30: Rule (Ipv4 Basic Acl View)

    rule (IPv4 basic ACL view) Syntax rule [ rule-id ] { deny | permit } [ counting | fragment | logging | source { sour-addr sour-wildcard | any } | time-range time-range-name | vpn-instance vpn-instance-name ] * undo rule rule-id [ counting | fragment | logging | source | time-range | vpn-instance ] * View IPv4 basic ACL view Default level...
  • Page 31: Rule (Ipv6 Advanced Acl View)

    Related commands: acl, display acl, and step. Examples # Create a rule in IPv4 basic ACL 2000 to deny packets sourced from 1.1.1.1/32. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 1.1.1.1 0 rule (IPv6 advanced ACL view) Syntax rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value | syn syn-value | urg urg-value } * | established } | counting | destination { dest dest-prefix |...
  • Page 32 Parameters Function Description The dest and dest-prefix arguments represent a destination IPv6 address, and prefix length that destination { dest Specifies a destination IPv6 ranges from 1 to 128. dest-prefix | address dest/dest-prefix | any } The any keyword specifies any IPv6 destination address.
  • Page 33 Parameters Function Description The port1 and port2 arguments are TCP or UDP port numbers in the range 0 to 65535. port2 is needed only when the operator argument is range. TCP port numbers can be represented in these words: chargen (19), bgp (179), cmd (514), daytime (13), discard (9), domain (53), echo (7), exec (512), finger (79), ftp (21), ftp-data (20), gopher (70), hostname (101), irc (194),...
  • Page 34 Table 13 ICMPv6 message names supported in IPv6 advanced ACL rules ICMPv6 message name ICMPv6 message type ICMPv6 message code echo-reply echo-request err-Header-field frag-time-exceeded hop-limit-exceeded host-admin-prohib host-unreachable neighbor-advertisement neighbor-solicitation network-unreachable packet-too-big port-unreachable redirect router-advertisement router-solicitation unknown-ipv6-opt unknown-next-hdr Description Use the rule command to create or edit an IPv6 advanced ACL rule. You can edit ACL rules only when the match order is config.
  • Page 35: Rule (Ipv6 Basic Acl View)

    rule (IPv6 basic ACL view) Syntax rule [ rule-id ] { deny | permit } [ counting | fragment | logging | source { ipv6-address prefix-length | ipv6-address/prefix-length | any } | time-range time-range-name ] * undo rule rule-id [ counting | fragment | logging | source | time-range ] * View IPv6 basic ACL view Default level...
  • Page 36: Rule Comment

    <Sysname> system-view [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] rule deny source fe80:5060::101/128 rule comment Syntax rule rule-id comment text undo rule rule-id comment View IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default level 2: System level Parameters rule-id: Specifies the ID of an existing ACL rule.
  • Page 37: Time-Range

    Default level 2: System level Parameters step-value: ACL rule numbering step, which ranges from 1 to 20. Description Use the step command to set a rule numbering step for an ACL. The rule numbering step sets the increment by which the system numbers rules automatically. For example, the default ACL rule numbering step is 5.
  • Page 38 days: Specifies the day or days of the week (in words or digits) on which the periodic statement is valid. If you specify multiple values, separate each value with a space, and make sure that they do not overlap. These values can take one of the following forms: •...
  • Page 39 <Sysname> system-view [Sysname] time-range t1 8:0 to 18:0 working-day # Create an absolute time range t2, setting it to be active in the whole year of 2010. <Sysname> system-view [Sysname] time-range t2 from 0:0 1/1/2010 to 23:59 12/31/2010 # Create a compound time range t3, setting it to be active from 08:00 to 12:00 on Saturdays and Sundays of the year 2010.
  • Page 40: Qos Policy Configuration Commands

    QoS policy configuration commands Class configuration commands display traffic classifier Syntax display traffic classifier { system-defined | user-defined } [ tcl-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters system-defined: Displays system-defined classes.
  • Page 41: If-Match

    Table 14 Output description Field Description Classifier Class name and its match criteria The match operator you set for the class. If the operator is AND, the class matches the packets that Operator match all its match criteria. If the operator is OR, the class matches the packets that match any of its match criteria.
  • Page 42 Keyword and argument combination Description Matches a QoS class; The tcl-name argument is the classifier tcl-name name of the class. This keyword is not available on an SAP interface card working in bridge mode. Matches DSCP values. The dscp-list argument is a list dscp dscp-list of up to 8 DSCP values.
  • Page 43 NOTE: The match criteria listed below must be unique in a class that uses the AND operator. To ensure that the class can be successfully applied to interfaces, avoid defining multiple if-match clauses for these match 8021p-list criteria or inputting multiple values for any of the list arguments, such as the argument.
  • Page 44 Defining a criterion to match a source MAC address You can configure multiple source MAC address match criteria for a class. A criterion to match a source MAC address is significant only to Ethernet interfaces. Defining the relationships between match criteria This subsection describes how to use both AND and OR operators to define the match relationships between the criteria for a class.
  • Page 45 You can configure up to eight IP precedence values in one command line. If the same IP precedence • is specified multiple times, the system considers them as one. If a packet matches one of the defined IP precedence values, it matches the if-match clause. •...
  • Page 46 [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3 # Define a match criterion for class class2 to match the packets with the source MAC address 0050-ba27-bed2. <Sysname> system-view [Sysname] traffic classifier class2 [Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2 # Define a match criterion for class class1 to match the packets with the customer network 802.1p priority value 3.
  • Page 47: Traffic Classifier

    [Sysname] traffic classifier class2 [Sysname-classifier-class2] if-match classifier class1 [Sysname-classifier-class2] if-match destination-address mac 0050-BA27-BED3 # Define a match criterion for class class1 to match the packets with a DSCP value of 1, 6 or 9. <Sysname> system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match dscp 1 6 9 # Define a match criterion for class class1 to match the packets received on interface GigabitEthernet 1/0/1.
  • Page 48: Traffic Behavior Configuration Commands

    View System view Default level 2: System level Parameters tcl-name: Specifies a class name, a string of 1 to 31 characters. operator: Sets the operator to logic AND or OR for the class. and: Specifies the logic AND operator. The class matches the packets that match all its criteria. or: Specifies the logic OR operator.
  • Page 49: Car

    Description Use the accounting command to configure the traffic accounting action in the traffic behavior. By referencing the traffic behavior in a QoS policy, you can achieve class-based accounting, with which statistics are collected on a per-traffic class basis. For example, you can define the action to collect statistics for traffic sourced from a certain IP address.
  • Page 50 action: Sets the action to take on the packet: • discard—Drops the packet. pass—Permits the packet to pass through. • remark-dot1p-pass new-cos—Sets the 802.1p priority value of the 802.1p packet to new-cos and • permits the packet to pass through. The new-cos argument ranges from 0 to 7. •...
  • Page 51: Display Traffic Behavior

    display traffic behavior Syntax display traffic behavior { system-defined | user-defined } [ behavior-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters system-defined: Displays system-defined traffic behaviors. user-defined: Displays user-defined traffic behaviors.
  • Page 52: Filter

    Action: discard Expedited Forwarding: Bandwidth 50 (Kbps) CBS 1500 (Bytes) User Defined Behavior Information: Behavior: database Redirect enable: Redirect type: next-hop Redirect destination: 1.1.1.1 Table 16 Output description Field Description User Defined Behavior Information User-defined behavior information Behavior Name of a behavior Assured Forwarding Information about an assured forwarding (AF) queue General Traffic Shape...
  • Page 53: Gts

    Description Use the filter command to configure a traffic filtering action in a traffic behavior. Use the undo filter command to delete the traffic filtering action. Examples # Configure the traffic filtering action as deny in traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] filter deny Syntax...
  • Page 54: Redirect

    Examples # Configure a GTS action in absolute value in traffic behavior database. The GTS parameters are as follows: CIR is 200 kbps, CBS is 50000 bytes, EBS is 0, and the maximum buffer queue length is 100. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] gts cir 200 cbs 50000 ebs 0 queue-length 100 redirect...
  • Page 55: Remark Dot1P

    remark dot1p Syntax remark dot1p 8021p undo remark dot1p View Traffic behavior view Default level 2: System level Parameters 8021p: 802.1p priority to be marked for packets, which ranges from 0 to 7. Description Use the remark dot1p command to configure an 802.1p priority marking action. Use the undo remark dot1p command to delete the action.
  • Page 56: Remark Dscp

    Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure traffic behavior database to mark matching traffic with drop precedence 2. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark drop-precedence 2 remark dscp Syntax remark dscp dscp-value undo remark dscp View Traffic behavior view Default level...
  • Page 57: Remark Ip-Precedence

    Keyword DSCP value (binary) DSCP value (decimal) 110000 111000 101110 Description Use the remark dscp command to configure a DSCP marking action. Use the undo remark dscp command to delete the action. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure traffic behavior database to mark matching traffic with DSCP 6.
  • Page 58: Remark Qos-Local-Id

    undo remark local-precedence View Traffic behavior view Default level 2: System level Parameters local-precedence: Sets the local precedence to be marked for packets, which ranges from 0 to 7. Description Use the remark local-precedence command to configure a local precedence marking action. Use the undo remark local-precedence command to delete the action.
  • Page 59: Traffic Behavior

    [Sysname] traffic behavior database [Sysname-behavior-database] remark qos-local-id 2 traffic behavior Syntax traffic behavior behavior-name undo traffic behavior behavior-name View System view Default level 2: System level Parameters behavior-name: Sets a behavior name, a string of 1 to 31 characters. The specified behavior-name must not be a system-defined traffic behavior name like ef, af, be, and be-flow-based.
  • Page 60: Qos Policy Configuration And Application Commands

    Description Use the traffic-policy command to reference a policy in a traffic behavior. By associating the traffic behavior with a class in another policy, you perform policy nesting. The referenced policy is the child policy and the referencing policy is the parent policy. Use the undo traffic-policy command to remove the child policy from the behavior.
  • Page 61: Display Qos Policy

    View Policy view Default level 2: System level Parameters tcl-name: Class name, a string of 1 to 31 characters. behavior-name: Behavior name, a string of 1 to 31 characters. Description Use the classifier behavior command to associate a behavior with a class in a QoS policy. Use the undo classifier command to remove a class from the policy.
  • Page 62 begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display qos policy command to display system-defined or user-defined QoS policy configuration information.
  • Page 63: Display Qos Policy Interface

    Field Description Class name A policy can contain multiple classes, and each class is associated with a traffic behavior. A class can be Classifier configured with multiple match criteria. For more information, see the traffic classifier command in “Class configuration commands.”...
  • Page 64 If a VT interface is specified, this command displays information about the QoS policy or policies applied to each VA interface inheriting the VT interface, but does not display QoS information about the VT interface. Examples # Display information about the QoS policy or policies applied to GigabitEthernet 1/0/1. <Sysname>...
  • Page 65: Display Qos Vlan-Policy

    Queue Length: 50 (Packets) Queue size : 0 (Packets) Passed 0/0 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) Delayed 0/0 (Packets/Bytes) Marking: Remark MPLS EXP 3 Remarked: 0 (Packets) Assured Forwarding: Bandwidth 30 (Kbps) Matched : 0/0 (Packets/Bytes) Enqueued : 0/0 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) Table 19 Output description Field Description...
  • Page 66 outbound: Displays information about the QoS policy applied to the outbound direction of the specified VLAN. slot slot-number: Displays the VLAN QoS policy information of the card specified by the slot number. This keyword-argument combination is available only on a distributed router. |: Filters command output by specifying a regular expression.
  • Page 67: Qos Apply Policy (Interface View)

    Accounting Enable 163 (Packets) 20864 (Bytes) Committed Access Rate: CIR 128 (kbps), CBS 8000 (byte), EBS 0 (byte) Red Action: discard Green : 12928(Bytes) Yellow: 7936(Bytes) : 43904(Bytes) Table 21 Output description Field Description Vlan ID of the VLAN where the QoS policy is applied The direction in which the QoS policy is applied for Direction the VLAN.
  • Page 68 Parameters inbound: Inbound direction. outbound: Outbound direction. policy-name: Specifies a policy name, a string of 1 to 31 characters. Description Use the qos apply policy command to apply a QoS policy. Use the undo qos apply policy command to remove the QoS policy. To successfully apply a policy to an interface/PVC, make sure that the total bandwidth assigned to AF and EF in the policy is smaller than the available bandwidth of the interface/PVC.
  • Page 69: Qos Apply Policy (User-Profile View)

    qos apply policy (user-profile view) Syntax qos apply policy policy-name { inbound | outbound } undo qos apply policy [ policy-name ] { inbound | outbound } View User profile view Default level 2: System level Parameters inbound: Applies the QoS policy to the incoming traffic of online users. outbound: Applies the QoS policy to the outgoing traffic of online users.
  • Page 70: Qos Vlan-Policy

    Parameters policy-name: Policy name, a string of 1 to 31 characters. The specified policy-name cannot be the name of the system-defined policy default. Description Use the qos policy command to create a policy and enter policy view. Use the undo qos policy command to delete a policy. To use the undo qos policy command to delete a policy that has been applied to a certain object, you must first remove it from the object.
  • Page 71: Reset Qos Vlan-Policy

    Examples # Apply the QoS policy test to the inbound direction of VLAN 200, VLAN 300, VLAN 400, and VLAN 500. <Sysname> system-view [Sysname] qos vlan-policy test vlan 200 300 400 500 inbound reset qos vlan-policy Syntax reset qos vlan-policy [ vlan vlan-id ] [ inbound | outbound ] View User view Default level...
  • Page 72: Priority Mapping Configuration Commands

    Priority mapping configuration commands NOTE: The commands in this chapter are aivalable on only a SAP interface card working in bridge mode. Priority mapping table configuration commands display qos map-table Syntax display qos map-table [ dot1p-dp | dot1p-lp | dscp-dot1p| dot1p-exp | dscp-dp | dscp-dscp | exp-dot1p | exp-dp ] [ | { begin | exclude | include } regular-expression ] View Any view...
  • Page 73 If no priority mapping table is specified, this command displays the configuration information of all priority mapping tables. If no direction is specified, this command displays the priority mapping tables in any direction. Related commands: qos map-table. Examples # Display the configuration of the 802.1p-to-local priority mapping table. <Sysname>...
  • Page 74: Import

    import Syntax import import-value-list export export-value undo import { import-value-list | all } View Priority mapping table view Default level 2: System level Parameters import-value-list: List of input values. export-value: Output value. all: Deletes all the mappings in the priority mapping table. Description Use the import command to configure a mapping from one or multiple input values to an output value.
  • Page 75: Port Priority Configuration Commands

    Description Use the qos map-table command to enter the specified priority mapping table view. NOTE: The SR6600 router does not support mapping any DSCP value to drop precedence value 1. Related commands: display qos map-table. Examples # Enter the 802.1p-to-drop priority mapping table view.
  • Page 76: Per-Port Priority Trust Mode Configuration Commands

    The default port priority is 0. In Ethernet interface view, the setting takes effect on the current interface only. In port group view, the setting takes effect on all interfaces in the port group. Examples # Set the port priority of interface GigabitEthernet 1/0/1 to 2. <Sysname>...
  • Page 77: Qos Trust

    Port priority trust type: dscp, Override: disable Table 23 Output description Field Description Interface Interface type and interface number. Port priority The port priority set for the interface. Priority trust mode on the interface, which can be Port priority trust type dot11e, dot1p, dscp, or untrust.
  • Page 78: Traffic Policing, Gts And Line Rate Configuration Commands

    Traffic policing, GTS and line rate configuration commands Traffic policing configuration commands display qos car interface Syntax display qos car interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number.
  • Page 79: Display Qos Carl

    Green Action: pass Red Action : discard Green: 0/0 (Packets/Bytes) Red : 0/0 (Packets/Bytes) Direction: Outbound Rule(s): If-match ACL 2002 CIR 10 (kbps), CBS 1875 (byte), EBS 0 (byte) Green Action: pass Red Action : discard Green: 0/0 (Packets/Bytes) Red : 0/0 (Packets/Bytes) Table 24 Output description Field Description...
  • Page 80: Qos Car

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
  • Page 81 cir committed-information-rate: Committed information rate (CIR) in kbps. cbs committed-burst-size: Committed burst size (CBS) in bytes, which specifies the size of bursty traffic when the actual average rate is not greater than CIR. By default, the CBS is the traffic transmitted at the rate of CIR withn 500 milliseconds.
  • Page 82: Qos Carl

    <Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos car outbound carl 1 cir 200 cbs 50000 ebs 0 green pass red remark-prec-pass 0 qos carl Syntax qos carl carl-index { precedence precedence-value | mac mac-address | mpls-exp mpls-exp-value | dscp dscp-list | { destination-ip-address | source-ip-address } { subnet ip-address mask-length | range start-ip-address to end-ip-address } [ per-address [ shared-bandwidth ] ] } undo qos carl carl-index View...
  • Page 83 Using the command repeatedly with different CAR list indexes creates multiple CAR lists. Using the command repeatedly with the same carl-index modifies the parameters for the CAR list. You can configure up to eight precedence values for a CAR list. If the same precedence value is specified multiple times, the system considers them as one value by default.
  • Page 84: Qos Resequencing

    [Sysname] carl source-ip-address range 1.1.2.100 1.1.2.199 per-address shared-bandwidth [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos car outbound carl 2 cir 5000 cbs 3125 ebs 31250 green pass red discard qos resequencing Syntax qos resequencing undo qos resequencing View Interface View Default level 2: System level Parameters None...
  • Page 85 View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
  • Page 86: Qos Gts

    Field Description Queue The number of packets in the buffer Size Passed The number and bytes of the packets that have passed Discarded The number and bytes of dropped packets Delayed The number and bytes of delayed packets qos gts Syntax qos gts { any | acl acl-number } cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] [ queue-length queue-length ] ]...
  • Page 87: Line Rate Configuration Commands

    NOTE: GTS for software forwarding does not support IPv6. Related commands: acl. Examples # Shape the packets matching ACL 2001 on GigabitEthernet 1/0/1. The GTS parameters are as follows: CIR is 200 kbps, CBS is 50000 bytes, EBS is 0, and the maximum buffer queue length is 100. <Sysname>...
  • Page 88: Qos Lr

    Direction: Outbound CIR 10 (kbps), CBS 1875 (byte), EBS 0 (byte) Passed : 0/0 (Packets/Bytes) Delayed: 0/0 (Packets/Bytes) Table 27 Output description Field Description Interface Interface type and interface number The direction in which the line rate configuration is Direction applied: inbound or outbound Committed information rate (CIR) in kbps Committed burst size (CBS) in bytes, which specifies...
  • Page 89 Examples # Limit the rate of outgoing packets on GigabitEthernet 1/0/1, with CIR 20 kbps, CBS 2000 bytes, and EBS 0. <Sysname> system-view [Sysname] interface gigabitethernet1/0/1 [Sysname-GigabitEthernet1/0/1] qos lr outbound cir 20 cbs 2000 ebs 0...
  • Page 90: Congestion Management Configuration Commands

    Congestion management configuration commands FIFO queuing configuration commands qos fifo queue-length Syntax qos fifo queue-length queue-length undo qos fifo queue-length View Interface view, PVC view Default level 2: System level Parameters queue-length: Queue length threshold, which ranges from 1 to 1024. By default, the queue-length is 1024 for the GE interface of an SR6602 router or an FIP-200/FIP-210/SAP interface card, 1024 for the POS interface of an SR6602 router or an FIP-200/FIP-210 interface card, and 75 for any other interface.
  • Page 91: Pq Configuration Commands

    PQ configuration commands display qos pq interface Syntax display qos pq interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.
  • Page 92: Display Qos Pql

    Field Description Size Number of packets in a queue Queue length, which specifies the maximum number Length of packets a queue can hold Discards Number of dropped packets Top priority queue Middle Middle priority queue Normal Normal priority queue Bottom Bottom priority queue display qos pql Syntax...
  • Page 93: Qos Pq

    qos pq Syntax qos pq pql pql-index undo qos pq View Interface view, PVC view Default level 2: System level Parameters pql: Specifies a PQ list. pql-index: PQ list index, which ranges from 1 to 16. Description Use the qos pq command to apply a PQ list to an interface. Use the undo qos pq command to restore the default.
  • Page 94: Qos Pql Protocol

    Default level 2: System level Parameters pql-index: PQ list index, which ranges from 1 to 16. top, middle, normal, bottom: Corresponds to the four queues in PQ in the descending priority order. The default queue is the normal queue. Description Use the qos pql default-queue command to specify the default queue for packets matching no match criterion.
  • Page 95: Qos Pql Queue

    queue-key key-value Description IP packets smaller than a specified less-than Length (0 to 65535) value are enqueued. IP packets with a specified source Port number (0 to 65535) or destination TCP port number are enqueued. IP packets with a specified source Port number (0 to 65535) or destination UDP port number are enqueued.
  • Page 96: Cq Configuration Commands

    40 for the middle queue • • 60 for the normal queue 80 for the bottom queue • Description Use the qos pql queue command to specify the length of a specified priority queue (the maximum number of packets that the priority queue can hold). Use the undo qos pql queue command to restore the default for a priority queue.
  • Page 97: Display Qos Cql

    Related commands: qos cq. Examples # Display the CQ configuration and statistics of GigabitEthernet 1/0/1. <Sysname> display qos cq interface gigabitethernet 1/0/1 Interface: GigabitEthernet1/0/1 Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Custom queuing : CQL 1 Size/Length/Discards) 20/0 20/0...
  • Page 98: Qos Cq

    Description Use the display qos cql command to display the configuration of the specified or all custom queue lists. This command displays no default items. If no CQ list index is specified, this command displays the configuration of all CQ lists. Related commands: qos cq and qos cql.
  • Page 99: Qos Cql Default-Queue

    Examples # Apply CQ list 5 to GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos cq cql 5 qos cql default-queue Syntax qos cql cql-index default-queue queue-number undo qos cql cql-index default-queue View System view Default level 2: System level Parameters cql-index: CQ list index, which ranges from 1 to 16.
  • Page 100: Qos Cql Queue

    queue queue-number: Specifies an custom queue by its number, which ranges from 1 to 16. ip [ queue-key key-value ]: Classifies and enqueues IP packets. The values for the queue-key argument and the key-value argument are displayed in Table 31. If neither the queue-key argument nor the key-value argument is specified, all IP packets are enqueued.
  • Page 101: Qos Cql Queue Serving

    undo qos cql cql-index queue queue-number queue-length View System view Default level 2: System level Parameters cql-index: CQ list index, which ranges from 1 to 16. queue-number: Queue number, which ranges from 1 to 16. queue-length: Maximum queue length, which ranges from 1 to 1024. This argument is 20 by default. Description Use the qos cql queue command to specify the length of a custom queue, the maximum number of packets a custom queue can hold.
  • Page 102: Wfq Configuration Commands

    Related commands: qos cql default-queue, qos cql inbound-interface, qos cql protocol, qos cql queue queue-length, and qos cq. Examples # Set the byte count of packets to 1400 for queue 2 on CQ list 5. <Sysname> system-view [Sysname] qos cql 5 queue 2 serving 1400 WFQ configuration commands display qos wfq interface Syntax...
  • Page 103: Qos Wfq

    Hashed by IP Precedence Hashed queues: 0/0/128 (Active/Max active/Total) Table 32 Output description Field Description Interface Interface type and interface number Output queue Information about the current output queue Size Number of packets in the queue Length Queue length Discards Number of dropped packets Hashed by Weight type, which can be IP precedence or DSCP...
  • Page 104: Cbq Configuration Commands

    By default, the weight is based on IP precedence. CAUTION: You must enable the line rate function for the queuing function to take effect on these interfaces: tunnel interfaces, subinterfaces, Layer 3 aggregate interfaces, HDLC link bundle interfaces, RPR logical interfaces, and VT interfaces configured with PPPoE, PPPoA, or PPPoEoA encapsulation.
  • Page 105: Qos Max-Bandwidth

    If no interface is specified, this command displays the CBQ configuration and operational information of all interfaces. If a VT interface is specified, this command displays QoS CBQ information of all VA interfaces inheriting the VT interface, but does not display QoS information about the VT interface. Examples # Display the CBQ configuration and operational information of all interfaces.
  • Page 106: Qos Reserved-Bandwidth

    0 kbps applies. NOTE: H3C recommends that you configure the maximum available bandwidth to be smaller than the actual available bandwidth of a physical interface or logical link. On an MP-group interface or MFR interface configured with the qos max-bandwidth command, AF and EF perform queue bandwidth check and calculation based on the bandwidth specified with the qos max-bandwidth command.
  • Page 107: Queue Af

    Default level 2: System level Parameters pct percent: Specifies the percentage of available bandwidth to be reserved. It ranges from 1 to 100 and the default is 80. Description Use the qos reserved-bandwidth command to set the maximum reserved bandwidth as a percentage of available bandwidth of the interface.
  • Page 108: Queue Ef

    The total percentage of the maximum available bandwidth assigned for AF and EF in a policy must • be no more than 100. • The bandwidth assigned to AF and EF in a policy must use the same form, either as an absolute bandwidth value or as a percentage.
  • Page 109: Queue Wfq

    After the queue ef bandwidth pct percentage [ cbs-ratio ratio ] command is used, CBS equals • (Interface available bandwidth × percentage × ratio)/100/1000. • After the queue ef bandwidth bandwidth [ cbs burst ] command is used, CBS equals burst. If the burst argument is not specified, CBS equals bandwidth×25.
  • Page 110: Wred

    undo queue-length queue-length View Traffic behavior view Default level 2: System level Parameters queue-length: Maximum queue length, which ranges from 1 to 512. The default is 64. Description Use the queue-length command to configure the maximum queue length and use tail drop. Use the undo queue-length command to delete the configuration.
  • Page 111: Wred Dscp

    Parameters ip-precedence: Uses the IP precedence value for calculating drop probability of a packet. This keyword is the default. Description Use the wred command to use WRED drop. Use the undo wred command to delete the configuration. You can configure this command only after you have configured the queue af command or the queue wfq command.
  • Page 112: Wred Ip-Precedence

    Removing the wred command configuration removes the wred dscp command configuration as well. The drop-related parameters are removed if the configuration set with the queue af command or the queue wfq command is removed. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Set the following parameters for packets with DSCP value 3: lower limit 20, upper limit 40, and drop probability denominator 15.
  • Page 113: Wred Weighting-Constant

    Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure the following parameters for packets with IP precedence 3: lower limit 20, upper limit 40, and drop probability denominator 15. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] queue wfq [Sysname-behavior-database] wred ip-precedence [Sysname-behavior-database] wred...
  • Page 114: Rtp Queuing Configuration Commands

    RTP queuing configuration commands display qos rtpq interface Syntax display qos rtpq interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.
  • Page 115: Qos Rtpq

    Field Description Discards Number of dropped packets qos rtpq Syntax qos rtpq start-port first-rtp-port-number end-port last-rtp-port-number bandwidth bandwidth [ cbs burst ] undo qos rtpq View Interface view, PVC view Default level 2: System level Parameters start-port first-rtp-port-number: First UDP port number, which ranges from 2000 to 65535. end-port last-rtp-port-number: Last UDP port number, which ranges from 2000 to 65535.
  • Page 116: Qos Token Configuration Commands

    This feature can control the number of packets sent to such queues based on the number of tokens. H3C recommends that you set the token-number to 1 on an interface for FTP transmission. NOTE: After you configure this command on an interface, you must perform the shutdown command and then the undo shutdown command on the interface to have the feature take effect.
  • Page 117: Packet Information Pre-Extraction Configuration Command

    Packet information pre-extraction configuration command qos pre-classify Syntax qos pre-classify undo qos pre-classify View Tunnel interface view, RPR logical interface view, Layer 3 aggregate interface view, HDLC link bundle interface view Default level 2: System level Parameters None Description Use the qos pre-classify command to enable packet information pre-extraction on the interface. Use the undo qos pre-classify command to disable packet information pre-extraction on the interface.
  • Page 118: Hardware Congestion Management Configuration Commands

    Hardware congestion management configuration commands NOTE: The commands in this chapter are available on only a SAP interface card working in bridge mode. SP queuing configuration commands display qos sp Syntax display qos sp interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view...
  • Page 119: Qos

    Table 35 Output description Field Description Interface Interface type and interface number Output queue Pattern of the current output queue Strict-priority queue pattern2 SP queuing pattern 2 is used for queue scheduling qos sp Syntax qos sp undo qos sp View Interface view, port group view Default level...
  • Page 120 Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
  • Page 121: Qos Wrr

    Field Description Queue weight based on which queues are scheduled. Weight N/A indicates that the queue uses the SP queue scheduling algorithm. qos wrr Syntax qos wrr undo qos wrr View Interface view, port group view Default level 2: System level Parameters None Description...
  • Page 122: Qos Wrr Weight

    Default level 2: System level Parameters queue-id: Specifies a queue by its ID, which ranges from 0 to n- 1 (n is the maximum number of queues on an interface and varies by router). sp: Specifies strict priority (SP) queuing. Description Use the qos wrr group sp command to assign a queue to the strict priority (SP) group on a WRR-enabled interface.
  • Page 123: Wfq Configuration Commands

    Use the undo qos wrr weight command to restore the default WRR queuing settings of a queue on an interface. With a WRR queue configured on an interface, WRR queuing is enabled on the interface, and other queues on the interface use the default WRR scheduling value and are assigned to the default WRR priority group.
  • Page 124: Qos Bandwidth Queue

    Examples # Display the WFQ configuration of GigabitEthernet 1/0/1. <Sysname> display qos wfq interface gigabitethernet 1/0/1 Interface: GigabitEthernet1/0/1 Output queue: Hardware weighted fair queue Queue ID Weight Min-Bandwidth ------------------------------------------------ Table 37 Output description Field Description Interface Interface type and interface number Output queue Pattern of the current output queue Queue ID...
  • Page 125: Qos Wfq

    Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group. Examples # Set the minimum guaranteed bandwidth to 100 kbps for queue 0 on GigabitEthernet 1/0/1. <Sysname>...
  • Page 126: Cbq Configuration Commands

    Parameters queue-id: Specifies a queue by its ID, which ranges from 0 to n- 1 (n is the maximum number of queues on an interface and varies by router). weight schedule-value: Specifies a scheduling weight for the specified queue in packet-based WFQ. The value range and default value of this argument depend on your router model.
  • Page 127: Queue

    Examples # Enable AF and set the minimum guaranteed bandwidth to 200 kbps in traffic behavior database. <Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] queue af bandwidth 200 queue ef Syntax queue ef bandwidth bandwidth [ cbs burst ] undo queue ef View Traffic behavior view Default level...
  • Page 128: Wred

    View Traffic behavior view Default level 2: System level Parameters None Description Use the queue wfq command to configure WFQ in a traffic behavior. Use the undo queue wfq command to delete the configuration from a traffic behavior. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure WFQ in traffic behavior test.
  • Page 129 [Sysname-behavior-database] queue wfq [Sysname-behavior-database] wred...
  • Page 130: Congestion Avoidance Configuration Commands

    Congestion avoidance configuration commands WRED configuration commands display qos wred interface Syntax display qos wred interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number.
  • Page 131: Qos Wred Enable

    1000 Table 38 Output description Field Description Interface Interface type and interface number Exponent WRED exponent for average queue length calculation Precedence IP precedence Random discard Number of packets randomly dropped Tail discard Number of packets dropped using tail drop Low limit Lower limit for a queue High limit...
  • Page 132: Qos Wred Dscp

    Examples # Enable WRED on GigabitEthernet 1/0/1, and use the IP precedence for drop probability calculation. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos wfq queue-length 100 queue-number 512 [Sysname-GigabitEthernet1/0/1] qos wred ip-precedence enable qos wred dscp Syntax qos wred dscp dscp-value low-limit low-limit high-limit high-limit discard-probability discard-prob undo qos wred dscp dscp-value View Interface view, PVC view...
  • Page 133: Qos Wred Ip-Precedence

    qos wred ip-precedence Syntax qos wred ip-precedence ip-precedence low-limit low-limit high-limit high-limit discard-probability discard-prob undo qos wred ip-precedence ip-precedence View Interface view, PVC view Default level 2: System level Parameters ip-precedence precedence: IP precedence value, which ranges from 0 to 7. low limit low-limit: Specifies the lower WRED limit (in packets).
  • Page 134 View Interface view, PVC view Default level 2: System level Parameters exponent: Exponent for average queue length calculation, which ranges from 1 to 16. This argument is 9 by default. Description Use the qos wred weighting-constant command to configure the exponent for calculating the average queue length.
  • Page 135: Dar Configuration Commands

    DAR configuration commands NOTE: The commands in this chapter are available on only the SR6602 routers. dar enable Syntax dar enable undo dar enable View Layer 3 Ethernet interface view Default level 2: System level Parameters None Description Use the dar enable command to enable DAR for traffic recognition on the current interface. Use the undo dar enable command to disable DAR on the current interface.
  • Page 136: Dar Protocol-Group

    Parameters filename: P2P signature file name, which must be suffixed with .mtd. Description Use the dar p2p signature-file command to load the specified P2P signature file. Use the undo dar p2p signature-file command to unload the specified P2P signature file. By default, no P2P signature file exists in the system.
  • Page 137: Display Dar Protocol-Statistic

    View Ethernet interface view Default level 2: System level Parameters None Description Use the dar protocol-statistic command to enable the packet accounting function of DAR. Use the undo dar protocol-statistic command to disable the packet accounting function of DAR. By default, the packet accounting function of DAR is disabled. With the packet accounting function of DAR, you can monitor the number of packets and the amount of data traffic of application protocols on each interface.
  • Page 138: Protocol

    regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display dar protocol-statistic command to display the DAR packet statistics. Examples # Display the packet statistics of all the protocols on all interfaces. <Sysname>...
  • Page 139: Reset Dar Protocol-Statistic

    Description Use the protocol command to add the specified protocol to the current protocol group. Use the undo protocol command to delete the specified protocol from the protocol group. By default, no protocol exists in a protocol group. Only the protocols included in the signature file can be added to a protocol group. If an existing protocol in the protocol group is not included in the signature file to be loaded, the protocol is removed from the protocol group automatically when the new signature file is loaded.
  • Page 140: Qppb Configuration Command

    QPPB configuration command QPPB configuration command bgp-policy Syntax bgp-policy { destination | source } { ip-prec-map | ip-qos-map } * undo bgp-policy { destination | source } [ ip-prec-map | ip-qos-map ] * View Interface view Default level 2: System level Parameters destination: Searches the routing table by destination IP address.
  • Page 141 Examples # Configure interface GigabitEthernet 1/0/1 to get the QoS-local ID by looking up routes based on source IP address. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] bgp-policy source ip-qos-map...
  • Page 142: Mpls Qos Configuration Commands

    MPLS QoS configuration commands MPLS QoS configuration commands if-match mpls-exp Syntax if-match [ not ] mpls-exp exp-value-list undo if-match [ not ] mpls-exp exp-value-list View Class view Default level 2: System level Parameters not: Matches packets not conforming to the specified criterion. exp-value-list: List of EXP values.
  • Page 143: Qos Pql Protocol Mpls Exp

    Parameters cql-index: CQ list index, in the range of 1 to 16. queue queue: Specifies a custom queue by its number, which is in the range of 0 to 16. exp-value-list: List of EXP values in the range of 0 to 7. You can enter up to eight EXP values for this argument.
  • Page 144: Remark Mpls-Exp

    Examples # Create a match criterion for MPLS-based PQ list 10 to assign MPLS packets with the EXP value 5 to the top queue. <Sysname> system-view [Sysname] qos pql 10 protocol mpls exp 5 queue top remark mpls-exp Syntax remark mpls-exp exp-value undo remark mpls-exp View Traffic behavior view...
  • Page 145: Fr Qos Configuration Commands

    FR QoS configuration commands FR QoS configuration commands Syntax cbs [ inbound | outbound ] committed-burst-size undo cbs [ inbound | outbound ] View FR class view Default level 2: System level Parameters inbound: Sets the CBS for the incoming packets. This argument is available when FR traffic policing is enabled on interfaces.
  • Page 146: Cir Allow

    undo cir View FR class view Default level 2: System level Parameters committed-information-rate: Minimum CIR in bps, which ranges from 1000 to 45000000. The CIR is 56000 bps by default. Description Use the cir command to set CIR for FR PVCs. Use the undo cir command to restore the default.
  • Page 147: Congestion-Threshold

    committed-information-rate: CIR ALLOW in bps, which ranges from 1000 to 45000000. The CIR ALLOW is 56000 bps by default. Description Use the cir allow command to set the CIR ALLOW for FR PVCs. Use the undo cir allow command to restore the default. CIR ALLOW is the transmit rate that an FR PVC can provide when no congestion occurs to the network.
  • Page 148: Display Fr Class-Map

    performed for packets of PVCs as follows: dropping the FR packets with the DE flag bit 1, and setting the BECN flag bits and FECN flag bits of FR packets to 1. Related commands: fr congestion-threshold. Examples # Create an FR class test1 and configure the FR network to drop FR packets with the DE flag bit 1 when the current PVC queue length uses more than 80% of the total PVC queue length.
  • Page 149: Display Fr Fragment-Info

    Serial2/0/1.1 fr-class ts2 fr dlci Serial2/0/1 fr-class ts fr dlci 222 Serial2/0/1.1 fr-class ts Table 40 Output description Field Description Serial2/0/1 FR interface and the FR class corresponding to the FR interface fr-class ts1 Serial2/0/1.1 FR subinterface and the FR class corresponding to the FR subinterface fr-class ts2 fr dlci 100...
  • Page 150 exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display fr fragment-info command to display the FR fragmentation information. Related commands: fragment.
  • Page 151: Display Fr Switch-Table

    Field Description Data-level Fragment size when voice service is not enabled Voice-level Fragment size when voice service is enabled Pre-fragment Number of packets to be fragmented Fragmented Number of fragmented packets Assembled Number of assembled fragments Dropped Number of dropped fragments Out-of-sequence pkts Number of out-of-sequence fragments Number of outgoing packets and bytes of outgoing...
  • Page 152: Display Qos Policy Interface

    Examples # Display the information about all the FR switching PVCs. <Sysname> display fr switch-table all Switch-Name Interface DLCI Interface DLCI State test MFR1/0 MFR1/1 Table 43 Output description Field Description Switch-Name Name of a switching PVC The first interface represents a local interface, and the Interface second interface represents a peer interface The first DLCI represents a local DLCI, and the second...
  • Page 153 Examples # Display the information about CBQ applied to DLCI 25 of MFR 1/0/0. <Sysname> display qos policy interface mfr 1/0/0 MFR1/0/0, DLCI 25 Direction: Outbound Policy: policy1 Classifier: default-class Matched : 1/133 (Packets/Bytes) Rule(s) : if-match any Behavior: Default Queue: Flow Based Weighted Fair Queueing Max number of hashed queues: 256 Matched...
  • Page 154: Ebs

    Field Description Max number of hashed queues The maximum number of hashed queues The number of matched packets and the bytes of these Matched packets The number of enqueued packets and bytes of these Enqueued packets The number of discarded packets and bytes of these Discarded packets Drop method, which can be tail drop, IP...
  • Page 155: Fifo Queue-Length

    [Sysname-fr-class-test1] ebs 32000 fifo queue-length Syntax fifo queue-length queue-length undo fifo queue-length View FR class view Default level 2: System level Parameters queue-length: FIFO queue length, which specifies the maximum number of packets that a FIFO queue can hold. This argument ranges from 1 to 1024 and defaults to 40. Description Use the fifo queue-length command to set the FIFO queue length for FR PVCs.
  • Page 156: Fr Congestion-Threshold

    By default, no FR class is created. The FR class parameters do not take effect until you associate the FR class with an interface or PVC and enable the FR QoS function on the interface. With an FR class removed, all the associations associating this FR class with an interface or a DLCI are released.
  • Page 157: Fr De Del

    Examples # Configure Serial 2/0/1 to drop FR packets with the DE flag bit 1 when the current interface queues uses more than 80% of the total queue length. <Sysname> system-view [Sysname]interface Serial 2/0/1 [Sysname-Serial2/0/1] fr interface-type dce [Sysname-Serial2/0/1] fr congestion-threshold de 80 fr de del Syntax fr de del list-number dlci dlci-number...
  • Page 158: Fr Del Protocol

    View System view Default level 2: System level Parameters list-number: DE rule list number, which ranges from 1 to 10. interface-type interface-number: Specifies an interface by its type and number. Description Use the fr del inbound-interface command to configure an interface-based DE rule list. Before the incoming packets of the specific interfaces are to be forwarded as FR packets, the DE flag bits of these packets are set to 1.
  • Page 159: Fr Traffic-Policing

    greater-than bytes: IP packets with the length greater than the bytes argument. The bytes argument ranges from 0 to 65535. less-than bytes: IP packets with the length less than the bytes argument. The bytes argument ranges from 0 to 65535. tcp ports: IP packets with the source or destination TCP port number as the ports argument.
  • Page 160: Fr Traffic-Shaping

    Description Use the fr traffic-policing command to enable FR traffic policing. Use the undo fr traffic-policing command to disable FR traffic policing. FR traffic policing is applicable only to the ingress interfaces on the DCE side of an FR network. Before enabling traffic policing for the incoming interfaces, make sure that FR switching is globally enabled on the DCE by using the fr switching command.
  • Page 161: Fr-Class

    undo fragment [ data-level | voice-level ] View FR class view Default level 2: System level Parameters fragment-size: Fragment size, which ranges from 16 bytes to 1600 bytes. This argument is 45 bytes by default. Description Use the fragment command to enable the packet fragmentation function (conforming to frame relay forum’s FRF.12) for FR PVCs.
  • Page 162: Traffic-Shaping Adaptation

    Instead of removing an FR class, the undo fr-class command just cancels the association between the FR class and the current FR PVC or interface. Use the undo fr class command to remove an FR class. For an interface associated with an FR class, all the PVCs on the interface inherit the FR QoS parameters in the FR class.
  • Page 163: Index

    Index A B C D E F G I P Q R S T W display qos cql,88 display qos gts interface,75 accounting,39 display qos lr interface,78 acl,1 display qos map-table,63 accelerate,2 display qos policy,52 copy,3 display qos policy interface,143 ipv6,3 display qos policy interface,54...
  • Page 164 if-match,32 wrr,1 12 if-match mpls-exp,133 qos wrr group sp,1 12 import,65 qos wrr weight,1 13 queue af,98 queue af,1 17 protocol,129 queue ef,1 18 queue ef,99 queue wfq,1 18 qos apply policy (interface view),58 queue wfq,100 qos apply policy (user-profile view),60 queue-length,100 qos bandwidth...

Table of Contents