Closed swapniil closed 2 years ago
Creating an image of onos controller to support P4 runtime configuration we need to build source code with latest changes of supporting GTP Offload capability end to end.
NG-SDN Tutorial code base to create simulation: $ git clone https://github.com/opennetworkinglab/ngsdn-tutorial.git --branch advanced
$ cd ngsdn-tutorial
$ git apply ngsdn-tutorial-Patch-Enable-GTPDecap.txt
ONOS Controller code changes to support GTP-Offload in NG-SDN: $ git clone https://gerrit.onosproject.org/onos $ cd onos $ git checkout 2.2.2 $ git apply ONOS-Patch-Enable-GTPDecap.txt
Create build environment for onos controller image creation from source code:
$ cd build-image
$ mkdir img_create
$ cd img_create
# Create openjdk build image:
$ cp ../Dockerfile.openjdk-package-ready Dockerfile
$ docker image build -t azul/zulu-openjdk-ready:11 .
$ cd ..
# Create Bazel Image
$ cd img_create
$ cp ../Dockerfile.BazleImage Dockerfile
$ docker image build -t onosproject/bazel:2.2.2 .
$ cd ..
Once images are built we can start build process of onos-controller:
$ cd onos $ bash build-image.sh
onosproject/onos-gtp:2.2.2
Can check this using docker image ls command on host.
Now we are ready to create the mininet topology of GTP-Offload:
$ cd ngsdn-tutorial $ bash off-netconfig.sh
Validation of the simulation that it is handling the packet flow in GTPU:
Checkout the image GTP-Offload-Topology.JPG in the ticket to understand topology.
Run util/mn-cmd ue ping 10.0.200.
ONOS-Patch-Enable-GTPDecap.txt ngsdn-tutorial-Patch-Enable-GTPDecap.txt 1
To checkout end to end flow using the tutorial simulation we need to offload both up-link and down-link packets to be handled on the leafs. I tried to simulate it using the onos commands but it is not working at all. The docker images are not accepting the changes made to the P4 code base and app builds.
The onos controller is not accepting the flow rule post API for
"type" : "GTP_IPV4_DST"
If we push the flow
"FabricIngress.spgw_ingress.s1u_filter_table"
with"type" : "IPV4_DST"
then onos controller accpts the API but the rule will be inPENDING
status as this table requires"type": "GTP_IPV4_DST"
Can someone please update how can we change the builds to support up-link and down-link path in this simulation.