





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






^ Window management in TCP is not tied toacknowledgments as it is in most data linkprotocols. ^ For example:^ •^
suppose that the receiver has a 4095-byte buffer. • If the sender transmits a 2048-byte segment that iscorrectly received, the receiver will acknowledge thesegment. • However, since it now has only 2048 of buffer space (untilthe application removes some data from the buffer), it willadvertise a window of 2048 starting a the next byteexpected. • Now the sender transmits another 2048 bytes, which areacknowledged, but the advertised window is 0. • The sender must stop until the application process on thereceiving side has removed some data from the buffer.Then, TCP can advertise a larger window. • There are two exceptions: urgent data may be sent (ex. toallow user to kill the process), or send 1 byte to make thereceiver re-announce the window (in case it was lost)
-^ When the load offered to any networks is more thanit can handle, congestion builds up. The Internet isno exception. •^ Algorithms have been developed over the pastdecade to deal with congestion. •^ Although the network layer also tries to managecongestion, most of the heavy lifting is done by TCPbecause the real solution to congestion is to slowdown the data rate.
-^ In theory congestion can be dealt with by employinga principle borrowed from physics: the law ofconservation of packets. The idea is not to inject anew packet into the network until an old one leaves(i.e. is delivered). TCP attempts to achieve this goalby^
dynamically manipulating the Window size
-^ TCP uses multiple timers (at least conceptually) to do its work. •^ The most important of these is the
retransmission timer
.
When a segment is sent, a retransmission timer is started. Ifthe segment is acknowledged before the timer expires, thetimer is stopped. If, on the other hand, the timer goes offbefore the acknowledgment comes in the segment isretransmitted (and the timer started again). • The question that arises is: How long should the timeoutinterval be?
-^ The Internet protocol suite also supports a^ connectionless
transport protocol,
UDP (User Data
Protocol) • UDP provides a way for applications to sendencapsulated raw IP datagrams and send themwithout having to establish a connection. • Many client-server applications that have 1 requestand 1 response use UDP rather than go to thetrouble of establishing and later releasing aconnection.
-^ A UDP segment consists of an 8-byte header followed by thedata.
Fig. 4. The UDP header