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.000026 0.000005 0.000000 6/100 A al_loss false 0.000026 0.000005 0.000000 6/100 A al_jitter false 0.000026 0.000005 0.000000 6/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-10-10 07:38:46.318162 1 41.48 al_loss true 2024-10-10 07:38:45.721640 1 51.36 al_rtt true 2024-10-10 07:38:47.176648 1 27.31
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.380279 0.399865 38.000000 100/100 2024-10-10 07:38:47.176648 A al_loss true 0.380279 0.399865 38.000000 100/100 2024-10-10 07:38:45.721640 A al_jitter true 0.380279 0.399865 38.000000 100/100 2024-10-10 07:38:46.318162
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-10-10 07:38:53.847024 2024-10-10 07:38:46.318162 2 64.85 al_loss false 2024-10-10 07:38:54.002711 2024-10-10 07:38:45.721640 2 71.35 al_rtt false 2024-10-10 07:38:52.938363 2024-10-10 07:38:47.176648 2 49.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_rtt false 0.000529 0.000129 0.000000 100/100 2024-10-10 07:38:52.938363 2024-10-10 07:38:47.176648 A al_loss false 0.000529 0.000129 0.000000 100/100 2024-10-10 07:38:54.002711 2024-10-10 07:38:45.721640 A al_jitter false 0.000529 0.000129 0.000000 100/100 2024-10-10 07:38:53.847024 2024-10-10 07:38:46.318162
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-10-10 07:38:53.847024 2024-10-10 07:38:46.318162 2 43.73 al_loss false 2024-10-10 07:38:54.002711 2024-10-10 07:38:45.721640 2 48.10 al_rtt true 2024-10-10 07:38:56.903830 2024-10-10 07:38:52.938363 3 51.43
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.774561 0.009162 0.000000 100/100 2024-10-10 07:38:56.903830 2024-10-10 07:38:52.938363 A al_loss false 0.774561 0.009162 0.000000 100/100 2024-10-10 07:38:54.002711 2024-10-10 07:38:45.721640 A al_jitter false 0.774561 0.009162 0.000000 100/100 2024-10-10 07:38:53.847024 2024-10-10 07:38:46.318162
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-10-10 07:38:53.847024 2024-10-10 07:38:46.318162 2 33.09 al_loss false 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 4 56.26 al_rtt false 2024-10-10 07:39:04.727802 2024-10-10 07:38:56.903830 4 59.73
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000539 0.000132 0.000000 100/100 2024-10-10 07:39:04.727802 2024-10-10 07:38:56.903830 A al_loss false 0.000539 0.000132 0.000000 100/100 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 A al_jitter false 0.000539 0.000132 0.000000 100/100 2024-10-10 07:38:53.847024 2024-10-10 07:38:46.318162
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-10-10 07:39:08.526439 2024-10-10 07:38:53.847024 3 35.72 al_loss false 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 4 45.16 al_rtt true 2024-10-10 07:39:10.884742 2024-10-10 07:39:04.727802 5 48.78
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.210790 0.282487 0.000000 100/100 2024-10-10 07:39:10.884742 2024-10-10 07:39:04.727802 A al_loss false 0.210790 0.282487 0.000000 100/100 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 A al_jitter true 0.210790 0.282487 0.000000 100/100 2024-10-10 07:39:08.526439 2024-10-10 07:38:53.847024
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-10-10 07:39:15.792035 2024-10-10 07:39:08.526439 4 43.63 al_loss false 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 4 37.74 al_rtt false 2024-10-10 07:39:13.888472 2024-10-10 07:39:10.884742 6 48.92
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.000463 0.000131 0.000000 100/100 2024-10-10 07:39:13.888472 2024-10-10 07:39:10.884742 A al_loss false 0.000463 0.000131 0.000000 100/100 2024-10-10 07:39:05.223063 2024-10-10 07:39:00.704781 A al_jitter false 0.000463 0.000131 0.000000 100/100 2024-10-10 07:39:15.792035 2024-10-10 07:39:08.526439
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.000023 0.000004 0.000000 6/100 A al_loss false 0.000023 0.000004 0.000000 6/100 A al_jitter false 0.000023 0.000004 0.000000 6/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-10-10 07:39:26.188942 1 44.72 al_loss true 2024-10-10 07:39:25.228839 1 60.97 al_rtt true 2024-10-10 07:39:26.787479 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_rtt true 0.440251 0.379875 44.000000 100/100 2024-10-10 07:39:26.787479 A al_loss true 0.440251 0.379875 44.000000 100/100 2024-10-10 07:39:25.228839 A al_jitter true 0.440251 0.379875 44.000000 100/100 2024-10-10 07:39:26.188942
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-10-10 07:39:33.761864 2024-10-10 07:39:26.188942 2 66.30 al_loss false 2024-10-10 07:39:33.807646 2024-10-10 07:39:25.228839 2 75.08 al_rtt false 2024-10-10 07:39:32.549463 2024-10-10 07:39:26.787479 2 50.44
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.000520 0.000136 0.000000 100/100 2024-10-10 07:39:32.549463 2024-10-10 07:39:26.787479 A al_loss false 0.000520 0.000136 0.000000 100/100 2024-10-10 07:39:33.807646 2024-10-10 07:39:25.228839 A al_jitter false 0.000520 0.000136 0.000000 100/100 2024-10-10 07:39:33.761864 2024-10-10 07:39:26.188942
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-10-10 07:39:33.761864 2024-10-10 07:39:26.188942 2 44.30 al_loss false 2024-10-10 07:39:33.807646 2024-10-10 07:39:25.228839 2 50.17 al_rtt true 2024-10-10 07:39:36.909855 2024-10-10 07:39:32.549463 3 51.93
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.774527 0.009116 0.000000 100/100 2024-10-10 07:39:36.909855 2024-10-10 07:39:32.549463 A al_loss false 0.774527 0.009116 0.000000 100/100 2024-10-10 07:39:33.807646 2024-10-10 07:39:25.228839 A al_jitter false 0.774527 0.009116 0.000000 100/100 2024-10-10 07:39:33.761864 2024-10-10 07:39:26.188942
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-10-10 07:39:33.761864 2024-10-10 07:39:26.188942 2 33.46 al_loss false 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 4 57.82 al_rtt false 2024-10-10 07:39:44.776218 2024-10-10 07:39:36.909855 4 60.21
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.000483 0.000095 0.000000 100/100 2024-10-10 07:39:44.776218 2024-10-10 07:39:36.909855 A al_loss false 0.000483 0.000095 0.000000 100/100 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 A al_jitter false 0.000483 0.000095 0.000000 100/100 2024-10-10 07:39:33.761864 2024-10-10 07:39:26.188942
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-10-10 07:39:48.089321 2024-10-10 07:39:33.761864 3 37.71 al_loss false 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 4 46.36 al_rtt true 2024-10-10 07:39:51.110967 2024-10-10 07:39:44.776218 5 48.45
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.219396 0.291107 0.000000 100/100 2024-10-10 07:39:51.110967 2024-10-10 07:39:44.776218 A al_loss false 0.219396 0.291107 0.000000 100/100 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 A al_jitter true 0.219396 0.291107 0.000000 100/100 2024-10-10 07:39:48.089321 2024-10-10 07:39:33.761864
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-10-10 07:39:55.917646 2024-10-10 07:39:48.089321 4 45.61 al_loss false 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 4 38.76 al_rtt false 2024-10-10 07:39:53.662055 2024-10-10 07:39:51.110967 6 47.91
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.000462 0.000088 0.000000 100/100 2024-10-10 07:39:53.662055 2024-10-10 07:39:51.110967 A al_loss false 0.000462 0.000088 0.000000 100/100 2024-10-10 07:39:45.277052 2024-10-10 07:39:40.766113 A al_jitter false 0.000462 0.000088 0.000000 100/100 2024-10-10 07:39:55.917646 2024-10-10 07:39:48.089321
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-10-10 07:40:08.892580 2024-10-10 07:40:04.029523 2 72.66 al_rtt false 2024-10-10 07:40:08.691817 2024-10-10 07:40:04.783328 2 58.42
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.013976 0.004042 0.000000 100/100 2024-10-10 07:40:08.691817 2024-10-10 07:40:04.783328 A al_loss false 0.013976 0.004042 0.000000 100/100 2024-10-10 07:40:08.892580 2024-10-10 07:40:04.029523 A al_jitter false 0.013976 0.004042 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-10-10 07:40:11.755241 1 26.73 al_loss true 2024-10-10 07:40:11.310142 2024-10-10 07:40:08.892580 3 69.90 al_rtt true 2024-10-10 07:40:12.603221 2024-10-10 07:40:08.691817 3 51.63
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.440306 0.439795 44.000000 100/100 2024-10-10 07:40:12.603221 2024-10-10 07:40:08.691817 A al_loss true 0.440306 0.439795 44.000000 100/100 2024-10-10 07:40:11.310142 2024-10-10 07:40:08.892580 A al_jitter true 0.440306 0.439795 44.000000 100/100 2024-10-10 07:40:11.755241
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-10-10 07:40:19.821056 2024-10-10 07:40:11.755241 2 45.10 al_loss false 2024-10-10 07:40:20.223792 2024-10-10 07:40:11.310142 4 77.04 al_rtt false 2024-10-10 07:40:19.232733 2024-10-10 07:40:12.603221 4 58.94
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.000469 0.000130 0.000000 100/100 2024-10-10 07:40:19.232733 2024-10-10 07:40:12.603221 A al_loss false 0.000469 0.000130 0.000000 100/100 2024-10-10 07:40:20.223792 2024-10-10 07:40:11.310142 A al_jitter false 0.000469 0.000130 0.000000 100/100 2024-10-10 07:40:19.821056 2024-10-10 07:40:11.755241
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-10-10 07:40:19.821056 2024-10-10 07:40:11.755241 2 34.28 al_loss false 2024-10-10 07:40:20.223792 2024-10-10 07:40:11.310142 4 58.56 al_rtt true 2024-10-10 07:40:23.180816 2024-10-10 07:40:19.232733 5 57.93
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.774635 0.009138 0.000000 100/100 2024-10-10 07:40:23.180816 2024-10-10 07:40:19.232733 A al_loss false 0.774635 0.009138 0.000000 100/100 2024-10-10 07:40:20.223792 2024-10-10 07:40:11.310142 A al_jitter false 0.774635 0.009138 0.000000 100/100 2024-10-10 07:40:19.821056 2024-10-10 07:40:11.755241
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-10-10 07:40:19.821056 2024-10-10 07:40:11.755241 2 27.70 al_loss false 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 6 62.80 al_rtt false 2024-10-10 07:40:31.099264 2024-10-10 07:40:23.180816 6 63.40
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.000521 0.000172 0.000000 100/100 2024-10-10 07:40:31.099264 2024-10-10 07:40:23.180816 A al_loss false 0.000521 0.000172 0.000000 100/100 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 A al_jitter false 0.000521 0.000172 0.000000 100/100 2024-10-10 07:40:19.821056 2024-10-10 07:40:11.755241
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-10-10 07:40:34.553047 2024-10-10 07:40:19.821056 3 31.56 al_loss false 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 6 52.71 al_rtt false 2024-10-10 07:40:31.099264 2024-10-10 07:40:23.180816 6 53.20
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.175489 0.232674 0.000000 100/100 2024-10-10 07:40:31.099264 2024-10-10 07:40:23.180816 A al_loss false 0.175489 0.232674 0.000000 100/100 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 A al_jitter true 0.175489 0.232674 0.000000 100/100 2024-10-10 07:40:34.553047 2024-10-10 07:40:19.821056
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-10-10 07:40:41.724535 2024-10-10 07:40:34.553047 4 37.76 al_loss false 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 6 45.32 al_rtt false 2024-10-10 07:40:40.322614 2024-10-10 07:40:37.717299 8 52.20
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.000528 0.000136 0.000000 100/100 2024-10-10 07:40:40.322614 2024-10-10 07:40:37.717299 A al_loss false 0.000528 0.000136 0.000000 100/100 2024-10-10 07:40:31.600866 2024-10-10 07:40:27.091826 A al_jitter false 0.000528 0.000136 0.000000 100/100 2024-10-10 07:40:41.724535 2024-10-10 07:40:34.553047
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-10-10 07:40:56.141326 2024-10-10 07:40:51.177652 2 73.83 al_rtt false 2024-10-10 07:40:55.893065 2024-10-10 07:40:51.929941 2 58.97
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.014337 0.004127 0.000000 100/100 2024-10-10 07:40:55.893065 2024-10-10 07:40:51.929941 A al_loss false 0.014337 0.004127 0.000000 100/100 2024-10-10 07:40:56.141326 2024-10-10 07:40:51.177652 A al_jitter false 0.014337 0.004127 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-10-10 07:40:58.754955 1 28.34 al_loss true 2024-10-10 07:40:58.594223 2024-10-10 07:40:56.141326 3 69.69 al_rtt true 2024-10-10 07:40:59.996771 2024-10-10 07:40:55.893065 3 50.30
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.490246 0.429804 49.000000 100/100 2024-10-10 07:40:59.996771 2024-10-10 07:40:55.893065 A al_loss true 0.490246 0.429804 49.000000 100/100 2024-10-10 07:40:58.594223 2024-10-10 07:40:56.141326 A al_jitter true 0.490246 0.429804 49.000000 100/100 2024-10-10 07:40:58.754955
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-10-10 07:41:07.167880 2024-10-10 07:40:58.754955 2 47.01 al_loss false 2024-10-10 07:41:07.318186 2024-10-10 07:40:58.594223 4 76.46 al_rtt false 2024-10-10 07:41:06.329564 2024-10-10 07:40:59.996771 4 57.52
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.000593 0.000161 0.000000 100/100 2024-10-10 07:41:06.329564 2024-10-10 07:40:59.996771 A al_loss false 0.000593 0.000161 0.000000 100/100 2024-10-10 07:41:07.318186 2024-10-10 07:40:58.594223 A al_jitter false 0.000593 0.000161 0.000000 100/100 2024-10-10 07:41:07.167880 2024-10-10 07:40:58.754955
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-10-10 07:41:07.167880 2024-10-10 07:40:58.754955 2 35.68 al_loss false 2024-10-10 07:41:07.318186 2024-10-10 07:40:58.594223 4 58.04 al_rtt true 2024-10-10 07:41:10.380656 2024-10-10 07:41:06.329564 5 56.71
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.765534 0.009120 0.000000 100/100 2024-10-10 07:41:10.380656 2024-10-10 07:41:06.329564 A al_loss false 0.765534 0.009120 0.000000 100/100 2024-10-10 07:41:07.318186 2024-10-10 07:40:58.594223 A al_jitter false 0.765534 0.009120 0.000000 100/100 2024-10-10 07:41:07.167880 2024-10-10 07:40:58.754955
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-10-10 07:41:07.167880 2024-10-10 07:40:58.754955 2 28.91 al_loss false 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 6 62.54 al_rtt false 2024-10-10 07:41:18.194933 2024-10-10 07:41:10.380656 6 62.23
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.000401 0.000120 0.000000 100/100 2024-10-10 07:41:18.194933 2024-10-10 07:41:10.380656 A al_loss false 0.000401 0.000120 0.000000 100/100 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 A al_jitter false 0.000401 0.000120 0.000000 100/100 2024-10-10 07:41:07.167880 2024-10-10 07:40:58.754955
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-10-10 07:41:21.904588 2024-10-10 07:41:07.167880 3 31.98 al_loss false 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 6 52.43 al_rtt false 2024-10-10 07:41:18.194933 2024-10-10 07:41:10.380656 6 52.17
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.195280 0.278203 0.000000 100/100 2024-10-10 07:41:18.194933 2024-10-10 07:41:10.380656 A al_loss false 0.195280 0.278203 0.000000 100/100 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 A al_jitter true 0.195280 0.278203 0.000000 100/100 2024-10-10 07:41:21.904588 2024-10-10 07:41:07.167880
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-10-10 07:41:28.222307 2024-10-10 07:41:21.904588 4 36.62 al_loss false 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 6 45.24 al_rtt false 2024-10-10 07:41:26.711664 2024-10-10 07:41:24.895259 8 49.53
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.000562 0.000127 0.000000 100/100 2024-10-10 07:41:26.711664 2024-10-10 07:41:24.895259 A al_loss false 0.000562 0.000127 0.000000 100/100 2024-10-10 07:41:18.696392 2024-10-10 07:41:14.180128 A al_jitter false 0.000562 0.000127 0.000000 100/100 2024-10-10 07:41:28.222307 2024-10-10 07:41:21.904588
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.