Check Twamp Operation
This scenario shows how to configure Network Service Monitor (NSM) operations to measure network quality using active traffic probes and the TWAMP protocol. In addition, the TWAMP NSM responder service is configured.
Test IPv4 Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using an IPv4 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10.215.200.100/24 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A destination-address 10.215.200.100 set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 0 0.00 al_rtt false 0 0.00
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------- A al_rtt false 0.000037 0.000005 0.000000 8/100 A al_loss false 0.000037 0.000005 0.000000 8/100 A al_jitter false 0.000037 0.000005 0.000000 8/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:37:34.074295 1 50.05 al_loss true 2024-05-22 08:37:33.673552 1 56.47 al_rtt true 2024-05-22 08:37:35.325427 1 30.16
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------ Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------ A al_rtt true 0.370288 0.439817 37.000000 100/100 2024-05-22 08:37:35.325427 A al_loss true 0.370288 0.439817 37.000000 100/100 2024-05-22 08:37:33.673552 A al_jitter true 0.370288 0.439817 37.000000 100/100 2024-05-22 08:37:34.074295
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295 2 68.44 al_loss false 2024-05-22 08:37:42.597940 2024-05-22 08:37:33.673552 2 73.39 al_rtt false 2024-05-22 08:37:41.395324 2024-05-22 08:37:35.325427 2 49.93
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000461 0.000049 0.000000 100/100 2024-05-22 08:37:41.395324 2024-05-22 08:37:35.325427 A al_loss false 0.000461 0.000049 0.000000 100/100 2024-05-22 08:37:42.597940 2024-05-22 08:37:33.673552 A al_jitter false 0.000461 0.000049 0.000000 100/100 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295 2 46.14 al_loss false 2024-05-22 08:37:42.597940 2024-05-22 08:37:33.673552 2 49.47 al_rtt true 2024-05-22 08:37:45.858175 2024-05-22 08:37:41.395324 3 50.98
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.792493 0.009073 0.000000 100/100 2024-05-22 08:37:45.858175 2024-05-22 08:37:41.395324 A al_loss false 0.792493 0.009073 0.000000 100/100 2024-05-22 08:37:42.597940 2024-05-22 08:37:33.673552 A al_jitter false 0.792493 0.009073 0.000000 100/100 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295 2 34.90 al_loss false 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 4 56.22 al_rtt false 2024-05-22 08:37:53.971522 2024-05-22 08:37:45.858175 4 59.47
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000456 0.000060 0.000000 100/100 2024-05-22 08:37:53.971522 2024-05-22 08:37:45.858175 A al_loss false 0.000456 0.000060 0.000000 100/100 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 A al_jitter false 0.000456 0.000060 0.000000 100/100 2024-05-22 08:37:42.400653 2024-05-22 08:37:34.074295
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:37:58.009560 2024-05-22 08:37:42.400653 3 37.36 al_loss false 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 4 44.82 al_rtt true 2024-05-22 08:38:00.607557 2024-05-22 08:37:53.971522 5 48.27
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.252619 0.331837 0.000000 100/100 2024-05-22 08:38:00.607557 2024-05-22 08:37:53.971522 A al_loss false 0.252619 0.331837 0.000000 100/100 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 A al_jitter true 0.252619 0.331837 0.000000 100/100 2024-05-22 08:37:58.009560 2024-05-22 08:37:42.400653
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:38:05.544840 2024-05-22 08:37:58.009560 4 44.37 al_loss false 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 4 37.52 al_rtt false 2024-05-22 08:38:03.784609 2024-05-22 08:38:00.607557 6 48.57
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000447 0.000054 0.000000 100/100 2024-05-22 08:38:03.784609 2024-05-22 08:38:00.607557 A al_loss false 0.000447 0.000054 0.000000 100/100 2024-05-22 08:37:54.466938 2024-05-22 08:37:49.980120 A al_jitter false 0.000447 0.000054 0.000000 100/100 2024-05-22 08:38:05.544840 2024-05-22 08:37:58.009560
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv4 FQDN Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv4 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10.215.200.100/24 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A destination-address test.nsm.fqdn set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10.215.200.100
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 0 0.00 al_rtt false 0 0.00
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------- A al_rtt false 0.000038 0.000006 0.000000 9/100 A al_loss false 0.000038 0.000006 0.000000 9/100 A al_jitter false 0.000038 0.000006 0.000000 9/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:38:19.398033 1 53.18 al_loss true 2024-05-22 08:38:18.987307 1 59.62 al_rtt true 2024-05-22 08:38:20.691311 1 32.62
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------ Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------ A al_rtt true 0.440250 0.469804 44.000000 100/100 2024-05-22 08:38:20.691311 A al_loss true 0.440250 0.469804 44.000000 100/100 2024-05-22 08:38:18.987307 A al_jitter true 0.440250 0.469804 44.000000 100/100 2024-05-22 08:38:19.398033
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033 2 70.28 al_loss false 2024-05-22 08:38:28.107384 2024-05-22 08:38:18.987307 2 75.65 al_rtt false 2024-05-22 08:38:27.360114 2024-05-22 08:38:20.691311 2 55.34
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000460 0.000052 0.000000 100/100 2024-05-22 08:38:27.360114 2024-05-22 08:38:20.691311 A al_loss false 0.000460 0.000052 0.000000 100/100 2024-05-22 08:38:28.107384 2024-05-22 08:38:18.987307 A al_jitter false 0.000460 0.000052 0.000000 100/100 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033 2 47.12 al_loss false 2024-05-22 08:38:28.107384 2024-05-22 08:38:18.987307 2 50.73 al_rtt true 2024-05-22 08:38:31.270314 2024-05-22 08:38:27.360114 3 54.63
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.801481 0.009065 0.000000 100/100 2024-05-22 08:38:31.270314 2024-05-22 08:38:27.360114 A al_loss false 0.801481 0.009065 0.000000 100/100 2024-05-22 08:38:28.107384 2024-05-22 08:38:18.987307 A al_jitter false 0.801481 0.009065 0.000000 100/100 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033 2 35.34 al_loss false 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 4 56.86 al_rtt false 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 4 62.39
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000447 0.000060 0.000000 100/100 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 A al_loss false 0.000447 0.000060 0.000000 100/100 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 A al_jitter false 0.000447 0.000060 0.000000 100/100 2024-05-22 08:38:27.865313 2024-05-22 08:38:19.398033
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:38:43.994098 2024-05-22 08:38:27.865313 3 36.09 al_loss false 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 4 45.64 al_rtt false 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 4 50.07
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.183211 0.255293 0.000000 100/100 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 A al_loss false 0.183211 0.255293 0.000000 100/100 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 A al_jitter true 0.183211 0.255293 0.000000 100/100 2024-05-22 08:38:43.994098 2024-05-22 08:38:27.865313
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:38:50.461805 2024-05-22 08:38:43.994098 4 41.97 al_loss false 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 4 38.29 al_rtt false 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 4 42.01
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000447 0.000061 0.000000 100/100 2024-05-22 08:38:39.550261 2024-05-22 08:38:31.270314 A al_loss false 0.000447 0.000061 0.000000 100/100 2024-05-22 08:38:40.031250 2024-05-22 08:38:35.524203 A al_jitter false 0.000447 0.000061 0.000000 100/100 2024-05-22 08:38:50.461805 2024-05-22 08:38:43.994098
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv6 Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using an IPv6 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10::3/64 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10::2/64 set service nsm operation A destination-address 10::3 set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 2024-05-22 08:39:07.818342 2024-05-22 08:39:02.359980 2 78.73 al_rtt false 2024-05-22 08:39:07.331563 2024-05-22 08:39:03.128131 2 60.66
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.001809 0.001499 0.000000 100/100 2024-05-22 08:39:07.331563 2024-05-22 08:39:03.128131 A al_loss false 0.001809 0.001499 0.000000 100/100 2024-05-22 08:39:07.818342 2024-05-22 08:39:02.359980 A al_jitter false 0.001809 0.001499 0.000000 100/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:39:10.594358 1 25.59 al_loss true 2024-05-22 08:39:10.373280 2024-05-22 08:39:07.818342 3 69.81 al_rtt true 2024-05-22 08:39:11.623720 2024-05-22 08:39:07.331563 3 50.32
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.440244 0.519779 44.000000 100/100 2024-05-22 08:39:11.623720 2024-05-22 08:39:07.331563 A al_loss true 0.440244 0.519779 44.000000 100/100 2024-05-22 08:39:10.373280 2024-05-22 08:39:07.818342 A al_jitter true 0.440244 0.519779 44.000000 100/100 2024-05-22 08:39:10.594358
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358 2 45.15 al_loss false 2024-05-22 08:39:19.048418 2024-05-22 08:39:10.373280 4 75.99 al_rtt false 2024-05-22 08:39:18.139047 2024-05-22 08:39:11.623720 4 57.64
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000421 0.000062 0.000000 100/100 2024-05-22 08:39:18.139047 2024-05-22 08:39:11.623720 A al_loss false 0.000421 0.000062 0.000000 100/100 2024-05-22 08:39:19.048418 2024-05-22 08:39:10.373280 A al_jitter false 0.000421 0.000062 0.000000 100/100 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358 2 34.26 al_loss false 2024-05-22 08:39:19.048418 2024-05-22 08:39:10.373280 4 57.65 al_rtt true 2024-05-22 08:39:22.409941 2024-05-22 08:39:18.139047 5 56.54
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.792428 0.009061 0.000000 100/100 2024-05-22 08:39:22.409941 2024-05-22 08:39:18.139047 A al_loss false 0.792428 0.009061 0.000000 100/100 2024-05-22 08:39:19.048418 2024-05-22 08:39:10.373280 A al_jitter false 0.792428 0.009061 0.000000 100/100 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358 2 27.78 al_loss false 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 6 61.67 al_rtt false 2024-05-22 08:39:30.410891 2024-05-22 08:39:22.409941 6 61.93
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000409 0.000047 0.000000 100/100 2024-05-22 08:39:30.410891 2024-05-22 08:39:22.409941 A al_loss false 0.000409 0.000047 0.000000 100/100 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 A al_jitter false 0.000409 0.000047 0.000000 100/100 2024-05-22 08:39:18.993163 2024-05-22 08:39:10.594358
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:39:34.649908 2024-05-22 08:39:18.993163 3 30.38 al_loss false 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 6 51.47 al_rtt false 2024-05-22 08:39:30.410891 2024-05-22 08:39:22.409941 6 51.69
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.182271 0.275853 0.000000 100/100 2024-05-22 08:39:30.410891 2024-05-22 08:39:22.409941 A al_loss false 0.182271 0.275853 0.000000 100/100 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 A al_jitter true 0.182271 0.275853 0.000000 100/100 2024-05-22 08:39:34.649908 2024-05-22 08:39:18.993163
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:39:41.885295 2024-05-22 08:39:34.649908 4 37.23 al_loss false 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 6 44.40 al_rtt false 2024-05-22 08:39:39.241843 2024-05-22 08:39:38.025536 8 47.48
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000409 0.000051 0.000000 100/100 2024-05-22 08:39:39.241843 2024-05-22 08:39:38.025536 A al_loss false 0.000409 0.000051 0.000000 100/100 2024-05-22 08:39:30.912194 2024-05-22 08:39:26.402917 A al_jitter false 0.000409 0.000051 0.000000 100/100 2024-05-22 08:39:41.885295 2024-05-22 08:39:34.649908
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv6 FQDN Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv6 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10::3/64 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10::2/64 set service nsm operation A destination-address test.nsm.fqdn set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10::3
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 2024-05-22 08:39:59.684518 2024-05-22 08:39:54.679235 2 71.25 al_rtt false 2024-05-22 08:39:59.381247 2024-05-22 08:39:55.434932 2 56.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_rtt false 0.000682 0.000800 0.000000 100/100 2024-05-22 08:39:59.381247 2024-05-22 08:39:55.434932 A al_loss false 0.000682 0.000800 0.000000 100/100 2024-05-22 08:39:59.684518 2024-05-22 08:39:54.679235 A al_jitter false 0.000682 0.000800 0.000000 100/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:40:02.844143 1 26.69 al_loss true 2024-05-22 08:40:02.688540 2024-05-22 08:39:59.684518 3 66.38 al_rtt true 2024-05-22 08:40:04.200133 2024-05-22 08:39:59.381247 3 46.62
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.480231 0.479807 48.000000 100/100 2024-05-22 08:40:04.200133 2024-05-22 08:39:59.381247 A al_loss true 0.480231 0.479807 48.000000 100/100 2024-05-22 08:40:02.688540 2024-05-22 08:39:59.684518 A al_jitter true 0.480231 0.479807 48.000000 100/100 2024-05-22 08:40:02.844143
Note
The previous command output should show that the ‘al_loss’ alarm is activated, since there are packet losses on the network greater than the configured threshold. As there are packet losses in the network, the delay and jitter are also affected, so ‘al_rtt’ and ‘al_jitter’ alarms are also activated since the threshold configured for them is exceeded.
Note
If the packet loss emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there is no longer packet loss and will deactivate the ‘al_loss’ alarm.
Step 8: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 9: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143 2 45.05 al_loss false 2024-05-22 08:40:11.264125 2024-05-22 08:40:02.688540 4 72.26 al_rtt false 2024-05-22 08:40:10.303056 2024-05-22 08:40:04.200133 4 53.48
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000432 0.000053 0.000000 100/100 2024-05-22 08:40:10.303056 2024-05-22 08:40:04.200133 A al_loss false 0.000432 0.000053 0.000000 100/100 2024-05-22 08:40:11.264125 2024-05-22 08:40:02.688540 A al_jitter false 0.000432 0.000053 0.000000 100/100 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional delay of 900 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said delay in the network and will proceed to activate the ‘al_rtt’ alarm.
Step 11: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out RTT set traffic control RTT type network-emulator network-delay 900
Step 12: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143 2 34.21 al_loss false 2024-05-22 08:40:11.264125 2024-05-22 08:40:02.688540 4 54.88 al_rtt true 2024-05-22 08:40:14.911099 2024-05-22 08:40:10.303056 5 53.34
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.792488 0.009069 0.000000 100/100 2024-05-22 08:40:14.911099 2024-05-22 08:40:10.303056 A al_loss false 0.792488 0.009069 0.000000 100/100 2024-05-22 08:40:11.264125 2024-05-22 08:40:02.688540 A al_jitter false 0.792488 0.009069 0.000000 100/100 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143
Note
The previous command output should show that the ‘al_rtt’ alarm is activated, since there are delays on the network greater than the configured threshold.
Note
If the additional delay emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high delays and will deactivate the ‘al_rtt’ alarm.
Step 14: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 15: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143 2 27.76 al_loss false 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 6 59.33 al_rtt false 2024-05-22 08:40:22.978554 2024-05-22 08:40:14.911099 6 59.43
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000447 0.000058 0.000000 100/100 2024-05-22 08:40:22.978554 2024-05-22 08:40:14.911099 A al_loss false 0.000447 0.000058 0.000000 100/100 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 A al_jitter false 0.000447 0.000058 0.000000 100/100 2024-05-22 08:40:11.306227 2024-05-22 08:40:02.844143
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Note
If an additional jitter of 1000 ms is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said jitter in the network and will proceed to activate the ‘al_jitter’ alarm.
Step 17: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out JITTER set traffic control JITTER type network-emulator network-delay 1 jitter 1000
Step 18: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter true 2024-05-22 08:40:26.557741 2024-05-22 08:40:11.306227 3 31.89 al_loss false 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 6 49.72 al_rtt false 2024-05-22 08:40:22.978554 2024-05-22 08:40:14.911099 6 49.80
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.198880 0.276322 0.000000 100/100 2024-05-22 08:40:22.978554 2024-05-22 08:40:14.911099 A al_loss false 0.198880 0.276322 0.000000 100/100 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 A al_jitter true 0.198880 0.276322 0.000000 100/100 2024-05-22 08:40:26.557741 2024-05-22 08:40:11.306227
Note
The previous command output should show that the ‘al_jitter’ alarm is activated, since there is a jitter on the network greater than the configured threshold.
Note
If the additional jitter emulated in the network is removed and we wait a reasonable amount of time, the NSM operation will detect that there are no longer high jitter and will deactivate the ‘al_jitter’ alarm.
Step 20: Set the following configuration in DUT0
:
delete interfaces ethernet eth0 traffic control
Step 21: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
---------------------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ---------------------------------------------------------------------------------------------------- al_jitter false 2024-05-22 08:40:34.420231 2024-05-22 08:40:26.557741 4 38.79 al_loss false 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 6 42.97 al_rtt false 2024-05-22 08:40:31.701467 2024-05-22 08:40:29.874283 8 47.38
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000432 0.000061 0.000000 100/100 2024-05-22 08:40:31.701467 2024-05-22 08:40:29.874283 A al_loss false 0.000432 0.000061 0.000000 100/100 2024-05-22 08:40:23.484505 2024-05-22 08:40:18.976891 A al_jitter false 0.000432 0.000061 0.000000 100/100 2024-05-22 08:40:34.420231 2024-05-22 08:40:26.557741
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.