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 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A alarm al_jitter activate jitter 0.1 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 destination-address 10.215.200.100 set service nsm operation A destination-port 12345 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type twamp set service nsm operation A window 100 set system alarm al_jitter set system alarm al_loss set system alarm al_rtt set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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_jitter false 0.000041 0.000011 0.000000 7/100 A al_loss false 0.000041 0.000011 0.000000 7/100 A al_rtt false 0.000041 0.000011 0.000000 7/100
Note
The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.
Step 5: Modify the following configuration lines 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 2024-07-17 17:07:51.023773 1 49.72 al_loss true 2024-07-17 17:07:50.323614 1 61.16 al_rtt true 2024-07-17 17:07:52.425983 1 26.91
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_jitter true 0.370335 0.399861 37.000000 100/100 2024-07-17 17:07:51.023773 A al_loss true 0.370335 0.399861 37.000000 100/100 2024-07-17 17:07:50.323614 A al_rtt true 0.370335 0.399861 37.000000 100/100 2024-07-17 17:07:52.425983
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.
Step 8: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 2 68.06 al_loss false 2024-07-17 17:07:59.394478 2024-07-17 17:07:50.323614 2 76.93 al_rtt false 2024-07-17 17:07:58.498105 2024-07-17 17:07:52.425983 2 51.51
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_jitter false 0.000469 0.000129 0.000000 100/100 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 A al_loss false 0.000469 0.000129 0.000000 100/100 2024-07-17 17:07:59.394478 2024-07-17 17:07:50.323614 A al_rtt false 0.000469 0.000129 0.000000 100/100 2024-07-17 17:07:58.498105 2024-07-17 17:07:52.425983
Note
The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.
Step 11: Modify the following configuration lines 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 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 2 45.69 al_loss false 2024-07-17 17:07:59.394478 2024-07-17 17:07:50.323614 2 51.63 al_rtt true 2024-07-17 17:08:02.405222 2024-07-17 17:07:58.498105 3 52.24
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_jitter false 0.774548 0.009131 0.000000 100/100 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 A al_loss false 0.774548 0.009131 0.000000 100/100 2024-07-17 17:07:59.394478 2024-07-17 17:07:50.323614 A al_rtt true 0.774548 0.009131 0.000000 100/100 2024-07-17 17:08:02.405222 2024-07-17 17:07:58.498105
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.
Step 14: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 2 34.59 al_loss false 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 4 58.64 al_rtt false 2024-07-17 17:08:10.322035 2024-07-17 17:08:02.405222 4 60.30
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_jitter false 0.000464 0.000099 0.000000 100/100 2024-07-17 17:07:59.052145 2024-07-17 17:07:51.023773 A al_loss false 0.000464 0.000099 0.000000 100/100 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 A al_rtt false 0.000464 0.000099 0.000000 100/100 2024-07-17 17:08:10.322035 2024-07-17 17:08:02.405222
Note
The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.
Step 17: Modify the following configuration lines 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 2024-07-17 17:08:14.038299 2024-07-17 17:07:59.052145 3 37.73 al_loss false 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 4 46.89 al_rtt false 2024-07-17 17:08:10.322035 2024-07-17 17:08:02.405222 4 48.21
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_jitter true 0.199528 0.304083 0.000000 100/100 2024-07-17 17:08:14.038299 2024-07-17 17:07:59.052145 A al_loss false 0.199528 0.304083 0.000000 100/100 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 A al_rtt false 0.199528 0.304083 0.000000 100/100 2024-07-17 17:08:10.322035 2024-07-17 17:08:02.405222
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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:08:21.591897 2024-07-17 17:08:14.038299 4 44.94 al_loss false 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 4 39.25 al_rtt false 2024-07-17 17:08:19.547651 2024-07-17 17:08:18.133758 6 44.43
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_jitter false 0.000468 0.000122 0.000000 100/100 2024-07-17 17:08:21.591897 2024-07-17 17:08:14.038299 A al_loss false 0.000468 0.000122 0.000000 100/100 2024-07-17 17:08:10.842548 2024-07-17 17:08:06.306736 A al_rtt false 0.000468 0.000122 0.000000 100/100 2024-07-17 17:08:19.547651 2024-07-17 17:08:18.133758
Note
The previous command output should show the alarms are deactivated (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 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10.215.200.100 set service nsm operation A alarm al_jitter activate jitter 0.1 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 destination-address test.nsm.fqdn set service nsm operation A destination-port 12345 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type twamp set service nsm operation A window 100 set system alarm al_jitter set system alarm al_loss set system alarm al_rtt set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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_jitter false 0.000027 0.000005 0.000000 6/100 A al_loss false 0.000027 0.000005 0.000000 6/100 A al_rtt false 0.000027 0.000005 0.000000 6/100
Note
The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.
Step 5: Modify the following configuration lines 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 2024-07-17 17:08:32.840851 1 52.89 al_loss true 2024-07-17 17:08:32.606522 1 56.71 al_rtt true 2024-07-17 17:08:33.802971 1 36.94
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_jitter true 0.410305 0.459779 41.000000 100/100 2024-07-17 17:08:32.840851 A al_loss true 0.410305 0.459779 41.000000 100/100 2024-07-17 17:08:32.606522 A al_rtt true 0.410305 0.459779 41.000000 100/100 2024-07-17 17:08:33.802971
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.
Step 8: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 2 64.91 al_loss false 2024-07-17 17:08:41.368604 2024-07-17 17:08:32.606522 2 75.04 al_rtt false 2024-07-17 17:08:40.709526 2024-07-17 17:08:33.802971 2 59.17
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_jitter false 0.000514 0.000133 0.000000 100/100 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 A al_loss false 0.000514 0.000133 0.000000 100/100 2024-07-17 17:08:41.368604 2024-07-17 17:08:32.606522 A al_rtt false 0.000514 0.000133 0.000000 100/100 2024-07-17 17:08:40.709526 2024-07-17 17:08:33.802971
Note
The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.
Step 11: Modify the following configuration lines 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 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 2 43.45 al_loss false 2024-07-17 17:08:41.368604 2024-07-17 17:08:32.606522 2 50.24 al_rtt true 2024-07-17 17:08:44.322763 2024-07-17 17:08:40.709526 3 57.43
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_jitter false 0.774488 0.009118 0.000000 100/100 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 A al_loss false 0.774488 0.009118 0.000000 100/100 2024-07-17 17:08:41.368604 2024-07-17 17:08:32.606522 A al_rtt true 0.774488 0.009118 0.000000 100/100 2024-07-17 17:08:44.322763 2024-07-17 17:08:40.709526
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.
Step 14: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 2 32.85 al_loss false 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 4 57.47 al_rtt false 2024-07-17 17:08:52.239569 2024-07-17 17:08:44.322763 4 64.28
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_jitter false 0.000606 0.000163 0.000000 100/100 2024-07-17 17:08:40.415825 2024-07-17 17:08:32.840851 A al_loss false 0.000606 0.000163 0.000000 100/100 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 A al_rtt false 0.000606 0.000163 0.000000 100/100 2024-07-17 17:08:52.239569 2024-07-17 17:08:44.322763
Note
The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.
Step 17: Modify the following configuration lines 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 2024-07-17 17:08:56.360995 2024-07-17 17:08:40.415825 3 34.82 al_loss false 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 4 45.97 al_rtt false 2024-07-17 17:08:52.239569 2024-07-17 17:08:44.322763 4 51.42
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_jitter true 0.186326 0.245662 0.000000 100/100 2024-07-17 17:08:56.360995 2024-07-17 17:08:40.415825 A al_loss false 0.186326 0.245662 0.000000 100/100 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 A al_rtt false 0.186326 0.245662 0.000000 100/100 2024-07-17 17:08:52.239569 2024-07-17 17:08:44.322763
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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:09:03.070204 2024-07-17 17:08:56.360995 4 41.32 al_loss false 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 4 38.33 al_rtt false 2024-07-17 17:09:01.008271 2024-07-17 17:08:58.949308 6 48.83
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_jitter false 0.000537 0.000136 0.000000 100/100 2024-07-17 17:09:03.070204 2024-07-17 17:08:56.360995 A al_loss false 0.000537 0.000136 0.000000 100/100 2024-07-17 17:08:52.742184 2024-07-17 17:08:48.249812 A al_rtt false 0.000537 0.000136 0.000000 100/100 2024-07-17 17:09:01.008271 2024-07-17 17:08:58.949308
Note
The previous command output should show the alarms are deactivated (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 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address '10::2/64' set service nsm operation A alarm al_jitter activate jitter 0.1 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 destination-address '10::3' set service nsm operation A destination-port 12345 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type twamp set service nsm operation A window 100 set system alarm al_jitter set system alarm al_loss set system alarm al_rtt set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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 2024-07-17 17:09:18.631237 2024-07-17 17:09:13.267715 2 79.19 al_rtt false 2024-07-17 17:09:18.131564 2024-07-17 17:09:14.027402 2 60.63
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_jitter false 0.019822 0.010122 1.000000 100/100 A al_loss false 0.019822 0.010122 1.000000 100/100 2024-07-17 17:09:18.631237 2024-07-17 17:09:13.267715 A al_rtt false 0.019822 0.010122 1.000000 100/100 2024-07-17 17:09:18.131564 2024-07-17 17:09:14.027402
Note
The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.
Step 5: Modify the following configuration lines 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 2024-07-17 17:09:21.234038 1 26.32 al_loss true 2024-07-17 17:09:20.887810 2024-07-17 17:09:18.631237 3 71.47 al_rtt true 2024-07-17 17:09:22.441924 2024-07-17 17:09:18.131564 3 49.24
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_jitter true 0.410280 0.399872 41.000000 100/100 2024-07-17 17:09:21.234038 A al_loss true 0.410280 0.399872 41.000000 100/100 2024-07-17 17:09:20.887810 2024-07-17 17:09:18.631237 A al_rtt true 0.410280 0.399872 41.000000 100/100 2024-07-17 17:09:22.441924 2024-07-17 17:09:18.131564
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.
Step 8: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 2 45.97 al_loss false 2024-07-17 17:09:29.805605 2024-07-17 17:09:20.887810 4 77.98 al_rtt false 2024-07-17 17:09:29.158004 2024-07-17 17:09:22.441924 4 59.09
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_jitter false 0.000425 0.000134 0.000000 100/100 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 A al_loss false 0.000425 0.000134 0.000000 100/100 2024-07-17 17:09:29.805605 2024-07-17 17:09:20.887810 A al_rtt false 0.000425 0.000134 0.000000 100/100 2024-07-17 17:09:29.158004 2024-07-17 17:09:22.441924
Note
The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.
Step 11: Modify the following configuration lines 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 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 2 34.98 al_loss false 2024-07-17 17:09:29.805605 2024-07-17 17:09:20.887810 4 59.34 al_rtt true 2024-07-17 17:09:32.871584 2024-07-17 17:09:29.158004 5 57.90
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_jitter false 0.774462 0.009135 0.000000 100/100 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 A al_loss false 0.774462 0.009135 0.000000 100/100 2024-07-17 17:09:29.805605 2024-07-17 17:09:20.887810 A al_rtt true 0.774462 0.009135 0.000000 100/100 2024-07-17 17:09:32.871584 2024-07-17 17:09:29.158004
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.
Step 14: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 2 28.30 al_loss false 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 6 63.16 al_rtt false 2024-07-17 17:09:40.835133 2024-07-17 17:09:32.871584 6 63.14
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_jitter false 0.000523 0.000161 0.000000 100/100 2024-07-17 17:09:29.654480 2024-07-17 17:09:21.234038 A al_loss false 0.000523 0.000161 0.000000 100/100 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 A al_rtt false 0.000523 0.000161 0.000000 100/100 2024-07-17 17:09:40.835133 2024-07-17 17:09:32.871584
Note
The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.
Step 17: Modify the following configuration lines 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 2024-07-17 17:09:44.371045 2024-07-17 17:09:29.654480 3 32.30 al_loss false 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 6 52.93 al_rtt true 2024-07-17 17:09:46.677617 2024-07-17 17:09:40.835133 7 55.00
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_jitter true 0.244642 0.316591 0.000000 100/100 2024-07-17 17:09:44.371045 2024-07-17 17:09:29.654480 A al_loss false 0.244642 0.316591 0.000000 100/100 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 A al_rtt true 0.244642 0.316591 0.000000 100/100 2024-07-17 17:09:46.677617 2024-07-17 17:09:40.835133
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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:09:52.327505 2024-07-17 17:09:44.371045 4 39.76 al_loss false 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 6 45.63 al_rtt false 2024-07-17 17:09:50.353095 2024-07-17 17:09:46.677617 8 54.54
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_jitter false 0.000465 0.000136 0.000000 100/100 2024-07-17 17:09:52.327505 2024-07-17 17:09:44.371045 A al_loss false 0.000465 0.000136 0.000000 100/100 2024-07-17 17:09:41.330542 2024-07-17 17:09:36.819142 A al_rtt false 0.000465 0.000136 0.000000 100/100 2024-07-17 17:09:50.353095 2024-07-17 17:09:46.677617
Note
The previous command output should show the alarms are deactivated (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 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address '10::2/64' set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet '10::3' set service nsm operation A alarm al_jitter activate jitter 0.1 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 destination-address test.nsm.fqdn set service nsm operation A destination-port 12345 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type twamp set service nsm operation A window 100 set system alarm al_jitter set system alarm al_loss set system alarm al_rtt set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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 2024-07-17 17:10:06.272719 2024-07-17 17:10:01.667557 2 67.98 al_rtt false 2024-07-17 17:10:05.775795 2024-07-17 17:10:02.416018 2 49.63
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_jitter false 0.000502 0.000135 0.000000 100/100 A al_loss false 0.000502 0.000135 0.000000 100/100 2024-07-17 17:10:06.272719 2024-07-17 17:10:01.667557 A al_rtt false 0.000502 0.000135 0.000000 100/100 2024-07-17 17:10:05.775795 2024-07-17 17:10:02.416018
Note
The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.
Step 5: Modify the following configuration lines 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 2024-07-17 17:10:09.393806 1 27.30 al_loss true 2024-07-17 17:10:09.075260 2024-07-17 17:10:06.272719 3 66.64 al_rtt true 2024-07-17 17:10:10.377565 2024-07-17 17:10:05.775795 3 46.29
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_jitter true 0.430257 0.439842 43.000000 100/100 2024-07-17 17:10:09.393806 A al_loss true 0.430257 0.439842 43.000000 100/100 2024-07-17 17:10:09.075260 2024-07-17 17:10:06.272719 A al_rtt true 0.430257 0.439842 43.000000 100/100 2024-07-17 17:10:10.377565 2024-07-17 17:10:05.775795
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.
Step 8: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 2 47.23 al_loss false 2024-07-17 17:10:17.944909 2024-07-17 17:10:09.075260 4 73.93 al_rtt false 2024-07-17 17:10:17.093987 2024-07-17 17:10:10.377565 4 55.30
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_jitter false 0.000455 0.000129 0.000000 100/100 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 A al_loss false 0.000455 0.000129 0.000000 100/100 2024-07-17 17:10:17.944909 2024-07-17 17:10:09.075260 A al_rtt false 0.000455 0.000129 0.000000 100/100 2024-07-17 17:10:17.093987 2024-07-17 17:10:10.377565
Note
The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.
Step 11: Modify the following configuration lines 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 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 2 35.74 al_loss false 2024-07-17 17:10:17.944909 2024-07-17 17:10:09.075260 4 55.95 al_rtt true 2024-07-17 17:10:21.273487 2024-07-17 17:10:17.093987 5 54.75
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_jitter false 0.774626 0.009181 0.000000 100/100 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 A al_loss false 0.774626 0.009181 0.000000 100/100 2024-07-17 17:10:17.944909 2024-07-17 17:10:09.075260 A al_rtt true 0.774626 0.009181 0.000000 100/100 2024-07-17 17:10:21.273487 2024-07-17 17:10:17.093987
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.
Step 14: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 2 28.90 al_loss false 2024-07-17 17:10:29.768919 2024-07-17 17:10:25.267977 6 60.36 al_rtt false 2024-07-17 17:10:29.268336 2024-07-17 17:10:21.273487 6 60.68
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_jitter false 0.000431 0.000123 0.000000 100/100 2024-07-17 17:10:17.997510 2024-07-17 17:10:09.393806 A al_loss false 0.000431 0.000123 0.000000 100/100 2024-07-17 17:10:29.768919 2024-07-17 17:10:25.267977 A al_rtt false 0.000431 0.000123 0.000000 100/100 2024-07-17 17:10:29.268336 2024-07-17 17:10:21.273487
Note
The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.
Step 17: Modify the following configuration lines 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 2024-07-17 17:10:32.474414 2024-07-17 17:10:17.997510 3 33.73 al_loss false 2024-07-17 17:10:29.768919 2024-07-17 17:10:25.267977 6 50.54 al_rtt false 2024-07-17 17:10:29.268336 2024-07-17 17:10:21.273487 6 50.81
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_jitter true 0.197932 0.289024 1.000000 100/100 2024-07-17 17:10:32.474414 2024-07-17 17:10:17.997510 A al_loss false 0.197932 0.289024 1.000000 100/100 2024-07-17 17:10:29.768919 2024-07-17 17:10:25.267977 A al_rtt false 0.197932 0.289024 1.000000 100/100 2024-07-17 17:10:29.268336 2024-07-17 17:10:21.273487
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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Modify the following configuration lines in DUT0
:
delete interfaces ethernet eth0 traffic
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 2024-07-17 17:10:40.544804 2024-07-17 17:10:32.474414 4 40.46 al_loss false 2024-07-17 17:10:41.096111 2024-07-17 17:10:37.237463 8 52.97 al_rtt false 2024-07-17 17:10:39.043424 2024-07-17 17:10:36.040598 8 51.13
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_jitter false 0.000550 0.000169 0.000000 100/100 2024-07-17 17:10:40.544804 2024-07-17 17:10:32.474414 A al_loss false 0.000550 0.000169 0.000000 100/100 2024-07-17 17:10:41.096111 2024-07-17 17:10:37.237463 A al_rtt false 0.000550 0.000169 0.000000 100/100 2024-07-17 17:10:39.043424 2024-07-17 17:10:36.040598
Note
The previous command output should show the alarms are deactivated (since the network quality is good).