On Fri, 21 Mar 2014 16:40:58 -0300
Eros Spalla <[email protected]> wrote:

> Hi. Im running some tests, and realized is happening some delay (about
> 40ms) after flowmod messages. Im running on ryu 3.7 a simple-switch-v13
> app, 2 switches (ovs) and 4 hosts per switch. For this test I ran the
> command pingall in Mininet.
> I attached an image with the packets in wireshark.

You mean that your application sends PacketOut message right after
FlowMod message but PacketOut was not sent right after FlowMod
message?

If so, the following helps?

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
 

------------------------------------------------------------------------------
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

Reply via email to