Build a three-point virtual network based on Ovs,ovx,pox on mininet

Source: Internet
Author: User

This test is based on the Mininet platform, using OvS to create 1 new switches in the platform, pox as the controller, OVX as the middle tier for virtualization.

Basis please refer to http://ovx.onlab.us/getting-started/tutorial/

But since the above is just a straight line topology, and the middle does not pass through the nodes, we are going to build a complex topology, such as the red-labeled topology

First we will modify the pox l2_learing, that is, the Host,switch and path information written in

Next Turn on Ovx,pox

The specific code in/ovx/utils/is as follows:

Create a new virtual network and set the IP domain of the controller and host

Python ovxctl.py-n createnetwork tcp:192.168.100.107:6633 10.0.0.0 16

New Virtual Switch dpid by switch

Python ovxctl.py-n createswitch 1 00:00:00:00:00:00:02:00
Python ovxctl.py-n createswitch 1 00:00:00:00:00:00:05:00
Python ovxctl.py-n createswitch 1 00:00:00:00:00:00:08:00

Add port for each virtual switch, specify physical port, note the virtual port_id returned

Python ovxctl.py-n createport 1 00:00:00:00:00:00:02:00 5
Python ovxctl.py-n createport 1 00:00:00:00:00:00:02:00 6

Python ovxctl.py-n createport 1 00:00:00:00:00:00:05:00 5
Python ovxctl.py-n createport 1 00:00:00:00:00:00:05:00 6

Python ovxctl.py-n createport 1 00:00:00:00:00:00:08:00 5
Python ovxctl.py-n createport 1 00:00:00:00:00:00:08:00 7

Connection Switchs, here 10 10 is because we have changed the protocol and supported Ooe.
Python ovxctl.py-n connectlink 1 00:a4:23:05:00:00:00:01 2 00:a4:23:05:00:00:00:02 1 SPF 1
Python ovxctl.py-n connectlink 1 00:a4:23:05:00:00:00:01 1 00:a4:23:05:00:00:00:03 1 SPF 1
Python ovxctl.py-n connectlink 1 00:a4:23:05:00:00:00:02 2 00:a4:23:05:00:00:00:03 2 SPF 1

Create a new port and connect to host via the port

Python ovxctl.py-n createport 1 00:00:00:00:00:00:02:00 1
Python ovxctl.py-n connecthost 1 00:a4:23:05:00:00:00:01 3 00:00:00:00:02:01

Python ovxctl.py-n createport 1 00:00:00:00:00:00:05:00 2
Python ovxctl.py-n connecthost 1 00:a4:23:05:00:00:00:02 3 00:00:00:00:05:02

Python ovxctl.py-n createport 1 00:00:00:00:00:00:08:00 3
Python ovxctl.py-n connecthost 1 00:a4:23:05:00:00:00:03 3 00:00:00:00:08:03

Turn on the virtual network

Python ovxctl.py-n startnetwork 1

We can view flow table information in Mininet dump_flows

ATL------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
cookie=0x100000000, duration=10.141s, table=0, N_packets=0, N_bytes=0, idle_timeout=10000,priority=42,ooe,in_port=5 , dl_src=a4:23:05:01:00:00,dl_dst=a4:23:05:10:00:06,ooe_dst=0x2 Actions=output:7
CLE------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
EWR------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
IAD------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
cookie=0x100000003, duration=9.167s, table=0, N_packets=0, n_bytes=0, Idle_timeout=10000,priority=42,ooe,in_port=5, dl_src=a4:23:05:01:00:00,dl_dst=a4:23:05:10:00:06,ooe_dst=0x2,ooe_start=11,ooe_length=2 actions=mod_dl_src:0 0:00:00:00:02:01,mod_dl_dst:00:00:00:00:05:02,output:2
IAH------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
cookie=0x100000000, duration=10.177s, table=0, N_packets=0, N_bytes=0, idle_timeout=10000,priority=42,ooe,in_port=5 , dl_src=a4:23:05:01:00:00,dl_dst=a4:23:05:10:00:06,ooe_dst=0x2 Actions=output:7
LAX------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
cookie=0x100000000, duration=10.184s, table=0, N_packets=0, N_bytes=0, idle_timeout=10000,priority=42,ooe,in_port=5 , dl_src=a4:23:05:01:00:00,dl_dst=a4:23:05:10:00:06,ooe_dst=0x2 Actions=output:7
MCI------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
ORD------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
SEA------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
SFO------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):
cookie=0x100000003, Duration=10.232s, table=0, N_packets=0, N_bytes=0, idle_timeout=10000,priority=42,ooe,in_port=1 , dl_src=00:00:00:00:02:01,dl_dst=00:00:00:00:05:02,ooe_dst=0x2 ACTIONS=MOD_OOE_START:11,MOD_OOE_LENGTH:2,MOD_DL _src:a4:23:05:01:00:00,mod_dl_dst:a4:23:05:10:00:06,output:6
SLC------------------------------------------------------------------------
Nxst_flow reply (xid=0x4):

Build a three-point virtual network based on Ovs,ovx,pox on mininet

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.