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.

../../../_images/common3.svg

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.200.50/24
set service nsm operation A alarm al_jitter activate jitter 0.1
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 destination-address 10.215.200.100
set service nsm operation A destination-port 12345
set service nsm operation A interval 0.05
set service nsm operation A local-interface eth0
set service nsm operation A type twamp
set service nsm operation A window 100
set system alarm al_jitter
set system alarm al_loss
set system alarm al_rtt
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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_jitter  false   0.000017    0.000003    0.000000  6/100
A          al_loss    false   0.000017    0.000003    0.000000  6/100
A          al_rtt     false   0.000017    0.000003    0.000000  6/100

Note

The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.

Step 5: Modify the following configuration lines 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-07-30 11:52:05.168313                           1        48.41
al_loss    true    2024-07-30 11:52:04.505004                           1        59.34
al_rtt     true    2024-07-30 11:52:05.960983                           1        35.45

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_jitter  true    0.390283    0.459809    39.000000  100/100  2024-07-30 11:52:05.168313
A          al_loss    true    0.390283    0.459809    39.000000  100/100  2024-07-30 11:52:04.505004
A          al_rtt     true    0.390283    0.459809    39.000000  100/100  2024-07-30 11:52:05.960983

Note

The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).

Note

If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.

Step 8: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:52:12.974742  2024-07-30 11:52:05.168313             2        66.44
al_loss    false   2024-07-30 11:52:13.127276  2024-07-30 11:52:04.505004             2        73.41
al_rtt     false   2024-07-30 11:52:11.724427  2024-07-30 11:52:05.960983             2        49.08

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_jitter  false   0.000325    0.000104    0.000000  100/100  2024-07-30 11:52:12.974742  2024-07-30 11:52:05.168313
A          al_loss    false   0.000325    0.000104    0.000000  100/100  2024-07-30 11:52:13.127276  2024-07-30 11:52:04.505004
A          al_rtt     false   0.000325    0.000104    0.000000  100/100  2024-07-30 11:52:11.724427  2024-07-30 11:52:05.960983

Note

The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.

Step 11: Modify the following configuration lines 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-07-30 11:52:12.974742  2024-07-30 11:52:05.168313             2        44.44
al_loss    false   2024-07-30 11:52:13.127276  2024-07-30 11:52:04.505004             2        49.10
al_rtt     true    2024-07-30 11:52:16.480353  2024-07-30 11:52:11.724427             3        50.54

Step 13: Run command service nsm operation show at DUT0 and check if output matches the following regular expressions:

(al_rtt)\s+(true)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_jitter  false   0.774525    0.009120    0.000000  100/100  2024-07-30 11:52:12.974742  2024-07-30 11:52:05.168313
A          al_loss    false   0.774525    0.009120    0.000000  100/100  2024-07-30 11:52:13.127276  2024-07-30 11:52:04.505004
A          al_rtt     true    0.774525    0.009120    0.000000  100/100  2024-07-30 11:52:16.480353  2024-07-30 11:52:11.724427

Note

The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.

Note

If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.

Step 14: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:52:12.974742  2024-07-30 11:52:05.168313             2        33.53
al_loss    false   2024-07-30 11:52:25.000362  2024-07-30 11:52:20.488411             4        56.42
al_rtt     false   2024-07-30 11:52:24.503584  2024-07-30 11:52:16.480353             4        59.23

Step 16: Run command service nsm operation show at DUT0 and check if output matches the following regular expressions:

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_jitter  false   0.000564    0.000140    0.000000  100/100  2024-07-30 11:52:12.974742  2024-07-30 11:52:05.168313
A          al_loss    false   0.000564    0.000140    0.000000  100/100  2024-07-30 11:52:25.000362  2024-07-30 11:52:20.488411
A          al_rtt     false   0.000564    0.000140    0.000000  100/100  2024-07-30 11:52:24.503584  2024-07-30 11:52:16.480353

Note

The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.

Step 17: Modify the following configuration lines 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-07-30 11:52:28.025098  2024-07-30 11:52:12.974742             3        37.17
al_loss    false   2024-07-30 11:52:25.000362  2024-07-30 11:52:20.488411             4        45.37
al_rtt     false   2024-07-30 11:52:24.503584  2024-07-30 11:52:16.480353             4        47.63

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_jitter  true    0.194887    0.289284    0.000000  100/100  2024-07-30 11:52:28.025098  2024-07-30 11:52:12.974742
A          al_loss    false   0.194887    0.289284    0.000000  100/100  2024-07-30 11:52:25.000362  2024-07-30 11:52:20.488411
A          al_rtt     false   0.194887    0.289284    0.000000  100/100  2024-07-30 11:52:24.503584  2024-07-30 11:52:16.480353

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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.

Step 20: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:52:35.749181  2024-07-30 11:52:28.025098             4        44.97
al_loss    false   2024-07-30 11:52:36.184945  2024-07-30 11:52:32.375876             6        49.06
al_rtt     false   2024-07-30 11:52:33.781041  2024-07-30 11:52:31.076365             6        47.76

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_jitter  false   0.000670    0.000157    0.000000  100/100  2024-07-30 11:52:35.749181  2024-07-30 11:52:28.025098
A          al_loss    false   0.000670    0.000157    0.000000  100/100  2024-07-30 11:52:36.184945  2024-07-30 11:52:32.375876
A          al_rtt     false   0.000670    0.000157    0.000000  100/100  2024-07-30 11:52:33.781041  2024-07-30 11:52:31.076365

Note

The previous command output should show the alarms are deactivated (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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.200.50/24
set service dns static host-name testnsm alias test.nsm.fqdn
set service dns static host-name testnsm inet 10.215.200.100
set service nsm operation A alarm al_jitter activate jitter 0.1
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 destination-address test.nsm.fqdn
set service nsm operation A destination-port 12345
set service nsm operation A interval 0.05
set service nsm operation A local-interface eth0
set service nsm operation A type twamp
set service nsm operation A window 100
set system alarm al_jitter
set system alarm al_loss
set system alarm al_rtt
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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_jitter  false   0.000030    0.000009    0.000000  6/100
A          al_loss    false   0.000030    0.000009    0.000000  6/100
A          al_rtt     false   0.000030    0.000009    0.000000  6/100

Note

The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.

Step 5: Modify the following configuration lines 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-07-30 11:52:46.624470                           1        52.11
al_loss    true    2024-07-30 11:52:46.031518                           1        61.93
al_rtt     true    2024-07-30 11:52:47.372544                           1        39.64

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_jitter  true    0.410396    0.459697    41.000000  99/100  2024-07-30 11:52:46.624470
A          al_loss    true    0.410396    0.459697    41.000000  99/100  2024-07-30 11:52:46.031518
A          al_rtt     true    0.410396    0.459697    41.000000  99/100  2024-07-30 11:52:47.372544

Note

The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).

Note

If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.

Step 8: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:52:54.705743  2024-07-30 11:52:46.624470             2        69.53
al_loss    false   2024-07-30 11:52:54.852789  2024-07-30 11:52:46.031518             2        75.87
al_rtt     false   2024-07-30 11:52:54.117641  2024-07-30 11:52:47.372544             2        58.02

Step 10: Run command service nsm operation show at DUT0 and check if output matches the following regular expressions:

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_jitter  false   0.000746    0.000152    0.000000  100/100  2024-07-30 11:52:54.705743  2024-07-30 11:52:46.624470
A          al_loss    false   0.000746    0.000152    0.000000  100/100  2024-07-30 11:52:54.852789  2024-07-30 11:52:46.031518
A          al_rtt     false   0.000746    0.000152    0.000000  100/100  2024-07-30 11:52:54.117641  2024-07-30 11:52:47.372544

Note

The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.

Step 11: Modify the following configuration lines 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-07-30 11:52:54.705743  2024-07-30 11:52:46.624470             2        46.56
al_loss    false   2024-07-30 11:52:54.852789  2024-07-30 11:52:46.031518             2        50.81
al_rtt     true    2024-07-30 11:52:58.008945  2024-07-30 11:52:54.117641             3        56.70

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_jitter  false   0.765728    0.009162    0.000000  100/100  2024-07-30 11:52:54.705743  2024-07-30 11:52:46.624470
A          al_loss    false   0.765728    0.009162    0.000000  100/100  2024-07-30 11:52:54.852789  2024-07-30 11:52:46.031518
A          al_rtt     true    0.765728    0.009162    0.000000  100/100  2024-07-30 11:52:58.008945  2024-07-30 11:52:54.117641

Note

The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.

Note

If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.

Step 14: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:52:54.705743  2024-07-30 11:52:46.624470             2        35.19
al_loss    false   2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307             4        58.04
al_rtt     false   2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945             4        63.64

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_jitter  false   0.000498    0.000116    0.000000  100/100  2024-07-30 11:52:54.705743  2024-07-30 11:52:46.624470
A          al_loss    false   0.000498    0.000116    0.000000  100/100  2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307
A          al_rtt     false   0.000498    0.000116    0.000000  100/100  2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945

Note

The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.

Step 17: Modify the following configuration lines 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-07-30 11:53:10.520510  2024-07-30 11:52:54.705743             3        34.83
al_loss    false   2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307             4        46.47
al_rtt     false   2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945             4        50.96

Step 19: Run command service nsm operation show at DUT0 and check if output matches the following regular expressions:

(al_jitter)\s+(true)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_jitter  true    0.137284    0.189102    0.000000  100/100  2024-07-30 11:53:10.520510  2024-07-30 11:52:54.705743
A          al_loss    false   0.137284    0.189102    0.000000  100/100  2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307
A          al_rtt     false   0.137284    0.189102    0.000000  100/100  2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945

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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.

Step 20: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:53:17.110178  2024-07-30 11:53:10.520510             4        42.79
al_loss    false   2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307             4        38.87
al_rtt     false   2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945             4        42.62

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_jitter  false   0.000654    0.000124    0.000000  100/100  2024-07-30 11:53:17.110178  2024-07-30 11:53:10.520510
A          al_loss    false   0.000654    0.000124    0.000000  100/100  2024-07-30 11:53:06.386970  2024-07-30 11:53:01.878307
A          al_rtt     false   0.000654    0.000124    0.000000  100/100  2024-07-30 11:53:05.879751  2024-07-30 11:52:58.008945

Note

The previous command output should show the alarms are deactivated (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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '10::2/64'
set service nsm operation A alarm al_jitter activate jitter 0.1
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 destination-address '10::3'
set service nsm operation A destination-port 12345
set service nsm operation A interval 0.05
set service nsm operation A local-interface eth0
set service nsm operation A type twamp
set service nsm operation A window 100
set system alarm al_jitter
set system alarm al_loss
set system alarm al_rtt
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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-07-30 11:53:30.616956  2024-07-30 11:53:26.053873             2        68.05
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_jitter  false   0.000432    0.000135    0.000000  100/100
A          al_loss    false   0.000432    0.000135    0.000000  100/100  2024-07-30 11:53:30.616956  2024-07-30 11:53:26.053873
A          al_rtt     false   0.000432    0.000135    0.000000  100/100

Note

The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.

Step 5: Modify the following configuration lines 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-07-30 11:53:33.774794                                         1        26.69
al_loss    true    2024-07-30 11:53:33.725736  2024-07-30 11:53:30.616956             3        63.95
al_rtt     true    2024-07-30 11:53:35.625582                                         1        11.75

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_jitter  true    0.380354    0.479743    38.000000  100/100  2024-07-30 11:53:33.774794
A          al_loss    true    0.380354    0.479743    38.000000  100/100  2024-07-30 11:53:33.725736  2024-07-30 11:53:30.616956
A          al_rtt     true    0.380354    0.479743    38.000000  100/100  2024-07-30 11:53:35.625582

Note

The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).

Note

If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.

Step 8: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:53:41.954298  2024-07-30 11:53:33.774794             2        45.52
al_loss    false   2024-07-30 11:53:42.349918  2024-07-30 11:53:33.725736             4        73.40
al_rtt     false   2024-07-30 11:53:41.545137  2024-07-30 11:53:35.625582             2        32.96

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_jitter  false   0.000501    0.000133    0.000000  100/100  2024-07-30 11:53:41.954298  2024-07-30 11:53:33.774794
A          al_loss    false   0.000501    0.000133    0.000000  100/100  2024-07-30 11:53:42.349918  2024-07-30 11:53:33.725736
A          al_rtt     false   0.000501    0.000133    0.000000  100/100  2024-07-30 11:53:41.545137  2024-07-30 11:53:35.625582

Note

The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.

Step 11: Modify the following configuration lines 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-07-30 11:53:41.954298  2024-07-30 11:53:33.774794             2        34.53
al_loss    false   2024-07-30 11:53:42.349918  2024-07-30 11:53:33.725736             4        55.68
al_rtt     true    2024-07-30 11:53:45.267254  2024-07-30 11:53:41.545137             3        38.16

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_jitter  false   0.774587    0.009205    0.000000  100/100  2024-07-30 11:53:41.954298  2024-07-30 11:53:33.774794
A          al_loss    false   0.774587    0.009205    0.000000  100/100  2024-07-30 11:53:42.349918  2024-07-30 11:53:33.725736
A          al_rtt     true    0.774587    0.009205    0.000000  100/100  2024-07-30 11:53:45.267254  2024-07-30 11:53:41.545137

Note

The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.

Note

If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.

Step 14: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:53:41.954298  2024-07-30 11:53:33.774794             2        27.93
al_loss    false   2024-07-30 11:53:53.677932  2024-07-30 11:53:49.165576             6        60.45
al_rtt     false   2024-07-30 11:53:53.177589  2024-07-30 11:53:45.267254             4        47.24

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_jitter  false   0.000612    0.000143    0.000000  100/100  2024-07-30 11:53:41.954298  2024-07-30 11:53:33.774794
A          al_loss    false   0.000612    0.000143    0.000000  100/100  2024-07-30 11:53:53.677932  2024-07-30 11:53:49.165576
A          al_rtt     false   0.000612    0.000143    0.000000  100/100  2024-07-30 11:53:53.177589  2024-07-30 11:53:45.267254

Note

The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.

Step 17: Modify the following configuration lines 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-07-30 11:53:56.503841  2024-07-30 11:53:41.954298             3        32.42
al_loss    false   2024-07-30 11:53:53.677932  2024-07-30 11:53:49.165576             6        50.63
al_rtt     true    2024-07-30 11:53:59.226083  2024-07-30 11:53:53.177589             5        40.81

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_jitter  true    0.230509    0.291844    0.000000  100/100  2024-07-30 11:53:56.503841  2024-07-30 11:53:41.954298
A          al_loss    false   0.230509    0.291844    0.000000  100/100  2024-07-30 11:53:53.677932  2024-07-30 11:53:49.165576
A          al_rtt     true    0.230509    0.291844    0.000000  100/100  2024-07-30 11:53:59.226083  2024-07-30 11:53:53.177589

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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.

Step 20: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:54:04.456057  2024-07-30 11:53:56.503841             4        39.75
al_loss    false   2024-07-30 11:54:04.807454  2024-07-30 11:54:01.099636             8        52.76
al_rtt     false   2024-07-30 11:54:02.554177  2024-07-30 11:53:59.226083             6        42.29

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_jitter  false   0.000601    0.000114    0.000000  100/100  2024-07-30 11:54:04.456057  2024-07-30 11:53:56.503841
A          al_loss    false   0.000601    0.000114    0.000000  100/100  2024-07-30 11:54:04.807454  2024-07-30 11:54:01.099636
A          al_rtt     false   0.000601    0.000114    0.000000  100/100  2024-07-30 11:54:02.554177  2024-07-30 11:53:59.226083

Note

The previous command output should show the alarms are deactivated (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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '10::2/64'
set service dns static host-name testnsm alias test.nsm.fqdn
set service dns static host-name testnsm inet '10::3'
set service nsm operation A alarm al_jitter activate jitter 0.1
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 destination-address test.nsm.fqdn
set service nsm operation A destination-port 12345
set service nsm operation A interval 0.05
set service nsm operation A local-interface eth0
set service nsm operation A type twamp
set service nsm operation A window 100
set system alarm al_jitter
set system alarm al_loss
set system alarm al_rtt
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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-07-30 11:54:18.058362  2024-07-30 11:54:13.177461             2        72.19
al_rtt     false   2024-07-30 11:54:17.875253  2024-07-30 11:54:13.927480             2        58.41

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_jitter  false   0.014110    0.004087    0.000000  100/100
A          al_loss    false   0.014110    0.004087    0.000000  100/100  2024-07-30 11:54:18.058362  2024-07-30 11:54:13.177461
A          al_rtt     false   0.014110    0.004087    0.000000  100/100  2024-07-30 11:54:17.875253  2024-07-30 11:54:13.927480

Note

The previous command output should show that NSM operations have been successfully created and that 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, NSM operation will detect this packet loss in the network and trigger the ‘al_loss’ alarm.

Step 5: Modify the following configuration lines 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-07-30 11:54:21.204032                                         1        25.03
al_loss    true    2024-07-30 11:54:20.554540  2024-07-30 11:54:18.058362             3        69.36
al_rtt     true    2024-07-30 11:54:22.158522  2024-07-30 11:54:17.875253             3        49.03

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_jitter  true    0.410324    0.479747    41.000000  100/100  2024-07-30 11:54:21.204032
A          al_loss    true    0.410324    0.479747    41.000000  100/100  2024-07-30 11:54:20.554540  2024-07-30 11:54:18.058362
A          al_rtt     true    0.410324    0.479747    41.000000  100/100  2024-07-30 11:54:22.158522  2024-07-30 11:54:17.875253

Note

The previous command output should show that the ‘al_loss’ alarm is activated, since packet losses on the network are greater than the configured threshold. In this scenario, the delay and jitter values are also affected, meaning the ‘al_rtt’ and ‘al_jitter’ alarms also go off (since their configured threshold is also exceeded).

Note

If the packet loss emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect packets are no longer being lost and will deactivate the ‘al_loss’ alarm.

Step 8: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:54:29.144748  2024-07-30 11:54:21.204032             2        43.93
al_loss    false   2024-07-30 11:54:29.393248  2024-07-30 11:54:20.554540             4        75.87
al_rtt     false   2024-07-30 11:54:28.032273  2024-07-30 11:54:22.158522             4        54.33

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_jitter  false   0.000714    0.000150    0.000000  100/100  2024-07-30 11:54:29.144748  2024-07-30 11:54:21.204032
A          al_loss    false   0.000714    0.000150    0.000000  100/100  2024-07-30 11:54:29.393248  2024-07-30 11:54:20.554540
A          al_rtt     false   0.000714    0.000150    0.000000  100/100  2024-07-30 11:54:28.032273  2024-07-30 11:54:22.158522

Note

The previous command output should show that alarms are deactivated (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, NSM operation will detect a delay in the network and will trigger the ‘al_rtt’ alarm.

Step 11: Modify the following configuration lines 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-07-30 11:54:29.144748  2024-07-30 11:54:21.204032             2        33.41
al_loss    false   2024-07-30 11:54:29.393248  2024-07-30 11:54:20.554540             4        57.71
al_rtt     true    2024-07-30 11:54:32.539571  2024-07-30 11:54:28.032273             5        54.31

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_jitter  false   0.765783    0.009148    0.000000  100/100  2024-07-30 11:54:29.144748  2024-07-30 11:54:21.204032
A          al_loss    false   0.765783    0.009148    0.000000  100/100  2024-07-30 11:54:29.393248  2024-07-30 11:54:20.554540
A          al_rtt     true    0.765783    0.009148    0.000000  100/100  2024-07-30 11:54:32.539571  2024-07-30 11:54:28.032273

Note

The previous command output should show that the ‘al_rtt’ alarm is activated, since delays on the network are greater than the configured threshold.

Note

If the additional delay emulated in the network is removed and we wait a reasonable amount of time, NSM operation will detect significant delays no longer exist and will deactivate the ‘al_rtt’ alarm.

Step 14: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:54:29.144748  2024-07-30 11:54:21.204032             2        27.03
al_loss    false   2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357             6        62.07
al_rtt     false   2024-07-30 11:54:40.463289  2024-07-30 11:54:32.539571             6        60.40

Step 16: Run command service nsm operation show at DUT0 and check if output matches the following regular expressions:

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_jitter  false   0.000584    0.000142    0.000000  100/100  2024-07-30 11:54:29.144748  2024-07-30 11:54:21.204032
A          al_loss    false   0.000584    0.000142    0.000000  100/100  2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357
A          al_rtt     false   0.000584    0.000142    0.000000  100/100  2024-07-30 11:54:40.463289  2024-07-30 11:54:32.539571

Note

The previous command output should show the alarms are deactivated (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, NSM operation will detect said jitter in the network and will trigger the ‘al_jitter’ alarm.

Step 17: Modify the following configuration lines 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-07-30 11:54:44.057858  2024-07-30 11:54:29.144748             3        30.86
al_loss    false   2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357             6        51.97
al_rtt     true    2024-07-30 11:54:46.761641  2024-07-30 11:54:40.463289             7        51.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_jitter  true    0.204828    0.311158    0.000000  100/100  2024-07-30 11:54:44.057858  2024-07-30 11:54:29.144748
A          al_loss    false   0.204828    0.311158    0.000000  100/100  2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357
A          al_rtt     true    0.204828    0.311158    0.000000  100/100  2024-07-30 11:54:46.761641  2024-07-30 11:54:40.463289

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, NSM operation will no longer detect a jitter and will deactivate the ‘al_jitter’ alarm.

Step 20: Modify the following configuration lines in DUT0:

delete interfaces ethernet eth0 traffic

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-07-30 11:54:51.690378  2024-07-30 11:54:44.057858             4        38.23
al_loss    false   2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357             6        44.76
al_rtt     false   2024-07-30 11:54:49.737317  2024-07-30 11:54:46.761641             8        50.86

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_jitter  false   0.000426    0.000117    0.000000  100/100  2024-07-30 11:54:51.690378  2024-07-30 11:54:44.057858
A          al_loss    false   0.000426    0.000117    0.000000  100/100  2024-07-30 11:54:40.970681  2024-07-30 11:54:36.453357
A          al_rtt     false   0.000426    0.000117    0.000000  100/100  2024-07-30 11:54:49.737317  2024-07-30 11:54:46.761641

Note

The previous command output should show the alarms are deactivated (since the network quality is good).