• No results found

chap11.ppt

N/A
N/A
Protected

Academic year: 2020

Share "chap11.ppt"

Copied!
53
0
0

Loading.... (view fulltext now)

Full text

(1)

Data Communications, Kwangwoon Univers

ity 11-1

Chapter 11 Data Link Control

1.

Framing

2.

Flow and Error Control

3.

Protocols

4.

Noiseless Channels

5.

Noisy Channels

6.

HDLC

(2)

Data Communications, Kwangwoon Univers

ity 11-2

Framing

Data link layer needs to pack bits into frames, so that each

Data link layer needs to pack bits into frames, so that each

frame is distinguishable from another

frame is distinguishable from another

• Separate a message from one source to a destination, or

from other messages to other destinations, by adding a

sender address and a destination address

• Fixed-size framing: ATM (Chapter 18)

• Variable-size framing

– Need a way to define the end of the frame and the

beginning of the next

(3)

Data Communications, Kwangwoon Univers

ity 11-3

Character-Oriented Protocols

Frame structure

Frame structure

(4)

Data Communications, Kwangwoon Univers

ity 11-4

Bit-Oriented Protocols

Frame structure

Frame structure

(5)

Data Communications, Kwangwoon Univers

ity 11-5

Flow and Error Control

Data link control = flow control + error control

Flow control

refers to a set of procedures used to restrict the amount of data that the sen

der can send before waiting for acknowledgement

Error control

in the data link layer is based on

automatic repeat request

(ARQ), which i

s the retransmission of data

(6)

Data Communications, Kwangwoon Univers

ity 11-6

Noiseless Channels: Simplest Protocol

(7)

Data Communications, Kwangwoon Univers

ity 11-7

Simplest Protocol

• Sender-site algorithm

(8)

Data Communications, Kwangwoon Univers

ity 11-8

Stop-and-Wait Protocol

(9)

Data Communications, Kwangwoon Univers

ity 11-9

Stop-and-Wait Protocol

• Sender-site algorithm

(10)

Data Communications, Kwangwoon Univers

ity 11-10

(11)

Data Communications, Kwangwoon Univers

ity 11-11

Noisy Channels: Stop-and-Wait ARQ

• Stop-and-wait Automatic Repeat Request (ARQ)

• Error correction in Stop-and-Wait ARQ is done by keeping

a copy of the sent frame and retransmitting of the frame

when the timer expires

• In Stop-and-Wait ARQ, we use sequence numbers to

number the frames. The sequence numbers are based on

modulo-2 arithmetic

(12)

Data Communications, Kwangwoon Univers

ity 11-12

(13)

Data Communications, Kwangwoon Univers

ity 11-13

Stop-and-Wait ARQ

(14)

Data Communications, Kwangwoon Univers

ity 11-14

Stop-and-Wait ARQ

(15)

Data Communications, Kwangwoon Univers

ity 11-15

(16)

Data Communications, Kwangwoon Univers

ity 11-16

Go-Back-N ARQ

• Pipelining improves the efficiency of the transmission

• In the Go-Back-N Protocol, the sequence numbers are modulo 2

m

, where m is the siz

e of the sequence number field in bits

• The send window is an abstract concept defining an imaginary box of size 2

m

− 1 wit

h three variables: S

f

, S

n

, and S

size
(17)

Data Communications, Kwangwoon Univers

ity 11-17

Go-Back-N ARQ

• Receive window for Go-Back-N ARQ

(18)

Data Communications, Kwangwoon Univers

ity 11-18

Go-Back-N ARQ

(19)

Data Communications, Kwangwoon Univers

ity 11-19

Go-Back-N ARQ: Send Window Size

• In Go-Back-N ARQ, the size of the send window must be less than 2m; the size of the receiver window is always 1

(20)

Data Communications, Kwangwoon Univers

ity 11-20

(21)

Data Communications, Kwangwoon Univers

ity 11-21

(22)

Data Communications, Kwangwoon Univers

ity 11-22

(23)

Data Communications, Kwangwoon Univers

ity 11-23

(24)

Data Communications, Kwangwoon Univers

ity 11-24

Selective Repeat ARQ

• Sender window size

(25)

Data Communications, Kwangwoon Univers

ity 11-25

(26)

Data Communications, Kwangwoon Univers

ity 11-26

Selective Repeat ARQ: Window Size

• The size of the sender and receiver window must be at most one-half of

(27)

Data Communications, Kwangwoon Univers

ity 11-27

(28)

Data Communications, Kwangwoon Univers

ity 11-28

(29)

Data Communications, Kwangwoon Univers

ity 11-29

(30)

Data Communications, Kwangwoon Univers

ity 11-30

Piggybacking

(31)

Data Communications, Kwangwoon Univers

ity 11-31

HDLC

• High-level Data Link Control

(32)

Data Communications, Kwangwoon Univers

ity 11-32

HDLC: Frames

• I(information)-frames, S(supervisory)-frames, U(unnumbered frame)-frames

• Flag field: 01111110 to identify both the beginning and the end of a frame and serve as synchronizati on pattern for receiver

(33)

Data Communications, Kwangwoon Univers

ity 11-33

HDLC: Frames

• Control Field: 1- or 2-byte segment of the frame used for flow and error control

• Determine the type of frame and define its functionality

(34)

Data Communications, Kwangwoon Univers

ity 11-34

HDLC: Frames

• Control field for S-frame

(35)

Data Communications, Kwangwoon Univers

ity 11-35

HDLC: Frames

(36)

Data Communications, Kwangwoon Univers

ity 11-36

HDLC: Example 1

(37)

Data Communications, Kwangwoon Univers

ity 11-37

HDLC: Example 2

(38)

Data Communications, Kwangwoon Univers

ity 11-38

HDLC: Example 3

(39)

Data Communications, Kwangwoon Univers

ity 11-39

(40)

Data Communications, Kwangwoon Univers

ity 11-40

Point-to-Point Protocol:

PPP

• One of the most common protocols for point-to-point access

• Many Internet users who need to connect their home computer to the

server of an Internet service provider use PPP

• A point-to-point link protocol is required to control and manage the

transfer of data

• PPP defines/provides

– the format of the frame to be exchanged between devices

– how two devices negotiate the establishment of the link and the exchange of data

– how network layer data are encapsulated in the data link frame

– how two devices can authenticate each other

– multiple network layer services

– connection over multiple links

– Network address configuration

• But, several services are missing for simplicity

(41)

Data Communications, Kwangwoon Univers

ity 11-41

PPP Frame

• Flag: 01111110 the same as HDLC, but it treated as a byte because of

PPP is a byte-oriented protocol

• Address: 11111111 (broadcast address)

• Control: No need because PPP has no flow control and limited error

control

(42)

Data Communications, Kwangwoon Univers

ity 11-42

(43)

Data Communications, Kwangwoon Univers

ity 11-43

PPP: Multiplexing

• PPP uses another set of other protocols to establish the link, authenticate

the parties, and carry the network layer data

(44)

Data Communications, Kwangwoon Univers

ity 11-44

(45)

Data Communications, Kwangwoon Univers

ity 11-45

LCP: Common Options

(46)

Data Communications, Kwangwoon Univers

ity 11-46

Authentication

• Authentication means

validating the identity of a user

who needs to access

• PPP is designed for use over dial-up links

User authentication is necessary

• PPP has two protocols for authentication

– Password Authentication Protocol (PAP)

(47)

Data Communications, Kwangwoon Univers

ity 11-47

(48)

Data Communications, Kwangwoon Univers

ity 11-48

Challenge Handshake Authentication

Protocol (CHAP)

(49)

Data Communications, Kwangwoon Univers

ity 11-49

Network Control Protocol:

NCP

• PPP is a multiple-network layer protocol.

• It can carry a network data packet from protocols defined by the Intern

et, OSI, Xerox, DECnet, AppleTalk, Novel

• IPCP (IP Control Protocol)

(50)

Data Communications, Kwangwoon Univers

ity 11-50

IPCP Packet

(51)

Data Communications, Kwangwoon Univers

ity 11-51

(52)

Data Communications, Kwangwoon Univers

ity 11-52

(53)

Data Communications, Kwangwoon Univers

ity 11-53

References

Related documents

→ that unless such agreement / contract has been executed in writing to me by the President and CEO, my employment with Tyranena is “at will” and I in no way bind Tyranena

CN HA FA old FA new MN MN changes location t Data Data Data Update ACK Data Data Registration Update ACK Data Data Data Warning Request Update ACK Data Data 18 Chapter 4.1: Mobile

Bevor eine weitere Teilchar- ge chargiert werden kann, müssen die im Ofen befindlichen Vorstoffe in den hinte- ren Teil der Trommel gefördert werden.. Bei allen Teilchargen ist

– HAZUS Map of existing EF’s – Attributes of existing EF’s – Data Collection Tab(s). – Guide/Data

Findings from this study will help more proxim_ately University A's faculty and staff better understand the factors that influence the decision of non-traditional students to

The optimized patch-like antennas have been successfully used in the radar system developed at Durham University to perform an experimental campaign aimed at

The objectives of this research were to (1) reconstruct the vegetation and fire histories of the Crater Lake basin for the last ~1000 years, in order to explore how the

* AccECN recommends SACK. If SACK-negotiated, and if no SACK on ACK, not a DupACK.. To ACK ACKs or not to ACK? What is the answer?.