> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.15/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/smc/3.15/troubleshooting/verification.md).

# Verification

To verify if SMC deployment works correctly, the following actions can be done:

1. [Check SMC pod](#check-smc-pod)
1. [Check PFCP connectivity](#check-pfcp)
1. [Check GTP connectivity (PGW only)](#check-gtp)

## Check SMC pod
SMC daemonset includes liveness and readiness probes.

To check if the SMC pod has IP assigned, check the pod annotations, for example:

```yaml
apiVersion: v1
kind: Pod
metadata:
  annotations:
    ...
    k8s.v1.cni.cncf.io/network-status: |-
      [{
          "name": "k8s-pod-network",
          "ips": [
              "10.42.6.249"
          ],
          "default": true,
          "dns": {}
      },{
          "name": "smc-fpp/grx",
          "interface": "grx",
          "mac": "00:fe:00:fe:00:fe",
          "dns": {}
      },{
          "name": "smc-fpp/sxb",
          "interface": "sxb",
          "mac": "02:fe:19:14:fd:61",
          "dns": {}
      }]
    k8s.v1.cni.cncf.io/networks: grx@grx,sxb@sxb
```

In this case, the Kubernetes cluster IP is shown (`10.42.6.249`), plus
the interfaces for GTP (`grx`) and PFCP (`sxb`). Kubernetes networking
is used for Diameter and RADIUS connectivity.

The following Kubernetes command will show the assigned IPs in the pod:

```console
kubectl --namespace {FPP} exec {SMC_POD_NAME} -c smc-ergw -- /bin/sh -c "ip addr list"
```

Output example:

```console
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
3: eth0@if147357: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1430 qdisc noqueue state UP
    link/ether 0f:0f:0f:0f:0f:a0 brd ff:ff:ff:ff:ff:ff
    inet 10.42.6.249/32 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::fff:ffff:ffff:fff0/64 scope link
       valid_lft forever preferred_lft forever
4: grx30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8930 qdisc mq state UP qlen 1000
    link/ether 0f:0f:0f:0f:0f:a1 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/28 scope global grx30
       valid_lft forever preferred_lft forever
    inet6 fe80::fe:ffff:ffff:fff1/64 scope link
       valid_lft forever preferred_lft forever
5: sxb30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8930 qdisc mq state UP qlen 1000
    link/ether 0f:0f:0f:0f:0f:a2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 scope global sxb30
       valid_lft forever preferred_lft forever
    inet6 fe80::fe:ffff:ffff:fff2/64 scope link
       valid_lft forever preferred_lft forever
```

## Check PFCP connectivity

During the initialization, the SMC Pod will establish PFCP associations with
the configured UPFs. These will show in the `pfcp_sx_association_total` metric
("Active PFCP Associations").

When acting as TDF, the SMC will install the appropriate traffic
detection rules in the UPFs. When traffic from sessions arrives at the UPF,
it will report to SMC and the `pfcp_sx_context_total` metric will be increased
("Active PFCP Sessions"). When acting as PGW, the incoming GTP sessions will
instead create the new PFCP sessions.

## Check GTP connectivity (PGW only)

As soon as a GTP peer connects and creates sessions, the `gtp_path_contexts_total`
metric starts to rise. The [GTP-C socket specific metrics](https://docs.cennso.com/components/smc/3.15/observability/metrics.md#gtp-c-socket)
shows whether the GTP traffic is reaching SMC.
