Question

In: Computer Science

GBN and SR protocols

Consider the GBN and SR protocols. Suppose the sequence number space is of size k. What is the largest allowable sender window that will avoid the occurrence of problems such as that in Figure 3.27 for each of these protocols?

 

Solutions

Expert Solution

In order to avoid the scenario of Figure 3.27, we want to avoid having the leading edge of the receiver's window (i.e., the one with the “highest” sequence number) wrap around in the sequence number space and overlap with the trailing edge (the one with the "lowest" sequence number in the sender's window). That is, the sequence number space must be large enough to fit the entire receiver window and the entire sender window without this overlap condition. So - we need to determine how large a range of sequence numbers can be covered at any given time by the receiver and sender windows.

 

Suppose that the lowest-sequence number that the receiver is waiting for is packet m. In this case, it's window is [m,m+w-1] and it has received (and ACKed) packet m-1 and the w-1 packets before that, where w is the size of the window. If none of those w ACKs have been yet received by the sender, then ACK messages with values of [m-w,m-1] may

still be propagating back. If no ACKs with these ACK numbers have been received by the sender, then the sender's window would be [m-w,m-1].

 

Thus, the lower edge of the sender's window is m-w, and the leading edge of the receivers window is m+w-1. In order for the leading edge of the receiver's window to not overlap with the trailing edge of the sender's window, the sequence number space must thus be big enough to accommodate 2w sequence numbers. That is, the sequence number space must be at least twice as large as the window size, k ≥ 2w.


the window size, k ≥ 2w.

Related Solutions

SR protocol,
Answer true or false se to the following questions and briefly justify your answer:a. With the SR protocol, it is possible for the sender to receive an ACK for a packet that falls outside of its current window.b. With GBN, it is possible for the sender to receive an ACK for a packet that falls outside of its current window.c. The alternating-bit protocol is the same as the SR protocol with a sender and receiver window size of 1.d. The...
Describe communication protocols and specify at least 3 of the modern protocols in use
Describe communication protocols and specify at least 3 of the modern protocols in use
Review treatment protocols for hypoglycemia?
Review treatment protocols for hypoglycemia?
review treatment protocols for hyperglycemia?
review treatment protocols for hyperglycemia?
What kind of network management protocols are available? What information can these protocols provide? Explain it...
What kind of network management protocols are available? What information can these protocols provide? Explain it with example.
What kind of network management protocols are available? What information can these protocols provide? Explain it...
What kind of network management protocols are available? What information can these protocols provide? Explain it with example.
1)How many moles of Sr are there in 93.2 grams of Sr? 2)How many grams of...
1)How many moles of Sr are there in 93.2 grams of Sr? 2)How many grams of Ag are there in 0.692 moles of Ag? 3)How many grams of Ga are there in a sample of Ga that contains the same number of moles as a 39.1 gram sample of Mg? grams of Ga
Thomas, Sr. owned a $1,000,000 life insurance policy on his life. Thomas, Sr. transferred the policy...
Thomas, Sr. owned a $1,000,000 life insurance policy on his life. Thomas, Sr. transferred the policy to Thomas, Jr. in 2017 when the cash surrender value was $100,000. In 2018, Thomas, Jr. named his son Thomas III as beneficiary. When Thomas, Sr. died in 2019, his grandson, Thomas III collected $1,000,000. Which of the following is correct? Thomas, Jr. made a $1,000,000 gift to Thomas III. The value of the life insurance policy will not be included in Thomas, Sr.'s...
list and describe Name resolution protocols .
list and describe Name resolution protocols .
What is the purpose of the hospital having stroke alert protocols?
What is the purpose of the hospital having stroke alert protocols?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT