Field |
Bytes |
Description |
---|---|---|
Code | 1 | Indicates the type of an EAP data packet. The options are as
follows:
|
ID | 1 | Is used to match a Response packet with the corresponding Request packet. |
Length | 2 | Indicates the length of an EAP data packet, including the Code, ID, Length, and Data fields. Bytes outside the range of the Length field are treated as padding at the data link layer and ignored on reception. |
Data | Zero or multiple bytes | The format of the Data field is determined by the Code field.
|
Type Field Value |
Packet Type |
Description |
---|---|---|
1 | Identity | Requests or returns the user name information entered by a user. |
2 | Notification | Transmits notification information about some events, such as password expiry and account locking. It is an optional message. |
3 | NAK | Indicates negative acknowledgment and is used only in a Response packet. For example, if the access device uses an authentication method not supported by the client to initiate a request, the client can send a Response/NAK packet to notify the access device of the authentication methods supported by the client. |
4 | MD5-Challenge | Indicates that the authentication method is MD5-Challenge. |
5 | OTP | Indicates that the authentication method is One-Time Password (OTP). For example, during e-banking payment, the system sends a one-time password through an SMS message. |
6 | GTC | Indicates that the authentication method is Generic Token Card (GTC). A GTC is similar to an OTP except that a GTC usually corresponds to an actual device. For example, many banks in China provide a dynamic token for users who apply for e-banking. This token is a GTC. |
13 | EAP-TLS | Indicates that the authentication method is EAP-TLS. |
21 | EAP-TTLS | Indicates that the authentication method is EAP-TTLS. |
25 | EAP-PEAP | Indicates that the authentication method is EAP-PEAP. |
254 | Expanded Types | Indicates an expanded type, which can be customized by vendors. |
255 | Experimental use | Indicates a type for experimental use. |
Field |
Bytes |
Description |
---|---|---|
PAE Ethernet Type | 2 | Indicates the protocol type. The value is fixed at 0x888E. |
Protocol Version | 1 | Indicates the protocol version number supported by the EAPoL
packet sender.
|
Type | 1 | Indicates the type of an EAPoL data packet:
Note that the EAPoL-Start, EAPoL-Logoff, and EAPoL-Key packets are transmitted only between the client and access device. |
Length | 2 | Indicates the data length, that is, the length of the Packet Body field, in bytes. The value 0 indicates that the Packet Body field does not exist. For the EAPoL-Start and EAPoL-Logoff packets, the values of the Length field are both 0. |
Packet Body | 2 | Indicates the data content. |
To support EAP relay, the following attributes are added to the RADIUS protocol:
The following figure shows the format of an EAPoR packet.
Field |
Bytes |
Description |
---|---|---|
Code | 1 | Indicates the type of a RADIUS packet. |
Identifier | 1 | Is used to match a Response packet with the corresponding Request packet, and to detect the Request packet retransmitted within a certain period. After the client sends a Request packet, the authentication server sends a Response packet with the same Identifier value as the Request packet. |
Length | 2 | Indicates the length of a RADIUS packet. Bytes outside the range of the Length field are treated as padding and ignored on reception. If the length of a received packet is less than the Length value, the packet is discarded. |
Response Authenticator | 16 | Is used to verify the Response packet sent by the RADIUS server and encrypt the user password. |
Attributes | Variable length | Indicates the packet content body, which carries authentication, authorization, and accounting information and provides configuration details of the Request and Response packets. The Attributes field may contain multiple attributes, each of which consists of Type, Length, and Value.
|