how TCP can be tuned for high-performance one-way transmission?

前端 未结 3 524
再見小時候
再見小時候 2021-02-11 04:21

my (network) client sends 50 to 100 KB data packets every 200ms to my server. there\'re up to 300 clients. Server sends nothing to client. Server (dedicated) and clients are in

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-11 04:27

    I did a study on this a couple of years ago wth 1700 data points. The conclusion was that the single best thing you can do is configure an enormous socket receive buffer (e.g. 512k) at the receiver. Do that to the listening socket, so it will be inherited by the accepted sockets, so it will already be set while they are handshaking. That in turn allows TCP window scaling to be negotiated during the handshake, which allows the client to know about the window size > 64k. The enormous window size basically lets the client transmit at the maximum possible rate, subject only to congestion avoidance rather than closed receive windows.

提交回复
热议问题