Data Communications and Networking Forouzan Fourth Edition Chapter 11 Data Link Control 数据链路控制 11.1
11.1 Chapter 11 Data Link Control 数据链路控制
数据链路层两个主要功能是: 数据链路控制,用来处理两个相邻节点之间的通信; 介质访问控制,如何共享媒介进行访问控制。下章介 绍) 数据链路控制的功能包括成帧,流量控制和差错控制。 关于差错检测已经在第十章介绍了。 本章主要介绍5个链路控制协议,两个用于无噪声信道, 三个用于有噪声信道。 11.2
11.2 数据链路层两个主要功能是: 数据链路控制,用来处理两个相邻节点之间的通信; 介质访问控制, 如何共享媒介进行访问控制。(下章介 绍) 数据链路控制的功能包括成帧,流量控制和差错控制。 关于差错检测已经在第十章介绍了。 本章主要介绍5个链路控制协议,两个用于无噪声信道, 三个用于有噪声信道
11-1 FRAMING成帧 The data link layer needs to pack bits into frames,so that each frame is distinguishable from another.Our postal system practices a type of framing.The simple act of inserting a letter into an envelope separates one piece of information from another;the envelope serves as the delimiter. 数据链路层需要将一组比特位组成帧,以便帧和帧之间 是可以识别的。邮局系统就实现了成帧方式,信封就是 一种分隔符。 Topics discussed in this section: Fixed-Size Framing固定长度成帧例如第18章的ATM信元 Variable-Size Framing可变长度成帧面向字符和面向比特位 11.3
11.3 11-1 FRAMING 成帧 The data link layer needs to pack bits into frames, so that each frame is distinguishable from another. Our postal system practices a type of framing. The simple act of inserting a letter into an envelope separates one piece of information from another; the envelope serves as the delimiter. 数据链路层需要将一组比特位组成帧,以便帧和帧之间 是可以识别的。邮局系统就实现了成帧方式,信封就是 一种分隔符。 Fixed-Size Framing 固定长度成帧 例如第18章的 ATM信元 Variable-Size Framing 可变长度成帧 面向字符和面向比特位 Topics discussed in this section:
Figure1l.1 A frame in a character-oriented protocol面向字符的帧 Data from upper layer Variable number of characters Flag Header Trailer Flag 11.4
11.4 Figure 11.1 A frame in a character-oriented protocol 面向字符的帧
Figure1l.2 Byte stuffing and unstuffing字节填充和移除 Data from upper layer Flag ESC Frame sent Stuffed Flag Header ESC Flag ESC ESC Trailer Flag Extra 2 bytes Frame received Flag Header ESC Flag ESC ESC Trailer Flag Unstuffed Flag ESC Data to upper layer 11.5
11.5 Figure 11.2 Byte stuffing and unstuffing 字节填充和移除