Configuring TWAMP Light Functions
This section describes how to configure TWAMP Light functions, including configuring the Controller and the Responder.
Usage Scenario
As TWAMP Light simplifies deployment and supports plug-and-play, you can use TWAMP Light to rapidly and flexibly measure the round-trip performance of an IP network, such as the two-way packet loss rate, jitter, and delay.
Pre-configuration Tasks
Before configuring TWAMP Light functions, complete the following tasks:
Ensure that devices on the live network support TWAMP Light and comply with standard protocols.
Ensure that the Controller and Responder are routable and IP links between them work properly.
- Configuring the TWAMP Light Responder
The TWAMP Light Responder responds to TWAMP test packets sent by the TWAMP Light Controller. - Configuring the TWAMP Light Controller
The TWAMP Light Controller integrates the Control-Client and Session-Sender. The Control-Client establishes, starts, and stops a test session and collects statistics. The Session-Sender starts or stops a test session and sends probes to the Responder for performance statistics. - Checking the Configurations
After configuring the TWAMP Light statistics collection function, check the configurations.
Configuring the TWAMP Light Responder
The TWAMP Light Responder responds to TWAMP test packets sent by the TWAMP Light Controller.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
nqa twamp-light
The TWAMP Light view is displayed.
- Run:
responder
The TWAMP Light Responder is enabled, and the TWAMP Light Responder view is displayed.
- Run:
test-session session-id local-ip local-ip-address remote-ip remote-ip-address local-port local-port remote-port remote-port [ vpn-instance vpn-instance-name ] [ anti-loop-on ] [ description description ]
A TWAMP Light test session is created.
After a test session is configured, its parameters cannot be modified. To modify parameters of a test session, delete the session and reconfigure it.
The IP address configured for a test session must be a unicast address.
The UDP port number of a Responder must be an unused port number.
The VPN instance configured for a test session must be existent. When you attempt to delete the VPN instance, the system prompts that the VPN instance cannot be deleted because it has been bound to a TWAMP test session.
Configuring the TWAMP Light Controller
The TWAMP Light Controller integrates the Control-Client and Session-Sender. The Control-Client establishes, starts, and stops a test session and collects statistics. The Session-Sender starts or stops a test session and sends probes to the Responder for performance statistics.
Checking the Configurations
After configuring the TWAMP Light statistics collection function, check the configurations.
Procedure
- Run the display twamp-light test-session [ verbose | session-id ] command to check real-time statistics about a specified TWAMP Light test session.
- Run the display twamp-light statistic-type { twoway-delay | twoway-loss } test-session session-id command to check statistics about the two-way packet delay or loss of a specified TWAMP Light test session.
Example
<HUAWEI> display twamp-light test-session 1
Session ID : 1
State : inactive(not startup)
Type : -
Sender IP : 10.1.1.1
Sender Port : 10000
Reflector IP : 20.1.1.1
Reflector Port : 10000
Mode : unauthenticated
DSCP : 0
Padding Length : 1450
Padding Type : 00
VPN Instance : -
Last Start Time : never
Last Stop Time : never
Period Time(in millisecond) : -
Time Out(in second) : -
Duration Time(in second) : -
Packet Count : -
<HUAWEI> display twamp-light statistic-type twoway-delay test-session 1
Latest two-way delay statistics(usec):
--------------------------------------------------------------------------------
Index Delay(Avg) Jitter(Avg)
--------------------------------------------------------------------------------
1 156 3
2 156 3
3 156 2
4 156 2
5 156 3
6 156 3
7 156 3
8 156 3
9 156 2
10 156 2
11 156 3
12 156 3
13 156 3
14 156 3
15 156 3
16 156 3
17 156 3
18 156 3
19 156 3
20 156 2
21 156 3
22 157 2
23 156 3
24 156 3
25 156 2
26 156 3
27 156 3
28 156 3
29 156 2
30 156 3
--------------------------------------------------------------------------------
Average Delay : 156 Average Jitter : 3
Maximum Delay : 163 Maximum Jitter : 9
Minimum Delay : 151 Minimum Jitter : 0
<HUAWEI> display twamp-light statistic-type twoway-loss test-session 1
Latest two-way loss statistics:
--------------------------------------------------------------------------------
Index Loss count Loss ratio
--------------------------------------------------------------------------------
1 0 0.0000%
2 0 0.0000%
3 0 0.0000%
4 0 0.0000%
5 0 0.0000%
6 0 0.0000%
7 0 0.0000%
8 0 0.0000%
9 0 0.0000%
10 0 0.0000%
11 0 0.0000%
12 0 0.0000%
13 0 0.0000%
14 0 0.0000%
15 0 0.0000%
16 0 0.0000%
17 0 0.0000%
18 0 0.0000%
19 0 0.0000%
20 0 0.0000%
21 0 0.0000%
22 0 0.0000%
23 0 0.0000%
24 0 0.0000%
25 0 0.0000%
26 0 0.0000%
27 0 0.0000%
28 0 0.0000%
29 0 0.0000%
30 0 0.0000%
--------------------------------------------------------------------------------
Average Loss Count : 0 Average Loss Ratio : 0.0000%
Maximum Loss Count : 0 Maximum Loss Ratio : 0.0000%
Minimum Loss Count : 0 Minimum Loss Ratio : 0.0000%