Example for Configuring TWAMP

This section provides an example for configuring TWAMP in typical networking.

Networking Requirements

On the IP network shown in Figure 1, DeviceA functions as the Server (supports only passive measurement) in a TWAMP test. DeviceB functions as the Control-Client. It initiates statistics collection by specifying the IP address of DeviceA. DeviceB then sends collected statistics to the performance management system.

DeviceB must be able to function as the Controller. Data is sent using data collection technology such as telemetry. For details about the configuration procedure, see the corresponding third-party product manual.

Figure 1 Configuring TWAMP

Configuration Roadmap

The configuration roadmap for DeviceA is as follows:

  1. Configure the Server.

  2. Configure the Session-Reflector.

Data Preparation

To complete the configuration, you need the following data:

  • IP address of DeviceA
  • TCP port number
  • Inactive interval for a control session
  • Inactive interval for a test session

Procedure

  1. Configure DeviceA, DeviceB, and the performance management system to be routable. The configuration details are not provided here.
  2. Configure the Server.

    <DeviceA> system-view
    [~DeviceA] nqa twamp
    [~DeviceA-twamp] server
    [~DeviceA-twamp-srv] tcp listen-mode any-ip
    [*DeviceA-twamp-srv] tcp port 65530
    [*DeviceA-twamp-srv] control-session inactive 600
    [*DeviceA-twamp-srv] quit

  3. Configure the Session-Reflector.

    [*DeviceA-twamp] reflector
    [*DeviceA-twamp-ref] test-session inactive 600
    [*DeviceA-twamp-ref] quit
    [*DeviceA-twamp] quit
    [*DeviceA] commit

  4. Verify the configuration.

    # View global information about TWAMP on DeviceA.

    [~DeviceA] display twamp global-info
    Start Time                       : 2019-08-05 16:47:55
    Control Session Numbers          : 10
    Control Session Rejected Numbers : 0
    Test Session Numbers             : 10
    Test Session Completed Numbers   : 10
    Test Session Aborted Numbers     : 0
    Test Tx Numbers                  : 100
    Test Rx Numbers                  : 100

    # View information about control sessions on DeviceA.

    [~DeviceA] display twamp control-session verbose
    State                : active
    Control Session ID   : 0
    Client IP            : 1.1.1.1
    Client Port          : 65530
    Server IP            : 1.1.1.2
    Server Port          : 65530 
    VPN Instance         : -
    Mode                 : unauthenticated
    Inactivity Time(s)   : -
    Test Session Number  : 10 
    Created Time         : 2019-08-05 16:47:55
    Normal Stop          : 100
    Abort Stop           : 10

    # Check TWAMP test session information on DeviceA.

    [~DeviceA] display twamp test-session verbose
    State                : active
    Sender IP            : 1.1.1.1
    Sender Port          : 65530
    Reflector IP         : 1.1.1.2
    Reflector Port       : 65530
    Session ID           : 1.1.1.1:1039033631:FCF9C6DA
    Control Session ID   : 1
    Mode                 : unauthenticated
    DSCP                 : 03
    Padding Length       : 128
    VPN Instance         : -
    Create Time          : 2019-08-05 16:47:55
    Last Start Time      : 2019-08-05 16:47:55
    Last Stop Time       : never
    Sequence Number      : 2000
    Test Tx Numbers      : 100
    Test Rx Numbers      : 100
    Test Discard Numbers : 0

Configuration Files

  • DeviceA configuration file

    #
     sysname DeviceA
    #
    nqa twamp
     server
      tcp listen-mode any-ip
      tcp port 65530
      control-session inactive 600
     reflector
      test-session inactive 600
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >