1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Data link (kỹ THUẬT TRUYỀN số LIỆU SLIDE)

71 5 0

Đ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

Định dạng
Số trang 71
Dung lượng 2,34 MB

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

Nội dung

Data Link Layer:Data Link Control...  Process of wrapping data with certain info before sending out  A frame typically consists of  Flag: indication for start and end of a frame  He

Trang 1

Data Link Layer:

Data Link Control

Trang 2

Outline

 Byte vs bit oriented protocols

 Flow control

 Error control

Trang 3

 Process of wrapping data with certain info

before sending out

 A frame typically consists of

 Flag: indication for start and end of a frame

 Header: source/destination addresses, as well

as other control information

 Data from the upper layer

 Trailer: error detection/correction code

Trang 4

Byte vs Bit Oriented

Trang 5

Byte Stuffing

 Process of adding extra byte whenever

there is an escape or a flag character in

the data

Trang 6

Bit Stuffing

flag sequence does not appear in the

data

01111110

Trang 7

Flow Control and Error

Control

 A set of procedures that tells the sender

how much data can be sent before

waiting for acknowledgment

Trang 8

Data Link Protocols

Trang 9

Protocols for Noiseless

Trang 11

"Simplest" : Pseudo Code

Trang 12

"Simplest": Flow

Diagram

Trang 13

Stop-and-Wait

Mechanism

 Requires flow control

and wait for an acknowledgment

Trang 14

Stop-and-Wait: Overview

Trang 15

Stop-and-Wait: Pseudo

Code

Trang 16

Stop-and-Wait: Pseudo

Code

Trang 17

Stop-and-Wait: Flow

Diagram

Trang 18

Noisy Channel

 Error can and will happen

 Require error control

Trang 19

Stop-and-Wait ARQ

until successful delivery is ensured

it successfully receives a frame

numbered

within certain time, it assumes frame

is lost, then retransmits the same

frame

Trang 20

Stop-and-Wait ARQ

Trang 21

Flow Diagram: Normal

Trang 22

 Thinking Corner

numbered?

Trang 23

Flow Diagram: Lost

Trang 24

Deliver

Trang 25

 Thinking Corner

numbered?

Trang 27

Bidirectional

Transmission

frames

Trang 28

Example

 Assuming a communication system where:

 Stop-and-Wait ARQ is used

 Bandwidth of the link is 1 Mbps

 Propagation delay is 10 ms

 One-way data flow

 Questions

 What should be an appropriate time-out value?

 What is the bandwidth-roundtrip-delay

product?

 If the system data frames are 1000 bits in

length, what is the utilization percentage of the link?

Trang 29

Improving Link

Utilization

major disadvantage of Stop-and-Wait

ARQ

waiting for ACK

 Recalculate the link utilization if we

allow up to 15 frames to be sent before

waiting for an ACK

Trang 30

Go-Back-N ARQ

before waiting for ACK

 These frames must be numbered

all of the following frames must be

retransmitted

Trang 32

Sending Window

 Sending more than one frame at once

requires sender to buffer multiple frames

 Known as "sending window"

 Any of these frames in the window can be lost

Trang 33

"Sliding" Window

 Once the first frames in the window is

ACKed

 ACKed frames are removed from the buffer

 More frames are transmitted

 Result: The window slides to the right

Trang 34

Receiving Window

Trang 35

Send vs Receive

Windows

Trang 36

Go-Back-N: Window

Sizes

 Up to 2m-1 frames can be sent without

ACK

 Frames must be received in order

Trang 37

Go-Back-N: Normal

Operation

Trang 38

Go-Back-N: Lost Frame

ACKs are cumulative

Trang 39

Lost ACK: Window Size <

2m

Trang 40

 Thinking Corner

Trang 41

Lost ACK: Window Size =

2m

Trang 43

Selective Repeat ARQ

out-of-order frames

 Losing one frame may result in

retransmission of multiple frames

 Very inefficient in noisy link

 Therefore, receive window > 1

Trang 45

Send Window

Trang 46

Receive Window

Trang 47

Negative ACK

 Used by receiver to indicate missing frame

Trang 48

Selective Repeat: Window

Size

Trang 49

Data Link Control

Protocols: HDLC and PPP

Trang 51

Normal Response Mode

 "NRM" mode

 Used in both point-to-point and multi-point link

Trang 52

Asynchronous Balance

Mode

 "ABM"

secondary

Trang 53

HDLC Frames

 Information frame (I-frame)

 Supervisory frame (S-frame)

 Unnumbered frame (U-frame)

Frame Check Sequence (error detection code)

Trang 54

Control Field Format

 N(S) – Frame sequence number

 N(R) – Ack sequence number

Trang 55

U-Frame Codes

Trang 56

Connection and

Disconnection

Trang 57

Data Transfer: No Error

Trang 58

Data Transfer: With Error

Trang 61

PPP Transition States

Trang 62

Multiplexing in PPP

Trang 63

PPP Stack

Trang 64

LCP: Link Control

Protocol

maintaining, configuring, and

terminating links

Trang 65

PPP Authentication

 Password Authentication Protocol (PAP)

 Challenge Handshake Authentication

Protocol (CHAP)

Trang 66

PAP

Trang 67

CHAP

Trang 68

NCP: Network Control

Protocol

 A set of control protocols to allow data

from the network layer to be encapsulated

into a PPP frame

 One common protocol: IPCP

(Internetwork Protocol Control Protocol)

 Allow negotiation at the network layer

Trang 69

Data Encapsulation

Trang 70

Example: PPP Session

Trang 71

Example: PPP Session

(cont'd)

Ngày đăng: 29/03/2021, 10:34