lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip FreeRTOS tcp window


From: Mohamed Hnezli
Subject: Re: [lwip-users] lwip FreeRTOS tcp window
Date: Mon, 3 Apr 2017 08:27:03 +0100

I've already tuned thos parameters nut I reached only 31MB/s, I will turn to other things than LwIP.
thank you a lot Joel.

On 1 April 2017 at 17:46, Joel Cunningham <address@hidden> wrote:

On Apr 1, 2017, at 7:25 AM, Mohamed Hnezli <address@hidden> wrote:

Thank you for support, 
Are there any way to change this, such as 1 ack for 5 TCP segments sent from client (lwip)

What you referring to is a stretch ACK (where the ACK covers more than 1 full sized segment).  This is not configurable and stretching more than the 2 maximum sized segments allowed by delayed ACKs algorithm is a violation of RFC 1122 (see 4.2.3.2 When to Send an ACK Segment).

If you’re trying to tune the TCP performance from the sender’s side, stretching ACKs (on the receiver) will not improve performance.  Have you looked into tuning your send buffer (TCP_SND_BUF) given your bandwidth product delay?

Joel


On 31 March 2017 at 19:10, address@hidden <address@hidden> wrote:
Mohamed Hnezli wrote:

I am using lwip ontop of FreeRTOS to send data to a server. I am trying to maximize the data flow. I've tuned several paramerters in "lwipopts.h" but I am always receiving an ACK after emitting only two packets.


That's just TCP. The window size does not have any influence about the number of ACKs and normally, an ACK for every 2nd data segment is the default.

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



--
            Mohamed HNEZLI
Computer Science Engineer Student
              NSCS_Tunisia
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



--
            Mohamed HNEZLI
Computer Science Engineer Student
              NSCS_Tunisia

reply via email to

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