The Nagle’s algorithm.

The Negle algorithm is a way in which small data from TCP is not sent to bars, but is collected and transmitted if possible.


새 데이터가 있다면
윈도우와 데이터가 MSS 이상이면 MSS만큼 바로 전송한다.
아직 확인되지 않은 데이터가 있으면 ACK를 받을 때까지 버퍼에 둔다.
확인되지 않은 데이터가 없으면 바로 전송한다.


The key is to collect and transmit urgent data.

If the header continues to send a smaller package larger than the data, the overhead is larger.




However, in critical delays, this behavior may be rather problematic, which is why settings like TCP_NODELAY should be reviewed.

Nagle's algorithm reference

Comments

Loading comments.