CSN305 Lab 7

docx

School

Seneca College *

*We aren’t endorsed by this school

Course

305

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

7

Uploaded by AmbassadorUniverseWasp29

Report
CSN305 - Lab 7 – OpenFlow Analysis Student Full Name: Abdulmanan Khalid _________/10 Marks Objective To analyze OpenFlow message formats and procedures using Wireshark captures Instructions Use a different font and color to write your answers . Do not erase anything from this document. Resize the screenshots to make them easily readable. Procedure: 1. You can use the same ODL and Mininet installations as you did in previous labs. 2. Install Wireshark on a VM. There are two ways to do it: Install Wireshark on the same VM with ODL, or Install Wireshark on a separate Windows 10 VM. Choose one of these two methods (a or b): (a) Let’s follow these steps to install Wireshark on ODL VM (Ubuntu VM): $ sudo apt update $ sudo apt install wireshark $ sudo wireshark (b) To install Wireshark on a new Windows 10 VM: Simply start your Windows 10 VM, go to wireshark.org/downloads and download the Wireshark setup file for 64bit Windows OS. If you use VirtualBox, be sure that in Network setting of a VM which contains Wireshark, enable the Promiscuous mode: pg. 1
CSN305 - Lab 7 – OpenFlow Analysis Insert here the screenshot of your Hypervisor showing the VMs you are using. Be sure that you also show at least one VM background. [One mark] 3. Now you have ODL, Mininet and Wireshark ready to do this experiment. Insert here the screenshot of Wireshark running inside your VM. [One mark] 4. Start Mininet and create a topology of a single switch and two hosts. In the previous lab you used the command sudo mn --controller=remote,ip=<controller IP address> --topo=linear,2 Use the appropriate IP address and, the correct topology. Try single,2 instead of linear,2 . pg. 2
CSN305 - Lab 7 – OpenFlow Analysis Insert a screenshot of the new topology. [One mark] 3. Use a Wireshark filter to capture traffic with openflow_v4 (means OpenFlow version 1.3) Use one of the capture filter syntax rules from https://wiki.wireshark.org/OpenFlow . What is the difference between the TCP port 6633 and the TCP port 6653? TCP 6633 was used as the primary port for OpenFlow connections in versions 1.0 & 1.1. However, with the introduction of OpenFlow 1.3, 6653 became the recommended TCP port to use in OpenFlow connections. OpenFlow 1.4 must use port 6653. pg. 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
CSN305 - Lab 7 – OpenFlow Analysis Insert here the screenshot showing the only the filtered traffic [One mark] 4. Capture and open at least one OpenFlow HELLO messages. Identify IPs, port#, details. The source IP is 192.168.218.130 which is the IP address of the controller. The Destination IP is 192.168.218.135 of the switch. The source port is 6653. The Destination port is 48240. The length of the packet is 16 bytes. Transaction ID is 21. pg. 4
CSN305 - Lab 7 – OpenFlow Analysis Insert here a screenshot of one of the captured HELLO messages [One mark] 5. Which features are replied to controller by the switch? The features which are replied to controller by the switch are number of buffers, number of tables, flow stats, table stats, port stats, group stats, queue stats, blocked ports etc. [One mark] 6. The switch is expected to send port-status messages to the controller as port configuration state changes. It usually is shown in a type=12 OpenFlow message. See the example below: pg. 5
CSN305 - Lab 7 – OpenFlow Analysis Replace this screenshot with yours. Find the status of the switch ports in your topology. Are they ACTIVE or DOWN? Why? The switch ports are active in my topology. [One mark] Do the ping from h1 to h2. Use a command like mininet>h1 ping h2. Is it successful? Yes, it is successful. pg. 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
CSN305 - Lab 7 – OpenFlow Analysis Insert here the screenshot of the ping command output. Check the ports again, are they ACTIVE now? Yes [One mark] 7. After doing PING, an ARP request goes to the controller from the switch, why? Because the switch lacks the flow entry for the packet, it sends the packet to the controller. The controller then handles the arp request to enable communication between hosts . [One mark] 8. Explain the details of that packet. It’s a TCP packet. The source IP is 192.168.218.135 of the switch. The destination IP is 192.168.218.130 of the controller. The source and destination ports are 48240 and 6653. The payload is 84 bytes. [One mark] To submit: 1. Be sure that you wrote your full name at the beginning of this document. (10% deducted if you do not write your name) 2. Rename this report file as LastNameFirstName_CSN305Lab7 and save it as PDF. Upload this document including all your answers and screenshots. (10% deducted if this file is missed in your submission or wrong name is used) 3. Save the Wireshark capture as LastNameFirstName_CSN305Lab7 . Upload this document along with the previous file using the same submission. (10% deducted if this file is missed in your submission or wrong name is used). pg. 7