lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Short but speedy writes


From: Matthew Yingling
Subject: [lwip-users] Short but speedy writes
Date: Wed, 4 Oct 2006 16:07:20 -0400

Hello,

I am implementing a Microblaze application using LwIP that reads and writes
very short data streams via TCP.  I'm writing eight bytes from a PC to the
Microblaze running LwIP, and then LwIP sends out a single (data) byte back.
I'm finding this painfully sluggish for such low data, on the order of
tenths of seconds or longer.  I think both the PC with a Win32 WinSock2
application and LwIP might be to blame.

I can stream UDP data at nearly a megabyte per second using LwIP, but that
is using large ~1472 byte packets, so the physical link is ok.

My approach was to use tcp_write(), but I have started following it with
tcp_output() to force the data onto the wire immediately.  Is this the
correct approach?

This may be off topic, but does anyone have pointers on optimizing speeds on
WinSock2 with very short data streams?

Thanks,
Matthew Yingling





reply via email to

[Prev in Thread] Current Thread [Next in Thread]