![Huawei AR150 series Configuration Manual Download Page 198](http://html.mh-extra.com/html/huawei/ar150-series/ar150-series_configuration-manual_169290198.webp)
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
tcp window
window-size
The packet receive or transmit buffer size of a connection-oriented socket is set.
The value of
window-size
ranges from 1 to 32, in K bytes. The default value is 8K bytes.
----End
7.5.5 Setting the MSS of TCP Packets on an Interface
After the maximum segment size (MSS) of TCP packets on an interface is set, the size of received
or sent TCP packets is limited within the MSS so that network performance is improved.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type interface-number
The interface view is displayed.
Step 3
Run:
tcp adjust-mss
value
The MSS of TCP packets is set on the interface.
The MSS of TCP packets on an interface is an integer that ranges from 128 to 2048, in bytes.
----End
7.5.6 Checking the Configuration
After configuring TCP attributes, you can view the configuration.
Procedure
l
Run the
display tcp status
[ [
task-id
task-id
] [
socket-id
socket-id
] | [
local-ip
ipv4-
address
] [
local-port
local-port-number
] [
remote-ip
ipv4-address
] [
remote-port
remote-port-number
] ] command to check the TCP connection status.
l
Run the
display tcp statistics
command to check the TCP traffic statistics.
----End
Example
# Run the
display tcp status
command to view the TCP connection status.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
7 IP Performance Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
186