Ask Your Question
0

L2switch problem

asked 2016-05-04 02:46:20 -0700

Rui gravatar image

Problem: L2switch not working. When I ping from host 1 to host 2 nothing reaches the destination. If I turn off ODL, pings arrive (due to standalone mode activated on OVS). So the problem is in ODL - L2switch not working

Configuration: ODL beryllium ; OVS 2.4 L2switch installed using feature:install odl-restconf odl-l2switch-switch odl-openflowplugin-all odl-dlux-all

OVS configured to use OpenFlow 1.3

I'm not using mininet. I'm using OVS in a dedicated machine.

Any ideas what's the problem?

Thanks

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
1

answered 2016-05-06 02:30:13 -0700

henaumars gravatar image

i got the same problem,it also appeared in version “lithium”。 if not set ovs br to controller,ping is ok,then stop ping and set ovs br to ODL,ping returns "destination host unreacheable"(ovs-ofctl dump-flows show 3 flows)。but if i continue ping and then set br to ODL,ping is ok(ovs-ofctl dump-flows show 5 flows)。(l2switch-all installed) this is the message i got:

controlller state

[root@localhost ~]#ovs-vsctl list controller

  • _uuid : f2a64a69-90fe-466e-ba41-1c27287a573a
  • connection_mode : []
  • controllerburstlimit: []
  • controllerratelimit: [] 5.enableasyncmessages: []
  • external_ids : {}
  • inactivity_probe : []
  • is_connected : true
  • local_gateway : []
  • local_ip : []
  • local_netmask : []
  • max_backoff : []
  • other_config : {}
  • role : slave
  • status : {secsinceconnect="488", state=ACTIVE}
  • target : "tcp:100.5.5.219:6633"

  • _uuid : 2c71723a-89c9-4d3a-b1ad-815ae31f4f2d
  • connection_mode : []
  • controllerburstlimit: []
  • controllerratelimit: []
  • enableasyncmessages: []
  • external_ids : {}
  • inactivity_probe : []
  • is_connected : true
  • local_gateway : []
  • local_ip : []
  • local_netmask : []
  • max_backoff : []
  • other_config : {}
  • role : master
  • status : {secsinceconnect="488", state=ACTIVE}
  • target : "tcp:100.5.5.218:6633"

flows when vm can't ping each other

  • [root@localhost ~]#ovs-ofctl dump-flows br-odl
  • NXST_FLOW reply (xid=0x4):
  • cookie=0x2b0000000000000b, duration=154.494s, table=0, npackets=0, nbytes=0, idleage=156, priority=100,dltype=0x88cc actions=CONTROLLER:65535
  • cookie=0x2b00000000000008, duration=152.192s, table=0, npackets=0, nbytes=0, idleage=152, priority=2,inport=1 actions=CONTROLLER:65535
  • cookie=0x2b0000000000000b, duration=154.494s, table=0, npackets=54, nbytes=7702, idle_age=74, priority=0 actions=drop

flows when vm can ping each other

  • [root@localhost ~]#ovs-ofctl dump-flows br-odl
  • NXST_FLOW reply (xid=0x4):
  • cookie=0x2b0000000000000d, duration=3.453s, table=0, npackets=0, nbytes=0, idleage=5, priority=100,dltype=0x88cc actions=CONTROLLER:65535
  • cookie=0x2b0000000000000a, duration=1.042s, table=0, npackets=2, nbytes=196, idleage=0, priority=2,inport=5 actions=output:4,output:1,CONTROLLER:65535
  • cookie=0x2b0000000000000b, duration=1.042s, table=0, npackets=1, nbytes=98, idleage=0, priority=2,inport=4 actions=output:5,output:1,CONTROLLER:65535
  • cookie=0x2b0000000000000c, duration=1.042s, table=0, npackets=0, nbytes=0, idleage=1, priority=2,inport=1 actions=output:5,output:4,CONTROLLER:65535
  • cookie=0x2b0000000000000d, duration=3.453s, table=0, npackets=3, nbytes=294, idle_age=2, priority=0 actions=drop

it's the same in "lithium" and "beryllium"

edit flag offensive delete publish link more
0

answered 2016-05-04 06:49:06 -0700

azhark gravatar image

Is your controller working?

check the operational flows by typing sudo ovs-ofctl dump-flows

Do you see any flows?

Also install this feature, odl-l2switch-all

edit flag offensive delete publish link more

Comments

(I've been away) Yes, I have that feature installed but the problem remains. When I try ODL with mininet (without the dedicated OVS machine) it works fine.

Rui ( 2016-05-24 05:39:09 -0700 )edit
0

answered 2016-05-05 03:14:26 -0700

Rui gravatar image

Thanks for the answer azhark.

Yes, the controller seems to be working.

image description

There are no installed rules.

Already tried to install that feature but the problem is still the same.

Any more ideas?

edit flag offensive delete publish link more

Comments

could you solve the problem ? I have the same problem but with real OpenFlow switches.

atefe ( 2017-02-15 06:11:16 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-05-04 02:46:20 -0700

Seen: 152 times

Last updated: May 06 '16