Data Link - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

Data Link

Description:

Asynchronous protocols treat each character in a bit stream independently. ... Link access procedure for D channel (LAPD) Integrated Services Digital Network (ISDN) ... – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 37
Provided by: ValuedGate2020
Category:
Tags: data | lapd | link

less

Transcript and Presenter's Notes

Title: Data Link


1
Chapter 11
Data Link Protocols
2
Figure 11-1
Data Link Protocol Categories
  • Asynchronous protocols treat each character in a
    bit stream independently.
  • Synchronous protocols take the whole bit stream
    and chop it into characters of equal size.

3
Figure 11-2
Asynchronous Protocols
  • Asynchronous protocols, used primarily in modems,
    feature start and stop bits and variable length
    gaps between characters.

4
Figure 11-3
XMODEM Frame
Start of header
2 bytes
  • A half-duplex stop-and-wait ARQ protocol

5
Other Asynchronous Protocols
  • YMODEM
  • Data unit 1024 bytes
  • Two CANs (Cancel signal) are sent to abort a
    transmission
  • ITU-T CRC-16
  • ZMODEM
  • Combining features of both XMODEM and YMODEM
  • BLAST (Blocked asynchronous transmission)
  • Full-duplex with sliding window flow control
  • Kermit
  • Currently the most widely used asynchronous
    protocol.

6
Figure 11-4
Synchronous Protocols
  • The speed of synchronous transmission makes it
    the better choice, over asynchronous
    transmission, for LAN, MAN, and WAN technology.
  • In a character(byte)-oriented protocols, the
    frame or packet is interpreted as a series of
    characters.
  • In bit-oriented protocols, the frame or packet is
    interpreted as a series of bits.

7
Figure 11-5
Character-oriented Protocols Binary Synchronous
Communication (BSC) Frames
  • Developed by IBM in 1964.
  • Half-duplex transmission with stop-and-wait ARQ.
  • Control characters (Table 11.1)

8
Figure 11-6
A Simple BSC Data Frame
SYN Synchronization STX Start of text ETX End
of text BCC Block check counter LRC
Longitudinal redundancy check CRC Cyclic
redundancy check
9
Figure 11-7
A BSC Frame with a Header
SOH Start of header
10
Figure 11-8
A Multiblock Frame
  • The more bits in a frame, the greater the
    likelihood that one of them will be corrupted in
    transmit.
  • If any block contains an error, the entire frame
    must be retransmitted.
  • The receiver sends a single acknowledgment for
    the entire frame.

ITB Intermediate text block
11
Figure 11-9
Multiframe Transmission
ETB End of transmission block ACK required
12
Figure 11-10
BSC Control Frame
  • Control frames severe three purposes
  • - establishing connections,
  • - maintaining flow and error control during
    data transmission,
  • - terminating connections.

13
Figure 11-11
Control Frames
14
Figure 11-12
Data Transparency
  • Confusion between control information and data is
    called a lack of data transparency.
  • ? In BSC, data transparency is achieved byte
    stuffing process.
  • ? If the transparent region contains a DLE
    character as text.
  • An additional DLE just before each DLE is
    inserted within the text.

Byte Stuffing
DLE data link escape
15
Figure 11-13
Bit-Oriented Protocols
  • Synchronous data link control (SDLC)
  • - IBM (1975)
  • High-level data link control (HDLC)
  • - ISO standard (1979 based on SDLC)
  • - Support half- and full-duplex modes over
    point-to-point and multipoint configurations.
  • Link access procedure (LAP)
  • - ITU-T (based on HDLC)
  • Frame relay, PPP ITU-T and ANSI
  • LANs access control protocols

16
Figure 11-14
HDLC Configuration
  • Station types
  • - Primary station
  • - Secondary station
  • - Combined station
  • Configuration
  • - Unbalanced
  • - Symmetrical
  • - Balanced
  • HDLC does not support balanced multipoint.

17
Figure 11-15
HDLC Modes
  • A mode in HDLC is the relationship between two
    devices involved in an exchange the mode
    describes who controls the link.
  • Normal response mode (NRM)
  • - A secondary device must have permission from
    the primary device before transmitting.
  • Asynchronous response mode (ARM)
  • - A secondary may initiate a transmission
    without permission from the primary whenever the
    channel is idle.
  • Asynchronous balanced mode (ABM)
  • - All stations are equal and therefore only
    combined stations connected in point-to-point are
    used.

18
Figure 11-16
HDLC Frame Types
  • Information frames (I-frames)
  • Supervisory frames (S-frames)
  • - data link layer flow and error control.
  • Unnumbered frames (U-frames)
  • - reserved for system management.

FCS (Frame check sequence)
19
Figure 11-17
HDLC Frame Types
20
Figure 11-18
Bit Stuffing and Removal
  • Bit stuffing is the process of adding one extra 0
    whenever there are five consecutive 1s in the
    data so that the receiver does not mistake the
    data for a flag.

21
Figure 11-19
Bit Stuffing in HDLC
22
Figure 11-20
HDLC Addressing Field
  • If a primary station creates a frame, address
    field contains a to address.
  • If a secondary station creates the frame, address
    field contains a from address.

23
Figure 11-21
HDLC Control Fields
Flow and error control sequences
S-Frame Return N(R) when the receiver does not
have data of its own to send.
24
Figure 11-22
HDLC Control Fields in the Extended Mode
25
Figure 11-23
Poll/Final Field in HDLC
  • P/F bit
  • It has meaning only when it is set (bit 1) and
    can mean poll or final.
  • It means poll when the frame is sent by a primary
    station to a secondary station.
  • It means final when the frame is sent by a
    secondary station to a primary station.

26
Figure 11-24
Information Field in HDLC
Piggybacking means combing data to be sent and a
acknowledgment of the frame received in one
single frame.
27
Figure 11-25
Frame Check Sequence Field
28
Figure 11-26
S-Frame Control Field
  • RR
  • - ACK
  • - Poll
  • - Negative response to poll
  • - Positive response to select
  • RNR
  • - ACK
  • - Select
  • - Negative response to select
  • REJ
  • - go-back-n ARQ
  • SREJ
  • - selective-reject ARQ

29
Figure 11-27
Use of P/F Bit
30
Figure 11-28
U-Frame Control Field in HDLC
  • Five basic functional categories
  • Mode Setting
  • Unnumbered-Exchange
  • Disconnect
  • Initialization Mode
  • Miscellaneous

??) Table 11.2 U-frame control command and
response
31
Figure 11-29
To address
Example of Polling
From address
32
Figure 11-30
Example of Selecting
33
Figure 11-31
Example of Peer-to Peer Communication
34
Figure 11-32
Example 11.4
35
Link Access Protocols
  • Link access procedures, balanced (LAPB)
  • Basic control functions required for
    communication between a DTE and a DCE.
  • Used in Integrated Services Digital Network
    (ISDN) on B channels.
  • Link access procedure for D channel (LAPD)
  • Integrated Services Digital Network (ISDN)
  • Use asynchronous balanced mode (ABM)
  • Link access procedure for modems (LAPM)

36
Summary
  • Asynchronous Protocols
  • XMODEM, YMODEM, ZMODEM, BLAST, and Ketmit, etc.
  • Synchronous Protocols
  • Character-oriented protocols
  • Binary synchronous communication (BSC)
  • Bit-oriented protocols
  • High-level data link control (HDLC)
Write a Comment
User Comments (0)
About PowerShow.com