Use this command to change the size of receiving buffer and sending buffer for TCP connections.
Use the no form of this command to restore the default setting.
Size of receiving buffer and sending buffer for TCP connections in the
range from 128 to 65535 << 14 bytes.
The TCP receiving buffer is used to buffer the data received from the peer end. These data will be
subsequently read by application programs. Generally, the window size of TCP packets implies the
size of free space in the receiving buffer. For connections involving a large bandwidth and mass data,
increasing the size of receiving buffer will remarkably improve TCP transmission performance.
The sending buffer is used to buffer the data of application programs. Each byte in the sending buffer
has a sequence number, and bytes with sequence numbers acknowledged will be removed from the
sending buffer. Increasing the sending buffer will improve the interaction between TCP and
application programs, thus enhancing 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 connections.
This command changes both the receiving buffer and sending buffer, and only applies to subsequent
connections. This command applies to both IPv4 and IPv6 TCP.
The following example sets the TCP window size to 16386 bytes.
Ruijie(config)# ip tcp window-size 16386