Today, we finally finished finishing the mininet part.
First of all, this section is divided into two elements, one is a custom topology, and the other is a custom flow table.
1. Open Ubuntu.
2. Create a new terminal and enter Java-jar Target/floodlight.jar to start the floodlight service. You can open the UI side of the Web page to view topologies and hosts.
3. Create a new terminal, enter the./pox/pox.py Forwarding.hub to start the Monitoring setup link. The Pox controller can release the flow meter to the openflow switch. Forwarding.hub This component adds a flood wildcard rule to each switch, which is equivalent to the Ethernet hub.
4. Create a new terminal, first verify that the Mininet custom topology can communicate with each other.
Code: sudo Python run.py. Establish a simple topological structure
Mininet>pingall; can see that each host can communicate with each other.
5. Verify that the streaming table can be customized for communication. If connection refused, first set up pox monitoring.
Code: sudo python flow1.py; display write to three flow table rules.
sudo mn--topo single,3--controller=remote--ip=127.0.0.1;
mininet>pingall; can see not ping pass.
However, according to the flow table rules, forwarding to host 1 can be ping-pass, the rest is discarded.
That is H2/H3 PING-C3 H1 can succeed.
And it should be noted that the forwarding time is significantly reduced, it should be stipulated that there is no default forwarding delay after the exit.
Mininet Partial Finishing