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.000034 0.000006 0.000000 8/100 A al_loss false 0.000034 0.000006 0.000000 8/100 A al_jitter false 0.000034 0.000006 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-12 21:17:41.566872 1 49.64 al_loss true 2024-06-12 21:17:40.982023 1 58.91 al_rtt true 2024-06-12 21:17:42.416254 1 36.29
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.420263 0.459808 42.000000 100/100 2024-06-12 21:17:42.416254 A al_loss true 0.420263 0.459808 42.000000 100/100 2024-06-12 21:17:40.982023 A al_jitter true 0.420263 0.459808 42.000000 100/100 2024-06-12 21:17:41.566872
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-12 21:17:49.532743 2024-06-12 21:17:41.566872 2 65.75 al_loss false 2024-06-12 21:17:49.883677 2024-06-12 21:17:40.982023 2 73.51 al_rtt false 2024-06-12 21:17:48.843574 2024-06-12 21:17:42.416254 2 53.09
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.000439 0.000052 0.000000 100/100 2024-06-12 21:17:48.843574 2024-06-12 21:17:42.416254 A al_loss false 0.000439 0.000052 0.000000 100/100 2024-06-12 21:17:49.883677 2024-06-12 21:17:40.982023 A al_jitter false 0.000439 0.000052 0.000000 100/100 2024-06-12 21:17:49.532743 2024-06-12 21:17:41.566872
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-12 21:17:49.532743 2024-06-12 21:17:41.566872 2 44.17 al_loss false 2024-06-12 21:17:49.883677 2024-06-12 21:17:40.982023 2 49.37 al_rtt true 2024-06-12 21:17:53.238626 2024-06-12 21:17:48.843574 3 53.25
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.801489 0.009073 0.000000 100/100 2024-06-12 21:17:53.238626 2024-06-12 21:17:48.843574 A al_loss false 0.801489 0.009073 0.000000 100/100 2024-06-12 21:17:49.883677 2024-06-12 21:17:40.982023 A al_jitter false 0.801489 0.009073 0.000000 100/100 2024-06-12 21:17:49.532743 2024-06-12 21:17:41.566872
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-12 21:17:49.532743 2024-06-12 21:17:41.566872 2 33.33 al_loss false 2024-06-12 21:18:01.958703 2024-06-12 21:17:57.458000 4 56.09 al_rtt false 2024-06-12 21:18:01.471969 2024-06-12 21:17:53.238626 4 61.36
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.000443 0.000059 0.000000 100/100 2024-06-12 21:18:01.471969 2024-06-12 21:17:53.238626 A al_loss false 0.000443 0.000059 0.000000 100/100 2024-06-12 21:18:01.958703 2024-06-12 21:17:57.458000 A al_jitter false 0.000443 0.000059 0.000000 100/100 2024-06-12 21:17:49.532743 2024-06-12 21:17:41.566872
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-12 21:18:05.949061 2024-06-12 21:17:49.532743 3 34.23 al_loss false 2024-06-12 21:18:01.958703 2024-06-12 21:17:57.458000 4 44.96 al_rtt false 2024-06-12 21:18:01.471969 2024-06-12 21:17:53.238626 4 49.19
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.162963 0.232105 0.000000 100/100 2024-06-12 21:18:01.471969 2024-06-12 21:17:53.238626 A al_loss false 0.162963 0.232105 0.000000 100/100 2024-06-12 21:18:01.958703 2024-06-12 21:17:57.458000 A al_jitter true 0.162963 0.232105 0.000000 100/100 2024-06-12 21:18:05.949061 2024-06-12 21:17:49.532743
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-12 21:18:12.929368 2024-06-12 21:18:05.949061 4 41.98 al_loss false 2024-06-12 21:18:13.583557 2024-06-12 21:18:09.780030 6 48.34 al_rtt false 2024-06-12 21:18:11.076368 2024-06-12 21:18:09.686504 6 45.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.000440 0.000054 0.000000 100/100 2024-06-12 21:18:11.076368 2024-06-12 21:18:09.686504 A al_loss false 0.000440 0.000054 0.000000 100/100 2024-06-12 21:18:13.583557 2024-06-12 21:18:09.780030 A al_jitter false 0.000440 0.000054 0.000000 100/100 2024-06-12 21:18:12.929368 2024-06-12 21:18:05.949061
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.000036 0.000007 0.000000 8/100 A al_loss false 0.000036 0.000007 0.000000 8/100 A al_jitter false 0.000036 0.000007 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-12 21:18:28.333777 1 57.27 al_loss true 2024-06-12 21:18:28.247577 1 58.56 al_rtt true 2024-06-12 21:18:29.787027 1 34.24
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.430242 0.539776 43.000000 100/100 2024-06-12 21:18:29.787027 A al_loss true 0.430242 0.539776 43.000000 100/100 2024-06-12 21:18:28.247577 A al_jitter true 0.430242 0.539776 43.000000 100/100 2024-06-12 21:18:28.333777
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-12 21:18:36.861952 2024-06-12 21:18:28.333777 2 70.55 al_loss false 2024-06-12 21:18:37.263405 2024-06-12 21:18:28.247577 2 74.53 al_rtt false 2024-06-12 21:18:36.315234 2024-06-12 21:18:29.787027 2 53.99
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.000406 0.000057 0.000000 100/100 2024-06-12 21:18:36.315234 2024-06-12 21:18:29.787027 A al_loss false 0.000406 0.000057 0.000000 100/100 2024-06-12 21:18:37.263405 2024-06-12 21:18:28.247577 A al_jitter false 0.000406 0.000057 0.000000 100/100 2024-06-12 21:18:36.861952 2024-06-12 21:18:28.333777
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-12 21:18:36.861952 2024-06-12 21:18:28.333777 2 47.26 al_loss false 2024-06-12 21:18:37.263405 2024-06-12 21:18:28.247577 2 49.94 al_rtt true 2024-06-12 21:18:40.578058 2024-06-12 21:18:36.315234 3 53.36
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.783435 0.009056 0.000000 100/100 2024-06-12 21:18:40.578058 2024-06-12 21:18:36.315234 A al_loss false 0.783435 0.009056 0.000000 100/100 2024-06-12 21:18:37.263405 2024-06-12 21:18:28.247577 A al_jitter false 0.783435 0.009056 0.000000 100/100 2024-06-12 21:18:36.861952 2024-06-12 21:18:28.333777
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-12 21:18:36.861952 2024-06-12 21:18:28.333777 2 35.85 al_loss false 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 4 56.84 al_rtt false 2024-06-12 21:18:48.576121 2024-06-12 21:18:40.578058 4 61.06
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.000418 0.000056 0.000000 100/100 2024-06-12 21:18:48.576121 2024-06-12 21:18:40.578058 A al_loss false 0.000418 0.000056 0.000000 100/100 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 A al_jitter false 0.000418 0.000056 0.000000 100/100 2024-06-12 21:18:36.861952 2024-06-12 21:18:28.333777
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-12 21:18:52.536263 2024-06-12 21:18:36.861952 3 38.45 al_loss false 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 4 45.30 al_rtt true 2024-06-12 21:18:54.468564 2024-06-12 21:18:48.576121 5 52.07
Step 19: Run command service nsm operation show
at DUT0
and check if output matches the following regular expressions:
(al_jitter)\s+(true)Show output
------------------------------------------------------------------------------------------------------------------------------- Operation Alarm Status RTT(s) Jitter(s) Loss(%) Window Toggled Prev-toggled ------------------------------------------------------------------------------------------------------------------------------- A al_rtt true 0.238926 0.299501 0.000000 100/100 2024-06-12 21:18:54.468564 2024-06-12 21:18:48.576121 A al_loss false 0.238926 0.299501 0.000000 100/100 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 A al_jitter true 0.238926 0.299501 0.000000 100/100 2024-06-12 21:18:52.536263 2024-06-12 21:18:36.861952
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-12 21:19:00.002957 2024-06-12 21:18:52.536263 4 44.91 al_loss false 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 4 37.97 al_rtt false 2024-06-12 21:18:58.547175 2024-06-12 21:18:54.468564 6 52.24
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.000438 0.000053 0.000000 100/100 2024-06-12 21:18:58.547175 2024-06-12 21:18:54.468564 A al_loss false 0.000438 0.000053 0.000000 100/100 2024-06-12 21:18:49.076592 2024-06-12 21:18:44.567012 A al_jitter false 0.000438 0.000053 0.000000 100/100 2024-06-12 21:19:00.002957 2024-06-12 21:18:52.536263
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-12 21:19:18.028603 2024-06-12 21:19:12.816901 2 73.86 al_rtt false 2024-06-12 21:19:17.625211 2024-06-12 21:19:13.552966 2 57.74
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.000421 0.000566 0.000000 100/100 2024-06-12 21:19:17.625211 2024-06-12 21:19:13.552966 A al_loss false 0.000421 0.000566 0.000000 100/100 2024-06-12 21:19:18.028603 2024-06-12 21:19:12.816901 A al_jitter false 0.000421 0.000566 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-12 21:19:21.079773 1 26.42 al_loss true 2024-06-12 21:19:20.718981 2024-06-12 21:19:18.028603 3 69.13 al_rtt true 2024-06-12 21:19:22.213491 2024-06-12 21:19:17.625211 3 48.96
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.450230 0.539792 45.000000 100/100 2024-06-12 21:19:22.213491 2024-06-12 21:19:17.625211 A al_loss true 0.450230 0.539792 45.000000 100/100 2024-06-12 21:19:20.718981 2024-06-12 21:19:18.028603 A al_jitter true 0.450230 0.539792 45.000000 100/100 2024-06-12 21:19:21.079773
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-12 21:19:29.640637 2024-06-12 21:19:21.079773 2 45.11 al_loss false 2024-06-12 21:19:29.933158 2024-06-12 21:19:20.718981 4 76.04 al_rtt false 2024-06-12 21:19:28.834358 2024-06-12 21:19:22.213491 4 56.37
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.000428 0.000063 0.000000 100/100 2024-06-12 21:19:28.834358 2024-06-12 21:19:22.213491 A al_loss false 0.000428 0.000063 0.000000 100/100 2024-06-12 21:19:29.933158 2024-06-12 21:19:20.718981 A al_jitter false 0.000428 0.000063 0.000000 100/100 2024-06-12 21:19:29.640637 2024-06-12 21:19:21.079773
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-12 21:19:29.640637 2024-06-12 21:19:21.079773 2 34.34 al_loss false 2024-06-12 21:19:29.933158 2024-06-12 21:19:20.718981 4 57.87 al_rtt true 2024-06-12 21:19:33.251026 2024-06-12 21:19:28.834358 5 55.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.792440 0.009072 0.000000 100/100 2024-06-12 21:19:33.251026 2024-06-12 21:19:28.834358 A al_loss false 0.792440 0.009072 0.000000 100/100 2024-06-12 21:19:29.933158 2024-06-12 21:19:20.718981 A al_jitter false 0.792440 0.009072 0.000000 100/100 2024-06-12 21:19:29.640637 2024-06-12 21:19:21.079773
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-12 21:19:29.640637 2024-06-12 21:19:21.079773 2 27.88 al_loss false 2024-06-12 21:19:41.812986 2024-06-12 21:19:37.297766 6 61.69 al_rtt false 2024-06-12 21:19:41.304371 2024-06-12 21:19:33.251026 6 61.06
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.000430 0.000056 0.000000 100/100 2024-06-12 21:19:41.304371 2024-06-12 21:19:33.251026 A al_loss false 0.000430 0.000056 0.000000 100/100 2024-06-12 21:19:41.812986 2024-06-12 21:19:37.297766 A al_jitter false 0.000430 0.000056 0.000000 100/100 2024-06-12 21:19:29.640637 2024-06-12 21:19:21.079773
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-12 21:19:45.739606 2024-06-12 21:19:29.640637 3 30.62 al_loss false 2024-06-12 21:19:41.812986 2024-06-12 21:19:37.297766 6 51.13 al_rtt true 2024-06-12 21:19:48.455206 2024-06-12 21:19:41.304371 7 50.79
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.224710 0.322514 0.000000 100/100 2024-06-12 21:19:48.455206 2024-06-12 21:19:41.304371 A al_loss false 0.224710 0.322514 0.000000 100/100 2024-06-12 21:19:41.812986 2024-06-12 21:19:37.297766 A al_jitter true 0.224710 0.322514 0.000000 100/100 2024-06-12 21:19:45.739606 2024-06-12 21:19:29.640637
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-12 21:19:53.780050 2024-06-12 21:19:45.739606 4 38.72 al_loss false 2024-06-12 21:19:53.831836 2024-06-12 21:19:49.828570 8 53.52 al_rtt false 2024-06-12 21:19:52.476585 2024-06-12 21:19:48.455206 8 53.11
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.000424 0.000053 0.000000 100/100 2024-06-12 21:19:52.476585 2024-06-12 21:19:48.455206 A al_loss false 0.000424 0.000053 0.000000 100/100 2024-06-12 21:19:53.831836 2024-06-12 21:19:49.828570 A al_jitter false 0.000424 0.000053 0.000000 100/100 2024-06-12 21:19:53.780050 2024-06-12 21:19:45.739606
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-12 21:20:11.446290 2024-06-12 21:20:06.186940 2 73.54 al_rtt false 2024-06-12 21:20:10.993157 2024-06-12 21:20:06.939648 2 56.72
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.000417 0.000059 0.000000 100/100 2024-06-12 21:20:10.993157 2024-06-12 21:20:06.939648 A al_loss false 0.000417 0.000059 0.000000 100/100 2024-06-12 21:20:11.446290 2024-06-12 21:20:06.186940 A al_jitter false 0.000417 0.000059 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-12 21:20:14.849508 1 23.73 al_loss true 2024-06-12 21:20:14.222097 2024-06-12 21:20:11.446290 3 68.47 al_rtt true 2024-06-12 21:20:16.273022 2024-06-12 21:20:10.993157 3 43.72
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.430253 0.389851 43.000000 100/100 2024-06-12 21:20:16.273022 2024-06-12 21:20:10.993157 A al_loss true 0.430253 0.389851 43.000000 100/100 2024-06-12 21:20:14.222097 2024-06-12 21:20:11.446290 A al_jitter true 0.430253 0.389851 43.000000 100/100 2024-06-12 21:20:14.849508
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-12 21:20:22.923128 2024-06-12 21:20:14.849508 2 42.39 al_loss false 2024-06-12 21:20:23.337804 2024-06-12 21:20:14.222097 4 75.44 al_rtt false 2024-06-12 21:20:22.485426 2024-06-12 21:20:16.273022 4 53.89
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.000410 0.000064 0.000000 100/100 2024-06-12 21:20:22.485426 2024-06-12 21:20:16.273022 A al_loss false 0.000410 0.000064 0.000000 100/100 2024-06-12 21:20:23.337804 2024-06-12 21:20:14.222097 A al_jitter false 0.000410 0.000064 0.000000 100/100 2024-06-12 21:20:22.923128 2024-06-12 21:20:14.849508
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-12 21:20:22.923128 2024-06-12 21:20:14.849508 2 31.93 al_loss false 2024-06-12 21:20:23.337804 2024-06-12 21:20:14.222097 4 56.84 al_rtt true 2024-06-12 21:20:26.976970 2024-06-12 21:20:22.485426 5 52.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.783473 0.009054 0.000000 100/100 2024-06-12 21:20:26.976970 2024-06-12 21:20:22.485426 A al_loss false 0.783473 0.009054 0.000000 100/100 2024-06-12 21:20:23.337804 2024-06-12 21:20:14.222097 A al_jitter false 0.783473 0.009054 0.000000 100/100 2024-06-12 21:20:22.923128 2024-06-12 21:20:14.849508
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-12 21:20:22.923128 2024-06-12 21:20:14.849508 2 26.00 al_loss false 2024-06-12 21:20:35.506678 2024-06-12 21:20:30.982641 6 60.84 al_rtt false 2024-06-12 21:20:34.994133 2024-06-12 21:20:26.976970 6 58.86
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.000429 0.000058 0.000000 100/100 2024-06-12 21:20:34.994133 2024-06-12 21:20:26.976970 A al_loss false 0.000429 0.000058 0.000000 100/100 2024-06-12 21:20:35.506678 2024-06-12 21:20:30.982641 A al_jitter false 0.000429 0.000058 0.000000 100/100 2024-06-12 21:20:22.923128 2024-06-12 21:20:14.849508
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-12 21:20:39.587329 2024-06-12 21:20:22.923128 3 27.89 al_loss false 2024-06-12 21:20:35.506678 2024-06-12 21:20:30.982641 6 51.05 al_rtt false 2024-06-12 21:20:34.994133 2024-06-12 21:20:26.976970 6 49.39
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.189186 0.260199 0.000000 100/100 2024-06-12 21:20:34.994133 2024-06-12 21:20:26.976970 A al_loss false 0.189186 0.260199 0.000000 100/100 2024-06-12 21:20:35.506678 2024-06-12 21:20:30.982641 A al_jitter true 0.189186 0.260199 0.000000 100/100 2024-06-12 21:20:39.587329 2024-06-12 21:20:22.923128
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-12 21:20:46.823115 2024-06-12 21:20:39.587329 4 35.78 al_loss false 2024-06-12 21:20:47.236066 2024-06-12 21:20:43.262031 8 53.44 al_rtt false 2024-06-12 21:20:44.927068 2024-06-12 21:20:43.106145 8 46.97
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.000425 0.000055 0.000000 100/100 2024-06-12 21:20:44.927068 2024-06-12 21:20:43.106145 A al_loss false 0.000425 0.000055 0.000000 100/100 2024-06-12 21:20:47.236066 2024-06-12 21:20:43.262031 A al_jitter false 0.000425 0.000055 0.000000 100/100 2024-06-12 21:20:46.823115 2024-06-12 21:20:39.587329
Note
The previous command output should show that the alarms are desactivated, since the network quality is good.