Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mininet@mininet-vm:~$ sudo mn --custom 2swCon.py --topo=mytopo --controller=remote,ip=192.168.57.1,port=6653 --switch=ovsk --mac
- *** Creating network
- *** Adding controller
- *** Adding hosts:
- h1 h2
- *** Adding switches:
- s1 s2
- *** Adding links:
- (h1, s1) (s1, s2) (s2, h2)
- *** Configuring hosts
- h1 h2
- *** Starting controller
- c0
- *** Starting 2 switches
- s1 s2
- *** Starting CLI:
- mininet> sh ovs-ofctl dump-flows s1
- NXST_FLOW reply (xid=0x4):
- cookie=0x2b00000000000005, duration=7.555s, table=0, n_packets=5, n_bytes=398, idle_age=2, priority=0 actions=drop
- cookie=0x2b00000000000005, duration=7.558s, table=0, n_packets=2, n_bytes=126, idle_age=3, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- cookie=0x0, duration=7.555s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=3,arp actions=ALL,CONTROLLER:65535
- cookie=0x2b00000000000005, duration=7.557s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=1,arp actions=CONTROLLER:65535
- mininet> sh ovs-ofctl dump-flows s2
- NXST_FLOW reply (xid=0x4):
- cookie=0x2b00000000000007, duration=9.773s, table=0, n_packets=7, n_bytes=558, idle_age=0, priority=0 actions=drop
- cookie=0x2b00000000000007, duration=9.780s, table=0, n_packets=2, n_bytes=126, idle_age=1, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- cookie=0x0, duration=9.776s, table=0, n_packets=0, n_bytes=0, idle_age=9, priority=3,arp actions=ALL,CONTROLLER:65535
- cookie=0x2b00000000000007, duration=9.777s, table=0, n_packets=0, n_bytes=0, idle_age=9, priority=1,arp actions=CONTROLLER:65535
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- ^[[A^[[B^C
- --- 10.0.0.2 ping statistics ---
- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms
- mininet> sh ovs-ofctl dump-flows s2
- NXST_FLOW reply (xid=0x4):
- cookie=0x2b00000000000007, duration=67.412s, table=0, n_packets=7, n_bytes=558, idle_age=58, priority=0 actions=drop
- cookie=0x0, duration=29.530s, table=0, n_packets=4, n_bytes=392, idle_age=8, priority=50,ip,nw_src=10.0.0.1,nw_dst=10.0.0.2 actions=output:1
- cookie=0x0, duration=18.043s, table=0, n_packets=0, n_bytes=0, idle_age=18, priority=50,ip,nw_src=10.0.0.2,nw_dst=10.0.0.1 actions=output:2
- cookie=0x2b00000000000007, duration=67.419s, table=0, n_packets=13, n_bytes=819, idle_age=3, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- cookie=0x0, duration=67.415s, table=0, n_packets=6, n_bytes=252, idle_age=11, priority=3,arp actions=ALL,CONTROLLER:65535
- cookie=0x2b00000000000007, duration=67.416s, table=0, n_packets=0, n_bytes=0, idle_age=67, priority=1,arp actions=CONTROLLER:65535
- mininet> h1 ping -c h2
- Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
- [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
- [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
- [-w deadline] [-W timeout] [hop1 ...] destination
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.316 ms
- 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.080 ms
- 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.113 ms
- ^C
- --- 10.0.0.2 ping statistics ---
- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms
- rtt min/avg/max/mdev = 0.080/0.169/0.316/0.105 ms
- mininet> iperf
- *** Iperf: testing TCP bandwidth between h1 and h2
- *** Results: ['8.48 Gbits/sec', '8.49 Gbits/sec']
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.458 ms
- 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.100 ms
- 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.100 ms
- 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.086 ms
- --- 10.0.0.2 ping statistics ---
- 4 packets transmitted, 4 received, 0% packet loss, time 3005ms
- rtt min/avg/max/mdev = 0.086/0.186/0.458/0.157 ms
- mininet> iperf
- *** Iperf: testing TCP bandwidth between h1 and h2
- *** Results: ['18.0 Kbits/sec', '79.9 Kbits/sec']
- mininet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement