Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab2: SDN Assignment (Due: 5 PM, November 17, Wednesday, 2021) 40 points Goal Understanding how SDN works and gaining hands-on experience through Mininet and POX
Lab2: SDN Assignment (Due: 5 PM, November 17, Wednesday, 2021) 40 points
Figure 1: 3 Hosts - 1 Switch Topology
Figure 2
Figure 3: Ping Response
Figure 4: Iperf Result That is a straightforward example of how you can create and run an SDN network using Mininet. Next, you will learn how to control the SDN network using a POX controller.
Figure 5: POX controller on start up
Figure 6: A switch connected to POX controller
- Goal
- Projet Description
- Setup
- You will need to download the following required components:
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Mininet:
- Follow the instruction here: https://github.com/mininet/openflow-tutorial
- Creating an SDN Network with Mininet
- (S1) Open a new terminal window in your computer and SSH into the Mininet VM with the following command:
- In the terminal window, enter:
- (S2) Open another SSH terminal window and enter:
- Note: You want to run the controller before creating the network (with Mininet). Otherwise, there will be an error message stating that Mininet cannot connect to the controller.
- At this point, there are several things you can do:
- If you had started capturing packets with Wireshark (you can do this by running the following command in a separated SSH terminal window: $ sudo Wireshark & -- Note: You need to enable X11 forwarding for this to work), you would be able to observe the Start-up exchange between the Controller and Switch (when applying the OpenFlow OF protocol filter on Wireshark).
- You can also enter the following command in a separated SSH terminal window: $ sudo ovs-ofctl show s1
- (S4) Next, you can try to test the connectivity between the hosts using the ping command. In the window running Mininet, enter: mininet> h1 ping c3 h2. This will generate 3 ICMP messages from host 1 to host 2. If there is a path from h1 to h2, you will be able to obtain some statistics of that path. An example of this is shown in Figure 3.
- (S5) Lastly, you can try to check the network's current performance with the command iperf. This Mininet command will run an iperf TCP server on one virtual host and an iperf TCP client on a second virtual host. Once connected, they will exchange packets with each other and report the results. An example of this is shown in Figure 4.
- Using POX Controller with Mininet
- To start, open a SSH terminal window and enter:
- (S7) Open another SSH terminal window and enter:
- Next, we are going to verify the hub behavior. In the mininet window, please type:
- (S8) & (S9) In the xterms for h2 and h3, please type:
- (S10) In the xterm for h1, please type:
- Questions
- Use the following command to create a network:
- Start the POX SDN controller with the hub module:
- Close the current controller (with CTRL + C) and mininet (type exit). Start the POX SDN controller again, but with the l2_learning module this time:
- Deliverables
- Do practice the problems from S1 to S10 and submit a screen shot of each problem.
- Answer all questions from Q1 to Q6 and submit a screen shot of each problem.
Attachments:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started