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

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.000038    0.000005    0.000000  9/100
A          al_loss    false   0.000038    0.000005    0.000000  9/100
A          al_jitter  false   0.000038    0.000005    0.000000  9/100

Note

The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.

Note

If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.

Step 5: Set the following configuration in DUT0:

set interfaces ethernet eth0 traffic control out PLOSS
set traffic control PLOSS type network-emulator packet-loss 50

Step 6: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

(al_loss)\s+(true)
Show output
--------------------------------------------------------------------------------------
  Alarm    Status           Toggled            Prev-toggled  Toggle-count  Time up (%)
--------------------------------------------------------------------------------------
al_jitter  true    2024-12-02 21:37:07.647204                           1        49.99
al_loss    true    2024-12-02 21:37:07.107206                           1        58.32
al_rtt     true    2024-12-02 21:37:08.477821                           1        37.28

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.370333    0.469972    37.000000  100/100  2024-12-02 21:37:08.477821
A          al_loss    true    0.370333    0.469972    37.000000  100/100  2024-12-02 21:37:07.107206
A          al_jitter  true    0.370333    0.469972    37.000000  100/100  2024-12-02 21:37:07.647204

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-12-02 21:37:15.999502  2024-12-02 21:37:07.647204             2        66.68
al_loss    false   2024-12-02 21:37:16.442767  2024-12-02 21:37:07.107206             2        74.56
al_rtt     false   2024-12-02 21:37:15.793423  2024-12-02 21:37:08.477821             2        58.44

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000386    0.000041    0.000000  100/100  2024-12-02 21:37:15.793423  2024-12-02 21:37:08.477821
A          al_loss    false   0.000386    0.000041    0.000000  100/100  2024-12-02 21:37:16.442767  2024-12-02 21:37:07.107206
A          al_jitter  false   0.000386    0.000041    0.000000  100/100  2024-12-02 21:37:15.999502  2024-12-02 21:37:07.647204

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-12-02 21:37:15.999502  2024-12-02 21:37:07.647204             2        44.78
al_loss    false   2024-12-02 21:37:16.442767  2024-12-02 21:37:07.107206             2        50.06
al_rtt     true    2024-12-02 21:37:19.845629  2024-12-02 21:37:15.793423             3        56.39

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.801416    0.009057    0.000000  100/100  2024-12-02 21:37:19.845629  2024-12-02 21:37:15.793423
A          al_loss    false   0.801416    0.009057    0.000000  100/100  2024-12-02 21:37:16.442767  2024-12-02 21:37:07.107206
A          al_jitter  false   0.801416    0.009057    0.000000  100/100  2024-12-02 21:37:15.999502  2024-12-02 21:37:07.647204

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-12-02 21:37:15.999502  2024-12-02 21:37:07.647204             2        34.05
al_loss    false   2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990             4        56.47
al_rtt     false   2024-12-02 21:37:28.060339  2024-12-02 21:37:19.845629             4        63.34

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.000409    0.000058    0.000000  100/100  2024-12-02 21:37:28.060339  2024-12-02 21:37:19.845629
A          al_loss    false   0.000409    0.000058    0.000000  100/100  2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990
A          al_jitter  false   0.000409    0.000058    0.000000  100/100  2024-12-02 21:37:15.999502  2024-12-02 21:37:07.647204

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-12-02 21:37:33.122757  2024-12-02 21:37:15.999502             3        33.88
al_loss    false   2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990             4        44.94
al_rtt     false   2024-12-02 21:37:28.060339  2024-12-02 21:37:19.845629             4        50.40

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.171528    0.218997    0.000000  100/100  2024-12-02 21:37:28.060339  2024-12-02 21:37:19.845629
A          al_loss    false   0.171528    0.218997    0.000000  100/100  2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990
A          al_jitter  true    0.171528    0.218997    0.000000  100/100  2024-12-02 21:37:33.122757  2024-12-02 21:37:15.999502

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-12-02 21:37:40.205780  2024-12-02 21:37:33.122757             4        41.83
al_loss    false   2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990             4        37.54
al_rtt     false   2024-12-02 21:37:37.792474  2024-12-02 21:37:35.475223             6        48.38

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.000411    0.000051    0.000000  100/100  2024-12-02 21:37:37.792474  2024-12-02 21:37:35.475223
A          al_loss    false   0.000411    0.000051    0.000000  100/100  2024-12-02 21:37:28.565297  2024-12-02 21:37:24.051990
A          al_jitter  false   0.000411    0.000051    0.000000  100/100  2024-12-02 21:37:40.205780  2024-12-02 21:37:33.122757

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.000070    0.000035    0.000000  10/100
A          al_loss    false   0.000070    0.000035    0.000000  10/100
A          al_jitter  false   0.000070    0.000035    0.000000  10/100

Note

The previous command output should show that the NSM operations have been created successfully and that the alarms are desactivated, since the network quality is good.

Note

If a packet loss rate of 50% is emulated in the network and we wait a reasonable amount of time, the NSM operation will detect said packet loss in the network and will proceed to activate the ‘al_loss’ alarm.

Step 5: Set the following configuration in DUT0:

set interfaces ethernet eth0 traffic control out PLOSS
set traffic control PLOSS type network-emulator packet-loss 50

Step 6: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

(al_loss)\s+(true)
Show output
--------------------------------------------------------------------------------------
  Alarm    Status           Toggled            Prev-toggled  Toggle-count  Time up (%)
--------------------------------------------------------------------------------------
al_jitter  true    2024-12-02 21:37:58.040050                           1        50.81
al_loss    true    2024-12-02 21:37:57.445553                           1        59.64
al_rtt     true    2024-12-02 21:37:59.139817                           1        34.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.510306    0.459902    51.000000  100/100  2024-12-02 21:37:59.139817
A          al_loss    true    0.510306    0.459902    51.000000  100/100  2024-12-02 21:37:57.445553
A          al_jitter  true    0.510306    0.459902    51.000000  100/100  2024-12-02 21:37:58.040050

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-12-02 21:38:06.773772  2024-12-02 21:37:58.040050             2        68.26
al_loss    false   2024-12-02 21:38:06.820879  2024-12-02 21:37:57.445553             2        73.22
al_rtt     false   2024-12-02 21:38:06.018705  2024-12-02 21:37:59.139817             2        53.75

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000684    0.000522    0.000000  100/100  2024-12-02 21:38:06.018705  2024-12-02 21:37:59.139817
A          al_loss    false   0.000684    0.000522    0.000000  100/100  2024-12-02 21:38:06.820879  2024-12-02 21:37:57.445553
A          al_jitter  false   0.000684    0.000522    0.000000  100/100  2024-12-02 21:38:06.773772  2024-12-02 21:37:58.040050

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-12-02 21:38:06.773772  2024-12-02 21:37:58.040050             2        45.82
al_loss    false   2024-12-02 21:38:06.820879  2024-12-02 21:37:57.445553             2        49.16
al_rtt     true    2024-12-02 21:38:10.650083  2024-12-02 21:38:06.018705             3        52.72

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.801526    0.009189    0.000000  100/100  2024-12-02 21:38:10.650083  2024-12-02 21:38:06.018705
A          al_loss    false   0.801526    0.009189    0.000000  100/100  2024-12-02 21:38:06.820879  2024-12-02 21:37:57.445553
A          al_jitter  false   0.801526    0.009189    0.000000  100/100  2024-12-02 21:38:06.773772  2024-12-02 21:37:58.040050

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-12-02 21:38:06.773772  2024-12-02 21:37:58.040050             2        34.68
al_loss    false   2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022             4        55.10
al_rtt     false   2024-12-02 21:38:19.074223  2024-12-02 21:38:10.650083             4        60.76

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.000416    0.000045    0.000000  100/100  2024-12-02 21:38:19.074223  2024-12-02 21:38:10.650083
A          al_loss    false   0.000416    0.000045    0.000000  100/100  2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022
A          al_jitter  false   0.000416    0.000045    0.000000  100/100  2024-12-02 21:38:06.773772  2024-12-02 21:37:58.040050

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-12-02 21:38:23.060021  2024-12-02 21:38:06.773772             3        37.80
al_loss    false   2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022             4        44.12
al_rtt     false   2024-12-02 21:38:19.074223  2024-12-02 21:38:10.650083             4        48.64

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.203105    0.321936    0.000000  100/100  2024-12-02 21:38:26.245412  2024-12-02 21:38:19.074223
A          al_loss    false   0.203105    0.321936    0.000000  100/100  2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022
A          al_jitter  true    0.203105    0.321936    0.000000  100/100  2024-12-02 21:38:23.060021  2024-12-02 21:38:06.773772

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-12-02 21:38:30.981774  2024-12-02 21:38:23.060021             4        44.55
al_loss    false   2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022             4        37.12
al_rtt     false   2024-12-02 21:38:29.285138  2024-12-02 21:38:26.245412             6        49.06

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000435    0.000105    0.000000  100/100  2024-12-02 21:38:29.285138  2024-12-02 21:38:26.245412
A          al_loss    false   0.000435    0.000105    0.000000  100/100  2024-12-02 21:38:19.562661  2024-12-02 21:38:15.057022
A          al_jitter  false   0.000435    0.000105    0.000000  100/100  2024-12-02 21:38:30.981774  2024-12-02 21:38:23.060021

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-12-02 21:38:51.276581  2024-12-02 21:38:46.106439             2        70.91
al_rtt     false   2024-12-02 21:38:50.874151  2024-12-02 21:38:46.851664             2        55.21

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000578    0.000353    0.000000  100/100  2024-12-02 21:38:50.874151  2024-12-02 21:38:46.851664
A          al_loss    false   0.000578    0.000353    0.000000  100/100  2024-12-02 21:38:51.276581  2024-12-02 21:38:46.106439
A          al_jitter  false   0.000578    0.000353    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-12-02 21:38:54.829390                                         1        25.03
al_loss    true    2024-12-02 21:38:54.473539  2024-12-02 21:38:51.276581             3        65.91
al_rtt     true    2024-12-02 21:38:55.983074  2024-12-02 21:38:50.874151             3        46.28

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.500388    0.429863    50.000000  100/100  2024-12-02 21:38:55.983074  2024-12-02 21:38:50.874151
A          al_loss    true    0.500388    0.429863    50.000000  100/100  2024-12-02 21:38:54.473539  2024-12-02 21:38:51.276581
A          al_jitter  true    0.500388    0.429863    50.000000  100/100  2024-12-02 21:38:54.829390

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-12-02 21:39:03.003351  2024-12-02 21:38:54.829390             2        42.16
al_loss    false   2024-12-02 21:39:03.553783  2024-12-02 21:38:54.473539             4        73.53
al_rtt     false   2024-12-02 21:39:02.602215  2024-12-02 21:38:55.983074             4        54.92

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.000389    0.000066    0.000000  100/100  2024-12-02 21:39:02.602215  2024-12-02 21:38:55.983074
A          al_loss    false   0.000389    0.000066    0.000000  100/100  2024-12-02 21:39:03.553783  2024-12-02 21:38:54.473539
A          al_jitter  false   0.000389    0.000066    0.000000  100/100  2024-12-02 21:39:03.003351  2024-12-02 21:38:54.829390

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-12-02 21:39:03.003351  2024-12-02 21:38:54.829390             2        31.95
al_loss    false   2024-12-02 21:39:03.553783  2024-12-02 21:38:54.473539             4        55.71
al_rtt     true    2024-12-02 21:39:07.103182  2024-12-02 21:39:02.602215             5        54.01

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.801510    0.009263    0.000000  100/100  2024-12-02 21:39:07.103182  2024-12-02 21:39:02.602215
A          al_loss    false   0.801510    0.009263    0.000000  100/100  2024-12-02 21:39:03.553783  2024-12-02 21:38:54.473539
A          al_jitter  false   0.801510    0.009263    0.000000  100/100  2024-12-02 21:39:03.003351  2024-12-02 21:38:54.829390

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-12-02 21:39:03.003351  2024-12-02 21:38:54.829390             2        25.94
al_loss    false   2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801             6        59.55
al_rtt     false   2024-12-02 21:39:15.358225  2024-12-02 21:39:07.103182             6        59.99

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.000385    0.000046    0.000000  100/100  2024-12-02 21:39:15.358225  2024-12-02 21:39:07.103182
A          al_loss    false   0.000385    0.000046    0.000000  100/100  2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801
A          al_jitter  false   0.000385    0.000046    0.000000  100/100  2024-12-02 21:39:03.003351  2024-12-02 21:38:54.829390

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-12-02 21:39:19.248563  2024-12-02 21:39:03.003351             3        29.69
al_loss    false   2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801             6        50.00
al_rtt     true    2024-12-02 21:39:21.172257  2024-12-02 21:39:15.358225             7        53.16

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.259369    0.304657    0.000000  100/100  2024-12-02 21:39:21.172257  2024-12-02 21:39:15.358225
A          al_loss    false   0.259369    0.304657    0.000000  100/100  2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801
A          al_jitter  true    0.259369    0.304657    0.000000  100/100  2024-12-02 21:39:19.248563  2024-12-02 21:39:03.003351

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-12-02 21:39:27.084979  2024-12-02 21:39:19.248563             4        36.89
al_loss    false   2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801             6        43.23
al_rtt     false   2024-12-02 21:39:25.398142  2024-12-02 21:39:21.172257             8        53.30

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.000382    0.000047    0.000000  100/100  2024-12-02 21:39:25.398142  2024-12-02 21:39:21.172257
A          al_loss    false   0.000382    0.000047    0.000000  100/100  2024-12-02 21:39:15.860329  2024-12-02 21:39:11.350801
A          al_jitter  false   0.000382    0.000047    0.000000  100/100  2024-12-02 21:39:27.084979  2024-12-02 21:39:19.248563

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-12-02 21:39:45.635279  2024-12-02 21:39:40.612448             2        67.05
al_rtt     false   2024-12-02 21:39:45.344908  2024-12-02 21:39:41.414457             2        52.50

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.000738    0.000447    0.000000  100/100  2024-12-02 21:39:45.344908  2024-12-02 21:39:41.414457
A          al_loss    false   0.000738    0.000447    0.000000  100/100  2024-12-02 21:39:45.635279  2024-12-02 21:39:40.612448
A          al_jitter  false   0.000738    0.000447    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-12-02 21:39:49.610099                                         1        24.34
al_loss    true    2024-12-02 21:39:49.215275  2024-12-02 21:39:45.635279             3        63.68
al_rtt     true    2024-12-02 21:39:50.997158  2024-12-02 21:39:45.344908             3        42.82

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.360367    0.399998    36.000000  100/100  2024-12-02 21:39:50.997158  2024-12-02 21:39:45.344908
A          al_loss    true    0.360367    0.399998    36.000000  100/100  2024-12-02 21:39:49.215275  2024-12-02 21:39:45.635279
A          al_jitter  true    0.360367    0.399998    36.000000  100/100  2024-12-02 21:39:49.610099

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-12-02 21:39:58.104967  2024-12-02 21:39:49.610099             2        42.87
al_loss    false   2024-12-02 21:39:58.492838  2024-12-02 21:39:49.215275             4        72.13
al_rtt     false   2024-12-02 21:39:57.602505  2024-12-02 21:39:50.997158             4        53.16

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.000474    0.000124    0.000000  100/100  2024-12-02 21:39:57.602505  2024-12-02 21:39:50.997158
A          al_loss    false   0.000474    0.000124    0.000000  100/100  2024-12-02 21:39:58.492838  2024-12-02 21:39:49.215275
A          al_jitter  false   0.000474    0.000124    0.000000  100/100  2024-12-02 21:39:58.104967  2024-12-02 21:39:49.610099

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-12-02 21:39:58.104967  2024-12-02 21:39:49.610099             2        32.57
al_loss    false   2024-12-02 21:39:58.492838  2024-12-02 21:39:49.215275             4        54.81
al_rtt     true    2024-12-02 21:40:02.061408  2024-12-02 21:39:57.602505             5        52.74

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.810855    0.009661    0.000000  100/100  2024-12-02 21:40:02.061408  2024-12-02 21:39:57.602505
A          al_loss    false   0.810855    0.009661    0.000000  100/100  2024-12-02 21:39:58.492838  2024-12-02 21:39:49.215275
A          al_jitter  false   0.810855    0.009661    0.000000  100/100  2024-12-02 21:39:58.104967  2024-12-02 21:39:49.610099

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-12-02 21:39:58.104967  2024-12-02 21:39:49.610099             2        26.46
al_loss    false   2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637             6        58.60
al_rtt     false   2024-12-02 21:40:10.386647  2024-12-02 21:40:02.061408             6        58.75

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.000481    0.000182    0.000000  100/100  2024-12-02 21:40:10.386647  2024-12-02 21:40:02.061408
A          al_loss    false   0.000481    0.000182    0.000000  100/100  2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637
A          al_jitter  false   0.000481    0.000182    0.000000  100/100  2024-12-02 21:39:58.104967  2024-12-02 21:39:49.610099

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-12-02 21:40:14.828497  2024-12-02 21:39:58.104967             3        29.21
al_loss    false   2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637             6        49.09
al_rtt     false   2024-12-02 21:40:10.386647  2024-12-02 21:40:02.061408             6        49.21

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.198870    0.286398    0.000000  100/100  2024-12-02 21:40:10.386647  2024-12-02 21:40:02.061408
A          al_loss    false   0.198870    0.286398    0.000000  100/100  2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637
A          al_jitter  true    0.198870    0.286398    0.000000  100/100  2024-12-02 21:40:14.828497  2024-12-02 21:39:58.104967

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-12-02 21:40:22.628399  2024-12-02 21:40:14.828497             4        36.57
al_loss    false   2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637             6        42.22
al_rtt     false   2024-12-02 21:40:20.126793  2024-12-02 21:40:17.966580             8        47.18

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.000427    0.000091    0.000000  100/100  2024-12-02 21:40:20.126793  2024-12-02 21:40:17.966580
A          al_loss    false   0.000427    0.000091    0.000000  100/100  2024-12-02 21:40:10.895232  2024-12-02 21:40:06.378637
A          al_jitter  false   0.000427    0.000091    0.000000  100/100  2024-12-02 21:40:22.628399  2024-12-02 21:40:14.828497

Note

The previous command output should show that the alarms are desactivated, since the network quality is good.