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


Open Source Contribution

asked 2015-10-05 04:48:07 -0700

g_trelos gravatar image

I' m looking to change the way the controller matches the incoming packets.I am aiming to develop the arbitrary match that other controllers already use which is much more efficient.Does anyone know where that process(the matching process happens?)

edit retag flag offensive close merge delete


What do you mean by "matches incoming packets"? The packets will arrive at an entry point to your network, and your controller will have defined the behaviour rules for that device by a SB protocol like NETCONF or OpenFlow. The packets are matches by the routing table in the device.

dneary ( 2015-10-28 09:41:34 -0700 )edit

yes, but in reactive mode.The rules are inserted after packet-in events right?So, where does that happen?

g_trelos ( 2015-10-29 04:59:08 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-29 11:47:12 -0700

jamoluhrsen gravatar image

So, the reactive vs proactive is dependent on the application.

by default, an openflow 1.3 switch will drop all packets. If you want to see those packets (as packet-ins) on the controller then you need to "proactively" write a flow to those switches to punt the packets. you can write a rule to match all packets, or just match on something specific (e.g. ip subnet).

if you just enable openflowplugin-flow-services then ODL can serve as your openflow controller. What you do next, is up to you. You can manually program the flows to punt packets (via restconf, external application, or internal java application).

hope it helps a little.

edit flag offensive delete publish link more


thanx for the answer.I understood what u said but I dont think that this answered my initial question.

g_trelos ( 2015-10-30 01:10:40 -0700 )edit

dneary answered your initial question I think. packets are *matched* on the switch by the flows that the controller programs there (assuming openflow). What the switch does when it matches, is the action in that same flow. one action could be packet-in.

jamoluhrsen ( 2015-10-30 08:43:52 -0700 )edit

yes, but the point is where and how the controller handles the packet-ins?

g_trelos ( 2015-10-30 11:31:40 -0700 )edit

it's up to the application running on the controller. openflowplugin will receive the packet-in and publish it to MD-SAL. only if some app cares/listens for these events will anything happen. the application can do whatever it wants with the packet-in. it sounds like you want to write a new app?

jamoluhrsen ( 2015-10-30 11:40:28 -0700 )edit

this is an old wiki, but I think it's still fairly accurate:

jamoluhrsen ( 2015-10-30 11:40:54 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-10-05 04:48:07 -0700

Seen: 258 times

Last updated: Oct 29 '15