Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


L2-switch bi-directional flows not getting installed for topology with more than one switch

asked 2016-04-25 17:17:23 -0700

ashvanth48 gravatar image

When I run mininet with single switch the bidirectional flows are getting installed by ODL's L2switch module

mininet@mininet-vm:~$ sudo ovs-ofctl dump-flows s1 NXSTFLOW reply (xid=0x4): cookie=0x2a00000000000000, duration=14.554s, table=0, npackets=15, nbytes=1414, idletimeout=1800, hardtimeout=3600, idleage=0, priority=10,dlsrc=62:24:0f:7a:80:55,dldst=da:9e:02:01:40:d5 actions=output:2 cookie=0x2a00000000000001, duration=14.554s, table=0, npackets=15, nbytes=1414, idletimeout=1800, hardtimeout=3600, idleage=0, priority=10,dlsrc=da:9e:02:01:40:d5,dldst=62:24:0f:7a:80:55 actions=output:1 cookie=0x2b00000000000013, duration=26.279s, table=0, npackets=4, nbytes=300, idleage=21, priority=2,inport=3 actions=output:2,output:1,CONTROLLER:65535 cookie=0x2b00000000000012, duration=26.279s, table=0, npackets=5, nbytes=350, idleage=14, priority=2,inport=1 actions=output:2,output:3,CONTROLLER:65535 cookie=0x2b00000000000011, duration=26.279s, table=0, npackets=5, nbytes=350, idleage=14, priority=2,inport=2 actions=output:1,output:3,CONTROLLER:65535 cookie=0x2b0000000000000f, duration=30.272s, table=0, npackets=0, nbytes=0, idleage=30, priority=100,dltype=0x88cc actions=CONTROLLER:65535 cookie=0x2b0000000000000e, duration=30.272s, table=0, npackets=14, nbytes=1164, idleage=28, priority=0 actions=drop

Whereas when I run a mininet topology with 2 switches the birdirectional flows do not get installed

mininet@mininet-vm:~$ sudo ovs-ofctl dump-flows s4 NXSTFLOW reply (xid=0x4): cookie=0x2b00000000000015, duration=91.12s, table=0, npackets=96, nbytes=9212, idleage=0, priority=2,inport=1 actions=output:2 cookie=0x2b00000000000014, duration=91.12s, table=0, npackets=97, nbytes=9282, idleage=0, priority=2,inport=2 actions=output:1,CONTROLLER:65535 cookie=0x2b00000000000013, duration=97.077s, table=0, npackets=20, nbytes=1700, idleage=1, priority=100,dltype=0x88cc actions=CONTROLLER:65535 cookie=0x2b00000000000013, duration=97.077s, table=0, npackets=5, nbytes=418, idleage=95, priority=0 actions=drop mininet@mininet-vm:~$ mininet@mininet-vm:~$ mininet@mininet-vm:~$ sudo ovs-ofctl dump-flows s3 NXSTFLOW reply (xid=0x4): cookie=0x2b00000000000017, duration=93.487s, table=0, npackets=100, nbytes=9520, idleage=0, priority=2,inport=1 actions=output:2,CONTROLLER:65535 cookie=0x2b00000000000016, duration=93.487s, table=0, npackets=98, nbytes=9408, idleage=0, priority=2,inport=2 actions=output:1 cookie=0x2b00000000000011, duration=99.472s, table=0, npackets=21, nbytes=1785, idleage=4, priority=100,dltype=0x88cc actions=CONTROLLER:65535 cookie=0x2b00000000000011, duration=99.472s, table=0, npackets=8, nbytes=544, idleage=94, priority=0 actions=drop

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-04-26 05:44:42 -0700

karthik330 gravatar image

Hi ,

I dont know which topology you used . Anyway I will share with you what I know .. If a switch is having connection with two hosts(lets say h1 and h2) and bi-directional mac-mac flow will be installed in that switch otherwise it wont !. Hope it might helpful ! try to run mininet with --mac (Examble -> sudo mn --controller=remote --mac). So that easily readable mac will be assigned to hosts(Ex -> 00:00:00:00:00:01). (You might be knowing it, just informing you)

Thanks, -Karthik

edit flag offensive delete publish link more


Thank you I got the code. Unfortunately in typologies having multiple switches these flows don't get installed

ashvanth48 ( 2016-04-27 10:07:54 -0700 )edit

answered 2016-04-26 06:19:27 -0700

ashvanth48 gravatar image

For this topology (Single host with two switches, bidirectional flows are getting installed) sudo mn --topo single,3 --switch ovsk,protocols=OpenFlow13 --controller=remote,ip=,port=6633

Whereas for the two switch and two host topology flows are not getting installed

sudo mn --custom ---topo mytopo --switch ovsk,protocols=OpenFlow13 --controller=remote,ip=,port=6633

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-04-25 17:17:23 -0700

Seen: 91 times

Last updated: Apr 26 '16