Return to site

Stop and wait arq protocol program in c

broken image
broken image

It provides flow-control mechanism but does not provide any error control mechanism. It provides unidirectional data transmission which means that either sending or receiving of data will take place at a time.

broken image

It is a data-link layer protocol which is used for transmitting the data over the noiseless channels. The stop and wait protocol is a flow control protocol where flow control is one of the services of the data link layer. After sending the data, he stops and waits until he receives the acknowledgment from the receiver. Here stop and wait means, whatever the data that sender wants to send, he sends the data to the receiver. Based on the usage, the people select the error control mechanism whether it is stop and wait or sliding window. The sliding window is further divided into two categories, i.e., Go Back N, and Selective Repeat. The error control mechanism is divided into two categories, i.e., Stop and Wait ARQ and sliding window. The error control mechanism is used so that the received data should be exactly same whatever sender has sent the data. Before understanding the stop and Wait protocol, we first know about the error control mechanism.

broken image