lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] TCP Config in lwIP


From: Dương Anh Sơn
Subject: [lwip-users] TCP Config in lwIP
Date: Tue, 1 Mar 2016 14:03:22 +0700

Hello,
I'm working on lwIP for sending data for raspberry device to windows server. I use config below:

#define MEM_SIZE (1 * 1024 * 1024) 
#define PBUF_POOL_SIZE (1024 * 4) 
#undef PBUF_POOL_BUFSIZE 
#define MEMP_NUM_TCP_PCB 128 
#define MEMP_NUM_NETCONN 128 
#define TCP_QUEUE_OOSEQ 1 
#define TCP_MSS 1460 
#define TCP_SND_BUF TCP_WND 
#define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS) 
#define TCP_WND 8 * TCP_MSS 

But send speed ~20 MB/s and after about 10-20 seconds, i can't send data any more and server send back many "dup ack" packets.

Please suggest any good config for using tcp with lwIP.

Regards,
Sol

reply via email to

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