191
Views
Interface view
Predefined user roles
network-admin
Parameters
value: Specifies the TCP MSS in bytes. The value range for this argument is 128 to 8968.
Usage guidelines
The MSS option informs the receiver of the largest segment that the sender can accept. Each end
announces its MSS during TCP connection establishment. If the size of a TCP segment is smaller
than the MSS of the receiver, TCP sends the TCP segment without fragmentation. If not, TCP
fragments the segment according to the receiver's MSS.
If you set the TCP MSS on an interface, the size of each TCP segment received or sent on the
interface cannot exceed the MSS value.
This configuration takes effect only on TCP connections that are established after the configuration
and not on the TCP connections that already exist.
This configuration is effective only on IP packets. If MPLS is enabled on the interface, do not set the
TCP MSS on the interface.
Examples
# Set the TCP MSS to 300 bytes on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] tcp mss 300
tcp path-mtu-discovery
Use tcp path-mtu-discovery to enable TCP path MTU discovery.
Use undo tcp path-mtu-discovery to disable TCP path MTU discovery.
Syntax
tcp path-mtu-discovery [ aging age-time | no-aging ]
undo tcp path-mtu-discovery
Default
TCP path MTU discovery is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
aging age-time: Specifies the aging time for the path MTU, in the range of 10 to 30 minutes. The
default aging time is 10 minutes.
no-aging: Does not age out the path MTU.
Usage guidelines
After you enable TCP path MTU discovery, all new TCP connections detect the path MTU. The
device uses the path MTU to calculate the MSS to avoid IP fragmentation.