Docsity

Sliding Window Arq-Data Communication-Lecture Notes, Study notes of Data Communication Systems and Computer Networks

Toggle sidebar
bg1
LECTURE #39
LID ARQS ING WINDOW
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:
oThe sending device keeps copies of the transmitted frames until all of them have been
acknowledged
oIn addition to ACK frames, receiver also has the option of NAK frames, if data has
been received damaged
oBecause 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
oLike sender in stop-and wait ARQ, the sliding window ARQ is also equipped with a
timer in the sender to deal with lost ACKs
Go Back n ARQ
In Go Back n ARQ, if one frame is lost or damaged, all frames sent since last frame
acknowledged are retransmitted
Go Back n- Damaged Frame
several popular mecha
x
xIf data frames 4 and 5 are
¾Go Back n- Lost Data Frame
oSliding window requires that data frames be transmitted sequentially
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Sliding Window Arq-Data Communication-Lecture Notes and more Study notes Data Communication Systems and Computer Networks in PDF only on Docsity!

LECTURE

S LID ING WINDOWARQ

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

 Go Back n ARQ

In Go Back n ARQ, if one frame is lost or damaged, all frames sent since last frame acknowledged are retransmitted

Go Back n- Damaged Frame

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

docsity.com

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

 Selective Reject ARQ

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

docsity.com

o tr der to select specific frames for retransmission, selective reject ARQ is EXPENSIVE and not often used ly it is discarded in favo

Protocols

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

Data Link 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:

  • Line Discipline
  • Flow Control
  • Error Control

Categories of Data Link Protocols

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

docsity.com

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

 XMODEM

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.

  • The first header byte , the Sequence number carries the Frame number
  • The second header byte is used to check the validity of the sequence number

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

XMODEM

o

T

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

docsity.com