Copyright 2014 Kenneth M. Chipps Ph.D. www.chipps.com Software Defined Networking Lab Using Mininet and the Floodlight Controller Last Update 2014.02.02.

Slides:



Advertisements
Similar presentations
Intro to Virtualization
Advertisements

How to Use Stowe School District
How to Use Google Docs and Google Drive
FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
SAM 2007 v4 The Student Experience Including SAM Projects, SAM Exams and SAM Training.
SAM 2007 v3.0 The Student Experience Including SAM Projects and Course Assess assignments.
Crack WEP Lab Last Update Copyright 2014 Kenneth M. Chipps Ph.D.
Copyright Kenneth M. Chipps Ph.D. Cisco CCNA Exploration CCNA 2 Routing Protocols and Concepts Chapter 7 RIP Version 2 Last Update.
Copyright 2014 Kenneth M. Chipps Ph.D. Software Defined Networking Lab Using Mininet and the POX Controller Last Update
Google chrome operating system
Microsoft Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
DNR-322L & DNR-326.
TRIRIGA Anywhere 10.4 Beta Registration Steps
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Creating and Publishing Your own website
Copyright Kenneth M. Chipps Ph.D. How to Use SNMP to Collect Network Data Last Update
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Thick v Thin Access Points Lab Last Update Copyright 2014 Kenneth M. Chipps Ph.D.
So – You want to learn how to put an advanced article submission (cut and paste) onto the state website. (Note: If you have not done so, you will need.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
LGC Website and Customer On-line Tools LGC RESOURCE 2014.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
How to Download and Install a Sharp Print Driver on a Mac.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
bWAPP – Bee Bug – Installation
Microsoft Internet Security and Acceleration (ISA) Server 2004 is an advanced packet checking and application-layer firewall, virtual private network.
Lab How to Use WANem Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
1 IMPORTANT NOTE  IMPORTANT NOTE not  As of this writing the default project you will download, import and use in this class is not enabled for Tomcat.
Citrix Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
Xen Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Open your web browser and navigate to protechra.webex.com Open your web browser and navigate to protechra.webex.com.
Hosted Virtualization Lab Last Update Copyright Kenneth M. Chipps Ph.D.
Creating and Publishing Your own web site PC Version SEAS 001 Professor Ahmadi.
Efficient Browser Usage Work SMARTER not HARDER..
Wiki How to masterfully create your own webpage….
Downloading and Installing Autodesk Revit 2016
This example is a step by step walkthrough for installing the SRH Front Desk printer in Windows 7 (64 Bit).
Cisco Confidential © 2010 Cisco and/or its affiliates. All rights reserved. 1 MSE Virtual Appliance Presenter Name: Patrick Nicholson.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
BIT 285: ( Web) Application Programming Lecture 15: Tuesday, February 24, 2015 Microsoft Azure Instructor: Craig Duckett.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Optimizing Your Computer To Run Faster Using Msconfig Technical Demonstration by: Chris Kilkenny.
Networks Part 3: Packet Paths + Wireshark NYU-Poly: HSWP Instructor: Mandy Galante.
ARMS Advanced Risk Management System User Documentation.
Mininet and Openflow Labs. Install Mininet (do not do this in class) Download VirtualBox Download Xming for windows (X11) Download Mininet VM for linux-ubuntu.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
So – You want to learn how to put an article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
These steps will guide you through installing the pcAnywhere Host software so that we can remote control your PC from NZ! Once installed, it will only.
1 Mapping a Drive on a USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area network,
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
ALSMS Upgrade Configuration Example Alcatel-Lucent Security Products Configuration Example Series.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Installing a Moodle Test Site The painless and easy way.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
Mininet and Openflow Labs
Intro to WordPress (Using XAMPP)
WikID installation/training
Programming Assignment
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Installing OpenRefine
Cyber Centurion V An Install Guide. Cyber Centurion V An Install Guide.
CGS 3175: Internet Applications Fall 2009
Contact Groups.
Presentation transcript:

Copyright 2014 Kenneth M. Chipps Ph.D. Software Defined Networking Lab Using Mininet and the Floodlight Controller Last Update

Objectives See what an OpenFlow GUI based controller looks like and how it works Copyright 2014 Kenneth M. Chipps Ph.D. 2

Sources This lab uses the completely setup and functional Mininet and Floodlight virtual machine from Project Floodlght at Copyright 2014 Kenneth M. Chipps Ph.D. 3

Flow of the Lab In this lab you will –Simulate a single switch, multi-host network with Mininet –Add flow rules to a flow table from a GUI based controller Copyright 2014 Kenneth M. Chipps Ph.D. 4

Anti Linux Rant Before we get to this lab which does work - not without some wasted time and considerable research, but successfully nevertheless – let me vent a bit You see I spent hours trying to create this lab using the OpenDaylight controller What a waste of time Copyright 2014 Kenneth M. Chipps Ph.D. 5

Anti Linux Rant Despite going through numerous sample labs that alleged that the OpenDaylight controller would run, l never got the whole thing to work properly The problem in each case was the idiot Linux command line Copyright 2014 Kenneth M. Chipps Ph.D. 6

Anti Linux Rant I reiterate my view that I have held from 1995 when I started using the Slackware distribution of Linux to this week’s experience with the Ubuntu distribution, which is that Linux sucks And I mean it sucks big time In short I hate Linux Have none of the idiots who develop in the Linux environment ever used Windows Copyright 2014 Kenneth M. Chipps Ph.D. 7

Anti Linux Rant A Windows install, even an Alpha or Beta version, is so simple Download an exe file, run it, you are done Besides the excessive number of steps required to install and setup OpenDaylight, it runs in Java, which creates a whole new set of problems Java has been a security risk and pain in the rear since it was invented Copyright 2014 Kenneth M. Chipps Ph.D. 8

Anti Linux Rant Even worse are all of the steps that must be done from the Linux command line in subterrain directories In the sample OpenDaylight labs among other things I am expected to change directory using a string that is 97 characters long 97 characters Notice that they cannot spell either Copyright 2014 Kenneth M. Chipps Ph.D. 9

Anti Linux Rant Here are the directory instructions –The source code of the OpenDaylight Controller is in a directory called opendaylight –In this directory (the coresponding directory in the git repository is usually the distribution/opendaylight/target/distribution.openda ylight SNAPSHOTosgipackage/opendaylight Copyright 2014 Kenneth M. Chipps Ph.D. 10

Anti Linux Rant Even if you successfully get there without a typo, the prompt is so long that you only have two characters of room to enter anything before it scrolls off to the next line Of course you then have to edit hidden files in hidden places to make Java work The suggestion was to edit these, assuming you can find them, using the vi editor Copyright 2014 Kenneth M. Chipps Ph.D. 11

Anti Linux Rant vi ?? Why don’t we just go back to living in caves Why would anyone think the command line is a suitable environment in the 21 st century Imbeciles Copyright 2014 Kenneth M. Chipps Ph.D. 12

Lab Setup Enough ranting I feel so much better now On to the lab setup Copyright 2014 Kenneth M. Chipps Ph.D. 13

Lab Setup About the time I was going to abandon this effort I decided to try the Floodlight controller I was amazed that it worked But it did So let’s see how to set it up so we can use a controller instead of the command line to enter instructions into the flow table Copyright 2014 Kenneth M. Chipps Ph.D. 14

Flow of the Lab The steps required to do this are –Download the virtual machine –Setup the virtual machine –Check the setup in Linux –Create the network –Enter flow table entries from the controller Copyright 2014 Kenneth M. Chipps Ph.D. 15

Acquire Floodlight VM The first step is to acquire the Floodlight virtual machine Unlike the convoluted setup procedure required for OpenDaylight the Floodlight folks have created a virtual machine with the Floodlight controller already installed and ready to go Smart folks The virtual machine is found here Copyright 2014 Kenneth M. Chipps Ph.D. 16

Acquire Floodlight VM – Copyright 2014 Kenneth M. Chipps Ph.D. 17

Acquire Floodlight VM Copyright 2014 Kenneth M. Chipps Ph.D. 18

Acquire Floodlight VM Click on the Download link in the menu bar Scroll down On the right side click on –Download Copyright 2014 Kenneth M. Chipps Ph.D. 19

Acquire Floodlight VM Copyright 2014 Kenneth M. Chipps Ph.D. 20

Acquire Floodlight VM Copyright 2014 Kenneth M. Chipps Ph.D. 21

Acquire Floodlight VM Copyright 2014 Kenneth M. Chipps Ph.D. 22

Acquire Floodlight VM Unzip the file Remember where you put it Copyright 2014 Kenneth M. Chipps Ph.D. 23

Setup the Virtual Machine This is a VMware virtual machine It will also run in VirtualBox Copyright 2014 Kenneth M. Chipps Ph.D. 24

Setup the Virtual Machine Once the files are unzipped they must be loaded into VMware Start VMware Player Click on –Open a Virtual Machine Copyright 2014 Kenneth M. Chipps Ph.D. 25

Setup the Virtual Machine Copyright 2014 Kenneth M. Chipps Ph.D. 26

Setup the Virtual Machine Navigate to where the vmx file is stored Click –Open The virtual machine will appear in the virtual machine list in the left panel Click on –Play the virtual machine toward the bottom of the right panel Copyright 2014 Kenneth M. Chipps Ph.D. 27

Setup the Virtual Machine Don’t’ bother with the VMware tools for Linux Once it is ready the screen should look like this Copyright 2014 Kenneth M. Chipps Ph.D. 28

Setup the Virtual Machine Copyright 2014 Kenneth M. Chipps Ph.D. 29

Setup the Virtual Machine Even though this is a VMware created virtual machine it can be opened in VirtualBox To do this download the appliance shown below this lab’s link Extract the files from the zip file just downloaded Start VirtualBox Copyright 2014 Kenneth M. Chipps Ph.D. 30

Setup the Virtual Machine Under the File menu select –Import Appliance Navigate to where the zip file was expanded Select the ovf file Click –Next Copyright 2014 Kenneth M. Chipps Ph.D. 31

Setup the Virtual Machine Once the appliance is imported select it in the left pane Click –Settings Select –Network Change the adapter to –Host-only Adapter Copyright 2014 Kenneth M. Chipps Ph.D. 32

Setup the Virtual Machine Click –OK Copyright 2014 Kenneth M. Chipps Ph.D. 33

Setup the Virtual Machine Copyright 2014 Kenneth M. Chipps Ph.D. 34

The Virtual Machine Start the virtual machine as you would any virtual machine Login using –floodlight As the username There is no password Copyright 2014 Kenneth M. Chipps Ph.D. 35

The Virtual Machine Copyright 2014 Kenneth M. Chipps Ph.D. 36

Record the IP Address Run ifconfig Write down the IP address of this virtual machine Copyright 2014 Kenneth M. Chipps Ph.D. 37

Record the IP Address Copyright 2014 Kenneth M. Chipps Ph.D. 38

Create the Network To start Floodlight at the command line enter –sudo mn This will create a network with –Controller using Floodlight –Switch named s1 –Host named h2 –Host named h3 Copyright 2014 Kenneth M. Chipps Ph.D. 39

Create the Network Copyright 2014 Kenneth M. Chipps Ph.D. 40

What is Mininet For this lab on SDN we will be using Mininet to create the SDN hardware and OpenFlow commands to define how the hardware acts Copyright 2014 Kenneth M. Chipps Ph.D. 41

What is Mininet Mininet is a network emulator, not a simulator It can be used to create virtual hosts, hubs, switches, controllers, and links The code used in Mininet can be used with no or minimal changes on real SDN OpenFlow networks Copyright 2014 Kenneth M. Chipps Ph.D. 42

Connect to the Controller To connect to the controller go to the host operating system Start a web browser Google Chrome works best for this as Internet Explorer is missing some add in as it only shows part of the page Likely something to do with Java again Copyright 2014 Kenneth M. Chipps Ph.D. 43

Connect to the Controller Enter this – Where is the IP address shown when ifconfig was run above This screen will appear Copyright 2014 Kenneth M. Chipps Ph.D. 44

Connect to the Controller Copyright 2014 Kenneth M. Chipps Ph.D. 45

Examine the Controller Let’s look around Click on –Topology This shows the network layout created by the sudo mn command Here we have one OpenFlow switch and two generic hosts Copyright 2014 Kenneth M. Chipps Ph.D. 46

Examine the Controller Copyright 2014 Kenneth M. Chipps Ph.D. 47

Examine the Controller Click on –Switches Copyright 2014 Kenneth M. Chipps Ph.D. 48

Examine the Controller Copyright 2014 Kenneth M. Chipps Ph.D. 49

Examine the Controller Click on the number in blue just below DPID This will appear It shows us the active ports and the flows being managed by the controller and sent to the switch Notice that there are none as no traffic has crossed the network as the Flows shows 0 Copyright 2014 Kenneth M. Chipps Ph.D. 50

Examine the Controller Copyright 2014 Kenneth M. Chipps Ph.D. 51

Examine the Controller Let’s cause the switch to ask the controller for instructions so that a set of flow rules will appear in the flow table This will be reactive mode since the switch will ask the controller what to do The controller will respond with a set of flow rules for the flow table Copyright 2014 Kenneth M. Chipps Ph.D. 52

Examine the Controller To cause this go to the mininet prompt and enter –h2 ping h3 Return to the virtual machine running the browser Notice the two flow entries now shown Copyright 2014 Kenneth M. Chipps Ph.D. 53

Examine the Controller Copyright 2014 Kenneth M. Chipps Ph.D. 54

Summary We now have a fully functioning Software Defined Network being controlled by an OpenFlow controller Copyright 2014 Kenneth M. Chipps Ph.D. 55