Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Transmission Control Protocol
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Forcing data delivery=== Normally, TCP waits for 200 ms for a full packet of data to send ([[Nagle's Algorithm]] tries to group small messages into a single packet). This wait creates small, but potentially serious delays if repeated constantly during a file transfer. For example, a typical send block would be 4 KB, a typical MSS is 1460, so 2 packets go out on a 10 Mbit/s Ethernet taking ~1.2 ms each followed by a third carrying the remaining 1176 after a 197 ms pause because TCP is waiting for a full buffer. In the case of telnet, each user keystroke is echoed back by the server before the user can see it on the screen. This delay would become very annoying. Setting the [[network socket|socket]] option <code>TCP_NODELAY</code> overrides the default 200 ms send delay. Application programs use this socket option to force output to be sent after writing a character or line of characters. The {{harvtxt|RFC 793}} defines the <code>PSH</code> push bit as "a message to the receiving TCP stack to send this data immediately up to the receiving application".<ref name=comer/> There is no way to indicate or control it in [[user space]] using [[Berkeley sockets]]; it is controlled by the [[protocol stack]] only.<ref name="Stevens2006">{{cite book|author=Richard W. Stevens|title=TCP/IP Illustrated. Vol. 1, The protocols|url=https://archive.org/details/tcpipillustrated00stev|url-access=registration|date=November 2011|publisher=Addison-Wesley|isbn=978-0-201-63346-7|pages=Chapter 20}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)