- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Chapter6DataLinkLayerandRetransmissionProtocol6.1.1.ppt
Chapter 6 Data Link Layer and Retransmission Protocol6.1.1 Encapsulationformat The data link layer envelops the packet into a frame that contains same control information in addition to the packet The frame format consists of three parts:a header,the packet, and a trailer. The header identifies the start of the packet. The trailer contains the error control bits HDLC HDLC transports information units called frames FLAG(标志字段):用于帧同步,表示一帧的开始和结束。 Address(地址字段):数据链路上发送站和接收站的地址。 Control(控制字段):用于表示帧类型(信息帧、监控帧、无编号帧)、帧编号以及命令、响应等。 Data(数据字段):用户的数据信息和来自上层的控制信息 CKS(帧校验字段) FLAG Bit pattern帧同步 To prevent the flag from occurring inside the packet,the sender and the receiver modify the bit stream as follows. 一帧内两个F之间的字段不能出现类似标志序列的比特组合 The sender inserts a 0 bit any time five consecutive 1 bit are transmitted. 检查两个F之间各字段,若有5个连“1”就在第5个“1”之后插入一个“0” The receiver discards every arriving 0 bit that five consecutive 1 bits. HDLC帧所传送的用户信息内容不受任何限制,达到数据的透明传输。 Figure 6.2 bit stuffing and destuffing operations HDLC HDLC是支持在点到点和多点链路上的半双工和全双工通信而设计的,它是面向比特的数据链路协议。 面向比特的协议:则将传输帧或包看作是单个比特的连续流,通过它们在帧的位置和与其他比特的组合模式来表达意义。根据内嵌在比特模式中的信息的不同,面向比特的协议中的控制信息可以是一个或多个比特。 Data link(数据链路) Data communication system consists of DTE,DCE and data circuit Data circuit(数据电路) consists of two parts: transmission channel and data circuit terminal equipment(DCE)(数据电路终接设备) Data Terminal Equipment(DTE):数据输入设备、数据输出设备和通信控制器组成 Data link consists of data circuit and communications controls Structure of data linkstation(站) 数据链路中不同类型的DTE统称为“站”(station) Primary station(主站):send information or command Secondary station(从站):receive information or send response Compound station(组合站):同时能发送信息、命令、认可或响应的站称为“组合站” 数据传输模式(操作方式) Three modes of operations:normal response mode,asynchronous response mode and asynchronous balanced mode.(正常响应,异步响应和异步平衡方式) normal response mode:a secondary node cannot initiate a transfer,but can only respond to a poll request. 只有主站才能发起向从站的数据传输,从站只有向主站探询后才能发出响应帧 Asynchronous response mode:主站
文档评论(0)