Metraipolis › archive › dc_3ec6ce28a924

Karn's algorithm — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Karn%27s_algorithm
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T14:58:24.777Z
SHA-256 of the archived text
6ed54ceea82f9c925363d15a1741973608e2704000b4b4b2a0663c0a04de46d2
Stable URL of this page
https://metraipolis.com/documento/dc_3ec6ce28a924

How to cite

Karn's algorithm — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Karn%27s_algorithm (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_3ec6ce28a924 (Metraipolis archive dc_3ec6ce28a924, sha256 6ed54ceea82f9c925363d15a1741973608e2704000b4b4b2a0663c0a04de46d2)
BibTeX
@misc{dc3ec6ce28a924,
  title = {Karn's algorithm — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Karn%27s_algorithm},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_3ec6ce28a924; sha256 6ed54ceea82f9c925363d15a1741973608e2704000b4b4b2a0663c0a04de46d2},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Karn%27s_algorithm. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Karn's algorithm addresses the problem of getting accurate estimates of the round-trip time for messages when using the Transmission Control Protocol (TCP) in computer networking. The algorithm, also sometimes termed as the Karn-Partridge algorithm was proposed in a paper by Phil Karn and Craig Partridge in 1987. 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 the time 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 ignores retransmitted segments when updating the round-trip time 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 ignores the round-trip time of all retransmitted packets, the round trip estimate will never be updated, and TCP will continue retransmitting every segment, never 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 two. This algorithm has proven to be extremely effective in balancing performance and efficiency in networks with high packet loss. Ideally, Karn's algorithm would not be needed. Networks that have high round-trip time and retransmission timeouts should be investigated using root cause analysis techniques.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Karn's algorithm» — https://en.wikipedia.org/wiki/Karn%27s_algorithm
Wikidata Q2835797 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q2835797
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Karn%27s_algorithm?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1134050804, consultata il 2026-10-07T14:31:23.826Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 859de8924ab80677be62e7aa3135379702b51dd37431aa60e783eb76eed7eb48