简析ppp协议中的lcp

RFC文档中是这么说的:

PPP Link Negotiation with LCP

LCP Packet Structure

LCP uses the PPP Protocol ID of 0xC0-21. The packet structure of LCP is illustrated in Figure 7.11. Each LCP packet is a single LCP message consisting of an LCP Code field identifying the type of LCP packet, an Identifier field so that requests and replies can be matched, a Length field indicating the size of the LCP packet and LCP packet type–specific data.

翻译:

lcp的协议标识号是0xC021(在ppp协议中的最后俩个字节,上篇 以太网中的pppoe 中有提到),lcp包的结构如图所示。每一个lcp包由下面的字段组成:

code:标识lcp包的类型,例如是请求包还是应答包。

identifier:请求或应答包的标识,以便能够匹配

length:标识lcp包特定数据的大小



lcp协议属于ppp协议的一部分,ppp协议由三个组成部分

1、一个将ip数据报封装到串行链路的方法

2、一个用来建立、配置、测试数据链路的连接的链路控制协议LCP

3、一套网络控制协议NCP,其中的每一个协议支持不同的网络层协议。











本文转自 落花非有意  51CTO博客,原文链接:http://blog.51cto.com/1992zhong/1201942,如需转载请自行联系原作者

你可能感兴趣的:(简析ppp协议中的lcp)