The TCP receiving buffer is utilized to buffer the data
received from the peer end. These data will be
subsequently read by the application program.
Generally, the window size of TCP packets implies the
size of free space in the receiving buffer. For sessions
featuring greater bandwidth ratio and excess data,
increasing the size of receiving buffer will provide
notable TCP transmission performance. The sending
buffer is utilized to buffer the data of application
program. Each byte in the buffer has its sequence
number, and byte with sequence number acknowledged
will be removed from the sending buffer. Increasing the
sending buffer will improve the interaction between TCP
and application program and thus enhance the
performance. However, increasing the receiving buffer
and sending buffer will result in more memory
consumption of TCP.
This command is used to change the size of receiving
buffer and sending buffer for TCP session.
This command changes both the receiving buffer and
sending buffer, and only applies to the newly
established session.