Configuring Profile-based Traffic Policing

QoS profile-based traffic policing allows you to configure a CAR policy in a QoS profile and apply the QoS profile to an interface to control the traffic on this interface.

Procedure

  • Configure traffic policing in a QoS profile.
    1. Run system-view

      The system view is displayed.

    2. Run qos-profile qos-profile-name

      A QoS profile is created and its view is displayed.

    3. (Optional) Run description description-info

      A description is configured for the QoS profile.

    4. Run car { cir cir-value [ pir pir-value ] } [ cbs cbs-value [ pbs pbs-value ] ] [ priority-aware [ priority-template priority-template-name ] ] [ adjust adjust-value ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ] * [ color-aware ]

      CAR is configured in order to guarantee user traffic.

    5. (Optional) Run broadcast-suppression cir cir-value [ cbs cbs-value ] [ inbound | outbound ]

      A rate limit is configured for broadcast packets in the QoS profile.

    6. (Optional) Run multicast-suppression cir cir-value [ cbs cbs-value ] [ inbound | outbound ]

      A rate limit is configured for multicast packets in the QoS profile.

    7. (Optional) Run unknown-unicast-suppression cir cir-value [ cbs cbs-value ] [ inbound | outbound ]

      A rate limit is configured for unknown unicast packets in the QoS profile.

    8. (Optional) Run bu-suppression cir cir-value [ cbs cbs-value ] inbound

      An overall rate limit for is configured broadcast and unknown unicast packets in the QoS profile.

    9. (Optional) Run bum-suppression cir cir-value [ cbs cbs-value ] inbound

      An overall rate limit is configured for broadcast, unknown unicast, and multicast packets in the QoS profile.

      The qos-profile command configuration on an interface is mutually exclusive with the CAR and traffic suppression configuration on this interface in the same direction.

  • Apply the QoS profile.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run any of the following commands to apply the QoS profile to a specific type of interface:

      • Run the qos-profile qos-profile-name { inbound | outbound } [ identifier none ] [ group group-name ] command to apply the QoS profile to a dot1q sub-interface.
      • Run the qos-profile qos-profile-name { inbound | outbound } vlan vlan-id-begin [ to vlan-id-end ] [ identifier { vlan-id | none } ] [ group group-name ] command to apply the QoS profile to a Layer 2 interface or a dot1q VLAN tag termination sub-interface.
      • Run the qos-profile qos-profile-name { inbound | outbound } pe-vid pe-vlan-id ce-vid ce-vlan-id-begin [ to ce-vlan-id-end ] [ identifier { pe-vid | ce-vid | pe-ce-vid | none } ] [ group group-name ] command to apply the QoS profile to a QinQ VLAN tag termination sub-interface.
      • Run the qos-profile qos-profile-name { inbound | outbound } [ identifier { none | vid | ce-vid | vid-ce-vid } ] [ group group-name ] command to apply the QoS profile to an EVC Layer 2 sub-interface.
      • Run the qos-profile qos-profile-name { inbound | outbound } vni vni-id source sourceip peer peerip command to apply the QoS profile to an NVE interface.

    4. Run commit

      The configuration is committed.

    5. Run quit

      Return to the system view.

Verifying the Configuration

After completing the configuration, perform the following operations to check the configurations:
  • Run the display qos-profile application { qos-profile-name } command to check the application information about a QoS profile.
  • Run the display qos-profile configuration [ qos-profile-name ] command to check the configurations of a QoS profile.
  • Run the monitor qos-profile statistics interface { interface-name | interface-type interface-number } [ vlan vlan-id | pe-vid pe-vid ce-vid ce-vid | vid vid-id | ce-vid ce-vid | vid vid-id ce-vid ce-vid ] { inbound | outbound } [ interval seconds [ repeat repeat ] ] command to monitor QoS profile statistics.
  • Run the display traffic buffer usage slot slot-id command to check the current buffer usage.

    In VS mode, this command is supported only by the admin VS.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic