Dialing authentication method and device, equipment and storage medium
By inserting the user identification number into the PPPoE dial-up signaling and performing concurrent authentication on the second service terminal, the problem of traditional PPPoE technology being unable to support dial-up for a large number of users is solved, and efficient multi-user concurrent dial-up authentication is achieved.
Patent Information
- Application Number
- CN202311479975.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2024-10-18
AI Technical Summary
Traditional PPPoE technology can only meet the dial-up authentication scenario of a single user, and cannot support PPPoE dial-up authentication for a large number of users.
By inserting the user's identification number into the standard Ethernet point-to-point protocol PPPoE dial-up signaling, a unique target PPPoE dial-up signaling is generated, and concurrent authentication is performed based on the identification number at the second service terminal, supporting concurrent dialing by multiple users.
It realizes PPPoE dial-up authentication support for a large number of users, improves dial-up efficiency and performance, and overcomes the single user limitation of traditional PPPoE technology.
Smart Images

Figure CN118803758A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a dial-up authentication method, device, equipment and storage medium. Background Art
[0002] Point-to-Point Protocol Over Ethernet (PPPoE) is a mature broadband access technology, commonly used for authentication and bandwidth management of home routers or home gateways dialing into operator broadband. Traditional PPPoE technology focuses on user access for a single user at home, where the PPPoE client is deployed at the user's home end and the PPPoE server is deployed at the operator's broadband entrance. With the rapid development of the Internet, the number of scenarios where users use PPPoE dial-up authentication has increased dramatically, but existing solutions are all based on traditional PPPoE technology, which can only meet the needs of a single device and user, and cannot support scenarios where a large number of users perform PPPoE dial-up authentication. Summary of the invention
[0003] The embodiments of the present application provide a dial-up authentication method, apparatus, device and storage medium, which can support the scenario of a large number of users performing PPPoE dial-up authentication.
[0004] In a first aspect, an embodiment of the present application provides a dial-up authentication method, which is applied to a first service terminal, and the method includes:
[0005] In response to a dialing request of at least one user, generating an identification number of each user, each identification number being used to uniquely identify each user;
[0006] Inserting the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers;
[0007] At least one of the target PPPoE dial-up signaling is sent to a second service terminal, wherein the second service terminal is used to authenticate each of the target PPPoE dial-up signaling according to each of the identification numbers.
[0008] In a second aspect, an embodiment of the present application provides a dial-up authentication method, which is applied to a second service terminal, and the method includes:
[0009] Receive at least one target Ethernet Point-to-Point Protocol (PPPoE) dial-up signaling sent by a first service terminal, wherein the first service terminal is used to generate an identification number of each user in response to a dial-up request of at least one user, and each identification number is used to uniquely represent each user; insert the identification number of each user into a preset standard PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, and different target PPPoE dial-up signalings have different identification numbers; send at least one target PPPoE dial-up signaling to a second service terminal;
[0010] According to each of the identification numbers, each of the target PPPoE dial-up signalings is simultaneously issued for authentication.
[0011] In a third aspect, an embodiment of the present application provides a dial-up authentication device, which is applied to a first service terminal, and the device includes:
[0012] A generating module, configured to generate an identification number of each user in response to a dialing request of at least one user, wherein each identification number is used to uniquely represent each user;
[0013] An inserting module is used to insert the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers;
[0014] The sending module is used to send at least one of the target PPPoE dial-up signaling to the second service terminal, wherein the second service terminal is used to authenticate each of the target PPPoE dial-up signaling according to each of the identification numbers.
[0015] In a fourth aspect, an embodiment of the present application provides a dial-up authentication device, which is applied to a second service terminal, and the device includes:
[0016] A receiving module, configured to receive at least one target Ethernet Point-to-Point Protocol (PPPoE) dial-up signaling sent by a first service terminal, wherein the first service terminal is configured to generate an identification number of each user in response to a dial-up request of at least one user, wherein each identification number is used to uniquely represent each user; insert the identification number of each user into a preset standard PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers; and send at least one target PPPoE dial-up signaling to a second service terminal;
[0017] The authentication module is used to authenticate each of the target PPPoE dial-up signalings according to each of the identification numbers.
[0018] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the dial-up authentication method as described in any one of the above is implemented.
[0019] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the dial-up authentication method as described in any one of the above is implemented.
[0020] The dial-up authentication method, device, equipment and storage medium of the embodiment of the present application, the first service terminal can respond to the dial-up request of at least one user, generate the identification number of each user, and insert the identification number of each user in the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user; the second service terminal can receive at least one target PPPoE dial-up signaling sent by the first service terminal, and authenticate each target PPPoE dial-up signaling according to each identification number. In this way, in the embodiment of the present application, the first service terminal can access at least one user, and by inserting the identification number of each user in the standard PPPoE dial-up signaling, the second service terminal authenticates each target PPPoE dial-up signaling, which can overcome the scenario in which the traditional PPPoE technology can only meet the needs of a single user, thereby supporting the scenario in which a large number of users perform PPPoE dial-up authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 It is a framework diagram of the dial-up authentication system provided in the embodiment of the present application;
[0023] Figure 2 It is a flowchart of the dial-up authentication method provided in the embodiment of the present application;
[0024] Figure 3 It is a networking diagram of a PPPoE dial-up signaling host and a PPPoE data forwarding host provided in an embodiment of the present application;
[0025] Figure 4 This is a PPPoE dial-up signaling host, a data forwarding host and a BRAS broadband access server tunnel networking diagram provided in an embodiment of the present application;
[0026] Figure 5 It is a schematic diagram of multi-user marking of a PPPoE dial-up signaling host provided in an embodiment of the present application;
[0027] Figure 6 This is a schematic diagram of implementing concurrent dialing between a PPPoE client and a server by distinguishing different users through QINQ tags provided by an embodiment of the present application;
[0028] Figure 7 This is a schematic diagram of deploying a PPPoE dial-up signaling host and data forwarding on the same host provided by an embodiment of the present application;
[0029] Figure 8 It is a schematic diagram of a system unit of a high-performance multi-user PPPoE signaling processing example provided in an embodiment of the present application;
[0030] Fig. 9 It is a structural diagram of a dial-up authentication device provided in an embodiment of the present application;
[0031] Fig.10 is a structural diagram of another dial-up authentication device provided in an embodiment of the present application;
[0032] Fig.11 It is a structural schematic diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0033] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0034] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0035] PPPoE: Point-to-Point Protocol Over Ethernet (PPPoE) is a network tunneling protocol that encapsulates the Point-to-Point Protocol (PPP) in the Ethernet framework. Since the PPP protocol is integrated into the protocol, it implements functions such as identity authentication, encryption, and compression that traditional Ethernet cannot provide. It can also be used in cable modems and digital subscriber lines (DSL) and other protocols that provide access services to users using the Ethernet protocol.
[0036] DPDK: Data Plane Development Kit (DPDK) is developed by 6WIND, Intel and other companies. It mainly runs on the Linux system. It is a collection of function libraries and drivers for fast data packet processing, which can greatly improve data processing performance and throughput, and improve the work efficiency of data plane applications.
[0037] Linux kernel: Linux is an open source computer operating system kernel. It is a Unix-like operating system written in C language and conforms to the POSIX standard.
[0038] VXLAN: Virtual eXtensible LAN (VXLAN) is a network virtualization technology that can improve the scalability of large-scale cloud computing deployments and is an extension of VLAN. VXLAN is a powerful tool that can penetrate the third-layer network to extend the second layer. It can solve the portability limitations of VMS (virtual memory system) by encapsulating traffic and extending it to the third-layer gateway, making it possible to access servers on external IP subnets.
[0039] VLAN: Virtual Local Area Network (VLAN) is a logical segmentation of network users connected to the second layer switch port. It is not limited by the physical location of the network users but is segmented according to user needs. A VLAN can be implemented on a switch or across switches. VLANs can be grouped according to the location, role, department of network users or according to the applications and protocols used by network users. Switch-based virtual LANs can solve conflict domains, broadcast domains, and bandwidth issues for LANs.
[0040] QINQ: 802.1Q-in-802.1Q technology is a technology to expand VLAN space. It achieves the function of expanding VLAN space by adding another layer of 802.1Q Tag on the basis of 802.1Q tagged messages, so that private network VLAN can be transparently transmitted to the public network. Since the messages transmitted in the backbone network have two layers of 802.1Q Tag (one layer of public network Tag and one layer of private network Tag), that is, 802.1Q-in-802.1Q, it is called QinQ protocol.
[0041] Docker: Docker is an open source application container engine that allows developers to package their applications and dependent packages into a portable container, and then publish them to any popular Linux or Windows operating system machine. It can also achieve virtualization. The container is completely sandboxed and there is no interface between them.
[0042] Memif: The shared memory packet interface (memif) provides a high-performance message receiving and sending interface for user applications and VPP or multiple user applications. Using libmemif, user applications can create a shared memory interface in master mode or slave mode and use libmemif to connect to VPP or other applications. Once the connection is established, the user application can use the libmemif API to receive or transmit packets.
[0043] VPP: The Vector Packet Processing (VPP) platform is an extensible framework that provides out-of-the-box production-quality switch / router functionality. It is an open source version of Cisco's Vector Packet Processing (VPP) technology: a high-performance packet processing protocol stack that can run on commodity CPUs.
[0044] PPPoE is a mature broadband access technology, commonly used for authentication and bandwidth management of home routers or home gateways dialing into operator broadband. Traditional PPPoE technology focuses on user access for a single user at home, where the PPPoE client is deployed at the user's home end and the PPPoE server is deployed at the operator's broadband entrance. With the rapid development of the Internet, the number of scenarios where users use PPPoE dial-up authentication has increased dramatically, but existing solutions are all based on traditional PPPoE technology, which can only meet the needs of a single device and user, and cannot support scenarios where a large number of users perform PPPoE dial-up authentication.
[0045] In order to solve the problems in the prior art, the embodiments of the present application provide a dial-up authentication method, apparatus, device and storage medium. The following first introduces a dial-up authentication system to which the dial-up authentication method provided in the embodiments of the present application is applicable.
[0046] Figure 1 FIG. 1 shows an architecture diagram of a dial-up authentication system applicable to an embodiment of the present application. Figure 1 As shown, the dial-up authentication system 100 may include: a first service terminal 101 and a second service terminal 102 .
[0047] The first service terminal 101 may be a physical server, a virtual server, a cloud server, a cluster server, etc. Exemplarily, when the first service terminal 101 is a cloud server or a cluster server, it may include a PPPoE dial-up signaling server and a PPPoE data forwarding server; when the first service terminal 101 is a physical server or a virtual server, it may include a signaling control plane and a data forwarding plane, and the signaling control plane and the data forwarding plane are deployed in the user state of the first service terminal.
[0048] In some embodiments, the first service terminal uses a data plane development toolkit DPDK as a driving base for the data packet.
[0049] The existing solutions are not compatible with DPDK high-performance forwarding scenarios because the underlying data transceiver interfaces involved are based on traditional operating system protocol stacks and cannot be reused in DPDK scenarios. The first service terminal uses the data plane development toolkit DPDK as the driving base for data packets, that is, the first service terminal supports DPDK, so the products designed based on this application can be easily deployed in various scenarios, such as physical servers, virtual servers in Docker, cloud servers, cluster servers, etc., so that this application can support most application scenarios.
[0050] The second service terminal 102 may be a Broadband Remote Access Server (BRAS) of an operator.
[0051] The first service terminal 101 is connected to the second service terminal 102 in communication. Specifically, the communication may be performed through VXLAN. For example, the PPPoE dial-up signaling server, the PPPoE data forwarding server, and the BRAS broadband remote access server may completely process the PPPoE dial-up protocol signaling packet through the VxLAN tunnel between the three. Of course, the communication method is not limited to the VxLAN tunnel, but may also be other communication methods, which are not specifically limited here.
[0052] The following is an introduction to the dial-up authentication method provided in the embodiment of the present application.
[0053] Figure 2 The flowchart of the dial-up authentication method provided by an embodiment of the present application is shown. Optionally, the method of the embodiment of the present application can be applied to the above Figure 1 The first service terminal 101 and the second service terminal 102 are shown.
[0054] like Figure 2 As shown, the dial-up authentication method may include the following steps S201 to S205:
[0055] S201. A first service terminal generates an identification number for each user in response to a dialing request of at least one user, where each identification number is used to uniquely identify each user.
[0056] S202: The first service terminal inserts the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, where different target PPPoE dial-up signalings have different identification numbers.
[0057] S203: The first service terminal sends at least one target PPPoE dial-up signaling to the second service terminal.
[0058] S204: The second service terminal receives at least one target PPPoE dial-up signaling sent by the first service terminal.
[0059] S205: The second service terminal sends authentication signaling for each target PPPoE dial-up according to each identification number.
[0060] In the dial-up authentication method of the embodiment of the present application, the first service terminal can respond to the dial-up request of at least one user, generate the identification number of each user, and insert the identification number of each user in the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user; the second service terminal can receive at least one target PPPoE dial-up signaling sent by the first service terminal, and authenticate each target PPPoE dial-up signaling according to each identification number. In this way, in the embodiment of the present application, the first service terminal can access at least one user, and by inserting the identification number of each user in the standard PPPoE dial-up signaling, the second service terminal authenticates each target PPPoE dial-up signaling, which can overcome the scenario in which the traditional PPPoE technology can only meet the needs of a single user, thereby supporting the scenario in which a large number of users perform PPPoE dial-up authentication.
[0061] In S201, the first service terminal can access at least one user. Therefore, the first service terminal can generate an identification number for each user in response to a dial-up request from at least one user. For example, the first service terminal can generate an identification number for each user at will in response to a dial-up request from at least one user. Alternatively, the user information of each user in the first service terminal can be processed according to a hash algorithm to generate an identification number for each user. Of course, the algorithm for generating the user's identification number in the present application is not limited to the hash algorithm, but can also be other algorithms such as an encryption algorithm or a coding algorithm, which are not specifically limited here.
[0062] The dialing request may be a dialing request submitted by a user when accessing the dialing service interface of an operator through a mobile terminal or a computer. The mobile terminal may be a mobile phone, a tablet computer, a laptop computer, etc., which is not specifically limited here.
[0063] The above identification number can be used to uniquely identify a user. For example, QinQ or Vlan can be used to mark a large number of different users. QinQ can identify 4094×4094 users, and Vlan can identify 4094 users.
[0064] In S202, the standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling may be standard dial-up signaling in various formats such as PADI, PADO, PADR, and PADS involved in PPPoE dial-up interaction.
[0065] The above-mentioned method of inserting the identification number of each user into the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user can, for example, be to insert the QINQ frame structure of each user into the preset standard PPPoE frame structure such as PADI, PADO, PADR, PADS, etc., and each QINQ frame structure includes the identification number of each user, so that the target PPPoE dial-up signaling of each user can be obtained.
[0066] In S203, the first service terminal sends at least one target PPPoE dial-up signaling to the second service terminal. For example, the first service terminal can send at least one target PPPoE dial-up signaling to the second service terminal through a virtual extensible local area network VXLAN tunnel. Because PPPoE belongs to a 2.5 layer protocol, VxLAN is selected for transmission, and the target PPPoE dial-up signaling can be fully processed.
[0067] In S204, the second service terminal receives at least one target PPPoE dial-up signaling sent by the first service terminal. Exemplarily, the second service terminal may receive at least one target PPPoE dial-up signaling sent by the first service terminal through a VXLAN tunnel.
[0068] In S205, the second service terminal concurrently authenticates each target PPPoE dial-up signaling according to each identification number. Exemplarily, the second service terminal concurrently authenticates each target PPPoE dial-up signaling according to each identification number, that is, concurrent authentication includes PADI, PADO, PADR, PADS, PPP negotiation, data transmission and PADT dial-up signaling carrying the identification number of each user. There is no need to wait for the complete state machine exchange of the previous user to be completed before dialing the next user, which realizes the conversion of serial dialing of multiple users into concurrent dialing, thereby greatly improving the efficiency and performance of dialing.
[0069] As an implementation of the present application, in order to reasonably generate the user identification number, before the above S201, the following may also be included:
[0070] The first service terminal obtains the number of demand users in the target area, where the number of demand users is used to indicate the number of users with dial-up demand in the target area;
[0071] The first service terminal determines a target identification strategy corresponding to the number of required users from among a plurality of preset identification strategies;
[0072] The above S201 may specifically include:
[0073] The first service terminal generates an identification number for each user based on a target identification strategy in response to a dialing request of at least one user.
[0074] The above number of demand users can be used to indicate the number of users with dial-up demand in the target area. The target area can be an area with dial-up service, for example, a provincial city, or a prefecture-level administrative area. The target area in this application is not limited to this, but can also be other areas, which are not specifically limited here.
[0075] The above-mentioned multiple identification strategies, exemplarily, can be QinQ and Vlan identification strategies, where the VLAN ID value range is 0 to 4095, that is, Vlan can identify 4094 users, and the QINQ frame structure can carry 2 layers of VLAN. Under the combination of 2 layers of different VLAN IDs, 4094×4094 values can be identified, that is, 4094×4094 users.
[0076] In this embodiment, the first service terminal can determine a target identification strategy corresponding to the required number of users in the target area from among multiple preset identification strategies, and respond to a dial-up request from at least one user to reasonably generate an identification number for each user based on the target identification strategy, thereby realizing a scenario in which a large number of users dial up for authentication concurrently.
[0077] In some embodiments, the first service terminal is a cloud server or a cluster server, and the first service terminal includes a dial-up signaling server and a data forwarding server, and the dial-up signaling server is communicatively connected with the data forwarding server;
[0078] The above S201 may specifically include:
[0079] The dial-up signaling server generates an identification number of each user in response to a dial-up request of at least one user;
[0080] The above S202 may specifically include:
[0081] The dial-up signaling server inserts the identification number of each user into the preset standard Ethernet point-to-point protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user;
[0082] The above S203 may specifically include:
[0083] The data forwarding server sends at least one target PPPoE dial-up signaling to the second service terminal.
[0084] The first service terminal may include a dial-up signaling server and a data forwarding server, so that the dial-up signaling server and the PPPoE data forwarding server can form a network gateway after networking, which is used to connect and support thousands of users to access the second service terminal.
[0085] In this embodiment, the first service terminal can be a cloud server or a cluster server, and the first service terminal can include a dial-up signaling server and a data forwarding server. The PPPoE dial-up authentication service of all users is hosted by a dial-up signaling server, and the dial-up signaling is forwarded to the second service terminal through the data forwarding server. The dial-up signaling server and the data forwarding server are deployed separately, assuming their respective corresponding functions to ensure data security, so that users no longer need to deploy their own PPPoE gateway, simplifying the access deployment of PPPoE.
[0086] In some embodiments, the dial-up signaling server, the data forwarding server and the second service terminal communicate with each other through a virtual extensible local area network VXLAN tunnel.
[0087] In this embodiment, when the data forwarding server and the dial-up signaling server are deployed separately, it is necessary to transmit the second-layer data through the tunnel technology between the servers. Because PPPoE belongs to the 2.5-layer protocol, VxLAN is chosen to transmit it. Through the VxLAN tunnel between the dial-up signaling server, the data forwarding server, and the second service terminal, the target PPPoE dial-up signaling can be fully processed.
[0088] In some embodiments, the first service terminal is a physical server or a virtual server, and the first service terminal includes a signaling control plane and a data forwarding plane, and the signaling control plane and the data forwarding plane are deployed in the user state of the first service terminal;
[0089] The above S201 includes:
[0090] The signaling control plane generates an identification number of each user in response to a dialing request of at least one user;
[0091] The above S202 includes:
[0092] The signaling control plane inserts the identification number of each user into the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user;
[0093] The above S203 includes:
[0094] The data forwarding plane sends at least one target PPPoE dial-up signaling to the second service terminal.
[0095] In this embodiment, the first service terminal can be a physical server or a virtual server, and the first service terminal can include a signaling control plane and a data forwarding plane. The signaling control plane and the data forwarding plane are deployed in the user state of the first service terminal and are not coupled with the operating system kernel. The standard PPPoE protocol defined by IEEE is used to process various protocol formats defined in the specification to complete the processing of the target PPPoE dial-up signaling, which is finally mapped to different user instances. A large number of users have their own independent state instances for concurrent processing, thereby achieving isolation and concurrent processing of each user.
[0096] In some embodiments, the signaling control plane and the data forwarding plane communicate with each other via a shared memory data packet interface Memif.
[0097] In this embodiment, the memif interface is supported to realize a high-performance interface under the integrated deployment of the forwarding plane and the control plane. Since memif is a memory direct sharing technology, the interactive performance can be greatly improved.
[0098] In some embodiments, the signaling control plane is containerized and deployed in the user state of the first service terminal.
[0099] In this embodiment, deployment in containerized Docker is supported, so that elastic deployment and elastic expansion can be achieved with the help of Docker.
[0100] In order to facilitate the understanding of the dial-up authentication method in the embodiment of the present application, the actual application process of this dial-up authentication method is described as follows:
[0101] This embodiment is based on Intel's open source high-performance data packet fast processing driver DPDK based on x86 servers, and redesigns the traditional PPPoE signaling dialing process, so as to provide high-performance PPPoE dial-up services while meeting and complying with the currently defined standard PPPoE protocol. At the same time, various existing open source PPPoE dial-up programs cannot support or support multi-user scenarios poorly. The design framework based on this embodiment can support tens of thousands of users in a single PPPoE dial-up authentication instance. Therefore, the PPPoE dial-up program framework designed in this embodiment can meet both high-performance processing performance and concurrent dialing of a large number of users, thereby fundamentally solving the scenario where performance and number of users cannot be achieved at the framework level.
[0102] This embodiment implements a system product. The product implemented based on this embodiment can be deployed separately as a PPPoE control plane client or a PPPoE control plane server, and then an independent PPPoE data plane forwarding product (such as the common open source VPP, or related BRAS or gateway products of Huawei, ZTE, etc.) is additionally deployed to form a PPPoE access server or PPPoE gateway that supports a large number of users to implement PPPoE data forwarding access and data termination service products.
[0103] Since this embodiment supports DPDK, the product designed based on this embodiment can be easily deployed in various scenarios, such as physical servers, virtual servers on the cloud, and virtual machines in Docker, so that this product can support most application scenarios.
[0104] Figure 3 Taking a typical cloud virtual machine as the background, this article introduces how to deploy a PPPoE client service (equivalent to the first service terminal) in combination with this embodiment, including a PPPoE dial-up signaling host (i.e. the above-mentioned PPPoE dial-up signaling server) and a PPPoE data forwarding host (i.e. the above-mentioned PPPoE data forwarding server).
[0105] like Figure 3 As shown in the figure, the PPPoE dial-up signaling host and the PPPoE data forwarding host can form a network gateway after networking. The left side supports thousands of users to access the operator's BRAS broadband access server on the right side (equivalent to the second service terminal). A PPPoE dial-up signaling host hosts the PPPoE dial-up and authentication services of all users on the left side, so that the customer terminals on the left side no longer need to deploy their own PPPoE gateways, thereby simplifying their network access deployment.
[0106] Figure 4Taking a typical cloud virtual machine as the background, the network signaling intercommunication relationship between the three main devices of the PPPoE dial-up signaling host, the PPPoE data forwarding host, and the BRAS broadband access server in this embodiment is introduced.
[0107] like Figure 4 The PPPoE dial-up signaling host and PPPoE data forwarding host shown are deployed on a public cloud or a private cloud, and the PPPoE dial-up signaling data is interconnected between the three main hosts through VxLAN. Whether it is a cloud scenario or deploying multiple physical clusters, when PPPoE data forwarding and PPPoE dial-up signaling are deployed separately, it is necessary to use tunnel technology between hosts to transmit Layer 2 data (because PPPoE belongs to the 2.5-layer protocol). VxLAN is selected for transmission. Through the VxLAN tunnel between the PPPoE dial-up signaling host, PPPoE data forwarding host, and BRAS broadband access server, the PPPoE dial-up protocol signaling packet can be fully processed.
[0108] The following will continue to introduce the key technologies related to solving centralized PPPoE dial-up problems for a large number of users.
[0109] Since this embodiment realizes that a large number of users reuse one PPPoE dial-up instance to complete the concurrent dial-up service for all users, it is necessary to mark different PPPoE dial-up users by identification or label. Figure 5 As shown in this embodiment, different massive users are marked by QinQ or Vlan. Since QinQ can identify 4094×4094 users, and Vlan can identify 4094 users, a suitable label strategy is selected based on different user number demand scenarios. Among them, 4094×4094 is a huge number, which is enough for a single instance to identify massive users.
[0110] pass Figure 6 Detailed marking of how to implement concurrent dialing behavior of a single instance through QINQ. Figure 6 As shown in the figure, the QINQ frame structure can carry two layers of VLAN, where the VLAN ID value range is 0 to 4095. Under the combination of two layers of different VLAN IDs, 4094×4094 values can be identified, that is, 4094×4094 users. Figure 6It can be observed that the signaling dial-up interaction between the PPPoE client and the server involves signaling packets in various formats such as PADI, PADO, PADR, PADS, etc. By inserting QINQ tags into the standard PADI, PADO, PADR, PADS and other PPPoE-defined frame structures, different user account information can be carried. With this user information carrying, there is no need to wait for the complete state machine exchange of the previous PADI, PADO, PADR, PADS to be completed before dialing the next user. In short, by inserting QINQ into the standard PPPoE frame structure, multi-user serial dialing is converted into concurrent dialing, thereby greatly improving the dial-up efficiency and performance.
[0111] As mentioned above, PPPoE dial-up signaling and data forwarding are supported, and they can be deployed across hosts and on the cloud. In addition, they can be deployed on the same host in the same virtual machine or physical machine.
[0112] The key technologies of same-host deployment are described below. PPPoE dial-up signaling is agreed upon as the signaling control plane, and PPPoE data forwarding is agreed upon as the data forwarding plane. The example of this embodiment can be transparently deployed through Docker containerization technology. At the same time, through the high-performance memory interface, the two user-state processes of PPPoE dial-up signaling and PPPoE data forwarding can perform read and write operations in the same agreed memory area, thereby realizing high-performance information interaction.
[0113] as follows Figure 7 As shown, assuming that the data forwarding plane is a VPP instance, the loose coupling and high-performance processing of PPPoE dial-up signaling and PPPoE data forwarding can be clearly seen through the schematic diagram. The loose coupling is deployed through Docker containerization, and the high performance is achieved through the high-performance memory interface (memif). Multiple Dockers are parallel, so multiple Dockers can be deployed to carry different instances of this embodiment to achieve master-slave or user expansion, and then different Dockers exchange high performance through the memif interface and the VPP data forwarding plane.
[0114] The following is an illustration of the improvements and enhancements of this embodiment through comparison in Table 1.
[0115] Table 1: Comparative analysis between this embodiment and conventional technology
[0116]
[0117] As shown in Table 1 above, the design improvements of this embodiment and traditional PPPoE dial-up are compared in detail from four dimensions. From these four dimensions, it can be observed that no matter from the aspects of function, performance, operation and maintenance deployment, this embodiment has greatly improved the applicability, ease of use and high performance of PPPoE dial-up technology, thereby providing better technical support for cloud products.
[0118] Last passed Figure 8 The system implementation access of this embodiment is explained from the framework level, including the key unit modules.
[0119] like Figure 8 As shown, the instance process involved in this embodiment is completely deployed in user mode, has no coupling with the operating system kernel, and its underlying data driving force comes from the high-performance packet receiving and sending of DPDK; then the outer tunnel across the host is processed by the VxLAN processing unit, or the deployment scenario of unified control and forwarding is processed by the memif processing unit; next, the standard PPPoE protocol defined by IEEE is used to process various protocol formats defined in the specifications to complete the processing of PPPoE signaling packets; finally, it is mapped to different user instances, and a large number of users have their own independent state instances for concurrent processing, thereby realizing the isolation and concurrent processing of each user.
[0120] Based on the dial-up authentication method provided in the above embodiment, the present application also provides a specific implementation of a dial-up authentication device. It can be understood that the relevant descriptions in the following device embodiments can refer to the above method embodiments, and for the sake of brevity, they will not be repeated. Please refer to the following embodiments.
[0121] See also Fig. 9 , is a structural diagram of a dial-up authentication device 900 provided in an embodiment of the present application, which is applied to a first service terminal. The device 900 may include: a generating module 901, an inserting module 902 and a sending module 903.
[0122] A generating module 901, configured to generate an identification number of each user in response to a dialing request of at least one user, wherein each identification number is used to uniquely represent each user;
[0123] Insertion module 902, used for inserting the identification number of each user into the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user, and different target PPPoE dial-up signalings have different identification numbers;
[0124] The sending module 903 is used to send at least one target PPPoE dial-up signaling to the second service terminal, wherein the second service terminal is used to authenticate each target PPPoE dial-up signaling according to each identification number.
[0125] In the dial-up authentication device of the embodiment of the present application, the first service terminal can respond to the dial-up request of at least one user, generate the identification number of each user, and insert the identification number of each user in the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user; the second service terminal can receive at least one target PPPoE dial-up signaling sent by the first service terminal, and authenticate each target PPPoE dial-up signaling according to each identification number. In this way, in the embodiment of the present application, the first service terminal can access at least one user, and by inserting the identification number of each user in the standard PPPoE dial-up signaling, the second service terminal authenticates each target PPPoE dial-up signaling, which can overcome the scenario where the traditional PPPoE technology can only meet the needs of a single user, thereby supporting the scenario where a large number of users perform PPPoE dial-up authentication.
[0126] In some embodiments, the first service terminal is a cloud server or a cluster server, and the first service terminal includes a dial-up signaling server and a data forwarding server, and the dial-up signaling server is communicatively connected with the data forwarding server;
[0127] The above-mentioned generating module 901 is specifically used for the dial-up signaling server to generate an identification number of each user in response to a dial-up request of at least one user;
[0128] The above-mentioned insertion module 902 is specifically used for the dial-up signaling server to insert the identification number of each user into the preset standard Ethernet point-to-point protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user;
[0129] The sending module 903 is specifically used for the data forwarding server to send at least one target PPPoE dial-up signaling to the second service terminal.
[0130] In some embodiments, the dial-up signaling server, the data forwarding server and the second service terminal communicate with each other through a virtual extensible local area network VXLAN tunnel.
[0131] In some embodiments, the first service terminal is a physical server or a virtual server, and the first service terminal includes a signaling control plane and a data forwarding plane, and the signaling control plane and the data forwarding plane are deployed in the user state of the first service terminal;
[0132] The generating module 901 is specifically configured to generate an identification number of each user in response to a dialing request of at least one user by the signaling control plane;
[0133] The above-mentioned insertion module 902 is specifically used for the signaling control plane to insert the identification number of each user into the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user;
[0134] The sending module 903 is specifically configured to send at least one target PPPoE dial-up signaling to the second service terminal on the data forwarding plane.
[0135] In some embodiments, the signaling control plane and the data forwarding plane communicate with each other via a shared memory data packet interface Memif.
[0136] In some embodiments, the signaling control plane is containerized and deployed in the user state of the first service terminal.
[0137] As an implementation of the present application, in order to reasonably generate an identification number of a user, the above-mentioned device 900 may further include:
[0138] An acquisition module, used for acquiring the number of demand users in the target area, where the number of demand users is used to indicate the number of users with dial-up demand in the target area;
[0139] A determination module, used to determine a target identification strategy corresponding to the required number of users among a plurality of preset identification strategies;
[0140] The generating module 901 is further configured to generate an identification number of each user based on a target identification strategy in response to a dialing request of at least one user.
[0141] In some embodiments, the first service terminal uses a data plane development toolkit DPDK as a driving base for the data packet.
[0142] See also Fig.10 , is a structural diagram of another dial-up authentication device 1000 provided in an embodiment of the present application, which is applied to a second service terminal. The device 1000 may include: a receiving module 1001 and an authentication module 1002.
[0143] The receiving module 1001 is used to receive at least one target Ethernet Point-to-Point Protocol PPPoE dial-up signaling sent by the first service terminal, wherein the first service terminal is used to generate an identification number of each user in response to a dial-up request of at least one user, and each identification number is used to uniquely represent each user; insert the identification number of each user into a preset standard PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, and different target PPPoE dial-up signalings have different identification numbers; and send at least one target PPPoE dial-up signaling to the second service terminal;
[0144] The authentication module 1002 is used to authenticate each target PPPoE dial-up signaling according to each identification number.
[0145] In the dial-up authentication device of the embodiment of the present application, the first service terminal can respond to the dial-up request of at least one user, generate the identification number of each user, and insert the identification number of each user in the preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain the target PPPoE dial-up signaling of each user; the second service terminal can receive at least one target PPPoE dial-up signaling sent by the first service terminal, and authenticate each target PPPoE dial-up signaling according to each identification number. In this way, in the embodiment of the present application, the first service terminal can access at least one user, and by inserting the identification number of each user in the standard PPPoE dial-up signaling, the second service terminal authenticates each target PPPoE dial-up signaling, which can overcome the scenario where the traditional PPPoE technology can only meet the needs of a single user, thereby supporting the scenario where a large number of users perform PPPoE dial-up authentication.
[0146] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0147] The electronic device may include a processor 1101 and a memory 1102 storing computer program instructions.
[0148] Specifically, the processor 1101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0149] The memory 1102 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1102 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1102 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1102 is a non-volatile solid-state memory.
[0150] In certain embodiments, the memory 1102 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0151] The processor 1101 implements any one of the dial-up authentication methods in the above embodiments by reading and executing the computer program instructions stored in the memory 1102 .
[0152] In one example, the electronic device may further include a communication interface 1103 and a bus 1110. Fig.11 As shown, the processor 1101, the memory 1102, and the communication interface 1103 are connected via a bus 1110 and communicate with each other.
[0153] The communication interface 1103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0154] Bus 1110 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1110 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0155] The electronic device can execute the dial-up authentication method in the embodiment of the present application, thereby realizing the combination Figure 2 , Fig. 9 and Fig.10 Described dial-up authentication method and device.
[0156] In addition, in combination with the dial-up authentication method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the dial-up authentication methods in the above embodiment is implemented.
[0157] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0158] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0159] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0160] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0161] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A dial-up authentication method, characterized in that: Applied to the first service terminal, the method includes: In response to a dialing request of at least one user, generating an identification number of each user, each identification number being used to uniquely identify each user; Inserting the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers; At least one of the target PPPoE dial-up signaling is sent to a second service terminal, wherein the second service terminal is used to authenticate each of the target PPPoE dial-up signaling according to each of the identification numbers.
2. The method according to claim 1, characterized in that The first service terminal is a cloud server or a cluster server, and the first service terminal includes a dial-up signaling server and a data forwarding server, and the dial-up signaling server is communicatively connected with the data forwarding server; The step of generating an identification number of each user in response to a dialing request of at least one user comprises: The dial-up signaling server generates an identification number of each user in response to a dial-up request of at least one user; The step of inserting the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user comprises: The dial-up signaling server inserts the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user; The sending of at least one target PPPoE dial-up signaling to the second service terminal includes: The data forwarding server sends at least one of the target PPPoE dial-up signaling to the second service terminal.
3. The method according to claim 2, characterized in that The dial-up signaling server, the data forwarding server and the second service terminal communicate with each other through a virtual extensible local area network VXLAN tunnel.
4. The method according to claim 1, characterized in that: The first service terminal is a physical server or a virtual server, and the first service terminal includes a signaling control plane and a data forwarding plane, and the signaling control plane and the data forwarding plane are deployed in a user state of the first service terminal; The step of generating an identification number of each user in response to a dialing request of at least one user comprises: The signaling control plane generates an identification number of each user in response to a dialing request of at least one user; The step of inserting the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user comprises: The signaling control plane inserts the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user; The sending of at least one target PPPoE dial-up signaling to the second service terminal includes: The data forwarding plane sends at least one of the target PPPoE dial-up signaling to the second service terminal.
5. The method according to claim 4, characterized in that The signaling control plane and the data forwarding plane communicate with each other via a shared memory data packet interface Memif.
6. The method according to claim 4, characterized in that The signaling control plane is containerized and deployed in the user state of the first service terminal.
7. The method according to claim 1, characterized in that Before generating the identification number of each user in response to the dialing request of at least one user, the method further includes: Acquire the number of demand users in the target area, where the number of demand users is used to indicate the number of users with dial-up demand in the target area; Determine a target identification strategy corresponding to the required number of users among a plurality of preset identification strategies; The step of generating an identification number of each user in response to a dialing request of at least one user comprises: In response to a dialing request of at least one user, an identification number of each user is generated based on the target identification strategy.
8. The method according to claim 1, characterized in that The first service terminal uses a data plane development toolkit DPDK as a driving base for data packets.
9. A dial-up authentication method, characterized in that: Applied to the second service terminal, the method includes: Receive at least one target Ethernet Point-to-Point Protocol (PPPoE) dial-up signaling sent by a first service terminal, wherein the first service terminal is used to generate an identification number of each user in response to a dial-up request of at least one user, and each identification number is used to uniquely represent each user; insert the identification number of each user into a preset standard PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, and different target PPPoE dial-up signalings have different identification numbers; send at least one target PPPoE dial-up signaling to a second service terminal; According to each of the identification numbers, each of the target PPPoE dial-up signalings is simultaneously issued for authentication.
10. A dial-up authentication device, characterized in that: Applied to a first service terminal, the device comprises: A generating module, configured to generate an identification number of each user in response to a dialing request of at least one user, wherein each identification number is used to uniquely represent each user; An inserting module is used to insert the identification number of each user into a preset standard Ethernet Point-to-Point Protocol PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers; The sending module is used to send at least one of the target PPPoE dial-up signaling to the second service terminal, wherein the second service terminal is used to authenticate each of the target PPPoE dial-up signaling according to each of the identification numbers.
11. A dial-up authentication device, characterized in that: Applied to a second service terminal, the device comprises: A receiving module, configured to receive at least one target Ethernet Point-to-Point Protocol (PPPoE) dial-up signaling sent by a first service terminal, wherein the first service terminal is configured to generate an identification number of each user in response to a dial-up request of at least one user, wherein each identification number is used to uniquely represent each user; insert the identification number of each user into a preset standard PPPoE dial-up signaling to obtain a target PPPoE dial-up signaling of each user, wherein different target PPPoE dial-up signalings have different identification numbers; and send at least one target PPPoE dial-up signaling to a second service terminal; The authentication module is used to authenticate each of the target PPPoE dial-up signalings according to each of the identification numbers.
12. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the dial-up authentication method according to any one of claims 1 to 9 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the dial-up authentication method according to any one of claims 1 to 9 is implemented.
