Hello Alexis,

as I understand from the code, switch idle timeout specifies the amount of time 
that has to elapse, after which a
SwitchIdleEvent message is sent upstream – notifying OpenFlow Plugin about 
idleness of a switch. On first detection of
Idle state the ofplugin sends an echo request downstream and waits max for 2000 
ms for an echo-reply,( missing which
It puts the connection as down),thereafter every 2 secs the echo-request and 
reply is exchanged.

Now setting the switch-idle-timeout will be dependent on the type of use-case 
that you are  putting ofplugin. In case
the application tries to stress-test the plugin by pumping millions of flows 
per sec,we can increase the number,  to
prevent the echo_request being lost behind lots of flow_mods resulting in 
connection drop/flap.

Did that answer your question ?

Thanks
Shuva
From: [email protected] 
[mailto:[email protected]] On Behalf Of Alexis 
de Talhouët
Sent: Monday, April 18, 2016 8:23 PM
To: [email protected]
Subject: [openflowplugin-dev] Switch idle timeout

Hello openflowplugin-dev,

I would like to understand better the usage of switch-idle-timeout [0].

I thought that was the timeout after which the switch was considered unreachable
by ODL, resulting on putting down the connection, although I’ve seen here[1] 
that
the ECHO_REPLY_TIMEOUT was 2 seconds, so if the ODL doesn’t here from the
switch after 2 seconds the ECHO_REQUEST was sent, then it put down the 
connection.

Could you shed some light regarding how to properly setup switch idle timeout?

Thanks,
Alexis

[0]: 
https://github.com/opendaylight/openflowplugin/blob/stable/lithium/openflowplugin-controller-config/src/main/resources/initial/42-openflowplugin-new.xml#l50
[1]: 
https://github.com/opendaylight/openflowplugin/blob/stable/lithium/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/connection/listener/SystemNotificationsListenerImpl.java#l37

_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to