Commit 6337046a authored by Rohan's avatar Rohan Committed by Rohan
Browse files

Documentation updated

parent 0ad68c28
......@@ -5,7 +5,7 @@ $ git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp.git
$ cd oai-cn5g-upf-vpp
$ git checkout vpp-upf
$ git checkout develop
```
# 2. Generic Parameters #
......
# VPP-UPF Installation
# VPP-UPF Native Installation
Tested and validated on Ubuntu Bionic arch amd64.
......@@ -10,7 +10,7 @@ $ git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp.git
$ cd oai-cn5g-upf-vpp
$ git checkout vpp-upf
$ git checkout develop
```
## Install VPP-UPF
......
<br/>
<br/>
<br/>
// Describe VPP usage with veth pair and requirement of three veth pair/linux interfaces.<br/>
<br/>
UPF sould have at least three interfaces viz. access, core and sgi (or N3, N4 and N6/N9 respectively).<br/>
Here I have three interfaces to docker container. We rename them just for sec of simplicity. There is <br/>
additional route added for UE traffic 10.10.10.0/24 network <br/>
UPF sould have at least three host or veth interfaces for viz. access, core and sgi (or N3, N4 and N6/N9 respectively).
Here we have three interfaces to docker container. We rename them just for sec of simplicity. There is
additional route added for UE traffic 10.10.10.0/24 network via sgi interface as gateway.<br/>
<br/>
Below is sample interfaces configuration for host machine/container -
<br/>
```bash
......@@ -24,8 +24,8 @@ ip link set sgi up
ip route add 10.10.10.0/24 via 192.168.63.198 dev sgi
ip route add 192.168.61.0/24 dev core
ip route add 192.168.62.0/24 dev access
ip route add 192.168.61/24 dev core
ip route add 192.168.63.0/24 dev sgi
```
<br/>
<br/>
<br/>
Below is sample vpp-upf configuration. We use at lease three veth-pairs as UPF interfaces (e.g. N3, N4, N6/N9 etc). <br/>
We need create/use a host interface that will attach to a linux AF_PACKET interface, one side of a veth pair. The veth pair or host interaface must already exist. Once created, a new host interface will exist in VPP with the name &#39;<em>host-<ifname></em>&#39;, where &#39;<em><ifname></em>&#39; is the name of the specified veth pair. Use the &#39;<em>show interface</em>&#39; command to display host interface details. <br/>
<br/>
Below is sample vpp-upf configuration. We use at least three veth-pairs as UPF interfaces (e.g. N3, N4, N6/N9 etc). <br/>
<br/>
```bash
ip table add 1
ip table add 2
......@@ -12,19 +14,19 @@ ip table add 2
####### Create N4 interface
create host-interface name core
set interface ip table host-core 0
set interface ip address host-core 192.168.61.201/26
set interface ip address host-core 192.168.61.201/24
set interface state host-core up
####### Create N3 interface
create host-interface name access
set interface ip table host-access 1
set interface ip address host-access 192.168.62.201/26
set interface ip address host-access 192.168.62.201/24
set interface state host-access up
####### Create N6 interface
create host-interface name sgi
set interface ip table host-sgi 2
set interface ip address host-sgi 192.168.63.201/26
set interface ip address host-sgi 192.168.63.201/24
set interface state host-sgi up
####### Add ip routes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment