Data Link Control - PowerPoint PPT Presentation

1 / 46
About This Presentation
Title:

Data Link Control

Description:

Noiseless channels. No requirement for error control (no noise, no errors) Noisy channels ... Noiseless Stop & Wait Protocol. This protocol includes flow control. ... – PowerPoint PPT presentation

Number of Views:261
Avg rating:5.0/5.0
Slides: 47
Provided by: JamesCh
Category:
Tags: control | data | link | noiseless

less

Transcript and Presenter's Notes

Title: Data Link Control


1
Data Link Control
  • CS4323

2
Framing
  • Frames are the packets of information at the Data
    Link Layer
  • Frames contain
  • Data
  • Source address information
  • Destination address information

3
Frame Size
  • A frame could contain an entire data message but
    this is not efficient.
  • An error in a large frame could require
    retransmission, wasting time and bandwidth
  • Forward error correction is too difficult using
    large frames

4
Frame types
  • Fixed size frames
  • ATM
  • Variable size frames
  • Ethernet

5
Frame Orientation
  • Character (8-bit/single byte) oriented protocol
  • Bit-oriented protocol

6
Figure 11.1 A frame in a character-oriented
protocol
7
Character Oriented
  • Frame begins and ends with a predefined 8-bit
    configuration.
  • Byte stuffing is required to prevent
    misinterpretation of the flag pattern appearing
    in the data.

8
Figure 11.2 Byte stuffing and unstuffing
9
Byte stuffing is the process of adding 1 extra
byte whenever there is a flag or escape character
in the text.
10
Bit Oriented Protocol
  • The standard start and end flag consists of these
    8 bits
  • 01111110

11
Figure 11.3 A frame in a bit-oriented protocol
12
Bit stuffing is the process of adding one extra 0
whenever five consecutive 1s follow a 0 in the
data, so that the receiver does not mistake the
pattern 0111110 for a flag.
13
Figure 11.4 Bit stuffing and unstuffing
14
11-2 FLOW AND ERROR CONTROL
The most important responsibilities of the data
link layer are flow control and error control.
Collectively, these functions are known as data
link control.
Topics discussed in this section
Flow ControlError Control
15
Flow control refers to a set of procedures used
to restrict the amount of data that the sender
can send before waiting for acknowledgment.
16
Error control in the data link layer is based on
automatic repeat request, which is the
retransmission of data.
17
Data Link Layer Protocols
  • Categories
  • Noiseless channels
  • Noisy channels

18
Figure 11.5 Taxonomy of protocols discussed in
this chapter
19
Data Link Layer Protocols
  • Noiseless channels
  • No requirement for error control (no noise, no
    errors)
  • Noisy channels
  • Requires error control

20
Noiseless Channel Protocols
  • Simplest Protocol lt- start here
  • Stop and wait

21
Noiseless Simplest Protocol
  • No noise, so no error control required
  • No flow control is required
  • Not a realistic protocol

22
Figure 11.6 The design of the simplest protocol
with no flow or error control
23
Algorithm 11.1 Sender-site algorithm for the
simplest protocol
24
Data Link Layer Sender
  • Get the data from the Network Layer
  • Make the Data Link Layer Frame
  • Send the Frame to the Physical Layer

25
Algorithm 11.2 Receiver-site algorithm for the
simplest protocol
26
Data Link Layer Receiver
  • Receive the frame from the Physical Layer
  • Extract the data from the Frame
  • Deliver the data to the Network Layer

27
Figure 11.7 Flow diagram for Example 11.1
28
Noiseless Channel Protocols
  • Simplest Protocol
  • No flow control
  • Stop and wait lt- next

29
Noiseless Stop Wait Protocol
  • This protocol includes flow control.
  • Includes an acknowledgement frame.
  • (no error control)

30
Figure 11.8 Design of Stop-and-Wait Protocol
31
Stop Wait Sender Side
  • Get the data from the Network layer
  • Make the Frame
  • Send Frame to the Physical Layer
  • Wait for an acknowledgement before sending the
    next frame.
  • This is the flow control step

32
Algorithm 11.3 Sender-site algorithm for
Stop-and-Wait Protocol
33
Stop Wait Receiver
  • Receive Frame from the Physical Layer
  • Extract data from the frame.
  • Deliver data to the Network Layer
  • Send an acknowledgement frame back to the sender.

34
Algorithm 11.4 Receiver-site algorithm for
Stop-and-Wait Protocol
35
Figure 11.9 Flow diagram for Example 11.2
36
Noisy Channel Protocols
  • Stop Wait ARQ lt- start here
  • Go Back N ARQ
  • Selective Repeat ARQ

37
Stop Wait ARQ Protocol
  • Stop Wait ARQ
  • ARQ automatic repeat request
  • This protocol has flow control and error control.

38
Error correction in Stop-and-Wait ARQ is done by
keeping a copy of the sent frame and
retransmitting of the frame when the timer
expires.
39
In Stop-and-Wait ARQ, we use sequence numbers to
number the frames. The sequence numbers are based
on modulo-2 arithmetic.
40
Frame Sequence Numbers
  • The frames are numbered as the current frame and
    the next frame.
  • Only one bit is required to number the frames.
  • Zero and one are the only frame numbers.

41
Figure 11.10 Design of the Stop-and-Wait ARQ
Protocol
42
Figure 11.11 Flow diagram for Example 11.3
43
Stop Wait ARQ Efficiency
  • Stop Wait ARQ efficiency suffers because much
    of the bandwidth is unused while waiting for the
    acknowledgment.

44
Noisy Channel Protocols
  • Stop Wait ARQ
  • Go Back N ARQ lt- next
  • Selective Repeat ARQ

45
Noisy Channel Protocols
  • Go Back N ARQ
  • Selective Repeat ARQ
  • The above protocols will send data to fill the
    connection not waiting for a response.
  • The sender buffers several frames and can resend
    more than one frame

46
Figure 11.16 Flow diagram for Example 11.6
Write a Comment
User Comments (0)
About PowerShow.com