Due to Nagle, an OF message that an application sends might be delivered to a switch. This patch disables Nagle. This has bad effect on thoughput. I think that the latency matters for any management channel. To avoid thoughput drop, we could use TCP_CORK on Linux but it's linux specific.
Signed-off-by: FUJITA Tomonori <[email protected]> --- ryu/controller/controller.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index 93d2b33..0ecb903 100644 --- a/ryu/controller/controller.py +++ b/ryu/controller/controller.py @@ -22,6 +22,7 @@ from ryu.lib.hub import StreamServer import traceback import random import ssl +from socket import IPPROTO_TCP, TCP_NODELAY import ryu.base.app_manager @@ -101,6 +102,7 @@ class Datapath(ofproto_protocol.ProtocolDesc): super(Datapath, self).__init__() self.socket = socket + self.socket.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1) self.address = address self.is_active = True -- 1.7.2.5 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
