32
1 10 장 . 장장장 장장 장장 (Data Link Control) 10.1 Line Discipline 10.2 장장 장장 (Flow Control) 10.3 장장 장장 (Error Control) 10.4 장장

1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

Embed Size (px)

Citation preview

Page 1: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

1

10 장 . 데이터 링크 제어 (Data Link Control)

10.1 Line Discipline

10.2 흐름 제어 (Flow Control)

10.3 에러 제어 (Error Control)

10.4 요약

Page 2: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

2

데이터 링크 제어 (Data Link Control)

Data Link Layer

Page 3: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

3

데이터 링크 제어 (Data Link Control)

Data Link Layer functions

Page 4: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

4

10.1 Line Discipline

Line discipline answers the question, who should send now?

can be done in two ways

① ENQ/ACK(Enquiry/acknowledgment)

② poll/select

Page 5: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

5

Line Discipline(cont’d)

Line discipline categories

ENQ/ACK : peer-to-peer communication Poll/Select : primary-secondary communication

Page 6: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

6

Line Discipline(cont’d)

ENQ/ACK

Page 7: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

7

Line Discipline(cont’d)How it work

Page 8: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

8

Line Discipline(cont’d)

Poll/Select

Page 9: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

9

Line Discipline(cont’d)

How it works

polling : If the primary want to receive data, it asks the secondaries if they have anything to send.

select : If primary want to send data, it tells the target secondary to get ready to receive.

Page 10: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

10

Line Discipline(cont’d)

Address

~ identify each frame as being either to or from a specific device on the link (address field or header on the protocol)

P S : recipient of the data S P : originator of the data

Page 11: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

11

Line Discipline(cont’d)

Select

~ is used whenever the primary device has something to send(select(SEL) frame)

Page 12: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

12

Line Discipline(cont’d)Poll

~ is used by the primary device to solicit transmissions from the secondary devices

Page 13: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

13

10.2 Flow Control

~ refers to a set of procedures used to restrict the amount of data the sender can send before waiting for acknowledgment

Page 14: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

14

Flow Control(cont’d)Stop and Wait

Page 15: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

15

Flow Control(cont’d)

Stop-and-Wait

~ the sender sends one frame and waits for an acknowledgment before sending the next frame

Advantage : simplicity Disadvantage : inefficiency

Page 16: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

16

Flow Control(cont’d)

Sliding window

~ several frames can be in transit at a time

Page 17: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

17

Flow Control(cont’d)

Sender window

Page 18: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

18

Flow Control(cont’d)

Receiver window

Page 19: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

19

Flow Control(cont’d)

Example

Page 20: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

20

10. 3 Error Control

~ refers primarily to methods of error detection and retransmission

ARQ(Automatic Repeat Request)

~ means retransmission of data in three cases : damaged frame, lost frame, and lost acknowledgment

Page 21: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

21

Error Control(cont’d)

Categories of error control

Page 22: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

22

Error Control(cont’d)Stop-and-Wait ARQ

~ For retransmission to work, four features are added to the basic flow control mechanism.

sending device keeps a copy of the lost from transmitted data frame and ACK frame are numbered alternately 0

and 1 NAK frame(not numbered) timer(sending device)

Page 23: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

23

Error Control(cont’d)

Damaged Frames

Page 24: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

24

Error Control(cont’d)

Lost Data Frame

Page 25: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

25

Error Control(cont’d)

Lost Acknowledgment

Page 26: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

26

Error Control(cont’d)

Sliding Window ARQ

go-back-n ARQ

selective-reject ARQ

Page 27: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

27

Error Control(cont’d)

Three features are added to the basic flow control mechanism(sliding window) sending device keeps copies of all transmitted frame

until they have been acknowledged ACK(carry the number of the next frame expected) NAK(carry the number of the damaged frame itself) equipped with a timer to enable it to handle lost

acknowledgments

Page 28: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

28

Error Control(cont’d)

Go-Back-n ARQ

~ if one frame is lost or damaged, all frame sent since the lost frame acknowledged are retransmitted

Page 29: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

29

Error Control(cont’d)Damaged Frame

Page 30: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

30

Error Control(cont’d)Lost Data Frame

Page 31: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

31

Error Control(cont’d)

Lost Acknowledgment

Page 32: 1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약

32

Error Control(cont’d)Selective-Reject ARQ

~ only the specific damaged or lost frame is retransmitted