- Download vscode available here
- Clone the repository openair-cn-cups
- Open the console in your workspace
- Create a macvlan docker network running
make docker-create-network
.
It is assumed that you have two network device, one of them is the enp0s20f0u1 (See Makefile). - Setup Developing inside a Container in vscode
- Open the repository workspace using vscode in a conteiner (it will take some time)
- Setup conteiner network:
make docker-setup-network
- Create and configure spgwu interfaces:
make docker-config-spgwu-iface
See environment.
Follow the steps to build spgwu in vscode
- Run again Build Task
Ctrl + Shift + B
- Select
Rebuild spgwu
- Check sucess message: spgwu-test compiled and spgwu installed
- Run spgwu
F5
Run the command ss -u -a
Output:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
UNCONN 0 0 127.0.0.11:48062 0.0.0.0:*
UNCONN 0 0 172.55.55.102:40280 0.0.0.0:*
UNCONN 0 0 172.55.55.102:8805 0.0.0.0:*
UNCONN 0 0 192.168.15.2:2152 0.0.0.0:*
The following table maps the socket to the spgwu protocal stack:
app | socket |
---|---|
spgwu-pfcp | 172.55.55.102:8805 |
spgwu-gtpv1_u | 192.168.5.2:2152 |
VM -> Docker
192.168.15.14 -> 192.168.15.2
10.50.11.227 -> 172.17.0.2
make docker-build
make debug
make clean
make shell-run
Control User Plane Separation of SPGW-C and SPGW-U
├── http://www.openairinterface.org/?page_id=698
It is distributed under OAI Public License V1.0.
The license information is distributed under LICENSE file in the same directory.
The OpenAirInterface CN CUPS software is composed of the following parts:
openair-cn-cups
├── build : Build directory, contains targets and object files generated by compilation of network functions.
├── log : Directory containing build log files.
├── scripts : Directory containing scripts for building network functions
├── spgw_c : Directory containing CMakefile.txt and object files generated by compilation of SPGW-C network function.
├── spgw_u : Directory containing CMakefile.txt and object files generated by compilation of SPGW-U network function.
├── etc : Directory containing the configuration files to be deployed for each network function.
└── scripts : Directory containing scripts for the CI process
└── src : Source files of network functions.
├── common : Common header files
│ ├── msg : ITTI messages definitions.
│ └── utils : Common utilities.
├── gtpv1u : Generic GTPV1-U stack implementation
├── gtpv2c : Generic GTPV2-C stack implementation
├── itti : Inter task interface
├── oai_spgwc : SPGW-C main directory, contains the "main" CMakeLists.txt file.
├── oai_spgwu : SPGW-U main directory, contains the "main" CMakeLists.txt file.
├── pfcp : Generic PFCP stack implementation.
├── pgwc : PGW-C network fonctions procedures and contexts.
├── sgwc : SGW-C network fonctions procedures and contexts.
├── spgwu : SPGW-U network fonctions procedures and contexts.
│ └── simpleswitch : Very Basic Switch implementation.
└── udp : UDP server implementation.
RELEASE NOTES:
v1.0.0 -> First release, Able to serve a MME with basic attach, detach, release, paging procedures, default bearer only.