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.
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+CNN6n46+GmWor4GoBWRtG484OvvLLRuk= 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* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = 21407 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-8 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) = -58 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) = -88 RSRQ (dB) = -8 RSSI (dBm) = -70 SINR (dB) = 12 RX level (dBm) = -86 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 50000000 Max. RX channel rate (bps) = 300000000 IPv4 address = 176.82.179.61 IPv4 mask = 255.255.255.252 IPv4 gateway = 176.82.179.62 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 176.82.179.61/30 up up fe80::a84d:31ff:fead:f6f2/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 1Show 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=18.8 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 18.759/18.759/18.759/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* = disconnectedShow 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+downShow 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 50000000 Max. RX channel rate (bps) = 300000000 IPv4 address = 81.47.82.58 IPv4 mask = 255.255.255.252 IPv4 gateway = 81.47.82.57 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 81.47.82.58/30 up up fe80::a84d:31ff:fead:f6f2/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 1Show 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=108 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 107.617/107.617/107.617/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/DcUyPNIlWRM430vp8s7MiRIfYKqmU51w= 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* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = 21407 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) = -8 RSSI (dBm) = -55 SINR (dB) = 12 Uplink Bandwidth = 20 MHz Secondary Cell Info #0: Band = E-UTRA Band 8 Frequency = 3600 Downlink Bandwidth = 10 MHz Physical Cell ID = 341 Scell State = inactive RSRP (dBm) = -79 RSRQ (dB) = -11 RSSI (dBm) = -60 SINR (dB) = 9 RX level (dBm) = -79 Coverage level = 4 (**** )
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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 37.12.46.197 IPv4 mask = 255.255.255.252 IPv4 gateway = 37.12.46.198 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 37.12.46.197/30 up up fe80::345b:2cff:fecb:8561/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 1Show 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=175 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 174.915/174.915/174.915/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* = disconnectedShow 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+downShow 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 5.205.240.207 IPv4 mask = 255.255.255.224 IPv4 gateway = 5.205.240.208 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 5.205.240.207/27 up up fe80::345b:2cff:fecb:8561/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 1Show 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=163 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 163.496/163.496/163.496/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 U2FsdGVkX18hdzrchis3SfQUh/YTfifAIMQAdkrcRjM= 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* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = 21407 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) = -6 RSSI (dBm) = -43 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) = -79 RSRQ (dB) = -11 RSSI (dBm) = -56 SINR (dB) = 15 RX level (dBm) = -66 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 5.205.205.189 IPv4 mask = 255.255.255.252 IPv4 gateway = 5.205.205.190 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 5.205.205.189/30 up up fe80::b8c5:ecff:fe3d:64ea/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 1Show 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=164 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 163.608/163.608/163.608/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* = disconnectedShow 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+downShow 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 37.12.7.98 IPv4 mask = 255.255.255.252 IPv4 gateway = 37.12.7.97 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+upShow output
------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------ cell0 37.12.7.98/30 up up fe80::b8c5:ecff:fe3d:64ea/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 1Show 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=144 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 143.558/143.558/143.558/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 U2FsdGVkX19QsHkWTDKtJRrtgt3uDAW82qXuBhPh79Q= 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* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = 21407 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) = -71 RSRQ (dB) = -6 RSSI (dBm) = -48 SINR (dB) = 18 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) = -85 RSRQ (dB) = -7 RSSI (dBm) = -69 SINR (dB) = 12 RX level (dBm) = -72 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 88.31.106.50 IPv4 mask = 255.255.255.252 IPv4 gateway = 88.31.106.49 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+upShow output
------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------------- cell0 88.31.106.50/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 1Show 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=39.5 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 39.529/39.529/39.529/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* = disconnectedShow 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+downShow 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 37.12.30.19 IPv4 mask = 255.255.255.248 IPv4 gateway = 37.12.30.20 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+upShow output
------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------------- cell0 37.12.30.19/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 1Show 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=119 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 118.642/118.642/118.642/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 U2FsdGVkX18qDewVgJeDQzo37j2/a14uvE0kNw866Rs= 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* = registeredShow output
SIM status = OK Registration state = registered Public Land Mobile Network code = 21407 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) = -84 RSRQ (dB) = -7 RSSI (dBm) = -57 SINR (dB) = 8 Uplink Bandwidth = 20 MHz Secondary Cell Info #0: Band = E-UTRA Band 8 Frequency = 3600 Downlink Bandwidth = 10 MHz Physical Cell ID = 341 Scell State = inactive RSRP (dBm) = -80 RSRQ (dB) = -11 RSSI (dBm) = -61 SINR (dB) = 7 RX level (dBm) = -79 Coverage level = 4 (**** )
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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 37.12.63.213 IPv4 mask = 255.255.255.252 IPv4 gateway = 37.12.63.214 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+upShow output
----------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ----------------------------------------------------------------- cell0 37.12.63.213/30 up up fe80::877:87ff:feaf:fcd1/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 1Show 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=39.9 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 39.876/39.876/39.876/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* = disconnectedShow 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+downShow 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* = connectedShow output
Connection status = connected Traffic channel status = active Max. TX channel rate (bps) = 0 Max. RX channel rate (bps) = 0 IPv4 address = 81.47.83.28 IPv4 mask = 255.255.255.248 IPv4 gateway = 81.47.83.29 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+upShow output
----------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ----------------------------------------------------------------- cell0 81.47.83.28/29 up up fe80::877:87ff:feaf:fcd1/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 1Show 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=160 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 159.743/159.743/159.743/0.000 ms