Skip to contentSkip to conversation

Replace the Nagle Algorithm

DISCUSSION Joseph Conlin 2 participants 2 messages Oct 20, 2003 – Nov 2, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I see in the archives and the code that I have looked at (2.4.22, 2.6.0-test8) that the Minshall algorithm is being used to reduce the effects of Nagle/delayed ACK interaction. I haven't seen any mention of the following solution, proposed as an IETF draft RFC by Joe Doupnik ([email protected]).

http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt

I quote the following from the abstract.

A new TCP transmission policy is discussed in this memo which uses
information known only to the transmitter about when to send segments. It groups octets based on filling segments and sending a small segment when the application indicates no more data are immediately available, not on arrival of ACKs. It works well with
and
avoids deadlocks with delayed ACKs. It is automatic and does not
need
to be turned off. It is a suitable replacement for Nagle mode.

I also point you to the following location, which shows the code changes for FreeBSD 3.2, Linux 2.2.5-15, and also has the client software used for the testing mentioned in the document.

http://netlab1.usu.edu/pub/misc/newpolicy.sources/

If anyone is interested, I have an Excel spreadsheet that shows some testing I did with FreeBSD using Nagle-off, Nagle-on, and Doupnik using HTTP requests. It shows that Doupnik gets the same packet-size efficiency as Nagle-on while getting better throughput than having Nagle-off. Let me know if you would like a copy.

I have asked Joe Doupnik for his approval to ask this community to look at his algorithm. He said that he would be happy to answer any questions that anyone has on his algorithm, and if it looks like there is a good chance that it will be included in Linux, he could code the patch as well (from the looks of things, tcp.h has changed enough from 2.2.5-15 to current to warrant another pass to make sure the algorithm is correctly implemented).

Joseph Conlin

#1 lore raw
Quoted 7 lines · Joseph Conlin

I see in the archives and the code that I have looked at (2.4.22, 2.6.0-test8) that the Minshall algorithm is being used to reduce the effects of Nagle/delayed ACK interaction. I haven't seen any mention of the following solution, proposed as an IETF draft RFC by Joe Doupnik ([email protected]).

http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt

Interesting, but do you know why this has not been aprooved as RFC and never became more than a draft of the TCP implementation working group?

Signature · 3 lines
- Harald Welte <[email protected]>               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime