Data Link Protocols
Data Link Protocols
Asynchronous Synchronous
Protocols Protocols
• Xmodem
• Ymodem
• Zmodem
• BLAST
• Kermit Character-oriented Bit-oriented
• Data Link Protocol
2
• Data Link Protocol
—Asynchronous protocol
~ treat each character in a bit stream
independently
—Synchronous protocol
~ take the whole bit stream and chop it into
characters of equal size
3
Asynchronous Protocols
• Long, long…time ago
• Not complex and easy to implement
• Slow
• Required start/stop bit and space
• Now mainly used in modem
Replaced by high speed synchronous
4 of 53
11.1 Asynchronous protocol
~ used primarily in modems, feature
start and stop bits and variable length
gabs between characters
5
Asynchronous protocol(cont’d)
• Xmodem
—Ward Christiansen designed a file transfer
protocol for telephone-line communication
between PCs(1979)
—half-duplex stop-and-wait ARQ protocol
• Automatic repeat request(GSM)
6
Asynchronous protocol(cont’d)
• XMODEM frame
7
Asynchronous protocol(cont’d)
• XMODEM frame
—SOH(Start of Header) : 1 byte
—Header : 2 byte(Sequence number, check the
validity of sequence number)
—Data(Binary, ASCII, Boolean, Text, etc.) : 128
byte
—CRC : check for error in the data field(CYCLE
Redundacy check)
8
Asynchronous protocol(cont’d)
• YMODEM
~ is a protocol similar to XMODEM
9
Asynchronous protocol(cont’d)
• ZMODEM( improve the file transfer
protocol)
~ is a newer protocol combining features of both
XMODEM and YMODEM
• BLAST(Blocked Asynchronous Transmission)
~ is full-duplex with sliding window flow control
• Kermit(computer file transfer/management)
~ designed at Columbia University(primarily used
in
the personal computing in the 1980s)
~ is the most widely used asynchronous protocol
10
11.2 Synchronous protocol
~ for LAN, MAN, WAN
11
Synchronous protocol
• character-oriented protocol
~ frame or packet is interpreted as a series of
characters
12
Synchronous Protocols
• Character-oriented protocol
—Based on one byte (8-bit)
—Use ASCII for control character
—Not efficient seldom used
• Bit-oriented protocol
—Based on individual bits
—One or multiple bits for control
—More efficient
13 of 53
11.3 Character-Oriented protocol
15
Character-Oriented
protocol(cont’d)
• ASCII code
~ whatever the system, not all control
characters can be represented by a single
character. Often they must be represented by
two or three characters
16
Character-Oriented
protocol(cont’d)
• BSC frame
17
Character-Oriented
protocol(cont’d)
• Data frame
18
Character-Oriented
protocol(cont’d)
• Control Frame
~ serve three purpose
—establishing connections
—maintaining flow and error control during data
transmission
—terminating connection
19
11.4 Bit-Oriented protocol
~ can pack more information into
shorter frames and avoid the transparency
problem of character-oriented protocol
20
Bit-Oriented protocol(cont’d)
• SDLC(Synchronous Data Link Control)
~ developed by ZBM in 1975
• HDLC(High-Level Data Link Control)
~ developed by ISO in 1979
• LAPs(LAPS, LAPD, LAPM, LAPX, etc)
~ developed by ITU-T since 1981
• PPP, frame relay
~ developed by ITU-T and ANSI
21
Bit-Oriented protocol(cont’d)
• HDLC
—All bit-oriented protocols are related to high-
level data link control(HDLC), which published
by ISO.
—HDLC support both half-duplex and full-duplex
modes in point-to-point and multipoint
configurations
—HDLC can be characterized by their station
types, their their configurations, and their
response modes
22
Bit-Oriented protocol(cont’d)
• Station Types
23
Bit-Oriented protocol(cont’d)
• Configuration
~ refers to the relationship of hardware devices
on a link
24
Bit-Oriented protocol(cont’d)
• Mode of communication
~ describes who controls the link
25
Bit-Oriented protocol(cont’d)
• NRM(Normal Response Mode)
—refers to the standard primary-secondary
relationship
—secondary device must have permission from
the primary device before transmitting
26
Bit-Oriented protocol(cont’d)
• ARM(Asynchronous Response Mode)
—secondary may initiate a transmission without
permission from the primary whenever the
channel is idle
—do not alter the primary-secondary
relationship in any other way
27
Bit-Oriented protocol(cont’d)
• ABM(Asynchronous Balanced Mode)
—all stations are equal and therefore only
combined stations connected in point-to-point
are used
—Either combined station many initiate
transmission with the other combined station
without permission
28
Bit-Oriented protocol(cont’d)
• LAP(Link Access Procedure)
—LAPB(Link Access Procedure Balanced)
~ provide those basic control function
required for communication between a DTE and a
DLE
~ used only in balanced configuration of
two device
~ is used in ISDN on B channel
—LAPD(Link Access Procedure for D channel)
~ used in ISDN
~ use ABM(Asynchronous Balanced Mode)
—LAPM(Link Access Procedure for Modem)
~ is designed to do asynchronous-
synchronous conversation, error detection, and
retransmission
~ has become developed to apply HDLC
feature to modems
29