1. Trang chủ
  2. » Công Nghệ Thông Tin

Chapter7 - DATA LINK CONTROL PROTOCOLS docx

65 578 2
Tài liệu được quét OCR, nội dung có thể không chính xác
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Data Link Control Protocols
Chuyên ngành Data Communication and Networking
Thể loại lecture notes
Định dạng
Số trang 65
Dung lượng 3,85 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

| Introduction = Data link control layer — often abbreviated simply to data link layer — is concerned with the transfer of data over a serial data link = The transmission mode may be e

Trang 1

DATA LINK CONTROL

Trang 2

| Introduction

= Data link control layer — often abbreviated simply to data link layer — is concerned with the transfer of data over a serial data link

= The transmission mode may be either asynchronous or synchronous and based on either a character-oriented or a bit-oriented

transmission control protocol

= The data link layer is fundamental to the operation of all data communication

applications

Trang 3

4 Introduction

= Depending on the application, the user service provided by the data link layer may be either a simple best-try (connectionless) service or a reliable (connection-oriented) service

Trang 4

4 Introduction

= The connectionless service

" means that although error check bits are used to detect errors, any frames that are found to

contain transmission errors are simply discarded

by the link layer protocol entity

" It is also referred to as an unacknowledged

service

=" Retransmission becomes a function of a higher layer protocol

Trang 5

| Introduction

= The connection-oriented service

" Data link protocol employs error and flow control procedures to provide a reliable service

" To achieve this, prior to sending any data (information frames), a logical connection between the two data link layer protocol entities is established (using L_Connect service)

" All data is transfer using a suitable retransmission and flow control protocol

=" When all data has been exchanged, the logical connection is clear (using L_Disconnect service)

Trang 6

L_DATA.indication

L_DATA request

- s ®

Trang 7

= In others, data link protocols operates over the local link connecting, for example, the DTE to a network, the protocol is said to have only local significance

Trang 8

= Direct physical connection

= Operates on an end-to-end basis

Trang 10

Application Environments

= The data link topology may be

=" Multipoint or multidrop topology

= Single transmission line — known as a bus or data highway — is used to connect all the computer together

= Normally used in applications that involve a single master (supervisory) computer communicating with a distributed community of slave computers

10

Trang 12

Application Environments

PS = Packet switching PSE = Packet switching exchange

Trang 13

management, start of frame and end of frame —

frame delimiting, error control and data

transparency

13

Trang 15

Character-oriented Protocols —

4 Simplex protocols

Simplest since it allows a simplex — one direction only

— transfer of data from one DTE to another

Point-to-point data link topology The most widely used protocols for this function is

Kermit

15

Trang 16

Character-oriented Protocols —

" Simplex protocols

= Kermit:

= Synchronous transmission (normally)

" Point-to-point data link

= Stop and Wait ARQ

Trang 19

SOH = Marks start of a frame

LEN = The number of characters/bytes in the frame following this character

up to and including BCC The number is encoded in excess-32 notation using a single character in the range from ASCII # (decimal 35) to

ASCII ~ (decimal 126) where # indicates a length of 3 (no data) and ~

indicates the maximum length of 91 SEQ = The send sequence number of the frame The sequence number is

incremented modulo-64 and is again encoded as a single character in the

range ASCII SP (decimal 32) for zero to ASCII _ (decimal 95) for 63

TYPE = The type of frame encoded using a single character:

S = Send initiation (parameters)

BCC = Block check character

CR = End of block marker (ASCII carriage return)

19

Trang 20

DATA BLOCK [3] SENT 4

DATA BLOCK [4] SENT

I[O, S, Init Params]

ACK(O, Y, Init Params]

Duplicate detected

ACK{S Y]

H6, BỊ

KERMIT CONNECT RECEIVE

DATA BLOCK [1] RECVD DATA BLOCK [2] RECVD

= DATA BLOCK [3] RECVD

DATA BLOCK [4] RECVD

END OF FILE

END OF TRANSACTION

Trang 27

ENQ (TCS) ACK (TC6) DLE (TC7) NAK (TC8)

End of transmission block: used to indicate the end of a block of data when a message is divided into a number of such blocks (frames)

2/

Trang 29

Either: Slave not ready {

Or: Slave ready

Next data block (2)

Next data block (2)

Last data block (CV)

EOT

Select (+) Sequence First data block (0)

Trang 31

L_CONNECT.-confirm

L_DATA request

(Message block)

L_DISCONNECT request L_DISCONNECT.confirm

L_DISCONNECT indication

31

Trang 34

+ Bit-oriented Protocols

= All new data link protocols are bit-oriented protocols

= Such protocols use defined bit patterns rather than transmission control characters to signal the start

and end of frame — Known as frame delimiting

34

Trang 35

= Point-to-point with single primary and secondary

= Multipoint with single primary and multiple secondary

= Point-to-point with two primaries and two secondaries

35

Trang 36

(c)

Primary secondary

Trang 37

=" Normal response mode (NRM)

= used in balanced configurations

= Slave stations (or secondaries) can transmit only when specially instructed by the master (primary) station

= The link may be point-to-point or multipoint (in this case only one primary station is allowed)

3/

Trang 38

= Asynchronous response mode (ARM)

= Used in unbalanced configurations

= Allows a secondary to initiate a transmission without receiving permission from the primary

= Normally used with point-to-point configurations and duplex links

38

Trang 39

= Asynchronous balanced mode (ABM)

= Used mainly on duplex point-to-point links

= Each station has an equal status and performs both primary and secondary functions

39

Trang 41

= Receiver hunts for flag sequence to synchronize

= Bit stuffing used to avoid confusion with data containing

01111110

= Q inserted after every sequence of five 1s

If receiver detects five 1s it checks next bit

If 0, it is deleted

If 1 and seventh bit is 0, accept as flag

If sixth and seventh bits 1, sender is indicating abort

41

Trang 42

— inverted

(b) An inverted bit splits a frame in two

Trang 43

= Depend on the mode operation

= In NRM, on multidrop line, every secondary station is assigned a unique address Whenever the primary station communicates with a secondary, the address field contains the address of the secondary

= Not used in this way in ABM because only direct point-to- point links are involved Instead, it is used to indicate the direction of commands and their associated responses

43

Trang 45

= used for error and flow control and hence contain

send and receive sequence numbers

45

Trang 47

Set Normal Response Mode Extended (SNRME) Set Asynchronous Balanced Mode (SABM)

Set Asynchronous Balanced Mode Extended (SABME)

Trang 48

Si ee A Bi So ee ek IE Adee 13, 14 2S) 3G Supervisory = | 1 | 0 | S — P/F N(R) |

Trang 49

49

Trang 50

ty

90

Trang 53

S3

Trang 56

L_CONNECT indication

- c- aie w=

-

~_Ắ~

ca œ

L CONNECT.confrm L_DATA.request

= see

ae -~

L_DISCONNECT.confirm #4

Trang 57

a public or private packet-switching network (X.25 networks)

= LAPB is an extended version of an earlier

subset LAPA (Link Access Procedure version

A)

S/

Trang 61

Type Commands | Responses Commands _ Responses

Supervisory RR RR RR RR

Trang 62

62

Trang 63

RR, REJ, RNR

DISC

63

Trang 64

= Always 7-bit sequence numbers (no 3-bit)

16 bit address field contains two sub-addresses

= One for device and one for user (next layer up

Trang 65

Different frame format

Link control split between medium access layer (MAC) and LLC (on top of MAC)

No primary and secondary - all stations are peers

Two addresses needed

= Sender and receiver

Error detection at MAC layer

= 32 bit CRC Destination and source access points (DSAP, SSAP)

65

Ngày đăng: 30/03/2014, 07:20

TỪ KHÓA LIÊN QUAN

w