3 ms·
Transfer Control Protocol (TCP) provides solutions for many problems affecting data transmission. The most important aspect, reliability, is addressed via ackn
by 29athrowaway 6y ago
Transfer Control Protocol (TCP) provides solutions for many problems affecting data transmission.
The most important aspect, reliability, is addressed via acknowledgments and retransmissions, and shapes the "TCP state machine" (insert diagram here).
Congestion control is another one. One mechanism of congestion control in TCP is the Nagle's algorithm.
https://en.wikipedia.org/wiki/Nagle%27s_algorithm https://en.wikipedia.org/wiki/Nagle%27s_algorithm
Disabling Nagle's algorithm is usually done via the TCP_NODELAY flag.
If you want to learn more about networking I recommend:
- http://williamstallings.com/DataComm/ http://williamstallings.com/DataComm/
- https://beej.us/guide/bgnet/ https://beej.us/guide/bgnet/