Check Connection

This scenario shows how to configure a cellular interface to use up to four separated data interfaces associated to different APNs. As a result, more than one data interface can be used to access the network.

../../../../_images/google2.svg

Test ICMP Connectivity

Description

Four different cellular profiles are defined and a cellular interface with four PDP (Packet Data Protocol) contexts is created in DUT0. Once configured, the ‘Ping’ command is used to check the connectivity of all four data interfaces with Google’s public DNS server.

Scenario

Step 1: Set the following configuration in DUT0:

set cellular profile CELPROFILE1 apn oper_apn1.com
set cellular profile CELPROFILE2 apn oper_apn2.com
set cellular profile CELPROFILE3 apn oper_apn3.com
set cellular profile CELPROFILE4 apn oper_apn4.com
set interfaces cellular cell0 encrypted-pin U2FsdGVkX18Nny9JjQIoy58Axdykh931jN8HcqcHFss=
set interfaces cellular cell0 pdp 1 address dhcp
set interfaces cellular cell0 pdp 1 profile CELPROFILE1
set interfaces cellular cell0 pdp 2 address dhcp
set interfaces cellular cell0 pdp 2 profile CELPROFILE2
set interfaces cellular cell0 pdp 3 address dhcp
set interfaces cellular cell0 pdp 3 profile CELPROFILE3
set interfaces cellular cell0 pdp 4 address dhcp
set interfaces cellular cell0 pdp 4 profile CELPROFILE4
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Once the cellular interface is configured, with the following operational command it can be checked if the SIM and registration states are correct.

Step 2: Run command interfaces cellular cell0 show network-status at DUT0 and check if 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 = 72016414
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) = -68
      RSRQ (dB) = -11
      RSSI (dBm) = -35
      SINR (dB) = 12
      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) = -66
      RSRQ (dB) = -9
      RSSI (dBm) = -47
      SINR (dB) = 17
RX level (dBm) = -53 or greater
Coverage level = 5 (*****)

Note

On the other hand, with the following commands it can be checked if all four cellular interfaces have correctly established the connection to the network.

Step 3: Run command interfaces cellular cell0 pdp 1 show network-data-connection at DUT0 and check if 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                    = 10.28.245.71
IPv4 mask                       = 255.255.255.240
IPv4 gateway                    = 10.28.245.72
IPv4 primary DNS                = 80.58.61.250
IPv4 secondary DNS              = 80.58.61.254

Step 4: Run command interfaces cellular cell0 pdp 2 show network-data-connection at DUT0 and check if 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                    = 10.29.178.64
IPv4 mask                       = 255.255.255.128
IPv4 gateway                    = 10.29.178.65
IPv4 primary DNS                = 80.58.61.250
IPv4 secondary DNS              = 80.58.61.254

Step 5: Run command interfaces cellular cell0 pdp 3 show network-data-connection at DUT0 and check if 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                    = 10.28.244.206
IPv4 mask                       = 255.255.255.252
IPv4 gateway                    = 10.28.244.205
IPv4 primary DNS                = 80.58.61.250
IPv4 secondary DNS              = 80.58.61.254

Step 6: Run command interfaces cellular cell0 pdp 4 show network-data-connection at DUT0 and check if 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                    = 10.83.188.96
IPv4 mask                       = 255.255.255.192
IPv4 gateway                    = 10.83.188.97
IPv4 primary DNS                = 80.58.61.250
IPv4 secondary DNS              = 80.58.61.254

Note

Additionally, with the previous operational commands, the IP addresses that have been provided by the operator to be used by each cellular interface are displayed. So, with the following commands, it can be checked if all four cellular interfaces have been correctly configured by the DHCP client.

Step 7: Run command interfaces cellular cell0 pdp 1 show at DUT0 and check if output matches the following regular expressions:

cell0s1\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
--------------------------------------------------------------------
 Name             IP Address           Admin  Oper  Vrf  Description
--------------------------------------------------------------------
cell0s1  10.28.245.71/28               up     up
         fe80::1479:23ff:fe8a:c9ad/64

Step 8: Run command interfaces cellular cell0 pdp 2 show at DUT0 and check if output matches the following regular expressions:

cell0s2\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
--------------------------------------------------------------------
 Name             IP Address           Admin  Oper  Vrf  Description
--------------------------------------------------------------------
cell0s2  10.29.178.64/25               up     up
         fe80::1479:23ff:fe8a:c9ad/64

Step 9: Run command interfaces cellular cell0 pdp 3 show at DUT0 and check if output matches the following regular expressions:

cell0s3\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
--------------------------------------------------------------------
 Name             IP Address           Admin  Oper  Vrf  Description
--------------------------------------------------------------------
cell0s3  10.28.244.206/30              up     up
         fe80::1479:23ff:fe8a:c9ad/64

Step 10: Run command interfaces cellular cell0 pdp 4 show at DUT0 and check if output matches the following regular expressions:

cell0s4\s+\d+.\d+.\d+.\d+\/\d+\s+up\s+up
Show output
--------------------------------------------------------------------
 Name             IP Address           Admin  Oper  Vrf  Description
--------------------------------------------------------------------
cell0s4  10.83.188.96/26               up     up
         fe80::1479:23ff:fe8a:c9ad/64

Note

Once everything above has been verified, we can be sure that all four cellular interfaces have been configured correctly and that there must be connectivity with the network from each of them. The latter can be verified, for example, by pinging Google’s DNS public server.

Step 11: Ping IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0s1 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.28.245.71 cell0s1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=172 ms

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

Step 12: Ping IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0s2 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.29.178.64 cell0s2: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=186 ms

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

Step 13: Ping IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0s3 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.28.244.206 cell0s3: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=204 ms

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

Step 14: Ping IP address 8.8.8.8 from DUT0:

admin@DUT0$ ping 8.8.8.8 local-address cell0s4 count 1 size 56 timeout 1
Show output
PING 8.8.8.8 (8.8.8.8) from 10.83.188.96 cell0s4: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=113 time=209 ms

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

Step 15: Run command interfaces cellular cell0 show cell-info at DUT0 and check if output matches the following regular expressions:

GSM\/EDGE info|UMTS info|LTE intrafrequency info|LTE interfrequency info|LTE info - Neighboring GSM|LTE info - Neighboring WCDMA|UMTS Cell ID|UMTS info - Neighboring LTE
Show output
LTE intrafrequency info:
   UE in idle mode                   = no
   PLMN ID coded                     = 21407
   Tracking Area Code                = 28673
   Global cell ID                    = 72016414
   E-UTRA absolute RF channel number = 1301
   LTE serving cell ID               = 216
   Cell #0
      Physical cell ID        = 216
      Current RSRQ (dB)       = -11.900000
      Current RSRP (dBm)      = -69.600000
      Current RSSI (dBm)      = -38.600000
      Cell selection Rx Level = 0
LTE interfrequency info:
   UE in idle mode = no
   Frequency #0
      E-UTRA absolute RF channel number      = 6400
      Cell selection Rx Level low threshold  = 0
      Cell selection Rx Level high threshold = 0
      Cell reselection priority              = 0
      Cell #0
         Physical cell ID        = 195
         Current RSRQ (dB)       = -9.900000
         Current RSRP (dBm)      = -65.500000
         Current RSSI (dBm)      = -47.700000
         Cell selection Rx Level = 0
      Cell #1
         Physical cell ID        = 0
         Current RSRQ (dB)       = 0.000000
         Current RSRP (dBm)      = 0.000000
         Current RSSI (dBm)      = 0.000000
         Cell selection Rx Level = 0
LTE info - Neighboring GSM:
   UE in idle mode = no
LTE info - Neighboring WCDMA:
   UE in idle mode = no

Step 16: Run command interfaces cellular cell0 show device-info at DUT0 and check if output matches the following regular expressions:

Temperature\s* = \d+
Show output
Module Manufacturer          = Quectel
Module Model                 = EM06E
Module Firmware              = EM06ELAR04A20M4G
Hardware Revision            = 20000
IMEI                         = 866680043220203
IMSI                         = 214075519082725
ICCID                        = 8934076700110220627F
Radio Interfaces             = umts, lte
Data Service Capability      = non-simultaneous-cs-ps
Maximum TX/RX rate supported = 50000/100000 Kbps
Temperature                  = 39

Step 17: Run command interfaces cellular cell0 show preferred-bands at DUT0 and check if output matches the following regular expressions:

Bands preference\s* = .*\nLTE bands preference\s* = .*
Show output
Bands preference           = wcdma-2100, wcdma-dcs-1800, wcdma-850-us, wcdma-900
LTE bands preference       = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41

Step 18: Run command interfaces cellular cell0 show signal-quality at DUT0 and check if output matches the following regular expressions:

(CDMA|EVDO|GSM\/GPRS|WCDMA|LTE):\n\s+RSSI \(dBm\)\s* = -?\d+
Show output
LTE:
   RSSI (dBm) = -41
   RSRP (dBm) = -70
   RSRQ (dB)  = -9
   SNR (dB)   = 14.000000
Tx level in traffic (dBm) = -25.000000
Rx Chain #0
   Radio tuned    = yes
   Rx Level (dBm) = -35.500000
Rx Chain #1
   Radio tuned    = yes
   Rx Level (dBm) = -42.700000

Step 19: Run command interfaces cellular cell0 show supported-bands at DUT0 and check if output matches the following regular expressions:

Bands\s* = .*\nLTE bands\s* = .*
Show output
Bands           = wcdma-2100, wcdma-dcs-1800, wcdma-850-us, wcdma-900
LTE bands       = 1, 3, 5, 7, 8, 20, 28, 32, 38, 40, 41