data link control

31
1 Data Link Control ผผ. ผผ. ผผผผผผ ผผผผผผผ Asst. Prof. Anan Phonphoem, Ph.D. [email protected] http://www.cpe.ku.ac.th/~anan Computer Engineering Department Kasetsart University, Bangkok, Thailand

Upload: zeus-rivers

Post on 30-Dec-2015

35 views

Category:

Documents


0 download

DESCRIPTION

Data Link Control. ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. [email protected] http://www.cpe.ku.ac.th/~anan Computer Engineering Department Kasetsart University, Bangkok, Thailand. Physical characteristics of interface Stream of Bits (e.g., 001010100100) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Data Link Control

1

Data Link Control

ผศ . ดร. อนั�นัต์ ผลเพิ่��มAsst. Prof. Anan Phonphoem, Ph.D.

[email protected]://www.cpe.ku.ac.th/~anan

Computer Engineering DepartmentKasetsart University, Bangkok, Thailand

Page 2: Data Link Control

2

Physical characteristics of interface

Stream of Bits (e.g., 001010100100)

Line config. (e.g., point-to-point)

Topology (e.g., bus, star)

Transmission mode

(e.g., half-duplex, full-duplex)

Encoding

Error detection (and correction)

TCP/IP Protocol Suite

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Page 3: Data Link Control

3

Line Discipline

Flow Control

Error Control

TCP/IP Protocol Suite

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Page 4: Data Link Control

4

Data Link Control

Line Discipline

Flow Control

Error Control

Who Should send data and When ?

How much data may be sent?

How can errors be Detected and correct?

Page 5: Data Link Control

5

Data Link Control

Line Discipline

Flow Control

Error Control

ENQ / ACK

Poll / Select

Page 6: Data Link Control

6

Line Discipline: ENQ/ACK

Peer-to-peer communication

Page 7: Data Link Control

7

Line Discipline: ENQ/ACK

Page 8: Data Link Control

8

Line Discipline:Poll/Select

Primary-secondary communicationMultipoint Discipline

Page 9: Data Link Control

9

Select

Page 10: Data Link Control

10

Poll

Page 11: Data Link Control

11

Data Link Control

Line Discipline

Flow Control

Error Control

Stop-and-wait(one frame at a time)

Sliding window(several frames at a time)

a set of procedures used a set of procedures used to restrict the amount of to restrict the amount of data that the sender can data that the sender can sendsend

Page 12: Data Link Control

12

Stop-and-wait

Page 13: Data Link Control

13

Sliding window

Page 14: Data Link Control

14

Sender sliding window

Page 15: Data Link Control

15

Receiver sliding window

Page 16: Data Link Control

16

Example of sliding window

Page 17: Data Link Control

17

Control variable

Page 18: Data Link Control

18

Example of sliding window

Page 19: Data Link Control

19

Data Link Control

Line Discipline

Flow Control

Error Control

Stop-and-wait ARQ

Sliding window ARQ• Go-back-n• Selective-reject

Page 20: Data Link Control

20

Stop-and-wait ARQ: Normal Operation

Page 21: Data Link Control

21

Stop-and-wait ARQ: Damaged frame

Page 22: Data Link Control

22

Stop-and-wait ARQ: Lost data frame

Page 23: Data Link Control

23

Stop-and-wait ARQ: Lost ACK frame

Page 24: Data Link Control

24

Stop-and-wait ARQ: Delay ACK

Page 25: Data Link Control

25

Stop-and-wait ARQ: Piggybacking

Page 26: Data Link Control

26

Sliding WindowGo-back-n: Normal Operation

Page 27: Data Link Control

27

Sliding WindowGo-back-n: Damaged data frame

Page 28: Data Link Control

28

Sliding Window Go-back-n: Lost Data Frame

Page 29: Data Link Control

29

Sliding Window Go-back-n: Lost ACK

Page 30: Data Link Control

30

Sliding Window Selective-reject: Damaged data frame

Page 31: Data Link Control

31

Sliding window ARQ Comparison

Go-back-n Simple More practical

Selective-reject Complex (sorting, storage, extra select frame

logic) Better performance