CN116614412A - Terminal abnormality repairing method, device, system, storage medium and electronic equipment - Google Patents

Terminal abnormality repairing method, device, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN116614412A
CN116614412A CN202210122704.0A CN202210122704A CN116614412A CN 116614412 A CN116614412 A CN 116614412A CN 202210122704 A CN202210122704 A CN 202210122704A CN 116614412 A CN116614412 A CN 116614412A
Authority
CN
China
Prior art keywords
gateway
gateway node
terminal
node
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210122704.0A
Other languages
Chinese (zh)
Inventor
王水亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202210122704.0A priority Critical patent/CN116614412A/en
Publication of CN116614412A publication Critical patent/CN116614412A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a terminal abnormality repairing method, a device, a system, a storage medium and electronic equipment, wherein the gateway service state abnormality of a first gateway node is determined according to the state information of each gateway node in a gateway cluster, when the gateway service state of the first gateway node is abnormal, the quantity information of terminal equipment connected with the first gateway node is acquired from a preset database according to a first node identification of the first gateway node, the reconnection time required by reconnecting the terminal equipment to a second gateway node is determined, after the reconnection time, whether the terminal equipment with the abnormal connection state exists is determined according to the connection state of the reconnected terminal equipment, the inaccurate detection of the terminal connection state caused by the abnormal gateway is avoided, the normal service operation is influenced, meanwhile, the terminal equipment with the abnormal connection is accurately identified by repairing the terminal equipment with the abnormal reconnection state, and the terminal equipment repairing efficiency is improved.

Description

Terminal abnormality repairing method, device, system, storage medium and electronic equipment
Technical Field
The present application relates to the field of terminal connection, and in particular, to a method, an apparatus, a system, a storage medium, and an electronic device for repairing terminal abnormality.
Background
In the prior art, in order to ensure confidentiality of software development, a gateway is generally used as a transfer to realize butt joint between a service end and a terminal, the gateway receives a TCP connection application of the terminal and reports a connection state to the service end, and the service end receives and processes a terminal state message. When the connection of the terminal is abnormal, the gateway reports to the service end to repair the terminal in time, however, when the gateway is abnormal, the detection of the connection state of the terminal is inaccurate easily, and the normal operation of the service end is affected.
Disclosure of Invention
The embodiment of the application provides a method, a device, a system, a storage medium and electronic equipment for repairing terminal abnormality, which can timely detect gateway states and timely repair the abnormal terminal equipment. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for repairing terminal abnormality, including the following steps:
acquiring state information of each gateway node in a gateway cluster; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device; the state information of the gateway node is used for judging whether the gateway service state of the gateway node is abnormal or not;
if the gateway service state of the first gateway node is abnormal, acquiring a first node identifier of the first gateway node;
acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information;
and after reconnection time, acquiring connection state information of the reconnected terminal equipment, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
In a second aspect, an embodiment of the present application provides a terminal abnormality repair device, including:
the gateway state acquisition module is used for acquiring state information of each gateway node in the gateway cluster; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device; the state information of the gateway node is used for judging whether the gateway service state of the gateway node is abnormal or not;
a first node identifier obtaining module, configured to obtain a first node identifier of the first gateway node if a gateway service state of the first gateway node is abnormal;
the reconnection time acquisition module is used for acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information;
and the repairing module is used for acquiring the connection state information of the reconnected terminal equipment after reconnection time, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
In a third aspect, an embodiment of the present application provides a service system, including a gateway cluster, a monitoring module, and at least one terminal device; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device;
the monitoring module acquires state information of each gateway node in a gateway cluster, and acquires a first node identifier of the first gateway node when the gateway service state of the first gateway node is abnormal; acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information; and after reconnection time, acquiring connection state information of the reconnected terminal equipment, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the terminal anomaly repair method as set forth in any one of the preceding claims.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the steps of the method for repairing a terminal abnormality according to any one of the above steps when the processor executes the computer program.
In the embodiment of the application, the gateway service state abnormality of the first gateway node is determined according to the state information of each gateway node in the gateway cluster, when the gateway service state abnormality of the first gateway node is detected, the quantity information of terminal equipment connected with the first gateway node is acquired from the preset database according to the first node identification of the first gateway node, the reconnection time required by reconnecting the terminal equipment to the second gateway node is determined, after the reconnection time, whether the terminal equipment with abnormal connection state exists is determined according to the connection state of the terminal equipment after reconnection, the inaccurate detection of the terminal connection state caused by the abnormal gateway is avoided, the normal service operation is influenced, and meanwhile, the terminal equipment with abnormal connection is accurately identified by repairing the terminal equipment with abnormal state after reconnection, so that the terminal equipment repairing efficiency is improved.
For a better understanding and implementation, the present application is described in detail below with reference to the drawings.
Drawings
Fig. 1 is a schematic diagram of an application scenario of a method for repairing terminal abnormality according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for repairing terminal anomalies according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a device for repairing terminal abnormality according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a business system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the application, are intended to be within the scope of the embodiments of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of embodiments of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application as detailed in the accompanying claims. In the description of the present application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
Furthermore, in the description of the present application, unless otherwise indicated, "a number" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
As will be appreciated by those skilled in the art, the terms "client," "terminal device," and "terminal device" as used herein include both devices that include only wireless signal receivers without transmitting capabilities and devices that include receiving and transmitting hardware that include devices that are capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device such as a personal computer, tablet, or the like, having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; a PCS (PersonalCommunications Service, personal communication system) that may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant ) that can include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global PositioningSystem ) receiver; a conventional laptop and/or palmtop computer or other appliance that has and/or includes a radio frequency receiver. As used herein, "client," "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, a "client," "terminal device," or "terminal device" may also be a communication terminal, an internet terminal, or a music/video playing terminal, for example, a PDA, a MID (Mobile Internet Device ), and/or a mobile phone with music/video playing function, or may also be a device such as a smart tv, a set top box, or the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a service system according to an embodiment of the present application, where the service system includes a gateway cluster 100, a terminal device 200, and a service end 300; the terminal device 200 and the service end 300 may perform data interaction through the gateway cluster 100.
The gateway cluster 100 may include a plurality of gateway nodes, where each gateway node is connected to at least one terminal device 200, where the gateway cluster 100 is configured to interface with a terminal device, the terminal device may access to a service background through a gateway service of the gateway node, and a TCP connection of the terminal device is terminated in the gateway cluster, thereby ensuring security of a service system. In this process, the connection state of the terminal device 200 is maintained by the gateway cluster 100, and when the connection state of the terminal device 200 changes, the gateway cluster 100 generates a connection state message and sends it to the service end 300.
The terminal device 200 may be one end where a user to be served by the service system is located, and the terminal device 200 may be electronic devices such as a smart phone, an intelligent interaction tablet, and a personal computer.
The service end 300 may receive the connection status message of the terminal device 200 forwarded by the gateway cluster and perform corresponding service processing, for example, may determine whether the terminal device 200 is turned on according to the connection status of each terminal device 200, and display the on-off status of each terminal device.
However, in the above process, when the gateway node fails, for example, exits from the gateway service, if the terminal device is turned off, the gateway cluster 100 cannot timely notify the service end 300, so that the state of the terminal device displayed by the service end is inconsistent with the state of the actual terminal device, and the normal operation of the corresponding service of the service end 300 is affected.
In the prior art, when it is required to confirm whether the terminal device is abnormally connected, all the terminal devices are loaded and traversed by using a detection tool, a connection request is sent to a gateway node by using the terminal device, whether the terminal device is abnormally connected is determined according to whether the gateway node responds, and repair is performed on the terminal device with abnormal connection.
However, the above-mentioned confirmation process often needs to be triggered manually, and the repair work is delayed from the perception of the user, so that the user experience is affected; moreover, each service needs to develop own detection tools, so that the cost is high, and a large performance overhead is easily caused to the gateway cluster by adopting a batch detection mode.
Therefore, in view of the above problems, as shown in fig. 1, an embodiment of the present application provides a method for repairing terminal abnormality, including the following steps:
s101: acquiring state information of each gateway node in a gateway cluster;
the gateway cluster may be comprised of one or more gateway nodes, wherein the gateway nodes may be adapted to provide network connection services for the terminal devices. The gateway cluster can be used for acquiring the connection state information of the terminal equipment, generating a notification message and sending the notification message to the service end, so that the service end displays the connection state of the terminal equipment according to the notification message, and the service end can conveniently execute corresponding service functions according to the connection state of the terminal equipment.
In the embodiment of the application, the gateway cluster at least comprises a first gateway node and a second gateway node, wherein the first gateway node is connected with at least one terminal device;
the state information is used to determine a gateway service state of the gateway node, wherein the gateway service state may include normal operation, exiting the gateway service, or a heartbeat timeout.
Specifically, a Zookeeper can be utilized to establish connection with each gateway node in the gateway cluster, the state of each gateway node is monitored in real time, and the state information of each gateway node is obtained; the Zookeeper is a distributed, open-source program coordination service, which can be used for providing functions such as configuration management, name service, distributed lock, cluster management and the like. In the embodiment of the application, the state of each gateway node in the gateway cluster is dynamically perceived by utilizing the Zookeeper, so that the management of the gateway cluster is realized.
The state information is used for determining whether the gateway service state of the gateway node is abnormal, and the gateway service state can include normal operation, exiting the gateway service or heartbeat timeout.
In one embodiment, after obtaining the status information of each gateway node in the gateway cluster, the method further comprises the steps of:
and if the state information of the first gateway node is the exiting gateway service state, determining that the gateway service state of the first gateway node is abnormal.
After the communication connection between the gateway node and the terminal equipment is successful, network anomalies such as network jitter, blocking, network disconnection and the like may occur, and the gateway node and the terminal equipment cannot know that the network anomalies exist currently, which results in that both ends remain in a connection state, but effective communication cannot be actually performed, so that not only data transmission is affected, but also communication resources are occupied; therefore, in the prior art, a heartbeat mechanism is generally introduced to perform periodic mutual heartbeat messages between the gateway node and the terminal device, for example, the terminal device sends a heartbeat message 1 to the gateway node, and if the network is good, the gateway node can quickly return a heartbeat message 2 to the terminal device; if the terminal equipment does not receive the heartbeat feedback of the gateway node within the threshold time, namely, the heartbeat is overtime, the communication connection is considered to be unavailable.
When the state information of the first gateway node is heartbeat timeout, the state information of the first gateway node can be detected for the second time, and whether the gateway service state of the first gateway node is abnormal or not is further determined. Specifically, after acquiring the state information of each gateway node in the gateway cluster, the method further comprises the following steps:
and if the state information of the first gateway node is a heartbeat timeout state, initiating a connection request to the first gateway node by using a plurality of network nodes, and if the plurality of network nodes are all failed to be connected, confirming that the gateway service state of the first gateway node is abnormal.
Wherein, the number of the network nodes is at least one, for example, the number of the network nodes can be 3; the plurality of network nodes may be a plurality of network nodes having different network paths, in particular the plurality of network nodes may be a plurality of slave nodes in a certain cluster.
The connection request may be sent to the first gateway node by sending a ping command to the first network node, where the ping command may be used to detect a connection condition of a network and analyze a network speed.
In the embodiment of the application, whether the gateway service state of the first gateway node is abnormal or not is confirmed by utilizing a plurality of network nodes with different network paths, so that misjudgment of the gateway service state of the first gateway node caused by abnormal individual network paths is avoided, normal service operation is influenced, and detection efficiency is improved.
S102: if the gateway service state of the first gateway node is abnormal, acquiring a first node identifier of the first gateway node;
specifically, when the gateway service state of the first gateway node is the exit gateway service, determining that the gateway service state of the first gateway node is abnormal.
The first node is identified as an identifier corresponding to a first gateway node in the gateway cluster, and is operable to determine the first gateway node from the gateway cluster. In one embodiment, the first node identification may be an ID of the first gateway node.
S103: acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information;
and the preset database stores information such as the number of the terminal devices connected with the gateway nodes corresponding to the node identifiers, the device model numbers and the like.
The number information is used to determine the number of terminal devices connected to the first gateway node.
The reconnection time is the time required for all terminal devices connected to the first gateway node to connect to the second gateway node. The reconnection time may be determined based on the number of terminal devices connected to the first gateway node and/or the time when the gateway node is out of service of the gateway.
S104: and after reconnection time, acquiring connection state information of the reconnected terminal equipment, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
Specifically, a timer with a corresponding duration may be generated according to the reconnection time, after confirming that the gateway service state of the first gateway node is abnormal, the timer is triggered to count, and the count duration is the reconnection time required by the terminal device to reconnect to the second gateway node, and in the reconnection time, the gateway node with the abnormal gateway service state is not repaired until all the terminal devices connected with the first gateway node are connected to the second gateway node.
After the reconnection time, the second gateway node may be used to obtain connection status information of the reconnected terminal device. The connection status information may include information such as an ID, a type, an address of the terminal device, an ID of the access service and an identification of the access service, a status of the terminal device, and an update time.
And for the terminal equipment which still has abnormality after reconnection, determining that the terminal equipment is abnormal, and repairing the abnormal terminal equipment.
When repairing the terminal equipment with abnormal connection state, the abnormal information of the terminal equipment and the equipment information such as the connection port can be obtained, a preset repairing program is automatically executed, and the terminal equipment is repaired. Or in another embodiment, the step of repairing the terminal device with abnormal connection state specifically includes:
acquiring equipment information of terminal equipment with abnormal connection state, generating an abnormal notification message and sending the abnormal notification message to a service end, so that the service end repairs the terminal equipment with abnormal connection state according to the abnormal notification message.
When the service end receives the abnormal notification message, a preset repair program can be automatically executed to repair the terminal equipment, or the service end can also be used for prompting a user to repair the terminal equipment with abnormal connection state, wherein the prompting information can comprise equipment information and abnormal information of the terminal equipment with abnormal connection state, so that the user is prompted to repair the terminal equipment in time, and the user experience is improved.
And repairing the terminal equipment with abnormal connection state after waiting for all the terminal equipment to be connected to the second gateway node, so that the fault judgment of the terminal equipment is prevented from being influenced by the abnormal state of the gateway node, and the abnormal repairing efficiency of the terminal equipment is improved.
In the embodiment of the application, the gateway service state abnormality of the first gateway node is determined according to the state information of each gateway node in the gateway cluster, when the gateway service state abnormality of the first gateway node is detected, the quantity information of terminal equipment connected with the first gateway node is acquired from the preset database according to the first node identification of the first gateway node, the reconnection time required by reconnecting the terminal equipment to the second gateway node is determined, after the reconnection time, whether the terminal equipment with abnormal connection state exists is determined according to the connection state of the terminal equipment after reconnection, the inaccurate detection of the terminal connection state caused by the abnormal gateway is avoided, the normal service operation is influenced, and meanwhile, the terminal equipment with abnormal connection is accurately identified by repairing the terminal equipment with abnormal state after reconnection, so that the terminal equipment repairing efficiency is improved.
In one embodiment, the method for repairing terminal abnormality of the present application may be applied to a monitoring module, where the monitoring module may subscribe status information of each gateway node through a zookeeper cluster, and when the monitoring module finds that the status of the gateway node is abnormal, the steps S102 to S104 are executed to obtain terminal devices with abnormal connection status and repair the terminal devices.
The monitoring module can comprise a master node and a plurality of slave nodes connected with the master node, wherein the master node can be used for executing the terminal abnormality repairing method, when the acquired state information of the first gateway node is in a heartbeat timeout state, the slave nodes of the monitoring module have different network paths and can be used as the network nodes for initiating a connection request to the first gateway node, so that the secondary detection of the gateway service state of the first gateway node is realized, and the accuracy of judging the gateway heartbeat timeout abnormality is improved.
Normally, because the terminal device connects to the gateway cluster through the TCP long connection, the TCP connection state of the terminal needs to be notified to the upper service end by the gateway cluster, for example, a certain terminal device is started up and connected to the gateway node through the TCP, and then the gateway cluster notifies the upper service end of the connection state of the terminal device.
When the terminal equipment is powered off, the TCP connection between the terminal equipment and the gateway node is disconnected, and the gateway cluster can inform an upper layer service end. However, if the gateway node exits the gateway service, the TCP connection of the terminal device is disconnected, but the gateway cluster cannot inform the service end in time, at this time, the monitoring module can acquire the terminal state of the previous gateway, generate a disconnection notification of the terminal device and report the disconnection notification to the service end, so that the service end can display the connection state of the terminal to the user in time and repair the connection state in time. Thus, in one embodiment, before obtaining the status information of each gateway node in the gateway cluster, further comprises:
receiving connection state information of at least one terminal device sent by a gateway cluster and storing the connection state information into a preset database;
the step of obtaining connection status information of the at least one terminal device specifically includes:
and reading the connection state information of the at least one terminal device stored in a preset database.
The connection status information may include information such as an ID, a type, an address of the terminal device, an ID of the access service and an identification of the access service, a status of the terminal device, and an update time.
When the gateway node is abnormal, the connection state information of the terminal equipment can be generated to the service end by reading the connection state information of at least one terminal equipment stored in the database, the service end does not need to care that the connection state information is generated by the gateway cluster or the monitoring module, the service end does not need to change any, the connection state of the terminal can be displayed according to the normal flow, the abnormally connected terminal equipment can be repaired, and the service processing efficiency of the service end is improved.
As shown in fig. 3, the present application further provides a terminal abnormality repair device, including:
a gateway state obtaining module 401, configured to obtain state information of each gateway node in the gateway cluster; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device; the state information of the gateway node is used for judging whether the gateway service state of the gateway node is abnormal or not;
a first node identifier obtaining module 402, configured to obtain a first node identifier of the first gateway node if a gateway service state of the first gateway node is abnormal;
a reconnection time obtaining module 403, configured to obtain, according to the first node identifier, number information of terminal devices connected to the first gateway node from a preset database, and obtain, according to the number information, reconnection time required for reconnecting the terminal devices to the second gateway node;
and the repairing module 404 is configured to obtain connection state information of the reconnected terminal device after the reconnection time, and repair the terminal device with the abnormal connection state if the terminal device with the abnormal connection state exists.
It should be noted that, when the terminal abnormality repairing device provided in the foregoing embodiment performs the terminal abnormality repairing method, only the division of the foregoing functional modules is used as an example, and in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the terminal abnormality repair device and the terminal abnormality repair method provided in the foregoing embodiments belong to the same concept, which embody detailed implementation procedures in method embodiments, and are not described herein again.
As shown in fig. 4, the embodiment of the present application further provides a service system, which includes a gateway cluster 501, a monitoring module 503, and at least one terminal device 502;
the gateway cluster 501 at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device 502;
the monitoring module 503 obtains status information of each gateway node in the gateway cluster 501, and obtains a first node identifier of the first gateway node when a gateway service status of the first gateway node is abnormal; acquiring the quantity information of the terminal equipment 502 connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment 502 to the second gateway node according to the quantity information; after the reconnection time, acquiring connection state information of the reconnected terminal equipment 502, and repairing the terminal equipment 502 with abnormal connection state if the terminal equipment 502 with abnormal connection state exists.
In one embodiment, the business system further comprises a business end 504;
the gateway cluster 501 obtains connection state information of the terminal device 502 connected with each gateway node and sends the connection state information to the service end 504;
the service end 504 displays the connection state of the terminal device 502 connected to each gateway node according to the connection state information of the terminal device 502 connected to each gateway node.
The service system of the embodiment of the present application may be used to execute the method for repairing terminal anomalies of the present application, and for details not disclosed in the embodiment, please refer to the method embodiment of the present application.
The embodiment provides an electronic device, which can be used for executing all or part of steps of a terminal abnormality repairing method in the embodiment of the application. For details not disclosed in this embodiment, please refer to the method embodiment of the present application.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the application. The electronic device 600 may be, but is not limited to being, a combination of one or more of a variety of servers, personal computers, notebook computers, smart phones, tablet computers, etc.
In a preferred embodiment of the present application, the electronic device 600 includes a memory 601, at least one processor 602, at least one communication bus 603, and a transceiver 604.
It will be appreciated by those skilled in the art that the configuration of the electronic device shown in fig. 5 is not limiting of the embodiments of the present application, and that either a bus-type configuration or a star-type configuration may be used, and that the electronic device 600 may include more or less other hardware or software than that shown, or a different arrangement of components.
In some embodiments, the electronic device 600 is a device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The electronic device 600 may also include a client device, including but not limited to any electronic product that can interact with a client by way of a keyboard, mouse, remote control, touch pad, or voice-controlled device, such as a personal computer, tablet, smart phone, digital camera, etc.
It should be noted that the electronic device 600 is only used as an example, and other electronic products that may be present in the present application or may be present in the future are also included in the scope of the present application by way of reference.
In some embodiments, the memory 601 stores a computer program that, when executed by the at least one processor 602, performs all or part of the steps in the terminal anomaly repair method as in the embodiments. The Memory 601 includes Read-Only Memory (ROM), programmable Read-Only Memory (PROM), erasable programmable Read-Only Memory (EPROM), one-time programmable Read-Only Memory (One-timeProgrammable Read-Only Memory, OTPROM), electrically erasable rewritable Read-Only Memory (EEPROM), compact disc Read-Only Memory (CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used to carry or store data.
In some embodiments, the at least one processor 602 is a Control Unit (Control Unit) of the electronic device 600, connects various components of the entire electronic device 600 using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by running or executing programs or modules stored in the memory 601, and invoking data stored in the memory 601. For example, the at least one processor 602, when executing the computer program stored in the memory, implements all or part of the steps of the method for repairing terminal anomalies described in the embodiments of the present application; or realize all or part of the functions of the terminal abnormality repair device. The at least one processor 602 may be comprised of integrated circuits, such as a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functionality, including one or more central processing units (CentralProcessing unit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like.
In some embodiments, the at least one communication bus 603 is arranged to enable connected communication between the memory 601 and the at least one processor 602 or the like.
The electronic device 600 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
The embodiment provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute a method for repairing a terminal abnormality according to an embodiment of the present application, and the specific execution process may refer to specific description of the method embodiment, which is not repeated herein.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (11)

1. The terminal abnormality repairing method is characterized by comprising the following steps of:
acquiring state information of each gateway node in a gateway cluster; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device; the state information of the gateway node is used for judging whether the gateway service state of the gateway node is abnormal or not;
if the gateway service state of the first gateway node is abnormal, acquiring a first node identifier of the first gateway node;
acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information;
and after reconnection time, acquiring connection state information of the reconnected terminal equipment, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
2. The terminal anomaly repair method according to claim 1, further comprising the steps of, after acquiring the state information of each gateway node in the gateway cluster:
and if the state information of the first gateway node is the exiting gateway service state, determining that the gateway service state of the first gateway node is abnormal.
3. The terminal anomaly repair method according to claim 1, further comprising the steps of, after acquiring the state information of each gateway node in the gateway cluster:
and if the state information of the first gateway node is a heartbeat timeout state, initiating a connection request to the first gateway node by using a plurality of network nodes, and if the plurality of network nodes are all failed to be connected, confirming that the gateway service state of the first gateway node is abnormal.
4. The terminal anomaly repair method according to claim 1, further comprising, after acquiring the first node identification of the first gateway node, the steps of:
and acquiring the connection state information of the at least one terminal device, generating a notification message and sending the notification message to the service terminal, so that the service terminal displays the connection state of the terminal device according to the notification message.
5. The method for repairing a terminal abnormality according to claim 4, further comprising, before acquiring the state information of each gateway node in the gateway cluster:
receiving connection state information of at least one terminal device sent by a gateway cluster and storing the connection state information into a preset database;
the step of obtaining connection status information of the at least one terminal device specifically includes:
and reading the connection state information of the at least one terminal device stored in the preset database.
6. The terminal abnormality repair method according to claim 1, characterized in that the step of repairing the terminal device having the abnormal connection state specifically includes:
acquiring equipment information of terminal equipment with abnormal connection state, generating an abnormal notification message and sending the abnormal notification message to a service end, so that the service end repairs the terminal equipment with abnormal connection state according to the abnormal notification message.
7. A terminal abnormality repair device, characterized by comprising:
the gateway state acquisition module is used for acquiring state information of each gateway node in the gateway cluster; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device; the state information of the gateway node is used for judging whether the gateway service state of the gateway node is abnormal or not;
a first node identifier obtaining module, configured to obtain a first node identifier of the first gateway node if a gateway service state of the first gateway node is abnormal;
the reconnection time acquisition module is used for acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information;
and the repairing module is used for acquiring the connection state information of the reconnected terminal equipment after reconnection time, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
8. The service system is characterized by comprising a gateway cluster, a monitoring module and at least one terminal device; the gateway cluster at least comprises a first gateway node and a second gateway node, and the first gateway node is connected with at least one terminal device;
the monitoring module acquires state information of each gateway node in a gateway cluster, and acquires a first node identifier of the first gateway node when the gateway service state of the first gateway node is abnormal; acquiring the quantity information of the terminal equipment connected with the first gateway node from a preset database according to the first node identifier, and acquiring reconnection time required by reconnecting the terminal equipment to the second gateway node according to the quantity information; and after reconnection time, acquiring connection state information of the reconnected terminal equipment, and repairing the terminal equipment with abnormal connection state if the terminal equipment with abnormal connection state exists.
9. The service system of claim 8, further comprising a service end;
the gateway cluster obtains the connection state information of the terminal equipment connected with each gateway node and sends the connection state information to the service end;
and the service end displays the connection state of the terminal equipment connected with each gateway node according to the connection state information of the terminal equipment connected with each gateway node.
10. A computer-readable storage medium having stored thereon a computer program, characterized by: the computer program when executed by a processor implements the steps of the terminal anomaly repair method of any one of claims 1 to 6.
11. An electronic device, characterized in that: comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the steps of the terminal anomaly repair method according to any one of claims 1 to 6 when the computer program is executed.
CN202210122704.0A 2022-02-09 2022-02-09 Terminal abnormality repairing method, device, system, storage medium and electronic equipment Pending CN116614412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122704.0A CN116614412A (en) 2022-02-09 2022-02-09 Terminal abnormality repairing method, device, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122704.0A CN116614412A (en) 2022-02-09 2022-02-09 Terminal abnormality repairing method, device, system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116614412A true CN116614412A (en) 2023-08-18

Family

ID=87680554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122704.0A Pending CN116614412A (en) 2022-02-09 2022-02-09 Terminal abnormality repairing method, device, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116614412A (en)

Similar Documents

Publication Publication Date Title
JP6396887B2 (en) System, method, apparatus, and non-transitory computer readable storage medium for providing mobile device support services
US20050108389A1 (en) Network endpoint health check
WO2007108407A1 (en) Terminal position identification method, terminal position identification system, positioning server, and program
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
EP3865998A1 (en) Cluster management method, apparatus and system
US20130173965A1 (en) Fault tracing system and method for remote maintenance
CN105099763A (en) Method and device for reminding lost connection of equipment
US9203715B1 (en) Managing host computing devices
CN112764956A (en) Database exception handling system, and database exception handling method and device
KR101028298B1 (en) Method and system for distributing data processing units in a communication network
US9132550B2 (en) Apparatus and method for managing robot components
JP2003233512A (en) Client monitoring system with maintenance function, monitoring server, program, and client monitoring/ maintaining method
WO2002037880A1 (en) Remote controlling system and method
CN111464394A (en) Node monitoring method and device and storage medium
CN116614412A (en) Terminal abnormality repairing method, device, system, storage medium and electronic equipment
CN114302351B (en) Short message service processing method and device, computer equipment and storage medium
CN114244686B (en) Communication fault detection method, device and system
CN114356625A (en) Distributed system redundancy diagnosis method, device, electronic device and storage medium
KR101143922B1 (en) Apparatus for automatically restoring a network
JP6569247B2 (en) Fault verification apparatus, fault verification method, verification target apparatus, wireless communication system, computer program
CN114726711A (en) Method and system for cooperative processing service between devices
JP2005115716A (en) Remote control system
CN106230878A (en) A kind of equipment service calling method based on AllJoyn framework and device
JP5847064B2 (en) Simple monitoring and control device
CN104657152A (en) Data transmission management method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination