OpenFlow Study (1)--floodlight and mininet environment construction

Source: Internet
Author: User
Tags switches

A long time not to blog, mainly because of laziness. Not much nonsense to say, now let this can only record their own learning process. What's the OpenFlow architecture, and what's good for me. If you don't understand, go ahead and see. Go directly to the topic

My platform: PC (Linux ubuntu 13.10), as well as the floodlight and Mininet mentioned in the title, also use the virtual machine software, I use VirtualBox. This architecture is as follows:

The floodlight on the PC is used as the controller. Virtual machine running with mininet system (my Ubuntu 14.04), mainly used to simulate network architecture and switches

I. Installation floodlight

Note that the floodlight operation requires a Java environment, if the Java environment is not configured first. and Ant. No more talking here.

    1. 1 sudo Install build-essential  Python-dev
    2. Install Git
      1 sudo Install Git-core
    3. Installing Floodlight
      1 git clone git://github.com/floodlight/floodlight.git2 cd ~/  Floodlight3 Ant
    4. Run Floodlight
      1 Java-jar Target/floodlight.jar

      The premise is that you've installed the JDK and set up the Java environment variables.

      At this point you will see a series of outputs at the terminal stating that the operation was successful. When you open http://localhost:8080/ui/index.html in your browser, you will see

Two: Installing virtual machines and mininet

The mininet is primarily a virtual openflow switch and host node. And can construct a custom topology. Virtual OpenFlow switches are primarily based on Openvswitch.

Install VirtualBox just a word. Not here again. The main introduction is how to install and run mininet.

The most straightforward and straightforward way to do this is to download a mirror with mininet and run it directly on the virtual machine. I am

The main reference website of the guidance, the address is as follows: http://mininet.org/download/

    1. First download a mirror with mininet in https://github.com/mininet/mininet/wiki/Mininet-VM-Images I downloaded the 64-bit version of 14.04. Because it looks like the previous version update source is not good. Trouble. It's better to go straight to the latest.
    2. After downloading, remember must follow the following way to operate, or will error, the official website said this is a bug, will be repaired later

I'll write the name myself, it's mini.

3. Keep the next step until

Select the virtual machine that you have just downloaded. Click Create.

Here is the important point is that the default network connection mode is NAT, so that the host is not ping the virtual machine, this needs to set up a dual network card, SSH login. Or you can do it directly on a virtual machine. Here are the steps.

Select Management-"Global Settings-" Network, click on the plus sign, will appear, OK.

Three booting and configuring the virtual machine

The default account is mininet password mininet, log in after the following interface

Enable ET1 NIC

1 sudo dhclient eth1

When you run ifconfig-a again, you'll see two NICs.

One of the eth1 is your SSH address. Of course, we also need to add the configuration of the second NIC to the mininet network configuration file, so we will always see two NICs after rebooting.

1 sudo VI /etc/network/interfaces

Then join:

1 Auto Eth1 2 iface eth1 inet DHCP

OK mininet installation is complete, then let's Test it out!

Four: Testing

1. Running in Mininet

sudo mn--controller=remote,ip=yourip,port=6633

When you look at the page you just opened, you will find:

This command creates a switch and two hosts, as well as other commands such as

mininet>nodesmininet>dumpmininet>netmininet>pingall

Can be tested under, for example, net.

This can be seen in the network of the extension structure, probably as shown above. The concrete will not draw.

well , the environment will be well-equipped. Other questions, let's talk about it next.

OpenFlow Study (1)--floodlight and mininet environment construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.