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.000056    0.000014    0.000000  11/100
A          al_loss    false   0.000056    0.000014    0.000000  11/100
A          al_jitter  false   0.000056    0.000014    0.000000  11/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-04-09 09:31:43.702285                           1        49.55
al_loss    true    2024-04-09 09:31:43.009954                           1        59.90
al_rtt     true    2024-04-09 09:31:44.454851                           1        38.39

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.490269    0.439909    49.000000  100/100  2024-04-09 09:31:44.454851
A          al_loss    true    0.490269    0.439909    49.000000  100/100  2024-04-09 09:31:43.009954
A          al_jitter  true    0.490269    0.439909    49.000000  100/100  2024-04-09 09:31:43.702285

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-04-09 09:31:52.021946  2024-04-09 09:31:43.702285             2        65.72
al_loss    false   2024-04-09 09:31:52.420635  2024-04-09 09:31:43.009954             2        74.36
al_rtt     false   2024-04-09 09:31:51.337381  2024-04-09 09:31:44.454851             2        54.40

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.000448    0.000080    0.000000  100/100  2024-04-09 09:31:51.337381  2024-04-09 09:31:44.454851
A          al_loss    false   0.000448    0.000080    0.000000  100/100  2024-04-09 09:31:52.420635  2024-04-09 09:31:43.009954
A          al_jitter  false   0.000448    0.000080    0.000000  100/100  2024-04-09 09:31:52.021946  2024-04-09 09:31:43.702285

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-04-09 09:31:52.021946  2024-04-09 09:31:43.702285             2        44.12
al_loss    false   2024-04-09 09:31:52.420635  2024-04-09 09:31:43.009954             2        49.92
al_rtt     true    2024-04-09 09:31:56.025766  2024-04-09 09:31:51.337381             3        53.20

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.009067    0.000000  100/100  2024-04-09 09:31:56.025766  2024-04-09 09:31:51.337381
A          al_loss    false   0.801467    0.009067    0.000000  100/100  2024-04-09 09:31:52.420635  2024-04-09 09:31:43.009954
A          al_jitter  false   0.801467    0.009067    0.000000  100/100  2024-04-09 09:31:52.021946  2024-04-09 09:31:43.702285

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-04-09 09:31:52.021946  2024-04-09 09:31:43.702285             2        33.43
al_loss    false   2024-04-09 09:32:04.804336  2024-04-09 09:32:00.283386             4        55.99
al_rtt     false   2024-04-09 09:32:04.304467  2024-04-09 09:31:56.025766             4        60.94

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.000487    0.000160    0.000000  100/100  2024-04-09 09:32:04.304467  2024-04-09 09:31:56.025766
A          al_loss    false   0.000487    0.000160    0.000000  100/100  2024-04-09 09:32:04.804336  2024-04-09 09:32:00.283386
A          al_jitter  false   0.000487    0.000160    0.000000  100/100  2024-04-09 09:31:52.021946  2024-04-09 09:31:43.702285

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-04-09 09:32:08.819110  2024-04-09 09:31:52.021946             3        35.61
al_loss    false   2024-04-09 09:32:04.804336  2024-04-09 09:32:00.283386             4        44.45
al_rtt     false   2024-04-09 09:32:04.304467  2024-04-09 09:31:56.025766             4        48.38

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.223138    0.272681    0.000000  100/100  2024-04-09 09:32:11.745789  2024-04-09 09:32:04.304467
A          al_loss    false   0.223138    0.272681    0.000000  100/100  2024-04-09 09:32:04.804336  2024-04-09 09:32:00.283386
A          al_jitter  true    0.223138    0.272681    0.000000  100/100  2024-04-09 09:32:08.819110  2024-04-09 09:31:52.021946

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-04-09 09:32:17.074349  2024-04-09 09:32:08.819110             4        43.71
al_loss    false   2024-04-09 09:32:17.603195  2024-04-09 09:32:13.555823             6        47.41
al_rtt     false   2024-04-09 09:32:15.877106  2024-04-09 09:32:11.745789             6        50.88

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.000562    0.000402    0.000000  100/100  2024-04-09 09:32:15.877106  2024-04-09 09:32:11.745789
A          al_loss    false   0.000562    0.000402    0.000000  100/100  2024-04-09 09:32:17.603195  2024-04-09 09:32:13.555823
A          al_jitter  false   0.000562    0.000402    0.000000  100/100  2024-04-09 09:32:17.074349  2024-04-09 09:32:08.819110

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.000403    0.000345    0.000000  13/100
A          al_loss    false   0.000403    0.000345    0.000000  13/100
A          al_jitter  false   0.000403    0.000345    0.000000  13/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-04-09 09:32:35.251029                           1        43.84
al_loss    true    2024-04-09 09:32:34.433212                           1        55.33
al_rtt     true    2024-04-09 09:32:36.096941                           1        31.63

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.390513    0.399906    39.000000  100/100  2024-04-09 09:32:36.096941
A          al_loss    true    0.390513    0.399906    39.000000  100/100  2024-04-09 09:32:34.433212
A          al_jitter  true    0.390513    0.399906    39.000000  100/100  2024-04-09 09:32:35.251029

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-04-09 09:32:43.580297  2024-04-09 09:32:35.251029             2        63.21
al_loss    false   2024-04-09 09:32:44.039440  2024-04-09 09:32:34.433212             2        72.72
al_rtt     false   2024-04-09 09:32:43.190607  2024-04-09 09:32:36.096941             2        53.79

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.000470    0.000109    0.000000  100/100  2024-04-09 09:32:43.190607  2024-04-09 09:32:36.096941
A          al_loss    false   0.000470    0.000109    0.000000  100/100  2024-04-09 09:32:44.039440  2024-04-09 09:32:34.433212
A          al_jitter  false   0.000470    0.000109    0.000000  100/100  2024-04-09 09:32:43.580297  2024-04-09 09:32:35.251029

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-04-09 09:32:43.580297  2024-04-09 09:32:35.251029             2        43.25
al_loss    false   2024-04-09 09:32:44.039440  2024-04-09 09:32:34.433212             2        49.79
al_rtt     true    2024-04-09 09:32:47.474326  2024-04-09 09:32:43.190607             3        53.05

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.783458    0.009122    0.000000  100/100  2024-04-09 09:32:47.474326  2024-04-09 09:32:43.190607
A          al_loss    false   0.783458    0.009122    0.000000  100/100  2024-04-09 09:32:44.039440  2024-04-09 09:32:34.433212
A          al_jitter  false   0.783458    0.009122    0.000000  100/100  2024-04-09 09:32:43.580297  2024-04-09 09:32:35.251029

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-04-09 09:32:43.580297  2024-04-09 09:32:35.251029             2        32.97
al_loss    false   2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507             4        55.82
al_rtt     false   2024-04-09 09:32:55.715030  2024-04-09 09:32:47.474326             4        60.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.000423    0.000059    0.000000  100/100  2024-04-09 09:32:55.715030  2024-04-09 09:32:47.474326
A          al_loss    false   0.000423    0.000059    0.000000  100/100  2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507
A          al_jitter  false   0.000423    0.000059    0.000000  100/100  2024-04-09 09:32:43.580297  2024-04-09 09:32:35.251029

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-04-09 09:33:00.289141  2024-04-09 09:32:43.580297             3        34.42
al_loss    false   2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507             4        44.87
al_rtt     false   2024-04-09 09:32:55.715030  2024-04-09 09:32:47.474326             4        48.76

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.136907    0.228608    0.000000  100/100  2024-04-09 09:32:55.715030  2024-04-09 09:32:47.474326
A          al_loss    false   0.136907    0.228608    0.000000  100/100  2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507
A          al_jitter  true    0.136907    0.228608    0.000000  100/100  2024-04-09 09:33:00.289141  2024-04-09 09:32:43.580297

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-04-09 09:33:07.809885  2024-04-09 09:33:00.289141             4        42.40
al_loss    false   2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507             4        37.74
al_rtt     false   2024-04-09 09:33:05.700064  2024-04-09 09:33:04.270960             6        44.83

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.000420    0.000071    0.000000  100/100  2024-04-09 09:33:05.700064  2024-04-09 09:33:04.270960
A          al_loss    false   0.000420    0.000071    0.000000  100/100  2024-04-09 09:32:56.198632  2024-04-09 09:32:51.684507
A          al_jitter  false   0.000420    0.000071    0.000000  100/100  2024-04-09 09:33:07.809885  2024-04-09 09:33:00.289141

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-04-09 09:33:29.921509  2024-04-09 09:33:25.069156             2        66.19
al_rtt     false   2024-04-09 09:33:29.732987  2024-04-09 09:33:25.805846             2        53.64

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.000815    0.000821    0.000000  100/100  2024-04-09 09:33:29.732987  2024-04-09 09:33:25.805846
A          al_loss    false   0.000815    0.000821    0.000000  100/100  2024-04-09 09:33:29.921509  2024-04-09 09:33:25.069156
A          al_jitter  false   0.000815    0.000821    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-04-09 09:33:34.280073                                         1        22.59
al_loss    true    2024-04-09 09:33:33.859526  2024-04-09 09:33:29.921509             3        60.87
al_rtt     true    2024-04-09 09:33:35.035414  2024-04-09 09:33:29.732987             3        45.65

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.430546    0.359975    43.000000  100/100  2024-04-09 09:33:35.035414  2024-04-09 09:33:29.732987
A          al_loss    true    0.430546    0.359975    43.000000  100/100  2024-04-09 09:33:33.859526  2024-04-09 09:33:29.921509
A          al_jitter  true    0.430546    0.359975    43.000000  100/100  2024-04-09 09:33:34.280073

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-04-09 09:33:42.581510  2024-04-09 09:33:34.280073             2        41.39
al_loss    false   2024-04-09 09:33:42.640167  2024-04-09 09:33:33.859526             4        68.00
al_rtt     false   2024-04-09 09:33:41.940075  2024-04-09 09:33:35.035414             4        54.06

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.001006    0.000894    0.000000  100/100  2024-04-09 09:33:41.940075  2024-04-09 09:33:35.035414
A          al_loss    false   0.001006    0.000894    0.000000  100/100  2024-04-09 09:33:42.640167  2024-04-09 09:33:33.859526
A          al_jitter  false   0.001006    0.000894    0.000000  100/100  2024-04-09 09:33:42.581510  2024-04-09 09:33:34.280073

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-04-09 09:33:42.581510  2024-04-09 09:33:34.280073             2        31.52
al_loss    false   2024-04-09 09:33:42.640167  2024-04-09 09:33:33.859526             4        51.77
al_rtt     true    2024-04-09 09:33:46.762642  2024-04-09 09:33:41.940075             5        53.25

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

(al_rtt)\s+(true)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     true    0.801609    0.009403    0.000000  100/100  2024-04-09 09:33:46.762642  2024-04-09 09:33:41.940075
A          al_loss    false   0.801609    0.009403    0.000000  100/100  2024-04-09 09:33:42.640167  2024-04-09 09:33:33.859526
A          al_jitter  false   0.801609    0.009403    0.000000  100/100  2024-04-09 09:33:42.581510  2024-04-09 09:33:34.280073

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-04-09 09:33:42.581510  2024-04-09 09:33:34.280073             2        25.72
al_loss    false   2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165             6        56.24
al_rtt     false   2024-04-09 09:33:55.040878  2024-04-09 09:33:46.762642             6        59.24

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

(al_loss)\s+(false)
(al_rtt)\s+(false)
(al_jitter)\s+(false)
Show output
-------------------------------------------------------------------------------------------------------------------------------
Operation    Alarm    Status    RTT(s)    Jitter(s)   Loss(%)   Window            Toggled                   Prev-toggled
-------------------------------------------------------------------------------------------------------------------------------
A          al_rtt     false   0.000428    0.000069    0.000000  100/100  2024-04-09 09:33:55.040878  2024-04-09 09:33:46.762642
A          al_loss    false   0.000428    0.000069    0.000000  100/100  2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165
A          al_jitter  false   0.000428    0.000069    0.000000  100/100  2024-04-09 09:33:42.581510  2024-04-09 09:33:34.280073

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-04-09 09:33:59.468104  2024-04-09 09:33:42.581510             3        28.23
al_loss    false   2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165             6        47.27
al_rtt     true    2024-04-09 09:34:01.176241  2024-04-09 09:33:55.040878             7        51.95

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.243400    0.304444    0.000000  100/100  2024-04-09 09:34:01.176241  2024-04-09 09:33:55.040878
A          al_loss    false   0.243400    0.304444    0.000000  100/100  2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165
A          al_jitter  true    0.243400    0.304444    0.000000  100/100  2024-04-09 09:33:59.468104  2024-04-09 09:33:42.581510

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-04-09 09:34:06.915568  2024-04-09 09:33:59.468104             4        35.59
al_loss    false   2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165             6        41.02
al_rtt     false   2024-04-09 09:34:04.849639  2024-04-09 09:34:01.176241             8        51.51

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.000434    0.000070    0.000000  100/100  2024-04-09 09:34:04.849639  2024-04-09 09:34:01.176241
A          al_loss    false   0.000434    0.000070    0.000000  100/100  2024-04-09 09:33:55.530285  2024-04-09 09:33:51.016165
A          al_jitter  false   0.000434    0.000070    0.000000  100/100  2024-04-09 09:34:06.915568  2024-04-09 09:33:59.468104

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-04-09 09:34:27.077654  2024-04-09 09:34:22.165174             2        66.99
al_rtt     false   2024-04-09 09:34:26.838441  2024-04-09 09:34:22.916279             2        53.52

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.000682    0.000458    0.000000  100/100  2024-04-09 09:34:26.838441  2024-04-09 09:34:22.916279
A          al_loss    false   0.000682    0.000458    0.000000  100/100  2024-04-09 09:34:27.077654  2024-04-09 09:34:22.165174
A          al_jitter  false   0.000682    0.000458    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-04-09 09:34:31.242398                                         1        22.28
al_loss    true    2024-04-09 09:34:30.744383  2024-04-09 09:34:27.077654             3        62.33
al_rtt     true    2024-04-09 09:34:32.152670  2024-04-09 09:34:26.838441             3        44.58

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.410320    0.439997    41.000000  100/100  2024-04-09 09:34:32.152670  2024-04-09 09:34:26.838441
A          al_loss    true    0.410320    0.439997    41.000000  100/100  2024-04-09 09:34:30.744383  2024-04-09 09:34:27.077654
A          al_jitter  true    0.410320    0.439997    41.000000  100/100  2024-04-09 09:34:31.242398

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-04-09 09:34:39.259801  2024-04-09 09:34:31.242398             2        40.82
al_loss    false   2024-04-09 09:34:39.557954  2024-04-09 09:34:30.744383             4        69.85
al_rtt     false   2024-04-09 09:34:38.262478  2024-04-09 09:34:32.152670             4        51.06

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.000393    0.000059    0.000000  100/100  2024-04-09 09:34:38.262478  2024-04-09 09:34:32.152670
A          al_loss    false   0.000393    0.000059    0.000000  100/100  2024-04-09 09:34:39.557954  2024-04-09 09:34:30.744383
A          al_jitter  false   0.000393    0.000059    0.000000  100/100  2024-04-09 09:34:39.259801  2024-04-09 09:34:31.242398

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-04-09 09:34:39.259801  2024-04-09 09:34:31.242398             2        31.18
al_loss    false   2024-04-09 09:34:39.557954  2024-04-09 09:34:30.744383             4        53.37
al_rtt     true    2024-04-09 09:34:43.333246  2024-04-09 09:34:38.262478             5        51.18

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.792433    0.009072    0.000000  100/100  2024-04-09 09:34:43.333246  2024-04-09 09:34:38.262478
A          al_loss    false   0.792433    0.009072    0.000000  100/100  2024-04-09 09:34:39.557954  2024-04-09 09:34:30.744383
A          al_jitter  false   0.792433    0.009072    0.000000  100/100  2024-04-09 09:34:39.259801  2024-04-09 09:34:31.242398

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-04-09 09:34:39.259801  2024-04-09 09:34:31.242398             2        25.30
al_loss    false   2024-04-09 09:34:52.097332  2024-04-09 09:34:47.590013             6        57.52
al_rtt     false   2024-04-09 09:34:51.594571  2024-04-09 09:34:43.333246             6        57.72

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.000402    0.000042    0.000000  100/100  2024-04-09 09:34:51.594571  2024-04-09 09:34:43.333246
A          al_loss    false   0.000402    0.000042    0.000000  100/100  2024-04-09 09:34:52.097332  2024-04-09 09:34:47.590013
A          al_jitter  false   0.000402    0.000042    0.000000  100/100  2024-04-09 09:34:39.259801  2024-04-09 09:34:31.242398

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-04-09 09:34:55.269168  2024-04-09 09:34:39.259801             3        30.11
al_loss    false   2024-04-09 09:34:52.097332  2024-04-09 09:34:47.590013             6        48.08
al_rtt     false   2024-04-09 09:34:51.594571  2024-04-09 09:34:43.333246             6        48.24

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.192269    0.275348    0.000000  100/100  2024-04-09 09:34:51.594571  2024-04-09 09:34:43.333246
A          al_loss    false   0.192269    0.275348    0.000000  100/100  2024-04-09 09:34:52.097332  2024-04-09 09:34:47.590013
A          al_jitter  true    0.192269    0.275348    0.000000  100/100  2024-04-09 09:34:55.269168  2024-04-09 09:34:39.259801

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-04-09 09:35:04.125124  2024-04-09 09:34:55.269168             4        38.43
al_loss    false   2024-04-09 09:35:04.230238  2024-04-09 09:35:00.271141             8        50.53
al_rtt     false   2024-04-09 09:35:02.032692  2024-04-09 09:34:58.938409             8        48.70

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.000520    0.000286    0.000000  100/100  2024-04-09 09:35:02.032692  2024-04-09 09:34:58.938409
A          al_loss    false   0.000520    0.000286    0.000000  100/100  2024-04-09 09:35:04.230238  2024-04-09 09:35:00.271141
A          al_jitter  false   0.000520    0.000286    0.000000  100/100  2024-04-09 09:35:04.125124  2024-04-09 09:34:55.269168

Note

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