Implement and optimization of kernel mode PPPoE based on Linux

PPPoE also called Tunnel Network protocol.Under Linux,the main implementation mode of PPPoE is based on user-space.This paper gave PPPoE implementation under Linux kernel mode,that is to say,the encasulatation and decapsulation of ppp layer was implemented in the kernel package.and this method can decrease the cost of the context between the user space and kernel space.And this schematic design abandoned the method of transmitting information by the virtual interface called ppp.It will transmit all information by the physical interface instead of ppp,to reduce developers' tasks.All the implementation have passed the test on the Linux 2.6.18.