Configure NWIs
User Plane Gateway (UPG) uses Network Instances (NWIs). NWI is a logical representation of a network interface that connects UPG to various networks (like Access, Control, and Data Networks). The NWIs are declared using the spec configuration from the UPGDeployment CR on the Management Cluster, which is in turn translated into UPGConfig Custom Resource (CR) in the Core Cluster. UPG then creates NWIs based on UPGConfig CR.
You can configure the UPGDeployment CR to create NWIs in two ways:
- Set the spec.type parameter to
pgwortdfto use preconfigured values for these use cases (PGW or TDF). - Configure the spec.nwis section to manually specify NWI names and types.
Use case examples
You can configure the UPGDeployment CR to create NWIs for these use cases:
- Packet Gateway (PGW)
- Traffic Detection Function (TDF)
- GTP Proxy
PGW
You can create NWIs for the PGW use case by setting the spec.type value to pgw. In this case, these default NWIs are created:
epccpsgi
You can also configure these NWIs by manually setting the name and type of NWI in the spec.nwis section:
This configuration results in the following UPGConfig CR:
TDF
To create NWIs for the TDF use case, set the spec.type parameter to tdf. For the TDF use case, these default NWIs are created:
accesscp- multiple
sgis (one for each destination NAT pool)
Caution
Do not use the spec.nwis section to configure NWIs manually.
Data Networks are configured one per NAT pool, based on spec.instances.{name}.nat.pools. If spec.nat.enabled: true and spec.nat.type: cgnat are configured, the UPGDeployment CR also adds an sgi NWI.
See the NWI configuration example for TDF-U:
This configuration results in the following UPGConfig CR:
GTP Proxy
To create NWIs for the GTP Proxy use case, specify the spec.nwis configuration. See the NWI configuration example for the GTP Proxy use case, where Access and Data Networks use only GTP endpoints:
This configuration results in the following UPGConfig CR:
Verification
After applying the configuration, you can verify the NWI setup on your Core Cluster using the VPP CLI by running the following command:
This is the output example that shows the NWI setup: