The device supports dynamic adjustment of the maximum segment size (MSS) of SYN or SYN-ACK packets during TCP connection setup.
During TCP connection setup, the Options field 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 packet forwarding to ensure that packet fragmentation does not occur. Provided that fragmentation does not occur, larger MSS values allow a greater amount of data to be sent per segment and thereby increase network utilization. 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.