![SNR S2940-8G-v2 Configuration Manual Download Page 357](http://html1.mh-extra.com/html/snr/s2940-8g-v2/s2940-8g-v2_configuration-manual_1310630357.webp)
SNR S2940-8G-v2 Switch Configuration Guide
PPPoE Intermediate Agent Configuration
PPPoE Packet Format
PPPoE packet format is as follows:
Destination MAC
Source MAC
Type Field PPPoE Data CRC Check Sum
Ethernet II frame
Version
Type
Code
Session ID
Length Field
PPPoE Data
TLV 1
TLV N
...
Type
Length
Data
TLV frame
Figure 54.2: PPPoE packet format
Each field meanings in the following:
Type field (2 bytes) of Ethernet II frame:
The protocol sets type field value of PPPoE protocol
packet as 0x8863 (include 5 kinds of packets in PPPoE discovery stage only), type field value of
session stage as 0x8864.
PPPoE version field (4 bits):
Specify the current PPPoE protocol version, the current version
must be set as 0x1.
PPPoE type field (4 bits):
Specify the protocol type, the current version must be set as 0x1.
PPPoE code field (1 byte):
Specify the packet type. 0x09 means PADI packet, 0x07 means
PADO packet, 0x19 means PADR packet, 0x65 means PADS packet, 0xa7 means PADT packet.
PPPoE session ID field (2 bytes):
Specify the session ID.
PPPoE length field (2 bytes):
Specify the sum of all TLV length.
TLV type field (2 bytes):
A TLV frame means a TAG, type field means TAG type, the table is
as follows.
TLV length field (2 bytes):
Specify the length of TAG data field.
TLV data field (the length is not specified):
Specify the transmitted data of TAG.
Tag Type
Tag Explanation
0x0000
The end of a series tag in PPPoE data field, it is saved for ensuring the version
compatibility and is applied by some packets.
0x0101
Service name. Indicate the supplied services by network.
0x0102
Server name. When user receives the PADO response packet of AC, it can obtain
the server name from the tag and select the corresponding server.
0x0103
Exclusive tag of the host. It is similar to tag field of PPPoE data packets and is
used to match the sending and reveiving end (Because broadcast network may
exist many PPPoE data packets synchronously).
0x0104
AC-Cookies. It is used to avoid the vicious DOS attack.
0x0105
The identifier of vendor.
0x0110
Relay session ID. PPPoE data packet can be interrupted to other AC, this field is
used to keep other connection.
0x0201
The error of service name. When the requested service name is not accepted by
other end, the response packet will take this tag.
0x0202
The error of server name.
0x0203
Common error.
357
Summary of Contents for S2940-8G-v2
Page 11: ...SNR S2940 8G v2 Switch Configuration Guide Part I Basic Management Configuration 11...
Page 46: ...SNR S2940 8G v2 Switch Configuration Guide Part II Port Configuration 46...
Page 123: ...SNR S2940 8G v2 Switch Configuration Guide Part III VLAN and MAC Table Configuration 123...
Page 164: ...SNR S2940 8G v2 Switch Configuration Guide Part IV MSTP Configuration 164...
Page 198: ...SNR S2940 8G v2 Switch Configuration Guide Part VI L3 Forward and ARP Configuration 198...
Page 218: ...SNR S2940 8G v2 Switch Configuration Guide Part VII DHCP Configuration 218...
Page 257: ...SNR S2940 8G v2 Switch Configuration Guide Part VIII Multicast Protocol 257...
Page 278: ...SNR S2940 8G v2 Switch Configuration Guide Part IX Security Function Configuration 278...
Page 376: ...SNR S2940 8G v2 Switch Configuration Guide Part X Reliability Configuration 376...
Page 395: ...SNR S2940 8G v2 Switch Configuration Guide Part XI Flow Monitor Configuration 395...
Page 403: ...SNR S2940 8G v2 Switch Configuration Guide Part XII Network Time Management Configuration 403...
Page 411: ...SNR S2940 8G v2 Switch Configuration Guide Part XIII Debugging and Diagnosis 411...