Nagle's Algorithm - Negative Effect On Non-small Writes

Negative Effect On Non-small Writes

The algorithm applies to data of any size. If the data in a single write spans 2n packets, the last packet will be withheld, waiting for the ACK for the previous packet. In any request-response application protocols where request data can be larger than a packet, this can artificially impose a few hundred milliseconds latency between the requester and the responder, even if the requester has properly buffered the request data. Nagle's algorithm must be disabled by the requester in this case. If the response data can be larger than a packet, the responder must also disable Nagle's algorithm so the requester can promptly receive the whole response.

In general, since Nagle's algorithm is only a defense against careless applications, it will not benefit a carefully written application that takes proper care of buffering; the algorithm has either no effect, or negative effect on the application.

Read more about this topic:  Nagle's Algorithm

Famous quotes containing the words negative, effect and/or writes:

    The working woman may be quick to see any problems with children as her fault because she isn’t as available to them. However, the fact that she is employed is rarely central to the conflict. And overall, studies show, being employed doesn’t have negative effects on children; carefully done research consistently makes this clear.
    Grace Baruch (20th century)

    Movies are one of the bad habits that corrupted our century. Of their many sins, I offer as the worst their effect on the intellectual side of the nation. It is chiefly from that viewpoint I write of them—as an eruption of trash that has lamed the American mind and retarded Americans from becoming a cultured people.
    Ben Hecht (1893–1964)

    So, my sweetheart back home writes to me and wants to know what this gal in Bombay’s got that she hasn’t got. So I just write back to her and says, “Nothin’, honey. Only she’s got it here.”
    Alvah Bessie, Ranald MacDougall, and Lester Cole. Raoul Walsh. Sergeant Tracey, Objective Burma, to a buddy (1945)