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.000031    0.000007    0.000000  8/100
A          al_loss    false   0.000031    0.000007    0.000000  8/100
A          al_jitter  false   0.000031    0.000007    0.000000  8/100

Note

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

Note

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

Step 5: Set the following configuration in DUT0:

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

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

(al_loss)\s+(true)
Show output
--------------------------------------------------------------------------------------
  Alarm    Status           Toggled            Prev-toggled  Toggle-count  Time up (%)
--------------------------------------------------------------------------------------
al_jitter  true    2024-01-24 23:01:05.518507                           1        51.63
al_loss    true    2024-01-24 23:01:04.918253                           1        61.30
al_rtt     true    2024-01-24 23:01:06.832551                           1        30.74

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.400241    0.519811    40.000000  100/100  2024-01-24 23:01:06.832551
A          al_loss    true    0.400241    0.519811    40.000000  100/100  2024-01-24 23:01:04.918253
A          al_jitter  true    0.400241    0.519811    40.000000  100/100  2024-01-24 23:01:05.518507

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-01-24 23:01:13.936983  2024-01-24 23:01:05.518507             2        69.63
al_loss    false   2024-01-24 23:01:13.887313  2024-01-24 23:01:04.918253             2        74.25
al_rtt     false   2024-01-24 23:01:12.834919  2024-01-24 23:01:06.832551             2        49.67

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000391    0.000047    0.000000  100/100  2024-01-24 23:01:12.834919  2024-01-24 23:01:06.832551
A          al_loss    false   0.000391    0.000047    0.000000  100/100  2024-01-24 23:01:13.887313  2024-01-24 23:01:04.918253
A          al_jitter  false   0.000391    0.000047    0.000000  100/100  2024-01-24 23:01:13.936983  2024-01-24 23:01:05.518507

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-01-24 23:01:13.936983  2024-01-24 23:01:05.518507             2        47.12
al_loss    false   2024-01-24 23:01:13.887313  2024-01-24 23:01:04.918253             2        50.23
al_rtt     true    2024-01-24 23:01:17.244165  2024-01-24 23:01:12.834919             3        50.98

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.783446    0.009099    0.000000  100/100  2024-01-24 23:01:17.244165  2024-01-24 23:01:12.834919
A          al_loss    false   0.783446    0.009099    0.000000  100/100  2024-01-24 23:01:13.887313  2024-01-24 23:01:04.918253
A          al_jitter  false   0.783446    0.009099    0.000000  100/100  2024-01-24 23:01:13.936983  2024-01-24 23:01:05.518507

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-01-24 23:01:13.936983  2024-01-24 23:01:05.518507             2        35.43
al_loss    false   2024-01-24 23:01:25.919004  2024-01-24 23:01:21.412933             4        56.74
al_rtt     false   2024-01-24 23:01:25.418119  2024-01-24 23:01:17.244165             4        59.68

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.000400    0.000061    0.000000  100/100  2024-01-24 23:01:25.418119  2024-01-24 23:01:17.244165
A          al_loss    false   0.000400    0.000061    0.000000  100/100  2024-01-24 23:01:25.919004  2024-01-24 23:01:21.412933
A          al_jitter  false   0.000400    0.000061    0.000000  100/100  2024-01-24 23:01:13.936983  2024-01-24 23:01:05.518507

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-01-24 23:01:29.432562  2024-01-24 23:01:13.936983             3        37.56
al_loss    false   2024-01-24 23:01:25.919004  2024-01-24 23:01:21.412933             4        45.42
al_rtt     false   2024-01-24 23:01:25.418119  2024-01-24 23:01:17.244165             4        47.77

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.192169    0.286042    0.000000  100/100  2024-01-24 23:01:25.418119  2024-01-24 23:01:17.244165
A          al_loss    false   0.192169    0.286042    0.000000  100/100  2024-01-24 23:01:25.919004  2024-01-24 23:01:21.412933
A          al_jitter  true    0.192169    0.286042    0.000000  100/100  2024-01-24 23:01:29.432562  2024-01-24 23:01:13.936983

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-01-24 23:01:37.341857  2024-01-24 23:01:29.432562             4        45.82
al_loss    false   2024-01-24 23:01:37.690824  2024-01-24 23:01:33.681879             6        49.08
al_rtt     false   2024-01-24 23:01:35.892795  2024-01-24 23:01:32.482478             6        49.36

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000412    0.000076    0.000000  100/100  2024-01-24 23:01:35.892795  2024-01-24 23:01:32.482478
A          al_loss    false   0.000412    0.000076    0.000000  100/100  2024-01-24 23:01:37.690824  2024-01-24 23:01:33.681879
A          al_jitter  false   0.000412    0.000076    0.000000  100/100  2024-01-24 23:01:37.341857  2024-01-24 23:01:29.432562

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.000034    0.000008    0.000000  9/100
A          al_loss    false   0.000034    0.000008    0.000000  9/100
A          al_jitter  false   0.000034    0.000008    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-01-24 23:01:53.085389                           1        48.88
al_loss    true    2024-01-24 23:01:52.685018                           1        55.11
al_rtt     true    2024-01-24 23:01:54.139832                           1        32.53

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.410256    0.459815    41.000000  100/100  2024-01-24 23:01:54.139832
A          al_loss    true    0.410256    0.459815    41.000000  100/100  2024-01-24 23:01:52.685018
A          al_jitter  true    0.410256    0.459815    41.000000  100/100  2024-01-24 23:01:53.085389

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-01-24 23:02:01.398877  2024-01-24 23:01:53.085389             2        67.43
al_loss    false   2024-01-24 23:02:01.349343  2024-01-24 23:01:52.685018             2        70.29
al_rtt     false   2024-01-24 23:02:00.518137  2024-01-24 23:01:54.139832             2        51.72

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.000408    0.000055    0.000000  100/100  2024-01-24 23:02:00.518137  2024-01-24 23:01:54.139832
A          al_loss    false   0.000408    0.000055    0.000000  100/100  2024-01-24 23:02:01.349343  2024-01-24 23:01:52.685018
A          al_jitter  false   0.000408    0.000055    0.000000  100/100  2024-01-24 23:02:01.398877  2024-01-24 23:01:53.085389

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-01-24 23:02:01.398877  2024-01-24 23:01:53.085389             2        45.35
al_loss    false   2024-01-24 23:02:01.349343  2024-01-24 23:01:52.685018             2        47.28
al_rtt     true    2024-01-24 23:02:04.963841  2024-01-24 23:02:00.518137             3        51.98

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.792459    0.009095    0.000000  100/100  2024-01-24 23:02:04.963841  2024-01-24 23:02:00.518137
A          al_loss    false   0.792459    0.009095    0.000000  100/100  2024-01-24 23:02:01.349343  2024-01-24 23:01:52.685018
A          al_jitter  false   0.792459    0.009095    0.000000  100/100  2024-01-24 23:02:01.398877  2024-01-24 23:01:53.085389

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-01-24 23:02:01.398877  2024-01-24 23:01:53.085389             2        34.29
al_loss    false   2024-01-24 23:02:13.685059  2024-01-24 23:02:09.162237             4        54.40
al_rtt     false   2024-01-24 23:02:13.178364  2024-01-24 23:02:04.963841             4        60.18

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.000455    0.000120    0.000000  100/100  2024-01-24 23:02:13.178364  2024-01-24 23:02:04.963841
A          al_loss    false   0.000455    0.000120    0.000000  100/100  2024-01-24 23:02:13.685059  2024-01-24 23:02:09.162237
A          al_jitter  false   0.000455    0.000120    0.000000  100/100  2024-01-24 23:02:01.398877  2024-01-24 23:01:53.085389

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-01-24 23:02:16.896571  2024-01-24 23:02:01.398877             3        37.54
al_loss    false   2024-01-24 23:02:13.685059  2024-01-24 23:02:09.162237             4        43.82
al_rtt     true    2024-01-24 23:02:19.086658  2024-01-24 23:02:13.178364             5        51.12

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.247715    0.316489    0.000000  100/100  2024-01-24 23:02:19.086658  2024-01-24 23:02:13.178364
A          al_loss    false   0.247715    0.316489    0.000000  100/100  2024-01-24 23:02:13.685059  2024-01-24 23:02:09.162237
A          al_jitter  true    0.247715    0.316489    0.000000  100/100  2024-01-24 23:02:16.896571  2024-01-24 23:02:01.398877

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-01-24 23:02:24.549668  2024-01-24 23:02:16.896571             4        44.52
al_loss    false   2024-01-24 23:02:25.307842  2024-01-24 23:02:21.457188             6        47.51
al_rtt     false   2024-01-24 23:02:23.250519  2024-01-24 23:02:19.086658             6        52.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.000448    0.000130    0.000000  100/100  2024-01-24 23:02:23.250519  2024-01-24 23:02:19.086658
A          al_loss    false   0.000448    0.000130    0.000000  100/100  2024-01-24 23:02:25.307842  2024-01-24 23:02:21.457188
A          al_jitter  false   0.000448    0.000130    0.000000  100/100  2024-01-24 23:02:24.549668  2024-01-24 23:02:16.896571

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-01-24 23:02:42.069140  2024-01-24 23:02:36.869519             2        72.83
al_rtt     false   2024-01-24 23:02:41.684574  2024-01-24 23:02:37.610651             2        57.03

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.000377    0.000057    0.000000  100/100  2024-01-24 23:02:41.684574  2024-01-24 23:02:37.610651
A          al_loss    false   0.000377    0.000057    0.000000  100/100  2024-01-24 23:02:42.069140  2024-01-24 23:02:36.869519
A          al_jitter  false   0.000377    0.000057    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-01-24 23:02:45.180998                                         1        26.62
al_loss    true    2024-01-24 23:02:45.022714  2024-01-24 23:02:42.069140             3        67.08
al_rtt     true    2024-01-24 23:02:46.935767  2024-01-24 23:02:41.684574             3        44.13

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

(al_loss)\s+(true)
Show output
--------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)    Loss(%)   Window            Toggled                   Prev-toggled
--------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     true    0.400228    0.459847    40.000000  100/100  2024-01-24 23:02:46.935767  2024-01-24 23:02:41.684574
A          al_loss    true    0.400228    0.459847    40.000000  100/100  2024-01-24 23:02:45.022714  2024-01-24 23:02:42.069140
A          al_jitter  true    0.400228    0.459847    40.000000  100/100  2024-01-24 23:02:45.180998

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-01-24 23:02:53.551118  2024-01-24 23:02:45.180998             2        43.49
al_loss    false   2024-01-24 23:02:54.119488  2024-01-24 23:02:45.022714             4        74.31
al_rtt     false   2024-01-24 23:02:52.651896  2024-01-24 23:02:46.935767             4        50.88

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.000401    0.000134    0.000000  100/100  2024-01-24 23:02:52.651896  2024-01-24 23:02:46.935767
A          al_loss    false   0.000401    0.000134    0.000000  100/100  2024-01-24 23:02:54.119488  2024-01-24 23:02:45.022714
A          al_jitter  false   0.000401    0.000134    0.000000  100/100  2024-01-24 23:02:53.551118  2024-01-24 23:02:45.180998

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-01-24 23:02:53.551118  2024-01-24 23:02:45.180998             2        32.87
al_loss    false   2024-01-24 23:02:54.119488  2024-01-24 23:02:45.022714             4        56.17
al_rtt     true    2024-01-24 23:02:57.729328  2024-01-24 23:02:52.651896             5        50.97

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

(al_rtt)\s+(true)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     true    0.810440    0.009089    0.000000  100/100  2024-01-24 23:02:57.729328  2024-01-24 23:02:52.651896
A          al_loss    false   0.810440    0.009089    0.000000  100/100  2024-01-24 23:02:54.119488  2024-01-24 23:02:45.022714
A          al_jitter  false   0.810440    0.009089    0.000000  100/100  2024-01-24 23:02:53.551118  2024-01-24 23:02:45.180998

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-01-24 23:02:53.551118  2024-01-24 23:02:45.180998             2        26.56
al_loss    false   2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211             6        59.68
al_rtt     false   2024-01-24 23:03:06.097600  2024-01-24 23:02:57.729328             6        57.63

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.000451    0.000126    0.000000  100/100  2024-01-24 23:03:06.097600  2024-01-24 23:02:57.729328
A          al_loss    false   0.000451    0.000126    0.000000  100/100  2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211
A          al_jitter  false   0.000451    0.000126    0.000000  100/100  2024-01-24 23:02:53.551118  2024-01-24 23:02:45.180998

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-01-24 23:03:10.004365  2024-01-24 23:02:53.551118             3        30.03
al_loss    false   2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211             6        50.26
al_rtt     true    2024-01-24 23:03:12.222662  2024-01-24 23:03:06.097600             7        50.26

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.222801    0.287793    0.000000  100/100  2024-01-24 23:03:12.222662  2024-01-24 23:03:06.097600
A          al_loss    false   0.222801    0.287793    0.000000  100/100  2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211
A          al_jitter  true    0.222801    0.287793    0.000000  100/100  2024-01-24 23:03:10.004365  2024-01-24 23:02:53.551118

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-01-24 23:03:17.723751  2024-01-24 23:03:10.004365             4        37.12
al_loss    false   2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211             6        43.39
al_rtt     false   2024-01-24 23:03:15.419481  2024-01-24 23:03:12.222662             8        49.27

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.000388    0.000053    0.000000  100/100  2024-01-24 23:03:15.419481  2024-01-24 23:03:12.222662
A          al_loss    false   0.000388    0.000053    0.000000  100/100  2024-01-24 23:03:06.601259  2024-01-24 23:03:02.095211
A          al_jitter  false   0.000388    0.000053    0.000000  100/100  2024-01-24 23:03:17.723751  2024-01-24 23:03:10.004365

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-01-24 23:03:39.517996  2024-01-24 23:03:34.667001             2        65.96
al_rtt     false   2024-01-24 23:03:39.324105  2024-01-24 23:03:35.414662             2        53.10

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.000382    0.000062    0.000000  100/100  2024-01-24 23:03:39.324105  2024-01-24 23:03:35.414662
A          al_loss    false   0.000382    0.000062    0.000000  100/100  2024-01-24 23:03:39.517996  2024-01-24 23:03:34.667001
A          al_jitter  false   0.000382    0.000062    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-01-24 23:03:43.385955                                         1        25.36
al_loss    true    2024-01-24 23:03:43.195300  2024-01-24 23:03:39.517996             3        62.44
al_rtt     true    2024-01-24 23:03:44.589935  2024-01-24 23:03:39.324105             3        45.24

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

(al_loss)\s+(true)
Show output
--------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)    Loss(%)   Window            Toggled                   Prev-toggled
--------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     true    0.450241    0.489843    45.000000  100/100  2024-01-24 23:03:44.589935  2024-01-24 23:03:39.324105
A          al_loss    true    0.450241    0.489843    45.000000  100/100  2024-01-24 23:03:43.195300  2024-01-24 23:03:39.517996
A          al_jitter  true    0.450241    0.489843    45.000000  100/100  2024-01-24 23:03:43.385955

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-01-24 23:03:52.109398  2024-01-24 23:03:43.385955             2        44.32
al_loss    false   2024-01-24 23:03:52.167197  2024-01-24 23:03:43.195300             4        70.25
al_rtt     false   2024-01-24 23:03:51.047454  2024-01-24 23:03:44.589935             4        52.66

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.000407    0.000115    0.000000  100/100  2024-01-24 23:03:51.047454  2024-01-24 23:03:44.589935
A          al_loss    false   0.000407    0.000115    0.000000  100/100  2024-01-24 23:03:52.167197  2024-01-24 23:03:43.195300
A          al_jitter  false   0.000407    0.000115    0.000000  100/100  2024-01-24 23:03:52.109398  2024-01-24 23:03:43.385955

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-01-24 23:03:52.109398  2024-01-24 23:03:43.385955             2        33.90
al_loss    false   2024-01-24 23:03:52.167197  2024-01-24 23:03:43.195300             4        53.73
al_rtt     true    2024-01-24 23:03:55.825492  2024-01-24 23:03:51.047454             5        52.48

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.801467    0.009160    0.000000  100/100  2024-01-24 23:03:55.825492  2024-01-24 23:03:51.047454
A          al_loss    false   0.801467    0.009160    0.000000  100/100  2024-01-24 23:03:52.167197  2024-01-24 23:03:43.195300
A          al_jitter  false   0.801467    0.009160    0.000000  100/100  2024-01-24 23:03:52.109398  2024-01-24 23:03:43.385955

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-01-24 23:03:52.109398  2024-01-24 23:03:43.385955             2        27.57
al_loss    false   2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361             6        57.93
al_rtt     false   2024-01-24 23:04:03.987429  2024-01-24 23:03:55.825492             6        58.54

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.000145    0.000000  100/100  2024-01-24 23:04:03.987429  2024-01-24 23:03:55.825492
A          al_loss    false   0.000416    0.000145    0.000000  100/100  2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361
A          al_jitter  false   0.000416    0.000145    0.000000  100/100  2024-01-24 23:03:52.109398  2024-01-24 23:03:43.385955

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-01-24 23:04:07.709496  2024-01-24 23:03:52.109398             3        31.55
al_loss    false   2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361             6        48.72
al_rtt     true    2024-01-24 23:04:09.927798  2024-01-24 23:04:03.987429             7        51.71

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.296784    0.327167    0.000000  100/100  2024-01-24 23:04:09.927798  2024-01-24 23:04:03.987429
A          al_loss    false   0.296784    0.327167    0.000000  100/100  2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361
A          al_jitter  true    0.296784    0.327167    0.000000  100/100  2024-01-24 23:04:07.709496  2024-01-24 23:03:52.109398

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-01-24 23:04:15.503861  2024-01-24 23:04:07.709496             4        37.99
al_loss    false   2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361             6        42.16
al_rtt     false   2024-01-24 23:04:14.350338  2024-01-24 23:04:09.927798             8        52.79

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.000405    0.000070    0.000000  100/100  2024-01-24 23:04:14.350338  2024-01-24 23:04:09.927798
A          al_loss    false   0.000405    0.000070    0.000000  100/100  2024-01-24 23:04:04.487819  2024-01-24 23:03:59.981361
A          al_jitter  false   0.000405    0.000070    0.000000  100/100  2024-01-24 23:04:15.503861  2024-01-24 23:04:07.709496

Note

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