Dialing management method and device, electronic equipment and computer program product
By identifying and processing abnormal sessions through dial-up terminals within the edge cloud and dynamically adjusting sleep duration, the system solves the fault protection problem in centralized internet dial-up scenarios, achieving efficient traffic control and network service stability, and improving user experience.
Patent Information
- Application Number
- CN202511604294.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-04
- Publication Date
- 2026-02-03
AI Technical Summary
Existing technologies cannot provide effective fault protection in centralized dial-up Internet access scenarios, resulting in insufficient session management and fault protection capabilities when the network environment is complex and ever-changing.
By traversing user session information through dial-up terminals within the edge cloud, abnormal sessions are identified and data packets to be sent are generated. The sleep duration is dynamically adjusted to eliminate abnormalities, ensuring session continuity and stability and avoiding excessive load on the server during peak network periods.
It enables precise control of traffic, reduces network congestion, ensures efficient operation of dial-up services, enhances fault protection capabilities, and improves user experience and the continuity and stability of network services.
Smart Images

Figure CN121462333A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a dial management method and device, electronic equipment and computer program product. BACKGROUND
[0002] With the upgrading of infrastructure and the deep integration of home and business services in the era of gigabit networks, the popularity and deepening of digital life are further promoted. However, while enjoying the convenience of digital life, centralized Internet dialing needs arise, and traditional Internet authentication and management mechanisms, such as user authentication, session management, and audit traceability based on broadband dialing, have been difficult to meet the current complex and changing network environment needs. In particular, the session management capability and fault protection capability in the centralized Internet dialing scenario cannot be effectively implemented by traditional methods.
[0003] For the problem that the prior art cannot provide fault protection in the centralized Internet dialing scenario, no effective solution has been proposed so far. SUMMARY
[0004] Embodiments of the present application provide a dial management method, device, electronic equipment and computer program product to at least solve the technical problem that the prior art cannot provide fault protection in the centralized Internet dialing scenario.
[0005] According to an aspect of an embodiment of the present application, a dial management method is provided, comprising: traversing all user session information in the cache of a dial terminal, wherein the dial terminal is used to perform Ethernet over Point-to-Point Protocol dialing for multiple users in an edge cloud, and the user session information is used to represent the interaction process of each user based on Ethernet over Point-to-Point Protocol with a broadband remote access server; generating a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; determining a sleep duration of the dial terminal according to the generation duration consumed for generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and controlling the dial terminal to sleep according to the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dial terminal does not send the to-be-sent data packet during the sleep duration.
[0006] Optionally, the generating the data packet to be sent comprises: determining the user session information of the interactive process satisfying the preset abnormal condition as abnormal user session information; storing the abnormal user session information in an abnormal user queue; obtaining, from the abnormal user queue, user session information to be processed in a case that the dialing terminal is not in hibernation, wherein the user session information to be processed is the abnormal user session information output by the abnormal user queue; and generating the data packet to be sent according to the abnormal user session information.
[0007] Optionally, the preset abnormal condition comprises at least a dialing abnormal condition and a heartbeat abnormal condition, and the abnormal user session information comprises dialing abnormal user session information and heartbeat abnormal user session information; and the determining the user session information of the interactive process satisfying the preset abnormal condition as abnormal user session information comprises: determining the user session information of the interactive process satisfying the dialing abnormal condition as dialing abnormal user session information; and determining the user session information of the interactive process satisfying the heartbeat abnormal condition as heartbeat abnormal user session information.
[0008] Optionally, the determining the user session information of the interactive process satisfying the dialing abnormal condition as dialing abnormal user session information comprises: obtaining first user session information from a cache of the dialing terminal; analyzing the first user session information to obtain a dialing state of the interactive process, wherein the dialing state comprises at least a dialing failure; in a case that the dialing state is the dialing failure, determining a dialing time difference between a current time and a last dialing time according to the first user session information; and in a case that the dialing time difference is not less than a preset redial interval, determining the first user session information as dialing abnormal user session information.
[0009] Optionally, the dialing state further comprises a dialing success; and the method further comprises: in a case that the dialing state is the dialing success, determining a heartbeat time difference between a current time and a last heartbeat time and a continuous heartbeat number according to the first user session information; and in a case that the heartbeat time difference is not less than a preset heartbeat response duration and the continuous heartbeat number is not less than a preset heartbeat number, determining the first user session information as dialing abnormal user session information.
[0010] Optionally, the determining the second user session information as the heartbeat abnormal user session information comprises: obtaining second user session information from the cache of the dialing terminal; analyzing the second user session information to obtain a dialing state of the interaction process, wherein the dialing state at least comprises: dialing success; in the case that the dialing state is the dialing success, determining a heartbeat time difference between a current time and a last heartbeat time according to the second user session information, and determining a continuous heartbeat number; in the case that the heartbeat time difference is not less than a preset heartbeat response duration, and the continuous heartbeat number is less than a preset heartbeat number, determining the second user session information as the heartbeat abnormal user session information.
[0011] Optionally, the method further comprises: in the case that the dialing state is the dialing success, and the heartbeat time difference is not less than a preset heartbeat sending period, determining the second user session information as the heartbeat abnormal user session information.
[0012] According to another aspect of the embodiments of the present application, a dialing management device is further provided, comprising: a traversal module, configured to traverse all user session information in a cache of a dialing terminal, wherein the dialing terminal is configured to perform Ethernet over Point-to-Point Protocol (PPPoE) dialing of multiple users in an edge cloud, and the user session information is configured to represent an interaction process of each user based on the PPPoE with a Broadband Remote Access Server (BRAS); a generation module, configured to generate a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; a determination module, configured to determine a sleep duration of the dialing terminal according to a generation duration consumed for generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and a sleep module, configured to control the dialing terminal to sleep according to the sleep duration after sending the to-be-sent data packet to the BRAS, wherein the dialing terminal does not send the to-be-sent data packet in the sleep duration.
[0013] According to another aspect of the embodiments of the present application, an electronic device is further provided, comprising a memory and a processor, the memory stores a computer program, and the processor is configured to execute the dialing management method by using the computer program.
[0014] According to another aspect of the embodiments of the present application, a computer program product is further provided, comprising computer instructions, which are executed by a processor to implement the dialing management method.
[0015] The above-mentioned embodiments of the present application traverse all user session information through the dial-up terminal in the edge cloud, identify abnormal sessions in the interaction process between the point-to-point protocol (PPPOE) based on Ethernet and the broadband remote access server, and then generate a to-be-sent data packet to eliminate the abnormality, thereby ensuring the continuity and stability of the session. Moreover, the sleep duration of the dial-up terminal is dynamically adjusted according to the duration of generating the to-be-sent data packet, and the sleep duration increases with the increase of the generation duration, thereby avoiding the frequent sending of requests in the network busy period, reducing the possibility of network congestion, ensuring the efficient operation of the dial-up service, and achieving the technical effect of enhancing the fault protection capability on the basis of centralized management of a large number of user dial-up sessions, improving the user experience, ensuring the continuity and stability of the network service, and further solving the technical problem that the prior art cannot provide fault protection in the centralized Internet dial-up scene. BRIEF DESCRIPTION OF DRAWINGS
[0016] The accompanying drawings, which are included to provide a further understanding of the application and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
[0017] Figure 1 is a flowchart of a dial-up management method according to an embodiment of the present application;
[0018] Figure 2 is a schematic diagram of a PPPOE dial-up guarantee function module according to an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a PPPOE dial-up encapsulation and decapsulation process according to an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a PPPOE heartbeat encapsulation and decapsulation process according to an embodiment of the present application;
[0021] Figure 5 is a schematic diagram of a user PPPOE session redial process according to an embodiment of the present application;
[0022] Figure 6 is a schematic diagram of a user PPPOE session heartbeat process according to an embodiment of the present application;
[0023] Figure 7 is a schematic diagram of a user PPPOE session management process according to an embodiment of the present application;
[0024] Figure 8 is a schematic diagram of a dial-up management device according to an embodiment of the present application;
[0025] Figure 9is a structural block diagram of a computer terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the persons skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the persons skilled in the art without creative labor should belong to the protection scope of the present application.
[0027] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be exchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0028] First, some of the nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
[0029] VCPE (Virtual Customer Premises Equipment, virtual customer premises equipment): a way to replace proprietary hardware with software-based functions, separating the functions of traditional hardware, allowing remote service providers or management platforms to carry all software-based functions. vCPE runs on commercial hardware and virtual network functions (VNF), rather than proprietary ASICs that perform specific network functions.
[0030] PPPOE (Point-to-Point Protocol Over Ethernet, Point-to-Point Protocol over Ethernet): Point-to-Point Protocol over Ethernet, a network tunneling protocol that encapsulates Point-to-Point Protocol (PPP) in an Ethernet framework.
[0031] According to the embodiment of the present application, a dial management method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from here.
[0032] Figure 1 is a flowchart of a dial management method according to an embodiment of the present application, as shown in Figure 1 The method comprises the following steps:
[0033] Step S102, traversing all user session information in the cache of the dial terminal, wherein the dial terminal is used for Ethernet over Point-to-Point Protocol dialing of multiple users in the edge cloud, and the user session information is used to represent the interaction process of each user based on Ethernet over Point-to-Point Protocol with a broadband remote access server;
[0034] Step S104, generating a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality;
[0035] Step S106, determining a sleep duration of the dial terminal according to a generation duration consumed by generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration;
[0036] Step S108, after sending the to-be-sent data packet to the broadband remote access server, controlling the dial terminal to sleep according to the sleep duration, wherein the dial terminal does not send the to-be-sent data packet within the sleep duration.
[0037] The above embodiments of the present application, by traversing all user session information in the dial terminal in the edge cloud, identifying the session with an abnormal interaction process based on Ethernet over Point-to-Point Protocol (PPPOE) and a broadband remote access server, and then generating a to-be-sent data packet to eliminate the abnormality, ensure the continuity and stability of the session, and dynamically adjust the sleep duration of the dial terminal according to the duration of generating the to-be-sent data packet, the sleep duration increases with the increase of the generation duration, avoiding frequent sending of requests during busy network periods, realizing precise control of traffic control, thereby reducing the possibility of network congestion, ensuring efficient operation of dial service, realizing centralized management of a large number of user dial sessions, enhancing the technical effect of fault protection capability, improving user experience, ensuring the continuity and stability of network service, and further solving the technical problem that the prior art cannot provide fault protection in the centralized Internet dialing scenario.
[0038] In step S102, the dial-up terminal can be a PPPOE terminal in the edge cloud, used for PPPOE dial-up of multiple users; and the broadband remote access server can be a PPPOE server.
[0039] Figure 2 Fig. 1 is a schematic diagram of a functional module for PPPOE dial-up guarantee according to an embodiment of the present application. Figure 2 As shown in Fig. 1, the functional module includes a PPPOE dial-up configuration 11, a PPPOE packet encapsulation and decapsulation 12, a user PPPOE session management 13, a network card transceiving packet management 14, a PPPOE redial management 15, and a PPPOE heartbeat management 16.
[0040] Optionally, the PPPOE dial-up configuration 11 is configured to implement the following steps:
[0041] 1) record user configuration information: dial-up username, dial-up password, SVLAN, and CVLAN;
[0042] 2) initiate a dial-up operation according to the user configuration information.
[0043] Optionally, the PPPOE packet encapsulation and decapsulation 12 is configured to implement the following steps:
[0044] 1) construct a dial-up data packet according to the user configuration information;
[0045] 2) disassemble a PPPOE SERVER response packet;
[0046] 3) generate user dial-up session data in the process of disassembling the packet.
[0047] Optionally, the user PPPOE session management 13 is configured to implement the following steps:
[0048] 1) manage user current dial-up state, dial-up time, session, IP, and other data;
[0049] 2) monitor user session;
[0050] 3) analyze user characteristics, comprehensively judge, and trigger heartbeat and redial strategies.
[0051] Optionally, the network card transceiving packet management 14 is configured to implement the following steps:
[0052] 1) receive a data packet in response to the PPPOE SERVER;
[0053] 2) send a constructed PPPOE data packet;
[0054] 3) Calculate hash value according to SVLAN and CVLAN, put into data packet queue to process data packet.
[0055] Optionally, the PPPOE redial management 15 is used to implement the following steps:
[0056] 1) Manage redial queue, construct redial data packet, and initiate redial;
[0057] 2) Limit redial traffic according to system configuration to prevent PPPOE SERVER request congestion.
[0058] Optionally, the PPPOE heartbeat management 16 is used to implement the following steps:
[0059] 1) Manage heartbeat queue, construct heartbeat data packet, and initiate heartbeat request;
[0060] 2) Limit redial traffic according to system configuration to prevent PPPOE SERVER request congestion.
[0061] In the above step S102, the Ethernet point-to-point protocol dialing, i.e., PPPOE dialing, at least includes the following stages:
[0062] I. Discovery stage:
[0063] PADI (PPPOE Active Discover Initiation): A client (such as a computer or a router, or a dialing terminal in the present application) sends a broadcast packet to find available PPPOE services, which is called PADI. The destination address is FF: FF: FF: FF: FF: FF, indicating broadcasting to all devices.
[0064] PADO (PPPOE Active Discover Offer): One or more PPPOE servers receive the PADI and respond with a PADO packet containing their service information, such as user session information Session ID, MAC address, etc.
[0065] PADR (PPPOE Active Discover Request): The client selects a server from the received PADO and sends a PADR packet to the server to confirm the selection and request connection, and can carry some client configuration requirements.
[0066] PADS (PPPOE Active Discover Session-confirmation): After the server receives PADR, it sends a PADS packet in response to confirm the establishment of the PPPOE session, which contains the Session ID and other negotiation results.
[0067] II. PPP Session Stage:
[0068] LCP (Link Control Protocol) negotiation: After the PPPOE session is established, the PPP link control protocol starts working, and the link parameters are negotiated through LCP, such as maximum transmission unit MTU, authentication method (such as PAP or CHAP), etc.
[0069] Authentication phase: Next, enter the PPP data link layer authentication phase, the server will ask the user to provide a username and password for identity verification. This is usually done using PAP or CHAP protocol.
[0070] IPCP (Internet Protocol Control Protocol) negotiation: After authentication is successful, IP control protocol negotiation begins to determine IP address, subnet mask, DNS server, and other network parameters.
[0071] Network usage phase: After the IPCP negotiation is completed, the client can use the allocated IP address and network parameters to access the Internet. At this point, the PPP session has been completely established, and data can be transmitted bidirectionally between the client and the ISP.
[0072] III. Termination Stage:
[0073] PADT (PPPOE Active Discover Terminate): When the user ends the session, the client or server can send a PADT packet to terminate the PPPOE session and release resources.
[0074] Figure 3 is a PPPOE dialing encapsulation and decapsulation process according to an embodiment of the present application. As shown in Figure 3 In the function module of the PPPOE dialing guarantee, the steps of the dialing data packet encapsulation and decapsulation process of the PPPOE encapsulation and decapsulation are as follows:
[0075] S1201, according to the dialing configuration information, construct a two-layer PADI request packet (i.e. a data link layer PADI request packet), create a user session according to SVLAN and CVLAN, update the dialing time, and set the session state to "start dialing".
[0076] S1202, receiving the service end PADO response package and parsing, obtaining the source end mac address in the response package, finding the user session according to SVLAN and CVLAN, and updating the PPPOE SERVER mac address.
[0077] S1203, constructing a two-layer PADR request package (i.e. the data link layer PADR request package).
[0078] S1204, receiving the service end PADS response package and parsing, obtaining the SESSION ID in the response package, finding the user session according to SVLAN and CVLAN, and recording the SESSION ID allocated by the service end, so that the DISCOVER stage is completed, and the LCP negotiation is started.
[0079] S1205, waiting for the service end LCP request package and parsing, and obtaining the options carried by the package.
[0080] S1206, if the Authentication Protocol authentication mode in S1205 is MD5, and the MTU is less than the client MTU, then an ACK package is constructed, otherwise a REJECT package is constructed, and the session state is set to "dialing failure".
[0081] S1207, constructing a two-layer LCP negotiation package (i.e. the data link layer LCP negotiation package).
[0082] S1208, if the response package sent by the service end is NACK, then S1206 is repeated until success; if the response package sent by the service end is ACK, then the LCP negotiation is successful, and the CHAP authentication is started.
[0083] S1209, receiving the service end CHAP request package and parsing, and obtaining the Challenge value in the request package.
[0084] S1210, constructing a two-layer CHAP RESPONSE data package (i.e. the data link layer CHAP RESPONSE data package).
[0085] S1211, waiting for the service end CHAP response and parsing, if the service end response is CHAP FAIL, then the authentication fails, the session state is set to "dialing failure", and the dialing is ended; otherwise, the authentication is successful, and the NCP stage is performed.
[0086] S1212, waiting for the service end IPCP REQUSET request package and parsing.
[0087] S1213, a two-layer IP CP REQUSET request packet (i.e. a data link layer IP CP REQUSET request packet) is constructed.
[0088] S1214, an IP CP response packet is received and parsed, if the IP Address and the Primary DNS Server IP Address in the response packet are empty, S1213 is repeated, and the session state is set as "dialing failure"; otherwise, an IP CP response packet is constructed.
[0089] S1215, a two-layer IP CP RESPONSE response packet (i.e. a data link layer IP CP RESPONSE response packet) is constructed, a user session is searched according to the SVLAN and the CVLAN, and the server-assigned IP and DNS IP are recorded, and the session state is set as "dialing success".
[0090] S1216, when the server causes the user to abnormally log off, the PPPOE SERVER sends a PADT log-off packet. The SVLAN, the CVLAN and the SESSION ID in the PADT log-off packet are parsed, a user session is searched according to the SVLAN and the CVLAN, if the SESSION ID is inconsistent with the SESSION ID in the user session, the user session is discarded; otherwise, S1217 is executed.
[0091] S1217, a PADI request packet is constructed for the user abnormality, re-dialing is initiated, and the session state is set as "start dialing", and the dialing time is the current time.
[0092] Figure 4 is a PPPOE heartbeat packet encapsulation and decapsulation flow process diagram according to an embodiment of the present application, as shown in Figure 4 In the PPPOE dialing guarantee function module, the steps of the PPPOE packet encapsulation and decapsulation process for the heartbeat data packet are as follows:
[0093] S1218, a server ECHO REQUEST request packet is received and parsed, mainly including the SVLAN, the CVLAN and the SESSION ID, a user session is searched according to the SVLAN and the CVLAN, if the user session does not exist, no response is performed, otherwise, the heartbeat time in the user session is updated, the user session counter is set, the heartbeat number is set as 0, and S1217 is executed.
[0094] S1219, in the case of receiving the service end ECHO REQUEST request packet, need to return the reply packet to the service end (also known as PPPOE server). Specifically, the two-layer ECHO REPLY packet (also known as the data link layer ECHO REPLY packet) is constructed, and the construction items include: mainly including Ethernet, 802.1Q(SVLAN), 802.1Q(CVLAN), PPP-over-EthernetSession, Point-to-Point Protocol, PPP Link Control Protocol.
[0095] S1220, in the case of not receiving the service end ECHO REQUEST request packet, need to send the request packet to the service end (also known as PPPOE server). Specifically, the two-layer ECHO REQUEST request packet (also known as the data link layer ECHO REQUEST request packet) is constructed, mainly including Ethernet, 802.1Q(SVLAN), 802.1Q(CVLAN), PPP-over-EthernetSession, Point-to-Point Protocol, PPP Link Control Protocol. According to SVLAN, CVLAN, find user session, update this user session counter, the number of consecutive heartbeats is added by 1.
[0096] S1221, receive the service end ECHO REPLY request packet and analyze, mainly including SVLAN, CVLAN, SESSIONID. According to SVLAN, CVLAN, find user session, update the session heartbeat time. And set this user session counter, the number of heartbeats is reset to 0.
[0097] It should be noted that based on the dialing terminal in the edge cloud, in the case of PPPOE dialing, the current dialing state of the user and the heartbeat state between the dialing terminal and the server can be sensed and monitored in real time.
[0098] In the above step S104, the abnormal interaction process includes: dialing abnormality between the dialing terminal and the server, and heartbeat state abnormality between the dialing terminal and the server.
[0099] It should be noted that the dialing terminal can discover abnormal user session, actively sense user offline session, and redial for abnormal session; the dialing terminal and the server send heartbeat at regular intervals to maintain normal user session, and if the heartbeat sending is abnormal, it means that the interaction process between the dialing terminal and the server is abnormal.
[0100] In step S104, if the exception in the interaction process is a dialing exception, the to-be-sent data packet can be a redial request packet; if the exception in the interaction process is a heartbeat state exception, the to-be-sent data packet can be a heartbeat request packet.
[0101] In step S106, the dialing terminal can enter the sleep mode within the sleep duration, and the dialing terminal does not send the to-be-sent data packet to the PPPOE server in the sleep mode, but can receive the data returned by the PPPOE server in the sleep mode.
[0102] In step S106, the sleep duration of the dialing terminal can be determined according to the generation duration of the to-be-sent data packet. The longer the generation duration of the to-be-sent data packet, the longer the duration of the data packet returned by the PPPOE server for the to-be-sent data packet, and the sleep duration can be positively correlated with the generation duration of the to-be-sent data packet.
[0103] In step S108, after the dialing terminal sends the to-be-sent data packet to the PPPOE server, the dialing terminal can enter the sleep mode, and the dialing terminal can receive the data packet returned by the PPPOE server in the sleep mode, so that the sleep mechanism can reduce the resource consumption of the dialing terminal in the edge cloud and avoid excessive load on the PPPOE server.
[0104] The above embodiments of the present application can monitor the user session state in real time, quickly identify dialing exceptions and heartbeat exceptions, and then take corresponding measures such as automatic redial and heartbeat request to ensure the stability and continuity of network connection. The introduction of the sleep mechanism also reduces the resource consumption of the dialing terminal in the edge cloud and improves the overall performance of the system. The dynamic adjustment mechanism of the sleep duration avoids excessive load on the PPPOE server and ensures the overall performance and user experience of the system, realizes efficient management and protection of centralized Internet dialing in the edge cloud, effectively solves the problem of lack of effective management and protection means for high-concurrency user PPPOE dialing in the fusion edge network architecture environment, improves the network service quality, and reduces the operation and maintenance cost of the operator. It is especially suitable for high-concurrency dialing scenarios in large-scale home users and small commercial environments, and provides strong support for network services in the digital economy era.
[0105] As an optional embodiment, the user session information with an abnormal interaction process is used to generate the to-be-sent data packet, wherein the user information for eliminating the abnormality carried in the to-be-sent data packet includes: determining the user session information of the interaction process satisfying the preset abnormal condition as abnormal user session information; storing the abnormal user session information in an abnormal user queue; obtaining the to-be-processed user session information from the abnormal user queue in the case that the dialing terminal is not in the sleep state, wherein the to-be-processed user session information is the abnormal user session information output by the abnormal user queue; and generating the to-be-sent data packet according to the abnormal user session information.
[0106] In this embodiment, an effective abnormality detection and processing mechanism is designed for the abnormal session in the centralized processing of the PPPOE dialing process under the edge cloud architecture. Specifically, first, the abnormal user session information is identified and marked according to the abnormal features in the PPPOE interaction process, such as authentication failure, session timeout or no server response; next, these abnormal session information is collected and stored in an abnormal user queue to form a to-be-processed abnormal session list; in the case that the dialing terminal remains in an active state, i.e., does not enter the sleep mode, the to-be-processed user session information is extracted from the abnormal user queue, and according to this information, a new PPPOE request data packet is constructed to re-initiate the dialing process. This mechanism ensures that even in the case of unstable network connection or delayed server response, abnormal sessions can be detected in time and automatically redialed, thereby greatly improving the stability and reliability of user network connection, reducing the inconvenience caused by network interruption, and improving user experience.
[0107] It should be noted that the abnormal user queue can be a first-in-first-out queue.
[0108] The above embodiments of the present application use the abnormal user queue to process the abnormal user session information of multiple users, wherein one abnormal user session information in the abnormal user queue is processed after each sleep mode is exited, and the response data packet returned by the PPPOE server for the abnormal user session information is received after the sleep mode is entered again, thereby realizing the flow control strategy for the abnormal user session information of multiple users. Through the flow control strategy, the excessive consumption of network resources caused by the redial operation can be avoided, and the efficient operation of the system and the stable state of the network are maintained.
[0109] As an optional embodiment, the abnormal user queue includes a redial queue and a heartbeat queue, and the to-be-sent data packet includes a redial request packet and a heartbeat request packet, wherein the redial queue is used to generate the redial request packet, and the heartbeat queue is used to generate the heartbeat request packet.
[0110] In the above embodiments of the present application, for dialing abnormality, the abnormal user session information can be dialing abnormal user session information, which can be stored in a redial queue, and then according to the dialing abnormal user session information in the redial queue, a redial request packet can be generated; for heartbeat abnormality, the abnormal user session information can be heartbeat abnormal user session information, which can be stored in a heartbeat queue, and then according to the heartbeat abnormal user session information in the heartbeat queue, a heartbeat request packet can be generated.
[0111] As an optional embodiment, the preset abnormal condition at least includes a dialing abnormal condition and a heartbeat abnormal condition, and the abnormal user session information includes dialing abnormal user session information and heartbeat abnormal user session information; the user session information whose interaction process meets the preset abnormal condition is determined as abnormal user session information, including: the user session information whose interaction process meets the dialing abnormal condition is determined as dialing abnormal user session information; and the user session information whose interaction process meets the heartbeat abnormal condition is determined as heartbeat abnormal user session information.
[0112] In the above embodiments of the present application, by monitoring the user session interaction process in real time, the preset abnormal conditions can be accurately identified and responded, which at least cover two dimensions of dialing abnormality and heartbeat abnormality. When the user and the PPPOE server interact, if dialing abnormality is found, according to the SVLAN and CVLAN in the user configuration information, the specific session can be located and marked as dialing abnormal user session information, so as to trigger the redial strategy, aiming to quickly restore the user network connection; similarly, for heartbeat abnormality, the number of consecutive unanswered heartbeats is tracked, and when the number exceeds a preset threshold, the session is considered abnormal, and a redial measure is immediately taken to ensure the persistence of the session and the continuity of the network service.
[0113] It should be noted that, in order to avoid overloading the PPPOE server, the present application also designs a control mechanism for redial and heartbeat traffic, which limits the number of redial or heartbeat requests sent per second by calculating the sleep time, so as to ensure that the operation is within a safe and controllable range; through fine management and control, the stability of the network service and the user experience are significantly improved, which provides a strong guarantee for the high-concurrency centralized online dialing environment.
[0114] Figure 5 is a schematic diagram of a user PPPOE session redial process according to an embodiment of the present application, as shown in Figure 5 In the function module of the PPPOE dialing guarantee, the PPPOE redial management module is used to implement the following steps:
[0115] S1501, loop the redial queue to obtain user information to be dialed.
[0116] S1502, record the start time of the current dialing, and prepare for dialing.
[0117] S1503, according to the user session information, construct a two-layer PADI dialing request packet (i.e. a data link layer PADI dialing request packet), mainly including Ethernet, 802.1Q (SVLAN), 802.1Q (CVLAN), and PPP-over-Ethernet Discovery.
[0118] S1504: record the end time of the current dialing.
[0119] S1505, control the number of dialing records per second by means of "sleep time". The calculation method of sleep time is: 1000000 / (maximum number of dialing records per second-current dialing time consumption). The calculation method of current dialing time consumption is: (dialing end time-dialing start time).
[0120] Figure 6 is a schematic diagram of a user PPPOE session heartbeat process according to an embodiment of the application, as shown in the function module of PPPOE dialing guarantee, the module of PPPOE heartbeat management is used to realize the following steps: Figure 6
[0121] S1601, loop the heartbeat queue to obtain the user information to be sent.
[0122] S1602, record the start time of the current heartbeat, and prepare to send the heartbeat.
[0123] S1603, according to the user session information, construct a two-layer ECHO REQUEST request packet (i.e. a data link layer ECHO REQUEST request packet), mainly including Ethernet, 802.1Q (SVLAN), 802.1Q (CVLAN), PPP-over-Ethernet Session, Point-to-Point Protocol, and PPP Link Control Protocol.
[0124] S1604, record the end time of the current heartbeat.
[0125] S1605, control the number of heartbeat records per second by means of "sleep time". The calculation method of sleep time is: 1000000 / (maximum number of dialing records per second-current dialing time consumption). The calculation method of current dialing time consumption is: (dialing end time-dialing start time).
[0126] It should be noted that in the case of identifying the type of the interaction process exception, the type of the interaction process exception can be distinguished for the dialing exception condition and the heartbeat exception condition, and different ways are adopted for processing different types of exceptions; for example, the dialing exception condition and the heartbeat exception condition can be distinguished, the dialing exception condition can be redialed based on the dialing exception user session information, and the heartbeat exception condition can be recovered by using the heartbeat exception user session information.
[0127] As an optional embodiment, the user session information of the interaction process satisfying the dialing exception condition is determined as the dialing exception user session information, including: obtaining first user session information from the cache of the dialing terminal; analyzing the first user session information to obtain the dialing state of the interaction process, wherein the dialing state at least includes: dialing failure; in the case of the dialing state being dialing failure, determining the dialing time difference between the current time and the last dialing time according to the first user session information; in the case of the dialing time difference being not less than the preset redial interval, determining the first user session information as the dialing exception user session information.
[0128] The above embodiments of the present application automatically execute a series of judgment and processing processes to ensure the stability of the PPPOE dialing when the user session state is monitored to be inconsistent with the expectation. Specifically, first, the first user session information is extracted from the cache of the VCPE module (i.e., the dialing terminal), and then the information is analyzed in depth to determine the current dialing state, especially to identify whether it is in the "dialing failure" state. Once it is confirmed that the user session is in the dialing failure state, the system immediately calculates the time difference between the current time and the last time when the dialing is attempted, and evaluates whether the time difference reaches the preset redial interval. If the time difference meets or exceeds the preset redial interval, the first user session information is marked as the dialing exception user session information, and then the subsequent automatic redial process is triggered to restore the normal state of the user network connection. Through the intelligent judgment and automatic response mechanism, the service interruption caused by network fluctuations can be effectively reduced, and the user experience and the reliability of network service are improved.
[0129] The setting of the preset redial interval in the above embodiments of the present application can avoid the problems of network resource waste and PPPOE server overload caused by frequent redialing, and realizes effective management and utilization of resources.
[0130] Optionally, the present application can also flexibly adapt to different network environments and user needs, and optimize the stability and efficiency of network connection by adjusting the redial interval and other parameters.
[0131] It should be noted that the first user session information can be obtained from the user session information recorded in the cache.
[0132] As an optional embodiment, the dialing state further comprises: dialing success; the method further comprises: in the case that the dialing state is dialing success, determining a heartbeat time difference between the current time and the last heartbeat time according to the first user session information, and determining the number of continuous heartbeats; in the case that the heartbeat time difference is not less than the preset heartbeat response duration, and the number of continuous heartbeats is not less than the preset heartbeat number, determining that the first user session information is the dialing abnormal user session information.
[0133] The above embodiments of the present application further improve the PPPOE session management mechanism. When the user session state is dialing success, the heartbeat time difference between the current time and the last heartbeat time is continuously monitored and recorded according to the first user session information, and the number of continuous heartbeats is tracked. Once it is found that the heartbeat time difference is not less than the preset heartbeat response duration, and the number of continuous heartbeats reaches or exceeds the preset heartbeat number threshold, the session is automatically identified as dialing abnormal, and the redial mechanism is started immediately. This strategy not only enhances the real-time monitoring of the user session state, but also ensures that the redial measure can be taken quickly in the case of abnormal interruption of network connection, thereby maximizing the stability and continuity of user network connection.
[0134] The above embodiments of the present application can flexibly adjust the redial strategy according to different network environments and user needs by adjusting the heartbeat response duration and the heartbeat number threshold, thereby improving the overall quality of network service and user satisfaction.
[0135] Optionally, the present application can also use more complex algorithms or additional parameters to further optimize the heartbeat detection and redial mechanism to adapt to more extensive application scenarios and higher stability requirements.
[0136] As an optional embodiment, determining the user session satisfying the heartbeat abnormal condition in the interactive process as the heartbeat abnormal user session comprises: obtaining second user session information from the cache of the dialing terminal; analyzing the second user session information to obtain the dialing state of the interactive process, wherein the dialing state at least comprises: dialing success; in the case that the dialing state is dialing success, determining a heartbeat time difference between the current time and the last heartbeat time according to the second user session information, and determining the number of continuous heartbeats; in the case that the heartbeat time difference is not less than the preset heartbeat response duration, and the number of continuous heartbeats is less than the preset heartbeat number, determining that the second user session information is the heartbeat abnormal user session information.
[0137] The above embodiments of the present application further improve the heartbeat abnormality detection mechanism, and realize accurate monitoring of user sessions. Specifically, second user session information is extracted from the cache, and a dialing state is analyzed based on the information, including but not limited to "dialing success". When it is confirmed that the user is in the "dialing success" state, the time difference between the current time and the last heartbeat time, i.e., the heartbeat time difference, is automatically calculated, and the number of consecutive times of not receiving a heartbeat response is counted. If the heartbeat time difference exceeds the preset heartbeat response time threshold, and the number of consecutive heartbeats has not reached the preset upper limit of the number of heartbeats, it is determined that the user session is a heartbeat abnormality user session, and appropriate measures are taken accordingly. The design of this mechanism aims to timely discover and handle the case of missing heartbeat signals, effectively avoid unnecessary session termination caused by temporary communication interruption, and improve the stability of network connection and user experience.
[0138] Optionally, the present application can also use more complex heartbeat modes or algorithms to adapt to network fluctuations in different environments and ensure the continuity of user sessions and service quality.
[0139] Optionally, the preset heartbeat response time can be a maximum time interval for the dialing terminal to receive a heartbeat data packet returned by the PPPOE server.
[0140] It should be noted that the second user session information can be obtained from the cached user session information, and the second session information can also be the first user session information. In the case where the first user session information does not satisfy the dialing abnormality condition, the first user session information can be used as the second user session information, and then the heartbeat abnormality condition is detected.
[0141] As an optional embodiment, the method further comprises: in the case where the dialing state is dialing success, and the heartbeat time difference is not less than the preset heartbeat sending period, determining that the second user session information is heartbeat abnormality user session information.
[0142] When the user session state is detected to be dialing success and the heartbeat time difference reaches or exceeds the preset heartbeat sending period, the above embodiments of the present application can automatically identify and define the user session as heartbeat abnormality user session information. The implementation of this mechanism is based on real-time monitoring and analysis of user session data, and by comparing the difference between the current time and the last heartbeat response time with the preset heartbeat sending period, the abnormality, i.e., the case of heartbeat response delay or loss, can be discovered in time.
[0143] The above embodiments of the present application will take targeted strategies for sessions marked as heartbeat abnormalities, such as actively sending heartbeat requests or triggering a redial mechanism, to ensure the continuity of user sessions and the stability of network connection. In this way, not only the sensitivity of monitoring the state of user sessions is improved, but also the response speed of the system is enhanced, which can more accurately and timely handle heartbeat abnormalities, thereby effectively ensuring the smoothness of user network experience and reducing the risk of network interruption caused by heartbeat abnormalities.
[0144] Optionally, the preset heartbeat sending period can be a maximum time interval for the dial-up terminal to send a heartbeat data packet to the PPPOE server.
[0145] Figure 7 is a schematic diagram of a user PPPOE session management process according to an embodiment of the present application, as shown in Figure 7 The steps are as follows:
[0146] S1301, all user sessions are obtained from the cache, and are processed in a loop.
[0147] S1302, whether the current user satisfies "dial-up failure and satisfies redial condition", if yes, put it into the redial queue; if no, execute S1303. The specific judgment logic of "dial-up failure and satisfies redial condition" is that the current dial-up state is "dial-up failure", and "current time - last dial-up time >= redial interval".
[0148] S1303, whether the current user satisfies "whether multiple heartbeat sending and no response are received", if yes, put it into the redial queue; if no, execute S1304. The specific judgment logic of "whether multiple heartbeat sending and no response are received" is that the current dial-up state is "dial-up success", and "current time - last heartbeat time >= heartbeat response timeout time", and "continuous heartbeat number >= heartbeat number threshold".
[0149] S1304, whether the current user satisfies "heartbeat response timeout", if yes, put it into the heartbeat queue; if no, execute S1305. The specific judgment logic of "heartbeat response timeout" is that the current dial-up state is "dial-up success", and "current time - heartbeat time >= heartbeat response timeout time", and "continuous heartbeat number < heartbeat sending threshold".
[0150] S1305, whether the current user satisfies "heartbeat time is up", if yes, put it into the heartbeat queue. The specific judgment logic of "heartbeat time is up" is that the current dial-up is not "dial-up success", and "current time - last heartbeat time >= heartbeat period time".
[0151] S1306, the redial queue stores user session information to be redialed, and the "PPPOE redial management" module is responsible for obtaining data from the to-be-redialed queue and performing redialing operation.
[0152] S1307, the heartbeat queue stores user session information to be sent heartbeat, and the "PPPOE heartbeat management" module is responsible for obtaining data from the to-be-heartbeat queue and sending heartbeat.
[0153] The present application aims to solve the high-concurrency home user dialing management challenge and potential network interruption risk faced by the VCPE module in the edge cloud when carrying the PPPOE dialing function, and provides a guarantee method for batch PPPOE dialing of the VCPE in the cloud, which can automatically redial when dialing is abnormal, thereby reducing the impact on users. When the user abnormally drops the line, real-time sensing can be realized to achieve redialing in the offline scenario. The dialing function of the home optical modem is weakened and moved to the cloud, realizing the batch dialing function of the home terminal in the edge cloud. When the traditional Internet business is migrated to the converged edge cloud business, the optical modem does not need to be replaced, greatly reducing the operating cost. Since the VCPE module is deployed in the edge cloud, its stability and reliability are usually high, and it is easy to troubleshoot and repair.
[0154] To achieve the above purpose, the present application provides a guarantee scheme for improving the stability of PPPOE dialing under a converged edge network architecture. The scheme can real-time sense and monitor the current dialing state of the user. Once dialing abnormality is detected, an automatic redial mechanism is triggered to quickly restore the user's network connection, thereby effectively reducing the inconvenience and loss caused by dialing abnormality. Through this scheme, not only the reliability and stability of network service can be significantly improved, but also the user experience can be enhanced, providing a more secure and smooth online environment for home and small business users under the converged edge network architecture, and promoting the continuous optimization and upgrading of network service in the digital economy era.
[0155] The technical scheme provided by the present application provides an effective guarantee means for PPPOE dialing based on the edge cloud. Abnormal user sessions are found, and user offline sessions are actively sensed. The abnormal sessions are redialed, and heartbeats are sent regularly to maintain normal user sessions.
[0156] It should be noted that the double-line detection mechanism based on heartbeat packets provided by the present application considers that the user session is normal as long as one end of the dialing server to VCPE and VCPE to dialing server has a heartbeat. When there is no heartbeat from the dialing server to the VCPE within a specified time, the VCPE will try to send a heartbeat to the dialing server, and if no heartbeat response is received after multiple consecutive attempts, the user session is considered abnormal.
[0157] It should be noted that the abnormal redial mechanism based on the dialing state provided in the application contains active sensing of user abnormal drop. The abnormal drop is actively redialed; when the VCPE continuously sends heartbeats and does not receive a response from the dialing server, the redial is actively triggered.
[0158] The above embodiments of the application have the ability to finely manage the dialing instances in the cloud, to realize comprehensive monitoring and efficient management of the dialing instances, while ensuring the safety and stability of the user network experience. Through technical innovation, the higher level expectations of users for digital life are met, and the digital economy is promoted to a more mature, efficient and safe direction.
[0159] According to the embodiments of the application, a dialing management device embodiment is also provided. It should be noted that the dialing management device can be used to execute the dialing management method in the embodiments of the application, and the dialing management method in the embodiments of the application can be executed in the dialing management device.
[0160] Figure 8 is a schematic diagram of a dialing management device according to an embodiment of the application, as shown in Figure 8 The device can include: a traversal module 82, configured to traverse all user session information in the cache of the dialing terminal, wherein the dialing terminal is used to dial multiple users in the edge cloud Ethernet over Point-to-Point Protocol, and the user session information is used to represent the interaction process of each user based on Ethernet over Point-to-Point Protocol with a broadband remote access server; a generation module 84, configured to generate a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; a determination module 86, configured to determine a sleep duration of the dialing terminal according to a generation duration consumed by generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and a sleep module 88, configured to control the dialing terminal to sleep for the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dialing terminal does not send the to-be-sent data packet in the sleep duration.
[0161] It should be noted that the traversal module 82 in this embodiment can be used to execute step S102 in the embodiments of the application, the generation module 84 in this embodiment can be used to execute step S104 in the embodiments of the application, the determination module 86 in this embodiment can be used to execute step S106 in the embodiments of the application, and the sleep module 88 in this embodiment can be used to execute step S108 in the embodiments of the application. The above modules and the examples and application scenarios realized by the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0162] The above embodiments of the present application traverse all user session information through the dial-up terminal in the edge cloud, identify abnormal sessions in the interaction process between the point-to-point protocol (PPPOE) based on Ethernet and the broadband remote access server, and then generate a to-be-sent data packet to eliminate the abnormality, thereby ensuring the continuity and stability of the session. Moreover, the sleep duration of the dial-up terminal is dynamically adjusted according to the duration of the generated to-be-sent data packet, and the sleep duration increases with the increase of the generated duration, thereby avoiding the excessive load of the server caused by frequent sending of requests during a busy network period, achieving accurate control of traffic, reducing the possibility of network congestion, ensuring the efficient operation of the dial-up service, and achieving the technical effect of enhancing the fault protection capability on the basis of centralized management of a large number of dial-up sessions, improving the user experience, ensuring the continuity and stability of the network service, and further solving the technical problem that the prior art cannot provide fault protection in the centralized Internet dial-up scenario.
[0163] As an optional embodiment, the generating module comprises: a determining unit configured to determine the user session information that satisfies the preset abnormal condition in the interaction process as abnormal user session information; a storage unit configured to store the abnormal user session information in an abnormal user queue; an obtaining unit configured to obtain to-be-processed user session information from the abnormal user queue in the case that the dial-up terminal does not sleep, wherein the to-be-processed user session information is the abnormal user session information output by the abnormal user queue; and a generating unit configured to generate a to-be-sent data packet according to the abnormal user session information.
[0164] As an optional embodiment, the preset abnormal condition at least comprises a dial-up abnormal condition and a heartbeat abnormal condition, and the abnormal user session information comprises dial-up abnormal user session information and heartbeat abnormal user session information; the determining unit comprises: a first determining subunit configured to determine the user session information that satisfies the dial-up abnormal condition in the interaction process as dial-up abnormal user session information; and a second determining subunit configured to determine the user session information that satisfies the heartbeat abnormal condition in the interaction process as heartbeat abnormal user session information.
[0165] As an optional embodiment, the first determining subunit comprises: a first obtaining subunit configured to obtain first user session information from the cache of the dial-up terminal; a first analyzing subunit configured to analyze the first user session information to obtain a dial-up state of the interaction process, wherein the dial-up state at least comprises dial-up failure; a third determining subunit configured to determine a dial-up time difference between the current time and the last dial-up time according to the first user session information in the case that the dial-up state is dial-up failure; and a fourth determining subunit configured to determine the first user session information as dial-up abnormal user session information in the case that the dial-up time difference is not less than a preset redial interval.
[0166] As an optional embodiment, the dialing state further comprises: dialing success; the apparatus further comprises: a fifth determining subunit, configured to, in a case where the dialing state is dialing success, determine a heartbeat time difference between a current time and a last heartbeat time according to the first user session information, and determine a continuous heartbeat number; a sixth determining subunit, configured to, in a case where the heartbeat time difference is not less than a preset heartbeat response duration, and the continuous heartbeat number is not less than a preset heartbeat number, determine that the first user session information is dialing abnormal user session information.
[0167] As an optional embodiment, the second determining subunit comprises: a second acquiring subunit, configured to acquire the second user session information from a cache of the dialing terminal; a second analyzing subunit, configured to analyze the second user session information to obtain a dialing state of the interaction process, wherein the dialing state at least comprises: dialing success; a seventh determining subunit, configured to, in a case where the dialing state is dialing success, determine a heartbeat time difference between a current time and a last heartbeat time according to the second user session information, and determine a continuous heartbeat number; and an eighth determining subunit, configured to, in a case where the heartbeat time difference is not less than a preset heartbeat response duration, and the continuous heartbeat number is less than a preset heartbeat number, determine that the second user session information is heartbeat abnormal user session information.
[0168] As an optional embodiment, the apparatus further comprises: a ninth determining subunit, configured to, in a case where the dialing state is dialing success, and the heartbeat time difference is not less than a preset heartbeat sending period, determine that the second user session information is heartbeat abnormal user session information.
[0169] Embodiments of the present application can provide an electronic device, which can be a computer terminal, and the computer terminal can be any one of computer terminal devices in a computer terminal group. Alternatively, in the present embodiment, the computer terminal can be replaced by a mobile terminal or other terminal device.
[0170] Alternatively, in the present embodiment, the computer terminal can be located in at least one network device of a plurality of network devices of a computer network.
[0171] In the embodiment, the computer terminal can execute program codes of the following steps in the dial-up management method: traversing all user session information in a cache of a dial-up terminal, wherein the dial-up terminal is configured to perform point-to-point protocol over Ethernet dial-up for multiple users in an edge cloud, and the user session information is configured to represent an interaction process of each user based on point-to-point protocol over Ethernet and a broadband remote access server; generating a to-be-sent data packet according to user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; determining a sleep duration of the dial-up terminal according to a generation duration consumed by generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and controlling the dial-up terminal to sleep according to the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dial-up terminal does not send the to-be-sent data packet in the sleep duration.
[0172] Figure 9 is a structural block diagram of a computer terminal according to an embodiment of the present application, as shown in the figure, the computer terminal 90 can include one or more (only one is shown in the figure) processors 92 and a memory 94. Figure 9
[0173] The memory can be configured to store software programs and modules, such as program instructions / modules corresponding to the dial-up management method and device in the embodiment of the present application. The processor executes the software programs and modules stored in the memory to perform various functional applications and data processing, that is, to implement the dial-up management method described above. The memory can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory can further include a memory remotely arranged with respect to the processor, and the remote memory can be connected to the terminal 90 through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0174] The processor can call information and application programs stored in the memory through the transmission device to perform the following steps: traversing all user session information in the cache of the dialing terminal, wherein the dialing terminal is used for Ethernet over Point-to-Point Protocol dialing of multiple users in the edge cloud, and the user session information is used to represent the interaction process of each user based on the Ethernet over Point-to-Point Protocol with the broadband remote access server; generating a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; determining a sleep duration of the dialing terminal according to a generation duration consumed by generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and controlling the dialing terminal to sleep according to the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dialing terminal does not send the to-be-sent data packet in the sleep duration.
[0175] Optionally, the processor can further execute program codes of the following steps: determining the user session information with the interaction process meeting the preset abnormal condition as abnormal user session information; storing the abnormal user session information in an abnormal user queue; obtaining to-be-processed user session information from the abnormal user queue in the case that the dialing terminal does not sleep, wherein the to-be-processed user session information is the abnormal user session information output by the abnormal user queue; and generating the to-be-sent data packet according to the abnormal user session information.
[0176] Optionally, the preset abnormal condition at least includes a dialing abnormal condition and a heartbeat abnormal condition, and the abnormal user session information includes dialing abnormal user session information and heartbeat abnormal user session information. The processor can further execute program codes of the following steps: determining the user session information with the interaction process meeting the dialing abnormal condition as the dialing abnormal user session information; and determining the user session information with the interaction process meeting the heartbeat abnormal condition as the heartbeat abnormal user session information.
[0177] Optionally, the processor can further execute program codes of the following steps: obtaining first user session information from the cache of the dialing terminal; analyzing the first user session information to obtain a dialing state of the interaction process, wherein the dialing state at least includes a dialing failure; in the case that the dialing state is the dialing failure, determining a dialing time difference between a current time and a last dialing time according to the first user session information; and in the case that the dialing time difference is not less than a preset redial interval, determining the first user session information as the dialing abnormal user session information.
[0178] Optionally, the dialing status also includes: dialing successful. The processor can also execute program code with the following steps: when the dialing status is dialing successful, determine the heartbeat time difference between the current time and the last heartbeat time based on the first user session information, and determine the number of consecutive heartbeats; when the heartbeat time difference is not less than the preset heartbeat response time and the number of consecutive heartbeats is not less than the preset number of heartbeats, determine the first user session information as dialing abnormal user session information.
[0179] Optionally, the processor may also execute program code that performs the following steps: obtaining second user session information from the dialing terminal's cache; analyzing the second user session information to obtain the dialing status of the interaction process, wherein the dialing status includes at least: dialing successful; if the dialing status is dialing successful, determining the heartbeat time difference between the current time and the last heartbeat time based on the second user session information, and determining the number of consecutive heartbeats; if the heartbeat time difference is not less than the preset heartbeat response time and the number of consecutive heartbeats is less than the preset number of heartbeats, determining the second user session information as heartbeat abnormal user session information.
[0180] Optionally, the processor may also execute program code that performs the following steps: when the dialing status is successful and the heartbeat time difference is not less than the preset heartbeat sending period, determine that the second user session information is heartbeat abnormal user session information.
[0181] Those skilled in the art will understand that Figure 9 The structure shown is for illustrative purposes only. The computer terminal can also be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a mobile internet device (MID), a PAD, and other terminal devices. Figure 9 This does not limit the structure of the aforementioned electronic device. For example, the computer terminal 90 may also include components that are more... Figure 9 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 9 The different configurations shown.
[0182] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a computer program instructing the hardware related to the terminal device. The computer program can be stored in a non-volatile medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0183] The embodiment of the present application also provides a non-volatile storage medium. Optionally, in the embodiment, the non-volatile storage medium can be used to save the program code executed by the dial-up management method provided by the above embodiment.
[0184] Optionally, in the embodiment, the non-volatile storage medium can be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0185] Optionally, in the embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: traversing all user session information in the cache of the dial-up terminal, wherein the dial-up terminal is used for performing Ethernet over Point-to-Point Protocol dial-up of multiple users in the edge cloud, and the user session information is used to represent the interaction process of each user based on the Ethernet over Point-to-Point Protocol with the broadband remote access server; generating a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; determining a sleep duration of the dial-up terminal according to a generation duration consumed for generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; and controlling the dial-up terminal to sleep for the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dial-up terminal does not send the to-be-sent data packet in the sleep duration.
[0186] Optionally, in the embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: storing the abnormal user session information in the abnormal user queue; obtaining to-be-processed user session information from the abnormal user queue in the case that the dial-up terminal does not sleep, wherein the to-be-processed user session information is the abnormal user session information output by the abnormal user queue; and generating the to-be-sent data packet according to the abnormal user session information.
[0187] Optionally, in the embodiment, the preset abnormal condition at least includes a dial-up abnormal condition and a heartbeat abnormal condition, the abnormal user session information includes dial-up abnormal user session information and heartbeat abnormal user session information, and the non-volatile storage medium is configured to store program code for performing the following steps: determining the user session information whose interaction process meets the dial-up abnormal condition as the dial-up abnormal user session information; and determining the user session information whose interaction process meets the heartbeat abnormal condition as the heartbeat abnormal user session information.
[0188] Optionally, in the embodiment, the nonvolatile storage medium is configured to store program code for performing the following steps: obtaining the first user session information from the cache of the dialing terminal; analyzing the first user session information to obtain the dialing state of the interactive process, wherein the dialing state at least includes: dialing failure; in the case that the dialing state is dialing failure, determining a dialing time difference between the current time and the last dialing time according to the first user session information; and in the case that the dialing time difference is not less than a preset redial interval, determining that the first user session information is abnormal dialing user session information.
[0189] Optionally, in the embodiment, the dialing state further includes: dialing success, and the nonvolatile storage medium is configured to store program code for performing the following steps: in the case that the dialing state is dialing success, determining a heartbeat time difference between the current time and the last heartbeat time according to the first user session information, and determining a continuous heartbeat number; and in the case that the heartbeat time difference is not less than a preset heartbeat response duration, and the continuous heartbeat number is not less than a preset heartbeat number, determining that the first user session information is abnormal dialing user session information.
[0190] Optionally, in the embodiment, the nonvolatile storage medium is configured to store program code for performing the following steps: obtaining the second user session information from the cache of the dialing terminal; analyzing the second user session information to obtain the dialing state of the interactive process, wherein the dialing state at least includes: dialing success; in the case that the dialing state is dialing success, determining a heartbeat time difference between the current time and the last heartbeat time according to the second user session information, and determining a continuous heartbeat number; and in the case that the heartbeat time difference is not less than a preset heartbeat response duration, and the continuous heartbeat number is less than a preset heartbeat number, determining that the second user session information is heartbeat abnormal user session information.
[0191] Optionally, in the embodiment, the nonvolatile storage medium is configured to store program code for performing the following steps: in the case that the dialing state is dialing success, and the heartbeat time difference is not less than a preset heartbeat sending period, determining that the second user session information is heartbeat abnormal user session information.
[0192] The embodiment of the present application further provides a computer program product, comprising a computer program. Optionally, in the embodiment, the computer program is executed by a processor to realize the steps of the dialing management method provided by the above-mentioned embodiments.
[0193] The above-mentioned serial numbers of the embodiments of the present application only for description, not represent the pros and cons of the embodiments.
[0194] In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0195] In several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other manners. For example, the described unit embodiments are merely illustrative, and the division of units can be different from the above. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, and electrical or other forms.
[0196] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.
[0197] In addition, each functional unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0198] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a non-volatile storage medium. Based on this understanding, the technical solutions of the present application, essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a non-volatile storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned non-volatile storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0199] The above description is merely the preferred embodiments of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A dial management method characterized by comprising: The method comprises the following steps: traversing all user session information in a cache of a dialing terminal, wherein the dialing terminal is used for Ethernet over Point-to-Point Protocol dialing of multiple users in an edge cloud, and the user session information is used to represent an interaction process of each user based on Ethernet over Point-to-Point Protocol with a broadband remote access server; generating a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; determining a sleep duration of the dialing terminal according to a generation duration consumed for generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; controlling the dialing terminal to sleep for the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dialing terminal does not send the to-be-sent data packet in the sleep duration.
2. The method of claim 1, wherein, The step of generating a to-be-sent data packet according to the user session information with an abnormal interaction process comprises the following steps: determining the user session information with a preset abnormal condition as abnormal user session information; storing the abnormal user session information in an abnormal user queue; acquiring to-be-processed user session information from the abnormal user queue in the case that the dialing terminal does not sleep, wherein the to-be-processed user session information is the abnormal user session information output by the abnormal user queue; generating the to-be-sent data packet according to the abnormal user session information.
3. The method of claim 2, wherein, The preset abnormal condition at least comprises a dialing abnormal condition and a heartbeat abnormal condition, the abnormal user session information comprises dialing abnormal user session information and heartbeat abnormal user session information, and the step of determining the user session information with a preset abnormal condition as abnormal user session information comprises the following steps: determining the user session information with the dialing abnormal condition as dialing abnormal user session information; determining the user session information with the heartbeat abnormal condition as heartbeat abnormal user session information.
4. The method of claim 3, wherein, The step of determining the user session information with the dialing abnormal condition as dialing abnormal user session information comprises the following steps: acquiring first user session information from the cache of the dialing terminal; analyzing the first user session information to obtain a dialing state of the interaction process, wherein the dialing state at least comprises dialing failure; in the case that the dialing state is the dialing failure, determining a dialing time difference between a current time and a last dialing time according to the first user session information; in the case that the dialing time difference is not less than a preset redial interval, determining the first user session information as dialing abnormal user session information.
5. The method of claim 4, wherein, The dialing state further comprises dialing success, and the method further comprises the following steps: in the case that the dialing state is the dialing success, determining a heartbeat time difference between a current time and a last heartbeat time and determining a continuous heartbeat number according to the first user session information. In a case where the heartbeat time difference is not less than a preset heartbeat response duration and the continuous heartbeat number is not less than a preset heartbeat number, the first user session information is determined as abnormal user session information.
6. The method of claim 3, wherein, The user session of the interaction process satisfying the heartbeat abnormal condition is determined as a heartbeat abnormal user session, including: Obtaining second user session information from a cache of the dialing terminal; Analyzing the second user session information to obtain a dialing state of the interaction process, wherein the dialing state at least includes dialing success; In a case where the dialing state is the dialing success, determining a heartbeat time difference between a current time and a last heartbeat time according to the second user session information, and determining a continuous heartbeat number; In a case where the heartbeat time difference is not less than a preset heartbeat response duration and the continuous heartbeat number is less than a preset heartbeat number, the second user session information is determined as heartbeat abnormal user session information.
7. The method of claim 6, wherein, The method further includes: In a case where the dialing state is the dialing success and the heartbeat time difference is not less than a preset heartbeat sending period, the second user session information is determined as heartbeat abnormal user session information.
8. A dial management apparatus, characterized by comprising: Including: A traversal module, configured to traverse all user session information in a cache of a dialing terminal, wherein the dialing terminal is used to perform Ethernet over Point-to-Point Protocol dialing of a plurality of users in an edge cloud, and the user session information is used to represent an interaction process of each user based on Ethernet over Point-to-Point Protocol with a broadband remote access server; A generation module, configured to generate a to-be-sent data packet according to the user session information with an abnormal interaction process, wherein the to-be-sent data packet carries user information for eliminating the abnormality; A determination module, configured to determine a sleep duration of the dialing terminal according to a generation duration consumed for generating the to-be-sent data packet, wherein the sleep duration is positively correlated with the generation duration; A sleep module, configured to control the dialing terminal to sleep according to the sleep duration after sending the to-be-sent data packet to the broadband remote access server, wherein the dialing terminal does not send the to-be-sent data packet in the sleep duration.
9. An electronic device comprising a memory and a processor, characterized in that The memory stores a computer program, and the processor is configured to execute the dialing management method of any one of claims 1 to 7 through the computer program.
10. A computer program product comprising computer instructions, characterized in that, The computer instructions are executed by the processor to implement the dialing management method of any one of claims 1 to 7.