Check Udp Operation
This scenario shows how to configure Network Service Monitor (NSM) operations to measure network quality using active traffic probes and the UDP SLA protocol. In addition, the UDP NSM responder service is configured.
Test IPv4 Destination
Description
In this scenario, UDP NSM operations are configured in DUT0 (using an IPv4 destination address) and the UDP 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 udp port 60000 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 60000 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type udp 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.000026 0.000006 0.000000 6/100 A al_loss false 0.000026 0.000006 0.000000 6/100 A al_rtt false 0.000026 0.000006 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-12-04 14:50:55.441271498 +00:00 1 40.30 al_loss true 2024-12-04 14:50:54.051089222 +00:00 1 63.17 al_rtt true 2024-12-04 14:50:55.795328156 +00:00 1 34.54
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.350295 0.399864 35.000000 100/100 2024-12-04 14:50:55.441271498 +00:00 A al_loss true 0.350295 0.399864 35.000000 100/100 2024-12-04 14:50:54.051089222 +00:00 A al_rtt true 0.350295 0.399864 35.000000 100/100 2024-12-04 14:50:55.795328156 +00:00
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-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 2 62.63 al_loss false 2024-12-04 14:51:03.260183528 +00:00 2024-12-04 14:50:54.051089222 +00:00 2 77.73 al_rtt false 2024-12-04 14:51:02.224337878 +00:00 2024-12-04 14:50:55.795328156 +00:00 2 54.29
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.000466 0.000114 0.000000 100/100 2024-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 A al_loss false 0.000466 0.000114 0.000000 100/100 2024-12-04 14:51:03.260183528 +00:00 2024-12-04 14:50:54.051089222 +00:00 A al_rtt false 0.000466 0.000114 0.000000 100/100 2024-12-04 14:51:02.224337878 +00:00 2024-12-04 14:50:55.795328156 +00:00
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-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 2 42.05 al_loss false 2024-12-04 14:51:03.260183528 +00:00 2024-12-04 14:50:54.051089222 +00:00 2 52.18 al_rtt true 2024-12-04 14:51:06.370427992 +00:00 2024-12-04 14:51:02.224337878 +00:00 3 53.94
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
--------------------------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------------------------------------------------------------- A al_jitter false 0.774455 0.009123 0.000000 100/100 2024-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 A al_loss false 0.774455 0.009123 0.000000 100/100 2024-12-04 14:51:03.260183528 +00:00 2024-12-04 14:50:54.051089222 +00:00 A al_rtt true 0.774455 0.009123 0.000000 100/100 2024-12-04 14:51:06.370427992 +00:00 2024-12-04 14:51:02.224337878 +00:00
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-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 2 31.95 al_loss false 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 4 59.10 al_rtt false 2024-12-04 14:51:14.293989580 +00:00 2024-12-04 14:51:06.370427992 +00:00 4 61.80
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.000497 0.000122 0.000000 100/100 2024-12-04 14:51:02.864468184 +00:00 2024-12-04 14:50:55.441271498 +00:00 A al_loss false 0.000497 0.000122 0.000000 100/100 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 A al_rtt false 0.000497 0.000122 0.000000 100/100 2024-12-04 14:51:14.293989580 +00:00 2024-12-04 14:51:06.370427992 +00:00
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-12-04 14:51:17.950186359 +00:00 2024-12-04 14:51:02.864468184 +00:00 3 35.52 al_loss false 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 4 47.28 al_rtt true 2024-12-04 14:51:20.252244940 +00:00 2024-12-04 14:51:14.293989580 +00:00 5 51.48
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.225196 0.328063 0.000000 100/100 2024-12-04 14:51:17.950186359 +00:00 2024-12-04 14:51:02.864468184 +00:00 A al_loss false 0.225196 0.328063 0.000000 100/100 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 A al_rtt true 0.225196 0.328063 0.000000 100/100 2024-12-04 14:51:20.252244940 +00:00 2024-12-04 14:51:14.293989580 +00:00
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-12-04 14:51:25.423191558 +00:00 2024-12-04 14:51:17.950186359 +00:00 4 42.84 al_loss false 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 4 39.49 al_rtt false 2024-12-04 14:51:23.450142939 +00:00 2024-12-04 14:51:20.252244940 +00:00 6 50.49
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.000437 0.000113 0.000000 100/100 2024-12-04 14:51:25.423191558 +00:00 2024-12-04 14:51:17.950186359 +00:00 A al_loss false 0.000437 0.000113 0.000000 100/100 2024-12-04 14:51:14.788742035 +00:00 2024-12-04 14:51:10.269620322 +00:00 A al_rtt false 0.000437 0.000113 0.000000 100/100 2024-12-04 14:51:23.450142939 +00:00 2024-12-04 14:51:20.252244940 +00:00
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, UDP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv4 destination address) and the UDP 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 udp port 60000 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 60000 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type udp 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.000022 0.000002 0.000000 7/100 A al_loss false 0.000022 0.000002 0.000000 7/100 A al_rtt false 0.000022 0.000002 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-12-04 14:51:37.781992826 +00:00 1 45.67 al_loss true 2024-12-04 14:51:37.136567708 +00:00 1 56.05 al_rtt true 2024-12-04 14:51:38.633413172 +00:00 1 31.83
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.380269 0.399852 38.000000 100/100 2024-12-04 14:51:37.781992826 +00:00 A al_loss true 0.380269 0.399852 38.000000 100/100 2024-12-04 14:51:37.136567708 +00:00 A al_rtt true 0.380269 0.399852 38.000000 100/100 2024-12-04 14:51:38.633413172 +00:00
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-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 2 66.50 al_loss false 2024-12-04 14:51:45.655621292 +00:00 2024-12-04 14:51:37.136567708 +00:00 2 72.37 al_rtt false 2024-12-04 14:51:44.317801010 +00:00 2024-12-04 14:51:38.633413172 +00:00 2 48.32
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.000476 0.000126 0.000000 100/100 2024-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 A al_loss false 0.000476 0.000126 0.000000 100/100 2024-12-04 14:51:45.655621292 +00:00 2024-12-04 14:51:37.136567708 +00:00 A al_rtt false 0.000476 0.000126 0.000000 100/100 2024-12-04 14:51:44.317801010 +00:00 2024-12-04 14:51:38.633413172 +00:00
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-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 2 44.65 al_loss false 2024-12-04 14:51:45.655621292 +00:00 2024-12-04 14:51:37.136567708 +00:00 2 48.61 al_rtt true 2024-12-04 14:51:48.865631202 +00:00 2024-12-04 14:51:44.317801010 +00:00 3 50.04
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.774499 0.009146 0.000000 100/100 2024-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 A al_loss false 0.774499 0.009146 0.000000 100/100 2024-12-04 14:51:45.655621292 +00:00 2024-12-04 14:51:37.136567708 +00:00 A al_rtt true 0.774499 0.009146 0.000000 100/100 2024-12-04 14:51:48.865631202 +00:00 2024-12-04 14:51:44.317801010 +00:00
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-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 2 33.82 al_loss false 2024-12-04 14:51:57.276241123 +00:00 2024-12-04 14:51:52.763556112 +00:00 4 56.33 al_rtt false 2024-12-04 14:51:56.775846593 +00:00 2024-12-04 14:51:48.865631202 +00:00 4 58.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.000480 0.000120 0.000000 100/100 2024-12-04 14:51:45.602013809 +00:00 2024-12-04 14:51:37.781992826 +00:00 A al_loss false 0.000480 0.000120 0.000000 100/100 2024-12-04 14:51:57.276241123 +00:00 2024-12-04 14:51:52.763556112 +00:00 A al_rtt false 0.000480 0.000120 0.000000 100/100 2024-12-04 14:51:56.775846593 +00:00 2024-12-04 14:51:48.865631202 +00:00
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-12-04 14:52:00.161416422 +00:00 2024-12-04 14:51:45.602013809 +00:00 3 37.92 al_loss false 2024-12-04 14:51:57.276241123 +00:00 2024-12-04 14:51:52.763556112 +00:00 4 45.16 al_rtt true 2024-12-04 14:52:02.526248589 +00:00 2024-12-04 14:51:56.775846593 +00:00 5 49.73
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
--------------------------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------------------------------------------------------------- A al_jitter true 0.256476 0.398310 0.000000 100/100 2024-12-04 14:52:00.161416422 +00:00 2024-12-04 14:51:45.602013809 +00:00 A al_loss false 0.256476 0.398310 0.000000 100/100 2024-12-04 14:51:57.276241123 +00:00 2024-12-04 14:51:52.763556112 +00:00 A al_rtt true 0.256476 0.398310 0.000000 100/100 2024-12-04 14:52:02.526248589 +00:00 2024-12-04 14:51:56.775846593 +00:00
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-12-04 14:52:07.814065234 +00:00 2024-12-04 14:52:00.161416422 +00:00 4 44.88 al_loss false 2024-12-04 14:52:08.417939399 +00:00 2024-12-04 14:52:04.639251594 +00:00 6 48.74 al_rtt false 2024-12-04 14:52:06.243645285 +00:00 2024-12-04 14:52:02.526248589 +00:00 6 50.21
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.000532 0.000133 0.000000 100/100 2024-12-04 14:52:07.814065234 +00:00 2024-12-04 14:52:00.161416422 +00:00 A al_loss false 0.000532 0.000133 0.000000 100/100 2024-12-04 14:52:08.417939399 +00:00 2024-12-04 14:52:04.639251594 +00:00 A al_rtt false 0.000532 0.000133 0.000000 100/100 2024-12-04 14:52:06.243645285 +00:00 2024-12-04 14:52:02.526248589 +00:00
Note
The previous command output should show the alarms are deactivated (since the network quality is good).
Test IPv6 Destination
Description
In this scenario, UDP NSM operations are configured in DUT0 (using an IPv6 destination address) and the UDP 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 udp port 60000 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 60000 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type udp 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-12-04 14:52:21.850858402 +00:00 2024-12-04 14:52:17.343543218 +00:00 2 66.55 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.000485 0.000155 0.000000 100/100 A al_loss false 0.000485 0.000155 0.000000 100/100 2024-12-04 14:52:21.850858402 +00:00 2024-12-04 14:52:17.343543218 +00:00 A al_rtt false 0.000485 0.000155 0.000000 100/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-12-04 14:52:24.810179382 +00:00 1 28.95 al_loss true 2024-12-04 14:52:24.816227713 +00:00 2024-12-04 14:52:21.850858402 +00:00 3 65.00 al_rtt true 2024-12-04 14:52:26.366333639 +00:00 1 16.51
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.380338 0.499753 38.000000 100/100 2024-12-04 14:52:24.810179382 +00:00 A al_loss true 0.380338 0.499753 38.000000 100/100 2024-12-04 14:52:24.816227713 +00:00 2024-12-04 14:52:21.850858402 +00:00 A al_rtt true 0.380338 0.499753 38.000000 100/100 2024-12-04 14:52:26.366333639 +00:00
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-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 2 47.91 al_loss false 2024-12-04 14:52:33.539257891 +00:00 2024-12-04 14:52:24.816227713 +00:00 4 73.08 al_rtt false 2024-12-04 14:52:32.200184299 +00:00 2024-12-04 14:52:26.366333639 +00:00 2 32.24
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.000528 0.000137 0.000000 100/100 2024-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 A al_loss false 0.000528 0.000137 0.000000 100/100 2024-12-04 14:52:33.539257891 +00:00 2024-12-04 14:52:24.816227713 +00:00 A al_rtt false 0.000528 0.000137 0.000000 100/100 2024-12-04 14:52:32.200184299 +00:00 2024-12-04 14:52:26.366333639 +00:00
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-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 2 36.35 al_loss false 2024-12-04 14:52:33.539257891 +00:00 2024-12-04 14:52:24.816227713 +00:00 4 55.44 al_rtt true 2024-12-04 14:52:36.752170367 +00:00 2024-12-04 14:52:32.200184299 +00:00 3 37.23
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.774530 0.009147 0.000000 100/100 2024-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 A al_loss false 0.774530 0.009147 0.000000 100/100 2024-12-04 14:52:33.539257891 +00:00 2024-12-04 14:52:24.816227713 +00:00 A al_rtt true 0.774530 0.009147 0.000000 100/100 2024-12-04 14:52:36.752170367 +00:00 2024-12-04 14:52:32.200184299 +00:00
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-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 2 29.42 al_loss false 2024-12-04 14:52:45.150833607 +00:00 2024-12-04 14:52:40.639250783 +00:00 6 60.17 al_rtt false 2024-12-04 14:52:44.654207845 +00:00 2024-12-04 14:52:36.752170367 +00:00 4 46.60
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.000471 0.000140 0.000000 100/100 2024-12-04 14:52:33.485175033 +00:00 2024-12-04 14:52:24.810179382 +00:00 A al_loss false 0.000471 0.000140 0.000000 100/100 2024-12-04 14:52:45.150833607 +00:00 2024-12-04 14:52:40.639250783 +00:00 A al_rtt false 0.000471 0.000140 0.000000 100/100 2024-12-04 14:52:44.654207845 +00:00 2024-12-04 14:52:36.752170367 +00:00
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-12-04 14:52:48.453282094 +00:00 2024-12-04 14:52:33.485175033 +00:00 3 32.23 al_loss false 2024-12-04 14:52:45.150833607 +00:00 2024-12-04 14:52:40.639250783 +00:00 6 50.42 al_rtt true 2024-12-04 14:52:50.767206089 +00:00 2024-12-04 14:52:44.654207845 +00:00 5 40.05
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.223206 0.296615 0.000000 100/100 2024-12-04 14:52:48.453282094 +00:00 2024-12-04 14:52:33.485175033 +00:00 A al_loss false 0.223206 0.296615 0.000000 100/100 2024-12-04 14:52:45.150833607 +00:00 2024-12-04 14:52:40.639250783 +00:00 A al_rtt true 0.223206 0.296615 0.000000 100/100 2024-12-04 14:52:50.767206089 +00:00 2024-12-04 14:52:44.654207845 +00:00
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-12-04 14:52:55.977128753 +00:00 2024-12-04 14:52:48.453282094 +00:00 4 39.68 al_loss false 2024-12-04 14:52:56.325427376 +00:00 2024-12-04 14:52:52.614013511 +00:00 8 52.56 al_rtt false 2024-12-04 14:52:54.521379064 +00:00 2024-12-04 14:52:50.767206089 +00:00 6 42.86
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------------------------------------------------------------- A al_jitter false 0.000514 0.000149 0.000000 100/100 2024-12-04 14:52:55.977128753 +00:00 2024-12-04 14:52:48.453282094 +00:00 A al_loss false 0.000514 0.000149 0.000000 100/100 2024-12-04 14:52:56.325427376 +00:00 2024-12-04 14:52:52.614013511 +00:00 A al_rtt false 0.000514 0.000149 0.000000 100/100 2024-12-04 14:52:54.521379064 +00:00 2024-12-04 14:52:50.767206089 +00:00
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, UDP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv6 destination address) and the UDP 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 udp port 60000 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 60000 set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A type udp 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-12-04 14:53:11.039260756 +00:00 2024-12-04 14:53:05.761670895 +00:00 2 76.79 al_rtt false 2024-12-04 14:53:10.584388384 +00:00 2024-12-04 14:53:06.518510749 +00:00 2 59.21
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.009390 0.003341 0.000000 100/100 A al_loss false 0.009390 0.003341 0.000000 100/100 2024-12-04 14:53:11.039260756 +00:00 2024-12-04 14:53:05.761670895 +00:00 A al_rtt false 0.009390 0.003341 0.000000 100/100 2024-12-04 14:53:10.584388384 +00:00 2024-12-04 14:53:06.518510749 +00:00
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-12-04 14:53:13.982856567 +00:00 1 24.08 al_loss true 2024-12-04 14:53:13.539426164 +00:00 2024-12-04 14:53:11.039260756 +00:00 3 69.24 al_rtt true 2024-12-04 14:53:15.399923376 +00:00 2024-12-04 14:53:10.584388384 +00:00 3 45.00
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.390284 0.409854 39.000000 100/100 2024-12-04 14:53:13.982856567 +00:00 A al_loss true 0.390284 0.409854 39.000000 100/100 2024-12-04 14:53:13.539426164 +00:00 2024-12-04 14:53:11.039260756 +00:00 A al_rtt true 0.390284 0.409854 39.000000 100/100 2024-12-04 14:53:15.399923376 +00:00 2024-12-04 14:53:10.584388384 +00:00
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-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 2 42.63 al_loss false 2024-12-04 14:53:22.461429163 +00:00 2024-12-04 14:53:13.539426164 +00:00 4 77.37 al_rtt false 2024-12-04 14:53:21.178132760 +00:00 2024-12-04 14:53:15.399923376 +00:00 4 53.65
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.000458 0.000142 0.000000 100/100 2024-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 A al_loss false 0.000458 0.000142 0.000000 100/100 2024-12-04 14:53:22.461429163 +00:00 2024-12-04 14:53:13.539426164 +00:00 A al_rtt false 0.000458 0.000142 0.000000 100/100 2024-12-04 14:53:21.178132760 +00:00 2024-12-04 14:53:15.399923376 +00:00
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-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 2 32.44 al_loss false 2024-12-04 14:53:22.461429163 +00:00 2024-12-04 14:53:13.539426164 +00:00 4 58.88 al_rtt true 2024-12-04 14:53:25.408476291 +00:00 2024-12-04 14:53:21.178132760 +00:00 5 53.58
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.783584 0.009168 0.000000 100/100 2024-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 A al_loss false 0.783584 0.009168 0.000000 100/100 2024-12-04 14:53:22.461429163 +00:00 2024-12-04 14:53:13.539426164 +00:00 A al_rtt true 0.783584 0.009168 0.000000 100/100 2024-12-04 14:53:25.408476291 +00:00 2024-12-04 14:53:21.178132760 +00:00
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-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 2 26.23 al_loss false 2024-12-04 14:53:33.929752633 +00:00 2024-12-04 14:53:29.416068798 +00:00 6 62.75 al_rtt false 2024-12-04 14:53:33.425516663 +00:00 2024-12-04 14:53:25.408476291 +00:00 6 59.90
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.000478 0.000152 0.000000 100/100 2024-12-04 14:53:21.802455422 +00:00 2024-12-04 14:53:13.982856567 +00:00 A al_loss false 0.000478 0.000152 0.000000 100/100 2024-12-04 14:53:33.929752633 +00:00 2024-12-04 14:53:29.416068798 +00:00 A al_rtt false 0.000478 0.000152 0.000000 100/100 2024-12-04 14:53:33.425516663 +00:00 2024-12-04 14:53:25.408476291 +00:00
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-12-04 14:53:37.107427056 +00:00 2024-12-04 14:53:21.802455422 +00:00 3 30.07 al_loss false 2024-12-04 14:53:33.929752633 +00:00 2024-12-04 14:53:29.416068798 +00:00 6 52.52 al_rtt false 2024-12-04 14:53:33.425516663 +00:00 2024-12-04 14:53:25.408476291 +00:00 6 50.13
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.183336 0.270495 0.000000 100/100 2024-12-04 14:53:37.107427056 +00:00 2024-12-04 14:53:21.802455422 +00:00 A al_loss false 0.183336 0.270495 0.000000 100/100 2024-12-04 14:53:33.929752633 +00:00 2024-12-04 14:53:29.416068798 +00:00 A al_rtt false 0.183336 0.270495 0.000000 100/100 2024-12-04 14:53:33.425516663 +00:00 2024-12-04 14:53:25.408476291 +00:00
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-12-04 14:53:44.758021063 +00:00 2024-12-04 14:53:37.107427056 +00:00 4 37.45 al_loss false 2024-12-04 14:53:45.313009184 +00:00 2024-12-04 14:53:41.345680435 +00:00 8 54.89 al_rtt false 2024-12-04 14:53:43.508799357 +00:00 2024-12-04 14:53:40.547057067 +00:00 8 50.41
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.000464 0.000116 0.000000 100/100 2024-12-04 14:53:44.758021063 +00:00 2024-12-04 14:53:37.107427056 +00:00 A al_loss false 0.000464 0.000116 0.000000 100/100 2024-12-04 14:53:45.313009184 +00:00 2024-12-04 14:53:41.345680435 +00:00 A al_rtt false 0.000464 0.000116 0.000000 100/100 2024-12-04 14:53:43.508799357 +00:00 2024-12-04 14:53:40.547057067 +00:00
Note
The previous command output should show the alarms are deactivated (since the network quality is good).