WS2-NetVirt SDN
WS2-NetVirt SDN
2. Try the following commands in the Mininet CLI to get an understanding of the network and
fill in the blanks:
mininet> nodes
mininet> net
mininet> dump
1
4Arctic
4. Check the flow table of the switch, Can you explain the reason for what you see?
mininet> dpctl dump-flows
1. Minimal
Minimal topology is very simple topology that contains 1 OpenFlow switch and 2 hosts. It
also creates links between switch and two hosts.
Use the command sudo mn --topo minimal and report the configuration with different
links and used interfaces.
2. Single
It is a simple topology with one OpenFlow switch and k hosts. It also creates a link between
switch and k hosts. Use the command sudo mn –-topo single,4 to create a network
with 4 hosts. You should report the topology and indicate different links, used interfaces and
configuration.
3. Reversed
2
4Arctic
5. Tree
Tree topology contains k levels and 2 hosts are attached to per switch.
Use the command mn --topo tree,3 , to create a topology with 3 levels. You should
report the topology and indicate different links, used interfaces and configuration.
You can also configured that topology based on the parameters that are to be pass to it, and
reuse that topology for multiple experiments.
3
4Arctic
In the given Python code, There are number of classes, functions, methods and variables.
3. There are two methods to add flow entries into flow table of switch, remote controller and
‘dpctl’ utility that works on port 6634. Dpctl is a data path controller that comes with
OpenFlow reference distribution and is used to manage the flow table of switch by using
'dpctl' commands. Use the following commands to add flows :
S1 dpctl add-flow tcp:127.0.0.1:6634 in_port=2,actions=output:1
S1 dpctl add-flow tcp:127.0.0.1:6634 in_port=1,actions=output:2
6. You can add the rule for packets forwarding in case of broadcast.