Ask Your Question
0

No ping using mininet!

asked 2015-09-29 02:47:43 -0700

g_trelos gravatar image

updated 2015-09-29 23:57:33 -0700

I am using the open source distro. I run the controller(all good) I connect mininet(all good) I try to pingall and nothing happens(all X) And in the web gui I only see the switch(openflow:1) Any help guys?

(Edit after answers)

When I connect mininet to odl controller i see this message:Exception in thread "Thread-40" java.lang.IllegalStateException: Expected state: HANDSHAKING, actual state:RIP + (Important)I want the packet-in from the switch to the controller.I dont want the switch to send packets to destination right away.I want the switch to respond to incoming flow by sending packet-in to controller(I'm new to this, sorry)

Thank you in advance.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-09-29 23:23:45 -0700

Mandeep gravatar image

updated 2015-09-29 23:26:30 -0700

Your setup is fine so far...the problem here is your switches does not know how to behave or forward packets.

To confirm this you can ping from host (h1) to adjecent switch (s1). But ping from S1 to S2 will not work.

Now, to solve this you need to add flows in your switch(s). There are two ways,

  1. Install l2switch features in controller, which will add required flows. Have a look at As other answer suggested

  2. Add flows manually (either direct ovs command or RESTConf API in controller). Have a look at link

edit flag offensive delete publish link more

Comments

When I connect mininet to odl controller i see this message:Exception in thread "Thread-40" java.lang.IllegalStateException: Expected state: HANDSHAKING, actual state:RIP +I want the packet-in from the switch to the controller.I dont want the switch to send packets to destination right away

g_trelos ( 2015-09-29 23:46:54 -0700 )edit

AFAIK, l2switch does the same thing. i.e. adds flows in each switch to forward first packet to controller and controller decides what to do with packet. And in 2nd option above, if you change "NORMAL" to "CONTROLLER", then switch will forward all packets to controller. Have a look at flow examples https://wiki.opendaylight.org/view/Editing_OpenDaylight_OpenFlow_Plugin:End_to_End_Flows:Example_Flows#Output_to_CONTROLLER

Mandeep ( 2015-09-30 00:39:51 -0700 )edit

Ok.yeah i think that answers my question. The point of all this for me, is that I m trying to find where the controller matches incoming packets with existing flow entries.I thought that I could find this following the log file INFO bu i dont. Do you know where that happens?

g_trelos ( 2015-09-30 01:02:21 -0700 )edit
1

answered 2015-09-29 07:22:02 -0700

Check the post: https://ask.opendaylight.org/question/4403/i-am-trying-to-control-ovs-switches-using-odl-karaf-distribution-i-am-facing-problems-with-the-reachability/#4405

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

Question Tools

Follow
1 follower

Stats

Asked: 2015-09-29 02:47:43 -0700

Seen: 418 times

Last updated: Sep 29 '15