< Home

Collecting VPLS Traffic Statistics

Context

To collect statistics on VPLS traffic, choose either of the following methods:
  • Enable traffic statistics collection for the specified PW.
  • Enable traffic statistics collection on the VLANIF interfaces bound to the specified VPLSs.

Do as follows on the device configured with the VSI:

Procedure

  • Enable traffic statistics collection for the specified PW.
    1. Run the system-view command to enter the system view.
    2. Run the vsi vsi-name [ auto | static ] command to enter the VSI view.
    3. Choose one of the following commands to collect statistics on traffic of a PW:
      • In BGP mode:
        1. Run the pwsignal bgp command to configure BGP as the PW signaling protocol and enter the VSI-BGP view.
        2. Run the traffic-statistics peer peer-address remote-site site-id enable command to enable the traffic statistics function on a Kompella VPLS PW.
      • In LDP mode:
        1. Run the pwsignal ldp command to configure LDP as the PW signaling protocol and enter the VSI-LDP view.
        2. Run the traffic-statistics peer peer-address peer-address [ negotiation-vc-id vc-id ] enable command to enable the traffic statistics function on a Martini VPLS PW.

          When there are a large number of PWs, you can run the traffic-statistics enable (VSI-LDP view) command to enable the traffic statistics function on a Martini VPLS PW.

      • In BGP AD mode:
        1. Run the bgp-ad command to set the PW establish mode of the VSI to automatic discovery and deployment, and enter the VSI-BGPAD view.
        2. Run the traffic-statistics peer peer-address enable command to enable the traffic statistics function on a BGP AD VPLS PW.

          When there are a large number of PWs, you can run the traffic-statistics enable (VSI-BGPAD view) command to enable the traffic statistics function on all BGP AD VPLS PWs.

  • Enable traffic statistics collection on the VLANIF interfaces bound to the specified VPLS.
    1. Run the system-view command to enter the system view.
    2. Run the interface vlanif vlan-id command to enter the VLANIF interface view.
    3. Run the l2 binding vsi vsi-name command to bind the VLANIF interface to a VSI.
    4. Run the statistic enable { both | inbound | outbound } command to enable traffic statistics collection on the VLANIF interface bound to the specified VSI.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >