TCP Delay confirmation

Source: Internet
Author: User
Introduction

TCP Delay confirmationIs implemented by some technologies, Strive to improveNetwork PerformanceTransmission ControlProtocol.Essentially, severalResponseMay be combined to form a response to reduce protocol overhead.However, in some cases, this technology can reduce applicationProgramPerformance.

Methods and advantages

Description in RFC 1122The host may delay sending ACK responses to 500 ms.In addition, an ACK response is sent when a full TCP packet segment is received.

Delayed ack can give the application the opportunity to send updates togetherTCP Receiving Window, Ack and instant response of applications.For example, some protocols,Remote LoginBy combining ACK, TCP Window update, and application response into a packet segment, the latency ack can reduce the server's response data by three times.

Problem

When some applications interact with the configuration, the latency ack introduces additional wait time may cause further delay.

IfNagleAlgorithmIt is used by the sender, and the data will be queued until an ACK is received.If the sender does not send enough data to fillMaximum Segment Size(For example, if it executes two small writes with one blocking read), then the sender's application will pause until the ACK delay times out.

For example, consider a situation where Bob sends data to Carol, BobIn the socket layer, the valid data to be sent is not a complete packet. AccordingNagle algorithm, which is not sent until an ACK is received to confirm that the data has been sent.At the same time, Carol's Application Layer does not send a response until it gets all the data.If Carol uses delayed ACK, the socket layer will not send an ACK until the last timeout occurs.

This negative effect may occur if the application transmits data in a small block and expects Regular Response confirmation.To prevent this delay, the application layer needs to continuously send data without waiting for confirmation.In addition, the sending application may disable the Nagle algorithm.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.