Nagle's algorithm: Difference between revisions

Content deleted Content added
Filled in 2 bare reference(s) with reFill 2
Line 15:
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}}
'''if''' there is new data to send
'''if''' the window size >= MSS '''and''' available data is >= MSS '''then'''
send complete MSS segment now
'''else'''
'''if''' there is unconfirmed data still in the pipe
enqueue data in the buffer until an acknowledge is received
'''else'''
'''if''' there is unconfirmed data still in the pipe '''then'''
send data immediately
enqueue data in the buffer until an acknowledge is received
'''else'''
send data immediately
'''end if'''
'''end if'''
'''end if'''
'''end if'''