64
1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 장장

1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

Embed Size (px)

Citation preview

Page 1: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

1

11 장 Data Link Protocol

11.1 Asynchronous protocol

11.2 Synchronous protocol

11.3 Character-Oriented protocol

11.4 Bit-Oriented protocol

11.5 요약

Page 2: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

2

Data Link Protocol~ is a set of specifications used to implementation

the data link layer

Page 3: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

3

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

Page 4: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

4

11.1 Asynchronous protocol

~ used primarily in modems, feature start and stop bits and variable length gabs between characters

Page 5: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

5

Asynchronous protocol(cont’d)

Xmodem Ward Christiansen designed a file transfer protoco

l for telephone-line communication between PCs(1979)

half-duplex stop-and-wait ARQ protocol

Page 6: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

6

Asynchronous protocol(cont’d)

XMODEM frame

Page 7: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

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

Page 8: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

8

Asynchronous protocol(cont’d)

YMODEM

~ is a protocol similar to XMODEM

data unit is 1024 bytes Two CANs are sent to abort a transmission ITU-T CRC-16 is used for error checking Multiple files can be sent simultaneously

Page 9: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

9

Asynchronous protocol(cont’d)

ZMODEM~ is a newer protocol combining features of both

XMODEM and YMODEM

BLAST(Blocked Asynchronous Transmission)~ is full-duplex with sliding window flow control

Kermit~ designed at Columbia University

~ is the most widely used asynchronous protocol

Page 10: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

10

11.2 Synchronous protocol

~ for LAN, MAN, WAN

Page 11: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

11

Synchronous protocol(cont’d)

character-oriented protocol~ frame or packet is interpreted as a series of

characters

bit-oriented protocol~ frame of packet is interpreted as a series of bits

Page 12: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

12

11.3 Character-Oriented protocol

~ are not as efficient as bit-oriented protocols and therefore one now seldom used

popular protocol : BSC(Binary synchronous communication)

Page 13: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

13

Character-Oriented protocol(cont’d)

BSC(Binary Synchronous Communication) developed by ZBM in 1964 usable in both point-to-point and multipoint

configuration support half-duplex transmission using stop-and-

wait ARQ flow control and error correction do not support full-duplex transmission or sliding

window protocol

Page 14: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

14

Character-Oriented protocol(cont’d)

Control character for BSCCharacter ASCII Code

ACK 0ACK 1DLEENQEOTETBETXITBNAKNULRVISOHSTXSYNTTDWACK

DLE and 0DLE and 1DLEENQEOTETBETXUSNAKNULLDLE and <SOHSTXSYNSTX and ENQDLE and ;

Function

Good even frame received or ready to receiveGood odd frame receivedData transparency makerRequest for a responseSender terminatingEnd of transmission block; ACK requiredEnd of text in a messageEnd of intermediate block in a multiblock transmissionBad frame received nothing to sendFiller characterUrgent message from receiverHeader information beingsText beingsAlerts receiver to incoming frameSender is pausing but not relinquishing the lineGood frame received but not ready to receive more

Page 15: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

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(table 11.1)

Page 16: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

16

Character-Oriented protocol(cont’d)

BSC frame

Page 17: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

17

Character-Oriented protocol(cont’d)

Data frame

Page 18: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

18

Character-Oriented protocol(cont’d)

Header field

One or more bytes defining address and/orother information(nonstandardized)

Page 19: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

19

Character-Oriented protocol(cont’d)

Multiblock Frame text in a message is often divide between several b

locks

Page 20: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

20

Character-Oriented protocol(cont’d)

Multiframe Transmission

Page 21: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

21

Character-Oriented protocol(cont’d)

Control Frame~ is used by one device to send commands to, or

solicit information from, another device

One or more characters

Page 22: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

22

Character-Oriented protocol(cont’d)

Control Frame~ serve three purpose establishing connections maintaining flow and error control during data

transmission terminating connection

Page 23: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

23

Character-Oriented protocol(cont’d)

Control Frame(1)

Page 24: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

24

Character-Oriented protocol(cont’d)

Control Frame(2)

Page 25: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

25

Character-Oriented protocol(cont’d)

Control Frame(3)

Page 26: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

26

Character-Oriented protocol(cont’d)Data Transparency

~ means we should be able to send any combination of bits as data(bit stuffing)

Page 27: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

27

11.4 Bit-Oriented protocol

~ can pack more information into shorter frames and avoid the transparency problem of character-oriented protocol

Page 28: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

28

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

Page 29: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

29

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

Page 30: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

30

Bit-Oriented protocol(cont’d)

Station Types

primary : send commands

secondary : send response

combined : send command and response

Page 31: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

31

Bit-Oriented protocol(cont’d)Configuration

~ refers to the relationship of hardware devices on a link

Page 32: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

32

Bit-Oriented protocol(cont’d)

Page 33: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

33

Bit-Oriented protocol(cont’d)

Page 34: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

34

Bit-Oriented protocol(cont’d)

Mode of communication~ describes who controls the link

NRM(Normal Response Mode) ARM(Asynchronous Response Mode) ABM(Asynchronous Balanced Mode)

Page 35: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

35

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

Page 36: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

36

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

Page 37: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

37

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

Page 38: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

38

Bit-Oriented protocol(cont’d)

HDLC modes

Page 39: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

39

Bit-Oriented protocol(cont’d)

Frame I( Information ) Frame

~ used to transport user data and control information relating to user data

S( Supervisory ) Frame

~ used to only to transport control information, primarily data link layer flow and error controls

U( Unnumbered) Frame

~ are reserved for system management

Page 40: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

40

Bit-Oriented protocol(cont’d)

HDLC Frame types

Page 41: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

41

Bit-Oriented protocol(cont’d)

Frame ~ many contain up to six field beginning flag address control information FCS(Frame Check Sequence)

Page 42: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

42

Bit-Oriented protocol(cont’d)

Flag Field~ serve as a synchronization pattern for the receiver

Page 43: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

43

Bit-Oriented protocol(cont’d)

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 flag

Page 44: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

44

Bit-Oriented protocol(cont’d)

Bit Stuffing in HDLC

Page 45: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

45

Bit-Oriented protocol(cont’d)Address Field

~ contain the address of the secondary station that is either the originator or destination of the frame

Page 46: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

46

Bit-Oriented protocol(cont’d)

Control field

Page 47: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

47

Bit-Oriented protocol(cont’d)

Poll/Final field in HDLC

Page 48: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

48

Bit-Oriented protocol(cont’d)

Information field

Page 49: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

49

Bit-Oriented protocol(cont’d)

Piggybacking~ means combining data to be sent and

acknowledgment of the frame received in one single frame

Page 50: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

50

Bit-Oriented protocol(cont’d)

FCS field

Page 51: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

51

Bit-Oriented protocol(cont’d)More about Frames

s-frame~ are used for acknowledgment, flow control, and error

control

Page 52: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

52

Bit-Oriented protocol(cont’d)

RR(Receive Ready) ACK Poll Negative response to poll Positive response to select

Page 53: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

53

Bit-Oriented protocol(cont’d)

RNR(Receive Net Ready) ACK Select Negative response to select

REJ(Reject)

SREJ(Selective-reject)

Page 54: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

54

Bit-Oriented protocol(cont’d)Use of P/F bit in polling and selection

Page 55: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

55

Bit-Oriented protocol(cont’d)

U-Frame~ are used to exchange session management and

control information between connected devices

Page 56: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

56

Bit-Oriented protocol(cont’d)

Page 57: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

57

Bit-Oriented protocol(cont’d)U-Frame control command and response

Command/response Meaning

SNRMSNRMESARMSARMESABMSABMEUPUIUARDDISCDMRIMSIMRSETXIDFRMR

Set normal response modeSet normal response mode(extended)Set asynchronous response modeSet asynchronous response mode(extended)Set asynchronous balanced modeSet asynchronous balanced mode(extended)Unnumbered pollUnnumbered informationUnnumbered acknowledgementRequest disconnectDisconnectDisconnect modeRequest information modeSet initialization modeResetExchange IDFrame reject

Page 58: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

58

Bit-Oriented protocol(cont’d)

U-Frame~ can be divided into five basic functional category

Mode setting Unnumbered-Exchange Disconnection Initialization Mode Miscellaneous

Page 59: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

59

Bit-Oriented protocol(cont’d)Mode Setting Command

~ are sent by the primary station, or by a combined station wishing to control an exchange, to establish the mode of the session(table 11.2)

Unumbered-Exchange~ are used to send or solicit specific pieces of data link informati

on between device(table 11.2)

DisconnectionInitialization ModeMiscellaneous

Page 60: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

60

Bit-Oriented protocol(cont’d)

Example 1 : Poll/Response

Page 61: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

61

Bit-Oriented protocol(cont’d)

Example 2 : Select/Response

Page 62: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

62

Bit-Oriented protocol(cont’d)Example 3 : Peer Devices(1)

Page 63: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

63

Bit-Oriented protocol(cont’d)Example 3 : Peer Devices(2)

Page 64: 1 11 장 Data Link Protocol 11.1 Asynchronous protocol 11.2 Synchronous protocol 11.3 Character-Oriented protocol 11.4 Bit-Oriented protocol 11.5 요약

64

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