Question

In: Computer Science

How does TCP prevent sender from overflowing the receiver’s buffer? Explain how to calculate rwnd at...

How does TCP prevent sender from overflowing the receiver’s buffer? Explain how to calculate rwnd at sender side and its relationship with LastByteSent and LastByteAcked.

Solutions

Expert Solution

How does TCP prevent sender from overflowing the receiver’s buffer??

Answer: TCP uses flow control mechanism in which it keeps the acknowledged data should be less than equal to RcvWindow.

Here RcvWindow is recievers window.

Whenever the the amount of aknowledged data is less or equal to reciever window, there will be no chance of overflow.

Simply: Aknowldegement data <= reciever window.

NOTE: In case, the acknowldegement data becomes more, tcp expands the size of reciever window.

--------------------------------------------------------------------------------------------------------------------------------------

Explain how to calculate rwnd at sender side and its relationship with LastByteSent and LastByteAcked?

Answer:

LastByteSent - LastByteAcked <= rwnd

Here, rwnd is reciever window,

The diferenece of LastByteSent and LastBYteAcked is unacknowledged data.

Hence it should be be less than or equal to reciever window.

---------------------------------------------------------------------------------------------------------

PLEASE UPVOTE


Related Solutions

b) UDP does not provide end to end flow control, but TCP does. Explain how this...
b) UDP does not provide end to end flow control, but TCP does. Explain how this is achieved using sequence numbers. Give an example where a packetized message sent using UDP is received incorrectly, but when using TCP it is received correctly under same circumstances without channel errors.                                                                     
How can you prevent ovulation? How can you prevent spermatogenesis? How does oogenesis differ from spermatogenesis?...
How can you prevent ovulation? How can you prevent spermatogenesis? How does oogenesis differ from spermatogenesis? What are nurse cells? What causes the release of LH and FSH?
How does shot peening prevent the fatigue cracks from growing?
How does shot peening prevent the fatigue cracks from growing?
how to calculate expected pH , buffer concentration and buffer capacity?
how to calculate expected pH , buffer concentration and buffer capacity?
What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details....
What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details. Also, show your knowledge about layers.
how does Alesse works to prevent pregnancy?
how does Alesse works to prevent pregnancy?
What is a buffer and how does it work?
What is a buffer and how does it work?
How does polymeric glass formation prevent flow of linear polymer? Explain Tg and chemical reasons. How...
How does polymeric glass formation prevent flow of linear polymer? Explain Tg and chemical reasons. How does this prevention of flow effect mechanical charcteristics?
11. How does a lack of insulin prevent the cell from using glucose? 12. Why is...
11. How does a lack of insulin prevent the cell from using glucose? 12. Why is it important that specific tissues respond to insulin in different ways? 13. Hypothesize a mechanism to explain how tissues respond to insulin in different ways, even tissues that have the same amount of the receptor.
how does the Fed prevent a potential financial crisis?, do you agree with their methods?(explain your...
how does the Fed prevent a potential financial crisis?, do you agree with their methods?(explain your reasoning)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT