Check Twamp Operation
This scenario shows how to configure Network Service Monitor (NSM) operations to measure network quality using active traffic probes and the TWAMP protocol. In addition, the TWAMP NSM responder service is configured.
Test IPv4 Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using an IPv4 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10.215.200.100/24 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A destination-address 10.215.200.100 set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 0 0.00 al_rtt false 0 0.00
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------- A al_rtt false 0.000024 0.000003 0.000000 7/100 A al_loss false 0.000024 0.000003 0.000000 7/100 A al_jitter false 0.000024 0.000003 0.000000 7/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:47:21.870536 1 45.07 al_loss true 2023-12-13 00:47:21.064308 1 58.00 al_rtt true 2023-12-13 00:47:22.118413 1 41.12
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------ Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------ A al_rtt true 0.450225 0.459815 45.000000 100/100 2023-12-13 00:47:22.118413 A al_loss true 0.450225 0.459815 45.000000 100/100 2023-12-13 00:47:21.064308 A al_jitter true 0.450225 0.459815 45.000000 100/100 2023-12-13 00:47:21.870536
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536 2 65.61 al_loss false 2023-12-13 00:47:29.839591 2023-12-13 00:47:21.064308 2 71.73 al_rtt false 2023-12-13 00:47:28.899230 2023-12-13 00:47:22.118413 2 55.42
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000437 0.000131 0.000000 100/100 2023-12-13 00:47:28.899230 2023-12-13 00:47:22.118413 A al_loss false 0.000437 0.000131 0.000000 100/100 2023-12-13 00:47:29.839591 2023-12-13 00:47:21.064308 A al_jitter false 0.000437 0.000131 0.000000 100/100 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536 2 43.85 al_loss false 2023-12-13 00:47:29.839591 2023-12-13 00:47:21.064308 2 47.93 al_rtt true 2023-12-13 00:47:33.541856 2023-12-13 00:47:28.899230 3 54.51
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.801406 0.009072 0.000000 100/100 2023-12-13 00:47:33.541856 2023-12-13 00:47:28.899230 A al_loss false 0.801406 0.009072 0.000000 100/100 2023-12-13 00:47:29.839591 2023-12-13 00:47:21.064308 A al_jitter false 0.801406 0.009072 0.000000 100/100 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536 2 33.35 al_loss false 2023-12-13 00:47:42.159013 2023-12-13 00:47:37.648105 4 55.18 al_rtt false 2023-12-13 00:47:41.656932 2023-12-13 00:47:33.541856 4 61.86
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000414 0.000058 0.000000 100/100 2023-12-13 00:47:41.656932 2023-12-13 00:47:33.541856 A al_loss false 0.000414 0.000058 0.000000 100/100 2023-12-13 00:47:42.159013 2023-12-13 00:47:37.648105 A al_jitter false 0.000414 0.000058 0.000000 100/100 2023-12-13 00:47:29.901574 2023-12-13 00:47:21.870536
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:47:45.915943 2023-12-13 00:47:29.901574 3 35.05 al_loss false 2023-12-13 00:47:42.159013 2023-12-13 00:47:37.648105 4 44.36 al_rtt false 2023-12-13 00:47:41.656932 2023-12-13 00:47:33.541856 4 49.73
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.176438 0.233865 0.000000 100/100 2023-12-13 00:47:41.656932 2023-12-13 00:47:33.541856 A al_loss false 0.176438 0.233865 0.000000 100/100 2023-12-13 00:47:42.159013 2023-12-13 00:47:37.648105 A al_jitter true 0.176438 0.233865 0.000000 100/100 2023-12-13 00:47:45.915943 2023-12-13 00:47:29.901574
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:47:52.845547 2023-12-13 00:47:45.915943 4 41.92 al_loss false 2023-12-13 00:47:53.133326 2023-12-13 00:47:49.679390 6 46.91 al_rtt false 2023-12-13 00:47:51.683078 2023-12-13 00:47:49.082531 6 49.03
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000434 0.000054 0.000000 100/100 2023-12-13 00:47:51.683078 2023-12-13 00:47:49.082531 A al_loss false 0.000434 0.000054 0.000000 100/100 2023-12-13 00:47:53.133326 2023-12-13 00:47:49.679390 A al_jitter false 0.000434 0.000054 0.000000 100/100 2023-12-13 00:47:52.845547 2023-12-13 00:47:45.915943
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv4 FQDN Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv4 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10.215.200.100/24 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A destination-address test.nsm.fqdn set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10.215.200.100
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 0 0.00 al_rtt false 0 0.00
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------- A al_rtt false 0.000037 0.000008 0.000000 9/100 A al_loss false 0.000037 0.000008 0.000000 9/100 A al_jitter false 0.000037 0.000008 0.000000 9/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:48:08.319511 1 49.97 al_loss true 2023-12-13 00:48:07.864089 1 56.89 al_rtt true 2023-12-13 00:48:09.022154 1 39.30
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------ Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------ A al_rtt true 0.460231 0.399858 46.000000 100/100 2023-12-13 00:48:09.022154 A al_loss true 0.460231 0.399858 46.000000 100/100 2023-12-13 00:48:07.864089 A al_jitter true 0.460231 0.399858 46.000000 100/100 2023-12-13 00:48:08.319511
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511 2 67.53 al_loss false 2023-12-13 00:48:16.992847 2023-12-13 00:48:07.864089 2 73.22 al_rtt false 2023-12-13 00:48:15.122047 2023-12-13 00:48:09.022154 2 48.89
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000423 0.000049 0.000000 100/100 2023-12-13 00:48:15.122047 2023-12-13 00:48:09.022154 A al_loss false 0.000423 0.000049 0.000000 100/100 2023-12-13 00:48:16.992847 2023-12-13 00:48:07.864089 A al_jitter false 0.000423 0.000049 0.000000 100/100 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511 2 45.87 al_loss false 2023-12-13 00:48:16.992847 2023-12-13 00:48:07.864089 2 49.73 al_rtt true 2023-12-13 00:48:20.236632 2023-12-13 00:48:15.122047 3 50.27
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.792437 0.009057 0.000000 100/100 2023-12-13 00:48:20.236632 2023-12-13 00:48:15.122047 A al_loss false 0.792437 0.009057 0.000000 100/100 2023-12-13 00:48:16.992847 2023-12-13 00:48:07.864089 A al_jitter false 0.792437 0.009057 0.000000 100/100 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511 2 34.94 al_loss false 2023-12-13 00:48:28.759128 2023-12-13 00:48:24.242563 4 56.60 al_rtt false 2023-12-13 00:48:28.271427 2023-12-13 00:48:20.236632 4 58.61
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000439 0.000054 0.000000 100/100 2023-12-13 00:48:28.271427 2023-12-13 00:48:20.236632 A al_loss false 0.000439 0.000054 0.000000 100/100 2023-12-13 00:48:28.759128 2023-12-13 00:48:24.242563 A al_jitter false 0.000439 0.000054 0.000000 100/100 2023-12-13 00:48:16.742969 2023-12-13 00:48:08.319511
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:48:32.531637 2023-12-13 00:48:16.742969 3 36.43 al_loss false 2023-12-13 00:48:28.759128 2023-12-13 00:48:24.242563 4 45.42 al_rtt false 2023-12-13 00:48:28.271427 2023-12-13 00:48:20.236632 4 47.04
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.212431 0.275680 0.000000 100/100 2023-12-13 00:48:35.189941 2023-12-13 00:48:28.271427 A al_loss false 0.212431 0.275680 0.000000 100/100 2023-12-13 00:48:28.759128 2023-12-13 00:48:24.242563 A al_jitter true 0.212431 0.275680 0.000000 100/100 2023-12-13 00:48:32.531637 2023-12-13 00:48:16.742969
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:48:40.035701 2023-12-13 00:48:32.531637 4 44.38 al_loss false 2023-12-13 00:48:40.392204 2023-12-13 00:48:36.634095 6 48.50 al_rtt false 2023-12-13 00:48:37.875344 2023-12-13 00:48:35.189941 6 46.87
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000423 0.000044 0.000000 100/100 2023-12-13 00:48:37.875344 2023-12-13 00:48:35.189941 A al_loss false 0.000423 0.000044 0.000000 100/100 2023-12-13 00:48:40.392204 2023-12-13 00:48:36.634095 A al_jitter false 0.000423 0.000044 0.000000 100/100 2023-12-13 00:48:40.035701 2023-12-13 00:48:32.531637
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv6 Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using an IPv6 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10::3/64 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10::2/64 set service nsm operation A destination-address 10::3 set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 2023-12-13 00:48:58.090937 2023-12-13 00:48:53.028018 2 71.31 al_rtt false 2023-12-13 00:48:57.723011 2023-12-13 00:48:53.772664 2 55.61
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000446 0.000554 0.000000 100/100 2023-12-13 00:48:57.723011 2023-12-13 00:48:53.772664 A al_loss false 0.000446 0.000554 0.000000 100/100 2023-12-13 00:48:58.090937 2023-12-13 00:48:53.028018 A al_jitter false 0.000446 0.000554 0.000000 100/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:49:01.480875 1 24.22 al_loss true 2023-12-13 00:49:00.777460 2023-12-13 00:48:58.090937 3 68.63 al_rtt true 2023-12-13 00:49:02.388611 2023-12-13 00:48:57.723011 3 47.64
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.380267 0.419835 38.000000 100/100 2023-12-13 00:49:02.388611 2023-12-13 00:48:57.723011 A al_loss true 0.380267 0.419835 38.000000 100/100 2023-12-13 00:49:00.777460 2023-12-13 00:48:58.090937 A al_jitter true 0.380267 0.419835 38.000000 100/100 2023-12-13 00:49:01.480875
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875 2 44.27 al_loss false 2023-12-13 00:49:09.895437 2023-12-13 00:49:00.777460 4 75.39 al_rtt false 2023-12-13 00:49:08.394069 2023-12-13 00:49:02.388611 4 52.92
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000408 0.000059 0.000000 100/100 2023-12-13 00:49:08.394069 2023-12-13 00:49:02.388611 A al_loss false 0.000408 0.000059 0.000000 100/100 2023-12-13 00:49:09.895437 2023-12-13 00:49:00.777460 A al_jitter false 0.000408 0.000059 0.000000 100/100 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875 2 33.59 al_loss false 2023-12-13 00:49:09.895437 2023-12-13 00:49:00.777460 4 57.19 al_rtt true 2023-12-13 00:49:13.257675 2023-12-13 00:49:08.394069 5 52.96
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.810414 0.009045 0.000000 100/100 2023-12-13 00:49:13.257675 2023-12-13 00:49:08.394069 A al_loss false 0.810414 0.009045 0.000000 100/100 2023-12-13 00:49:09.895437 2023-12-13 00:49:00.777460 A al_jitter false 0.810414 0.009045 0.000000 100/100 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875 2 27.16 al_loss false 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 6 60.96 al_rtt false 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 6 59.26
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000419 0.000044 0.000000 100/100 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 A al_loss false 0.000419 0.000044 0.000000 100/100 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 A al_jitter false 0.000419 0.000044 0.000000 100/100 2023-12-13 00:49:09.812890 2023-12-13 00:49:01.480875
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:49:25.522847 2023-12-13 00:49:09.812890 3 30.16 al_loss false 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 6 51.10 al_rtt false 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 6 49.67
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.166940 0.190151 0.000000 100/100 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 A al_loss false 0.166940 0.190151 0.000000 100/100 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 A al_jitter true 0.166940 0.190151 0.000000 100/100 2023-12-13 00:49:25.522847 2023-12-13 00:49:09.812890
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:49:32.641023 2023-12-13 00:49:25.522847 4 36.43 al_loss false 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 6 44.10 al_rtt false 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 6 42.86
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000448 0.000120 0.000000 100/100 2023-12-13 00:49:21.477160 2023-12-13 00:49:13.257675 A al_loss false 0.000448 0.000120 0.000000 100/100 2023-12-13 00:49:21.979899 2023-12-13 00:49:17.463723 A al_jitter false 0.000448 0.000120 0.000000 100/100 2023-12-13 00:49:32.641023 2023-12-13 00:49:25.522847
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv6 FQDN Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv6 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10::3/64 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10::2/64 set service nsm operation A destination-address test.nsm.fqdn set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10::3
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 2023-12-13 00:49:52.178931 2023-12-13 00:49:47.467424 2 75.83 al_rtt false 2023-12-13 00:49:52.180588 2023-12-13 00:49:48.221054 2 63.64
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.092197 0.009881 0.000000 100/100 2023-12-13 00:49:52.180588 2023-12-13 00:49:48.221054 A al_loss false 0.092197 0.009881 0.000000 100/100 2023-12-13 00:49:52.178931 2023-12-13 00:49:47.467424 A al_jitter false 0.092197 0.009881 0.000000 100/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:49:54.978003 1 26.04 al_loss true 2023-12-13 00:49:54.394132 2023-12-13 00:49:52.178931 3 69.75 al_rtt true 2023-12-13 00:49:55.781413 2023-12-13 00:49:52.180588 3 52.05
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.440216 0.439847 44.000000 100/100 2023-12-13 00:49:55.781413 2023-12-13 00:49:52.180588 A al_loss true 0.440216 0.439847 44.000000 100/100 2023-12-13 00:49:54.394132 2023-12-13 00:49:52.178931 A al_jitter true 0.440216 0.439847 44.000000 100/100 2023-12-13 00:49:54.978003
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003 2 45.85 al_loss false 2023-12-13 00:50:03.459354 2023-12-13 00:49:54.394132 4 75.82 al_rtt false 2023-12-13 00:50:01.847492 2023-12-13 00:49:55.781413 4 55.15
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000392 0.000053 0.000000 100/100 2023-12-13 00:50:01.847492 2023-12-13 00:49:55.781413 A al_loss false 0.000392 0.000053 0.000000 100/100 2023-12-13 00:50:03.459354 2023-12-13 00:49:54.394132 A al_jitter false 0.000392 0.000053 0.000000 100/100 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003 2 34.72 al_loss false 2023-12-13 00:50:03.459354 2023-12-13 00:49:54.394132 4 57.40 al_rtt true 2023-12-13 00:50:06.851462 2023-12-13 00:50:01.847492 5 54.94
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.792438 0.009108 0.000000 100/100 2023-12-13 00:50:06.851462 2023-12-13 00:50:01.847492 A al_loss false 0.792438 0.009108 0.000000 100/100 2023-12-13 00:50:03.459354 2023-12-13 00:49:54.394132 A al_jitter false 0.792438 0.009108 0.000000 100/100 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003 2 27.71 al_loss false 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 6 60.78 al_rtt false 2023-12-13 00:50:15.178244 2023-12-13 00:50:06.851462 6 61.01
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000411 0.000069 0.000000 100/100 2023-12-13 00:50:15.178244 2023-12-13 00:50:06.851462 A al_loss false 0.000411 0.000069 0.000000 100/100 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 A al_jitter false 0.000411 0.000069 0.000000 100/100 2023-12-13 00:50:03.312282 2023-12-13 00:49:54.978003
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2023-12-13 00:50:18.527430 2023-12-13 00:50:03.312282 3 33.05 al_loss false 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 6 50.61 al_rtt true 2023-12-13 00:50:20.985887 2023-12-13 00:50:15.178244 7 53.97
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.275481 0.367222 0.000000 100/100 2023-12-13 00:50:20.985887 2023-12-13 00:50:15.178244 A al_loss false 0.275481 0.367222 0.000000 100/100 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 A al_jitter true 0.275481 0.367222 0.000000 100/100 2023-12-13 00:50:18.527430 2023-12-13 00:50:03.312282
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2023-12-13 00:50:26.997446 2023-12-13 00:50:18.527430 4 39.96 al_loss false 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 6 43.47 al_rtt false 2023-12-13 00:50:25.157135 2023-12-13 00:50:20.985887 8 53.55
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000373 0.000061 0.000000 100/100 2023-12-13 00:50:25.157135 2023-12-13 00:50:20.985887 A al_loss false 0.000373 0.000061 0.000000 100/100 2023-12-13 00:50:15.677304 2023-12-13 00:50:11.174791 A al_jitter false 0.000373 0.000061 0.000000 100/100 2023-12-13 00:50:26.997446 2023-12-13 00:50:18.527430
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.