Advertisement
Guest User

mininet

a guest
Mar 6th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. mininet@mininet-vm:~$ sudo mn --custom 2swCon.py --topo=mytopo --controller=remote,ip=192.168.57.1,port=6653 --switch=ovsk --mac
  2. *** Creating network
  3. *** Adding controller
  4. *** Adding hosts:
  5. h1 h2
  6. *** Adding switches:
  7. s1 s2
  8. *** Adding links:
  9. (h1, s1) (s1, s2) (s2, h2)
  10. *** Configuring hosts
  11. h1 h2
  12. *** Starting controller
  13. c0
  14. *** Starting 2 switches
  15. s1 s2
  16. *** Starting CLI:
  17. mininet> sh ovs-ofctl dump-flows s1
  18. NXST_FLOW reply (xid=0x4):
  19. cookie=0x2b00000000000005, duration=7.555s, table=0, n_packets=5, n_bytes=398, idle_age=2, priority=0 actions=drop
  20. cookie=0x2b00000000000005, duration=7.558s, table=0, n_packets=2, n_bytes=126, idle_age=3, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
  21. cookie=0x0, duration=7.555s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=3,arp actions=ALL,CONTROLLER:65535
  22. cookie=0x2b00000000000005, duration=7.557s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=1,arp actions=CONTROLLER:65535
  23. mininet> sh ovs-ofctl dump-flows s2
  24. NXST_FLOW reply (xid=0x4):
  25. cookie=0x2b00000000000007, duration=9.773s, table=0, n_packets=7, n_bytes=558, idle_age=0, priority=0 actions=drop
  26. cookie=0x2b00000000000007, duration=9.780s, table=0, n_packets=2, n_bytes=126, idle_age=1, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
  27. cookie=0x0, duration=9.776s, table=0, n_packets=0, n_bytes=0, idle_age=9, priority=3,arp actions=ALL,CONTROLLER:65535
  28. cookie=0x2b00000000000007, duration=9.777s, table=0, n_packets=0, n_bytes=0, idle_age=9, priority=1,arp actions=CONTROLLER:65535
  29. mininet> h1 ping -c 4 h2
  30. PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
  31. ^[[A^[[B^C
  32. --- 10.0.0.2 ping statistics ---
  33. 4 packets transmitted, 0 received, 100% packet loss, time 2999ms
  34.  
  35. mininet> sh ovs-ofctl dump-flows s2
  36. NXST_FLOW reply (xid=0x4):
  37. cookie=0x2b00000000000007, duration=67.412s, table=0, n_packets=7, n_bytes=558, idle_age=58, priority=0 actions=drop
  38. 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
  39. 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
  40. cookie=0x2b00000000000007, duration=67.419s, table=0, n_packets=13, n_bytes=819, idle_age=3, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
  41. cookie=0x0, duration=67.415s, table=0, n_packets=6, n_bytes=252, idle_age=11, priority=3,arp actions=ALL,CONTROLLER:65535
  42. cookie=0x2b00000000000007, duration=67.416s, table=0, n_packets=0, n_bytes=0, idle_age=67, priority=1,arp actions=CONTROLLER:65535
  43. mininet> h1 ping -c h2
  44. Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
  45. [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
  46. [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
  47. [-w deadline] [-W timeout] [hop1 ...] destination
  48. mininet> h1 ping -c 4 h2
  49. PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
  50. 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.316 ms
  51. 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.080 ms
  52. 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.113 ms
  53. ^C
  54. --- 10.0.0.2 ping statistics ---
  55. 3 packets transmitted, 3 received, 0% packet loss, time 2003ms
  56. rtt min/avg/max/mdev = 0.080/0.169/0.316/0.105 ms
  57. mininet> iperf
  58. *** Iperf: testing TCP bandwidth between h1 and h2
  59. *** Results: ['8.48 Gbits/sec', '8.49 Gbits/sec']
  60. mininet> h1 ping -c 4 h2
  61. PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
  62. 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.458 ms
  63. 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.100 ms
  64. 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.100 ms
  65. 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.086 ms
  66.  
  67. --- 10.0.0.2 ping statistics ---
  68. 4 packets transmitted, 4 received, 0% packet loss, time 3005ms
  69. rtt min/avg/max/mdev = 0.086/0.186/0.458/0.157 ms
  70. mininet> iperf
  71. *** Iperf: testing TCP bandwidth between h1 and h2
  72. *** Results: ['18.0 Kbits/sec', '79.9 Kbits/sec']
  73. mininet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement