



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Among nisms for error control two protocols are important:
Go-back-n ARQ Selective Reject ARQ
Three features are added to sliding window flow control to allow for the retransmission of the lost or the damaged frames:
o The sending device keeps copies of the transmitted frames until all of them have been acknowledged o In addition to ACK frames, receiver also has the option of NAK frames, if data has been received damaged o Because sliding window is a continuous TX mechanism, both ACK and NAK frames must be numbered for identification
ACK frames carry the number of the next frame expected ACK 5 tells sender that all frames up to frame 5 are received NAK frames carry the number of the damaged frame itself damaged, NAK 4 and NAK 5 must be sent o Like sender in stop-and wait ARQ, the sliding window ARQ is also equipped with a timer in the sender to deal with lost ACKs
In Go Back n ARQ, if one frame is lost or damaged, all frames sent since last frame acknowledged are retransmitted
several popular mecha
If data frames 4 and 5 are
Go Back n- Lost Data Frame o Sliding window requires that data frames be transmitted sequentially
o If one or m d that they become lost in transit, the er will be out of sequence
ore frames are so noise corrupte next frame to arrive at the receiv
Go Back n- Lost ACK llowed have bee e
o If a all th f
o When the window capacity is reached and all frames a n s nt, the sender starts a Timer
n ACK is not received before that Timer expires, sender retransmits e rames since the last ACK
o In selective-reject ARQ, only the specific damaged or los frame is retransmitted o If a fram d the frame is resent out
t
e is corrupted in transit, a NAK is returned an of sequence
o tr der to select specific frames for retransmission, selective reject ARQ is EXPENSIVE and not often used ly it is discarded in favo
Because of the complexity of sorting and storage required by the receiver and ex a logic needed by sen
o Selective reject gives better performance but in practice it is usual r of go-back-n for simplicity of implementation
Protocol : S o
Protocol in Data
et f rules or conventions for executing a particular task
Comm. : Set of rules or specifications used to implement one or more yers of the OSI Model
Example
la
: EIA 232 yer in the OSI Model Protocols
-D interface is a protocol used at the physical la
: Set of specifications used to implement the data link layer
Data link protocols contain rules for:
Data link protocols can be divided into two sub-groups:
A synchronous Protocols : Treat each character in a Bit stream independently
S ynchrono us Protocols : Take the whole bit stream and chop it into characters of equal Size
Employed mai
Asynchronous Protocols nly in Modems
Inherent Slowness is a disadvantage : Requires addition of start and stop bits and extended spaces b/w frames, so these are mainly replaced with High-speed synchronous mechanisms
Not Complex and Inexpensive to Implement Transmission does not require timing coordination; Timing is done by using
Different Asynchronous Protocols
of Asynchronous protocols have been developed
We will discuss some of the important ones
In 1979 Ward Christiansen designed a File transfer protocol for Telephone-line
Half Duplex and Stop-and-Wait ARQ protocol
extra bits
A variety
communication b/w PCs called XMODEM
The first field is a One Byte start of header (SOH) field o The second field is a two-byte Header.
o The fixed data field holds 128 bytes of data o The last field CRC checks for errors in the data field only
ransmission in XMODEM o TX beg o Each ti frame
o
ins with sending of a NAK frame from the receiver to the sender me, the sender sends a frame, it must wait for an ACK before sending next