Skip to content

feat(fed): Add framed routing docker-compose file and config

Stefan Spettel requested to merge framed_routing_feature into develop

Changes

  • Add docker-compose file for framed routing config
  • Add framed routing config
  • Provision IMSI 208950000000032 with a framed route in MySQL DB

use this MR for UPF: oai-cn5g-upf!57
use this MR for SMF: oai-cn5g-smf!274

Test with Simple Switch

Use docker-compose-basic-nrf-framed-route.yaml to start the CN
Use docker-compose-ueransim-framed-route.yaml to start UERANSIM

To create a framed routing scenario the following steps are required

oai-ext-dn setup:

add routing:

docker exec -it oai-ext-dn ip route add 192.168.128.0/24 via 192.168.70.134 dev eth0

ueransim setup:

setup subnet IP address:

docker exec -it ueransim-fr ip addr add 192.168.128.1/24 dev uesimtun0

add routing:

docker exec -it ueransim-fr ip rule add from 192.168.128.1 lookup rt_uesimtun0
docker exec -it ueransim-fr ip route add 192.168.128.1 dev uesimtun0 table rt_uesimtun0

route entry for ping 8.8.8.8.:

docker exec -it ueransim-fr ip route add 8.8.8.8 via 12.1.1.2 dev uesimtun0 src 192.168.128.1

Test with ping

docker exec -it ueransim-fr ping -I 192.168.128.1 8.8.8.8
docker exec -it oai-ext-dn ping 192.168.128.1

Test with eBPF

Use docker-compose-basic-nrf-ebpf-framed-route.yaml to start the CN
Use docker-compose-ueransim-ebpf-framed-route.yaml to start UERANSIM

To create a framed routing scenario the following steps are required

oai-ext-dn setup:

add routing:

docker exec -it oai-ext-dn ip route add 192.168.128.0/24 via 192.168.72.129 dev eth1

add NATing:

docker exec -it oai-ext-dn iptables -t nat -A POSTROUTING -s 192.168.128.0/24 -o eth2 -j SNAT --to-source 192.168.70.135

ueransim setup:

Same as for simple switch

Test with ping

docker exec -it ueransim-fr ping -I 192.168.128.1 8.8.8.8
docker exec -it oai-ext-dn ping 192.168.128.1
Edited by Lukas Rotheneder

Merge request reports

Loading