【正文】
。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length ?當(dāng) Code域?yàn)?3或者 4的時(shí)候,這個(gè)時(shí)候?yàn)?EAP的Success和 Failure報(bào)文,報(bào)文的格式為: ?當(dāng) Code為 3的時(shí)候是 Success報(bào)文,當(dāng) Code為 4的時(shí)候是 Failure報(bào)文 ?Identifier域?yàn)橐粋€(gè)字節(jié),輔助匹配 Response應(yīng)答。 –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。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?Type域總共分為 6個(gè)值域,其中頭 3種 Type被認(rèn)為特殊情形的 Type,其余的 Type定義了認(rèn)證的交換流量。 Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。當(dāng)對(duì)方發(fā)送 Nak來響應(yīng)一個(gè)Request時(shí),它可以暗示它所希望使用并且支持的認(rèn)證類型。通常 Response中的 Type域和 Request中的 Type域相同。 ?Type域?yàn)橐粋€(gè)字節(jié) ,該域表明了 Request或 Response的類型。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?Length域?yàn)閮蓚€(gè)字節(jié),表明 EAP數(shù)據(jù)包的長(zhǎng)度,包括 Code,Identifier, Length, Type以及 TypeData等各域。 Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。如果對(duì)方收到了重復(fù)的 Request,并且已經(jīng)發(fā)送了對(duì)該 Request的 Response,則對(duì)方必須重發(fā)該 Response。在等待 Response時(shí)根據(jù) timeout而重發(fā)的 Request的 Identifier域必須相同。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Type Type Data ?當(dāng) Code域?yàn)?1或者 2的時(shí)候, EAP的 request和 response報(bào)文,報(bào)文的格式為: –當(dāng) Code為 1的時(shí)候是 request報(bào)文 –當(dāng) Code為 2的時(shí)候是 response報(bào)文。 Code Identifier Length Data Motorola Document Classification, Beyond the Four Walls MOTOROLA and the Stylized M Logo are registered in the US Patent amp。超出 Length域范圍的字節(jié)應(yīng)該視為數(shù)據(jù)鏈路層填充( padding) ,在接收時(shí)應(yīng)該被忽略掉。 Trademark Office. All other product or service names are the property of their respective owners. 169。 Motorola, Inc. 2022 EAPOL協(xié)議的介紹 Code Identifier Length Data ? Code域?yàn)橐粋€(gè)字節(jié),表示了 EAP數(shù)據(jù)包的類型,EAP的 Code的值指定和意義如下: – Code= 1———— →Request – Code= 2 ———— →Response – Code= 3 ———— →Success – Code= 4 ———— →Failure ? Indentifier域?yàn)橐粋€(gè)字節(jié),輔助進(jìn)行 request和response的匹配 : 每一個(gè) request都應(yīng)該有一個(gè)response相對(duì)應(yīng),這樣的一個(gè) Indentifier域就建立了這樣的一個(gè)對(duì)應(yīng)關(guān)系 : 相同的 Indentifier相匹配。 ? EAP報(bào)文的格式為: 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。這個(gè)時(shí)候這個(gè)封裝著 EAP報(bào)文的information域就擔(dān)負(fù)起了下一步認(rèn)證的全部任務(wù),下一步的 EAP認(rèn)證都將通過它來進(jìn)行。 Trademark Office. All other pr