|
From: | Mohamed Hnezli |
Subject: | Re: [lwip-users] lwip FreeRTOS tcp window |
Date: | Mon, 3 Apr 2017 08:27:03 +0100 |
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
--NSCS_TunisiaMohamed HNEZLIComputer Science Engineer Student_________________
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
[Prev in Thread] | Current Thread | [Next in Thread] |