【正文】
收時應該被忽略掉。 ? Data域為 0個或者多個字節(jié), Data域的格式由Code的值來決定。 Code Identifier Length Data Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。 Trademark Office. All other product or service names are the property of their respective owners. 169。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?當 Code域為 1或者 2的時候, EAP的 request和 response報文,報文的格式為: –當 Code為 1的時候是 request報文 –當 Code為 2的時候是 response報文。 ?Identifier域為一個字節(jié)。在等待 Response時根據(jù) timeout而重發(fā)的 Request的 Identifier域必須相同。任何新的(非重發(fā)的) Request必須修改 Identifier域。如果對方收到了重復的 Request,并且已經(jīng)發(fā)送了對該 Request的 Response,則對方必須重發(fā)該 Response。如果對方在給最初的Request發(fā)送 Response之前收到重復的 Request(也就是說,它在等待用戶輸入),它必須悄悄的丟棄重復的Request。 Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。 Trademark Office. All other product or service names are the property of their respective owners. 169。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?Length域為兩個字節(jié),表明 EAP數(shù)據(jù)包的長度,包括 Code,Identifier, Length, Type以及 TypeData等各域。超出Length域的字節(jié)應視為數(shù)據(jù)鏈路層填充( padding),在接收時應該被忽略掉。 ?Type域為一個字節(jié) ,該域表明了 Request或 Response的類型。在 EAP的 Request或 Response中必須出現(xiàn)且僅出現(xiàn)一個 Type。通常 Response中的 Type域和 Request中的 Type域相同。但是, Response可以有個 Nak類型,表明 Request中的 Type不能被對方接受。當對方發(fā)送 Nak來響應一個Request時,它可以暗示它所希望使用并且支持的認證類型。Type Data域隨 Request和相對應的 Response的 Type的不同而不同。 Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。 Trademark Office. All other product or service names are the property of their respective owners. 169。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?Type域總共分為 6個值域,其中頭 3種 Type被認為特殊情形的 Type,其余的 Type定義了認證的交換流量。 Nak類型僅對 Response數(shù)據(jù)包有效,不允許把它放在 Request中發(fā)送。 –Type= 1———— →Identifier –Type= 2———— →Notification –Type= 3———— →Nak ( Response Only) –Type= 4———— →MD5 Challenge –Type= 5———— →One Time Password (OTP) –Type= 6———— →Generic Token Card Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。 Trademark Office. All other product or service names are the property of their respective owners. 169。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length ?當 Code域為 3或者 4的時候,這個時候為 EAP的Success和 Failure報文,報文的格式為: ?當 Code為 3的時候是 Success報文,當 Code為 4的時候是 Failure報文 ?Identifier域為一個字節(jié),輔助匹配 Response應答。Identifier域必須與其正在應答的 Response域中的Identifier域相匹配。