The device supports dynamic adjustment in the maximum segment size (MSS) of SYN or SYN-ACK packets during TCP connection setup.
During TCP connection setup, the Option of SYN or SYN-ACK packets may carry the MSS field to inform the peer device of the maximum segment size that the local device can receive. After the MSS values are exchanged and compared, the smaller MSS value is selected for forwarding packets to ensure that the network involves no packet fragmentation. If fragmentation does not exist, the larger the MSS value, the greater the amount of data sent per segment, and the higher the network usage. Proper MSS value adjustment can minimize the possibility of fragmentation and promote the transmission of large data packets to improve end-to-end TCP transmission efficiency.
If a SYN or SYN-ACK packet does not have an MSS field, the device automatically inserts an appropriate MSS value:
MSS=MTU-40–APPENDLEN
MSS indicates the MSS value that is automatically inserted. MTU indicates the maximum transmission unit of the interface. APPENDLEN indicates the packet length added during VPN encryption and encapsulation.