Data Communication - 9th Lecture
Data Communication - 9th Lecture
✓ Framing:
▰ Course Title: Data Communication Framing in the data link layer separates a message from one source to a
▰ Course Code: CSE-3525 destination, or from other messages to other destinations, by adding a sender
▰ Credit Hours: 3 address and a destination address.
▰ Textbooks: 1. Data Communications AND Networking - 5th Edition The destination address defines where the packet is to go; the sender address helps
by Behrouz A. Forouzan the recipient acknowledge the receipt.
2. Computer Networks - 5th Edition by A. Tanenbaum When a message is carried in one very large frame, even a single-bit error would
require the retransmission of the whole message. When a message is divided into
smaller frames, a single-bit error affects only that small frame.
Conducted by: Engr. Muinul Islam a) Fixed-Size Framing:
In fixed-size framing, there is no need for defining the boundaries of the frames;
the size itself can be used as a delimiter. An example of this type of framing is
the ATM wide-area network, which uses frames of fixed size called cells.
1 2
3 4
1
11/22/2023
✓ Flow and Error Control (Contd.): ✓ Flow and Error Control (Contd.):
a) Flow Control (Contd.): b) Error Control :
The flow control communication can occur by sending signals from the Error control at the data-link layer is normally very simple and implemented
consumer to the producer. When the buffer of the receiving data-link layer is using one of the following two methods. In both methods, a CRC is added to
full, it informs the sending data-link layer to stop pushing frames. the frame header by the sender and checked by the receiver.
❑ In the first method, if the frame is corrupted, it is silently discarded; if it is
not corrupted, the packet is delivered to the network layer. This method is
used mostly in wired LANs such as Ethernet.
❑ In the second method, if the frame is corrupted, it is silently discarded; if it
is not corrupted, an acknowledgment is sent (for the purpose of both flow
and error control) to the sender.
Fig. Flow control at the data-link layer
5 6
7 8
2
11/22/2023
9 10
11 12
3
11/22/2023
✓ High-level Data Link Control (HDLC): ✓ High-level Data Link Control (HDLC) (Contd.):
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
❖ Configurations and Transfer Modes (Contd.):
protocol. (a) Normal Response Mode (NRM) (Contd.)
The NRM is used for both point-to-point and multipoint links, as shown in
❖ Configurations and Transfer Modes:
Fig 1.
HDLC provides two common transfer modes that can be used in different
configurations:
(a) Normal Response Mode (NRM)
(b) Asynchronous Balanced Mode (ABM)
(a) Normal Response Mode (NRM)
In normal response mode (NRM), the station configuration is unbalanced.
We have one primary station and multiple secondary stations. A primary
station can send commands; a secondary station can only respond. Fig 1. Normal response mode
13 14
✓ High-level Data Link Control (HDLC) (Contd.): ✓ High-level Data Link Control (HDLC) (Contd.):
❖ Configurations and Transfer Modes (Contd.): ❖ Framing:
HDLC defines three types of frames:
(b) Asynchronous Balanced Mode (ABM)
In ABM, the configuration is balanced. The link is point-to-point, and each (a) Information frames (I-frames) [used to data-link user data]
station can function as a primary and a secondary (acting as peers), as (b) supervisory frames (S-frames), and [used only to transport control
shown in Fig 2. This is the common mode today. information]
(c) unnumbered frames (U-frames). [reserved for system management]
15 16
4
11/22/2023
17 18
19 20
5
11/22/2023
21 22
COMPUTER ARCHITECTURE
Thanks
23