Docsity

Data Link Control-Data Communication and Computer Networks-Lecture Slides, Slides of Data Communication Systems and Computer Networks

Partial preview of the text

Download Data Link Control-Data Communication and Computer Networks-Lecture Slides and more Slides Data Communication Systems and Computer Networks in PDF only on Docsity!

Data Link Control

  • Data link control functions include framing, flow and error control and reliable transmission of frames between nodes.

FRAMING

  • The data link layer, packs the bits in to frames, each frame is distinguishable from an another.
  • Framing separates a message from one source to a destination , or from other messages to other destinations, by adding a sender address and a destination address. - The destination address defines where the packet is to go, the sender address helps the recipient acknowledge the receipt.

Problem

Whenever ESC character is a part of text, receiver can treat it as delimiter character and can remove it, do remove this problem we use byte stuffing.

Byte Stuffing

is a process of adding 1 extra byte whenever there is a flag or escape character in the text.

  • An extra escape is added to show that the second one is a part of the text.

Bit-Oriented Protocols

The data section of a frame is a sequence of bits.

  • We need a delimiter to separate one frame from the other.
  • 8-bit pattern flag 01111110 as the delimiter to define the beginning and the end of frame.

Flow Control and Error Control

Flow control and Error control collectively called data link control.

Error Control in the data link layer is based on automatic repeat

request, which is the retransmission of data.

Noiseless Channels

First we assume that we have an ideal channel in which no frame are lost, duplicated, or corrupted.

Simplest Protocol

  • It is a unidirectional protocol in which data frames are traveling in only one direction- from the sender to receiver.
  • We assume that the receiver can immediately handle any frame it receives with a processing time that is small enough to be negligible.
  • The data link of the receiver removes header and delivers the data packet to network layer, which can also accepts the packet immediately. In other words, the receiver can never be overwhelmed with incoming frames.

Stop-and-Wait Protocol

  • If data frames at the receiver site faster than they can be processed, the frames must be stored until their use.
  • Normally the receiver doesn’t have enough storage space, especially if it is receiving data from many sources. This may result in either the discarding of frames or denial of service.
  • To prevent this the receiver some how have to tell the sender to slow down.

DESIGN

Analysis

The sender sends one frame, stops until it receive confirmation from the receiver, and then sends the next frame.

  • We use sequence number to number the frames, the sequence numbers are based on module-2 arithmetic.
  • Acknowledgment number always announces in module-2 arithmetic the sequence number of the next frame expected.

Flow Diagram

Receive window for Go-Back-N ARQ

  • The window slides when a correct frame has arrived; sliding occurs one slot at a time.

Resending a Frame

  • When a timer expires, the resends all the outstanding frames.

For example

  • Sender has already sent frame 6, but the timer of frame 3 expires. This means that frame 3 has not been acknowledged; the sender goes back and sends frames 3, 4, 5 and 6 again.

Example

Selective Repeat ARQ

  • In a noisy link a frame has higher probability of damage, which means resending of multiple frames.
  • This resending uses up the bandwidth and slows down the transmission.
  • There is a mechanism that instead of sending N frames, only damaged frame is resent. This is called Selective Repeat ARQ.