> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/3.2/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/upg/3.2/troubleshooting/connectivity.md).

# Connectivity check

This section describes how to debug connectivity issues in UPG. VPPCTL commands should be executed in the UPG pod running in the Core Cluster.

For more network connectivity debugging, check [FPP troubleshooting](https://docs.cennso.com/cennso/fpp/main/troubleshooting/troubleshooting.md).

## FPP Networks

To get cross-node connectivity with FPP networking, proper FPPNetwork objects need to be present.

To check which `FPPNetwork` is used by UPG, list VPPInterfaces that belong to UPG and show their **spec.attachToNetwork** names:

```bash
kubectl get vppinterface -l "cennso.net/cnf=upg" -o=custom-columns="NAME:.metadata.name,ATTACH_TO_NETWORK:.spec.attachToNetwork" -n {UPG-NS}
```

Output example:

```bash
NAME             ATTACH_TO_NETWORK
upg-prox01-grx   grx40
upg-prox01-sgi   sgi41
upg-prox01-sxb   sx39
```

Now check if a proper FPPNetwork exists:

```bash
kubectl get fppnetworks.fpp-manager.cennso.com -owide
```

Output example:

```bash
NAME    ID
grx40   40
gy22    22
sgi41   41
sx39    39
```

If there is no FPPNetwork corresponding to the VPPInterface **spec.attachToNetwork**, it needs to be created. For example:

```yaml
apiVersion: fpp-manager.cennso.com/v1alpha1
kind: FPPNetwork
metadata:
  name: test-net
spec:
  id: 20
  type: vxlan
```

## Check IP assignments

To check what IP addresses are configured for the UPG, exec into the UPG pod and run:

```bash
vppctl sh int address
```

Output example:

```bash
grx (up):
  L3 198.18.0.20/24 ip4 table-id 100 fib-idx 1
local0 (dn):
sgi (up):
  L3 198.19.0.20/24 ip4 table-id 200 fib-idx 2
sxb (up):
  L3 172.20.0.20/24
upf-nwi-cp (up):
upf-nwi-epc (up):
upf-nwi-sgi (up):
```

If addresses are not there, check VPP Operator logs in Kubernetes or [VPP logs](https://docs.cennso.com/components/upg/3.2/troubleshooting/verification.md#check-vpp-logs) inside UPG container.
VPPInterface objects can also be checked, see the [Interface Verification section](https://docs.cennso.com/components/upg/3.2/troubleshooting/verification.md#check-vpp-interfaces).

## Ping to SMF

You can check networking connectivity by checking if UPG can reach SMF. To do so, exec into the UPG pod and run:

```bash
vppctl ping 172.20.0.10
```

Output example:

```
116 bytes from 172.20.0.10: icmp_seq=1 ttl=64 time=.0951 ms
116 bytes from 172.20.0.10: icmp_seq=2 ttl=64 time=.0705 ms
116 bytes from 172.20.0.10: icmp_seq=3 ttl=64 time=.0709 ms
116 bytes from 172.20.0.10: icmp_seq=4 ttl=64 time=.0686 ms
116 bytes from 172.20.0.10: icmp_seq=5 ttl=64 time=.0677 ms

Statistics: 5 sent, 5 received, 0% packet loss
```

`172.20.0.10` is the SMF IP address. It should be known from the deployment topology.

If the endpoint is not reachable, check if [FPP networks](#fpp-networks) are configured correctly.

## Ping to GRX Peer

To check connectivity towards the GRX gateway, exec to the UPG pod and run:

```bash
vppctl ping 198.18.0.30 source grx
```

Output example:

```
116 bytes from 198.18.0.30: icmp_seq=1 ttl=64 time=.1215 ms
116 bytes from 198.18.0.30: icmp_seq=2 ttl=64 time=.1132 ms
116 bytes from 198.18.0.30: icmp_seq=3 ttl=64 time=.1145 ms
116 bytes from 198.18.0.30: icmp_seq=4 ttl=64 time=.1681 ms
116 bytes from 198.18.0.30: icmp_seq=5 ttl=64 time=.1085 ms

Statistics: 5 sent, 5 received, 0% packet loss
```

`198.18.0.30` is an IP address in the GRX/Access network. It should be known from the deployment topology.

## Ping to SGI side

UPG in the `PGW` mode can also reach the SGi network with a ping probe. To do so, run this command from the UPG pod:

```bash
vppctl ping 198.19.0.100 source sgi
```

Output example:

```
116 bytes from 198.19.0.100: icmp_seq=1 ttl=64 time=.1783 ms
116 bytes from 198.19.0.100: icmp_seq=2 ttl=64 time=.1173 ms
116 bytes from 198.19.0.100: icmp_seq=3 ttl=64 time=.1521 ms
116 bytes from 198.19.0.100: icmp_seq=4 ttl=64 time=.1151 ms
116 bytes from 198.19.0.100: icmp_seq=5 ttl=64 time=.1143 ms

Statistics: 5 sent, 5 received, 0% packet loss
```

It is useful to check the next hop IP address in SGi network, which can verify UPG's ability to
route User Equipment traffic.

## Check PFCP traffic

UPG hosts the PFCP server, which listens on port 8805. PFCP communication is initiated from SMF, using UDP datagrams.

To diagnose if PFCP connectivity is working OK, try to dump traffic in the SMF or UPG pod on the Sx interface. You can use [NetCap](https://docs.cennso.com/cennso/netcap/main.md) to dump traffic and store the PCAPs in a central location. Or you can dump traffic in the UPG pod, follow the [`How to capture traffic in UPG`](https://docs.cennso.com/components/upg/3.2/troubleshooting/traffic-capturing.md#traffic-capturing) section.

After a successful traffic dump, check if `PFCP Heartbeat Request` is received in UPG from SMF. Also, check if `PFCP Heartbeat Response` is sent from UPG to SMF.

If no heartbeat messages are visible in PCAPs, please check UPG [SX IP address](#check-ip-assignments), SMF configuration
and [FPP networks](#fpp-networks).
