Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Rate Halving Technique For Loss Recovery in TCP
Next article icon

Rate Halving Technique For Loss Recovery in TCP

Last Updated : 04 Mar, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

Rate Halving is the packet loss recovery algorithm that overcomes the issue of the Fast Recovery algorithm. Rate Halving means that it will half the rate of packet transmission such that the receiver's application is not stalling. It avoids the half window of silence which would otherwise frustrate the receiver if he doesn't get the packets during that period. So, instead of waiting for the half duration and then sending one packet per DUP-ACK for the rest half duration, rate halving sends one packet per two DUP-ACK arrivals. The overall number of packets transmitted is the same as Fast Recovery but the waiting time has been managed wisely. It allows the network to come out of the congestion state gradually instead of itself becoming silent for the half duration and let inflight drop to cwnd value. This is a very good optimization of fast recovery limitations.

Unlike the Fast Recovery technique, Rate Halving doesn't reduce the cwnd by 50% when the sender enters the recovery phase. It gradually decreases it by 50%.

Rate Halving Technique without SACK

The initial state of the fast recovery phase:

ssthresh = 5  cwnd = 10  inflight = 1
Rate Halving technique without SACK
Rate Halving technique without SACK
  1. When DUP-ACK arrives, pipe=10-1=9; sender doesn't respond and maintains silence.
  2. When DUP-ACK arrives, pipe=9-1=8; Now, the sender sends one new packet into the network, pipe=8+1=9.
  3. When DUP-ACK arrives, pipe=9-1=8; sender doesn't respond and maintains silence.
  4. When DUP-ACK arrives, pipe=8-1=7; Now, the sender sends one new packet into the network, pipe=7+1=8.
  5. When DUP-ACK arrives, pipe=8-1=7; sender doesn't respond and maintains silence.
  6. When DUP-ACK arrives, pipe=7-1=6; Now, the sender sends one new packet into the network, pipe=6+1=7.
  7. When DUP-ACK arrives, pipe=7-1=6; sender doesn't respond and maintains silence.
  8. When DUP-ACK arrives, pipe=6-1=5; Now, the sender sends one new packet into the network, pipe=5+1=6.
  9. When DUP-ACK arrives, pipe=6-1=5; sender doesn't respond and maintains silence.
  10. When DUP-ACK arrives, pipe=5-1=4; Now, the sender sends one new packet into the network, pipe=4+1=5.

So, the sender is gradually sending the new packets and not stalling the receiver's application.

This technique suffers from one shortcoming that it can't be used will all types of TCPs. It can only be used where cwnd is reduced to 50% when packet loss occurs. TCP like CUBIC where cwnd is reduced by 30% can't use the Rate Halving algorithm. Another optimized algorithm was invented for that by google called Proportional Rate Reduction (PRR).

Rate Halving technique with SACK

When packet loss occurs,  

pipe = 10, cwnd = 10, ssthresh = 5.

Then pipe and cwnd decreased to 5 after sender got 9 ACKs and transmitted 4 new segments (see above diagram).

Rate Halving technique with SACK
Rate Halving technique with SACK

SACK is sent by the receiver when it gets a packet out of order. This creates holes in the receiver buffer and it let the sender know about it and the sender sends the lost packets to neutralize the loss.

Current Scenario:

1 DUP-ACK comes with SACK information. SACK tells that 2 packets are lost.

pipe=5-1-2=2, -1 for DUP-ACK and -2 for lost packets.  pipe = 2 segments  cwnd = 5 segments  Sender sends one new packet, pipe=2+1=3  1 DUP-ACK comes, pipe=3-1=2  Sender sends new packet, pipe=2+1=3

This process continues. The problem with this approach is that even when pipe < cwnd, one new segment is sent for every DupACK received.  This problem leads to a conservative approach of transmission if pipe << cwnd.  

Limitations of Rate Halving:

It is not suitable for TCP CUBIC and other TCPs which does not reduce the cwnd by 50% when packet loss occurs. In that case, the sender can't send one new packet after every 2 DUP-ACK arrives. All TCPs don't reduce the cwnd by half on packet loss. This can be solved with PRR (Proportional Rate Reduction).


Next Article
Rate Halving Technique For Loss Recovery in TCP

P

pintusaini
Improve
Article Tags :
  • Computer Subject
  • Computer Networks
  • Geeks Premier League
  • Geeks-Premier-League-2022

Similar Reads

    Fast Recovery Technique For Loss Recovery in TCP
    When the RTO timer expires but an ACK is not received, the sender confirms that the packet is lost due to congestion at intermediary devices. Now sender has to tackle this congestion state carefully. Fast Recovery is the packet loss recovery technique. Recovery means becoming inactive and not transm
    4 min read
    Proportional Rate Reduction - TCP Loss Recovery Algorithm
    TCP CUBIC is becoming the default in Linux Kernel and the Rate Halving technique for congestion avoidance was becoming the default in Linux Kernel. So, there was a mismatch between these two. Because Rate Halving was good for TCP Reno, Tahoe, and NewReno. It is good for those TCPs only which reduce
    9 min read
    Crash Recovery in Transport Layer
    A key concept in the transport layer of an organizational convention, which is responsible for ensuring the reliable transfer of information between two endpoints, is crash recovery. Information loss or tampering may result from an organization failure or crash that occurs during the transmission of
    9 min read
    Techniques for achieving good Quality of Service (QoS)
    Quality of Service (QoS) in networks : A stream of packets from a source to destination is called a flow. Quality of Service is defined as something a flow seeks to attain. In connection oriented network, all the packets belonging to a flow follow the same order. In a connectionless network, all the
    2 min read
    Congestion Control techniques in Computer Networks
    Congestion control refers to the techniques used to control or prevent congestion. Congestion control techniques can be broadly classified into two categories: Open Loop Congestion ControlOpen loop congestion control policies are applied to prevent congestion before it happens. The congestion contro
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences