EXAMRADAR

Question: In TCP, Karn's algorithm is used in calculations by the _______ timer.

Answer:

In TCP, Karn's algorithm is used in calculations by the retransmission timer.

The retransmission timer is a timer that is started when a segment is sent and is used to determine when to retransmit a segment that has not been acknowledged by the receiver. Karn's algorithm is a technique used to calculate the retransmission timer's expiration time.

The basic idea behind Karn's algorithm is that if a segment is retransmitted, then the measured round-trip time (RTT) for that segment is no longer valid because it includes the time for the original transmission and any retransmissions. Therefore, Karn's algorithm uses only the RTT measurements for segments that were transmitted and acknowledged for the first time to calculate the retransmission timer's expiration time.

The algorithm works as follows:

  1. Initially, the retransmission timer is set to a default value.
  2. When a segment is sent, the current time is recorded as the transmission time.
  3. When an acknowledgment is received, the current time is recorded as the receipt time.
  4. The RTT for the segment is calculated as the difference between the receipt time and the transmission time.
  5. If the segment is retransmitted, then the measured RTT for the retransmission is not used to update the retransmission timer.
  6. The retransmission timer's expiration time is calculated as a function of the current estimated RTT and the deviation of the RTT from the mean RTT.

By using Karn's algorithm, TCP can accurately determine when to retransmit a segment without being influenced by the RTT measurements for retransmitted segments. This helps to ensure that the retransmission timer is set appropriately, and segments are retransmitted promptly in the case of lost or delayed packets.

MCQ: In TCP, Karn's algorithm is used in calculations by the _______ timer.

Correct Answer: A. retransmission

Explanation:

In TCP, Karn's algorithm is used in calculations by the retransmission timer.

The retransmission timer is a timer that is started when a segment is sent and is used to determine when to retransmit a segment that has not been acknowledged by the receiver. Karn's algorithm is a technique used to calculate the retransmission timer's expiration time.

The basic idea behind Karn's algorithm is that if a segment is retransmitted, then the measured round-trip time (RTT) for that segment is no longer valid because it includes the time for the original transmission and any retransmissions. Therefore, Karn's algorithm uses only the RTT measurements for segments that were transmitted and acknowledged for the first time to calculate the retransmission timer's expiration time.

The algorithm works as follows:

  1. Initially, the retransmission timer is set to a default value.
  2. When a segment is sent, the current time is recorded as the transmission time.
  3. When an acknowledgment is received, the current time is recorded as the receipt time.
  4. The RTT for the segment is calculated as the difference between the receipt time and the transmission time.
  5. If the segment is retransmitted, then the measured RTT for the retransmission is not used to update the retransmission timer.
  6. The retransmission timer's expiration time is calculated as a function of the current estimated RTT and the deviation of the RTT from the mean RTT.

By using Karn's algorithm, TCP can accurately determine when to retransmit a segment without being influenced by the RTT measurements for retransmitted segments. This helps to ensure that the retransmission timer is set appropriately, and segments are retransmitted promptly in the case of lost or delayed packets.

Discuss a Question

Related Questions

You may be interested in:

Computer Networking MCQs

Recently Added Articles

AI vs Machine Learning: Key Differences Every Professional Should Know

Last updated on: February 13, 2026Posted by: ExamRadar

Office Cleaning Services That Elevate Sydney Offices

Last updated on: February 11, 2026Posted by: ExamRadar

Mental Health Support That’s Closer Than You Think

Mental Health Support That’s Closer Than You Think

Last updated on: January 7, 2026Posted by: ExamRadar

Columbus roofing company

Transform Your Home’s Exterior with Columbus roofing company

Last updated on: November 27, 2025Posted by: ExamRadar

What to Ask Before Booking TMS Therapy Near Me

Last updated on: November 7, 2025Posted by: ExamRadar

5 Trading Strategies to Minimize Risk

Last updated on: October 18, 2025Posted by: ExamRadar