ch11-data-link-control
ch11-data-link-control
11.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link
Control (DLC)
The data link control (DLC) deals with procedures for
communication between two
adjacent nodes—node-to-node communication—no matter
whether the link is dedicated or broadcast.
Data link control functions include framing and flow and error
control. In this section, we first discuss framing, or how to organize
the bits that are carried by the physical layer. We then discuss
flow and error control.
11.2
11-1 FRAMING
11.3
Framing in the data-link layer
separates a message from one
source to a destination
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.
Frame Size
In fixed-size framing – ATM WAN
variable-size framing – CHARATER ORIENTED.
11.4
Figure 11.1 A frame in a character-oriented protocol
11.5
Figure 11.2 Byte stuffing and unstuffing
11.6
Framing : Byte Stuffing
11.8
Figure 11.3 A frame in a bit-oriented protocol
11.9
Note
11.10
Figure 11.4 Bit stuffing and unstuffing
11.11
11-2 FLOW AND ERROR CONTROL
11.12
Note
11.13
Note
11.14
11-3 PROTOCOLS
Now let us see how the data link layer can combine
framing, flow control, and error control to achieve the
delivery of data from one node to another. The
protocols are normally implemented in software by
using one of the common programming languages. To
make our discussions language-free, we have written
in pseudocode a version of each protocol that
concentrates mostly on the procedure instead of
delving into the details of language rules.
11.15
11.16
Figure 11.5 Taxonomy of protocols discussed in this chapter
11.17
11-4 NOISELESS CHANNELS
11.18
Figure 11.6 The design of the simplest protocol with no flow or error control
11.19
11.20
11.21
Figure 11.7 Flow diagram for Example 11.1
11.22
Figure 11.8 Design of Stop-and-Wait Protocol
11.23
11.24
11.25
Figure 11.9 Flow diagram for Example 11.2
11.26
11.27
11.28
11-5 NOISY CHANNELS
11.29
Note
11.30
Note
11.31
Note
11.32
Figure 11.11 Flow diagram for Example 11.3
11.33
11.3 HDLC
High-level Data Link Control (HDLC) is a bit-oriented protocol for
communication over point-to-point and multipoint links.
It implements the Stop-and-Wait protocol we discussed earlier.
Although this protocol is more a theoretical issue than practical,
most of the concept defined in this protocol is the basis for other
practical protocols such as PPP,
11.34