TCP tuning

TCP tuning

TCP tuning techniques adjust some parameters of TCP connection over high-bandwidth high-latency networks. Well tuned networks can perform up to 1000 times faster in some cases. [ [http://www.psc.edu/networking/projects/hpn-ssh/ High Performance Enabled SSH/SCP [PSC ] ]

Network and system characteristics

Bandwidth-delay product (BDP)

Bandwidth-delay product (BDP) is a term primarily used in conjunction with the TCP to refer to the number of bytes necessary to fill a TCP "path", i.e. it is equal to the maximum number of simultaneous packets in transit between the transmitter and the receiver. TCP has a concept of windows which are used for congestion control and for determining the optimum size of packet that is resilient to packet loss, packet truncation (due to link layer maximum transmission unit) or reordering.

High performance networks have very large BDPs. To give a practical example, in the case of two satellites located 0.5 light-seconds apart, communicating over a radio link with a bandwidth of 10 Gbit/s, there will be at most 0.5×1010 bits, i.e., 5 Gbit = 625 MB of data in the space between them. Operating systems and protocols designed as recently as a few years ago when networks were slower were tuned for BDPs of orders of magnitude smaller, with implications for tuning.

Buffers

The original TCP configurations supported buffers of up to 64K Bytes (64 KiB), which was adequate for slow links or links with small round trip times (RTTs). Larger buffers are required by the high performance options described below.

Buffering is used throughout high performance network systems to handle delays in the system. In general, buffer size will need to be scaled proportional to the amount of data "in flight" at any time. For very high performance applications that are not sensitive to network delays, it is possible to interpose large end to end buffering delays by putting in intermediate data storage points in an end to end system, and then to use automated and scheduled non-real-time data transfers to get the data to their final endpoints.

TCP speed limits

Maximum achievable throughput for a single TCP connection is determined by different factors. One trivial limitation is the maximum bandwidth on the slowest link on the path. But there are also other, less obvious limits for TCP thoughput. Bit errors can create a limitation for the connection as well as round-trip time.

Window size

In computer networking, RWIN (TCP Receive Window) is the amount of data that a computer can accept without acknowledging the sender. If sender has not received acknowledgement for the first packet it sent, it will stop and wait and if this wait exceeds a certain limit, it may even retransmit. This is how TCP achieves reliable data transfer.

Even if there is no packet loss in the network, the windowing can cause a limit for the throughput. Because TCP transmits data up to the window size before waiting for the packets, the full bandwidth of the network may not always get used. The limitation caused by window size can be calculated as follows:

extit{Throughput} le frac { extit{RWIN { extit{RTT,

where RWIN is the maximum receive windows size and RTT is the round-trip time for the path.

Packet loss

When packet loss occurs in the network, an additional limit is imposed on the connection. The limit can be calculated according to the formula (Mathis et al.):

extit{Throughput} le frac {0.7 extit{MSS { extit{RTT} sqrt{ extit{Ploss} ,

where MSS is the maximum segment size and Ploss is the probability of packet loss. [RFC 3155]

TCP Options for High Performance

A number of extensions have been made to TCP over the years to increase its performance over fast high-RTT links ("long fat networks", or LFNs for short).

TCP timestamps (RFC 1323) play a double role: they avoid ambiguities due to the 32-bit sequence number field wrapping around, and they allow more precise RTT estimation in the presence of multiple losses per RTT. With those improvements, it becomes reasonable to increase the TCP window beyond 64 kB, which can be done using the window scaling option (RFC 1323).

The TCP selective acknowledgment options (SACK, RFC 2018) allows a TCP receiver to precisely inform the TCP server about which segments have been lost. This increases performance on high-RTT links, when multiple losses per window are possible.

Path MTU discovery avoids the need for in-network fragmentation, which increases performance in the presence of losses.

References

External links

* RFC 1323 - TCP Extensions for High Performance
* RFC 2018 - TCP Selective Acknowledgment Options
* RFC 2582 - The NewReno Modification to TCP's Fast Recovery Algorithm
* RFC 2883 - An Extension to the Selective Acknowledgment (SACK) Option for TCP
* RFC 3517 - A Conservative Selective Acknowledgment-based Loss Recovery Algorithm for TCP
* RFC 4138 - Forward RTO-Recovery (F-RTO): An Algorithm for Detecting Spurious Retransmission Timeouts with TCP and the Stream Control Transmission Protocol (SCTP)
* [http://www.microsoft.com/technet/technetmag/issues/2007/01/CableGuy/default.aspx The Cable Guy: TCP Receive Window Auto-Tuning]
* [http://www.web100.org/ The Web100 Data Bandwidth Testing]
* [http://www.dslreports.com/drtcp DrTCP] - a utility for Microsoft Windows (prior to Vista) which can quickly alter TCP performance parameters in the registry.
* [http://www.dslreports.com/tweaks Information on 'Tweaking' your TCP stack] , Broadband Reports
* [http://www.speedguide.net/analyzer.php TCP/IP Analyzer] , speedguide.net
* [http://www.inboost.com/speed-tweaks/cable-modem-tweaks.html TCP RWIN Tweaks] , Inbost
* [http://blogs.technet.com/winserverperformance/archive/2008/05/03/nt-ttcp-network-performance-test-tool-available.aspx NTTTCP Network Performance Test Tool] , Microsoft Windows Server Performance Team Blog


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • TCP acceleration — is the name of a series of techniques for achieving better throughput on an Internet connection than standard TCP achieves, without modifying the end applications. It is an alternative or a supplement to TCP tuning.Commonly used approaches… …   Wikipedia

  • TCP Vegas — is a TCP congestion control, or network congestion avoidance, algorithm that emphasizes packet delay, rather than packet loss, as a signal to help determine the rate at which to send packets. It was developed at the University of Arizona by… …   Wikipedia

  • TCP Receive Window — Die TCP Receive Window (Size), auch kurz RWin oder Window, englisch für „Empfangsfenster(größe)“, ist neben der Maximum Segment Size (MSS) ein Parameter, der die Funktion des Netzwerkprotokolls Transmission Control Protocol (TCP) steuert. Sie… …   Deutsch Wikipedia

  • Self-tuning — In control theory a self tuning system is capable of optimizing its own internal running parameters in order to maximize or minimize the fulfillment of an objective function; typically efficiency or error. Self tuning systems typically exhibit… …   Wikipedia

  • Compound TCP — (CTCP) is a Microsoft algorithm that was introduced as part of the Windows Vista and Window Server 2008 TCP stack. It is designed to aggressively adjust the sender s congestion window to optimise TCP for connections with large bandwidth delay… …   Wikipedia

  • Network Improvement — is a large subject that encompasses all actions that can be taken to improve computer or digital networks. Network Traffic Control A network traffic controller is a mechanism to control the flow of traffic on the network. The controller may be… …   Wikipedia

  • Transmission Control Protocol — The Transmission Control Protocol (TCP) is one of the core protocols of the Internet Protocol Suite. TCP is so central that the entire suite is often referred to as TCP/IP. Whereas IP handles lower level transmissions from computer to computer as …   Wikipedia

  • Congestion window — Internet protocol suite Application layer BGP DHCP DNS FTP HTTP …   Wikipedia

  • Protocol spoofing — is used in data communications to improve performance in situations where an existing protocol is inadequate, for example due to long delays or high error rates.Note: In a computer security context, spoofing refers to various forms of… …   Wikipedia

  • Western Digital My Book — A My Book Essential Edition External Hard Drive with 1 TB capacity My Book is a series of external hard drives produced by Western Digital. There are currently nine series of My Book drives; Essential Edition, Home Edition, Office Edition, Mirror …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”