Nagle's algorithm: Difference between revisions

Content deleted Content added
Added definition of algorithm from original, introduced pseudocode, cite needed
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Citation needed}}
Line 10:
The RFC defines the algorithm as <blockquote>inhibit the sending of new TCP segments when new outgoing data arrives from the user if any previously transmitted data on the connection remains unacknowledged</blockquote>
 
Where MSS is the [[maximum segment size]], the largest segment that can be sent on this connection, and the [[Sliding window protocol|window size]] is the currently acceptable window of unacknowledged data, this can be written in pseudocode as{{Citation needed|reason=not how it is defined in RFC|date=July 2017-07-20}}
'''if''' there is new data to send
'''if''' the window size >= MSS '''and''' available data is >= MSS