Flow and Error Control
Flow and Error Control
Flow and Error Control
Error Control:
Error control in the data link layer is based on ARQ (automatic repeat request), which is the
retransmission of data.
The term error control alludes to techniques for error location and retransmission.
Every time an error is detected in an exchange, specified frames are retransmitted. This
process is called ARQ.
To ensure reliable communication, there needs to exist flow control (managing the amount of
data the sender sends), and error control (that data arrives at the destination error free).
• Flow control alludes to a bunch of strategies used to limit the measure of information the
sender can send prior to sitting tight for acknowledgement.
1. Stop and Wait Flow control:
• The sender has to wait for an acknowledgment of every frame that it sends.
• Only when a acknowledgment has been received is the next frame sent. This process
continues until the sender transmits an End of Transmission (EOT) frame.
• In Stop-and-Wait flow control, the receiver indicates its readiness to receive data for each
frame.
• For each frame that is sent, there should be an acknowledged, which takes a comparable
measure of propagation time to return to the sender.
• Only one frame can be in transmission at a time. This prompts shortcoming if propagation is
any longer than the transmission delay
• Each frame has to be numbered in relation to the sliding window. For a window of size n,
outlines get a number from 0 to n - 1. Ensuing casings get a number mod n.
• The sender can send as many frames as would fit into a window.
• The receiver, after accepting enough frames, will react with an affirmation of all casings in a
measured way in the window. It is called slide
• This window can hold frames at one or the flip side and gives as far as possible on the
quantity of casings that can be transmitted prior to requiring an affirmation.
• When the receiver sends an ACK, it includes the number of the next frame it expects to
receive. At the point when the receiver sends an ACK containing the number 5, it implies all
casings up to number 4 have been gotten.
• On the off chance that the window size is adequately huge the sender can constantly transmit
packets: o If W >= (2a+1), sender can send ceaselessly. (Effectiveness =1). If W < (2a+1), sender
can transmit W frames every (2a+1) time units. (Efficiency = W/(1+2a)).
• Error detection and correction are implemented either at the data link layer or the transport
layer of the OSI model.
If an error is discovered in a data frame, indicating that it has been corrupted in transit,
a NAK frame is returned. NAK frames, which are numbered, tell the sender to retransmit
the last frame sent.
Piggybacking: In bidirectional communications, both parties send & acknowledge data,
i.e., both parties implement flow control. Outstanding ACKs are placed in the header of
information frames, piggybacking can save transmission capacity since the overhead
from a data frame and an ACK frame (addresses, CRC, etc) can be joined into just one
frame.
Go-Back-N ARQ
Stop and wait ARQ mechanism does not utilize the resources at their best. When the
acknowledgement is received, the sender sits idle and does nothing. In Go-Back-N ARQ
method, both sender and receiver maintain a window.
The sending-window size enables the sender to send multiple frames without receiving
the acknowledgement of the previous ones. The receiving-window enables the receiver
to receive multiple frames and acknowledge them. The receiver keeps track of incoming
frame's sequence number.
When the sender sends all the frames in window, it checks up to what sequence
number it has received positive acknowledgement. If all frames are positively
acknowledged. the sender sends next set of frames. If sender finds that it has received
NACK or has not receive any ACK for a particular frame, it retransmits all the frames
after which it does not receive any positive ACK.
Selective Repeat ARQ:
In Go-back-N ARQ. it is assumed that the receiver does not have any buffer space for its
window size and has to process each frame as it comes. This enforces the sender to retransmit
all the frames which are not acknowledged.
In Selective-Repeat ARQ, the receiver while keeping track of sequence numbers, buffers the
frames in memory and sends NACK for only frame which is missing or damaged.
The sender in this case, sends only packet for which NACK is received.
which will now have the advantage of including both long-run and short-run information. In this
model, b1 is the impact multiplier (the short-run effect) that measures the immediate impact a
change in Xt will have on a change in Yt. On the other hand, π is the feedback effect, or the
adjustment effect, and shows how much of the disequilibrium is being corrected – that is the
extent to which any disequilibrium in the previous period affects any adjustment in Yt. Of
course, uˆt−1 = Yt−1 −βˆ 1 −βˆ 2Xt−1, and therefore from this equation β2 is also the long-run
response
Equation now emphasizes the basic approach of the cointegration and error-correction models.
The spurious regression problem arises because we are using non-stationary data, but in
Equation everything is stationary, the change in X and Y is stationary because they are assumed
to be I (1) variables, and the residual from the level’s regression is also stationary, by the
assumption of cointegration. So, Equation fully conforms to our set of assumptions about the
classic linear regression model and OLS should perform well.