Configuring Basic VPWS QoS Functions

The VPN services carried over a tunnel have different resource requirements. To meet the resource requirements of VPWS services carried over a tunnel without affecting the quality of other VPN services, you need to configure VPWS QoS.

Usage Scenario

In an L2VPN scenario, if multiple VPN services are carried over the same tunnel, bandwidth preemption occurs among these VPN services. Non-VPN traffic also preempts the bandwidth of VPN traffic. As a result, VPN traffic cannot be forwarded strictly based on service priorities.

To solve this problem, you need to configure VPWS QoS. VPWS QoS ensures that the VPWS services carried over the tunnel have their resource requirements met without affecting the service quality of other VPNs.

Pre-configuration Tasks

Before configuring basic VPWS QoS functions, configure VPWS PWs.

Procedure

  • Configure basic VPN QoS functions in the interface view.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The view of an AC interface is displayed.

    3. Run mpls l2vpn qos cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ secondary | bypass ]

      The VPWS PW bandwidth is specified.

      Note that:

      • secondary: specifies the bandwidth of the secondary VPWS PW.
      • bypass: specifies the bandwidth of the bypass PW.

    4. Run commit

      The configuration is committed.

  • Configure basic VPN QoS functions in the PW template view.
    1. Run system-view

      The system view is displayed.

    2. Run pw-template pwname

      A PW template is created, and the PW template view is displayed.

    3. Run qos cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ]

      The VPWS PW bandwidth is specified.

    4. Run commit

      The configuration is committed.

  • Configure basic VPN QoS functions in the system view.
    1. Run system-view

      The system view is displayed.

    2. Run either of the following commands based on switching PW types:

      • To configure the basic QoS functions for a static switching PW, run:

        mpls switch-l2vc [ instance-name instance-name ] ip-address vc-id trans trans-label recv received-label cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] between ip-address vc-id trans trans-label recv received-label cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] encapsulation { atm-1to1-vcc | atm-1to1-vpc | atm-aal5-pdu | atm-aal5-sdu | atm-nto1-vcc | atm-nto1-vpc | atm-trans-cell | cesopsn-basic | satop-e1 | ethernet | fr | hdlc |  ip-interworking | ip-layer2 | ppp | satop-e3 | satop-t1 | vlan } [ control-word | no-control-word ]
      • To configure the basic QoS functions for a dynamic switching PW, run:

        mpls switch-l2vc [ instance-name instance-name ] ip-address vc-id cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] between ip-address vc-id [ cir cir-value ] [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] encapsulation { atm-1to1-vcc | atm-1to1-vpc | atm-aal5-pdu | atm-aal5-sdu | atm-nto1-vcc | atm-nto1-vpc | atm-trans-cell | cesopsn-basic | ethernet | fr | hdlc | ip-interworking | ip-layer2 | ppp | satop-e1 | satop-e3 | satop-t1 | vlan } [ control-word-transparent ]
      • To configure the basic QoS functions for a hybrid switching PW, run:

        mpls switch-l2vc [ instance-name instance-name ] ip-address vc-id cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] between ip-address vc-id trans trans-label recv recv-label cir cir-value [ pir pir-value ] [ qos-profile qos-profile-name ] [ tunnel-policy policy-name ] [ oam-packet pop flow-label ] encapsulation cesopsn-basic [ mtu mtu-value ] [ control-word | no-control-word ] [ rtp-header ] timeslotnum timeslotnum-value [ tdm-encapsulation number ] [ flow-label { both | send | receive } ] [ control-word-transparent ]

    3. Run commit

      The configuration is committed.

Verifying the Configuration

After configuring basic VPWS QoS functions, verify the configuration.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >