CN117692361A - Gateway fault monitoring method and system based on network communication - Google Patents
Gateway fault monitoring method and system based on network communication Download PDFInfo
- Publication number
- CN117692361A CN117692361A CN202410094650.0A CN202410094650A CN117692361A CN 117692361 A CN117692361 A CN 117692361A CN 202410094650 A CN202410094650 A CN 202410094650A CN 117692361 A CN117692361 A CN 117692361A
- Authority
- CN
- China
- Prior art keywords
- gateway
- data packet
- real
- gateway equipment
- fault
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 148
- 230000006854 communication Effects 0.000 title claims abstract description 145
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000012544 monitoring process Methods 0.000 title claims abstract description 52
- 230000002159 abnormal effect Effects 0.000 claims description 65
- 230000005540 biological transmission Effects 0.000 claims description 44
- 230000001052 transient effect Effects 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 claims description 9
- 230000032683 aging Effects 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application relates to the technical field of communication and discloses a gateway fault monitoring method and a system based on network communication.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a gateway fault monitoring method and system based on network communication.
Background
The gateway is a network-to-network device which communicates one network with another network to provide specific applications and can realize corresponding application protocols. A gateway can be seen as an intermediate process between a client requiring a particular service and a server providing the required service, in which it acts as a server from the user side and is a client from the server side.
In the related art, the gateway equipment fault detection adopts a mode of manually checking after receiving the gateway fault related service complaints or monitoring the related alarms by a monitoring system, and the gateway fault detection mode is mostly aimed at physical fault monitoring, and has the defects of slow detection response, low efficiency and the like.
Disclosure of Invention
The invention mainly aims to provide a gateway fault monitoring method and system based on network communication, and aims to solve the technical problems of slow detection response, low efficiency and the like in gateway fault detection in the prior art.
In order to achieve the above object, 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, where the method includes:
acquiring a real-time communication data stream of the first gateway device;
under the condition that the real-time communication data flow of the first gateway equipment is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value;
under the condition that the communication data packet size pre-estimated value is larger than or equal to the flow instantaneous threshold value of the first gateway equipment fault check, the communication data packet is split and adjusted according to the flow instantaneous threshold value of the first gateway equipment fault check to obtain a first data packet and a second data packet, wherein the first data packet size value is lower than the flow instantaneous threshold value of the first gateway equipment fault check;
controlling the first data packet to be communicated and transmitted through the first gateway equipment to obtain an adjustment real-time data stream of the first gateway equipment, and controlling the second data packet to be communicated and transmitted through the second gateway equipment to obtain an adjustment real-time data stream of the second gateway equipment;
determining that an abnormality exists in the adjustment real-time data flow of a first gateway device, and judging that the first gateway device has a gateway fault;
and determining that the adjustment real-time data flow of the first gateway equipment is not abnormal, and judging that the first gateway equipment is not provided with gateway faults.
Further, the flow instantaneous threshold value of the first gateway device fault check is greater than or equal to the flow instantaneous threshold value of the second gateway device fault check, and after 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 a communication data packet size pre-estimated value, the method further comprises the steps of:
under the condition that the communication data packet size pre-estimated value is smaller than the traffic instantaneous threshold value of the first gateway equipment fault check, the control gateway equipment is switched from the first gateway equipment to the second gateway equipment;
acquiring a real-time communication data stream of the data packet communicated through the second gateway device;
and determining that the real-time communication data flow of the second gateway equipment is not abnormal, and judging that the first gateway equipment has gateway faults.
Further, the real-time communication data flow abnormal characteristic parameters include a data transmission jitter rate and a packet loss rate, and the extracting the real-time communication data flow abnormal characteristic parameters and inputting the extracted real-time communication data flow abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size pre-estimated value, including:
extracting abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in a real-time communication data stream;
inputting the abnormal characteristic parameters of the data transmission jitter rate D1 and the packet loss rate D2 into a data packet size prediction model to obtain a communication data packet size predicted value, wherein the data packet size prediction model satisfies the following expression:
d10 is a reference jitter rate, D20 is a reference packet loss rate, θ is an influence weight of the data transmission jitter rate on the communication data packet size prediction, 1- θ is an influence weight of the packet loss rate on the communication data packet size prediction, μ is a gateway device aging degree, μ0 is a gateway device reference aging degree, P10 is a communication data packet size value at the reference jitter rate, and P20 is a communication data packet size value at the reference packet loss rate.
Further, after the controlling the second data packet to be transmitted through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, the method further includes:
judging whether the size value of the second data packet is larger than a flow instantaneous threshold value of the second gateway equipment fault check;
and under the condition that the size value of the second data packet is smaller than or equal to the flow instantaneous threshold value of the second gateway equipment fault check, determining that the adjustment real-time data flow of the second gateway equipment is abnormal, and judging that the second gateway equipment has gateway faults.
Further, after determining whether the second packet size value is greater than the traffic transient threshold of the second gateway device fault check, the method further includes:
determining that the size value of the second data packet is larger than the flow instantaneous threshold value of the second gateway equipment fault check, and carrying out split adjustment on 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 flow instantaneous threshold value of the second gateway equipment fault check;
controlling the third data packet to be transmitted in a communication way through the second gateway equipment to obtain a secondary adjustment real-time data stream of the second gateway equipment, and controlling the fourth data packet to wait for communication transmission;
determining that the secondary adjustment real-time data flow of the second gateway equipment is abnormal, and judging that the second gateway equipment has gateway faults;
and determining that the secondary adjustment real-time data flow of the second gateway equipment is not abnormal, and judging that the second gateway equipment is not provided with gateway faults.
Further, after the determining that the first gateway device has a gateway fault or the second gateway device has a gateway fault, the method further includes:
generating gateway fault monitoring and early warning information according to the gateway equipment fault information;
and sending the gateway fault monitoring and early warning information to a corresponding maintenance terminal for fault monitoring and early warning.
Further, after the acquiring the real-time communication data stream of the first gateway device, the method further includes:
acquiring the data communication transmission rate of the first gateway equipment;
and judging whether the real-time communication data flow of the first gateway equipment is abnormal or not according to the data communication transmission rate of the first gateway equipment.
In a second aspect, there is also provided in an embodiment of the present application, a system, including:
the acquisition module is used for acquiring the real-time communication data stream of the first gateway equipment;
the extraction module is used for extracting abnormal characteristic parameters of the real-time communication data stream;
the disassembly and adjustment module is used for performing disassembly and adjustment on the communication data packet according to the flow instantaneous threshold value of the first gateway equipment fault check so as to obtain a first data packet and a second data packet;
and the judging module is used for judging whether the adjustment real-time data flow of the first gateway equipment is abnormal or not.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
at least one processor;
and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the gateway fault monitoring method of the first aspect.
In a fourth aspect, in an embodiment of the present application, there is further provided a storage medium, where at least one instruction is stored, where the instruction is loaded and executed by a processor to implement an operation performed by the gateway fault monitoring method in the first aspect.
Different from the prior art, the gateway fault monitoring method based on network communication provided by the embodiment of the application firstly obtains the real-time communication data stream of the first gateway device; under the condition that the real-time communication data flow of the first gateway equipment is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value; under the condition that the communication data packet size pre-estimated value is larger than or equal to the flow instantaneous threshold value of the first gateway equipment fault check, the communication data packet is split and adjusted according to the flow instantaneous threshold value of the first gateway equipment fault check to obtain a first data packet and a second data packet; then controlling the first data packet to be transmitted through the first gateway equipment in a communication way to obtain an adjustment real-time data stream of the first gateway equipment; when the adjustment real-time data flow of the first gateway equipment is abnormal, judging that the first gateway equipment has gateway faults; that is, under the state that the large-traffic transmission influences 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, the system is intelligently estimated and intelligently split through the traffic size to quickly match corresponding traffic to different gateways, the effect of intelligent monitoring of gateway faults is achieved, and the monitoring efficiency of gateway faults is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a gateway fault monitoring method based on network communication in some embodiments of the present application;
FIG. 2 is a flow chart of a gateway fault monitoring method based on network communication according to other embodiments of the present application;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to some embodiments of the present application.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are merely used to explain the relative positional relationship, movement, etc. between the components in a particular posture (as shown in the drawings), and if the particular posture is changed, the directional indicator is changed accordingly.
Furthermore, the description of "first," "second," etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, "and/or" throughout this document includes three schemes, taking a and/or B as an example, including a technical scheme, a technical scheme B, and a technical scheme that both a and B satisfy; in addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
The gateway is a network-to-network device which communicates one network with another network to provide specific applications and can realize corresponding application protocols. A gateway can be seen as an intermediate process between a client requiring a particular service and a server providing the required service, in which it acts as a server from the user side and is a client from the server side.
In the related art, the gateway equipment fault detection adopts a mode of manually checking after receiving the gateway fault related service complaints or monitoring the related alarms by a monitoring system, and the gateway fault detection mode is mostly aimed at physical fault monitoring, such as temperature anomaly monitoring, and has the defects of slow detection response, low efficiency and the like.
Aiming at the problems, the application provides 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, the second gateway device is a standby gateway, the main gateway is generally used in daily network communication, and the standby gateway is generally used in the case of main gateway fault or larger communication transmission flow; in general, the performance of the primary gateway device is better than or equal to the performance of the backup gateway device.
The steps of the gateway fault monitoring method will be mainly described below, and it should be further noted that although a logic sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here, and in particular, as shown in fig. 1-2, the method of the present application includes the following steps:
s100, acquiring a real-time communication data stream of the first gateway device;
it can be understood that when data passes through the gateway device, the system estimates the data transmission rate, the transmission remaining time and the transmission packet loss condition, and the data transmission rates at different times are generally variable (unstable), that is, there is a jitter in the rate, so that the transmission rate variation process of the data can form a sub-communication data stream, the variation process of the transmission remaining time can also form a sub-communication data stream, the variation process of the transmission packet loss condition can also form a sub-communication data stream, and the integration of different sub-communication data streams can form a system communication data stream, and different information in the communication process can be obtained by querying the system communication data stream.
Thus, the embodiment of the present application first obtains a real-time communication data stream of the first gateway device, where the real-time communication data stream may refer to a communication data stream from a data transmission start to a current time.
S200, under the condition that the real-time communication data flow of the first gateway equipment is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value;
in an embodiment, whether the communication data flow is abnormal or not may be determined according to the transmission rate of the data communication, for example, the data communication transmission rate of the first gateway device is first obtained; and judging whether the real-time communication data flow of the first gateway equipment is abnormal or not according to the data communication transmission rate of the first gateway equipment, and when the data communication transmission rate of the first gateway equipment is lower than a preset value, considering that the real-time communication data flow of the first gateway equipment is abnormal.
The abnormal characteristic parameters of the real-time communication data stream comprise a data transmission jitter rate and a packet loss rate, wherein the jitter rate is the ratio of a transmission rate change period to a non-change period of a data packet during network transmission, the packet loss rate is the ratio of a data packet loss part to the total number of transmitted data packets, the jitter rate and the packet loss rate are important indexes for measuring the network transmission performance and stability, and the jitter rate and the packet loss rate of the data transmission are increased when the data packet capacity is overlarge (namely the data flow is overlarge), so that the data packet size can be estimated according to the jitter rate and the packet loss rate.
In one embodiment, the extracting the abnormal characteristic parameters of the real-time communication data stream and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value includes:
s210, extracting abnormal characteristic parameters of a data transmission jitter rate D1 and a packet loss rate D2 in a real-time communication data stream;
s220, inputting the abnormal characteristic parameters of the data transmission jitter rate D1 and the packet loss rate D2 into a data packet size prediction model to obtain a communication data packet size predicted value, wherein the data packet size prediction model meets the following expression:
d10 is a reference jitter rate, D20 is a reference packet loss rate, θ is an influence weight of the data transmission jitter rate on the communication data packet size prediction, 1- θ is an influence weight of the packet loss rate on the communication data packet size prediction, μ is a gateway device aging degree, μ0 is a gateway device reference aging degree, P10 is a communication data packet size value at the reference jitter rate, and P20 is a communication data packet size value at the reference packet loss rate.
Specifically, the inventor finds that the data transmission jitter rate and the data packet size are in a positive correlation when the prediction model is trained, the data packet loss rate and the data packet size are in a positive correlation, and when the service time of the gateway equipment exceeds a certain period, the jitter rate and the packet loss rate of the data transmission are larger than the actual value to influence the data packet size prediction.
The aging degree of the gateway device refers to a ratio of excess years (the number of years in which the actual service life exceeds the reference years) to the reference years, and the predicted impact weight θ of the data transmission jitter rate on the size of the communication data packet may be stored in the memory in advance, and may be directly obtained from the memory when needed.
S300, when the communication data packet size predicted value is larger than or equal to a flow instantaneous threshold value of the first gateway equipment fault check, splitting and adjusting the communication data packet according to the flow instantaneous threshold value of the first gateway equipment fault check to obtain a first data packet and a second data packet, wherein the first data packet size value is lower than the flow instantaneous threshold value of the first gateway equipment fault check;
the instantaneous threshold of the flow for checking the fault of the gateway device refers to the instantaneous value of the flow allowed by the gateway device, namely, when the instant data flow is below the threshold, the normal transmission rate can be ensured, and when the instant data flow is above the threshold, the transmission rate can be affected to a certain extent, so that the instantaneous threshold of the flow can be used for checking the fault of the gateway device.
In an embodiment, when the communication data packet size predicted value is greater than or equal to the traffic transient threshold value of the first gateway device fault check, 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, the first data packet size value is ensured to be lower than the traffic transient threshold value of the first gateway device fault check.
S400, controlling the first data packet to be communicated and transmitted through the first gateway equipment to obtain an adjustment real-time data stream of the first gateway equipment, and controlling the second data packet to be communicated and transmitted through the second gateway equipment to obtain an adjustment real-time data stream of the second gateway equipment;
after the communication data packet is split and adjusted to obtain a first data packet and a second data packet, the first data packet is controlled to be transmitted through the first gateway equipment to obtain an adjustment real-time data stream of the first gateway equipment, and the second data packet is controlled to be transmitted through the second gateway equipment to obtain an adjustment real-time data stream of the second gateway equipment, so that the data packet is split and communicated, the fault detection of the gateway equipment can be carried out, the normal communication of the data is not influenced, and the normal communication of the gateway is guaranteed in the gateway fault monitoring process.
S500, determining that an abnormality exists in the adjustment real-time data flow of the first gateway equipment, and judging that the first gateway equipment has gateway faults;
s600, determining that the adjustment real-time data flow of the first gateway equipment is not abnormal, and judging that the first gateway equipment is not provided with gateway faults.
It can be understood that, because the size value of the first data packet after the data packet is split is lower than the flow transient threshold value of the fault check of the first gateway device, if the gateway device is normal and has no fault, the adjustment real-time data flow of the first gateway device will not have abnormality, so when detecting and determining that the adjustment real-time data flow of the first gateway device has abnormality, the first gateway device can be judged to have gateway fault, and when detecting and determining that the adjustment real-time data flow of the first gateway device has no abnormality, the first gateway device can be judged to have no gateway fault.
In another embodiment, the step S400 further includes, after controlling the second data packet to be transmitted through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, the steps of:
s410, judging whether the size value of the second data packet is larger than a flow instantaneous threshold value of the second gateway equipment fault check;
and S420, determining that the adjustment real-time data flow of the second gateway equipment is abnormal and judging that the second gateway equipment has gateway faults under the condition that the size value of the second data packet is smaller than or equal to the flow instantaneous threshold value of the second gateway equipment fault check.
Specifically, when the size value of the second data packet is smaller than or equal to the traffic transient threshold value of the second gateway equipment fault check and the adjustment real-time data flow of the second gateway equipment is abnormal, judging that the second gateway equipment has gateway faults.
In one embodiment, the step S410 further includes, after determining whether the second packet size value is greater than the traffic transient threshold of the second gateway device failure check:
s430, determining that the size value of the second data packet is larger than the flow instantaneous threshold of the second gateway equipment fault check, and carrying out split adjustment on 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 flow instantaneous threshold of the second gateway equipment fault check;
s440, controlling the third data packet to be transmitted in a communication way through the second gateway equipment to obtain a secondary adjustment real-time data stream of the second gateway equipment, and controlling the fourth data packet to wait for communication transmission;
s450, determining that the secondary adjustment real-time data flow of the second gateway equipment is abnormal, and judging that the second gateway equipment has gateway faults;
s460, determining that the secondary adjustment real-time data flow of the second gateway equipment is not abnormal, and judging that the second gateway equipment is not provided with gateway faults.
Specifically, when the size value of the second data packet is greater than the traffic transient threshold value of the second gateway device fault check, 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 traffic transient threshold value of the second gateway device fault check) and a fourth data packet, and then the third data packet is controlled to be transmitted through the second gateway device in a communication manner to obtain a secondary adjustment real-time data stream of the second gateway device.
Based on the method, the gateway fault monitoring method performs intelligent judgment and disassembly on the data packet to detect the disassembled gateway communication data under the condition that the large-flow data transmission influences the communication transmission, so that the accuracy of gateway fault detection is greatly improved, meanwhile, the system rapidly matches the flow to different gateways through intelligent prediction and intelligent disassembly of the flow, the effect of intelligent monitoring of gateway faults is achieved, the gateway fault monitoring efficiency is greatly improved, and the gateway equipment monitors and checks the gateway equipment and further the accuracy of gateway fault monitoring through multiple judgment of the data flow (data flow abnormality judgment before disassembly and data flow abnormality judgment after data disassembly).
In another embodiment, the primary gateway device selects a large-flow gateway, and the standby gateway device selects a small-flow gateway, that is, the instantaneous threshold of the flow rate of the fault check of the first gateway device is greater than or equal to the instantaneous threshold of the flow rate of the fault check of the second gateway device.
The method for extracting the abnormal characteristic parameters of the real-time communication data stream and inputting the abnormal characteristic parameters into a pre-trained data packet size pre-estimation model to obtain a communication data packet size pre-estimation value further comprises the following steps:
s700, controlling the gateway equipment to be switched from the first gateway equipment to the second gateway equipment under the condition that the communication data packet size predicted value is smaller than the traffic instantaneous threshold value of the first gateway equipment fault check;
s800, acquiring a real-time communication data stream of the data packet communicated through the second gateway device;
s900, determining that the real-time communication data flow of the second gateway device is not abnormal, and judging that the first gateway device has gateway faults.
Specifically, when the communication data packet size predicted value is smaller than the traffic transient threshold value of the first gateway equipment fault check, the control gateway equipment is switched from the first gateway equipment to the second gateway equipment, then the real-time communication data flow when the data packet passes through the second gateway equipment is acquired, and when the real-time communication data flow of the second gateway equipment is not abnormal, the first gateway equipment is judged to have the gateway fault. It can be understood that when the same data packet can work normally through the small-flow gateway (the second gateway device), but can not work normally through the large-flow gateway, it is indicated that the first gateway device does have a gateway fault, so that the accuracy of monitoring the first gateway device fault can be further improved.
In an embodiment, after determining that the first gateway device has a gateway fault or determining that the second gateway device has a gateway fault, early warning information may be generated according to the gateway fault information to remind related personnel to replace, repair, and the like the gateway device.
For example, after judging that the first gateway device has a gateway fault or judging that the second gateway device has a gateway fault, generating gateway fault monitoring and early warning information according to the gateway device fault information; and then sending the gateway fault monitoring and early warning information to a corresponding maintenance terminal for fault monitoring and early warning so as to remind related personnel to quickly replace the fault gateway.
The embodiment of the application also provides a system, which comprises: the acquisition module is used for acquiring the real-time communication data stream of the first gateway equipment; the extraction module is used for extracting abnormal characteristic parameters of the real-time communication data stream; the disassembly and adjustment module is used for performing disassembly and adjustment on the communication data packet according to the flow instantaneous threshold value of the first gateway equipment fault check so as to obtain a first data packet and a second data packet; and the judging module is used for judging whether the adjustment real-time data flow of the first gateway equipment is abnormal or not.
Referring to fig. 3, fig. 3 is a schematic hardware structure diagram of the electronic device provided in the embodiment of the application, where the electronic device 100 includes a processor 110 and a memory 120. The memory is used to store program code and the processor is used to invoke the program code to perform the method as described above.
The processor 110 is configured 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 method embodiments described above, where the method includes: acquiring a real-time communication data stream of the first gateway device; under the condition that the real-time communication data flow of the first gateway equipment is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value; under the condition that the communication data packet size pre-estimated value is larger than or equal to the flow instantaneous threshold value of the first gateway equipment fault check, the communication data packet is split and adjusted according to the flow instantaneous threshold value of the first gateway equipment fault check to obtain a first data packet and a second data packet, wherein the first data packet size value is lower than the flow instantaneous threshold value of the first gateway equipment fault check; controlling the first data packet to be communicated and transmitted through the first gateway equipment to obtain an adjustment real-time data stream of the first gateway equipment, and controlling the second data packet to be communicated and transmitted through the second gateway equipment to obtain an adjustment real-time data stream of the second gateway equipment; determining that an abnormality exists in the adjustment real-time data flow of a first gateway device, and judging that the first gateway device has a gateway fault; and determining that the adjustment real-time data flow of the first gateway equipment is not abnormal, and judging that the first gateway equipment is not provided with gateway faults.
The processor 110 may be a general purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a hardware chip, or any combination thereof; it may also be a digital signal processor (Digital Signal Processing, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
The memory 120, as a non-transitory computer readable storage medium, may 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 embodiments of the present application. The processor 110 may implement the gateway fault monitoring method of any of the method embodiments described above by running non-transitory software programs, instructions, and modules stored in the memory 120.
In particular, the memory 120 may include Volatile Memory (VM), such as random access memory (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 (flash memory), a hard disk (HDD) or a Solid State Drive (SSD), or other non-transitory solid state storage devices; memory 120 may also include a combination of the types of memory described above.
In summary, the electronic device of the present application adopts the technical solution of any one of the embodiments of the gateway fault monitoring method, so at least the beneficial effects brought by the technical solution of the foregoing embodiments are not described in detail herein.
Embodiments of the present application also provide a computer readable storage medium, such as a memory including program code, executable by a processor to perform the gateway fault monitoring method of the above embodiments. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CDROM), magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a computer program product comprising one or more program codes stored in a computer-readable storage medium. The program code is read from the computer readable storage medium by a processor of the electronic device, which is executed by the processor to perform the gateway failure monitoring method steps provided in the above embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by program code related hardware, where the program may be stored in a computer readable storage medium, where the storage medium may be a read only memory, a magnetic disk or optical disk, etc.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units 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 purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and where the program may include processes implementing the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structural changes made by the description of the present invention and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the invention.
Claims (10)
1. The gateway fault monitoring method based on network communication is applied to a first gateway device and a second gateway device, and is characterized by comprising the following steps:
acquiring a real-time communication data stream of the first gateway device;
under the condition that the real-time communication data flow of the first gateway equipment is abnormal, extracting abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain a communication data packet size estimated value;
under the condition that the communication data packet size pre-estimated value is larger than or equal to the flow instantaneous threshold value of the first gateway equipment fault check, the communication data packet is split and adjusted according to the flow instantaneous threshold value of the first gateway equipment fault check to obtain a first data packet and a second data packet, wherein the first data packet size value is lower than the flow instantaneous threshold value of the first gateway equipment fault check;
controlling the first data packet to be communicated and transmitted through the first gateway equipment to obtain an adjustment real-time data stream of the first gateway equipment, and controlling the second data packet to be communicated and transmitted through the second gateway equipment to obtain an adjustment real-time data stream of the second gateway equipment;
determining that an abnormality exists in the adjustment real-time data flow of a first gateway device, and judging that the first gateway device has a gateway fault;
and determining that the adjustment real-time data flow of the first gateway equipment is not abnormal, and judging that the first gateway equipment is not provided with gateway faults.
2. The method for monitoring network communication based gateway fault as claimed in claim 1, wherein the flow instantaneous threshold of the first gateway device fault check is greater than or equal to the flow instantaneous threshold of the second gateway device fault check, and after the extracting the abnormal characteristic parameters of the real-time communication data flow and inputting the abnormal characteristic parameters into the pre-trained data packet size pre-estimation model to obtain the communication data packet size pre-estimated value, the method further comprises:
under the condition that the communication data packet size pre-estimated value is smaller than the traffic instantaneous threshold value of the first gateway equipment fault check, the control gateway equipment is switched from the first gateway equipment to the second gateway equipment;
acquiring a real-time communication data stream of the data packet communicated through the second gateway device;
and determining that the real-time communication data flow of the second gateway equipment is not abnormal, and judging that the first gateway equipment has gateway faults.
3. The gateway fault monitoring method based on network communication as claimed in claim 1, wherein the real-time communication data flow abnormal characteristic parameters include a data transmission jitter rate and a packet loss rate, the extracting the real-time communication data flow abnormal characteristic parameters and inputting the extracted real-time communication data flow abnormal characteristic parameters into a pre-trained data packet size estimation model to obtain the communication data packet size pre-estimated value comprises:
extracting abnormal characteristic parameters of data transmission jitter rate D1 and packet loss rate D2 in a real-time communication data stream;
inputting the abnormal characteristic parameters of the data transmission jitter rate D1 and the packet loss rate D2 into a data packet size prediction model to obtain a communication data packet size predicted value, wherein the data packet size prediction model satisfies the following expression:
d10 is a reference jitter rate, D20 is a reference packet loss rate, θ is an influence weight of the data transmission jitter rate on the communication data packet size prediction, 1- θ is an influence weight of the packet loss rate on the communication data packet size prediction, μ is a gateway device aging degree, μ0 is a gateway device reference aging degree, P10 is a communication data packet size value at the reference jitter rate, and P20 is a communication data packet size value at the reference packet loss rate.
4. The method for monitoring a gateway fault based on network communication according to claim 1, wherein after the controlling the second data packet to be transmitted through the second gateway device to obtain the adjusted real-time data stream of the second gateway device, the method further comprises:
judging whether the size value of the second data packet is larger than a flow instantaneous threshold value of the second gateway equipment fault check;
and under the condition that the size value of the second data packet is smaller than or equal to the flow instantaneous threshold value of the second gateway equipment fault check, determining that the adjustment real-time data flow of the second gateway equipment is abnormal, and judging that the second gateway equipment has gateway faults.
5. The method for monitoring network communication based gateway according to claim 4, wherein after determining whether the second packet size value is greater than the traffic transient threshold of the second gateway device fault check, further comprising:
determining that the size value of the second data packet is larger than the flow instantaneous threshold value of the second gateway equipment fault check, and carrying out split adjustment on 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 flow instantaneous threshold value of the second gateway equipment fault check;
controlling the third data packet to be transmitted in a communication way through the second gateway equipment to obtain a secondary adjustment real-time data stream of the second gateway equipment, and controlling the fourth data packet to wait for communication transmission;
determining that the secondary adjustment real-time data flow of the second gateway equipment is abnormal, and judging that the second gateway equipment has gateway faults;
and determining that the secondary adjustment real-time data flow of the second gateway equipment is not abnormal, and judging that the second gateway equipment is not provided with gateway faults.
6. The method for monitoring a gateway fault based on network communication according to any one of claims 1 to 5, wherein after the determining that the first gateway device has a gateway fault or the second gateway device has a gateway fault, further comprising:
generating gateway fault monitoring and early warning information according to the gateway equipment fault information;
and sending the gateway fault monitoring and early warning information to a corresponding maintenance terminal for fault monitoring and early warning.
7. The gateway fault monitoring method based on network communication as claimed in claim 1, wherein after said acquiring the real-time communication data stream of the first gateway device, further comprising:
acquiring the data communication transmission rate of the first gateway equipment;
and judging whether the real-time communication data flow of the first gateway equipment is abnormal or not according to the data communication transmission rate of the first gateway equipment.
8. A system, the system comprising:
the acquisition module is used for acquiring the real-time communication data stream of the first gateway equipment;
the extraction module is used for extracting abnormal characteristic parameters of the real-time communication data stream;
the disassembly and adjustment module is used for performing disassembly and adjustment on the communication data packet according to the flow instantaneous threshold value of the first gateway equipment fault check so as to obtain a first data packet and a second data packet;
and the judging module is used for judging whether the adjustment real-time data flow of the first gateway equipment is abnormal or not.
9. An electronic device, comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the gateway fault monitoring method of any one of claims 1-7.
10. A storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement operations performed by the gateway fault monitoring method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410094650.0A CN117692361A (en) | 2024-01-23 | 2024-01-23 | Gateway fault monitoring method and system based on network communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410094650.0A CN117692361A (en) | 2024-01-23 | 2024-01-23 | Gateway fault monitoring method and system based on network communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117692361A true CN117692361A (en) | 2024-03-12 |
Family
ID=90137351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410094650.0A Pending CN117692361A (en) | 2024-01-23 | 2024-01-23 | Gateway fault monitoring method and system based on network communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117692361A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118194210A (en) * | 2024-05-16 | 2024-06-14 | 南京信息工程大学 | Electrical equipment operation fault monitoring system |
-
2024
- 2024-01-23 CN CN202410094650.0A patent/CN117692361A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118194210A (en) * | 2024-05-16 | 2024-06-14 | 南京信息工程大学 | Electrical equipment operation fault monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5767617B2 (en) | Network failure detection system and network failure detection device | |
CN108989135B (en) | Network equipment fault detection method and device | |
US20180144621A1 (en) | Measurement data processing method | |
CN111143169B (en) | Abnormal parameter detection method and device, electronic equipment and storage medium | |
CN116433009A (en) | Abnormality monitoring method and device for power transformation equipment and storage medium | |
CN107872457B (en) | Method and system for network operation based on network flow prediction | |
WO2017000536A1 (en) | Bfd method and apparatus | |
KR950023101A (en) | Higher Processor Overload Control Method in a Distributed Exchange System with a Hierarchical Structure | |
CN112291107A (en) | Network analysis program, network analysis device, and network analysis method | |
CN112367384A (en) | Kafka cluster-based dynamic speed limiting method and device and computer equipment | |
CN116955091A (en) | Data center fault detection system based on machine learning | |
US20170206125A1 (en) | Monitoring system, monitoring device, and monitoring program | |
CN116089213A (en) | Cloud platform resource monitoring method and device, electronic equipment and readable storage medium | |
CN111565133A (en) | Private line switching method and device, electronic equipment and computer readable storage medium | |
CN113129472B (en) | Working condition data processing method and device, terminal equipment and readable storage medium | |
CN113794680B (en) | Malicious traffic detection method and device under high-bandwidth scene based on frequency domain analysis | |
CN117692361A (en) | Gateway fault monitoring method and system based on network communication | |
CN111159009B (en) | Pressure testing method and device for log service system | |
CN110737565B (en) | Data monitoring method and device, electronic equipment and storage medium | |
CN114666210B (en) | Alarm method and device based on big data log analysis | |
CN115378794A (en) | Gateway fault detection method and device based on snapshot mode | |
CN115856613A (en) | Circuit breaker state evaluation method | |
CN113879357B (en) | Train axle temperature detection method and device | |
WO2022033579A1 (en) | Federated learning method, device and system | |
CN111258788B (en) | Disk failure prediction method, device and computer readable storage medium |
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 |