Question: Question 8 = = = = = = = = = = Consider the stop - and - wait ( i . e . ,
Question
Consider the stopandwait ie alternating bit protocol. Modify the
protocol so that instead of obtaining the data ie 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
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 ie next data to send is datasenderns
In the receiver, add the following array
datareceiver : array integer of integer;
nr: integer initially
nr is an index of where to store the next data to be received
frames will now have the format
frameb x
where b is a bit or 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
