No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Service

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring TCP Properties

Configuring TCP Properties

Context

When a TCP connection is set up between router and other devices, TCP properties such as TCP connection for BGP need to be configured.

The following TCP properties can be configured on router:

  • SYN-Wait timer: When SYN packets are sent, the SYN-Wait timer is started. If no response packet is received after the SYN-Wait timer expires, the TCP connection is closed.

  • FIN-Wait timer: When the TCP connection status changes from FIN_WAIT_1 to FIN_WAIT_2, the FIN-Wait timer is started. If no response packet is received after the FIN-Wait timer expires, the TCP connection is closed.

  • Receive/send buffer size of connection-oriented socket.

  • Aging time of the TCP Path MTU.

  • the MSS of TCP Packets on an Interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run tcp timer syn-timeout interval

    The SYN-Wait timer of TCP connections is configured.

    By default, the value of the TCP SYN-Wait timer is 75s.

  3. Run tcp timer fin-timeout interval

    The FIN-WAIT timer of TCP connections is configured.

    By default, the value of the TCP FIN-Wait timer is 675s.

  4. Run tcp window window-size

    The size of the receive or send buffer of a connection-oriented socket is configured.

    By default, the size of the receive or send buffer of a connection-oriented socket is 8k bytes.

  5. Run tcp min-mss mss-value

    The minimum MSS value is configured for a TCP connection.

    By default, the minimum MSS value for a TCP connection is 216 bytes.

  6. Run interface interface-type interface-number

    The interface view is displayed.

  7. Run tcp adjust-mss value

    The MSS of TCP packets is configured on the interface.

    By default, the MSS of TCP packets is not configured on the interface.

    The MSS of TCP packets is an option defined in TCP. It refers to the maximum length of a TCP packet segment that can be received by the peer device. When establishing the TCP connection, the local and peer ends negotiate the MSS value to determine the maximum data length of TCP packets. If the length of a TCP packet sent by the peer device exceeds the negotiated MSS, the TCP packet is fragmented.

    When configuring the MSS of TCP packets, pay attention to the following points:
    • To ensure that TCP packets are not fragmented, pay attention to the relationship between the MSS and MTU during configuration. MTU is an option defined by the data link layer to identify whether IP packets need to be fragmented. If the size of an IP packet sent by the peer device exceeds the MTU, the IP packet is fragmented. To ensure that the packet transmission is not affected, the MSS value plus the header lengths (such as the TCP header and IP header) does not exceed the MTU value. For example, the default MTU value of an Ethernet interface is 1500 bytes. To ensure that packets are not fragmented, the MSS value can be set to 1460 bytes. The formula is as follows: Default MTU value (1500 bytes) – Minimum length of the TCP header (20 bytes) – Minimum length of the IP header (20 bytes). The recommended MSS value is 1200 bytes.

    • The tcp adjust-mss command does not only take effect for the router functioning as the client or server used for TCP connections. When another device functions as the client to perform MSS negotiation through the router, the negotiation result is modified based on the MSS configured on the router. In addition, the MSS value is changed to the value configured using the tcp adjust-mss command only when the MSS value received by the router is larger than the value configured using the tcp adjust-mss command executed on the router.

    • If you run the tcp adjust-mss multiple times in the same interface view, only the latest configuration takes effect.

  8. Run tcp timer pathmtu-age age-time

    The aging time for a TCP PMTU is configured.

    By default, the aging time of the PMTU is 0 minutes, that is, the PMTU never ages.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 33519

Downloads: 167

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next