I am new to mininet and SDN. Following is an issue I came across while exploring iperf command.
1) Set up a topology with three hosts and a user-space switch with following command:
$ sudo mn --topo single,3 --mac --controller remote --switch user
2) No flow routes have been added.
3) Run a reference controller (POX) with following command:
$ controller ptcp:
4) iperf testing with following command:
mininet> iperf (on mininet console)
Error #1: iperf
testing fails because flow routes are not defined. This is followed by a complete cleanup.
5) To fix this, I tried to add flow route with following command:
$ ovs-ofctl add-flow s1 in_port=1,actions=output:2
Error #2: I get following error message:
ovs-ofctl: s1 is not a bridge or a socket
Can anyone tell me what is my mistake? How can I fix this?
Reference: https://github.com/mininet/openflow-tutorial/wiki/Learn-Development-Tools