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.000042 0.000005 0.000000 10/100 A al_loss false 0.000042 0.000005 0.000000 10/100 A al_jitter false 0.000042 0.000005 0.000000 10/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-06-20 17:53:16.101629 1 54.97 al_loss true 2024-06-20 17:53:15.900006 1 58.12 al_rtt true 2024-06-20 17:53:17.254759 1 37.19
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.470232 0.509791 47.000000 100/100 2024-06-20 17:53:17.254759 A al_loss true 0.470232 0.509791 47.000000 100/100 2024-06-20 17:53:15.900006 A al_jitter true 0.470232 0.509791 47.000000 100/100 2024-06-20 17:53:16.101629
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-06-20 17:53:24.914611 2024-06-20 17:53:16.101629 2 71.20 al_loss false 2024-06-20 17:53:25.022380 2024-06-20 17:53:15.900006 2 73.73 al_rtt false 2024-06-20 17:53:23.973596 2024-06-20 17:53:17.254759 2 54.32
Step 10: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000425 0.000061 0.000000 100/100 2024-06-20 17:53:23.973596 2024-06-20 17:53:17.254759 A al_loss false 0.000425 0.000061 0.000000 100/100 2024-06-20 17:53:25.022380 2024-06-20 17:53:15.900006 A al_jitter false 0.000425 0.000061 0.000000 100/100 2024-06-20 17:53:24.914611 2024-06-20 17:53:16.101629
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-06-20 17:53:24.914611 2024-06-20 17:53:16.101629 2 47.80 al_loss false 2024-06-20 17:53:25.022380 2024-06-20 17:53:15.900006 2 49.49 al_rtt true 2024-06-20 17:53:28.474842 2024-06-20 17:53:23.973596 3 53.55
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.792456 0.009045 0.000000 100/100 2024-06-20 17:53:28.474842 2024-06-20 17:53:23.973596 A al_loss false 0.792456 0.009045 0.000000 100/100 2024-06-20 17:53:25.022380 2024-06-20 17:53:15.900006 A al_jitter false 0.792456 0.009045 0.000000 100/100 2024-06-20 17:53:24.914611 2024-06-20 17:53:16.101629
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-06-20 17:53:24.914611 2024-06-20 17:53:16.101629 2 36.40 al_loss false 2024-06-20 17:53:37.086302 2024-06-20 17:53:32.579944 4 56.30 al_rtt false 2024-06-20 17:53:36.586583 2024-06-20 17:53:28.474842 4 61.27
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.000410 0.000048 0.000000 100/100 2024-06-20 17:53:36.586583 2024-06-20 17:53:28.474842 A al_loss false 0.000410 0.000048 0.000000 100/100 2024-06-20 17:53:37.086302 2024-06-20 17:53:32.579944 A al_jitter false 0.000410 0.000048 0.000000 100/100 2024-06-20 17:53:24.914611 2024-06-20 17:53:16.101629
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-06-20 17:53:40.351422 2024-06-20 17:53:24.914611 3 39.36 al_loss false 2024-06-20 17:53:37.086302 2024-06-20 17:53:32.579944 4 45.05 al_rtt true 2024-06-20 17:53:42.157439 2024-06-20 17:53:36.586583 5 53.29
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.286815 0.366856 0.000000 100/100 2024-06-20 17:53:42.157439 2024-06-20 17:53:36.586583 A al_loss false 0.286815 0.366856 0.000000 100/100 2024-06-20 17:53:37.086302 2024-06-20 17:53:32.579944 A al_jitter true 0.286815 0.366856 0.000000 100/100 2024-06-20 17:53:40.351422 2024-06-20 17:53:24.914611
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-06-20 17:53:48.809567 2024-06-20 17:53:40.351422 4 47.78 al_loss false 2024-06-20 17:53:48.923130 2024-06-20 17:53:45.067023 6 48.38 al_rtt false 2024-06-20 17:53:46.867130 2024-06-20 17:53:42.157439 6 54.07
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.000428 0.000043 0.000000 100/100 2024-06-20 17:53:46.867130 2024-06-20 17:53:42.157439 A al_loss false 0.000428 0.000043 0.000000 100/100 2024-06-20 17:53:48.923130 2024-06-20 17:53:45.067023 A al_jitter false 0.000428 0.000043 0.000000 100/100 2024-06-20 17:53:48.809567 2024-06-20 17:53:40.351422
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.000059 0.000028 0.000000 9/100 A al_loss false 0.000059 0.000028 0.000000 9/100 A al_jitter false 0.000059 0.000028 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-06-20 17:54:03.106491 1 49.52 al_loss true 2024-06-20 17:54:02.515684 1 58.71 al_rtt true 2024-06-20 17:54:04.227385 1 31.91
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------ Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------ A al_rtt true 0.410267 0.449818 41.000000 100/100 2024-06-20 17:54:04.227385 A al_loss true 0.410267 0.449818 41.000000 100/100 2024-06-20 17:54:02.515684 A al_jitter true 0.410267 0.449818 41.000000 100/100 2024-06-20 17:54:03.106491
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-06-20 17:54:11.536651 2024-06-20 17:54:03.106491 2 69.11 al_loss false 2024-06-20 17:54:11.593658 2024-06-20 17:54:02.515684 2 74.37 al_rtt false 2024-06-20 17:54:10.794232 2024-06-20 17:54:04.227385 2 53.82
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.000447 0.000058 0.000000 100/100 2024-06-20 17:54:10.794232 2024-06-20 17:54:04.227385 A al_loss false 0.000447 0.000058 0.000000 100/100 2024-06-20 17:54:11.593658 2024-06-20 17:54:02.515684 A al_jitter false 0.000447 0.000058 0.000000 100/100 2024-06-20 17:54:11.536651 2024-06-20 17:54:03.106491
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-06-20 17:54:11.536651 2024-06-20 17:54:03.106491 2 46.67 al_loss false 2024-06-20 17:54:11.593658 2024-06-20 17:54:02.515684 2 50.23 al_rtt true 2024-06-20 17:54:14.849005 2024-06-20 17:54:10.794232 3 53.52
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.783506 0.009064 0.000000 100/100 2024-06-20 17:54:14.849005 2024-06-20 17:54:10.794232 A al_loss false 0.783506 0.009064 0.000000 100/100 2024-06-20 17:54:11.593658 2024-06-20 17:54:02.515684 A al_jitter false 0.783506 0.009064 0.000000 100/100 2024-06-20 17:54:11.536651 2024-06-20 17:54:03.106491
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-06-20 17:54:11.536651 2024-06-20 17:54:03.106491 2 35.36 al_loss false 2024-06-20 17:54:23.418577 2024-06-20 17:54:18.905013 4 56.99 al_rtt false 2024-06-20 17:54:22.899744 2024-06-20 17:54:14.849005 4 61.30
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000449 0.000053 0.000000 100/100 2024-06-20 17:54:22.899744 2024-06-20 17:54:14.849005 A al_loss false 0.000449 0.000053 0.000000 100/100 2024-06-20 17:54:23.418577 2024-06-20 17:54:18.905013 A al_jitter false 0.000449 0.000053 0.000000 100/100 2024-06-20 17:54:11.536651 2024-06-20 17:54:03.106491
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-06-20 17:54:26.944492 2024-06-20 17:54:11.536651 3 37.61 al_loss false 2024-06-20 17:54:23.418577 2024-06-20 17:54:18.905013 4 45.52 al_rtt false 2024-06-20 17:54:22.899744 2024-06-20 17:54:14.849005 4 48.96
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.206030 0.325091 0.000000 100/100 2024-06-20 17:54:29.805355 2024-06-20 17:54:22.899744 A al_loss false 0.206030 0.325091 0.000000 100/100 2024-06-20 17:54:23.418577 2024-06-20 17:54:18.905013 A al_jitter true 0.206030 0.325091 0.000000 100/100 2024-06-20 17:54:26.944492 2024-06-20 17:54:11.536651
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-06-20 17:54:34.820258 2024-06-20 17:54:26.944492 4 45.55 al_loss false 2024-06-20 17:54:35.273200 2024-06-20 17:54:31.161930 6 49.44 al_rtt false 2024-06-20 17:54:33.827873 2024-06-20 17:54:29.805355 6 52.06
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.000479 0.000087 0.000000 100/100 2024-06-20 17:54:33.827873 2024-06-20 17:54:29.805355 A al_loss false 0.000479 0.000087 0.000000 100/100 2024-06-20 17:54:35.273200 2024-06-20 17:54:31.161930 A al_jitter false 0.000479 0.000087 0.000000 100/100 2024-06-20 17:54:34.820258 2024-06-20 17:54:26.944492
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-06-20 17:54:52.038522 2024-06-20 17:54:47.073790 2 68.81 al_rtt false 2024-06-20 17:54:51.785799 2024-06-20 17:54:47.821803 2 54.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.000440 0.000052 0.000000 100/100 2024-06-20 17:54:51.785799 2024-06-20 17:54:47.821803 A al_loss false 0.000440 0.000052 0.000000 100/100 2024-06-20 17:54:52.038522 2024-06-20 17:54:47.073790 A al_jitter false 0.000440 0.000052 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-06-20 17:54:55.746156 1 24.35 al_loss true 2024-06-20 17:54:55.386535 2024-06-20 17:54:52.038522 3 64.56 al_rtt true 2024-06-20 17:54:57.056940 2024-06-20 17:54:51.785799 3 44.41
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.380280 0.519795 38.000000 100/100 2024-06-20 17:54:57.056940 2024-06-20 17:54:51.785799 A al_loss true 0.380280 0.519795 38.000000 100/100 2024-06-20 17:54:55.386535 2024-06-20 17:54:52.038522 A al_jitter true 0.380280 0.519795 38.000000 100/100 2024-06-20 17:54:55.746156
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-06-20 17:55:04.105151 2024-06-20 17:54:55.746156 2 43.57 al_loss false 2024-06-20 17:55:04.566469 2024-06-20 17:54:55.386535 4 73.74 al_rtt false 2024-06-20 17:55:03.452972 2024-06-20 17:54:57.056940 4 54.02
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.000426 0.000051 0.000000 100/100 2024-06-20 17:55:03.452972 2024-06-20 17:54:57.056940 A al_loss false 0.000426 0.000051 0.000000 100/100 2024-06-20 17:55:04.566469 2024-06-20 17:54:55.386535 A al_jitter false 0.000426 0.000051 0.000000 100/100 2024-06-20 17:55:04.105151 2024-06-20 17:54:55.746156
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-06-20 17:55:04.105151 2024-06-20 17:54:55.746156 2 33.20 al_loss false 2024-06-20 17:55:04.566469 2024-06-20 17:54:55.386535 4 56.20 al_rtt true 2024-06-20 17:55:07.779963 2024-06-20 17:55:03.452972 5 53.56
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.801464 0.009071 0.000000 100/100 2024-06-20 17:55:07.779963 2024-06-20 17:55:03.452972 A al_loss false 0.801464 0.009071 0.000000 100/100 2024-06-20 17:55:04.566469 2024-06-20 17:54:55.386535 A al_jitter false 0.801464 0.009071 0.000000 100/100 2024-06-20 17:55:04.105151 2024-06-20 17:54:55.746156
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-06-20 17:55:04.105151 2024-06-20 17:54:55.746156 2 26.95 al_loss false 2024-06-20 17:55:16.446087 2024-06-20 17:55:11.919349 6 60.21 al_rtt false 2024-06-20 17:55:15.940521 2024-06-20 17:55:07.779963 6 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.000449 0.000052 0.000000 100/100 2024-06-20 17:55:15.940521 2024-06-20 17:55:07.779963 A al_loss false 0.000449 0.000052 0.000000 100/100 2024-06-20 17:55:16.446087 2024-06-20 17:55:11.919349 A al_jitter false 0.000449 0.000052 0.000000 100/100 2024-06-20 17:55:04.105151 2024-06-20 17:54:55.746156
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-06-20 17:55:19.182701 2024-06-20 17:55:04.105151 3 31.96 al_loss false 2024-06-20 17:55:16.446087 2024-06-20 17:55:11.919349 6 50.62 al_rtt true 2024-06-20 17:55:21.891159 2024-06-20 17:55:15.940521 7 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 true 0.230187 0.328069 0.000000 100/100 2024-06-20 17:55:21.891159 2024-06-20 17:55:15.940521 A al_loss false 0.230187 0.328069 0.000000 100/100 2024-06-20 17:55:16.446087 2024-06-20 17:55:11.919349 A al_jitter true 0.230187 0.328069 0.000000 100/100 2024-06-20 17:55:19.182701 2024-06-20 17:55:04.105151
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-06-20 17:55:27.672706 2024-06-20 17:55:19.182701 4 39.53 al_loss false 2024-06-20 17:55:28.009784 2024-06-20 17:55:23.991336 8 53.24 al_rtt false 2024-06-20 17:55:25.955455 2024-06-20 17:55:21.891159 8 53.00
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.000434 0.000083 0.000000 100/100 2024-06-20 17:55:25.955455 2024-06-20 17:55:21.891159 A al_loss false 0.000434 0.000083 0.000000 100/100 2024-06-20 17:55:28.009784 2024-06-20 17:55:23.991336 A al_jitter false 0.000434 0.000083 0.000000 100/100 2024-06-20 17:55:27.672706 2024-06-20 17:55:19.182701
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-06-20 17:55:44.810067 2024-06-20 17:55:40.049733 2 67.10 al_rtt false 2024-06-20 17:55:44.713666 2024-06-20 17:55:40.799096 2 55.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.000463 0.000533 0.000000 100/100 2024-06-20 17:55:44.713666 2024-06-20 17:55:40.799096 A al_loss false 0.000463 0.000533 0.000000 100/100 2024-06-20 17:55:44.810067 2024-06-20 17:55:40.049733 A al_jitter false 0.000463 0.000533 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-06-20 17:55:48.519114 1 24.63 al_loss true 2024-06-20 17:55:47.877106 2024-06-20 17:55:44.810067 3 65.99 al_rtt true 2024-06-20 17:55:49.628110 2024-06-20 17:55:44.713666 3 46.12
Step 7: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled -------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.420257 0.499796 42.000000 100/100 2024-06-20 17:55:49.628110 2024-06-20 17:55:44.713666 A al_loss true 0.420257 0.499796 42.000000 100/100 2024-06-20 17:55:47.877106 2024-06-20 17:55:44.810067 A al_jitter true 0.420257 0.499796 42.000000 100/100 2024-06-20 17:55:48.519114
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-06-20 17:55:56.482175 2024-06-20 17:55:48.519114 2 42.33 al_loss false 2024-06-20 17:55:57.130288 2024-06-20 17:55:47.877106 4 74.46 al_rtt false 2024-06-20 17:55:56.043568 2024-06-20 17:55:49.628110 4 54.90
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.000462 0.000072 0.000000 100/100 2024-06-20 17:55:56.043568 2024-06-20 17:55:49.628110 A al_loss false 0.000462 0.000072 0.000000 100/100 2024-06-20 17:55:57.130288 2024-06-20 17:55:47.877106 A al_jitter false 0.000462 0.000072 0.000000 100/100 2024-06-20 17:55:56.482175 2024-06-20 17:55:48.519114
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-06-20 17:55:56.482175 2024-06-20 17:55:48.519114 2 32.06 al_loss false 2024-06-20 17:55:57.130288 2024-06-20 17:55:47.877106 4 56.39 al_rtt true 2024-06-20 17:56:00.390372 2024-06-20 17:55:56.043568 5 54.20
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.801473 0.009062 0.000000 100/100 2024-06-20 17:56:00.390372 2024-06-20 17:55:56.043568 A al_loss false 0.801473 0.009062 0.000000 100/100 2024-06-20 17:55:57.130288 2024-06-20 17:55:47.877106 A al_jitter false 0.801473 0.009062 0.000000 100/100 2024-06-20 17:55:56.482175 2024-06-20 17:55:48.519114
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-06-20 17:55:56.482175 2024-06-20 17:55:48.519114 2 25.87 al_loss false 2024-06-20 17:56:09.106641 2024-06-20 17:56:04.601138 6 60.14 al_rtt false 2024-06-20 17:56:08.603983 2024-06-20 17:56:00.390372 6 60.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.000436 0.000066 0.000000 100/100 2024-06-20 17:56:08.603983 2024-06-20 17:56:00.390372 A al_loss false 0.000436 0.000066 0.000000 100/100 2024-06-20 17:56:09.106641 2024-06-20 17:56:04.601138 A al_jitter false 0.000436 0.000066 0.000000 100/100 2024-06-20 17:55:56.482175 2024-06-20 17:55:48.519114
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-06-20 17:56:12.525814 2024-06-20 17:55:56.482175 3 29.50 al_loss false 2024-06-20 17:56:09.106641 2024-06-20 17:56:04.601138 6 50.44 al_rtt true 2024-06-20 17:56:15.376258 2024-06-20 17:56:08.603983 7 50.55
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.205790 0.296279 0.000000 100/100 2024-06-20 17:56:15.376258 2024-06-20 17:56:08.603983 A al_loss false 0.205790 0.296279 0.000000 100/100 2024-06-20 17:56:09.106641 2024-06-20 17:56:04.601138 A al_jitter true 0.205790 0.296279 0.000000 100/100 2024-06-20 17:56:12.525814 2024-06-20 17:55:56.482175
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-06-20 17:56:20.230831 2024-06-20 17:56:12.525814 4 36.84 al_loss false 2024-06-20 17:56:20.494511 2024-06-20 17:56:16.824972 8 52.17 al_rtt false 2024-06-20 17:56:17.827147 2024-06-20 17:56:15.376258 8 49.36
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.000473 0.000151 0.000000 100/100 2024-06-20 17:56:17.827147 2024-06-20 17:56:15.376258 A al_loss false 0.000473 0.000151 0.000000 100/100 2024-06-20 17:56:20.494511 2024-06-20 17:56:16.824972 A al_jitter false 0.000473 0.000151 0.000000 100/100 2024-06-20 17:56:20.230831 2024-06-20 17:56:12.525814
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.