PPPoE dial-up networking method and system based on VPP

By combining VPP and pppd in PPPoE dial-up Internet access technology, the performance bottlenecks and development complexity in the existing technology are solved, efficient message processing and simplified development process are achieved, and large traffic needs are met.

CN119583688APending Publication Date: 2025-03-07JIANGSU FUTURE NETWORKS INNOVATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411870848.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When implementing PPPoE dial-up Internet access, the prior art has performance bottlenecks and development complexity problems, making it difficult to find a balance between high performance and development complexity.

Method used

The PPPoE dial-up Internet access method based on VPP is adopted, combined with the advantages of the kernel and user state, PPPoE data packets are processed through VPP, and the pppd service is used for session authentication and protocol packet processing.

Benefits of technology

It significantly improves the packet processing performance, reduces development complexity, meets the needs of large traffic, and maintains all PPPoE functions provided by the kernel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583688A_ABST
    Figure CN119583688A_ABST
Patent Text Reader

Abstract

The invention relates to a PPPoE dial-up networking method and system based on VPP, and the method comprises the steps: receiving a message, carrying out the analysis and processing according to the type of the message, and guaranteeing that the message is correctly distributed to pppd service or VPP for processing; and if the received message is a message of which the PPPoE header needs to be packaged, completing packaging by acquiring session information, and forwarding the message to a VPP to select a preset outbound interface for processing. According to the method and the device, the VPP and the pppd are combined, so that the advantages of the VPP in the aspect of high-performance message processing are fully played, the processing flow of the PPPoE protocol message is simplified, and the development and maintenance complexity is reduced. According to the scheme, efficient PPPoE data message encapsulation and de-encapsulation can be achieved, the message processing performance is remarkably improved, and the large flow requirement is met. Meanwhile, the scheme maintains all PPPoE functions provided by the kernel, supports the characteristics of interface multi-dialing, account multi-dialing and the like, adapts to a more complex network environment, and has better expandability and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network communications, and in particular to a PPPoE dial-up Internet access method and system based on VPP. Background Art

[0002] PPPoE (Point-to-Point Protocol over Ethernet) dial-up Internet access technology is a way to access the Internet through Ethernet. It encapsulates the Point-to-Point Protocol (PPP) in Ethernet frames and supports functions such as identity authentication, encryption, and data compression. It is widely used in various broadband access methods such as ADSL and fiber-optic broadband, and has become one of the standards for Internet access. At present, there are two main solutions for implementing PPPoE dial-up Internet access: The first is a pure kernel-mode implementation based on the kernel protocol stack. This solution uses the kernel protocol stack (such as rp-pppoe) to process PPPoE data packets, pppd is responsible for processing PPPoE control packets, and the kernel network card driver is responsible for sending and receiving packets. Although this solution is simple to implement and uses the existing open source protocol stack, the development and maintenance costs are low, but due to the performance bottleneck of the kernel protocol stack, the message copy overhead between the kernel and the user space is large, resulting in poor performance in high-traffic scenarios and unable to meet large traffic requirements.

[0003] The second is a pure user-mode implementation based on a user-mode NIC driver. This solution processes PPPoE packets completely in user mode through a user-mode NIC driver (such as DPDK and VPP), and has better performance. However, the development and maintenance costs of this solution are high, and it is necessary to process PPPoE packets and protocol packets in user mode at the same time, which increases the complexity of the system. In addition, if functions such as FRR dynamic routing need to be implemented in the kernel, some functions in the kernel cannot be implemented due to the lack of PPPoE interfaces and related routing.

[0004] Therefore, the existing technology has a contradiction between performance and development cost, and it is difficult to find a balance between high performance and development complexity. The present invention proposes a PPPoE dial-up Internet access method based on VPP, which combines the advantages of kernel and user state, can reduce development complexity, improve message processing performance, and meet the needs of large-flow applications. Summary of the invention

[0005] The purpose of the present invention is to provide a PPPoE dial-up Internet access method and system based on VPP to solve the problem of poor performance and high difficulty of the prior art.

[0006] To achieve one of the above-mentioned purposes, an embodiment of the present invention provides a PPPoE dial-up Internet access method based on VPP, which is characterized by comprising: Receives messages and parses and processes them according to the message type to ensure that the messages are correctly distributed to the pppd service or VPP for processing; If the received message is a message that needs to be encapsulated with a PPPoE header, the encapsulation is completed by obtaining the session information, and the message is forwarded to the VPP to select a preset outbound interface for processing.

[0007] As a further improvement of an embodiment of the present invention, the method further includes initializing a physical interface and a tap interface, and performing PPPoE session authentication by starting a pppd service, including: Initialize the physical interface and create a corresponding tap interface for each physical interface; The pppd service is started for the tap interface based on the preset configuration, and PPPoE protocol messages are sent and received through the tap interface to complete the authentication, establishment and maintenance of the PPPoE session.

[0008] As a further improvement of an embodiment of the present invention, the method further includes: receiving the message and parsing and processing it according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing includes: Receive and parse messages from the physical interface, forward PPPoE protocol messages to pppd for processing, and forward PPPoE data messages to VPP for processing.

[0009] As a further improvement of an embodiment of the present invention, the method further includes processing the message from the physical interface based on the message type, specifically including: If the message type is a PPPoE protocol message, the receiving interface of the message is obtained, and the message is sent to the kernel through the tap interface corresponding to the receiving physical interface. pppd receives and processes the PPPoE protocol message from the kernel to complete the authentication, establishment and maintenance of the PPPoE session. If the message type is a PPPoE data message, the message information is obtained, and the global PPPoE session table is searched through the message information to determine whether the message contains PPPoE session information; When PPPoE session information exists, it is determined whether the message needs to be sent to the kernel protocol stack based on the destination IP of the message; when the message needs to be sent to the kernel protocol stack, the receiving interface of the message is obtained, and the message is sent to the kernel for decapsulation through the tap interface corresponding to the receiving interface, and then sent to the ppp interface after decapsulation, and finally received and processed by the kernel protocol stack; if the message does not need to be sent to the kernel protocol stack, the message is parsed and decapsulated according to the PPPoE session information, and the original message encapsulated in the PPPoE header is restored, and sent to the VPP protocol stack through the corresponding pppoe interface; if the message decapsulation fails, the message is discarded; When the PPPoE session information does not exist, the routing table is searched and the packets are forwarded or discarded according to the preset routing rules. If the message type is not a PPPoE message, the routing table is searched and the message is forwarded or discarded according to the preset routing rules.

[0010] As a further improvement of an implementation mode of the present invention, the method further includes determining whether a message in which PPPoE session information does not exist or a non-PPPoE message is a message that needs to be encapsulated with a PPPoE header; If the message needs to be encapsulated with a PPPoE header, the message is sent from the PPPoE interface through the VPP routing module, and the PPPoE session information corresponding to the PPPoE interface is queried; If the PPPoE session information exists, the PPPoE header is encapsulated on the message according to the acquired PPPoE session information, and the PPPoE data message is obtained and sent to the routing module of the VPP for processing. The routing module of the VPP selects a preset outbound interface for the PPPoE data message and sends it out; If the PPPoE session information does not exist, the current message processing process ends and the message is discarded; If the message does not need to be encapsulated with a PPPoE header, the current message processing flow is terminated and the message is discarded.

[0011] As a further improvement of an embodiment of the present invention, the method further includes, for a message from a tap interface, obtaining a physical interface corresponding to the tap interface, and sending the message from the corresponding physical interface.

[0012] As a further improvement of an embodiment of the present invention, the method further includes starting a detection thread to maintain session and interface information synchronization, including: Detect the PPPoE session information of the pppd service in real time, and if the PPPoE session information changes, update the PPPoE session information in the VPP to ensure that the PPPoE session information in the VPP is the same as the session information in the pppd; If the PPPoE session information changes, the ppp interface of the pppd service is detected. If the ppp interface changes, the pppoe interface in the VPP is updated, and the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time. If the ppp interface has not changed, the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time.

[0013] To achieve one of the above-mentioned purposes, an embodiment of the present invention provides a PPPoE dial-up Internet access system based on VPP, characterized in that: it includes a parsing module and a forwarding module; The parsing module is used to receive the message and parse and process it according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing; The forwarding module is used to complete the encapsulation by acquiring session information when the received message is a message that needs to be encapsulated with a PPPoE header, and forward it to the VPP to select a preset outbound interface for processing.

[0014] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, characterized in that the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the PPPoE dial-up Internet access method based on VPP as described above are implemented.

[0015] To achieve one of the above-mentioned objects of the invention, an embodiment of the present invention further provides a storage medium, wherein the storage medium stores a computer program, and wherein when the computer program is executed by a processor, the steps in the PPPoE dial-up Internet access method based on VPP as described above are implemented.

[0016] Compared with the prior art, the present invention provides a VPP-based PPPoE dial-up Internet access method and system, which combines VPP and pppd, fully utilizes the advantages of VPP in high-performance message processing, simplifies the processing flow of PPPoE protocol messages, and reduces the complexity of development and maintenance. The solution can realize efficient PPPoE data message encapsulation and decapsulation, significantly improves the message processing performance, and meets the needs of large traffic. At the same time, the solution maintains all PPPoE functions provided by the kernel, supports features such as multi-dialing of interfaces and multi-dialing of accounts, adapts to more complex network environments, and has good scalability and flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is an overall flow chart of the VPP-based PPPoE dial-up Internet access method of the present invention.

[0018] Figure 2 The present invention discloses a flow chart of a physical interface receiving a message in the PPPoE dial-up Internet access method based on VPP.

[0019] Figure 3 The present invention discloses a flow chart of a message sending process of a PPPoE interface in a PPPoE dial-up Internet access method based on VPP.

[0020] Figure 4 It is a flow chart of the detection thread execution of the VPP-based PPPoE dial-up Internet access method of the present invention.

[0021] Figure 5It is a schematic diagram of the architecture of the VPP-based PPPoE dial-up Internet access system of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0023] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0024] In the first embodiment of the present invention, the present invention provides a PPPoE dial-up Internet access method based on VPP, such as Figure 1 As shown, the method includes, S1: Receives messages and parses and processes them according to the message type to ensure that the messages are correctly distributed to the pppd service or VPP for processing; S2: If the received message is a message that needs to be encapsulated with a PPPoE header, the encapsulation is completed by obtaining session information, and the message is forwarded to the VPP to select a preset outbound interface for processing.

[0025] In a specific implementation of the present invention, the physical interface and the tap interface are initialized, and the PPPoE session authentication is performed by starting the pppd service, specifically, Initialize the physical interface and create a corresponding tap interface for each physical interface; The pppd service is started for the tap interface based on the preset configuration, and PPPoE protocol messages are sent and received through the tap interface to complete the authentication, establishment and maintenance of the PPPoE session.

[0026] It should be noted that the initialization process provided by the present invention specifically includes: Initialize the physical interface and create a corresponding tap interface for the physical interface; there is a one-to-one correspondence between the tap interface and the physical interface. The tap interface is mainly used to send the messages that need to be processed by the kernel (PPPoE protocol messages and data messages that need to be processed by the kernel) to the kernel for processing, and to send the messages that the kernel needs to send (PPPoE protocol messages and data messages sent by the kernel) through the corresponding physical interface; According to the preset configuration, the pppd service is started for the specified tap interface. The pppd service sends and receives PPPoE protocol packets through the tap interface and completes the authentication, establishment, and maintenance of the PPPoE session.

[0027] In a specific embodiment of the present invention, a message is received and parsed and processed according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing, specifically, Receive and parse messages from the physical interface, forward PPPoE protocol messages to pppd for processing, and forward PPPoE data messages to VPP for processing.

[0028] Furthermore, the packets from the physical interface are processed based on the packet type, specifically, If the message type is a PPPoE protocol message, the receiving interface of the message is obtained, and the message is sent to the kernel through the tap interface corresponding to the receiving physical interface. pppd receives and processes the PPPoE protocol message from the kernel to complete the authentication, establishment and maintenance of the PPPoE session. If the message type is a PPPoE data message, the message information is obtained, and the global PPPoE session table is searched through the message information to determine whether the message contains PPPoE session information; When PPPoE session information exists, it is determined whether the message needs to be sent to the kernel protocol stack based on the destination IP of the message; when the message needs to be sent to the kernel protocol stack, the receiving interface of the message is obtained, and the message is sent to the kernel for decapsulation through the tap interface corresponding to the receiving interface, and then sent to the ppp interface after decapsulation, and finally received and processed by the kernel protocol stack; if the message does not need to be sent to the kernel protocol stack, the message is parsed and decapsulated according to the PPPoE session information, and the original message encapsulated in the PPPoE header is restored, and sent to the VPP protocol stack through the corresponding pppoe interface; if the message decapsulation fails, the message is discarded; When the PPPoE session information does not exist, the routing table is searched and the packets are forwarded or discarded according to the preset routing rules. If the message type is not a PPPoE message, the routing table is searched and the message is forwarded or discarded according to the preset routing rules.

[0029] It should be noted that by identifying the message type, the system can use a dedicated processing path for different types of messages, avoiding unnecessary general processing logic and improving message processing efficiency. PPPoE protocol messages are sent to pppd for session management, while PPPoE data messages are efficiently encapsulated and decapsulated through VPP to ensure that different tasks are processed by the most suitable module. For messages that do not require kernel protocol stack processing, the system processes data streams through VPP, making full use of its efficient user-mode message processing capabilities; for messages that require kernel processing, they are sent to the kernel protocol stack for decapsulation to ensure the integrity of kernel functions and routing capabilities. During the decapsulation process, if the message parsing fails, it will be discarded to prevent invalid or malicious data from affecting system stability. At the same time, for messages that cannot match session information, routing rules are used to process them to ensure the security and high availability of the system.

[0030] Furthermore, for messages without PPPoE session information and non-PPPoE messages (such as IP data messages, ARP messages, etc.), the system forwards or discards them according to the preset routing rules by searching the routing table. If the message can match a valid routing rule, the system will process it according to the rule and forward it to the correct target interface; if it fails to match the routing rule, the message will be discarded to prevent invalid data from affecting network communication.

[0031] Furthermore, it is determined whether the message in which the PPPoE session information does not exist or the non-PPPoE message is a message that needs to be encapsulated with a PPPoE header; If the message needs to be encapsulated with a PPPoE header, the message is sent from the PPPoE interface through the VPP routing module, and the PPPoE session information corresponding to the PPPoE interface is queried; If the PPPoE session information exists, the PPPoE header is encapsulated on the message according to the acquired PPPoE session information, and the PPPoE data message is obtained and sent to the routing module of the VPP for processing. The routing module of the VPP selects a preset outbound interface for the PPPoE data message and sends it out; If the PPPoE session information does not exist, the current message processing process ends and the message is discarded; If the message does not need to be encapsulated with a PPPoE header, the current message processing flow is terminated and the message is discarded.

[0032] It should be noted that the technical solution can accurately distinguish different types of messages, and appropriately encapsulate or discard them according to the actual needs of the messages. By judging whether it is a message that needs to be encapsulated with a PPPoE header, unnecessary processing steps can be reduced, and irrelevant messages can be avoided from occupying system resources, thereby improving system efficiency. For messages that need to be encapsulated with a PPPoE header, efficient encapsulation and forwarding are performed through the routing module of VPP, ensuring rapid processing and accurate transmission of data. For messages that do not need to be encapsulated, they are directly discarded, avoiding the impact of invalid messages on network bandwidth and system load, and optimizing the overall data transmission performance. By judging and discarding messages that do not meet the conditions, erroneous messages are avoided from entering the subsequent processing process, thereby reducing the complexity of the system, while improving the stability and security of the system, and preventing possible network attacks or abnormal data from interfering with the system.

[0033] Furthermore, for the message from the tap interface, the physical interface corresponding to the tap interface is obtained, and the message is sent from the corresponding physical interface.

[0034] It should be noted that by querying the physical interface corresponding to the tap interface during the initialization process, the message received from the tap interface is sent out from the corresponding physical interface.

[0035] In a specific embodiment of the present invention, starting a detection thread to maintain session and interface information synchronization includes: Detect the PPPoE session information of the pppd service in real time, and if the PPPoE session information changes, update the PPPoE session information in the VPP to ensure that the PPPoE session information in the VPP is the same as the session information in the pppd; If the PPPoE session information changes, the ppp interface of the pppd service is detected. If the ppp interface changes, the pppoe interface in the VPP is updated, and the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time. If the ppp interface has not changed, the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time.

[0036] It should be noted that the detection thread is mainly used to periodically detect PPPoE session information and ppp interface, and to promptly update the PPPoE session information and pppoe interface in VPP when the PPPoE session information and ppp interface change. First, detect whether the session information of the pppd service has changed. If it has changed, the PPPoE session information in VPP needs to be updated to ensure that the PPPoE session information in VPP is always the same as the session information in pppd; then detect the ppp interface of the pppd service, and promptly update the pppoe interface in VPP when the ppp interface changes. The pppoe interface is mainly used for the encapsulation of PPPoE packets; finally, the thread sleeps (wait) for a few seconds and then re-executes the detection process.

[0037] In the second embodiment of the present invention, the present invention provides a PPPoE dial-up Internet access system based on VPP, such as Figure 4 As shown, the system includes a parsing module 1 and a forwarding module 2; The parsing module 1 is used to receive the message and parse and process it according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing; The forwarding module 2 is used for completing the encapsulation by acquiring session information when the received message is a message that needs to be encapsulated with a PPPoE header, and forwarding it to the VPP to select a preset outbound interface for processing.

[0038] In a third embodiment of the present invention, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the VPP-based PPPoE dial-up Internet access method as described above are implemented.

[0039] In a fourth embodiment of the present invention, the present invention provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the VPP-based PPPoE dial-up Internet access method as described above.

[0040] In summary, the VPP-based PPPoE dial-up Internet access method and system provided by the present invention, by combining VPP and pppd, not only gives full play to the advantages of VPP in high-performance message processing, but also simplifies the processing flow of PPPoE protocol messages, and reduces the complexity of development and maintenance. The solution can realize efficient PPPoE data message encapsulation and decapsulation, significantly improves the message processing performance, and meets the large traffic demand. At the same time, the solution maintains all PPPoE functions provided by the kernel, supports features such as multi-dialing of interfaces and multi-dialing of accounts, adapts to more complex network environments, and has good scalability and flexibility.

[0041] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0042] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the modules described above can refer to the corresponding process in the aforementioned method implementation, and will not be repeated here.

[0043] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0044] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0045] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for a computer system (which can be a personal computer, a server, or a network system, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0046] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned implementation modes, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned implementation modes, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various implementation modes of the present application.

Claims

1. A PPPoE dial-up Internet access method based on VPP, characterized in that: include, Receives messages and parses and processes them according to the message type to ensure that the messages are correctly distributed to the pppd service or VPP for processing; If the received message is a message that needs to be encapsulated with a PPPoE header, the encapsulation is completed by obtaining the session information, and the message is forwarded to the VPP to select a preset outbound interface for processing.

2. The PPPoE dial-up Internet access method based on VPP according to claim 1, characterized in that: Also includes, Initialize the physical interface and tap interface, and start the pppd service to perform PPPoE session authentication, including: Initialize the physical interface and create a corresponding tap interface for each physical interface; The pppd service is started for the tap interface based on the preset configuration, and PPPoE protocol messages are sent and received through the tap interface to complete the authentication, establishment and maintenance of the PPPoE session.

3. The PPPoE dial-up Internet access method based on VPP according to claim 1, characterized in that: The receiving of the message and parsing and processing according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing includes: Receive and parse messages from the physical interface, forward PPPoE protocol messages to pppd for processing, and forward PPPoE data messages to VPP for processing.

4. The PPPoE dial-up Internet access method based on VPP according to claim 3, characterized in that: The packets from the physical interface are processed based on the packet type, including: If the message type is a PPPoE protocol message, the receiving interface of the message is obtained, and the message is sent to the kernel through the tap interface corresponding to the receiving physical interface. pppd receives and processes the PPPoE protocol message from the kernel to complete the authentication, establishment and maintenance of the PPPoE session. If the message type is a PPPoE data message, the message information is obtained, and the global PPPoE session table is searched through the message information to determine whether the message contains PPPoE session information; When PPPoE session information exists, it is determined whether the message needs to be sent to the kernel protocol stack based on the destination IP of the message; when the message needs to be sent to the kernel protocol stack, the receiving interface of the message is obtained, and the message is sent to the kernel through the tap interface corresponding to the receiving interface for decapsulation, and then sent to the ppp interface after decapsulation, and finally received and processed by the kernel protocol stack; If the message does not need to be sent to the kernel protocol stack, the message is parsed and decapsulated according to the PPPoE session information, the original message encapsulated in the PPPoE header is restored, and sent to the VPP protocol stack through the corresponding PPPoE interface; If the message decapsulation fails, the message is discarded; When the PPPoE session information does not exist, the routing table is searched and the packets are forwarded or discarded according to the preset routing rules. If the message type is not a PPPoE message, the routing table is searched and the message is forwarded or discarded according to the preset routing rules.

5. The PPPoE dial-up Internet access method based on VPP according to claim 4, characterized in that: Determine whether a message in which PPPoE session information does not exist or a non-PPPoE message is a message that needs to be encapsulated with a PPPoE header; If the message needs to be encapsulated with a PPPoE header, the message is sent from the PPPoE interface through the VPP routing module, and the PPPoE session information corresponding to the PPPoE interface is queried; If the PPPoE session information exists, the PPPoE header is encapsulated on the message according to the acquired PPPoE session information, and the PPPoE data message is obtained and sent to the routing module of the VPP for processing. The routing module of the VPP selects a preset outbound interface for the PPPoE data message and sends it out; If the PPPoE session information does not exist, the current message processing process ends and the message is discarded; If the message does not need to be encapsulated with a PPPoE header, the current message processing flow is terminated and the message is discarded.

6. The PPPoE dial-up Internet access method based on VPP according to claim 3, characterized in that: For a message from a tap interface, a physical interface corresponding to the tap interface is obtained, and the message is sent from the corresponding physical interface.

7. The PPPoE dial-up Internet access method based on VPP according to claim 1, characterized in that: Also includes, By starting a detection thread to maintain session and interface information synchronization including, Detect the PPPoE session information of the pppd service in real time, and if the PPPoE session information changes, update the PPPoE session information in the VPP to ensure that the PPPoE session information in the VPP is the same as the session information in the pppd; If the PPPoE session information changes, the ppp interface of the pppd service is detected. If the ppp interface changes, the pppoe interface in the VPP is updated, and the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time. If the ppp interface has not changed, the PPPoE session information of the pppd service is continuously detected after the waiting thread sleeps for a preset time.

8. A PPPoE dial-up Internet access system based on VPP, characterized by: Includes parsing module and forwarding module; The parsing module is used to receive the message and parse and process it according to the message type to ensure that the message is correctly distributed to the pppd service or VPP for processing; The forwarding module is used to complete the encapsulation by acquiring session information when the received message is a message that needs to be encapsulated with a PPPoE header, and forward it to the VPP to select a preset outbound interface for processing.

9. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the VPP-based PPPoE dial-up Internet access method as described in any one of claims 1-7 are implemented.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps in the VPP-based PPPoE dial-up Internet access method as described in any one of claims 1 to 7 are implemented.