主机广播发起分组,分组的目的地址为以太网的广播地址 0xffffffffffff ,CODE(代码)字段值为0x09( PADI Code), SESSION-ID(会话ID )字段值为0x0000。PADI 分组必须至少包含一个服务名称类型的标签( Service Name Tag ,字段值为0x0101),向接入集中器提出所要求提供的服务。
PADO
接入集中器收到在服务范围内的PADI 分组,发送PPPoE有效发现提供包分组, 以响应请求。其中CODE字段值为0x07( PADO Code), SESSION-ID 字段值仍为0x0000。PADO分组必须包含一个接入集中器名称类型的标签(Access Concentrator Name Tag,字段值为0x0102 ),以及一个或多个服务名称类型标签( Service Name Tag ,字段值为0x0101),表明可向主机提供的服务种类。PADO和PADI 的 Host-Uniq Tag 值相同。
PADR
主机在可能收到的多个PADO分组中选择一个合适的PADO分组,然后向所选择的接入集中器发送PPPoE有效发现请求分组。其中CODE字段为0x19 (PADR Code), SESSION_ID字段值仍为0x0000。PADR分组必须包含一个服务名称类型标签( Service Name Tag ,字段值为0x0101),确定向接入集线器(或交换机)请求的服务种类。当主机在指定的时间内没有接收到PADO,它应该重新发送它的PADI分组,并且加倍等待时间,这个过程会被重复期望的次数。
PADS
接入集中器收到PADR分组后准备开始PPP会话, 它发送一个PPPoE有效发现会话确认PADS分组。其中CODE字段值为0x65( PADS Code),SESSION-ID 字段值为接入集中器所产生的一个惟一的PPPoE会话标识号码。PADS分组也必须包含一个服务名称类型标签( Service Name Tag ,字段值为0x0101)以确认向主机提供的服务。当主机收到PADS 分组确认后,双方就进入PPP会话阶段。PADS和PADR的Host-Uniq Tag 值相同。
会话阶段
Session
LCP协商阶段
LCP的Request 主机和AC 都要给对方发送;协商内容:
1、最大传输单元( MTU);
2、是否进行认证;
3、采用何种认证方式( Authentication Type );
认证阶段
PAP认证
PAP为两次握手协议,通过用户名及口令来对用户进行验证。
在网络上以明文的方式传递用户名及口令。
CHAP认证
CHAP为三次握手协议。只在网络上传输用户名,并不传输用户口令
NCP协商阶段
NCP的主要功能是协商PPP报文的网络层参数, 如IP 地址, DNS Server IP地址,WINS Server IP 地址等。
NCP有很多种,如IPCP、BCP、IPv6CP,最为常用的是IPCP( Internet Protocol Control Protocol )协议。