A gateway fault monitoring method and system based on network communication

By acquiring and analyzing the real-time communication data flow of gateway equipment, extracting abnormal characteristic parameters and performing packet size estimates and splitting adjustments, the problem of slow gateway fault detection response and low efficiency in the existing technology is solved, and the gateway fault is realized Fast and accurate detection and intelligent monitoring.

CN117692361BActive Publication Date: 2024-11-15深圳市威铭科技开发有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410094650.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-11-15
Estimated Expiration
2044-01-23

AI Technical Summary

Technical Problem

In the prior art, gateway fault detection has problems such as slow detection response and low efficiency, mainly due to the lack of real-time monitoring and fast response mechanisms.

Method used

By obtaining the real-time communication data flow of the gateway device, extracting exception characteristic parameters and inputting a pre-trained packet size prediction model, performing packet size prediction and split adjustment, judging gateway failure, and switching to the backup gateway in the event of a failure Equipment, realizes intelligent monitoring and rapid troubleshooting.

Benefits of technology

It improves the accuracy and efficiency of gateway fault detection, ensures communication stability during large traffic transmission, and quickly matches traffic through intelligent prediction and splitting mechanisms, realizing intelligent monitoring and rapid response to gateway faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117692361B_ABST
    Figure CN117692361B_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of communication technology, and disclose a gateway fault monitoring method and system based on network communication. The gateway fault monitoring method of the present application performs intelligent judgment and splitting of data packets to detect the gateway communication data after splitting when large-volume data transmission affects communication transmission. In this way, the accuracy of gateway fault detection is greatly improved. At the same time, the system achieves the effect of intelligent monitoring of gateway faults through intelligent estimation and intelligent splitting of traffic to quickly match traffic to different gateways, greatly improving the efficiency of gateway fault monitoring. The gateway device monitors and verifies the gateway device through multiple judgments on the data flow (data flow abnormality judgment before splitting and data flow abnormality judgment after data splitting), further improving the accuracy of gateway fault monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a gateway fault monitoring method and system based on network communication. Background Art

[0002] A gateway is a network device that connects one network to another, provides specific applications, and implements the corresponding application protocol. A gateway can be considered as an intermediate process between a client that requires a specific service and a server that provides the required service. In the intermediate process, it acts as a server from the user side and a client from the server side.

[0003] In the related art, gateway device fault detection adopts the method of receiving business complaints related to gateway faults or monitoring systems detecting related alarms and then performing manual troubleshooting. This gateway fault detection method is mostly aimed at physical fault monitoring, and has defects such as slow detection response and low efficiency. Summary of the invention

[0004] The main purpose of the present invention is to provide a gateway fault monitoring method and system based on network communication, aiming to solve the technical problems of gateway fault detection in the prior art, such as slow detection response and low efficiency.

[0005] To achieve the above objectives, in a first aspect, an embodiment of the present application provides a gateway fault monitoring method based on network communication, which is applied to a first gateway device and a second gateway device, and the method includes:

[0006] Acquire a real-time communication data stream of the first gateway device;

[0007] When it is determined that the real-time communication data flow of the first gateway device is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain an estimated value of the communication data packet size;

[0008] In the case where the estimated value of the communication data packet size is greater than or equal to the instantaneous traffic threshold of the first gateway device fault verification, the communication data packet is split and adjusted according to the instantaneous traffic threshold of the first gateway device fault verification to obtain a first data packet and a second data packet, wherein the size value of the first data packet is lower than the instantaneous traffic threshold of the first gateway device fault verification;

[0009] Controlling the first data packet to be communicated and transmitted through the first gateway device to obtain an adjusted real-time data stream of the first gateway device, and controlling the second data packet to be communicated and transmitted through the second gateway device to obtain an adjusted real-time data stream of the second gateway device;

[0010] Determining that an abnormality exists in the adjustment real-time data stream of the first gateway device, and judging that a gateway failure exists in the first gateway device;

[0011] It is determined that there is no abnormality in adjusting the real-time data flow of the first gateway device, and it is determined that there is no gateway failure in the first gateway device.

[0012] Further, the instantaneous flow threshold of the first gateway device fault check is greater than or equal to the instantaneous flow threshold of the second gateway device fault check, and after extracting the abnormal characteristic parameter of the real-time communication data flow and inputting it into the pre-trained data packet size estimation model to obtain the communication data packet size estimation value, it also includes:

[0013] When the estimated value of the communication data packet size is less than the instantaneous flow threshold of the first gateway device fault check, control the gateway device to switch from the first gateway device to the second gateway device;

[0014] Acquire a real-time communication data stream in which data packets communicate through the second gateway device;

[0015] It is determined that there is no abnormality in the real-time communication data flow of the second gateway device, and it is determined that a gateway failure exists in the first gateway device.

[0016] Further, the abnormal characteristic parameters of the real-time communication data flow include a data transmission jitter rate and a packet loss rate, and the extraction of the abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain a communication data packet size estimation value includes:

[0017] Extract abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in real-time communication data stream;

[0018] The data transmission jitter rate D1 and the packet loss rate D2 abnormal characteristic parameters are input into the data packet size estimation model to obtain the communication data packet size estimation value, wherein the data packet size estimation model satisfies the following expression:

[0019] D10 is the benchmark jitter rate, D20 is the benchmark packet loss rate, θ is the impact weight of the data transmission jitter rate on the estimated communication data packet size, 1-θ is the impact weight of the packet loss rate on the estimated communication data packet size, μ is the aging degree of the gateway device, μ0 is the benchmark aging degree of the gateway device, P10 is the communication data packet size value under the benchmark jitter rate, and P20 is the communication data packet size value under the benchmark packet loss rate.

[0020] Further, after controlling the second data packet to communicate and transmit through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, the method further includes:

[0021] Determine whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check;

[0022] When the second data packet size value is less than or equal to the instantaneous threshold of the traffic flow for fault verification of the second gateway device, it is determined that there is an abnormality in the adjustment of the real-time data flow of the second gateway device, and it is judged that a gateway fault exists in the second gateway device.

[0023] Further, after determining whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check, it also includes:

[0024] Determine that the size value of the second data packet is greater than the instantaneous threshold of traffic flow for the second gateway device fault check, split and adjust the second data packet to obtain a third data packet and a fourth data packet, wherein the size value of the third data packet is lower than the instantaneous threshold of traffic flow for the second gateway device fault check;

[0025] Control the third data packet to be communicated and transmitted through the second gateway device to obtain a secondary adjusted real-time data stream of the second gateway device, and control the fourth data packet to wait for communication transmission;

[0026] Determining that the secondary adjustment real-time data stream of the second gateway device is abnormal, and judging that the second gateway device has a gateway failure;

[0027] It is determined that there is no abnormality in the secondary adjustment of the real-time data flow of the second gateway device, and it is determined that there is no gateway failure in the second gateway device.

[0028] Further, after determining that the first gateway device has a gateway failure or determining that the second gateway device has a gateway failure, the method further includes:

[0029] Generate gateway fault monitoring and early warning information based on gateway device fault information;

[0030] The gateway fault monitoring and early warning information is sent to the corresponding maintenance terminal for fault monitoring and early warning.

[0031] Furthermore, after obtaining the real-time communication data stream of the first gateway device, the method further includes:

[0032] Acquire the data communication transmission rate of the first gateway device;

[0033] It is determined whether the real-time communication data flow of the first gateway device is abnormal according to the data communication transmission rate of the first gateway device.

[0034] In a second aspect, an embodiment of the present application further provides a system, the system comprising:

[0035] An acquisition module, used to acquire a real-time communication data stream of a first gateway device;

[0036] An extraction module, used to extract abnormal characteristic parameters of real-time communication data stream;

[0037] A splitting and adjusting module, used for splitting and adjusting the communication data packet according to the instantaneous flow threshold of the first gateway device fault check to obtain a first data packet and a second data packet;

[0038] The judgment module is used to judge whether there is an abnormality in the adjustment of the real-time data stream of the first gateway device.

[0039] In a third aspect, an electronic device is also provided in an embodiment of the present application, including:

[0040] at least one processor;

[0041] and a memory communicatively connected to the at least one processor; wherein,

[0042] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the gateway fault monitoring method described in the first aspect.

[0043] In a fourth aspect, an embodiment of the present application further provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the operations performed by the gateway fault monitoring method described in the first aspect.

[0044] Different from the prior art, the embodiment of the present application provides a gateway fault monitoring method based on network communication, first obtaining the real-time communication data stream of the first gateway device; when it is determined that the real-time communication data stream of the first gateway device is abnormal, extracting the abnormal characteristic parameters of the real-time communication data stream and inputting them into the pre-trained data packet size estimation model to obtain the communication data packet size estimation value; when the communication data packet size estimation value is greater than or equal to the traffic instantaneous threshold of the first gateway device fault verification, the communication data packet is split and adjusted according to the traffic instantaneous threshold of the first gateway device fault verification to obtain a first data packet and a second data packet; then the first data packet is controlled to communicate and transmit through the first gateway device to obtain the adjusted real-time data stream of the first gateway device; when the adjusted real-time data stream of the first gateway device is abnormal, it is judged that the first gateway device has a gateway fault; that is, in the state where large traffic transmission affects the communication flow data, the data packet is intelligently judged and split to detect the split gateway communication flow data, so that the accuracy of gateway fault detection is greatly improved, and the system achieves the effect of intelligent monitoring of gateway faults through intelligent estimation and intelligent splitting of the traffic size to quickly match the corresponding traffic to different gateways, thereby greatly improving the efficiency of gateway fault monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of a flow chart of a gateway fault monitoring method based on network communication in some embodiments of the present application;

[0047] Figure 2 A schematic diagram of a flow chart of a gateway fault monitoring method based on network communication in other embodiments of the present application;

[0048] Figure 3 This is a schematic diagram of the hardware structure of an electronic device in some embodiments of the present application.

[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0052] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, "and / or" in the full text includes three solutions. Taking A and / or B as an example, it includes technical solution A, technical solution B, and technical solution that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0053] A gateway is a network device that connects one network to another, provides specific applications, and implements the corresponding application protocol. A gateway can be considered as an intermediate process between a client that requires a specific service and a server that provides the required service. In the intermediate process, it acts as a server from the user side and a client from the server side.

[0054] In the related art, gateway equipment fault detection adopts the method of receiving business complaints related to gateway faults or the monitoring system detecting relevant alarms and then performing manual troubleshooting. This gateway fault detection method is mostly aimed at physical fault monitoring, such as temperature abnormality monitoring, etc., and has defects such as slow detection response and low efficiency.

[0055] In response to the above problems, the present application proposes a gateway fault monitoring method, which is applied to a first gateway device and a second gateway device, wherein the first gateway device is a main gateway and the second gateway device is a backup gateway. The main gateway is generally used for daily network communications, and the backup gateway is generally used when the main gateway fails or the communication transmission traffic is large; generally speaking, the performance of the main gateway device is better than or equal to the performance of the backup gateway device.

[0056] The following mainly describes the steps of the gateway fault monitoring method. It should be further noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order from that shown here. Specifically, Figure 1-2 As shown, the method of the present application comprises the following steps:

[0057] S100, obtaining a real-time communication data stream of the first gateway device;

[0058] It can be understood that when data passes through a gateway device, the system will estimate the data transmission rate, remaining transmission time, and transmission packet loss status. The data transmission rate at different times is generally changing (unstable), that is, there are rate jumps. Therefore, the data transmission rate change process can form a sub-communication data stream, the remaining transmission time change process can also form a sub-communication data stream, and the transmission packet loss status change process can also form a sub-communication data stream. Different sub-communication data streams can be integrated to form a system communication data stream, and different information about the communication process can be queried through the system communication data stream.

[0059] Therefore, the embodiment of the present application first obtains the real-time communication data stream of the first gateway device. The real-time communication data stream may refer to the communication data stream from the start of data transmission to the current time.

[0060] S200, when it is determined that the real-time communication data flow of the first gateway device is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain an estimated value of the communication data packet size;

[0061] In one embodiment, whether the communication data flow is abnormal can be determined based on the data communication transmission rate. For example, the data communication transmission rate of the first gateway device is first obtained; then, based on the data communication transmission rate of the first gateway device, it is determined whether the real-time communication data flow of the first gateway device is abnormal. When the data communication transmission rate of the first gateway device is lower than a preset value, it can be considered that the real-time communication data flow of the first gateway device is abnormal.

[0062] Abnormal characteristic parameters of real-time communication data flow include data transmission jitter rate and packet loss rate. The jitter rate refers to the ratio of the period when the transmission rate changes to the period when the data packet does not change during network transmission. The packet loss rate refers to the ratio of the lost part of the data packet to the total number of transmitted data packets. The jitter rate and packet loss rate are important indicators for measuring network transmission performance and stability. When the data packet capacity is too large (that is, the data flow is too large), the jitter rate and packet loss rate of data transmission will increase. Therefore, the data packet size can be estimated based on the jitter rate and packet loss rate.

[0063] In one embodiment, extracting abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain a communication data packet size estimation value includes:

[0064] S210, extracting abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in the real-time communication data stream;

[0065] S220, inputting the abnormal characteristic parameters of the data transmission jitter rate D1 and the packet loss rate D2 into a data packet size estimation model to obtain a communication data packet size estimation value, wherein the data packet size estimation model satisfies the following expression:

[0066] D10 is the benchmark jitter rate, D20 is the benchmark packet loss rate, θ is the impact weight of the data transmission jitter rate on the estimated communication data packet size, 1-θ is the impact weight of the packet loss rate on the estimated communication data packet size, μ is the aging degree of the gateway device, μ0 is the benchmark aging degree of the gateway device, P10 is the communication data packet size value under the benchmark jitter rate, and P20 is the communication data packet size value under the benchmark packet loss rate.

[0067] Specifically, when training the estimation model, the inventors found that the data transmission jitter rate is positively correlated with the data packet size, and the data packet loss rate is positively correlated with the data packet size. When the gateway device is used for more than a certain number of years, the data transmission jitter rate and packet loss rate will be greater than the actual value and affect the data packet size estimation. Therefore, in an embodiment of the present application, the data packet size estimation is corrected by the aging of the gateway device. When the aging of the gateway device is greater than the benchmark aging, since the jitter rate and the packet loss rate are both greater than the actual values, the estimated data packet size is greater than the actual value. At this time, the aging of the gateway device is corrected to reduce the estimated value of the data packet size, so that the estimated value is closer to the actual value. In this way, the accuracy of the data packet size estimation is greatly improved.

[0068] It should be noted that the aging degree of the gateway device refers to the ratio of the excess years (the number of years that the actual service life exceeds the benchmark years) to the benchmark years. The influence weight θ of the data transmission jitter rate on the estimated communication data packet size can be pre-stored in the memory and directly obtained from the memory when needed.

[0069] S300: When the estimated value of the communication data packet size is greater than or equal to the instantaneous traffic threshold of the first gateway device fault verification, the communication data packet is split and adjusted according to the instantaneous traffic threshold of the first gateway device fault verification to obtain a first data packet and a second data packet, wherein the size value of the first data packet is lower than the instantaneous traffic threshold of the first gateway device fault verification;

[0070] The instantaneous traffic threshold for gateway device fault detection refers to the instantaneous value of the traffic that the gateway device allows to pass. That is, when the real-time data traffic is below the threshold, the normal transmission rate can be guaranteed. When the real-time data traffic is above the threshold, the transmission rate will be affected to a certain extent. Therefore, the instantaneous traffic threshold can be used for gateway device fault detection.

[0071] In one embodiment, when the estimated value of the communication data packet size is greater than or equal to the instantaneous traffic threshold of the first gateway device fault verification, the communication data packet is split and adjusted to obtain a first data packet and a second data packet, and when the data packet is split, it is ensured that the size value of the first data packet is lower than the instantaneous traffic threshold of the first gateway device fault verification.

[0072] S400, controlling the first data packet to be communicated and transmitted through the first gateway device to obtain an adjusted real-time data stream of the first gateway device, and controlling the second data packet to be communicated and transmitted through the second gateway device to obtain an adjusted real-time data stream of the second gateway device;

[0073] After the communication data packet is split and adjusted to obtain the first data packet and the second data packet, the first data packet is controlled to be communicated and transmitted through the first gateway device to obtain the adjusted real-time data stream of the first gateway device, and the second data packet is controlled to be communicated and transmitted through the second gateway device to obtain the adjusted real-time data stream of the second gateway device. In this way, the data packet is split and communicated, which can not only detect the fault of the gateway device, but also does not affect the normal communication of the data, which is beneficial to ensure the normal communication of the gateway during the gateway fault monitoring process.

[0074] S500, determining that an abnormality exists in the adjustment real-time data flow of the first gateway device, and judging that a gateway failure exists in the first gateway device;

[0075] S600: Determine that there is no abnormality in adjusting the real-time data flow of the first gateway device, and judge that there is no gateway failure in the first gateway device.

[0076] It can be understood that since the size value of the first data packet after the data packet is split is lower than the instantaneous threshold value of the traffic flow for the fault check of the first gateway device, if the gateway device is normal and has no faults, there will be no abnormality in the adjusted real-time data flow of the first gateway device. Therefore, when it is detected that there is an abnormality in the adjusted real-time data flow of the first gateway device, it can be determined that the first gateway device has a gateway fault. When it is detected that there is no abnormality in the adjusted real-time data flow of the first gateway device, it can be determined that the first gateway device does not have a gateway fault.

[0077] In another embodiment, after the step S400: controlling the second data packet to communicate and transmit through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, further includes:

[0078] S410, determining whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check;

[0079] S420: When the second data packet size value is less than or equal to the instantaneous threshold of the traffic flow for fault verification of the second gateway device, it is determined that there is an abnormality in the adjustment of the real-time data flow of the second gateway device, and it is judged that a gateway fault exists in the second gateway device.

[0080] Specifically, when the second data packet size value is less than or equal to the instantaneous traffic threshold of the second gateway device fault check and there is an abnormality in the adjusted real-time data flow of the second gateway device, it is determined that a gateway fault exists in the second gateway device.

[0081] In one embodiment, after the step S410: determining whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check, further includes:

[0082] S430, determining that the size of the second data packet is greater than the instantaneous traffic threshold of the second gateway device fault check, splitting and adjusting the second data packet to obtain a third data packet and a fourth data packet, wherein the size of the third data packet is lower than the instantaneous traffic threshold of the second gateway device fault check;

[0083] S440, controlling the third data packet to be communicated and transmitted through the second gateway device to obtain a secondary adjusted real-time data stream of the second gateway device, and controlling the fourth data packet to wait for communication transmission;

[0084] S450, determining that there is an abnormality in the secondary adjustment real-time data flow of the second gateway device, and judging that there is a gateway failure in the second gateway device;

[0085] S460: Determine that there is no abnormality in the secondary adjustment of the real-time data flow of the second gateway device, and judge that there is no gateway failure in the second gateway device.

[0086] Specifically, when the size value of the second data packet is greater than the instantaneous threshold value of the traffic for the fault check of the second gateway device, the second data packet is first split and adjusted to obtain a third data packet (the size value of the third data packet is lower than the instantaneous threshold value of the traffic for the fault check of the second gateway device) and a fourth data packet, and then the third data packet is controlled to communicate and transmit through the second gateway device to obtain the secondary adjusted real-time data stream of the second gateway device. When it is determined that there is an abnormality in the secondary adjusted real-time data stream of the second gateway device, it is judged that a gateway fault exists in the second gateway device. When it is determined that there is an abnormality in the secondary adjusted real-time data stream of the second gateway device, it is judged that there is a gateway fault in the second gateway device.

[0087] Based on this, the gateway fault monitoring method of the present application performs intelligent judgment and splitting of data packets to detect the gateway communication data after splitting when large-volume data transmission affects communication transmission. In this way, the accuracy of gateway fault detection is greatly improved. At the same time, the system achieves the effect of intelligent monitoring of gateway faults through intelligent estimation and intelligent splitting of traffic to quickly match traffic to different gateways, greatly improving the efficiency of gateway fault monitoring. The gateway device monitors and verifies the gateway device through multiple judgments on the data flow (data flow abnormality judgment before splitting and data flow abnormality judgment after data splitting), further improving the accuracy of gateway fault monitoring.

[0088] In another embodiment, the main gateway device uses a large-traffic gateway, and the backup gateway device uses a small-traffic gateway, that is, the instantaneous traffic threshold of the first gateway device fault check is greater than or equal to the instantaneous traffic threshold of the second gateway device fault check.

[0089] After extracting the abnormal characteristic parameters of the real-time communication data flow and inputting them into the pre-trained data packet size estimation model to obtain the communication data packet size estimation value, the method further includes:

[0090] S700: When the estimated value of the communication data packet size is less than the instantaneous flow threshold of the first gateway device fault check, control the gateway device to switch from the first gateway device to the second gateway device;

[0091] S800, obtaining a real-time communication data flow in which a data packet communicates through the second gateway device;

[0092] S900: Determine that there is no abnormality in the real-time communication data flow of the second gateway device, and determine that a gateway failure exists in the first gateway device.

[0093] Specifically, when the estimated value of the communication data packet size is less than the instantaneous flow threshold of the first gateway device fault check, the control gateway device is switched from the first gateway device to the second gateway device, and then the real-time communication data flow of the data packet passing through the second gateway device is obtained. When there is no abnormality in the real-time communication data flow of the second gateway device, it is determined that the first gateway device has a gateway fault. It can be understood that when the same data packet can work normally through a small traffic gateway (second gateway device) but cannot work normally through a large traffic gateway, it means that the first gateway device does have a gateway fault. In this way, the accuracy of monitoring the fault of the first gateway device can be further improved.

[0094] In one embodiment, after determining that a gateway fault exists in the first gateway device or determining that a gateway fault exists in the second gateway device, warning information may be generated based on the gateway fault information to remind relevant personnel to replace or repair the gateway device.

[0095] Exemplarily, after determining that a gateway fault exists in the first gateway device or determining that a gateway fault exists in the second gateway device, gateway fault monitoring and early warning information is first generated based on the gateway device fault information; then the gateway fault monitoring and early warning information is sent to the corresponding maintenance terminal for fault monitoring and early warning to remind relevant personnel to quickly replace the faulty gateway.

[0096] An embodiment of the present application also provides a system, which includes: an acquisition module, used to acquire the real-time communication data stream of a first gateway device; an extraction module, used to extract abnormal characteristic parameters of the real-time communication data stream; a splitting and adjustment module, used to split and adjust the communication data packet according to the instantaneous threshold of the traffic flow of the first gateway device fault check to obtain a first data packet and a second data packet; and a judgment module, used to judge whether there is an abnormality in the adjusted real-time data stream of the first gateway device.

[0097] The present application also provides an electronic device 100. Figure 3 , Figure 3 The hardware structure diagram of the electronic device provided in the embodiment of the present application is as follows. The electronic device 100 includes a processor 110 and a memory 120. The memory is used to store program codes, and the processor is used to call the program codes to execute the method described above.

[0098] The processor 110 is used to provide computing and control capabilities to control the electronic device to perform corresponding tasks, for example, to control the electronic device to perform the gateway fault monitoring method in any of the above method embodiments, the method comprising: obtaining the real-time communication data stream of the first gateway device; when it is determined that the real-time communication data stream of the first gateway device is abnormal, extracting abnormal characteristic parameters of the real-time communication data stream and inputting them into a pre-trained data packet size estimation model to obtain an estimated value of the communication data packet size; when the estimated value of the communication data packet size is greater than or equal to the instantaneous threshold of the flow rate of the first gateway device fault verification, splitting and adjusting the communication data packet according to the instantaneous threshold of the flow rate of the first gateway device fault verification to obtain a first data packet and a second data packet, wherein the size value of the first data packet is lower than the instantaneous threshold of the flow rate of the first gateway device fault verification; controlling the first data packet to be communicated and transmitted through the first gateway device to obtain the adjusted real-time data stream of the first gateway device, and controlling the second data packet to be communicated and transmitted through the second gateway device to obtain the adjusted real-time data stream of the second gateway device; determining that there is an abnormality in the adjusted real-time data stream of the first gateway device, and judging that there is a gateway fault in the first gateway device; determining that there is no abnormality in the adjusted real-time data stream of the first gateway device, and judging that there is no gateway fault in the first gateway device.

[0099] The processor 110 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0100] The memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the gateway fault monitoring method in the embodiment of the present application. The processor 110 can implement the gateway fault monitoring method in any of the above method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 120.

[0101] Specifically, the memory 120 may include a volatile memory (VM), such as a random access memory (RAM); the memory 120 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD) or other non-transitory solid-state storage device; the memory 120 may also include a combination of the above types of memory.

[0102] In summary, the electronic device of the present application adopts the technical solution of any one of the above-mentioned gateway fault monitoring method embodiments, and therefore, has at least the beneficial effects brought by the technical solution of the above-mentioned embodiments, which will not be described one by one here.

[0103] The embodiment of the present application also provides a computer-readable storage medium, such as a memory including a program code, and the program code can be executed by a processor to complete the gateway fault monitoring method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0104] The embodiment of the present application also provides a computer program product, which includes one or more program codes, and the program codes are stored in a computer-readable storage medium. The processor of the electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code to complete the steps of the gateway fault monitoring method provided in the above embodiment.

[0105] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0106] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0108] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A gateway fault monitoring method based on network communication, applied to a first gateway device and a second gateway device, characterized in that: The method comprises: Acquire a real-time communication data stream of the first gateway device; When it is determined that the real-time communication data flow of the first gateway device is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain an estimated value of the communication data packet size; In the case where the estimated value of the communication data packet size is greater than or equal to the instantaneous traffic threshold of the first gateway device fault verification, the communication data packet is split and adjusted according to the instantaneous traffic threshold of the first gateway device fault verification to obtain a first data packet and a second data packet, wherein the size value of the first data packet is lower than the instantaneous traffic threshold of the first gateway device fault verification; The instantaneous flow threshold of the first gateway device fault check is greater than or equal to the instantaneous flow threshold of the second gateway device fault check, and after the abnormal characteristic parameter of the real-time communication data flow is extracted and input into the pre-trained data packet size estimation model to obtain the communication data packet size estimation value, it also includes: When the estimated value of the communication data packet size is less than the instantaneous flow threshold of the first gateway device fault check, control the gateway device to switch from the first gateway device to the second gateway device; Acquire a real-time communication data stream in which data packets communicate through the second gateway device; Determining that there is no abnormality in the real-time communication data flow of the second gateway device, and judging that there is a gateway failure in the first gateway device; Controlling the first data packet to be communicated and transmitted through the first gateway device to obtain an adjusted real-time data stream of the first gateway device, and controlling the second data packet to be communicated and transmitted through the second gateway device to obtain an adjusted real-time data stream of the second gateway device; Determining that an abnormality exists in the adjustment real-time data stream of the first gateway device, and judging that a gateway failure exists in the first gateway device; Determining that there is no abnormality in adjusting the real-time data stream of the first gateway device, and judging that there is no gateway failure in the first gateway device; The abnormal characteristic parameters of the real-time communication data flow include a data transmission jitter rate and a packet loss rate. The extracting the abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain a communication data packet size estimation value includes: Extract abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in real-time communication data stream; The data transmission jitter rate D1 and the packet loss rate D2 abnormal characteristic parameters are input into the data packet size estimation model to obtain the communication data packet size estimation value, wherein the data packet size estimation model satisfies the following expression: P= *θ+ *(1-θ), D10 is the benchmark jitter rate, D20 is the benchmark packet loss rate, θ is the influence weight of data transmission jitter rate on the estimated communication data packet size, 1-θ is the influence weight of packet loss rate on the estimated communication data packet size, is the aging degree of the gateway device, is the benchmark aging degree of the gateway device, P10 is the communication data packet size value under the benchmark jitter rate, and P20 is the communication data packet size value under the benchmark packet loss rate.

2. The gateway fault monitoring method based on network communication according to claim 1, characterized in that: After controlling the second data packet to communicate and transmit through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, the method further includes: Determine whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check; When the second data packet size value is less than or equal to the instantaneous threshold of the traffic flow for fault verification of the second gateway device, it is determined that there is an abnormality in the adjustment of the real-time data flow of the second gateway device, and it is judged that a gateway fault exists in the second gateway device.

3. The gateway fault monitoring method based on network communication according to claim 2, characterized in that: After determining whether the second data packet size value is greater than the instantaneous flow threshold of the second gateway device fault check, the method further includes: Determine that the size value of the second data packet is greater than the instantaneous threshold of traffic flow for the second gateway device fault check, split and adjust the second data packet to obtain a third data packet and a fourth data packet, wherein the size value of the third data packet is lower than the instantaneous threshold of traffic flow for the second gateway device fault check; Control the third data packet to be communicated and transmitted through the second gateway device to obtain a secondary adjusted real-time data stream of the second gateway device, and control the fourth data packet to wait for communication transmission; Determining that the secondary adjustment real-time data stream of the second gateway device is abnormal, and judging that the second gateway device has a gateway failure; It is determined that there is no abnormality in the secondary adjustment of the real-time data flow of the second gateway device, and it is determined that there is no gateway failure in the second gateway device.

4. The gateway fault monitoring method based on network communication according to any one of claims 1 to 3, characterized in that: After determining that the first gateway device has a gateway fault or determining that the second gateway device has a gateway fault, the method further includes: Generate gateway fault monitoring and early warning information based on gateway device fault information; The gateway fault monitoring and early warning information is sent to the corresponding maintenance terminal for fault monitoring and early warning.

5. The gateway fault monitoring method based on network communication according to claim 1, characterized in that: After acquiring the real-time communication data stream of the first gateway device, the method further includes: Acquire the data communication transmission rate of the first gateway device; It is determined whether the real-time communication data flow of the first gateway device is abnormal according to the data communication transmission rate of the first gateway device.

6. A gateway fault monitoring system based on network communication, characterized in that: The system comprises: An acquisition module, used to acquire a real-time communication data stream of a first gateway device; An extraction module is used to extract abnormal characteristic parameters of the real-time communication data flow; when it is determined that the real-time communication data flow of the first gateway device is abnormal, the abnormal characteristic parameters of the real-time communication data flow are extracted and input into a pre-trained data packet size estimation model to obtain an estimated value of the communication data packet size; A splitting and adjustment module, configured to split and adjust the communication data packet according to the instantaneous traffic threshold of the first gateway device fault check to obtain a first data packet and a second data packet; when the estimated value of the communication data packet size is greater than or equal to the instantaneous traffic threshold of the first gateway device fault check, split and adjust the communication data packet according to the instantaneous traffic threshold of the first gateway device fault check to obtain a first data packet and a second data packet, wherein the first data packet size value is lower than the instantaneous traffic threshold of the first gateway device fault check; The instantaneous flow threshold of the first gateway device fault check is greater than or equal to the instantaneous flow threshold of the second gateway device fault check, and after the abnormal characteristic parameter of the real-time communication data flow is extracted and input into the pre-trained data packet size estimation model to obtain the communication data packet size estimation value, it also includes: When the estimated value of the communication data packet size is less than the instantaneous flow threshold of the first gateway device fault check, control the gateway device to switch from the first gateway device to the second gateway device; Acquire a real-time communication data stream in which data packets communicate through the second gateway device; Determining that there is no abnormality in the real-time communication data flow of the second gateway device, and judging that there is a gateway failure in the first gateway device; A judgment module, used to judge whether there is an abnormality in the adjusted real-time data flow of the first gateway device; control the first data packet to be communicated and transmitted through the first gateway device to obtain the adjusted real-time data flow of the first gateway device, and control the second data packet to be communicated and transmitted through the second gateway device to obtain the adjusted real-time data flow of the second gateway device; Determining that an abnormality exists in the adjustment real-time data stream of the first gateway device, and judging that a gateway failure exists in the first gateway device; Determining that there is no abnormality in adjusting the real-time data stream of the first gateway device, and judging that there is no gateway failure in the first gateway device; The abnormal characteristic parameters of the real-time communication data flow include a data transmission jitter rate and a packet loss rate. The extracting the abnormal characteristic parameters of the real-time communication data flow and inputting them into a pre-trained data packet size estimation model to obtain a communication data packet size estimation value includes: Extract abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in real-time communication data stream; The data transmission jitter rate D1 and the packet loss rate D2 abnormal characteristic parameters are input into the data packet size estimation model to obtain the communication data packet size estimation value, wherein the data packet size estimation model satisfies the following expression: P= *θ+ *(1-θ), D10 is the benchmark jitter rate, D20 is the benchmark packet loss rate, θ is the influence weight of data transmission jitter rate on the estimated communication data packet size, 1-θ is the influence weight of packet loss rate on the estimated communication data packet size, is the aging degree of the gateway device, is the benchmark aging degree of the gateway device, P10 is the communication data packet size value under the benchmark jitter rate, and P20 is the communication data packet size value under the benchmark packet loss rate.

7. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the gateway fault monitoring method according to any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the operation performed by the gateway fault monitoring method according to any one of claims 1 to 5.