Question: Question 8 = = = = = = = = = = Consider the stop - and - wait ( i . e . ,

Question 8
==========
Consider the stop-and-wait (i.e., alternating bit) protocol. Modify the
protocol so that instead of obtaining the data (i.e. the body) of the frame
from the "higher layer", we get it from an array of integers, and the receiver
has an array of integers where it stores the data received. The purpose is to
copy the array in the sender to the array in the receiver (one element at the
time of course)
I.e., add the following array to the sender:
datasender : array [integer] of integer;
ns: integer /* initially 0*/
I.e., an infinite array (hence, the index can be any integer). ns is an index of
which data is the next one to send (i.e. next data to send is datasender[ns]).
In the receiver, add the following array
datareceiver : array [integer] of integer;
nr: integer /* initially 0*/
nr is an index of where to store the next data to be received
frames will now have the format
frame(b, x)
where b is a bit (0 or 1) and x is an integer (from the data array of course) PLEASE NO AI ANSWER

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!