Lecture 8 Notes

Who wants to turn the algorithm o search on google and

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: there is unAcked data in flight buffer the new data un)l ACK arrives else send all the new data now •  Receiver should avoid adver)sing a window <= MSS aser adver)sing a window of 0 hqp://tools.ieu.org/html/rfc896 Delayed Acknowledgments •  Goal: Piggy- back ACKs on data –  Delay ACK for 200ms in case applica)on sends data –  If more data received, immediately ACK second segment –  Note: never delay duplicate ACKs (if missing a segment) •  Warning: can interact very badly with Nagle –  Temporary deadlock –  Can disable Nagle with TCP_NODELAY –  Applica)on can also avoid many small writes hqp://en.wikipedia.org/wiki/TCP_delayed_acknowledgment hqp://developers.slashdot.org/comments.pl?sid=174457&cid=14515105 Turning Nagle’s Algorithm Off “In general, since Nagle's algorithm is only a defense against careless applica>ons, it will not benefit a carefully wriAen applica>on that takes proper care of buffering; the algorithm has either no effect, or nega>ve effect on the applica>on.” •  Who wants to turn the algorithm off? –  Search on Google and find out. hqp://en.wikipedia.org/wiki/Nagle'...
View Full Document

Ask a homework question - tutors are online