A method, device, forwarding plane network element and medium for controlling user online
In the virtual broadband remote access server system, the forwarding plane network element verifies and responds to the ARP request message during the master/standby switchover of the control plane network element, which solves the problem of new dial-up users being unable to go online, and ensures that users are protected during the switchover process. continuity and stability.
Patent Information
- Application Number
- CN202210522396.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-13
AI Technical Summary
In the virtual broadband remote access server (vBRAS) system, when the control plane network element (CP) switches between the active and standby devices, new dial-up users cannot successfully go online because the standby CP cannot respond to ARP request messages in time during the switchover process, resulting in The packet is put into the buffer queue and discarded.
When the control plane network element performs active/standby switchover, the forwarding plane network element (pUP) receives the circuit information of the ARP request message for verification, and after passing the verification, establishes a forwarding table entry for the user terminal and returns an ARP response message. Completes the checksum response on behalf of the CP to ensure that users can go online successfully.
This enables new dial-up users to successfully go online during active/standby switchover between CPs, avoiding the problem of ARP request messages being discarded due to long waiting times.
Smart Images

Figure CN115051970B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, forwarding plane network element and medium for controlling user online. Background Art
[0002] The virtual broadband remote access server (vBRAS) system based on forwarding and control separation includes control plane (CP) network elements and user plane (UP) network elements, and the user plane network elements are also called forwarding plane network elements. Among them, the forwarding plane network elements include physical user plane (pUP) network elements, also called physical forwarding plane network elements. In the following, the control plane network elements are referred to as CP, and the physical forwarding plane network elements are referred to as pUP. The pUP can receive the Address Resolution Protocol (ARP) request message from the user equipment, encapsulate the ARP request message with a virtual extended local area network (VxLAN) header, and then forward it to the CP. The CP verifies the received ARP request message, returns the ARP response message to the user equipment through the pUP after the verification is passed, and generates a forwarding table entry and sends it to the pUP.
[0003] There are two roles of CP: master CP and backup CP. When the master CP fails or needs to switch to the backup CP in other situations, the cloud resource pool where the backup CP is located needs to start the virtual machine (VM), configure various functions of the master CP, such as the function of managing each pUP and the function of responding to ARP request messages, and synchronize user information in the master CP. This process takes a certain amount of time, and during this process, both the master CP and the backup CP cannot respond to ARP request messages, resulting in the ARP request message forwarded by the pUP to the backup CP being placed in the cache queue and discarded due to long waiting time. Therefore, when the master-slave switch is performed between CPs, new dial-up users cannot go online. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device, forwarding plane network element and medium for controlling user online, so that when the active / standby switching is performed between CPs, new dial-up users can successfully go online. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for controlling user online, which is applied to a forwarding plane network element, and the method includes:
[0006] Receive an Address Resolution Protocol (ARP) request message from a user terminal;
[0007] When it is determined that the control plane network element is performing active / standby switching, obtaining circuit information of the ARP request message and verifying the circuit information, wherein the circuit information includes an Internet Protocol IP address of the user terminal;
[0008] If the circuit information is verified to be passed, a forwarding table entry is established for the user terminal, and an ARP response message is sent to the user terminal, wherein the ARP response message includes a media access control address MAC of a forwarding port of the forwarding plane network element.
[0009] Optionally, after sending the ARP response message to the user terminal, the method further includes:
[0010] When it is detected that the control plane network element completes the active / standby switching, online information of each local online terminal is obtained, where the local online terminal is a user terminal corresponding to the forwarding table entry established by the forwarding plane network element, and the online information includes user identity information;
[0011] Sending a reconciliation message to the switched main control plane network element, wherein the reconciliation message includes online information of each local online terminal, so that the main control plane network element verifies the online information of each local online terminal;
[0012] receiving a deletion instruction sent by the main control plane network element, wherein the deletion instruction includes session information of the first local online terminal, and the deletion instruction is an instruction sent by the main control plane network element when the online information verification of the first local online terminal fails;
[0013] In response to the deletion instruction, the forwarding table entry corresponding to the session information of the first local online terminal is deleted.
[0014] Optionally, after establishing a forwarding table entry for the user terminal, the method further includes:
[0015] Setting an attribute tag for the established forwarding table entry, wherein the attribute tag is used to indicate that the forwarding table entry is established by the forwarding plane network element;
[0016] The obtaining of online information of each local online terminal includes:
[0017] The online information of the user terminal corresponding to each forwarding table entry having the attribute mark is obtained.
[0018] Optionally, after sending the reconciliation message to the switched primary control plane network element, the method further includes:
[0019] receiving a pass instruction sent by the main control plane network element, wherein the pass instruction includes session information of the second local online terminal, and the pass instruction is an instruction sent by the main control plane network element when the online information of the second local online terminal is verified to be successful;
[0020] In response to the passing instruction, the attribute tag of the forwarding table entry corresponding to the session information of the second local online terminal is deleted.
[0021] Optionally, the online information also includes circuit information of the ARP request message sent by the local online terminal.
[0022] Optionally, the reconciliation message also includes user information, session information and forwarding table entries corresponding to each local online terminal, so that the main control plane network element records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification.
[0023] Optionally, the verifying the circuit information includes:
[0024] Determine whether its own IP address and the IP address of the user terminal belong to the same network segment;
[0025] If yes, it is determined that the circuit information verification has passed;
[0026] If not, it is determined that the circuit information verification has failed.
[0027] Optionally, the circuit information further includes a forwarding port identifier for receiving the ARP request message; and the verifying the circuit information includes:
[0028] Determine whether its own IP address and the IP address of the user terminal belong to the same network segment, and determine whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port;
[0029] If both are yes, it is determined that the circuit information verification has passed;
[0030] If not all of them are yes, it is determined that the circuit information verification has failed.
[0031] In a second aspect, an embodiment of the present application provides a device for controlling user online, which is applied to a forwarding plane network element, and the device includes:
[0032] A receiving module, used for receiving an address resolution protocol ARP request message from a user terminal;
[0033] A verification module, configured to obtain circuit information of the ARP request message received by the receiving module and verify the circuit information when it is determined that the control plane network element is performing active / standby switching, wherein the circuit information includes an Internet Protocol IP address of the user terminal;
[0034] A response module is used to establish a forwarding table entry for the user terminal and send an ARP response message to the user terminal if the verification module passes the circuit information verification. The ARP response message includes a media access control address MAC of a forwarding port of the forwarding plane network element.
[0035] Optionally, the device further includes: an acquisition module and a sending module;
[0036] The acquisition module is further configured to, after sending the ARP response message to the user terminal, acquire online information of each local online terminal when it is detected that the control plane network element completes the active / standby switching, wherein the local online terminal is a user terminal corresponding to the forwarding table entry established by the forwarding plane network element, and the online information includes user identity information;
[0037] The sending module is used to send a reconciliation message to the switched main control plane network element, wherein the reconciliation message includes the online information of each local online terminal acquired by the acquisition module, so that the main control plane network element verifies the online information of each local online terminal;
[0038] The receiving module is further used to receive a deletion instruction sent by the main control plane network element, the deletion instruction includes session information of the first local online terminal, and the deletion instruction is an instruction sent by the main control plane network element when the online information verification of the first local online terminal fails;
[0039] The responding module is further configured to delete the forwarding entry corresponding to the session information of the first local online terminal in response to the deletion instruction received by the receiving module.
[0040] Optionally, the device further comprises:
[0041] A setting module, configured to, after the forwarding table entry is established for the user terminal, set an attribute tag for the established forwarding table entry, wherein the attribute tag is used to indicate that the forwarding table entry is established by the forwarding plane network element;
[0042] The acquisition module is specifically used for:
[0043] The online information of the user terminal corresponding to each forwarding table entry having the attribute mark is obtained.
[0044] Optionally, the receiving module is further configured to receive a pass instruction sent by the main control plane network element after sending the reconciliation message to the switched main control plane network element, wherein the pass instruction includes session information of the second local online terminal, and the pass instruction is an instruction sent by the main control plane network element when the online information of the second local online terminal is verified;
[0045] The responding module is further configured to delete the attribute tag of the forwarding table entry corresponding to the session information of the second local online terminal in response to the passing instruction received by the receiving module.
[0046] Optionally, the online information also includes circuit information of the ARP request message sent by the local online terminal.
[0047] Optionally, the reconciliation message also includes user information, session information and forwarding table entries corresponding to each local online terminal, so that the main control plane network element records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification.
[0048] Optionally, the verification module is specifically used to:
[0049] Determine whether its own IP address and the IP address of the user terminal belong to the same network segment;
[0050] If yes, it is determined that the circuit information verification has passed;
[0051] If not, it is determined that the circuit information verification has failed.
[0052] Optionally, the circuit information further includes a forwarding port identifier for receiving the ARP request message; and the verification module is specifically configured to:
[0053] Determine whether its own IP address and the IP address of the user terminal belong to the same network segment, and determine whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port;
[0054] If both are yes, it is determined that the circuit information verification has passed;
[0055] If not all of them are yes, it is determined that the circuit information verification has failed.
[0056] In a third aspect, an embodiment of the present application provides a forwarding plane network element, characterized in that it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0057] Memory, used to store computer programs;
[0058] The processor is used to implement any of the above-mentioned method steps for controlling users to go online when executing the program stored in the memory.
[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned method steps for controlling users to go online are implemented.
[0060] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-described methods for controlling user online access.
[0061] Beneficial effects of the embodiments of the present application:
[0062] In the method, device, forwarding plane network element and medium for controlling user online provided by the embodiment of the present application, since the forwarding plane network element can verify the circuit information of the ARP request message from the user terminal when the active-standby switching is performed between the control plane network elements, and return the ARP response message and establish a forwarding table entry when the verification passes, it is equivalent to being able to complete the verification of the ARP request message on behalf of the CP, and respond to the ARP request message when the verification passes. Therefore, the embodiment of the present application can achieve that when the active-standby switching is performed between the CPs, the new dial-up user can successfully go online.
[0063] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0065] Figure 1 A schematic diagram of the structure of a vBRAS system provided in an embodiment of the present application;
[0066] Figure 2 A flow chart of a method for controlling user online provided in an embodiment of the present application;
[0067] Figure 3 A flowchart of another method for controlling user online provided in an embodiment of the present application;
[0068] Figure 4 A schematic diagram of the system structure for controlling user online access in the related technology;
[0069] Figure 5 It is a signaling diagram of the process of controlling user online in the related technology;
[0070] Figure 6 A schematic diagram of a system structure for controlling user online access provided in an embodiment of the present application;
[0071] Figure 7 A signaling diagram of a process for controlling user online provided in an embodiment of the present application;
[0072] Figure 8 A schematic diagram of the structure of a device for controlling user online provided in an embodiment of the present application;
[0073] Fig. 9 A schematic diagram of the structure of a forwarding plane network element provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.
[0075] The virtual broadband remote access server (vBRAS) system realizes the separation of forwarding function and control function. The control plane (CP) network element realizes the control function, including verifying and responding to the request message of the user terminal and managing each forwarding plane network element; the user plane (UP) network element realizes the forwarding function, including forwarding the request message of the user terminal to the control plane network element and forwarding the data message of the user terminal.
[0076] The control plane network element is usually a virtualized network element, so it is also called vBRAS-CP. It can be implemented through cloud technology. The control plane network element can be a virtual machine deployed on a physical server. The user plane network element is also called the forwarding plane network element. The forwarding plane network element includes the physical user plane (Physical User Plane, pUP) network element, also known as the physical forwarding plane network element, which can be a hardware forwarding device such as a router. In the following, the control plane network element is referred to as CP, and the physical forwarding plane network element is referred to as pUP.
[0077] See also Figure 1The method for controlling user online provided in the embodiment of the present application can be applied to a vBRAS system, which includes multiple CPs 101 and multiple pUPs 102, and each CP 101 is connected to multiple pUPs 102. There is a main CP and at least one backup CP in the multiple CPs 101, and the main CP is used to implement the control function.
[0078] CP 101 is used to respond to the Address Resolution Protocol (ARP) request message from the user terminal forwarded by each pUP 102 when it is the main CP. The way of responding to the ARP request message includes generating an ARP response message, establishing a forwarding table entry, and then returning the ARP response message and the forwarding table entry to pUP 102.
[0079] pUP 102 is used to execute the method for controlling user online provided by the embodiment of the present application, which will be described in detail below. At the same time, pUP 102 is also used to forward the ARP request message from the user terminal to the main CP when the CP does not perform the master-slave switching, that is, when the main CP operates normally, receive the ARP response message and forwarding table items returned by the main CP, return the ARP response message to the user terminal, and record the forwarding table items.
[0080] Figure 1 This is an example provided in the embodiment of the present application, and the number of devices in the vBRAS system is not limited thereto.
[0081] In order to enable a new dial-up user to successfully go online when the primary and standby switching is performed between CPs, the embodiment of the present application provides a method for controlling user online, which is applied to Figure 1 pUP in the system shown, such as Figure 2 As shown, the method comprises the following steps:
[0082] S201: Receive an ARP request message from a user terminal.
[0083] Before using the network to communicate, the user terminal needs to broadcast an ARP request message to request the media access control address (MAC) of the gateway so that it can subsequently send data messages to the gateway based on the MAC to achieve network communication. For example, the user terminal can be a mobile phone, computer, or wearable device that can communicate over the network. The ARP request message includes user identity information as well as the IP address and MAC address of the user terminal, where the user identity information includes the user name and password.
[0084] Optionally, the communication between the pUP and the user terminal may also pass through other forwarding devices, such as a router.
[0085] In the embodiment of the present application, before S201, network construction, basic configuration in each device and network cutover may be completed in advance.
[0086] S202: When it is determined that the CP is performing active / standby switching, the circuit information of the ARP request message is obtained and the circuit information is verified, wherein the circuit information includes the Internet Protocol (IP) address of the user terminal.
[0087] In the embodiment of the present application, when the main CP needs to switch to the backup CP in case of failure or other circumstances, a switching instruction is sent to the backup CP to notify the backup CP to change to the main CP, and synchronize the user information in the main CP database to the backup CP. The user information includes the IP address, MAC address, bandwidth, and forwarding table entries of each user device that has been online.
[0088] After receiving the switching instruction, the standby CP may send a first notification message to each pUP to notify the CPs to start the master-slave switching. After the master-slave switching is completed between the CPs, the original standby CP becomes the master CP, and then sends a second notification message to each pUP to notify each pUP that the master-slave switching is completed. After receiving the first notification message and before receiving the second notification message, the pUP may determine that the CP is undergoing the master-slave switching.
[0089] S203: If the circuit information is verified, a forwarding table entry is created for the user terminal, and an ARP response message is sent to the user terminal, wherein the ARP response message includes a MAC of a forwarding port of the pUP.
[0090] In the embodiment of the present application, if the circuit information is verified, the pUP may carry the MAC of the forwarding port through which it receives the ARP request message in the ARP response message and send it to the user terminal.
[0091] The method for controlling user online provided in the embodiment of the present application, since the pUP can verify the circuit information of the ARP request message from the user terminal when the primary and backup switching is performed between CPs, and return the ARP response message and establish a forwarding table entry when the verification passes, it is equivalent to being able to complete the verification of the ARP request message on behalf of the CP, and respond to the ARP request message when the verification passes. Therefore, the embodiment of the present application can achieve that when the primary and backup switching is performed between CPs, the new dial-up user can successfully go online.
[0092] In one embodiment of the present application, the manner in which the pUP verifies the circuit information in the above S202 includes the following two methods:
[0093] Method 1: pUP determines whether its own IP address and the IP address of the user terminal belong to the same network segment. If yes, it is determined that the circuit information verification has passed; if not, it is determined that the circuit information verification has failed. The circuit information may also include the IP address of pUP itself.
[0094] In the disclosed embodiment, the pUP can determine whether its own IP address and the IP address of the user terminal belong to the same network segment according to the pre-configured verification rules. The specific verification rules can be set according to the actual situation, and the embodiments of the present application do not specifically limit this. For example, when the type of the IP address of the pUP is Class A, the verification rule can be configured as follows: determine whether the first digit of its own IP address is the same as that of the IP address of the user terminal. If they are the same, it is determined that they belong to the same network segment, otherwise it is determined that they do not belong to the same network segment. For example, 1.0.0.0 and 2.0.0.0 belong to different network segments.
[0095] Optionally, the IP address of the user terminal may be a fixed IP address.
[0096] In the embodiment of the present application, pUP can verify the IP address of the user terminal and respond to the ARP request message of the user terminal when its own IP address and the IP address of the user terminal belong to the same network segment, thereby avoiding responding to the ARP request message of the user terminal in other networks, avoiding malicious access of the user terminal and improving communication security.
[0097] Method 2: pUP determines whether its own IP address and the IP address of the user terminal belong to the same network segment, and determines whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port according to the port identifier for receiving the ARP request message. If both are yes, it is determined that the circuit information verification has passed; if both are not yes, it is determined that the circuit information verification has failed. The circuit information may also include the forwarding port identifier for receiving the ARP request message.
[0098] In the disclosed embodiment, the pUP can determine whether its own IP address and the IP address of the user terminal belong to the same network segment according to the pre-configured verification rules. And according to the correspondence between each pre-configured IP address and the forwarding port identifier, determine whether the forwarding port identifier of the received ARP request message is the same as the preset forwarding port identifier corresponding to the IP address of the user terminal. If they are the same, it is determined that they are the same forwarding port; if they are different, it is determined that they are not the same forwarding port.
[0099] In the embodiment of the present application, the pUP can respond to the ARP request message of the user terminal by verifying the IP address of the user terminal, when its own IP address and the IP address of the user terminal belong to the same network segment, and the forwarding port receiving the ARP request is the preset forwarding port corresponding to the IP address of the user terminal. In this way, it avoids responding to the ARP request message of the user terminal in other networks, reduces the situation where malicious devices obtain ARP response messages by forging IP addresses, and improves communication security.
[0100] In one embodiment of the present application, after the active / standby switching is completed and the current active CP works normally, the pUP needs to terminate the proxy for the online function of the user device and reconcile with the current active CP, so as to synchronize the terminal information online during the active / standby switching of the CP to the current active CP. That is, after the pUP sends the ARP response message to the user terminal in the above S203, the pUP can also reconcile with the active CP, such as Figure 3 As shown, the following steps are included:
[0101] S301 : When it is detected that the CP completes the master-slave switching, the online information of each local online terminal is obtained.
[0102] Among them, the local online terminal is the user terminal corresponding to the forwarding table entry established by pUP, that is, if pUP verifies the circuit information of the ARP request message sent by the user terminal, and feeds back the ARP response message to the user terminal and establishes a forwarding table entry, so that the user terminal goes online, then the user terminal can be used as the local online terminal.
[0103] In the embodiment of the present application, after the circuit information of the ARP request message is verified, the pUP can create a user session (Session) for the user terminal that sends the ARP request message, and the user session is used to store the circuit information and user identity information and the forwarding table entries constructed by the pUP for the user terminal, etc. When the pUP executes S301, it can obtain the online information from the user session information of each local online terminal, wherein the online information includes the user identity information of the local online terminal.
[0104] S302: Send a reconciliation message to the switched master CP, wherein the reconciliation message includes the online information of each local online terminal, so that the master CP verifies the online information of each local online terminal.
[0105] In an embodiment of the present application, the pUP can send a reconciliation message to the switched main CP through the OpenFlow channel. After receiving the reconciliation message, the main CP can perform 3A authentication on the user identity information of each local online terminal, namely authentication (Authentication), authorization (Authorization) and billing (Accounting).
[0106] Optionally, the online information may also include circuit information of the ARP request message sent by the local online terminal, so that after receiving the reconciliation message, the master CP can verify the circuit information in addition to the identity information, thereby improving the security of communication.
[0107] S303: Receive a deletion instruction sent by the master CP, wherein the deletion instruction includes the session information of the first local online terminal, and the deletion instruction is sent by the master CP when the online information of the first local online terminal fails to be verified.
[0108] In an embodiment of the present application, the main CP can send a deletion instruction to the pUP for each local online terminal when the user identity information of the local online terminal fails the 3A authentication and / or the circuit information corresponding to the local online terminal fails the verification, and the deletion instruction includes the session information of the local online terminal, that is, the first local online terminal is the local online terminal that fails the online information verification.
[0109] Optionally, the session information of the local online terminal may be a user session number. The reconciliation message sent by the pUP to the master CP may also include the user session number of each local online terminal, so that when the online information of any local online terminal fails to be verified, the master CP returns a deletion instruction including the user session number of the local online terminal to the pUP.
[0110] S304: In response to the deletion instruction, delete the forwarding table entry corresponding to the session information of the first local online terminal.
[0111] In the embodiment of the present application, each user session in pUP has a corresponding user session number, so that after receiving the deletion instruction, pUP can search and delete the forwarding table entry in the user session corresponding to the user session number of the first local online terminal.
[0112] In the embodiment of the present application, pUP can exempt the user terminal with a fixed IP address from authentication when the master-slave switch is performed between CPs. Since the user terminal with a fixed IP address is generally a terminal of an enterprise or unit, the user terminal with a fixed IP address is more secure than the user terminal with a non-fixed IP address. Therefore, in the embodiment of the present application, the user terminal with a fixed IP address is exempted from authentication, and it can be realized that the user terminal with a fixed IP address can successfully go online when the CP is switched between the master and the standby on the basis of ensuring the security of communication. Moreover, pUP can reconcile with the current main CP after the CP completes the master-slave switch, so that the main CP can verify the online information corresponding to each local online terminal. If the verification fails, pUP is instructed to delete the forwarding table entry corresponding to the local online terminal, thereby preventing pUP from continuing to forward the data message sent by the local online terminal based on the forwarding table entry, that is, controlling the user to go offline, thereby further ensuring the security of communication.
[0113] In one embodiment of the present application, the pUP may record each forwarding table item issued by the CP in one forwarding table, and record each forwarding table item established by itself in another forwarding table, so that when the pUP executes S301, it can determine the online information corresponding to each forwarding table item from the forwarding table recording each forwarding table item established by itself.
[0114] Or, in another embodiment of the present application, after pUP sets up the forwarding table item for the user terminal in above-mentioned S203, pUP can also set attribute mark for the forwarding table item set up, and attribute mark is used to indicate that the forwarding table item is set up by pUP. For example, in the forwarding table recorded by pUP, it is 1 to add attribute mark for each forwarding table item set up by itself. On this basis, pUP can obtain the online information of the user terminal corresponding to each forwarding table item with attribute mark when executing S301. In the embodiment of the present application, pUP marks each forwarding table item set up by itself, so that when CP completes the main-standby switching, it can utilize attribute mark to find each forwarding table item set up by itself more conveniently, so as to check accounts with the main CP.
[0115] In one embodiment of the present application, after the pUP sends the reconciliation message to the switched main CP in the above S302, the pUP may also receive a pass instruction sent by the main CP, wherein the pass instruction includes the session information of the second local online terminal, and the pass instruction is an instruction sent by the main CP when the online information of the second local online terminal is verified. Then, in response to the pass instruction, the pUP deletes the attribute tag of the forwarding table item corresponding to the session information of the second local online terminal.
[0116] In an embodiment of the present application, the main CP can, for each local online terminal, send a pass instruction to the pUP when the user identity information of the local online terminal passes the 3A authentication and the circuit information corresponding to the local online terminal passes the verification, and the pass instruction includes the session information of the local online terminal, that is, the second local online terminal is the local online terminal whose online information passes the verification.
[0117] In the embodiment of the present application, each user session of pUP has a corresponding user session number, so that after receiving the pass instruction, pUP can search and delete the attribute mark of the forwarding entry in the user session corresponding to the user session number of the second local online terminal.
[0118] By adopting the above method, the master CP can verify the online information corresponding to each local online terminal, and if the verification is passed, it will instruct the pUP to delete the attribute mark of the forwarding table item corresponding to the local online terminal. When the pUP and the master CP conduct the next reconciliation, the forwarding table items of the local online terminals that have been verified can be ignored, avoiding repeated reconciliation and improving reconciliation efficiency.
[0119] Optionally, the reconciliation message may also include user information, session information and forwarding table entries corresponding to each local online terminal, so that the master CP records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification. The user information includes the enterprise IP address and MAC address, etc.
[0120] In an embodiment of the present application, the main CP can record the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification, so that authentication and billing services can be provided to the local online terminal that has passed the verification based on the user information, session information and forwarding table entries.
[0121] The following is a comparative description of the method for controlling user online provided by the embodiment of the present application and the conventional method in combination with a specific application scenario:
[0122] In conventional methods, such as Figure 4As shown, both the main CP and the backup CP are connected to pUP1 and pUP2, and pUP1 and pUP2 are also connected to the service leaf (S-Leaf, sever-Leaf), and the S-Leaf can be a relay router. The S-Leaf is also connected to the access leaf (Access-Leaf, A-Leaf), and the A-Leaf can be an access router. The A-Leaf is also connected to multiple customer terminal equipment (Customer Premises Equipment, CPE). For example, the CPE can be a terminal in the hospital information system (Hospital Information System, HIS), or an interactive network television (Internet Protocol Television, IPTV), or a cloud virtual reality (Cloud Virtual Reality, Cloud VR) device, etc. Figure 4 The solid connecting line in the figure indicates that the devices can communicate with each other, and the dotted arrow indicates the direction of data transmission.
[0123] See also Figure 5 , the CPE with a fixed IP address sends an ARP request message, and the ARP request message passes through A-Leaf and S-Leaf and reaches pUP1. When the primary CP and the backup CP have not performed the primary-backup switching, pUP1 encapsulates the ARP request message with a virtual extended local area network (VxLAN) header and forwards it to the primary CP. The primary CP obtains the circuit information of the ARP request message for verification, and obtains the user identity information included in the ARP request message for 3A authentication. If the verification and authentication pass, the primary CP generates an ARP response message and constructs a forwarding table entry. The primary CP returns the ARP response message and the constructed forwarding table entry to pUP1, so that pUP1 records the forwarding table entry and returns the ARP response message to the CPE through S-Leaf and A-Leaf.
[0124] However, when a CPE with a fixed IP address sends an ARP request message, the ARP request message passes through A-Leaf and S-Leaf and reaches pUP1. If the primary CP and the backup CP are performing a primary-backup switch, pUP1 encapsulates the ARP request message with a VxLAN header and forwards it to the backup CP. At this time, the backup CP is performing data synchronization and cannot respond to the ARP request message, so that the ARP request message is placed in the cache queue and then discarded due to a long waiting time. At this time, the CPE cannot receive the ARP response message and cannot go online. Optionally, when the primary and backup CPs perform a primary-backup switch, the backup CP can also send a heartbeat message to the primary CP and receive a heartbeat response message returned by the primary CP, so that the backup CP can perceive the operating status of the primary CP in real time to complete the primary-backup switch.
[0125] In the method for controlling user online provided in the embodiment of the present application, if Figure 6 As shown, the main CP and the backup CP are connected to pUP1 and pUP2, and pUP1 and pUP2 are also connected to S-Leaf, which can be a relay router. S-Leaf is also connected to A-Leaf, which can be an access router. A-Leaf is also connected to multiple CPEs. Figure 6 The solid connecting line in the figure indicates that the devices can communicate with each other, and the dotted arrow indicates the direction of data transmission.
[0126] When the active CP and the standby CP do not perform active / standby switching, the response process of the ARP request message is the same as that of the related technology.
[0127] However, see Figure 7 , the CPE with a fixed IP address sends an ARP request message. After the ARP request message passes through A-Leaf and S-Leaf and reaches pUP1, if the main CP and the backup CP are performing a master-slave switch, pUP1 can obtain the circuit information of the ARP request message and verify the circuit information. After the verification is passed, an ARP response message is generated and a forwarding table entry is constructed, and the ARP response message is returned to the CPE through S-Leaf and A-Leaf, that is, the pUP in the embodiment of the present application can act as an agent to respond to the ARP request message. Afterwards, when the main CP and the backup CP complete the master-slave switch, reconciliation is performed with the switched main CP, that is, the original backup CP.
[0128] It can be seen that the embodiment of the present application can achieve that when the primary and standby switching is performed between CPs without changing the original structure of the network system, new dial-up users can successfully go online.
[0129] Based on the same inventive concept, corresponding to the above method embodiment, the present application embodiment provides a device for controlling user online, which is applied to a forwarding plane network element. Figure 8 As shown, the device includes: a receiving module 801, a checking module 802 and a responding module 803;
[0130] The receiving module 801 is used to receive an address resolution protocol ARP request message from a user terminal;
[0131] The verification module 802 is used to obtain the circuit information of the ARP request message received by the receiving module 801 and verify the circuit information when it is determined that the control plane network element is performing active / standby switching, where the circuit information includes the Internet Protocol IP address of the user terminal;
[0132] The response module 803 is used to establish a forwarding table entry for the user terminal and send an ARP response message to the user terminal if the verification module 802 passes the circuit information verification. The ARP response message includes the media access control address MAC of a forwarding port of the forwarding plane network element.
[0133] Optionally, the device further includes: an acquisition module and a sending module;
[0134] The acquisition module is further used to, after sending an ARP response message to the user terminal, acquire the online information of each local online terminal when detecting that the control plane network element completes the active / standby switching, the local online terminal is the user terminal corresponding to the forwarding table entry established by the forwarding plane network element, and the online information includes the user identity information;
[0135] A sending module, configured to send a reconciliation message to the switched main control plane network element, wherein the reconciliation message includes the online information of each local online terminal acquired by the acquisition module, so that the main control plane network element verifies the online information of each local online terminal;
[0136] The receiving module 801 is further configured to receive a deletion instruction sent by the main control plane network element, the deletion instruction including the session information of the first local online terminal, the deletion instruction being an instruction sent by the main control plane network element when the online information verification of the first local online terminal fails;
[0137] The responding module 803 is further configured to delete the forwarding entry corresponding to the session information of the first local online terminal in response to the deletion instruction received by the receiving module 801 .
[0138] Optionally, the device further comprises:
[0139] A setting module, used for setting an attribute tag for the established forwarding table entry after establishing the forwarding table entry for the user terminal, the attribute tag being used to indicate that the forwarding table entry is established by the forwarding plane network element;
[0140] Get the module, specifically for:
[0141] The online information of the user terminal corresponding to each forwarding table entry with the attribute mark is obtained.
[0142] Optionally, the receiving module 801 is further configured to receive a pass instruction sent by the main control plane network element after sending the reconciliation message to the switched main control plane network element, where the pass instruction includes session information of the second local online terminal, and the pass instruction is an instruction sent by the main control plane network element when the online information of the second local online terminal is verified;
[0143] The responding module 803 is further configured to delete the attribute tag of the forwarding table entry corresponding to the session information of the second local online terminal in response to the passing instruction received by the receiving module 801.
[0144] Optionally, the online information also includes circuit information of the ARP request message sent by the local online terminal.
[0145] Optionally, the reconciliation message also includes user information, session information and forwarding table entries corresponding to each local online terminal, so that the main control plane network element records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification.
[0146] Optionally, the verification module 802 is specifically used for:
[0147] Determine whether its own IP address and the user terminal's IP address belong to the same network segment;
[0148] If yes, it is determined that the circuit information verification has passed;
[0149] If not, it is determined that the circuit information verification has failed.
[0150] Optionally, the circuit information also includes a forwarding port identifier for receiving the ARP request message; the verification module 802 is specifically used to:
[0151] Determine whether its own IP address and the IP address of the user terminal belong to the same network segment, and determine whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port;
[0152] If all are yes, it is determined that the circuit information verification has passed;
[0153] If not all are yes, it is determined that the circuit information verification has failed.
[0154] The embodiment of the present invention also provides a forwarding plane network element, such as Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.
[0155] Memory 903, used for storing computer programs;
[0156] The processor 901 is used to implement the steps performed by the pUP in the above method embodiment when executing the program stored in the memory 903.
[0157] The communication bus mentioned in the forwarding plane network element can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0158] The communication interface is used for communication between the above forwarding plane network elements and other devices.
[0159] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0161] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods for controlling users to go online are implemented.
[0162] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes any one of the methods for controlling users to go online in the above embodiments.
[0163] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0164] 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0165] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0166] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for controlling users to go online, characterized in that: Applied to a forwarding plane network element, the method includes: Receive an Address Resolution Protocol (ARP) request message from a user terminal; When it is determined that the control plane network element is performing active / standby switching, obtaining circuit information of the ARP request message and verifying the circuit information, wherein the circuit information includes an Internet Protocol IP address of the user terminal; If the circuit information is verified to be passed, a forwarding table entry is established for the user terminal, and an ARP response message is sent to the user terminal. The ARP response message includes a media access control address MAC of a forwarding port of the forwarding plane network element.
2. The method according to claim 1, characterized in that After sending the ARP response message to the user terminal, the method further includes: When it is detected that the control plane network element completes the active / standby switching, online information of each local online terminal is obtained, where the local online terminal is a user terminal corresponding to the forwarding table entry established by the forwarding plane network element, and the online information includes user identity information; Sending a reconciliation message to the switched main control plane network element, wherein the reconciliation message includes online information of each local online terminal, so that the main control plane network element verifies the online information of each local online terminal; receiving a deletion instruction sent by the main control plane network element, wherein the deletion instruction includes session information of the first local online terminal, and the deletion instruction is an instruction sent by the main control plane network element when the online information verification of the first local online terminal fails; In response to the deletion instruction, the forwarding table entry corresponding to the session information of the first local online terminal is deleted.
3. The method according to claim 2, characterized in that After establishing a forwarding table entry for the user terminal, the method further includes: Setting an attribute tag for the established forwarding table entry, wherein the attribute tag is used to indicate that the forwarding table entry is established by the forwarding plane network element; The obtaining of online information of each local online terminal includes: The online information of the user terminal corresponding to each forwarding table entry having the attribute mark is obtained.
4. The method according to claim 3, characterized in that After sending the reconciliation message to the switched primary control plane network element, the method further includes: receiving a pass instruction sent by the main control plane network element, wherein the pass instruction includes session information of the second local online terminal, and the pass instruction is an instruction sent by the main control plane network element when the online information of the second local online terminal is verified to be successful; In response to the passing instruction, the attribute tag of the forwarding table entry corresponding to the session information of the second local online terminal is deleted.
5. The method according to any one of claims 2 to 4, characterized in that: in, The online information also includes circuit information of the ARP request message sent by the local online terminal.
6. The method according to any one of claims 2 to 4, characterized in that: in, The reconciliation message also includes user information, session information and forwarding table entries corresponding to each local online terminal, so that the main control plane network element records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification.
7. The method according to claim 1, characterized in that The verifying the circuit information includes: Determine whether its own IP address and the IP address of the user terminal belong to the same network segment; If yes, it is determined that the circuit information verification has passed; If not, it is determined that the circuit information verification has failed.
8. The method according to claim 1, characterized in that The circuit information also includes a forwarding port identifier for receiving the ARP request message; and verifying the circuit information includes: Determine whether its own IP address and the IP address of the user terminal belong to the same network segment, and determine whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port; If both are yes, it is determined that the circuit information verification has passed; If not all of them are yes, it is determined that the circuit information verification has failed.
9. A device for controlling users to go online, characterized in that: Applied to a forwarding plane network element, the device comprises: A receiving module, used for receiving an address resolution protocol ARP request message from a user terminal; A verification module, configured to obtain circuit information of the ARP request message received by the receiving module and verify the circuit information when it is determined that the control plane network element is performing active / standby switching, wherein the circuit information includes an Internet Protocol IP address of the user terminal; A response module is used to establish a forwarding table entry for the user terminal and send an ARP response message to the user terminal if the verification module passes the circuit information verification. The ARP response message includes a media access control address MAC of a forwarding port of the forwarding plane network element.
10. The device according to claim 9, characterized in that The device also includes: an acquisition module and a sending module; The acquisition module is further configured to, after sending the ARP response message to the user terminal, acquire online information of each local online terminal when it is detected that the control plane network element completes the active / standby switching, wherein the local online terminal is a user terminal corresponding to the forwarding table entry established by the forwarding plane network element, and the online information includes user identity information; The sending module is used to send a reconciliation message to the switched main control plane network element, wherein the reconciliation message includes the online information of each local online terminal acquired by the acquisition module, so that the main control plane network element verifies the online information of each local online terminal; The receiving module is further used to receive a deletion instruction sent by the main control plane network element, the deletion instruction includes session information of the first local online terminal, and the deletion instruction is an instruction sent by the main control plane network element when the online information verification of the first local online terminal fails; The responding module is further configured to delete the forwarding entry corresponding to the session information of the first local online terminal in response to the deletion instruction received by the receiving module.
11. The device according to claim 10, characterized in that The device also includes: A setting module, configured to, after the forwarding table entry is established for the user terminal, set an attribute tag for the established forwarding table entry, wherein the attribute tag is used to indicate that the forwarding table entry is established by the forwarding plane network element; The acquisition module is specifically used for: The online information of the user terminal corresponding to each forwarding table entry having the attribute mark is obtained.
12. The device according to claim 11, characterized in that The receiving module is further configured to receive a pass instruction sent by the main control plane network element after sending the reconciliation message to the switched main control plane network element, wherein the pass instruction includes session information of the second local online terminal, and the pass instruction is an instruction sent by the main control plane network element when the online information of the second local online terminal is verified; The responding module is further configured to delete the attribute tag of the forwarding table entry corresponding to the session information of the second local online terminal in response to the passing instruction received by the receiving module.
13. The device according to any one of claims 10 to 12, characterized in that: in, The online information also includes circuit information of the ARP request message sent by the local online terminal.
14. The device according to any one of claims 10 to 12, characterized in that: in, The reconciliation message also includes user information, session information and forwarding table entries corresponding to each local online terminal, so that the main control plane network element records the user information, session information and forwarding table entries corresponding to the local online terminal that has passed the online information verification.
15. The device according to claim 9, characterized in that The verification module is specifically used for: Determine whether its own IP address and the IP address of the user terminal belong to the same network segment; If yes, it is determined that the circuit information verification has passed; If not, it is determined that the circuit information verification has failed.
16. The device according to claim 9, characterized in that The circuit information also includes a forwarding port identifier for receiving the ARP request message; the verification module is specifically used to: Determine whether its own IP address and the IP address of the user terminal belong to the same network segment, and determine whether the forwarding port for receiving the ARP request message and the preset forwarding port corresponding to the IP address of the user terminal are the same forwarding port; If both are yes, it is determined that the circuit information verification has passed; If not all of them are yes, it is determined that the circuit information verification has failed.
17. A forwarding plane network element, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 8 when executing a program stored in a memory.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Dynamically handling IP address chunk sync failures
US12777327B2
