N I T DATA Data Link Layer Flow

  • Slides: 22
Download presentation

N I T DATA

N I T DATA

Data Link Layer

Data Link Layer

Flow Control 1. Stop-and-Wait Flow Control 2. Sliding-Window Flow Control

Flow Control 1. Stop-and-Wait Flow Control 2. Sliding-Window Flow Control

Model of Frame Transmission Lost Damage

Model of Frame Transmission Lost Damage

Stop-and-Wait Flow Control

Stop-and-Wait Flow Control

Bit Length of a Link

Bit Length of a Link

Under-utilized ไมเหมาะกบ stop-and-wait flow control เมอ data rate สงและ distance ไกลมาก

Under-utilized ไมเหมาะกบ stop-and-wait flow control เมอ data rate สงและ distance ไกลมาก

Optical Fiber vs. Satellite

Optical Fiber vs. Satellite

Sliding-Window Flow Control • Full duplex • Split data 0 to 2 k-1 •

Sliding-Window Flow Control • Full duplex • Split data 0 to 2 k-1 • Window size < 2 k (mem ทใช ) • Ack = the next frame

Error Control 1. Lost Frame 2. Damaged Frame

Error Control 1. Lost Frame 2. Damaged Frame

Automatic Repeat Request (ARQ) 1. Stop-and-Wait ARQ 2. Go-back-N ARQ 3. Selective-reject ARQ

Automatic Repeat Request (ARQ) 1. Stop-and-Wait ARQ 2. Go-back-N ARQ 3. Selective-reject ARQ

Go-back-N ARQ RR = receive ready REJ = reject

Go-back-N ARQ RR = receive ready REJ = reject

Selective-reject ARQ SREJ = negative acknowledgement

Selective-reject ARQ SREJ = negative acknowledgement

High-Level Data Link Control (HDLC) Frame Check Sequence 01111110

High-Level Data Link Control (HDLC) Frame Check Sequence 01111110

Bit Stuffing To avoid this problem, a procedure known as bit stuffing is used.

Bit Stuffing To avoid this problem, a procedure known as bit stuffing is used. For all bits between the starting and ending flags, the transmitter inserts an extra 0 bit after each occurrence of five 1 s in the frame. After detecting a starting flag, the receiver monitors the bit stream. When a pattern of five 1 s appears, the sixth bit is examined. If this bit is 0, it is deleted. If the sixth bit is a 1 and the seventh bit is a 0, the combination is accepted as a flag. If the sixth and seventh bits are both 1, the sender is indicating an abort condition.