Karn's Algorithm

Karn's Algorithm

Karn's Algorithm addresses the problem of getting accurate estimates of the round-trip time for messages when using TCP. Accurate round trip estimates in TCP can be difficult to calculate because of an ambiguity created by retransmitted segments. The round trip time is estimated as the difference between the time that a segment was sent and thetime that its acknowledgment was returned to the sender, but when packets are re-transmitted there is an ambiguity: the acknowledgment may be a response to the first transmission of the segment or to a subsequent re-transmission.

Karn's Algorithm requires not using retransmitted segments when updating the round trip estimate. Round trip time estimation is based only on unambiguous acknowledgments, which are acknowledgments for segments that were sent only once. This simplistic implementation of Karn's algorithm can lead to problems as well. Consider what happens when TCP sends a segment after a sharp increase in delay. Using the prior round trip time estimate, TCP computes a timeout and retransmits a segment. If TCP never acknowledges retransmitted packets, the round trip estimate time will never be updated, and TCP will continue retransmitting segments without adjusting to the increased delay.

A solution to this problem is to incorporate transmission timeouts with a timer backoff strategy. The timer backoff strategy computes an initial timeout. If the timer expires and causes a retransmission, TCP increases the timeout generally by a factor of 2.

new_timeout = 2*timeout

This algorithm has proven to be extremelyeffective in networks with high packet loss.
*.

External links

* RFC 2581 - TCP Congestion Control
* RFC 2988 - Computing TCP's Retransmission Timer


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Phil Karn — is an engineer from Baltimore, Maryland. He earned a bachelor s degree in electrical engineering from Cornell University in 1978 and a master s degree in electrical engineering from Carnegie Mellon University in 1979. From 1979 until 1984, Phil… …   Wikipedia

  • Algorithme de Karn — L algorithme de Karn permet d obtenir une mesure fiable du round trip delay time (RTT) lors de la transmission de paquets à travers un réseau via TCP. L algorithme a été proposé par Phil Karn en 1987[1]. Obtention de la mesure Obtenir une mesure… …   Wikipédia en Français

  • Список алгоритмов — Эта страница информационный список. Основная статья: Алгоритм Ниже приводится список алгоритмов, группированный по категориям. Более детальные сведения приводятся в списке структур данных и …   Википедия

  • 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

  • Cypherpunk — Not to be confused with Cyberpunk. A cypherpunk is an activist advocating widespread use of strong cryptography as a route to social and political change. Originally communicating through the Cypherpunks electronic mailing list, informal groups… …   Wikipedia

  • Jason Galanis — Jason Woodruff Galanis, (b. 1970) at New York Hospital on the Upper East Side of Manhattan, and raised in Greenwich, Connecticut, is an investor in financial technology companies and trademark inventions since 1988 and is currently a principal of …   Wikipedia

  • List of Magic: The Gathering sets — Magic sets redirects here. For the query optimization algorithm, see Magic Sets algorithm. These are tables of Magic: The Gathering card sets. A trading card game published by Wizards of the Coast, Magic is primarly marketed in base/core sets and …   Wikipedia

  • Synthesizer — For other uses, see Synthesizer (disambiguation). Synth redirects here. For other uses, see Synth (disambiguation). See also: Software synthesizer Early Minimoog by R.A. Moog Inc. (ca. 1970) A synthesizer (often abbreviated synth ) is an… …   Wikipedia

Share the article and excerpts

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