POF (Protocol oblivious Forwarding) environment Construction (original, reprint please specify)

Source: Internet
Author: User

The construction of POF environment one. General overview

The architecture PC1 is the controller, and the PC2 is the switch. PC3 is a server/client (a PC with two virtual machines, you need to set the network connection mode to bridge.) According to the network segment of the laboratory to assign IP, the following chapters are detailed), in this build tutorial, controller for the host, PC2 and PC3 for the host of two virtual machines.

Two Configuration of the Java environment (i) Java environment configuration

Since the controller is floodlight version modified, the host hosting the controller must have a Java development environment. The configuration method is as follows:

1. Open the http://www.oracle.com/technetwork/java/javase/downloads/index.html in the browser, find the JDK download and click (version to be above 1.7, that is Java se7u**) Select here

2. Select Accept, and then download the corresponding JDK according to your Linux version, such as 64-bit, download the fourth compressed package in the red box, and 32 bits in the next red box in the second compressed package:

3. After the download is complete, CD to the file download folder, (this tutorial is the default download directory: Download folder) and unzip, enter the command:

4. Create a Java folder under/USR and unzip the folder MV past,

5. Edit the/etc/profile file, add the following command to the end of the file, save and close it. Please change jdk1.7.0_71 to the folder name that you unzipped:

Export java_home=/usr/java/jdk1.7.0_71

Export Jre_home= $JAVA _home/jre

Export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH

Export path= $JAVA _home/bin: $JRE _home/bin: $PATH

6. Log out and log back in, enter in Terminal: java-version, if the output is as follows, it proves the configuration is successful:

(ii) Eclipse installation

1. Open http://www.eclipse.org/downloads/in the browser and locate the Eclipse IDE for Java EE developers, which is downloaded according to the number of Linux bits:

2. Click Download to download and save to the download folder:

3. After the download is complete, CD to the download folder, enter the following command to extract:

and give the/opt folder 777 permissions, the uncompressed file mv past:

The installation configuration for the Java environment is now complete.

Three Installation and configuration of the virtual machine (i) VirtualBox installation and startup

1. Enter the sudo apt-get install VirtualBox in the terminal to install:

2. After the installation is complete, enter VirtualBox in the terminal to start the VirtualBox:

(ii) Installation and start-up of virtual machines

In the architecture of the overall overview, it has been mentioned that two virtual machines, one switch and one server/client are required. The following is the first switch installation:

1. After starting VirtualBox, click New, then enter the name here: Pof_swich, type and version (according to your ISO image, here is ubuntu13.10 64bit), then click Next:

2. Memory size, default 512M, click Next:

3. Virtual hard disk, select Create virtual hard disk now, then click Create:

4. File type, default first, then click Next:

5. Select: Dynamic assignment, click Next:

6. File location and size, default name is OK, then click Create:

7. Left-click on the virtual machine you just created, then tap settings:

8. Left-click on the storage, controller IDE: No platters, then click on the small disc icon to the right of the assigned optical drive to load the image, select the location of the image (here is the 13.10, red box shown), click Open:

9. Left-click the network, select the connection mode: Bridge network card, interface name Select Eth0, then click OK:

10. Click Start, start the virtual machine, the selection of the Startup Disk interface, as previously selected, directly click to start the line:

11. Language Select Chinese Simplified, then click Install Ubuntu, then do not select Install to download the update, click Continue:

12. Select default: Clear the entire disk and install Ubuntu, then click Install Now:

The following step is to click Next, there are steps you need to create a user name and password, not mentioned here.

13. After installation, start the virtual machine, configure the network (if the lab is DHCP, ignore this step, for non-DHCP) after logging into the system, click the Settings icon on the left, then left click on the network, then click on the cable, options:

14. Network configuration: Select IPV4 settings, select Manual in the method, then click Add, enter address, subnet mask and gateway, finally enter the DNS server, click Save:

Because the server/client virtual machine is installed as a method, just change the name Pofclient (custom) in the first step and not repeat it here.

At this point, the necessary basic facilities have been set up, the following for the installation of POF environment.


Four. Construction of the POF test Environment (a) controller installation and start-up

We do not need to configure the host as Controller,controller, directly download the code, import Eclipse boot can:

1. Open in Browser: http://www.poforwarding.org/downloads, download Pofcontroller Source Code:

2. CD to the download folder, then unzip, enter the code shown in the terminal:

3. Open the/opt/eclipse folder, double-click the Eclipse executable file, start Eclipse, select Good workspace, enter the workbench, right click on the left margin to select Import, the following interface appears, select General, Existiing Projects into Workspace, click Next:

4. Select the Pofcontroller folder you just unzipped, click OK, then click Finish:

5. Start the controller, select Pofcontroller in the left side of the project and right-click, select "Run asàjava Application", the following interface appears, in the matching items select "main– Net.floodlightcontroller.core ", click OK to start:

When the following interface appears to indicate that the controller is running successfully:

(ii) switch installation and start-up

1. Start the virtual machine Pofswitch, log into the interface, open in the browser: http://www.poforwarding.org/downloads download Pofswitch Source Code:

2. CD to the download folder, unzip the downloaded code, enter the following code:

3. CD to the extracted source folder, configure, compile the installation steps, and then enter the following code:

Note: Before entering, if you have not installed Build-essential, then run in the terminal: sudo apt-get install build-essential, then proceed to the following steps.

At this point, the Pofswitch has been installed.


(iii) configuration of the Server/client

The main function of Server/client is to construct a package, send and analyze it, so it does not require too much configuration. The configuration is as follows:

1. Install Wireshark. Open the virtual machine, log into the interface, open the terminal, enter the terminal in such as code:

The following prompt will appear, enter Y, and tap OK key:

Until the end, Wireshark has been installed, the terminal input sudo wireshark can be run.

2. Install Ostinato. Ostinato is a professional contract tool that can construct packets. The installation method is as follows: find the corresponding code according to your own version number and enter it sequentially.

For Xubuntu 14.10 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_14.10//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_14.10/Release.keysudo Apt-key Add- < Release.key

For Xubuntu 14.04 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_14.04//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_14.04/Release.keysudo Apt-key Add- < Release.key

For Xubuntu 13.10 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_13.10//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_13.10/Release.keysudo Apt-key Add- < Release.key

For Xubuntu 13.04 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_13.04//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_13.04/Release.keysudo Apt-key Add- < Release.key

For Xubuntu 12.10 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_12.10//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_12.10/Release.keysudo Apt-key Add- < Release.key

For Xubuntu 12.04 Run the following:

sudo sh-c "Echo ' Deb http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_12.04//' >>/ Etc/apt/sources.list.d/ostinato.list "sudo apt-get updatesudo apt-get install Ostinato

You can add the repository key to apt. Keep in mind, the owner of the keys may distribute updates, packages and Reposit Ories that your system would trust (more information). To add the key, run:

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_12.04/Release.keysudo Apt-key Add- < Release.key

Version 13.10: In the terminal, enter: sudo sh-c "echo" Deb Http://download.opensuse.org/repositories/home:/pstavirs:/ostinato/xUbuntu_ 13.10//' >>/etc/apt/sources.list.d/ostinato.list ' sudo apt-get update

The following error is prompted, followed by the code given above to enter

wget Http://download.opensuse.org/repositories/home:pstavirs:ostinato/xUbuntu_13.10/Release.keysudo Apt-key Add- < Release.key

And then enter the sudo apt-get update

sudo apt-get install ostinato

3. After installation, enter sudo ostinato in the terminal, start the software,


Five. Pofcontroller and Pofswitch connections

In the fourth section of the installation controller, we have activated the controller. Next we'll start switch to connect the controller.

1. In the terminal of the virtual machine pofswitch, enter: sudo pofswitch-p 6633-i ipaddr, then tap OK key.

Here,-P indicates the port, IPADDR represents the controller's IP address, such as 10.10.16.199

2. If the following prompt indicates a successful connection:

Six Summarize

The POF test environment has been installed and is limited to this tutorial. Test the tutorial in the next article. For documents, please leave a message mailbox

POF (Protocol oblivious Forwarding) environment Construction (original, reprint please specify)

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.