Version 4 (modified by Nabeel Akhtar, 23 months ago) (diff)


NFV Tutorial: Managing a Virtual Network Function using SDN and Control Theory

Image Map

Part II: Execute

1. Login to the hosts

Open the following windows:

  • one window with ssh into controller
  • one window with ssh into OVS
  • one window with ssh into s1
  • one window with ssh into VNF1
  • one window with ssh into VNF2
  • one window with ssh into destination

2. Configure and initialize services

2.1. Use a simple learning switch controller

This is a very simple example where we are going to run a learning switch control to forward traffic from s1 to VNF1.

  1. Start a ping from s1 to VNF1 in the window of s1, which should timeout, since there is no controller running.

ping vnf1 -c 10

  1. Run the following command in the controller window to start the simple learning controller:

/tmp/ryu/bin/ryu-manager --verbose /tmp/ryu/ryu/app/

  1. Now ping again from s1 to VNF1, the ping should work.
  1. Stop the Ryu controller by typing Ctrl + c.
  1. Run the following command in the OVS window to flush all the forwarding rules installed on the OVS node.

sudo ovs-ofctl del-flows br0

2.2 NFV OVS controller

Next we are going to run a different Ryu controller that will install OpenFlow rules to support NFV load balancing as well as handling intrusion. With this controller, the traffic shall go from a source to destination, and duplicate packets are sent to one of the IDS nodes (VNF1 or VNF2) for intrusion detection. The picture below shows a red line representing traffic going from source1 to destination, and the green line represents the duplicate traffic that is sent to VNF1 for intrusion detection.

3. Execute Experiments:

3.1. First we need to download the source code and configuration files for the NFV Ryu controller onto the controller VM. In the window of controller, run the following:

  • wget
  • chmod 755
  • ./

3.2. Now you should have all files needed for the NFV Ryu controller. Open nfv.config file to configure the system parameters. You can use any editor to edit the file, and we use nano here as an example.

  • nano /tmp/ryu/ryu/app/nfv.config

3.3. You will see the details of this configuration file as follows. Change the values of vnf1_interface and vnf2_interface to the values that you noted down in Section 3.3.1 in the Design/Setup section of this tutorial. These values will tell the controller which interfaces are connected to VNF1 and VNF2.

Experiment 1: Load Balancing using Round Robin Control with Ryu Controller
Experiment 2: Load Balancing using Proportional Integral (PI) Control with Ryu Controller
Experiment 3: Handling Intrusion with Ryu Controller

Next: Finish

Attachments (2)

Download all attachments as: .zip