While looking for solution to a problem in socket programming with python described here (In short the problem is: I want my message(
~ 25 Bytes) sent by a client over a TCP socket to be dispatched(flushed) immediately.), I came across this article.
In the 6th paragraph of the section "How Established Connections Work" the article says following:
The actual transmission of the data to the NIC could be somewhat delayed from when the user actually calls write(2) if the network is busy, if the TCP send window is full, if there are traffic shaping policies in effect, etc.
My questions are:
- With a very fast and private network(I can guarantee availability) and TCP send window not being full. Will my small messages of size ~25 bytes be sent immediately?
- What could these traffic shaping policies be in default case in recent Ubuntu like 14, 16 and 18?