Question: APPENDIX C VERIFICATION MODEL OF A SLIDING WINDOW PROTOCOL This model of a go - back - n sliding window protocol follows the description from
APPENDIX C VERIFICATION MODEL OF A SLIDING WINDOW PROTOCOL This model of a gobackn sliding window protocol follows the description from p pp The model below includes some annotations to facilitate random and guided simulations with SPIN. #define MaxSeq window size #define Wrongx x x percent MaxSeq #define Rightx x x percent MaxSeq #define incx Rightx chan qMaxSeq of byte, byte ; message passing channel active proctype p starts two copies of proctype p byte NextFrame, AckExp, FrameExp, r s nbuf, i; chan in out; in qpid; out qpid; xr in; xs out; partial order reduction claims do :: nbuf MaxSeq outgoing messages nbuf; out!NextFrame, FrameExp MaxSeq percent MaxSeq ; incNextFrame :: qpidrs incoming messages if :: r FrameExp printfMSC: accept percentd
r; incFrameExp :: else ignore message fi; do :: AckExp s && s NextFrameAckExp s && NextFrame AckExps NextFrame && NextFrame AckExp nbuf; incAckExp :: else break od :: timeout && retransmission timeout NextFrame AckExp; printfMSC: timeout
; i ; do :: i nbuf out!NextFrame, FrameExp MaxSeq percent MaxSeq ; incNextFrame; i :: else break od od ACKNOWLEDGMENT
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
