Computer Networking Unit 2
Computer Networking Unit 2
Computer Networking Unit 2
Unit 2
Cont..
Simplest Protocol
• Simplest protocol is unidirectional,
• There is no acknowledgment (ACK).
• Also, as there is no data loss in the transmission, there is no need for
data re-transmission.
Cont..
• Flow Chart for Simplest Protocol
• 2 States:
• Ready state
• Blocking State
• Sending Node: Receives from
network layer save a copy and
there will be a timer
i) If timeout --> resends
ii) Corrupted ack --> Discards
iii) Error free ack --> Stops the timer
• Receiving Node:
i) Error free frame --> Deliver
ii)Corrupted frame --> Discards
• Receiver Node
• Flow Chart for Stop and wait
ARQ Protocol
Cont..
2. Go-Back-N Automatic Repeat Request
• Step 1 − In this protocol we can send several frames before receiving
acknowledgements.
• Step 2 − we keep a copy of these frames until the acknowledgment
arrives.
• Step 3 − Frames from a sending station are numbered sequentially.
However, we need to include the sequence number of each frame in
the header; we need to set a limit.
• Step 4 − If the header of the frame allows m bits for the sequence
number, the sequence numbers range from 0 to 2m-1. We can also
repeat the sequence numbers.
Example
• For m = 2, the range of sequence numbers is: 0 to 3, i.e.
0,1,2,3, 0,1,2,3,…
Cont..
= Sliding Window
Window Size = 3
• Problem − Consider a binary
signal sent over 4 KHZ wide
channel, find out the
maximum data rate for
noiseless and a noisy channel
whose signal to noise ratio is
20dB.
Cont..
Selective Repeat ARQ
• Selective repeat protocol, also called Selective Repeat ARQ
(Automatic Repeat reQuest), is a data link layer protocol that
uses sliding window method for reliable delivery of data
frames.
• Here, only the error frame or lost frames are retransmitted,
while the good frames are received and buffered.
Cont..
Explanation
• Step 1 − Frame 0 sends from sender to receiver and set timer.
• Step 2 − Without waiting for acknowledgement from the receiver
another frame, Frame1 is sent by sender by setting the timer for it.
• Step 3 − In the same way frame2 is also sent to the receiver by setting
the timer without waiting for previous acknowledgement.
• Step 4 − Whenever sender receives the ACK0 from receiver, within the
frame 0 timer then it is closed and sent to the next frame, frame 3.
• Step 5 − whenever the sender receives the ACK1 from the receiver,
within the frame 1 timer then it is closed and sent to the next frame,
frame 4.
• Step 6 − If the sender doesn’t receive the ACK2 from the receiver
within the time slot, it declares timeout for frame 2 and resends the
frame 2 again, because it thought the frame2 may be lost or damaged.
Cont..
High-level Data Link Control (HDLC)
• High-level Data Link Control (HDLC) is a group of
communication protocols of the data link layer for transmitting
data between network points or nodes.
• It is a bit - oriented protocol
• Transfer Modes
• Normal Response Mode (NRM)
• Asynchronous Balanced Mode (ABM)
Failed
Medium Access Control (MAC)
• A media access control is a network data transfer policy that
determines how data is transmitted between two computer terminals
through a network cable.
• The Data Link Layer is responsible for transmission of data between
two nodes. Its main functions are-
Select function
Token Passing
Station 1
unused frequency bands are called
as guard bands
Station 2
Station 3
Time Division Multiple Access (TDMA)
• TDMA is the channelization protocol in which bandwidth of channel is
divided into various stations on the time basis.
• There is a time slot given to each station, the station can transmit
data during that time slot