This section provides an example for configuring TWAMP in typical networking.
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.
To complete the configuration, you need the following data:
<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
[*DeviceA-twamp] reflector [*DeviceA-twamp-ref] test-session inactive 600 [*DeviceA-twamp-ref] quit [*DeviceA-twamp] quit [*DeviceA] commit
# 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