天天看點

簡析ppp協定中的lcpPPP Link Negotiation with LCP

RFC文檔中是這麼說的:

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,如需轉載請自行聯系原作者

繼續閱讀