LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modeling Alternating bit protocol in CCS

I can't find solved examples on CCS anywhere, so I'm really desperate for at least one, so that I know how to solve the others.

The alternating-bit protocol works as follows. Each message sent by Sender contains an additional protocol bit, 0 or 1. When Sender sends a message, it does so repeatedly (with its corresponding bit) until it receives an acknowledgment (ACK) from Receiver that contains the same protocol bit as the message being sent. When Receiver receives a message, it sends an acknowledgment ACK to Sender and includes the protocol bit of the received message. When a message is received for the first time, the receiver delivers it for processing, while subsequent messages with the same bit are simply acknowledged. When Sender receives an acknowledgment containing the same bit as the message it is currently transmitting, it stops transmitting that message, flips the protocol bit (0->1 or 1->0) and repeats the protocol for the next message.

0 Kudos
Message 1 of 2
(2,533 Views)

Can you tell more about the protocol ? 

An extra protocol bit added to a byte (9-bits data) or ??

0 Kudos
Message 2 of 2
(2,497 Views)