Docsity

Transmission Policy - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Toggle sidebar
bg1
TCP Transmission Policy
Window management in TCP is not tied to
acknowledgments as it is in most data link
protocols.
For example:
•suppose that the receiver has a 4095-byte buffer.
•If the sender transmits a 2048-byte segment that is
correctly received, the receiver will acknowledge the
segment.
•However, since it now has only 2048 of buffer space (until
the application removes some data from the buffer), it will
advertise a window of 2048 starting a the next byte
expected.
•Now the sender transmits another 2048 bytes, which are
acknowledged, but the advertised window is 0.
•The sender must stop until the application process on the
receiving 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. to
allow user to kill the process), or send 1 byte to make the
receiver re-announce the window (in case it was lost)
Docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Transmission Policy - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

TCP Transmission Policy

^ 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)

TCP Congestion Control

-^ 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.

TCP Congestion Control

-^ 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 Timer Management

-^ 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?

UDP

-^ 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.

UDP

-^ A UDP segment consists of an 8-byte header followed by thedata.

Fig. 4. The UDP header