Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/801room/upf-xdp
It is just a toy, but it shows the possibility of using xdp to implement 5g upf.
https://github.com/801room/upf-xdp
gtpu xdp
Last synced: 24 days ago
JSON representation
It is just a toy, but it shows the possibility of using xdp to implement 5g upf.
- Host: GitHub
- URL: https://github.com/801room/upf-xdp
- Owner: 801room
- Created: 2020-08-03T12:31:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T11:01:03.000Z (almost 4 years ago)
- Last Synced: 2024-08-04T00:04:20.548Z (4 months ago)
- Topics: gtpu, xdp
- Language: C
- Homepage:
- Size: 65.4 KB
- Stars: 26
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-5g - upf-xdp - It is just a toy, but it shows the possibility of using xdp to implement 5g upf. (NFs)
README
# upf-xdp
This program uses xdp to simply process gtpu packet.
It is just a toy, but it shows the possibility of using xdp to implement 5g upf.
## Dependencies
[libbpf](https://github.com/libbpf/libbpf)
[goebpf](https://github.com/dropbox/goebpf)### Installation
```bash
sudo apt install libbpfcc-dev
go get github.com/dropbox/goebpf
```## Component
![Component](./docs/Component.png)
## Usage
```
make
./main -h
Usage of ./main:
-elf string
clang/llvm compiled binary file (default "upf.elf")
-iface string
Interface to bind XDP UPF N3/N6
-n4addr string
N4 server socket (default "127.0.0.1:8805")
-test
mock and testing (default true)
-verbose
Enable verbose mode with debug log messages
```
## Discuss
Message routing can be forwarded directly through the xdp encapsulation layer 2 Ethernet frame without going through the protocol stack.
What is the number of tables supported by xdp?