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.000032 0.000005 0.000000 8/100 A al_loss false 0.000032 0.000005 0.000000 8/100 A al_jitter false 0.000032 0.000005 0.000000 8/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2024-06-24 13:06:11.373026 1 47.29 al_loss true 2024-06-24 13:06:10.819277 1 56.21 al_rtt true 2024-06-24 13:06:12.371135 1 31.34
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.390280 0.439823 39.000000 100/100 2024-06-24 13:06:12.371135 A al_loss true 0.390280 0.439823 39.000000 100/100 2024-06-24 13:06:10.819277 A al_jitter true 0.390280 0.439823 39.000000 100/100 2024-06-24 13:06:11.373026
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-24 13:06:19.147311 2024-06-24 13:06:11.373026 2 64.98 al_loss false 2024-06-24 13:06:19.486310 2024-06-24 13:06:10.819277 2 72.46 al_rtt false 2024-06-24 13:06:18.199980 2024-06-24 13:06:12.371135 2 48.75
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.000465 0.000065 0.000000 100/100 2024-06-24 13:06:18.199980 2024-06-24 13:06:12.371135 A al_loss false 0.000465 0.000065 0.000000 100/100 2024-06-24 13:06:19.486310 2024-06-24 13:06:10.819277 A al_jitter false 0.000465 0.000065 0.000000 100/100 2024-06-24 13:06:19.147311 2024-06-24 13:06:11.373026
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-24 13:06:19.147311 2024-06-24 13:06:11.373026 2 43.60 al_loss false 2024-06-24 13:06:19.486310 2024-06-24 13:06:10.819277 2 48.61 al_rtt true 2024-06-24 13:06:22.793517 2024-06-24 13:06:18.199980 3 50.23
Step 13: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_rtt)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.783464 0.009054 0.000000 100/100 2024-06-24 13:06:22.793517 2024-06-24 13:06:18.199980 A al_loss false 0.783464 0.009054 0.000000 100/100 2024-06-24 13:06:19.486310 2024-06-24 13:06:10.819277 A al_jitter false 0.783464 0.009054 0.000000 100/100 2024-06-24 13:06:19.147311 2024-06-24 13:06:11.373026
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-24 13:06:19.147311 2024-06-24 13:06:11.373026 2 33.02 al_loss false 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 4 56.06 al_rtt false 2024-06-24 13:06:30.810125 2024-06-24 13:06:22.793517 4 58.83
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.000417 0.000049 0.000000 100/100 2024-06-24 13:06:30.810125 2024-06-24 13:06:22.793517 A al_loss false 0.000417 0.000049 0.000000 100/100 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 A al_jitter false 0.000417 0.000049 0.000000 100/100 2024-06-24 13:06:19.147311 2024-06-24 13:06:11.373026
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-24 13:06:35.088318 2024-06-24 13:06:19.147311 3 34.60 al_loss false 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 4 44.88 al_rtt false 2024-06-24 13:06:30.810125 2024-06-24 13:06:22.793517 4 47.10
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.200492 0.275199 0.000000 100/100 2024-06-24 13:06:37.511146 2024-06-24 13:06:30.810125 A al_loss false 0.200492 0.275199 0.000000 100/100 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 A al_jitter true 0.200492 0.275199 0.000000 100/100 2024-06-24 13:06:35.088318 2024-06-24 13:06:19.147311
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-24 13:06:41.640020 2024-06-24 13:06:35.088318 4 40.79 al_loss false 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 4 37.57 al_rtt false 2024-06-24 13:06:39.877370 2024-06-24 13:06:37.511146 6 46.16
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.000421 0.000055 0.000000 100/100 2024-06-24 13:06:39.877370 2024-06-24 13:06:37.511146 A al_loss false 0.000421 0.000055 0.000000 100/100 2024-06-24 13:06:31.328038 2024-06-24 13:06:26.800380 A al_jitter false 0.000421 0.000055 0.000000 100/100 2024-06-24 13:06:41.640020 2024-06-24 13:06:35.088318
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.
Test IPv4 FQDN Destination
Description
In this scenario, TWAMP NSM operations are configured in DUT0 (using a Fully Qualified Domain Name as the IPv4 destination address) and the TWAMP NSM responder service is configured in DUT1.
Scenario
Step 1: Set the following configuration in DUT1
:
set interfaces ethernet eth0 address 10.215.200.100/24 set service nsm responder type twamp port 12345
Step 2: Set the following configuration in DUT0
:
set interfaces ethernet eth0 address 10.215.200.50/24 set service nsm operation A destination-address test.nsm.fqdn set service nsm operation A type twamp set service nsm operation A interval 0.05 set service nsm operation A local-interface eth0 set service nsm operation A window 100 set service nsm operation A alarm al_loss activate loss 5 set service nsm operation A alarm al_rtt activate rtt 0.2 set service nsm operation A alarm al_jitter activate jitter 0.1 set system alarm al_loss set system alarm al_rtt set system alarm al_jitter set service nsm operation A destination-port 12345 set service dns static host-name testnsm alias test.nsm.fqdn set service dns static host-name testnsm inet 10.215.200.100
Step 3: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) ------------------------------------------------------------------- al_jitter false 0 0.00 al_loss false 0 0.00 al_rtt false 0 0.00
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
--------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled --------------------------------------------------------------------------------------------- A al_rtt false 0.000038 0.000008 0.000000 8/100 A al_loss false 0.000038 0.000008 0.000000 8/100 A al_jitter false 0.000038 0.000008 0.000000 8/100
Note
The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.
Note
If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.
Step 5: Set the following configuration in DUT0
:
set interfaces ethernet eth0 traffic control out PLOSS set traffic control PLOSS type network-emulator packet-loss 50
Step 6: Run command system alarm show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(true)Show output
-------------------------------------------------------------------------------------- Alarm Status Toggled Prev-toggled Toggle-count Time up (%) -------------------------------------------------------------------------------------- al_jitter true 2024-06-24 13:06:56.341548 1 50.59 al_loss true 2024-06-24 13:06:55.721429 1 60.34 al_rtt true 2024-06-24 13:06:56.976726 1 40.49
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.500219 0.409837 50.000000 100/100 2024-06-24 13:06:56.976726 A al_loss true 0.500219 0.409837 50.000000 100/100 2024-06-24 13:06:55.721429 A al_jitter true 0.500219 0.409837 50.000000 100/100 2024-06-24 13:06:56.341548
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-24 13:07:04.552036 2024-06-24 13:06:56.341548 2 66.29 al_loss false 2024-06-24 13:07:05.054778 2024-06-24 13:06:55.721429 2 75.30 al_rtt false 2024-06-24 13:07:03.954662 2024-06-24 13:06:56.976726 2 56.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.000451 0.000077 0.000000 100/100 2024-06-24 13:07:03.954662 2024-06-24 13:06:56.976726 A al_loss false 0.000451 0.000077 0.000000 100/100 2024-06-24 13:07:05.054778 2024-06-24 13:06:55.721429 A al_jitter false 0.000451 0.000077 0.000000 100/100 2024-06-24 13:07:04.552036 2024-06-24 13:06:56.341548
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-24 13:07:04.552036 2024-06-24 13:06:56.341548 2 44.67 al_loss false 2024-06-24 13:07:05.054778 2024-06-24 13:06:55.721429 2 50.75 al_rtt true 2024-06-24 13:07:08.449573 2024-06-24 13:07:03.954662 3 55.13
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.801477 0.009098 0.000000 100/100 2024-06-24 13:07:08.449573 2024-06-24 13:07:03.954662 A al_loss false 0.801477 0.009098 0.000000 100/100 2024-06-24 13:07:05.054778 2024-06-24 13:06:55.721429 A al_jitter false 0.801477 0.009098 0.000000 100/100 2024-06-24 13:07:04.552036 2024-06-24 13:06:56.341548
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-24 13:07:04.552036 2024-06-24 13:06:56.341548 2 33.84 al_loss false 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 4 57.01 al_rtt false 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 4 62.43
Step 16: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000453 0.000052 0.000000 100/100 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 A al_loss false 0.000453 0.000052 0.000000 100/100 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 A al_jitter false 0.000453 0.000052 0.000000 100/100 2024-06-24 13:07:04.552036 2024-06-24 13:06:56.341548
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-24 13:07:21.005601 2024-06-24 13:07:04.552036 3 35.25 al_loss false 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 4 45.76 al_rtt false 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 4 50.11
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.178216 0.230325 0.000000 100/100 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 A al_loss false 0.178216 0.230325 0.000000 100/100 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 A al_jitter true 0.178216 0.230325 0.000000 100/100 2024-06-24 13:07:21.005601 2024-06-24 13:07:04.552036
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-24 13:07:27.887327 2024-06-24 13:07:21.005601 4 41.94 al_loss false 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 4 38.44 al_rtt false 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 4 42.10
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.000455 0.000047 0.000000 100/100 2024-06-24 13:07:16.619999 2024-06-24 13:07:08.449573 A al_loss false 0.000455 0.000047 0.000000 100/100 2024-06-24 13:07:17.121871 2024-06-24 13:07:12.619235 A al_jitter false 0.000455 0.000047 0.000000 100/100 2024-06-24 13:07:27.887327 2024-06-24 13:07:21.005601
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-24 13:07:44.879231 2024-06-24 13:07:39.470474 2 76.50 al_rtt false 2024-06-24 13:07:44.372220 2024-06-24 13:07:40.215339 2 58.82
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.000435 0.000063 0.000000 100/100 2024-06-24 13:07:44.372220 2024-06-24 13:07:40.215339 A al_loss false 0.000435 0.000063 0.000000 100/100 2024-06-24 13:07:44.879231 2024-06-24 13:07:39.470474 A al_jitter false 0.000435 0.000063 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-24 13:07:48.476393 1 20.54 al_loss true 2024-06-24 13:07:47.737060 2024-06-24 13:07:44.879231 3 67.76 al_rtt true 2024-06-24 13:07:49.379997 2024-06-24 13:07:44.372220 3 45.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.380276 0.359854 38.000000 100/100 2024-06-24 13:07:49.379997 2024-06-24 13:07:44.372220 A al_loss true 0.380276 0.359854 38.000000 100/100 2024-06-24 13:07:47.737060 2024-06-24 13:07:44.879231 A al_jitter true 0.380276 0.359854 38.000000 100/100 2024-06-24 13:07:48.476393
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-24 13:07:56.394120 2024-06-24 13:07:48.476393 2 42.27 al_loss false 2024-06-24 13:07:56.343221 2024-06-24 13:07:47.737060 4 74.84 al_rtt false 2024-06-24 13:07:55.645512 2024-06-24 13:07:49.379997 4 55.67
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.000427 0.000055 0.000000 100/100 2024-06-24 13:07:55.645512 2024-06-24 13:07:49.379997 A al_loss false 0.000427 0.000055 0.000000 100/100 2024-06-24 13:07:56.343221 2024-06-24 13:07:47.737060 A al_jitter false 0.000427 0.000055 0.000000 100/100 2024-06-24 13:07:56.394120 2024-06-24 13:07:48.476393
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-24 13:07:56.394120 2024-06-24 13:07:48.476393 2 32.17 al_loss false 2024-06-24 13:07:56.343221 2024-06-24 13:07:47.737060 4 56.95 al_rtt true 2024-06-24 13:07:59.603148 2024-06-24 13:07:55.645512 5 55.10
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.792468 0.009067 0.000000 100/100 2024-06-24 13:07:59.603148 2024-06-24 13:07:55.645512 A al_loss false 0.792468 0.009067 0.000000 100/100 2024-06-24 13:07:56.343221 2024-06-24 13:07:47.737060 A al_jitter false 0.792468 0.009067 0.000000 100/100 2024-06-24 13:07:56.394120 2024-06-24 13:07:48.476393
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-24 13:07:56.394120 2024-06-24 13:07:48.476393 2 26.02 al_loss false 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 6 60.86 al_rtt false 2024-06-24 13:08:07.667093 2024-06-24 13:07:59.603148 6 60.77
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.000439 0.000061 0.000000 100/100 2024-06-24 13:08:07.667093 2024-06-24 13:07:59.603148 A al_loss false 0.000439 0.000061 0.000000 100/100 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 A al_jitter false 0.000439 0.000061 0.000000 100/100 2024-06-24 13:07:56.394120 2024-06-24 13:07:48.476393
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-24 13:08:11.723584 2024-06-24 13:07:56.394120 3 29.44 al_loss false 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 6 50.88 al_rtt true 2024-06-24 13:08:14.476684 2024-06-24 13:08:07.667093 7 50.92
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.225651 0.348449 0.000000 100/100 2024-06-24 13:08:14.476684 2024-06-24 13:08:07.667093 A al_loss false 0.225651 0.348449 0.000000 100/100 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 A al_jitter true 0.225651 0.348449 0.000000 100/100 2024-06-24 13:08:11.723584 2024-06-24 13:07:56.394120
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-24 13:08:19.197318 2024-06-24 13:08:11.723584 4 36.51 al_loss false 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 6 43.93 al_rtt false 2024-06-24 13:08:17.354818 2024-06-24 13:08:14.476684 8 50.69
Step 22: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000440 0.000064 0.000000 100/100 2024-06-24 13:08:17.354818 2024-06-24 13:08:14.476684 A al_loss false 0.000440 0.000064 0.000000 100/100 2024-06-24 13:08:08.175178 2024-06-24 13:08:03.674421 A al_jitter false 0.000440 0.000064 0.000000 100/100 2024-06-24 13:08:19.197318 2024-06-24 13:08:11.723584
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-24 13:08:37.005128 2024-06-24 13:08:31.524182 2 78.50 al_rtt false 2024-06-24 13:08:36.490292 2024-06-24 13:08:32.277530 2 60.37
Step 4: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_loss)\s+(false) (al_rtt)\s+(false) (al_jitter)\s+(false)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt false 0.000814 0.000949 0.000000 100/100 2024-06-24 13:08:36.490292 2024-06-24 13:08:32.277530 A al_loss false 0.000814 0.000949 0.000000 100/100 2024-06-24 13:08:37.005128 2024-06-24 13:08:31.524182 A al_jitter false 0.000814 0.000949 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-24 13:08:39.746776 1 25.99 al_loss true 2024-06-24 13:08:39.537655 2024-06-24 13:08:37.005128 3 69.97 al_rtt true 2024-06-24 13:08:41.096151 2024-06-24 13:08:36.490292 3 48.13
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.420258 0.439825 42.000000 100/100 2024-06-24 13:08:41.096151 2024-06-24 13:08:36.490292 A al_loss true 0.420258 0.439825 42.000000 100/100 2024-06-24 13:08:39.537655 2024-06-24 13:08:37.005128 A al_jitter true 0.420258 0.439825 42.000000 100/100 2024-06-24 13:08:39.746776
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-24 13:08:48.109372 2024-06-24 13:08:39.746776 2 44.81 al_loss false 2024-06-24 13:08:48.458839 2024-06-24 13:08:39.537655 4 77.14 al_rtt false 2024-06-24 13:08:47.757495 2024-06-24 13:08:41.096151 4 58.26
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.000457 0.000054 0.000000 100/100 2024-06-24 13:08:47.757495 2024-06-24 13:08:41.096151 A al_loss false 0.000457 0.000054 0.000000 100/100 2024-06-24 13:08:48.458839 2024-06-24 13:08:39.537655 A al_jitter false 0.000457 0.000054 0.000000 100/100 2024-06-24 13:08:48.109372 2024-06-24 13:08:39.746776
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-24 13:08:48.109372 2024-06-24 13:08:39.746776 2 34.07 al_loss false 2024-06-24 13:08:48.458839 2024-06-24 13:08:39.537655 4 58.66 al_rtt true 2024-06-24 13:08:51.614561 2024-06-24 13:08:47.757495 5 56.97
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.783461 0.009053 0.000000 100/100 2024-06-24 13:08:51.614561 2024-06-24 13:08:47.757495 A al_loss false 0.783461 0.009053 0.000000 100/100 2024-06-24 13:08:48.458839 2024-06-24 13:08:39.537655 A al_jitter false 0.783461 0.009053 0.000000 100/100 2024-06-24 13:08:48.109372 2024-06-24 13:08:39.746776
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-24 13:08:48.109372 2024-06-24 13:08:39.746776 2 27.58 al_loss false 2024-06-24 13:09:00.142382 2024-06-24 13:08:55.627592 6 62.38 al_rtt false 2024-06-24 13:08:59.630615 2024-06-24 13:08:51.614561 6 62.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.000432 0.000049 0.000000 100/100 2024-06-24 13:08:59.630615 2024-06-24 13:08:51.614561 A al_loss false 0.000432 0.000049 0.000000 100/100 2024-06-24 13:09:00.142382 2024-06-24 13:08:55.627592 A al_jitter false 0.000432 0.000049 0.000000 100/100 2024-06-24 13:08:48.109372 2024-06-24 13:08:39.746776
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-24 13:09:03.661335 2024-06-24 13:08:48.109372 3 30.70 al_loss false 2024-06-24 13:09:00.142382 2024-06-24 13:08:55.627592 6 52.18 al_rtt false 2024-06-24 13:08:59.630615 2024-06-24 13:08:51.614561 6 52.11
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.204478 0.306355 0.000000 100/100 2024-06-24 13:09:06.434979 2024-06-24 13:08:59.630615 A al_loss false 0.204478 0.306355 0.000000 100/100 2024-06-24 13:09:00.142382 2024-06-24 13:08:55.627592 A al_jitter true 0.204478 0.306355 0.000000 100/100 2024-06-24 13:09:03.661335 2024-06-24 13:08:48.109372
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-24 13:09:11.667148 2024-06-24 13:09:03.661335 4 38.96 al_loss false 2024-06-24 13:09:11.602936 2024-06-24 13:09:08.002892 8 53.59 al_rtt false 2024-06-24 13:09:09.806165 2024-06-24 13:09:06.434979 8 52.98
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.000453 0.000053 0.000000 100/100 2024-06-24 13:09:09.806165 2024-06-24 13:09:06.434979 A al_loss false 0.000453 0.000053 0.000000 100/100 2024-06-24 13:09:11.602936 2024-06-24 13:09:08.002892 A al_jitter false 0.000453 0.000053 0.000000 100/100 2024-06-24 13:09:11.667148 2024-06-24 13:09:03.661335
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.