Docsity

Data Link Layer Framming-and-Flow-Control, Lecture notes of Computer Networks

Partial preview of the text

Download Data Link Layer Framming-and-Flow-Control and more Lecture notes Computer Networks in PDF only on Docsity!

Data Link Control:

Framing and Flow

Control

11-1 FRAMING

11-1 FRAMING

The data link layer needs to pack bits into

The data link layer needs to pack bits into frames

frames , so

, so

that each frame is distinguishable from another. Our

that each frame is distinguishable from another. Our

postal system practices a type of framing. The simple

postal system practices a type of framing. The simple

act of inserting a letter into an envelope separates one

act of inserting a letter into an envelope separates one

piece of information from another; the envelope serves

piece of information from another; the envelope serves

as the delimiter.

as the delimiter.

Fixed-Size Framing

Variable-Size Framing

Topics discussed in this section:

Topics discussed in this section:

Figure 11.2 Byte stuffing and unstuffing

Byte stuffing is the process of adding 1

extra byte whenever there is a flag or

escape character in the text.

Note

Bit stuffing is the process of adding one

extra 0 if 011111 is encountered in data,

so that the receiver does not mistake

the pattern 0111110 for a flag.

Note

Figure 11.4 Bit stuffing and unstuffing

Flow control refers to a set of procedures

used to restrict the amount of data

that the sender can send before

waiting for acknowledgment.

Note

Aka: Donโ€™t overwhelm the receiver!

Error control in the data link layer is

based on automatic repeat request,

which is the retransmission of data.

Note

Figure 11.5 Taxonomy of protocols discussed in this chapter

11-4 NOISELESS CHANNELS

11-4 NOISELESS CHANNELS

Let us first assume we have an ideal channel in which

Let us first assume we have an ideal channel in which

no frames are lost, duplicated, or corrupted. We

no frames are lost, duplicated, or corrupted. We

introduce two protocols for this type of channel.

introduce two protocols for this type of channel.

Simplest Protocol

Stop-and-Wait Protocol

Topics discussed in this section:

Topics discussed in this section:

Algorithm 11.1 Sender-site algorithm for the simplest protocol

Algorithm 11.2 Receiver-site algorithm for the simplest protocol

Figure 11.8 Design of Stop-and-Wait Protocol

Algorithm 11.3 Sender-site algorithm for Stop-and-Wait Protocol