SDN second job

## 1 Using mininet create a topology, topology requires support OpenFlow 1.3 protocol, host name, name, and switch port mapping is correct, given topology Mininet the results show port connections

Create a topology

Requirements topology supports OpenFlow 1.3 protocol

Click on run

Display port connections

## 2 Open vSwitch made directly in the flow table to achieve the following connectivity requirements, issued itemizing the meaning flow table ## h1 - h4 interworking ## h2 - h5 interworking ## h3 - h6 interworking The remaining ## host unreasonable SDN second job

Each of the three hosts within the network provided a vlan (independent vid), s1 packets marked vlan Tag from the port 4 to the forwarding actions push_vlan s2 is laminated into the outer layer packet vlan tag, need openflow1.1 above compatible ps: set field value of 4096 + vlan_id, and vlan priority of 0, i.e. 4096-8191, corresponding to vlan_id 0-4095 sudo ovs-ofctl add-flow -O OpenFlow13 s1 in_port=1,actions=push_vlan:0x8100,set_field:4097-\>vlan_vid,output:4 sudo ovs-ofctl add-flow -O OpenFlow13 s1 in_port=2,actions=push_vlan:0x8100,set_field:4098-\>vlan_vid,output:4 sudo ovs-ofctl add-flow -O OpenFlow13 s1 in_port=3,actions=push_vlan:0x8100,set_field:4099-\>vlan_vid,output:4

Strip_vlan operation is stripped off the packet vlan tag s1 inner and outer layers of the received data packet is removed vlan tag, then according dl_vlan (original packet vlan_id), forwarding to the designated port (note that here also coupled -O OpenFlow13, or errors occur *** Unknown command: sudo ovs-ofctl add-flow s1 in_port = 4, dl_vlan = 1, actions = strip_vlan, output: 1)

sudo ovs-ofctl -O OpenFlow13 add-flow s1 in_port=4,dl_vlan=1,actions=strip_vlan,output:1 sudo ovs-ofctl -O OpenFlow13 add-flow s1 in_port=4,dl_vlan=2,actions=strip_vlan,output:2 sudo ovs-ofctl -O OpenFlow13 add-flow s1 in_port=4,dl_vlan=3,actions=strip_vlan,output:3

Similarly s2 sudo ovs-ofctl add-flow -O OpenFlow13 s2 in_port=1,actions=push_vlan:0x8100,set_field:4097-\>vlan_vid,output:4 sudo ovs-ofctl add-flow -O OpenFlow13 s2 in_port=2,actions=push_vlan:0x8100,set_field:4098-\>vlan_vid,output:4 sudo ovs-ofctl add-flow -O OpenFlow13 s2 in_port=3,actions=push_vlan:0x8100,set_field:4099-\>vlan_vid,output:4 sudo ovs-ofctl -O OpenFlow13 add-flow s2 in_port=4,dl_vlan=1,actions=strip_vlan,output:1 sudo ovs-ofctl -O OpenFlow13 add-flow s2 in_port=4,dl_vlan=2,actions=strip_vlan,output:2 sudo ovs-ofctl -O OpenFlow13 add-flow s2 in_port=4,dl_vlan=3,actions=strip_vlan,output:3

## 3 Direct View vSwitch flow table in the Open, OVS submit the results of the query command s1 flow table sudo ovs-ofctl -O OpenFlow13 dump-flows s1

S2 query flow table sudo ovs-ofctl -O OpenFlow13 dump-flows s2

## 4. Submit host connectivity test results verify the validity of the flow table

## 5 Using Wireshark packet capture, analysis verify that a particular message

Guess you like

Origin www.cnblogs.com/jjsgxty/p/11817132.html