-
Notifications
You must be signed in to change notification settings - Fork 0
Intra site routing (Example 1)
In this example, we will show you how can you use OSDF application to configure a leaf-spine network topology and route different types of traffic between a set of end hosts which belong to the same region. We assume that all of the network switches in the given topology belong to the same region as we illustrate here:
- First change the current directory to the example1 directory using the following command:
- cd OSDF-REACTIVE-APP/osdf-reactive/src/main/java/org/osdfreactive/tools/mininet/example1
- Execute the following scripts from two separate terminals to setup a mininet simulation scenario which simulates a leaf-spine network topology, define a region of network swtiches that we call it siteA in this example, and post configuration details using REST API:
- sudo python leaf_spine.py
- leafspineregions.sh
- sudo python config.py
3- Deactivate onos reactive forwarding application using the following command:
- app deactivate org.onosproject.fwd
4- Suppose we want to configure the given network based on the following high level network polices:
- route ping traffic in siteA using the default priority
- route web traffic in siteA using priority 100
To do so, we should execute the following commands from onos cli:
- intra-route -a PING -region siteA policy1
- intra-route -a WEB -region siteA -p 100 policy2
5- After the above steps, two hosts should be able to ping each other and send web traffic to each other.
6- For the testing purposes, you can use iperf from mininet command line to send TCP traffic on port 80 between two end hosts as follows:
- xterm h1
- xterm h4
- From h1 terminal: sudo iperf3 -s -p 80
- From h4 terminal: iperf3 -c 10.0.0.1 -t 100 -i 1 -p 80