Definition: The Nagle algorithm, named after engineer John Nagle, was designed to reduce LAN and other network congestion from TCP applications. TCP implementations on UNIX began using the Nagle algorithm in the 1980s, and the algorithm remains a standard feature of TCP implementations today.
|
The Nagle algorithm works by aggregating data on the sending side of TCP applications. It accumulates sequences of small messages into larger TCP packets before data reaches the wire, thereby preventing the generation of unnecessarily large numbers of small packets. When the Nagle algorithm works as designed, TCP applications utilize network resources more efficiently.
Applications can enable or disable the Nagle algorithm with the TCP_NODELAY socket option. Windows, Linux, and Java systems all normally enable the Nagle algorithm by default. However, in some cases, the Nagle algorithm has a negative effect on application performance, so network application engineers may prefer to disable it.
Also Known As: nagling
Related Resources:
TCP and UDP Practice Test
Test your knowledge of the TCP and UDP protocols, including the Nagle algorithm.TCP and UDP Protocols
TCP and UDP are standard transport protocols for the Web's Internet Protocol (IP) traffic.

