[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] tcp_write() errors on snd_queuelen
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] tcp_write() errors on snd_queuelen |
Date: |
Wed, 16 Mar 2011 18:43:48 +0100 |
Tim Lambrix <address@hidden> wrote:
> > Can you include your lwipopts.h in this post?
>
> Should be attached. I could use some help verifying I have it configured
> correctly for my application with respect to the memory requirements at
> some point too.
I can comment on generic lwIP options (without knowing your platform in detail):
>>>>> snip >>>>>
#define TCP_WND 2048 // default is 2048
#define TCP_MSS 1050 // default is 128
#define TCP_SND_BUF (8 * TCP_MSS) // default is 256, was 6 *
#define TCP_SND_QUEUELEN 128//(4 * (TCP_SND_BUF/TCP_MSS))
<<<<< snap <<<<<
In general, you might run into receive problems with the TCP window being so
small compared to the MSS (TCP_WND is only used as receive window, the transmit
window is taken from the remote host's SYN packet). It should be at least 2*MSS
but is encouraged to be at least 4*MSS if your memory constraints allow you to.
This is to make sure the TCP sliding window algorithm can work correctly.
TCP_SND_BUF and TCP_SND_QUEUELEN seem OK. Those settings allow you to make 64
or 128 calls to tcp_write() (one pbuf per call when copying data, 2 per call
when not copying) and to enqueue 8400 bytes of data in these pbufs.
The other memory settings seem OK, too. However, that depends on the number of
parallel connections.
Simon
--
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
- RE: [lwip-users] tcp_write() errors on snd_queuelen, (continued)
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Kieran Mansley, 2011/03/14
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/16
- Re: [lwip-users] Lwip timer ISR priority, Simon Goldschmidt, 2011/03/16
- Re: [lwip-users] Lwip timer ISR priority, Andrea Merello, 2011/03/18
- Re: [lwip-users] Lwip timer ISR priority, Kieran Mansley, 2011/03/18
- Re: RE: [lwip-users] tcp_write() errors on snd_queuelen, Simon Goldschmidt, 2011/03/16
- Re: [lwip-users] tcp_write() errors on snd_queuelen, Andrew Foster, 2011/03/16
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/16
- Re: [lwip-users] tcp_write() errors on snd_queuelen, Andrew Foster, 2011/03/16
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/16
- Re: [lwip-users] tcp_write() errors on snd_queuelen,
Simon Goldschmidt <=
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/16
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Kieran Mansley, 2011/03/17
- Re: [lwip-users] tcp_write() errors on snd_queuelen, Simon Goldschmidt, 2011/03/17
- Re: [lwip-users] tcp_write() errors on snd_queuelen, Kieran Mansley, 2011/03/17
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/17
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Kieran Mansley, 2011/03/17
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Simon Goldschmidt, 2011/03/16
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Tim Lambrix, 2011/03/16
- RE: [lwip-users] tcp_write() errors on snd_queuelen, Mullanix, Todd, 2011/03/16
- Re: [lwip-users] tcp_write() errors on snd_queuelen, address@hidden, 2011/03/17