lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] socket option TCP_NODELAY: not implemented???


From: Jonathan Larmour
Subject: Re: [lwip-users] socket option TCP_NODELAY: not implemented???
Date: Mon, 10 Mar 2008 14:27:08 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Piero 74 wrote:
> 
> Do you think usefull disable it if want short delay in packet exchange
> between pc application and lwip board? band is not a problem (packet
> will have size <600 bytes)

That sounds like the sort of time it is useful yes.

> For the same reason (time performance), i'm thinking to use MSG_MORE
> flag in send function... do you think that i could have some strange
> problem?

I didn't think MSG_MORE would help time performance. Instead it is to
reduce ack traffic, especially for small writes. Obviously you have to
remember not to set it on the last write before you want to send something.

> And the last question:
> i used setting above for lwip, and i obtained a very good performance
> using a simple test. Do you think are they correct?
> 
> 
> #define TCP_MSS                         1460
> #define TCP_SND_BUF                     (TCP_MSS<<1)
> #define PBUF_POOL_BUFSIZE               LWIP_MEM_ALIGN_SIZE(128)
> #define PBUF_POOL_SIZE                  20
> 
> #define IP_OPTIONS_ALLOWED              1
> 
> #define IP_REASSEMBLY                   1
> #define IP_FRAG                         0

Sure, although whether it's the best performance depends on your
application, and of course, available memory.

> the last two setting, follows this my idea:
> i used a big MSS and a MTU ot 1536. If pc application send packet to my
> lwip board throght different routers, or internet connection, it could
> possible that path mtu will be smaller than my MTU, and IP packets will
> be fragmented, so, lwip needs to reassemble packets. packets transmitted
> from lwip board will be not fragmented and will have maximum size of 1536.
> What do you think?

Yep.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
 **  Visit us at ESC Silicon Valley <http://www.embedded.com/esc/sv>  **
 **  April 15-17 2008, Booth 3012, San Jose McEnery Convention Center **
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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