Question: ou are implementing the behaviour corresponding to the go - back - N sliding window protocol which is relatively easy, but the receiver needs to
ou are implementing the behaviour corresponding
to the gobackN sliding window protocol which is relatively easy, but the receiver needs
to also provide some flexibility regarding the rate at which the correctly received segments
are collected by the layer above. Implement unit tests to show evidence that the following
functions are correctly implemented:
ageneral Sequence numbers are counted modulo b where b is the number of bits used
for sequence numbers.
bsender Process acknowledgements; there are at least two cases, sliding window can
advance and the sliding window does not advance.
csender Obtain new sequence numbers to be added to the sliding window; two cases,
sliding window full and not full.
dsenderreceiver Examine the content of the sliding window.
ereceiver Tell the sequence number that can be sent in an acknowledgement to the
sender
freceiver Advance sliding window as data is consumed by the layer above; two cases
advancement possible and not possible.
greceiver Add to the sliding window a sequence number correctly received from the
sender; two cases addition possible and not possible.
hreceiver Obtain the capacity of the sliding window the number of sequences that can
still be added to the sliding window
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
