------------------------------------------------------------------------------- Mohamed G. Gouda CS 356 Summer 2008 Homework 3 ------------------------------------------------------------------------------- 1. (5 points) Two symmetric processes r and s exchange data and ack messages according to the Cumulative Acknowledgement Protocol in Section 9.3 under the simplification that size wr of the receiving window in each process equals size w of the sending window of the other process. The constant and variables of process r in this protocol are as follows: process r const w var na, ns, i, nr, j: integer, {init. 0} rcvd : array [0..w-1] of boolean, {init. false} akn : boolean {init. false} begin ... end Specify the actions of process r. ------------------------------------------------------------------------------ 2. (5 points) Modify the actions in process r, in your solution of Problem 1, such that each data(j) message, that is either sent from r to s or sent from s to r, is modified to become data(j, i) where j is the sequence number of the data(j, i) message, and i is the sequence number of the next data message expected by the process that sent mesage data(j, i). ------------------------------------------------------------------------------