This section provides an example for configuring TWAMP Light based on Eth-Trunk member interfaces.
On the IP network shown in Figure 1, DeviceA functions as the Controller, and DeviceB functions as the Responder. Multiple member links of an Eth-Trunk are bundled between DeviceA and DeviceB.
In this example, interfaces 1 and 2 represent GE 0/1/0 and GE 0/1/8, respectively.
To complete the configuration, you need the following data:
<DeviceB> system-view [~DeviceB] interface Eth-Trunk 1 [*DeviceB-Eth-Trunk1] ip address 10.2.2.2 8 [*DeviceB-Eth-Trunk1] commit [~DeviceB-Eth-Trunk1] quit [~DeviceB] interface gigabitethernet0/1/0 [~DeviceB-Gigabitethernet0/1/0] undo shutdown [*DeviceB-Gigabitethernet0/1/0] eth-trunk 1 [*DeviceB-Gigabitethernet0/1/0] commit [~DeviceB-Gigabitethernet0/1/0] quit [~DeviceB] interface gigabitethernet0/1/8 [~DeviceB-Gigabitethernet0/1/8] undo shutdown [*DeviceB-Gigabitethernet0/1/8] eth-trunk 1 [*DeviceB-Gigabitethernet0/1/8] commit [~DeviceB-Gigabitethernet0/1/8] quit
[~DeviceB] nqa twamp-light [*DeviceB-twamp-light] responder [*DeviceB-twamp-light-responder] test-session 1 local-ip 10.2.2.2 remote-ip 10.1.1.1 local-port 2010 remote-port 2001 link-bundle-interface Eth-Trunk 1 [*DeviceB-twamp-light-responder] commit [~DeviceB-twamp-light-responder] quit [~DeviceB-twamp-light] quit
[~DeviceA] nqa twamp-light [*DeviceA-twamp-light] client [*DeviceA-twamp-light-client] test-session 1 sender-ip 10.1.1.1 reflector-ip 10.2.2.2 sender-port 2001 reflector-port 2010 link-bundle-interface Eth-Trunk 1 [*DeviceA-twamp-light-client] commit [~DeviceA-twamp-light-client] quit [~DeviceA-twamp-light] sender [*DeviceA-twamp-light-sender] commit [~DeviceA-twamp-light-sender] test start-continual test-session 1 period 10 [*DeviceA-twamp-light-sender] commit [~DeviceA-twamp-light-sender] quit [~DeviceA-twamp-light] quit
# Check session statistics collected based on Eth-Trunk member interfaces on DeviceA.
[~DeviceA] display twamp-light test-session 1 Session ID : 1 State : inconsistent Type : continual Sender IP : 10.1.1.1 Sender Port : 2001 Reflector IP : 10.2.2.2 Reflector Port : 2010 Mode : unauthenticated DSCP : 0 Padding Length : 128 Padding Type : 00 VPN Instance : - Link-Bundle Interface : Eth-Trunk1 Last Start Time : - Last Stop Time : - Regular Time(in minute) : - Period Time(in millisecond) : 10 Time Out(in second) : 5 Duration Time(in second) : - Packet Count : - Member-If : Gigabitethernet0/1/0 State : active Last Start Time : 2020-12-13 15:33:52 Last Stop Time : never Member-If : Gigabitethernet0/1/8 State : active Last Start Time : 2020-12-13 15:33:52 Last Stop Time : never
# Display the two-way delay statistics of a TWAMP Light session based on member interfaces on DeviceA.
[~DeviceA] display twamp-light statistic-type twoway-delay test-session 1 link-bundle-member Gigabitethernet 0/1/0 Latest two-way delay statistics(usec): -------------------------------------------------------------------------------- Index Delay(Avg) Jitter(Avg) Tx-Jitter(Avg) Rx-Jitter(Avg) -------------------------------------------------------------------------------- 11027 345 5 3 4 11028 345 5 3 4 11029 345 5 4 4 11030 347 5 3 4 11031 347 4 3 4 11032 347 4 3 4 11033 347 4 3 4 11034 346 4 3 4 11035 346 5 3 4 11036 346 5 3 4 11037 346 5 3 4 11038 346 4 4 3 11039 347 4 4 3 11040 347 4 4 3 11041 347 4 4 3 11042 347 4 4 3 11043 347 5 3 4 11044 346 5 3 4 11045 346 5 3 4 11046 346 5 3 4 11047 346 5 3 4 11048 346 5 3 4 11049 346 4 3 4 11050 346 4 3 4 11051 345 4 3 3 11052 345 4 3 3 11053 345 5 4 3 11054 345 5 4 3 11055 345 4 4 3 11056 345 4 3 3 -------------------------------------------------------------------------------- Average Delay : 346 Average Jitter : 5 Maximum Delay : 370 Maximum Jitter : 32 Minimum Delay : 328 Minimum Jitter : 0 Average TxJitter : 3 Average RxJitter : 4 Maximum TxJitter : 29 Maximum RxJitter : 23 Minimum TxJitter : 0 Minimum RxJitter : 0
# Display the two-way packet loss statistics of a TWAMP Light session based on member interfaces on DeviceA.
[~DeviceA] display twamp-light statistic-type twoway-loss test-session 1 link-bundle-member Gigabitethernet 0/1/0 Latest two-way loss statistics: -------------------------------------------------------------------------------- Index Loss count Loss ratio Error count Error ratio -------------------------------------------------------------------------------- 108196 0 0.0000% 0 0.0000% 108197 0 0.0000% 0 0.0000% 108198 0 0.0000% 0 0.0000% 108199 0 0.0000% 0 0.0000% 108200 0 0.0000% 0 0.0000% 108201 0 0.0000% 0 0.0000% 108202 0 0.0000% 0 0.0000% 108203 0 0.0000% 0 0.0000% 108204 0 0.0000% 0 0.0000% 108205 0 0.0000% 0 0.0000% 108206 0 0.0000% 0 0.0000% 108207 0 0.0000% 0 0.0000% 108208 0 0.0000% 0 0.0000% 108209 0 0.0000% 0 0.0000% 108210 0 0.0000% 0 0.0000% 108211 0 0.0000% 0 0.0000% 108212 0 0.0000% 0 0.0000% 108213 0 0.0000% 0 0.0000% 108214 0 0.0000% 0 0.0000% 108215 0 0.0000% 0 0.0000% 108216 0 0.0000% 0 0.0000% 108217 0 0.0000% 0 0.0000% 108218 0 0.0000% 0 0.0000% 108219 0 0.0000% 0 0.0000% 108220 0 0.0000% 0 0.0000% 108221 0 0.0000% 0 0.0000% 108222 0 0.0000% 0 0.0000% 108223 0 0.0000% 0 0.0000% 108224 0 0.0000% 0 0.0000% 108225 0 0.0000% 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% Average RxError Count: 0 Average RxError Ratio: 0.0000% Maximum RxError Count: 0 Maximum RxError Ratio: 0.0000% Minimum RxError Count: 0 Minimum RxError Ratio: 0.0000%
[~DeviceA] telemetry [~DeviceA-telemetry] destination-group twamp [*DeviceA-telemetry-destination-group-twamp] ipv4-address 192.168.100.100 port 10001 protocol grpc no-tls [*DeviceA-telemetry-destination-group-twamp] quit [*DeviceA-telemetry] sensor-group twamp [*DeviceA-telemetry-sensor-group-twamp] sensor-path huawei-twamp-controller:twamp-controller/client/sessions/session/huawei-twamp-statistics:statistics [*DeviceA-telemetry-sensor-group-twamp] sensor-path huawei-twamp-controller:twamp-controller/client/sessions/session/huawei-twamp-statistics:link-bundle-statistics/link-bundle-statistic [*DeviceA-telemetry-sensor-group-twamp] quit [*DeviceA-telemetry] subscription twamp [*DeviceA-telemetry-subscription-twamp] sensor-group twamp sample-interval 5000 [*DeviceA-telemetry-subscription-twamp] destination-group twamp [*DeviceA-telemetry-subscription-twamp] commit
# sysname DeviceA # interface Eth-Trunk 1 ip address 10.1.1.1 8 # interface gigabitethernet0/1/0 undo shutdown eth-trunk 1 # interface gigabitethernet0/1/8 undo shutdown eth-trunk 1 # nqa twamp-light client test-session 1 sender-ip 10.1.1.1 reflector-ip 10.2.2.2 sender-port 2001 reflector-port 2010 link-bundle-interface Eth-Trunk 1 sender test start-continual test-session 1 period 10 # telemetry # sensor-group twamp sensor-path huawei-twamp-controller:twamp-controller/client/sessions/session/huawei-twamp-statistics:statistics sensor-path huawei-twamp-controller:twamp-controller/client/sessions/session/huawei-twamp-statistics:link-bundle-statistics/link-bundle-statistic # destination-group twamp ipv4-address 192.168.100.100 port 10001 protocol grpc no-tls # subscription twamp sensor-group twamp sample-interval 5000 destination-group twamp # return
DeviceB configuration file
# sysname DeviceB # interface Eth-Trunk 1 ip address 10.2.2.2 8 # interface gigabitethernet0/1/0 undo shutdown eth-trunk 1 # interface gigabitethernet0/1/8 undo shutdown eth-trunk 1 # nqa twamp-light responder test-session 1 local-ip 10.2.2.2 remote-ip 10.1.1.1 local-port 2010 remote-port 2001 link-bundle-interface Eth-Trunk 1 # return