SlideShare a Scribd company logo
1 of 10
Retransmission Timer
• To retransmit lost segments, TCP employs one retransmission timer , that
handles the retransmission time-out (RTO).
• We can define the following rules for the retransmission timer:
1. When TCP sends the segment in front of the sending queue, it starts the
timer.
2. When the timer expires, TCP resends the first segment in front of the
queue, and restarts the timer.
3. When a segment are cumulatively acknowledged, the segment are
purged from the queue.
4. If the queue is empty, TCP stops the timer; otherwise, TCP restarts the
timer.
Round-Trip Time (RTT)
• To calculate the retransmission time-out (RTO), we first need to
calculate the roundtrip time (RTT).
• Measured RTT The measured round-trip time for a segment is the
time required for the segment to reach the destination and be
acknowledged, although the acknowledgment may include other
segments.
• We use the notation RTTM to stand for measured RTT.
Round-Trip Time (RTT)
• Smoothed RTT The RTTM, is likely to change for each
round trip.
• The fluctuation is so high that a single measurement
alone cannot be used for retransmission time-out
purposes.
• Most implementations use a smoothed RTT, called
RTTS, which is a weighted average of RTTM and the
previous RTTS as shown below.
Round-Trip Time (RTT)
• The value of α is implementation-dependent, but it is normally set to
1/8. In other words, the new RTTS is calculated as 7/8 of the old RTTS
and 1/8 of the current RTTM.
Round-Trip Time (RTT)
• RTT Deviation Most implementations do not just use
RTTS; they also calculate the RTT deviation, called
RTTD, based on the RTTS and RTTM using the
following formulas.
• The value of β is also implementation-dependent, but
is usually is set to ¼.
Retransmission Time-out (RTO)
• The value of RTO is based on the smoothed round-trip time and its
deviation. Most implementations use the following formula to
calculate the RTO:
D
Example
Karn’s Algorithm
• Suppose that a segment is not ack and is therefore
retransmitted.
• When the sending TCP receives an acknowledgment
for this segment, it does not know if the ack is for the
original segment or for the retransmitted one.
• Do not consider the round-trip time of a
retransmitted segment in the calculation of RTTs.
• Do not update the value of RTTs until you send a
segment and receive an acknowledgment without the
need for retransmission
Exponential Backoff
• What is the value of RTO if a retransmission occurs?
• The value of RTO is doubled for each retransmission.
• If the segment is retransmitted once, the value is two times the RTO.
• If it transmitted twice, the value is four times the RTO, and so on.
Example

More Related Content

Similar to RTO Calculation (1)(1)(1).pptx

Similar to RTO Calculation (1)(1)(1).pptx (20)

OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
 
Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1
 
Timers and pwm
Timers and pwmTimers and pwm
Timers and pwm
 
8051e
8051e8051e
8051e
 
Flow control
Flow controlFlow control
Flow control
 
Wmc assi 1
Wmc assi 1Wmc assi 1
Wmc assi 1
 
Wmc assi 1
Wmc assi 1Wmc assi 1
Wmc assi 1
 
Transport layer
Transport layerTransport layer
Transport layer
 
Flow control
Flow controlFlow control
Flow control
 
RIPE 80: Buffers and Protocols
RIPE 80: Buffers and ProtocolsRIPE 80: Buffers and Protocols
RIPE 80: Buffers and Protocols
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Traffic Characterization
Traffic CharacterizationTraffic Characterization
Traffic Characterization
 
Time delays & counter.ppt
Time delays & counter.pptTime delays & counter.ppt
Time delays & counter.ppt
 
6610-l14.pptx
6610-l14.pptx6610-l14.pptx
6610-l14.pptx
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Control
 
Delay routine
Delay routineDelay routine
Delay routine
 
Tcp(no ip) review part1
Tcp(no ip) review part1Tcp(no ip) review part1
Tcp(no ip) review part1
 
Studying_the_TCP_Flow_and_Congestion_Con.pdf
Studying_the_TCP_Flow_and_Congestion_Con.pdfStudying_the_TCP_Flow_and_Congestion_Con.pdf
Studying_the_TCP_Flow_and_Congestion_Con.pdf
 
TDMA.pptx
TDMA.pptxTDMA.pptx
TDMA.pptx
 
Timing & Control.pptx
Timing & Control.pptxTiming & Control.pptx
Timing & Control.pptx
 

Recently uploaded

一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
eqaqen
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora Agency
Isadora Agency
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
yhavx
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
mark11275
 
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in RiyadhIn Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
ahmedjiabur940
 
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
drmarathore
 
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
awasv46j
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
eeanqy
 

Recently uploaded (20)

Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
 
Edward Boginsky's Trailblazing Contributions to Printing
Edward Boginsky's Trailblazing Contributions to PrintingEdward Boginsky's Trailblazing Contributions to Printing
Edward Boginsky's Trailblazing Contributions to Printing
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora Agency
 
Gamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad IbrahimGamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad Ibrahim
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
Morgenbooster: Storytelling in Identity Design
Morgenbooster: Storytelling in Identity DesignMorgenbooster: Storytelling in Identity Design
Morgenbooster: Storytelling in Identity Design
 
Essential UI/UX Design Principles: A Comprehensive Guide
Essential UI/UX Design Principles: A Comprehensive GuideEssential UI/UX Design Principles: A Comprehensive Guide
Essential UI/UX Design Principles: A Comprehensive Guide
 
Spring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers ParisSpring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers Paris
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Semarang ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in RiyadhIn Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
In Saudi Arabia Jeddah (+918761049707)) Buy Abortion Pills For Sale in Riyadh
 
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
Furniture & Joinery Details_Designs.pptx
Furniture & Joinery Details_Designs.pptxFurniture & Joinery Details_Designs.pptx
Furniture & Joinery Details_Designs.pptx
 
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
 
Spring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers ParisSpring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers Paris
 
Branding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdfBranding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdf
 

RTO Calculation (1)(1)(1).pptx

  • 1. Retransmission Timer • To retransmit lost segments, TCP employs one retransmission timer , that handles the retransmission time-out (RTO). • We can define the following rules for the retransmission timer: 1. When TCP sends the segment in front of the sending queue, it starts the timer. 2. When the timer expires, TCP resends the first segment in front of the queue, and restarts the timer. 3. When a segment are cumulatively acknowledged, the segment are purged from the queue. 4. If the queue is empty, TCP stops the timer; otherwise, TCP restarts the timer.
  • 2. Round-Trip Time (RTT) • To calculate the retransmission time-out (RTO), we first need to calculate the roundtrip time (RTT). • Measured RTT The measured round-trip time for a segment is the time required for the segment to reach the destination and be acknowledged, although the acknowledgment may include other segments. • We use the notation RTTM to stand for measured RTT.
  • 3. Round-Trip Time (RTT) • Smoothed RTT The RTTM, is likely to change for each round trip. • The fluctuation is so high that a single measurement alone cannot be used for retransmission time-out purposes. • Most implementations use a smoothed RTT, called RTTS, which is a weighted average of RTTM and the previous RTTS as shown below.
  • 4. Round-Trip Time (RTT) • The value of α is implementation-dependent, but it is normally set to 1/8. In other words, the new RTTS is calculated as 7/8 of the old RTTS and 1/8 of the current RTTM.
  • 5. Round-Trip Time (RTT) • RTT Deviation Most implementations do not just use RTTS; they also calculate the RTT deviation, called RTTD, based on the RTTS and RTTM using the following formulas. • The value of β is also implementation-dependent, but is usually is set to ¼.
  • 6. Retransmission Time-out (RTO) • The value of RTO is based on the smoothed round-trip time and its deviation. Most implementations use the following formula to calculate the RTO: D
  • 8. Karn’s Algorithm • Suppose that a segment is not ack and is therefore retransmitted. • When the sending TCP receives an acknowledgment for this segment, it does not know if the ack is for the original segment or for the retransmitted one. • Do not consider the round-trip time of a retransmitted segment in the calculation of RTTs. • Do not update the value of RTTs until you send a segment and receive an acknowledgment without the need for retransmission
  • 9. Exponential Backoff • What is the value of RTO if a retransmission occurs? • The value of RTO is doubled for each retransmission. • If the segment is retransmitted once, the value is two times the RTO. • If it transmitted twice, the value is four times the RTO, and so on.