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.000028 0.000012 0.000000 6/100 A al_loss false 0.000028 0.000012 0.000000 6/100 A al_rtt false 0.000028 0.000012 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-03 16:08:23.897026 1 50.02 al_loss true 2024-07-03 16:08:23.499484 1 56.61 al_rtt true 2024-07-03 16:08:24.846863 1 34.40
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.360339 0.399842 36.000000 100/100 2024-07-03 16:08:23.897026 A al_loss true 0.360339 0.399842 36.000000 100/100 2024-07-03 16:08:23.499484 A al_rtt true 0.360339 0.399842 36.000000 100/100 2024-07-03 16:08:24.846863
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-03 16:08:31.668426 2024-07-03 16:08:23.897026 2 66.46 al_loss false 2024-07-03 16:08:32.174370 2024-07-03 16:08:23.499484 2 74.22 al_rtt false 2024-07-03 16:08:31.173736 2024-07-03 16:08:24.846863 2 54.14
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.000489 0.000125 0.000000 100/100 2024-07-03 16:08:31.668426 2024-07-03 16:08:23.897026 A al_loss false 0.000489 0.000125 0.000000 100/100 2024-07-03 16:08:32.174370 2024-07-03 16:08:23.499484 A al_rtt false 0.000489 0.000125 0.000000 100/100 2024-07-03 16:08:31.173736 2024-07-03 16:08:24.846863
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-03 16:08:31.668426 2024-07-03 16:08:23.897026 2 44.61 al_loss false 2024-07-03 16:08:32.174370 2024-07-03 16:08:23.499484 2 49.81 al_rtt true 2024-07-03 16:08:35.177772 2024-07-03 16:08:31.173736 3 54.19
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.774700 0.009161 0.000000 100/100 2024-07-03 16:08:31.668426 2024-07-03 16:08:23.897026 A al_loss false 0.774700 0.009161 0.000000 100/100 2024-07-03 16:08:32.174370 2024-07-03 16:08:23.499484 A al_rtt true 0.774700 0.009161 0.000000 100/100 2024-07-03 16:08:35.177772 2024-07-03 16:08:31.173736
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-03 16:08:31.668426 2024-07-03 16:08:23.897026 2 33.70 al_loss false 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 4 57.18 al_rtt false 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772 4 61.78
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.000482 0.000147 0.000000 100/100 2024-07-03 16:08:31.668426 2024-07-03 16:08:23.897026 A al_loss false 0.000482 0.000147 0.000000 100/100 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 A al_rtt false 0.000482 0.000147 0.000000 100/100 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772
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-03 16:08:47.295732 2024-07-03 16:08:31.668426 3 35.16 al_loss false 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 4 45.83 al_rtt false 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772 4 49.52
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.174923 0.289706 0.000000 100/100 2024-07-03 16:08:47.295732 2024-07-03 16:08:31.668426 A al_loss false 0.174923 0.289706 0.000000 100/100 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 A al_rtt false 0.174923 0.289706 0.000000 100/100 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772
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-03 16:08:53.879117 2024-07-03 16:08:47.295732 4 41.74 al_loss false 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 4 38.34 al_rtt false 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772 4 41.42
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.000486 0.000151 0.000000 100/100 2024-07-03 16:08:53.879117 2024-07-03 16:08:47.295732 A al_loss false 0.000486 0.000151 0.000000 100/100 2024-07-03 16:08:43.595766 2024-07-03 16:08:39.087013 A al_rtt false 0.000486 0.000151 0.000000 100/100 2024-07-03 16:08:43.094672 2024-07-03 16:08:35.177772
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.000018 0.000009 0.000000 5/100 A al_loss false 0.000018 0.000009 0.000000 5/100 A al_rtt false 0.000018 0.000009 0.000000 5/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-03 16:09:04.945187 1 53.01 al_loss true 2024-07-03 16:09:04.396364 1 62.06 al_rtt true 2024-07-03 16:09:05.798184 1 38.82
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.460246 0.419851 46.000000 100/100 2024-07-03 16:09:04.945187 A al_loss true 0.460246 0.419851 46.000000 100/100 2024-07-03 16:09:04.396364 A al_rtt true 0.460246 0.419851 46.000000 100/100 2024-07-03 16:09:05.798184
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-03 16:09:13.068218 2024-07-03 16:09:04.945187 2 69.71 al_loss false 2024-07-03 16:09:13.318951 2024-07-03 16:09:04.396364 2 76.53 al_rtt false 2024-07-03 16:09:12.174857 2024-07-03 16:09:05.798184 2 54.71
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.000510 0.000124 0.000000 100/100 2024-07-03 16:09:13.068218 2024-07-03 16:09:04.945187 A al_loss false 0.000510 0.000124 0.000000 100/100 2024-07-03 16:09:13.318951 2024-07-03 16:09:04.396364 A al_rtt false 0.000510 0.000124 0.000000 100/100 2024-07-03 16:09:12.174857 2024-07-03 16:09:05.798184
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-03 16:09:13.068218 2024-07-03 16:09:04.945187 2 46.59 al_loss false 2024-07-03 16:09:13.318951 2024-07-03 16:09:04.396364 2 51.16 al_rtt true 2024-07-03 16:09:16.429993 2024-07-03 16:09:12.174857 3 54.47
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.783452 0.009115 0.000000 100/100 2024-07-03 16:09:13.068218 2024-07-03 16:09:04.945187 A al_loss false 0.783452 0.009115 0.000000 100/100 2024-07-03 16:09:13.318951 2024-07-03 16:09:04.396364 A al_rtt true 0.783452 0.009115 0.000000 100/100 2024-07-03 16:09:16.429993 2024-07-03 16:09:12.174857
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-03 16:09:13.068218 2024-07-03 16:09:04.945187 2 35.03 al_loss false 2024-07-03 16:09:24.992181 2024-07-03 16:09:20.482429 4 57.91 al_rtt false 2024-07-03 16:09:24.491224 2024-07-03 16:09:16.429993 4 62.25
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.000467 0.000133 0.000000 100/100 2024-07-03 16:09:13.068218 2024-07-03 16:09:04.945187 A al_loss false 0.000467 0.000133 0.000000 100/100 2024-07-03 16:09:24.992181 2024-07-03 16:09:20.482429 A al_rtt false 0.000467 0.000133 0.000000 100/100 2024-07-03 16:09:24.491224 2024-07-03 16:09:16.429993
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-03 16:09:28.710333 2024-07-03 16:09:13.068218 3 36.26 al_loss false 2024-07-03 16:09:24.992181 2024-07-03 16:09:20.482429 4 46.35 al_rtt true 2024-07-03 16:09:30.237710 2024-07-03 16:09:24.491224 5 52.77
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.248540 0.299889 1.000000 100/100 2024-07-03 16:09:28.710333 2024-07-03 16:09:13.068218 A al_loss false 0.248540 0.299889 1.000000 100/100 2024-07-03 16:09:24.992181 2024-07-03 16:09:20.482429 A al_rtt true 0.248540 0.299889 1.000000 100/100 2024-07-03 16:09:30.237710 2024-07-03 16:09:24.491224
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-03 16:09:35.818144 2024-07-03 16:09:28.710333 4 44.01 al_loss false 2024-07-03 16:09:36.020227 2024-07-03 16:09:32.509296 6 48.95 al_rtt false 2024-07-03 16:09:34.036205 2024-07-03 16:09:30.237710 6 52.69
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.000486 0.000119 0.000000 100/100 2024-07-03 16:09:35.818144 2024-07-03 16:09:28.710333 A al_loss false 0.000486 0.000119 0.000000 100/100 2024-07-03 16:09:36.020227 2024-07-03 16:09:32.509296 A al_rtt false 0.000486 0.000119 0.000000 100/100 2024-07-03 16:09:34.036205 2024-07-03 16:09:30.237710
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-03 16:09:50.319437 2024-07-03 16:09:45.305974 2 75.06 al_rtt false 2024-07-03 16:09:50.021385 2024-07-03 16:09:46.058365 2 59.37
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.017027 0.004458 0.000000 100/100 A al_loss false 0.017027 0.004458 0.000000 100/100 2024-07-03 16:09:50.319437 2024-07-03 16:09:45.305974 A al_rtt false 0.017027 0.004458 0.000000 100/100 2024-07-03 16:09:50.021385 2024-07-03 16:09:46.058365
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-03 16:09:53.225490 1 25.36 al_loss true 2024-07-03 16:09:52.524835 2024-07-03 16:09:50.319437 3 71.55 al_rtt true 2024-07-03 16:09:54.127535 2024-07-03 16:09:50.021385 3 50.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_jitter true 0.400292 0.339887 40.000000 100/100 2024-07-03 16:09:53.225490 A al_loss true 0.400292 0.339887 40.000000 100/100 2024-07-03 16:09:52.524835 2024-07-03 16:09:50.319437 A al_rtt true 0.400292 0.339887 40.000000 100/100 2024-07-03 16:09:54.127535 2024-07-03 16:09:50.021385
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-03 16:10:01.295581 2024-07-03 16:09:53.225490 2 44.67 al_loss false 2024-07-03 16:10:01.502086 2024-07-03 16:09:52.524835 4 77.46 al_rtt false 2024-07-03 16:10:00.097633 2024-07-03 16:09:54.127535 4 55.01
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.000467 0.000125 0.000000 100/100 2024-07-03 16:10:01.295581 2024-07-03 16:09:53.225490 A al_loss false 0.000467 0.000125 0.000000 100/100 2024-07-03 16:10:01.502086 2024-07-03 16:09:52.524835 A al_rtt false 0.000467 0.000125 0.000000 100/100 2024-07-03 16:10:00.097633 2024-07-03 16:09:54.127535
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-03 16:10:01.295581 2024-07-03 16:09:53.225490 2 33.94 al_loss false 2024-07-03 16:10:01.502086 2024-07-03 16:09:52.524835 4 58.85 al_rtt true 2024-07-03 16:10:04.652826 2024-07-03 16:10:00.097633 5 54.88
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.774512 0.009133 0.000000 100/100 2024-07-03 16:10:01.295581 2024-07-03 16:09:53.225490 A al_loss false 0.774512 0.009133 0.000000 100/100 2024-07-03 16:10:01.502086 2024-07-03 16:09:52.524835 A al_rtt true 0.774512 0.009133 0.000000 100/100 2024-07-03 16:10:04.652826 2024-07-03 16:10:00.097633
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-03 16:10:01.295581 2024-07-03 16:09:53.225490 2 27.44 al_loss false 2024-07-03 16:10:13.076514 2024-07-03 16:10:08.559768 6 62.95 al_rtt false 2024-07-03 16:10:12.573431 2024-07-03 16:10:04.652826 6 60.73
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.000485 0.000142 0.000000 100/100 2024-07-03 16:10:01.295581 2024-07-03 16:09:53.225490 A al_loss false 0.000485 0.000142 0.000000 100/100 2024-07-03 16:10:13.076514 2024-07-03 16:10:08.559768 A al_rtt false 0.000485 0.000142 0.000000 100/100 2024-07-03 16:10:12.573431 2024-07-03 16:10:04.652826
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-03 16:10:16.277219 2024-07-03 16:10:01.295581 3 31.04 al_loss false 2024-07-03 16:10:13.076514 2024-07-03 16:10:08.559768 6 52.70 al_rtt true 2024-07-03 16:10:18.893662 2024-07-03 16:10:12.573431 7 51.46
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.208169 0.249982 0.000000 100/100 2024-07-03 16:10:16.277219 2024-07-03 16:10:01.295581 A al_loss false 0.208169 0.249982 0.000000 100/100 2024-07-03 16:10:13.076514 2024-07-03 16:10:08.559768 A al_rtt true 0.208169 0.249982 0.000000 100/100 2024-07-03 16:10:18.893662 2024-07-03 16:10:12.573431
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-03 16:10:23.996931 2024-07-03 16:10:16.277219 4 38.75 al_loss false 2024-07-03 16:10:24.199073 2024-07-03 16:10:20.446196 8 54.63 al_rtt false 2024-07-03 16:10:21.791484 2024-07-03 16:10:18.893662 8 50.94
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.000584 0.000152 0.000000 100/100 2024-07-03 16:10:23.996931 2024-07-03 16:10:16.277219 A al_loss false 0.000584 0.000152 0.000000 100/100 2024-07-03 16:10:24.199073 2024-07-03 16:10:20.446196 A al_rtt false 0.000584 0.000152 0.000000 100/100 2024-07-03 16:10:21.791484 2024-07-03 16:10:18.893662
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-03 16:10:38.265901 2024-07-03 16:10:33.305732 2 73.38 al_rtt false 2024-07-03 16:10:37.970219 2024-07-03 16:10:34.061249 2 57.86
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.012553 0.003847 0.000000 100/100 A al_loss false 0.012553 0.003847 0.000000 100/100 2024-07-03 16:10:38.265901 2024-07-03 16:10:33.305732 A al_rtt false 0.012553 0.003847 0.000000 100/100 2024-07-03 16:10:37.970219 2024-07-03 16:10:34.061249
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-03 16:10:41.273823 1 25.35 al_loss true 2024-07-03 16:10:40.780424 2024-07-03 16:10:38.265901 3 69.11 al_rtt true 2024-07-03 16:10:42.973789 2024-07-03 16:10:37.970219 3 43.08
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.360299 0.379871 36.000000 100/100 2024-07-03 16:10:41.273823 A al_loss true 0.360299 0.379871 36.000000 100/100 2024-07-03 16:10:40.780424 2024-07-03 16:10:38.265901 A al_rtt true 0.360299 0.379871 36.000000 100/100 2024-07-03 16:10:42.973789 2024-07-03 16:10:37.970219
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-03 16:10:49.510828 2024-07-03 16:10:41.273823 2 45.56 al_loss false 2024-07-03 16:10:49.443562 2024-07-03 16:10:40.780424 4 75.33 al_rtt false 2024-07-03 16:10:48.389323 2024-07-03 16:10:42.973789 4 51.57
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.000477 0.000128 0.000000 100/100 2024-07-03 16:10:49.510828 2024-07-03 16:10:41.273823 A al_loss false 0.000477 0.000128 0.000000 100/100 2024-07-03 16:10:49.443562 2024-07-03 16:10:40.780424 A al_rtt false 0.000477 0.000128 0.000000 100/100 2024-07-03 16:10:48.389323 2024-07-03 16:10:42.973789
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-03 16:10:49.510828 2024-07-03 16:10:41.273823 2 34.49 al_loss false 2024-07-03 16:10:49.443562 2024-07-03 16:10:40.780424 4 57.03 al_rtt true 2024-07-03 16:10:52.746448 2024-07-03 16:10:48.389323 5 52.08
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.774640 0.009165 0.000000 100/100 2024-07-03 16:10:49.510828 2024-07-03 16:10:41.273823 A al_loss false 0.774640 0.009165 0.000000 100/100 2024-07-03 16:10:49.443562 2024-07-03 16:10:40.780424 A al_rtt true 0.774640 0.009165 0.000000 100/100 2024-07-03 16:10:52.746448 2024-07-03 16:10:48.389323
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-03 16:10:49.510828 2024-07-03 16:10:41.273823 2 27.94 al_loss false 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 6 61.49 al_rtt false 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448 6 58.50
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.000438 0.000116 0.000000 100/100 2024-07-03 16:10:49.510828 2024-07-03 16:10:41.273823 A al_loss false 0.000438 0.000116 0.000000 100/100 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 A al_rtt false 0.000438 0.000116 0.000000 100/100 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448
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-03 16:11:04.868294 2024-07-03 16:10:49.510828 3 29.94 al_loss false 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 6 51.52 al_rtt false 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448 6 49.02
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.149662 0.218636 0.000000 100/100 2024-07-03 16:11:04.868294 2024-07-03 16:10:49.510828 A al_loss false 0.149662 0.218636 0.000000 100/100 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 A al_rtt false 0.149662 0.218636 0.000000 100/100 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448
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-03 16:11:10.840326 2024-07-03 16:11:04.868294 4 34.75 al_loss false 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 6 44.34 al_rtt false 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448 6 42.18
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.000551 0.000175 0.000000 100/100 2024-07-03 16:11:10.840326 2024-07-03 16:11:04.868294 A al_loss false 0.000551 0.000175 0.000000 100/100 2024-07-03 16:11:01.165223 2024-07-03 16:10:56.654498 A al_rtt false 0.000551 0.000175 0.000000 100/100 2024-07-03 16:11:00.672141 2024-07-03 16:10:52.746448
Note
The previous command output should show the alarms are deactivated (since the network quality is good).