Ask Your Question


asked 2015-05-11 19:55:53 -0700

Bakshi Gulam gravatar image

updated 2015-05-11 19:58:20 -0700

I want to send OFPT_FEATURES_REQUEST from my application. Can anyone suggest which API can I use to do the same? Please mention the package which has this API too.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-05-12 08:37:38 -0700

kjain gravatar image

I am not sure what you are trying to accomplish here. But it seems to me that you are implementing a OF switch (or at least, the OF switch operations). if so, then you would have to open a TCP connection with ODL at port 6633 and then would have to go through HELLO message. Once the HELLO connection is there, you can send this REATURE_REQUEST message.

edit flag offensive delete publish link more


I'm not developing OF switch. I'm developing a ODL application. And I want to send OFPT_FEATURES_REQUEST from my application. I need ODL (OpenFlowPlugin)'s API to do the same.

Bakshi Gulam ( 2015-05-13 02:52:30 -0700 )edit

answered 2015-05-12 22:47:41 -0700

Vishal Thapar gravatar image

'OFPTFEATUREREQUEST' is sent by Openflowplugin when a switch connects as part of initial handshake. Could you explain your use case? Do you want to send feature request after connection establishment or are you writing your own controller from scratch? I can't think of any other reason where you would want to send this message from an application.

If you're still interested, take a look at openflowplugin code that sends this message. It should be using some openflowjava APIs to send this message.

edit flag offensive delete publish link more


Hi Vishal! I'm not developing my own controller from scratch. I'm developing an ODL app/plugin and I want to trigger OFPT_FEATURES_REQUEST from my app. Use Case: When a switch is started, it registers itself with controller. And as you said, OFPT_FEATURES_REQUEST is sent after OFPT_HELLO messages.

Bakshi Gulam ( 2015-05-13 02:58:17 -0700 )edit

Use Case: (contd...) When switch is started, ports come up with default speed. And that is advertised to controller in OFPT_FEATURES_REQUEST's Current Settings. Later, when we change speed of any port, it's not being advertised to controller in any message leaving obsolete topology at controller.

Bakshi Gulam ( 2015-05-13 03:02:09 -0700 )edit

So, I want to trigger OFPT_FEATURES_REQUEST from my controller app to get updated port speeds. Is any OpenFlow Plugin's API exposed to controller to trigger the same?

Bakshi Gulam ( 2015-05-13 03:03:32 -0700 )edit

Which switch are you using? OpenFlow spec has OFPT_PORT_STATUS message to send port changes to controller and all OF switches are supposed to send this message. FEATURE_REQUEST is used only at establishment.

Vishal Thapar ( 2015-05-13 03:33:06 -0700 )edit

Which event Corresponds to OFPT_PORT_STATUS in OpenDaylight? Or how to listen to OFPT_PORT_STATUS asyn message sent from OF switch?

ahuja ( 2016-11-10 12:09:35 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2015-05-11 19:55:53 -0700

Seen: 142 times

Last updated: May 12 '15