|
Here is the test I just did and failed:
1) Start ring:
vagrant@mininet-vm-ubuntu-new:~\> sudo mn --controller=remote,ip=192.168.0.1 --mac --custom customtopo.py --topo ring
-
-
- Creating network
- Adding controller
- Adding hosts:
h1 h2 h3
- Adding switches:
s1 s2 s3
- Adding links:
(s1, h1) (s2, h2) (s2, s1) (s3, h3) (s3, s1) (s3, s2)
- Configuring hosts
h1 h2 h3
- Starting controller
c0
- Starting 3 switches
s1 s2 s3 ...
- Starting CLI:
2) Pingall:
mininet> pingall
-
-
- Ping: testing ping reachability
h1 -> h2 h3
h2 -> h1 h3
h3 -> h1 h2
- Results: 0% dropped (6/6 received)
mininet> dpctl dump-flows
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000004, duration=37.310s, table=0, n_packets=14, n_bytes=1136, idle_age=28, priority=0 actions=drop
cookie=0x2b00000000000005, duration=33.401s, table=0, n_packets=10, n_bytes=700, idle_age=12, priority=2,in_port=1 actions=output:2,CONTROLLER:65535
cookie=0x2b00000000000006, duration=33.400s, table=0, n_packets=24, n_bytes=1680, idle_age=12, priority=2,in_port=2 actions=output:1
cookie=0x2b00000000000002, duration=37.285s, table=0, n_packets=16, n_bytes=1360, idle_age=2, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- s2 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000002, duration=37.314s, table=0, n_packets=12, n_bytes=996, idle_age=35, priority=0 actions=drop
cookie=0x2b00000000000003, duration=33.403s, table=0, n_packets=12, n_bytes=840, idle_age=12, priority=2,in_port=3 actions=output:2,output:1
cookie=0x2b00000000000004, duration=33.403s, table=0, n_packets=12, n_bytes=840, idle_age=12, priority=2,in_port=1 actions=output:2,output:3
cookie=0x2b00000000000002, duration=33.403s, table=0, n_packets=10, n_bytes=700, idle_age=12, priority=2,in_port=2 actions=output:3,output:1,CONTROLLER:65535
cookie=0x2b00000000000000, duration=37.305s, table=0, n_packets=16, n_bytes=1360, idle_age=2, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- s3 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000000, duration=37.290s, table=0, n_packets=13, n_bytes=1058, idle_age=28, priority=0 actions=drop
cookie=0x2b00000000000000, duration=33.406s, table=0, n_packets=24, n_bytes=1680, idle_age=12, priority=2,in_port=1 actions=output:2
cookie=0x2b00000000000001, duration=33.406s, table=0, n_packets=10, n_bytes=700, idle_age=12, priority=2,in_port=2 actions=output:1,CONTROLLER:65535
cookie=0x2b00000000000004, duration=37.309s, table=0, n_packets=16, n_bytes=1360, idle_age=2, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
3) From the above, link s1-s3 is being blocked by loop-remover, lets remove link s1-s2:
mininet> link s1 s2 down
mininet> dpctl dump-flows
-
-
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000004, duration=114.608s, table=0, n_packets=14, n_bytes=1136, idle_age=105, priority=0 actions=drop
cookie=0x2b00000000000005, duration=110.699s, table=0, n_packets=10, n_bytes=700, idle_age=89, priority=2,in_port=1 actions=output:2,CONTROLLER:65535
cookie=0x2b00000000000006, duration=110.698s, table=0, n_packets=24, n_bytes=1680, idle_age=89, priority=2,in_port=2 actions=output:1
cookie=0x2b00000000000002, duration=114.583s, table=0, n_packets=47, n_bytes=3995, idle_age=0, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- s2 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000002, duration=114.612s, table=0, n_packets=12, n_bytes=996, idle_age=112, priority=0 actions=drop
cookie=0x2b00000000000003, duration=110.701s, table=0, n_packets=12, n_bytes=840, idle_age=89, priority=2,in_port=3 actions=output:2,output:1
cookie=0x2b00000000000004, duration=110.701s, table=0, n_packets=12, n_bytes=840, idle_age=89, priority=2,in_port=1 actions=output:2,output:3
cookie=0x2b00000000000002, duration=110.701s, table=0, n_packets=10, n_bytes=700, idle_age=89, priority=2,in_port=2 actions=output:3,output:1,CONTROLLER:65535
cookie=0x2b00000000000000, duration=114.603s, table=0, n_packets=47, n_bytes=3995, idle_age=0, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
- s3 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x2b00000000000000, duration=114.588s, table=0, n_packets=13, n_bytes=1058, idle_age=105, priority=0 actions=drop
cookie=0x2b00000000000000, duration=110.704s, table=0, n_packets=24, n_bytes=1680, idle_age=89, priority=2,in_port=1 actions=output:2
cookie=0x2b00000000000001, duration=110.704s, table=0, n_packets=10, n_bytes=700, idle_age=89, priority=2,in_port=2 actions=output:1,CONTROLLER:65535
cookie=0x2b00000000000004, duration=114.607s, table=0, n_packets=48, n_bytes=4080, idle_age=0, priority=100,dl_type=0x88cc actions=CONTROLLER:65535
4) From the above, flows do not get updated so ping will fail:
mininet> pingall
-
-
- Ping: testing ping reachability
h1 -> ^C
Interrupt
stopping h1
|