Check Pdp Advisor

This scenario verifies that the PDP advisor functionality correctly controls the connectivity of a cellular PDP context. When the advisor is active (true), the PDP is allowed to connect. When the advisor is inactive (false), the PDP connection is prevented. When the advisor is removed from the configuration, the PDP connects normally without advisor control.

../../../../_images/google.svg

Test PDP Advisor Connectivity Control

Description

In DUT0, a system advisor TEST_ADVISOR is configured with an initial state of true (active), which allows the PDP 1 connection. The test verifies connectivity via ping. Then, the advisor is set to false (inactive), which prevents connections, and the test verifies that connectivity is lost. Finally, the advisor is removed from the PDP configuration, restoring normal connectivity without advisor control.

Scenario

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 encrypted-pin U2FsdGVkX1/BhjTF14Hue9xYbPZwG1mOQ4u9+iaieGA=
set controllers cellular wwan0 pdp 1 advisor TEST_ADVISOR
set controllers cellular wwan0 pdp 1 profile CELPROFILE
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set system advisor TEST_ADVISOR test true
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured with the advisor set to true (active), the PDP connection should be established normally. This can be verified by checking the network registration, the PDP connection status, and the cellular interface state.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = HOME[21407] ACT[21422]
Public Land Mobile Network name = Movistar
Network technology currently in use = lte
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
LTE Carrier Aggregation Info:
Primary Cell Info:
Band = E-UTRA Band 3
Frequency = 1301
Downlink Bandwidth = 20 MHz
Physical Cell ID = 216
Scell State = registered
RSRP (dBm) = -84
RSRQ (dB) = -6
RSSI (dBm) = -57
SINR (dB) = 20
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -80
RSRQ (dB) = -7
RSSI (dBm) = -63
SINR (dB) = 20
RX level (dBm) = -85
Coverage level = 5 (*****)

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 50000000
Max. RX channel rate (bps)      = 300000000
IPv4 address                    = 37.12.8.88
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 37.12.8.89
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
cell0  37.12.8.88/28                up     up
fe80::876:e8ff:fe51:915d/64

Step 5: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=177 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 177.394/177.394/177.394/0.000 ms

Note

When the advisor is set to false (inactive), the PDP connection should be prevented. The network data connection should be stopped and the cellular interface should go down.

Step 6: Modify the following configuration lines in DUT0 :

set system advisor TEST_ADVISOR test false

Step 7: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = disconnected
Show output
Connection status               = disconnected

Step 8: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+down\s+down
Show output
------------------------------------------------
Name   IP Address  Admin  Oper  Vrf  Description
------------------------------------------------
cell0              down   down

Note

When the advisor is removed from the PDP configuration, the PDP should connect unconditionally without advisor control, restoring normal connectivity.

Step 9: Modify the following configuration lines in DUT0 :

delete controllers cellular wwan0 pdp 1 advisor

Step 10: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 50000000
Max. RX channel rate (bps)      = 300000000
IPv4 address                    = 2.143.44.184
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 2.143.44.185
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 11: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
cell0  2.143.44.184/28              up     up
fe80::876:e8ff:fe51:915d/64

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=176 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 175.544/175.544/175.544/0.000 ms

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1+0NQLjAgMbQgMuVU69B+w2wujCbyESBQk=
set controllers cellular wwan0 sim socket socket_1 pdp 1 advisor TEST_ADVISOR
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set system advisor TEST_ADVISOR test true
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured with the advisor set to true (active), the PDP connection should be established normally. This can be verified by checking the network registration, the PDP connection status, and the cellular interface state.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = HOME[21407] ACT[21422]
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Bandwidth = 20
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
LTE Carrier Aggregation Info:
Primary Cell Info:
Band = E-UTRA Band 3
Frequency = 1301
Downlink Bandwidth = 20 MHz
Physical Cell ID = 216
Scell State = registered
RSRP (dBm) = -80
RSRQ (dB) = -7
RSSI (dBm) = -50
SINR (dB) = 18
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 8
Frequency = 3600
Downlink Bandwidth = 10 MHz
Physical Cell ID = 35
Scell State = inactive
RSRP (dBm) = -86
RSRQ (dB) = -10
RSSI (dBm) = -66
SINR (dB) = 7
RX level (dBm) = -81
Coverage level = 5 (*****)

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.12.65.204
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 37.12.65.205
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  37.12.65.204/29               up     up
fe80::cc77:ceff:fe9d:d196/64

Step 5: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=30.5 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 30.503/30.503/30.503/0.000 ms

Note

When the advisor is set to false (inactive), the PDP connection should be prevented. The network data connection should be stopped and the cellular interface should go down.

Step 6: Modify the following configuration lines in DUT0 :

set system advisor TEST_ADVISOR test false

Step 7: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = disconnected
Show output
Connection status               = disconnected

Step 8: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+down\s+down
Show output
------------------------------------------------
Name   IP Address  Admin  Oper  Vrf  Description
------------------------------------------------
cell0              down   down

Note

When the advisor is removed from the PDP configuration, the PDP should connect unconditionally without advisor control, restoring normal connectivity.

Step 9: Modify the following configuration lines in DUT0 :

delete controllers cellular wwan0 sim socket socket_1 pdp 1 advisor

Step 10: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 81.47.92.69
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 81.47.92.70
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 11: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  81.47.92.69/30                up     up
fe80::cc77:ceff:fe9d:d196/64

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=168 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 168.187/168.187/168.187/0.000 ms

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX19emX1xMURE6+vr25VCxe3mMN5cnCqZqTc=
set controllers cellular wwan0 sim socket socket_1 pdp 1 advisor TEST_ADVISOR
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set system advisor TEST_ADVISOR test true
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured with the advisor set to true (active), the PDP connection should be established normally. This can be verified by checking the network registration, the PDP connection status, and the cellular interface state.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = HOME[21407] ACT[21422]
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 72016415
Radio Band = eutran-20
Bandwidth = 10
Channel = 6400
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
LTE Carrier Aggregation Info:
Primary Cell Info:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = registered
RSRP (dBm) = -66
RSRQ (dB) = -9
RSSI (dBm) = -39
SINR (dB) = 14
Uplink Bandwidth = 10 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 3
Frequency = 1301
Downlink Bandwidth = 20 MHz
Physical Cell ID = 216
Scell State = inactive
RSRP (dBm) = -78
RSRQ (dB) = -11
RSSI (dBm) = -56
SINR (dB) = 18
RX level (dBm) = -65
Coverage level = 5 (*****)

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 5.205.250.17
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 5.205.250.18
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  5.205.250.17/30               up     up
fe80::6886:6dff:fe62:b582/64

Step 5: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=34.7 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 34.725/34.725/34.725/0.000 ms

Note

When the advisor is set to false (inactive), the PDP connection should be prevented. The network data connection should be stopped and the cellular interface should go down.

Step 6: Modify the following configuration lines in DUT0 :

set system advisor TEST_ADVISOR test false

Step 7: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = disconnected
Show output
Connection status               = disconnected

Step 8: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+down\s+down
Show output
------------------------------------------------
Name   IP Address  Admin  Oper  Vrf  Description
------------------------------------------------
cell0              down   down

Note

When the advisor is removed from the PDP configuration, the PDP should connect unconditionally without advisor control, restoring normal connectivity.

Step 9: Modify the following configuration lines in DUT0 :

delete controllers cellular wwan0 sim socket socket_1 pdp 1 advisor

Step 10: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.13.162.18
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 37.13.162.17
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 11: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  37.13.162.18/30               up     up
fe80::6886:6dff:fe62:b582/64

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=23.5 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 23.479/23.479/23.479/0.000 ms

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX1/bAwUGYoA0fGf40sbN03xHmeRO8ALl8tw=
set controllers cellular wwan0 sim socket socket_1 pdp 1 advisor TEST_ADVISOR
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set system advisor TEST_ADVISOR test true
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured with the advisor set to true (active), the PDP connection should be established normally. This can be verified by checking the network registration, the PDP connection status, and the cellular interface state.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = HOME[21407] ACT[21422]
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Bandwidth = 20
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
LTE Carrier Aggregation Info:
Primary Cell Info:
Band = E-UTRA Band 3
Frequency = 1301
Downlink Bandwidth = 20 MHz
Physical Cell ID = 216
Scell State = registered
RSRP (dBm) = -83
RSRQ (dB) = -8
RSSI (dBm) = -55
SINR (dB) = 14
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -72
RSRQ (dB) = -11
RSSI (dBm) = -49
SINR (dB) = 12
RX level (dBm) = -85
Coverage level = 5 (*****)

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.12.56.138
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 37.12.56.137
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-------------------------------------------------------------
Name         IP Address         Admin  Oper  Vrf  Description
-------------------------------------------------------------
cell0  37.12.56.138/30          up     up
fe80::50:f4ff:fe00:1/64

Step 5: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=30.3 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 30.324/30.324/30.324/0.000 ms

Note

When the advisor is set to false (inactive), the PDP connection should be prevented. The network data connection should be stopped and the cellular interface should go down.

Step 6: Modify the following configuration lines in DUT0 :

set system advisor TEST_ADVISOR test false

Step 7: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = disconnected
Show output
Connection status               = disconnected

Step 8: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+down\s+down
Show output
------------------------------------------------
Name   IP Address  Admin  Oper  Vrf  Description
------------------------------------------------
cell0              down   down

Note

When the advisor is removed from the PDP configuration, the PDP should connect unconditionally without advisor control, restoring normal connectivity.

Step 9: Modify the following configuration lines in DUT0 :

delete controllers cellular wwan0 sim socket socket_1 pdp 1 advisor

Step 10: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 2.143.79.251
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 2.143.79.252
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 11: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
-------------------------------------------------------------
Name         IP Address         Admin  Oper  Vrf  Description
-------------------------------------------------------------
cell0  2.143.79.251/29          up     up
fe80::50:f4ff:fe00:1/64

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=24.9 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 24.880/24.880/24.880/0.000 ms

Step 1: Set the following configuration in DUT0 :

set cellular profile CELPROFILE apn movistar.es
set controllers cellular wwan0 sim select socket_1
set controllers cellular wwan0 sim socket socket_1 encrypted-pin U2FsdGVkX183hAO6axvpFr7l3vvByqMj1gbNBZpr8Cg=
set controllers cellular wwan0 sim socket socket_1 pdp 1 advisor TEST_ADVISOR
set controllers cellular wwan0 sim socket socket_1 pdp 1 profile CELPROFILE
set interfaces cellular cell0 address dhcp
set interfaces cellular cell0 phy wwan0 pdp 1
set system advisor TEST_ADVISOR test true
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular module is configured with the advisor set to true (active), the PDP connection should be established normally. This can be verified by checking the network registration, the PDP connection status, and the cellular interface state.

Step 2: Run the command controllers cellular wwan0 show network-status on DUT0 and check whether the output matches the following regular expressions:

SIM status\s* = OK
Registration state\s* = registered
Show output
SIM status = OK
Registration state = registered
Public Land Mobile Network code = HOME[21407] ACT[21422]
Public Land Mobile Network name = Movistar
Network technology currently in use = lte(+5gnr)
Current Service Domain registered = cs-ps (capable cs-ps)
Current Roaming status = off
3GPP Cell ID = 73254686
Radio Band = eutran-3
Bandwidth = 20
Channel = 1301
LTE Tracking Area Code (TAC) = 28673
EN-DC Available = yes
DCNR Restriction = no
LTE Carrier Aggregation Info:
Primary Cell Info:
Band = E-UTRA Band 3
Frequency = 1301
Downlink Bandwidth = 20 MHz
Physical Cell ID = 216
Scell State = registered
RSRP (dBm) = -82
RSRQ (dB) = -7
RSSI (dBm) = -55
SINR (dB) = 16
Uplink Bandwidth = 20 MHz
Secondary Cell Info #0:
Band = E-UTRA Band 20
Frequency = 6400
Downlink Bandwidth = 10 MHz
Physical Cell ID = 195
Scell State = inactive
RSRP (dBm) = -85
RSRQ (dB) = -9
RSSI (dBm) = -67
SINR (dB) = 10
RX level (dBm) = -83
Coverage level = 5 (*****)

Step 3: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.12.16.131
IPv4 mask                       = 255.255.255.248
IPv4 gateway                    = 37.12.16.132
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 4: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  37.12.16.131/29               up     up
fe80::7067:85ff:fe30:6486/64

Step 5: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=40.8 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 40.774/40.774/40.774/0.000 ms

Note

When the advisor is set to false (inactive), the PDP connection should be prevented. The network data connection should be stopped and the cellular interface should go down.

Step 6: Modify the following configuration lines in DUT0 :

set system advisor TEST_ADVISOR test false

Step 7: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = disconnected
Show output
Connection status               = disconnected

Step 8: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+down\s+down
Show output
------------------------------------------------
Name   IP Address  Admin  Oper  Vrf  Description
------------------------------------------------
cell0              down   down

Note

When the advisor is removed from the PDP configuration, the PDP should connect unconditionally without advisor control, restoring normal connectivity.

Step 9: Modify the following configuration lines in DUT0 :

delete controllers cellular wwan0 sim socket socket_1 pdp 1 advisor

Step 10: Run the command controllers cellular wwan0 pdp 1 show network-data-connection on DUT0 and check whether the output matches the following regular expressions:

Connection status\s* = connected
Show output
Connection status               = connected
Traffic channel status          = active
Max. TX channel rate (bps)      = 0
Max. RX channel rate (bps)      = 0
IPv4 address                    = 37.12.60.122
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 37.12.60.121
IPv4 primary DNS                = 80.58.61.248
IPv4 secondary DNS              = 80.58.61.249

Step 11: Run the command interfaces cellular cell0 show on DUT0 and check whether the output matches the following regular expressions:

cell0\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
------------------------------------------------------------------
Name            IP Address           Admin  Oper  Vrf  Description
------------------------------------------------------------------
cell0  37.12.60.122/30               up     up
fe80::7067:85ff:fe30:6486/64

Step 12: Ping the IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=26.5 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 26.501/26.501/26.501/0.000 ms