Skip to content

Control User Plane Separation of SPGW-C and SPGW-U

License

Notifications You must be signed in to change notification settings

intrig-unicamp/openair-cn-cups

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openair-cn-cups

Development - First steps using Visual Studio Code

  1. Download vscode available here
  2. Clone the repository openair-cn-cups
  3. Open the console in your workspace
  4. 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).
  5. Setup Developing inside a Container in vscode
  6. Open the repository workspace using vscode in a conteiner (it will take some time)
  7. Setup conteiner network: make docker-setup-network
  8. Create and configure spgwu interfaces: make docker-config-spgwu-iface

Environment

See environment.

Build code using Visual Studio Code

Follow the steps to build spgwu in vscode

  1. Run again Build Task Ctrl + Shift + B
  2. Select Rebuild spgwu
  3. Check sucess message: spgwu-test compiled and spgwu installed

Run spgwu

  1. Run spgwu F5

Display all UDP sockets

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

IP Mapping

VM -> Docker
192.168.15.14 -> 192.168.15.2
10.50.11.227 -> 172.17.0.2

Other commands

Build spgwu docker image

make docker-build

Build spgwu in debug mode

make debug

Clean spgwu generated artifacts

make clean

Login spgwu docker container in bash mode

make shell-run

Notes

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.

Packages

No packages published

Languages

  • C++ 89.6%
  • CMake 7.4%
  • Shell 2.0%
  • Other 1.0%