CN116436819A - Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system - Google Patents

Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system Download PDF

Info

Publication number
CN116436819A
CN116436819A CN202310185000.2A CN202310185000A CN116436819A CN 116436819 A CN116436819 A CN 116436819A CN 202310185000 A CN202310185000 A CN 202310185000A CN 116436819 A CN116436819 A CN 116436819A
Authority
CN
China
Prior art keywords
ups
communication
data packet
detection
data
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.)
Granted
Application number
CN202310185000.2A
Other languages
Chinese (zh)
Other versions
CN116436819B (en
Inventor
朱爱国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fenice Power Supply Technology Co ltd
Original Assignee
Shenzhen Fenice Power Supply Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fenice Power Supply Technology Co ltd filed Critical Shenzhen Fenice Power Supply Technology Co ltd
Priority to CN202310185000.2A priority Critical patent/CN116436819B/en
Priority claimed from CN202310185000.2A external-priority patent/CN116436819B/en
Publication of CN116436819A publication Critical patent/CN116436819A/en
Application granted granted Critical
Publication of CN116436819B publication Critical patent/CN116436819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to the technical field of communication detection, in particular to a parallel operation UPS communication abnormality detection method and device and a parallel operation UPS system. The method comprises the following steps: acquiring the quantity information and the connection information of the UPS in the parallel operation UPS; all the UPSs in the parallel operation UPSs are connected through the quantity information and the connection information to generate a circular communication loop; any UPS is appointed to serve as a starting host to transmit a preset detection data packet to the UPS connected with the left end and the right end, and the data is recorded to construct a communication detection module; the UPS which receives the two detection data packets is obtained, and detection is carried out through a communication detection module to judge whether the communication loop is abnormal or not; the comparison detection data packet is carried out on a single UPS, so that the larger time cost can be saved, and the workload of communication anomaly detection is reduced.

Description

Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system
Technical Field
The invention relates to the technical field of communication detection, in particular to a parallel operation UPS communication abnormality detection method and device and a parallel operation UPS system.
Background
Because of breakthroughs in the technical aspects of computer networks, artificial intelligence and the like, the information transmission modes by computers and mobile phones are diversified. Communication detection techniques refer to techniques for monitoring and analyzing data flows in a communication network to discover and address abnormal behavior and security problems in the network, and UPS manufacturers typically provide UPS monitoring protocols to monitor and manage UPS devices. These protocols include SNMP, modbus, HTTP, etc. Communication anomaly detection requires knowledge and knowledge of these protocols in order to monitor and manage the UPS. The traditional communication detection method has the problems of labor consumption and expense, and potential communication abnormality in a communication loop cannot be inquired through the change of communication data.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a method and an apparatus for detecting communication anomalies of a parallel operation UPS and a parallel operation UPS system, so as to solve the problems of labor consumption and cost and potential communication anomalies of a detection communication loop.
In the specification, a parallel operation UPS communication abnormality detection method is provided, and the method comprises the following steps:
step S1: acquiring the quantity information and the connection information of the UPS in the parallel operation UPS;
step S2: connecting all the UPSs in the parallel operation UPSs according to the quantity information and the connection information to generate a circular communication loop;
step S3: any UPS is appointed to transmit a preset detection data packet for the UPS connected with the left end and the right end of the starting host, and the data is recorded to construct a communication detection module;
step S4: and acquiring the UPS which finally receives the two detection data packets, and detecting through the communication detection module to judge whether the communication loop is abnormal.
In the embodiment, the quantity information and the connection information of the UPS in the parallel operation UPS are obtained; all the UPSs in the parallel operation UPSs are connected through the quantity information and the connection information to generate a circular communication loop; any UPS is appointed to serve as a starting host to transmit a preset detection data packet to the UPS connected with the left end and the right end, and the data is recorded to construct a communication detection module; the UPS which receives the two detection data packets is obtained, and detection is carried out through a communication detection module to judge whether the communication loop is abnormal or not; the method can reduce the transmission path of the detection data packet to a greater extent, can reduce the system resources wasted by comparing the data packet for multiple times, and can detect the potential communication abnormal problem at the same time, thereby achieving the effect of preventing the problem from deteriorating.
In one embodiment of the present specification, step S1 includes the steps of:
step S11: acquiring the quantity information of the UPS in the parallel operation UPS;
step S12: sequencing and marking all the UPSs in the parallel operation UPS in sequence, and recording the marking and the corresponding UPSs in a preset recording manual;
step S13: and acquiring connection information of all the UPSs in the parallel operation UPSs.
The embodiment obtains the quantity information of the UPS in the parallel operation UPS; sequencing and marking all the UPSs in the parallel operation UPS in sequence, and recording the marking and the corresponding UPSs in a preset recording manual; acquiring connection information of all the UPSs in the parallel operation UPSs; the embodiment makes certain help for the subsequent steps by acquiring the relevant information of the UPS.
In one embodiment of the present specification, step S2 includes the steps of:
step S21: drawing a circular communication diagram of the parallel operation UPS through the quantity information;
step S22: acquiring a connecting node of a single UPS through the connecting information, and connecting the UPSs in the parallel operation UPSs through the acquired connecting node;
step S23: verifying the UPS in the parallel operation UPS according to the drawn circular communication diagram of the parallel operation UPS, and generating an indication mark needing to be reconnected if more than two or less than two UPS exist in a single UPS and are connected with the single UPS; if two UPSs exist in a single UPS and are connected with the UPS, marking the UPS and the connected UPS on a circular communication diagram;
Step S24: performing communication test on a circular communication loop formed by connection, and if the phenomenon that the UPS cannot acquire communication occurs, generating indication information of abnormal communication of the UPS; if the UPS in the communication loop can realize the communication function, generating indication information of successful test.
In the embodiment, a circular communication diagram of the parallel operation UPS is drawn through the quantity information; acquiring a connection node and a connection mode of a single UPS through connection information, and connecting the UPS in the parallel operation UPS through the acquired connection node and connection mode; verifying the UPS in the parallel operation UPS according to the drawn circular communication diagram of the parallel operation UPS, and generating an indication mark needing to be connected again if more than two or less than two UPS exist in a single UPS for connection; if two UPSs are connected in a single UPS, marking the UPS and the connected UPSs on a circular communication diagram; performing communication test on a circular communication loop formed by connection, and if the phenomenon that the UPS cannot acquire communication occurs, generating indication information of abnormal communication of the UPS; if the UPS in the communication loop can realize the communication function, generating indication information of successful test; the relationship among different UPSs can be better processed by drawing the circular ring-shaped communication loop diagram, the relationship diagram is visual to display, the UPSs on the loop diagram can be rapidly positioned in subsequent fault maintenance, manual maintenance can be timely carried out, and meanwhile, the circular ring-shaped communication diagram is of a linear structure, namely, all nodes form a closed ring. The structure can enable data to be freely transmitted on the ring without avoiding collision, and the circular communication graph has good expandability, namely nodes can be added or deleted into the ring according to actual requirements. The structure can be expanded as required to improve the capacity and performance of the network, and the circular communication graph has good fault recovery, namely, when a certain node breaks down, data can bypass the node through other paths for transmission. This structure may also enable fault recovery by other methods to ensure continuous transmission of data.
In one embodiment of the present disclosure, the specific steps of performing a communication test on a communication loop formed by connecting a ring shape are:
step S211: randomly selecting a UPS as a UPS host for communication test through the annular communication diagram;
step S212: a UPS host sends a preset test data packet to a UPS positioned at a left connection port of the UPS host, and the test data packet is sequentially transmitted in a anticlockwise order, and if the test data packet fails to be sent, abnormal sending indication information is generated;
step S213: the method comprises the steps of obtaining a test data packet obtained by a UPS host from a right connector, comparing the obtained test data packet with a transmitted test data packet, and generating indication information of communication loop abnormality if the test data packet is not matched;
step S214: adjusting the UPS host according to the clockwise circulation sequence, and transferring the current UPS host to the UPS of the left connection port;
step S215: when the UPS host returns to the original UPS and no abnormal indication information is generated, completing the communication test of the circular communication loop and generating the indication information of the normal communication loop;
step S216: and carrying out cyclic test on the communication loop for a data collection threshold number of times, and recording all test data in the test in a preset data statistics log, wherein the test data comprises a transmission speed of a data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS.
In the embodiment, a UPS is randomly selected as a UPS host for communication test through a circular communication diagram; a UPS host sends a preset test data packet to a UPS positioned at a left connection port of the UPS host, and the test data packet is sequentially transmitted in a anticlockwise order, and if the test data packet fails to be sent, abnormal sending indication information is generated; the method comprises the steps of obtaining a test data packet obtained by a UPS host from a right connector, comparing the obtained test data packet with a transmitted test data packet, and generating indication information of communication loop abnormality if the test data packet is not matched; adjusting the UPS host according to the clockwise circulation sequence, and transferring the current UPS host to the UPS of the left connection port; when the UPS host returns to the original UPS and no abnormal indication information is generated, completing the communication test of the circular communication loop and generating the indication information of the normal communication loop; performing cyclic test of data collection threshold times on the communication loop, and recording all test data in the test in a preset data statistics log; by testing the communication loop for a threshold number of data collection events, the occurrence of occasional events can be reduced, and enough data can be collected to assist in subsequent deep learning.
In one embodiment of the present disclosure, the preset detection data packet includes a first detection data packet, a second detection data packet, and a third detection data packet, and step S3 includes the following steps:
step S31: adding a transmission mode of a first detection data packet, a second detection data packet and a third detection data packet to all the UPSs in the parallel operation UPS;
step S32: any UPS is appointed to serve as a starting UPS host, and the UPSs connected to the left end and the right end of the UPS host transmit a first detection data packet, a second detection data packet and a third detection data packet;
step S33: acquiring transmission data of a first detection data packet, a second detection data packet and a third detection data packet of each UPS, and recording the transmission data in a preset data statistics log, wherein the transmission data of the detection data packet comprises a transmission speed of the data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS;
step S34: and performing deep learning through the test data collected in the data statistics log and the statistics data of the detection data packet to construct a communication detection module.
In the embodiment, a transmission mode of a first detection data packet, a second detection data packet and a third detection data packet is added to all the UPSs in the parallel operation UPS; a UPS host which takes any UPS as the starting is appointed to transmit a first detection data packet, a second detection data packet and a third detection data packet to the left and right end connected UPSs; acquiring packet loss rates of a first detection data packet, a second detection data packet and a third detection data packet of each UPS, and recording the packet loss rates in a preset data statistics log; deep learning is carried out through the test data collected in the data statistics log and the statistical data of the detection data packet so as to construct a communication detection module; the data size contained in the data packet can influence the packet loss rate of data transmission, in the communication connection process, the larger the data packet is, the more the divided parts are, and the larger the loss probability is, so that the transmission of the data packets with different sizes of the first detection data packet, the second detection data packet and the third detection data packet can play a better role in positioning communication anomaly detection.
In one embodiment of the present disclosure, the specific steps for constructing the communication detection module by deep learning of the test data collected in the data statistics log and the statistics data of the detection data packet are as follows:
Step S311: constructing a Gaussian distribution set of data transmission time according to the data packet transmission time in the data statistics log;
step S312: constructing a first convolution kernel, and performing convolution operation on a Gaussian distribution set of data transmission time by utilizing the first convolution kernel to generate a data packet transmission time feature set;
step S313: performing primary training on a preset deep learning module through a data packet transmission time feature set;
step S314: constructing a Gaussian distribution set of the packet loss rate according to the packet loss rate of the data packets in the data statistics log;
step S315: constructing a second convolution kernel, and carrying out convolution operation by utilizing a Gaussian distribution set of the packet loss rate of the second convolution kernel so as to generate a characteristic set of the packet loss rate;
step S316: and performing reinforcement training on the preset deep learning module through the data packet loss rate characteristic set and the correction value of the communication abnormality correction algorithm to generate a communication detection module.
According to the embodiment, a Gaussian distribution set of data transmission time is constructed through the data packet transmission time in the data statistics log; constructing a first convolution kernel, and performing convolution operation on a Gaussian distribution set of data transmission time by utilizing the first convolution kernel to generate a data packet transmission time feature set; performing primary training on a preset deep learning module through a data packet transmission time feature set; constructing a Gaussian distribution set of the packet loss rate according to the packet loss rate of the data packets in the data statistics log; constructing a second convolution kernel, and carrying out convolution operation by utilizing a Gaussian distribution set of the packet loss rate of the second convolution kernel so as to generate a characteristic set of the packet loss rate; performing reinforcement training on a preset deep learning module through a data packet loss rate feature set and a correction value of a communication abnormality correction algorithm to generate a communication detection module; through carrying out the degree of depth study to the data in the data statistics log, can train out the potential problem that meets communication transmission process, also can carry out faster problem confirmation through the data of data package transmission accurately, play labour saving and time saving's powerful effect.
In one embodiment of the present disclosure, the communication anomaly correction algorithm specifically includes:
Figure BDA0004103558470000051
wherein a represents a correction value, a represents a transmission speed of a data packet, b represents an error rate of the data packet, c represents a retransmission speed of the data packet, d represents a size value of content attached to the data packet, i represents a packet loss rate of the data packet, f represents a time value for establishing connection communication between both ends of the UPS, g represents a confirmation time value for confirming disconnection between both ends of the UPS, and h represents a correction term.
According to the embodiment, the influence weight value caused by the data packet loss is obtained through calculation of the transmission speed, the bit error rate and the retransmission speed of the data packet, the transmission fluctuation in the whole system is determined for the packet loss rate, the communication establishment time and the disconnection confirmation time, and finally, the transmission error of the data packet is judged to be corrected to a certain extent by adding the correction item, and meanwhile, the potential network fluctuation abnormality can be accurately judged.
In one embodiment of the present specification, step S4 includes the steps of:
step S41: acquiring UPS (uninterrupted Power supply) which finally receives two detection data packets, and adding the two detection data packets into a communication detection module for detection;
step S42: obtaining a detection value generated by comparing two detection data packets in a communication detection module, wherein when the matching degree of the two detection data packets is nearly equal, the detection value is in a first communication detection threshold value, and indication information of communication loop safety is generated; when the matching degree of the two detection data packets is higher, the detection value is in a second communication detection threshold value, indication information of hidden danger of a loop is generated, and all UPS is restored to preset settings; when the matching degree of the two detection data packets is low, the detection value is at a third communication detection threshold value, indication information of the loop fault is generated, and warning is carried out.
In the embodiment, the UPS which receives the two detection data packets is obtained, and the two detection data packets are added into the communication detection module for detection; acquiring a detection value of a communication detection module, and generating indication information of communication loop safety when the detection value is in a first communication detection threshold value; when the detection value is in the second communication detection threshold value, generating indication information of hidden danger of the loop, and recovering all UPS to preset settings; when the detection value is in the third communication detection threshold value, generating indication information of the loop fault and carrying out warning; the corresponding indication information is generated through the communication detection module, so that the workload of a log manager can be reduced, meanwhile, the detailed indication information can illustrate the problem, and the related maintenance personnel can be greatly assisted.
Drawings
FIG. 1 is a flow chart illustrating steps of a method for detecting a communication anomaly of a parallel machine UPS according to one embodiment of the present disclosure;
FIG. 2 illustrates a flowchart of steps for obtaining UPS information according to one embodiment of the present disclosure;
FIG. 3 illustrates a flowchart of steps for constructing a UPS loop according to one embodiment of the present disclosure;
FIG. 4 shows a flow chart of the steps of testing a communication loop according to one embodiment of the present disclosure;
FIG. 5 is a flowchart showing the steps for transmitting a detection data packet according to one embodiment of the present disclosure;
FIG. 6 shows a flowchart of the steps for generating a communication detection module according to one embodiment of the present disclosure;
FIG. 7 shows a flow chart of the steps of communication detection of one embodiment of the present description;
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The following is a clear and complete description of the technical method of the present patent in conjunction with the accompanying drawings, and it is evident that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
Furthermore, the drawings are merely schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. The functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor methods and/or microcontroller methods.
It will be understood that, although the terms "first," "second," etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1 to 7, in the present specification, a parallel operation UPS communication abnormality detection method is provided, and the method includes the following steps:
step S1: acquiring the quantity information and the connection information of the UPS in the parallel operation UPS;
specifically, for example, a parallel machine UPS is composed of a plurality of UPS modules and a control module, where each UPS module has its own power supply and circuit protection, and the control module is responsible for coordinating and managing each UPS module. The control module can communicate with the UPS module through a network, a serial port and the like, and monitor and manage the UPS module so as to ensure the normal operation of the UPS and the continuous power supply of equipment.
Step S2: connecting all the UPSs in the parallel operation UPSs according to the quantity information and the connection information to generate a circular communication loop;
step S3: any UPS is appointed to transmit a preset detection data packet for the UPS connected with the left end and the right end of the starting host, and the data is recorded to construct a communication detection module;
specifically, for example, the communication detection module is a hardware or software module for detecting communication abnormality. During communication, communication anomalies such as packet loss, excessive delay, error codes, etc. often occur due to network, device, software, etc. The communication detection module can monitor and identify the abnormal conditions in real time and give an alarm to an administrator so as to take measures in time for processing.
Specifically, for example, the detection data packet includes a first detection data packet, a second detection data packet, and a third detection data packet.
Specifically, for example, the first detection packet size is 100 bytes.
Specifically, for example, the second detection packet size is 500 bytes.
Specifically, for example, the third detection packet size is 1000 bytes.
Step S4: and acquiring the UPS which finally receives the two detection data packets, and detecting through the communication detection module to judge whether the communication loop is abnormal.
In the embodiment, the quantity information and the connection information of the UPS in the parallel operation UPS are obtained; all the UPSs in the parallel operation UPSs are connected through the quantity information and the connection information to generate a circular communication loop; any UPS is appointed to serve as a starting host to transmit a preset detection data packet to the UPS connected with the left end and the right end, and the data is recorded to construct a communication detection module; the UPS which receives the two detection data packets is obtained, and detection is carried out through a communication detection module to judge whether the communication loop is abnormal or not; the method can greatly reduce the transmission path of the detection data packet and reduce the system resources wasted by comparing multiple data packets.
In one embodiment of the present specification, step S1 includes the steps of:
step S11: acquiring the quantity information of the UPS in the parallel operation UPS;
step S12: sequencing and marking all the UPSs in the parallel operation UPS in sequence, and recording the marking and the corresponding UPSs in a preset recording manual;
step S13: and acquiring connection information of all the UPSs in the parallel operation UPSs.
Specifically, for example, the connection information of the UPS is port information in the network to which the UPS is connected.
The embodiment obtains the quantity information of the UPS in the parallel operation UPS; sequencing and marking all the UPSs in the parallel operation UPS in sequence, and recording the marking and the corresponding UPSs in a preset recording manual; acquiring connection information of all the UPSs in the parallel operation UPSs; the embodiment makes certain help for the subsequent steps by acquiring the relevant information of the UPS.
In one embodiment of the present specification, step S2 includes the steps of:
step S21: drawing a circular communication diagram of the parallel operation UPS through the quantity information;
in particular, for example, a circular communication graph is a graphical way to represent a topology of a computer network. It features that the computers are connected into a ring structure, and each computer is connected with both the former computer and the latter computer to form a closed ring.
Step S22: acquiring a connecting node of a single UPS through the connecting information, and connecting the UPSs in the parallel operation UPSs through the acquired connecting node;
step S23: verifying the UPS in the parallel operation UPS according to the drawn circular communication diagram of the parallel operation UPS, and generating an indication mark needing to be reconnected if more than two or less than two UPS exist in a single UPS and are connected with the single UPS; if two UPSs exist in a single UPS and are connected with the UPS, marking the UPS and the connected UPS on a circular communication diagram;
step S24: performing communication test on a circular communication loop formed by connection, and if the phenomenon that the UPS cannot acquire communication occurs, generating indication information of abnormal communication of the UPS; if the UPS in the communication loop can realize the communication function, generating indication information of successful test.
In the embodiment, a circular communication diagram of the parallel operation UPS is drawn through the quantity information; acquiring a connection node and a connection mode of a single UPS through connection information, and connecting the UPS in the parallel operation UPS through the acquired connection node and connection mode; verifying the UPS in the parallel operation UPS according to the drawn circular communication diagram of the parallel operation UPS, and generating an indication mark needing to be connected again if more than two or less than two UPS exist in a single UPS for connection; if two UPSs are connected in a single UPS, marking the UPS and the connected UPSs on a circular communication diagram; performing communication test on a circular communication loop formed by connection, and if the phenomenon that the UPS cannot acquire communication occurs, generating indication information of abnormal communication of the UPS; if the UPS in the communication loop can realize the communication function, generating indication information of successful test; the relationship among different UPSs can be better processed by drawing the circular ring-shaped communication loop diagram, the relationship diagram is visual to display, the UPSs on the loop diagram can be rapidly positioned in subsequent fault maintenance, manual maintenance can be timely carried out, and meanwhile, the circular ring-shaped communication diagram is of a linear structure, namely, all nodes form a closed ring. The structure can enable data to be freely transmitted on the ring without avoiding collision, and the circular communication graph has good expandability, namely nodes can be added or deleted into the ring according to actual requirements. The structure can be expanded as required to improve the capacity and performance of the network, and the circular communication graph has good fault recovery, namely, when a certain node breaks down, data can bypass the node through other paths for transmission. This structure may also enable fault recovery by other methods to ensure continuous transmission of data.
In one embodiment of the present disclosure, the specific steps of performing a communication test on a communication loop formed by connecting a ring shape are:
step S211: randomly selecting a UPS as a UPS host for communication test through the annular communication diagram;
step S212: a UPS host sends a preset test data packet to a UPS positioned at a left connection port of the UPS host, and the test data packet is sequentially transmitted in a anticlockwise order, and if the test data packet fails to be sent, abnormal sending indication information is generated;
specifically, for example, the test packet is a packet used in a communication test for testing and evaluating performance and stability of a communication system.
Step S213: the method comprises the steps of obtaining a test data packet obtained by a UPS host from a right connector, comparing the obtained test data packet with a transmitted test data packet, and generating indication information of communication loop abnormality if the test data packet is not matched;
step S214: adjusting the UPS host according to the clockwise circulation sequence, and transferring the current UPS host to the UPS of the left connection port;
step S215: when the UPS host returns to the original UPS and no abnormal indication information is generated, completing the communication test of the circular communication loop and generating the indication information of the normal communication loop;
Step S216: and carrying out cyclic test on the communication loop for a data collection threshold number of times, and recording all test data in the test in a preset data statistics log, wherein the test data comprises a transmission speed of a data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS.
Specifically, for example, the communication loop test includes a transmission rate test, a delay test, an anti-interference test, a packet loss test, and a security test.
In particular, for example, the transmission rate test is a transmission rate test for a ring-shaped communication loop, and the maximum transmission rate of the loop, and the transmission stability and reliability of the loop at different transmission rates can be tested.
In particular, for example, delay testing is to perform delay testing on a ring-shaped communication loop, and delay conditions of the loop under different data loads, and transmission stability and reliability under high load conditions can be tested.
In particular, for example, the anti-interference test is to perform an anti-interference test on a circular ring-shaped communication loop, so that the performance of the loop when being interfered, and the transmission stability and reliability under different interference environments can be tested.
In particular, for example, the packet loss test is to perform the packet loss test on the annular communication loop, so that the packet loss rate of the loop, and the transmission stability and reliability under different load conditions can be tested.
In particular, for example, the security test is to perform security test on a circular ring communication loop, and the security performance of the loop, such as authentication, encryption, and anti-attack capability, can be tested
In the embodiment, a UPS is randomly selected as a UPS host for communication test through a circular communication diagram; a UPS host sends a preset test data packet to a UPS positioned at a left connection port of the UPS host, and the test data packet is sequentially transmitted in a anticlockwise order, and if the test data packet fails to be sent, abnormal sending indication information is generated; the method comprises the steps of obtaining a test data packet obtained by a UPS host from a right connector, comparing the obtained test data packet with a transmitted test data packet, and generating indication information of communication loop abnormality if the test data packet is not matched; adjusting the UPS host according to the clockwise circulation sequence, and transferring the current UPS host to the UPS of the left connection port; when the UPS host returns to the original UPS and no abnormal indication information is generated, completing the communication test of the circular communication loop and generating the indication information of the normal communication loop; performing cyclic test of data collection threshold times on the communication loop, and recording all test data in the test in a preset data statistics log; by testing the communication loop for a threshold number of data collection events, the occurrence of occasional events can be reduced, and enough data can be collected to assist in subsequent deep learning.
In one embodiment of the present disclosure, the preset detection data packet includes a first detection data packet, a second detection data packet, and a third detection data packet, and step S3 includes the following steps:
step S31: adding a transmission mode of a first detection data packet, a second detection data packet and a third detection data packet to all the UPSs in the parallel operation UPS;
specifically, for example, the first detection packet size is 100 bytes.
Specifically, for example, the second detection packet size is 500 bytes.
Specifically, for example, the third detection packet size is 1000 bytes.
Step S32: any UPS is appointed to serve as a starting UPS host, and the UPSs connected to the left end and the right end of the UPS host transmit a first detection data packet, a second detection data packet and a third detection data packet;
step S33: acquiring transmission data of a first detection data packet, a second detection data packet and a third detection data packet of each UPS, and recording the transmission data in a preset data statistics log, wherein the transmission data of the detection data packet comprises a transmission speed of the data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS;
Step S34: and performing deep learning through the test data collected in the data statistics log and the statistics data of the detection data packet to construct a communication detection module.
In the embodiment, a transmission mode of a first detection data packet, a second detection data packet and a third detection data packet is added to all the UPSs in the parallel operation UPS; a UPS host which takes any UPS as the starting is appointed to transmit a first detection data packet, a second detection data packet and a third detection data packet to the left and right end connected UPSs; acquiring packet loss rates of a first detection data packet, a second detection data packet and a third detection data packet of each UPS, and recording the packet loss rates in a preset data statistics log; deep learning is carried out through the test data collected in the data statistics log and the statistical data of the detection data packet so as to construct a communication detection module; the data size contained in the data packet can influence the packet loss rate of data transmission, in the communication connection process, the larger the data packet is, the more the divided parts are, and the larger the loss probability is, so that the transmission of the data packets with different sizes of the first detection data packet, the second detection data packet and the third detection data packet can play a better role in positioning communication anomaly detection.
In one embodiment of the present disclosure, the specific steps for constructing the communication detection module by deep learning of the test data collected in the data statistics log and the statistics data of the detection data packet are as follows:
step S311: constructing a Gaussian distribution set of data transmission time according to the data packet transmission time in the data statistics log;
step S312: constructing a first convolution kernel, and performing convolution operation on a Gaussian distribution set of data transmission time by utilizing the first convolution kernel to generate a data packet transmission time feature set;
step S313: performing primary training on a preset deep learning module through a data packet transmission time feature set;
step S314: constructing a Gaussian distribution set of the packet loss rate according to the packet loss rate of the data packets in the data statistics log;
step S315: constructing a second convolution kernel, and carrying out convolution operation by utilizing a Gaussian distribution set of the packet loss rate of the second convolution kernel so as to generate a characteristic set of the packet loss rate;
step S316: and performing reinforcement training on the preset deep learning module through the data packet loss rate characteristic set and the correction value of the communication abnormality correction algorithm to generate a communication detection module.
According to the embodiment, a Gaussian distribution set of data transmission time is constructed through the data packet transmission time in the data statistics log; constructing a first convolution kernel, and performing convolution operation on a Gaussian distribution set of data transmission time by utilizing the first convolution kernel to generate a data packet transmission time feature set; performing primary training on a preset deep learning module through a data packet transmission time feature set; constructing a Gaussian distribution set of the packet loss rate according to the packet loss rate of the data packets in the data statistics log; constructing a second convolution kernel, and carrying out convolution operation by utilizing a Gaussian distribution set of the packet loss rate of the second convolution kernel so as to generate a characteristic set of the packet loss rate; performing reinforcement training on a preset deep learning module through a data packet loss rate feature set and a correction value of a communication abnormality correction algorithm to generate a communication detection module; through carrying out the degree of depth study to the data in the data statistics log, can train out the potential problem that meets communication transmission process, also can carry out faster problem confirmation through the data of data package transmission accurately, play labour saving and time saving's powerful effect.
In one embodiment of the present disclosure, the communication anomaly correction algorithm specifically includes:
Figure BDA0004103558470000121
wherein a represents a correction value, a represents a transmission speed of a data packet, b represents an error rate of the data packet, c represents a retransmission speed of the data packet, d represents a size value of content attached to the data packet, i represents a packet loss rate of the data packet, f represents a time value for establishing connection communication between both ends of the UPS, g represents a confirmation time value for confirming disconnection between both ends of the UPS, and h represents a correction term.
According to the embodiment, the influence weight value caused by the data packet loss is obtained through calculation of the transmission speed, the bit error rate and the retransmission speed of the data packet, the transmission fluctuation in the whole system is determined for the packet loss rate, the communication establishment time and the disconnection confirmation time, and finally, the transmission error of the data packet is judged to be corrected to a certain extent by adding the correction item, and meanwhile, the potential network fluctuation abnormality and the inherent hardware function degradation effect can be accurately judged.
In one embodiment of the present specification, step S4 includes the steps of:
step S41: acquiring UPS (uninterrupted Power supply) which finally receives two detection data packets, and adding the two detection data packets into a communication detection module for detection;
step S42: obtaining a detection value generated by comparing two detection data packets in a communication detection module, wherein when the matching degree of the two detection data packets is nearly equal, the detection value is in a first communication detection threshold value, and indication information of communication loop safety is generated; when the matching degree of the two detection data packets is higher, the detection value is in a second communication detection threshold value, indication information of hidden danger of a loop is generated, and all UPS is restored to preset settings; when the matching degree of the two detection data packets is low, the detection value is at a third communication detection threshold value, indication information of the loop fault is generated, and warning is carried out.
Specifically, for example, the first communication detection threshold is a section of 0 or more and 1 or less.
Specifically, for example, the second communication detection threshold is a section of greater than 1 and equal to or less than 5.
Specifically, for example, the third communication detection threshold is a section greater than 5.
In the embodiment, the UPS which receives the two detection data packets is obtained, and the two detection data packets are added into the communication detection module for detection; acquiring a detection value of a communication detection module, and generating indication information of communication loop safety when the detection value is in a first communication detection threshold value; when the detection value is in the second communication detection threshold value, generating indication information of hidden danger of the loop, and recovering all UPS to preset settings; when the detection value is in the third communication detection threshold value, generating indication information of the loop fault and carrying out warning; the corresponding indication information is generated through the communication detection module, so that the workload of a log manager can be reduced, meanwhile, the detailed indication information can illustrate the problem, and the related maintenance personnel can be greatly assisted.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The parallel operation UPS communication abnormality detection method is characterized by comprising the following steps of:
step S1: acquiring the quantity information and the connection information of the UPS in the parallel operation UPS;
step S2: connecting all the UPSs in the parallel operation UPSs according to the quantity information and the connection information to generate a circular communication loop;
step S3: any UPS is appointed to transmit a preset detection data packet for the UPS connected with the left end and the right end of the starting host, and the data is recorded to construct a communication detection module;
step S4: and acquiring the UPS which finally receives the two detection data packets, and detecting through the communication detection module to judge whether the communication loop is abnormal.
2. The method of claim 1, wherein step S1 comprises the steps of:
step S11: acquiring the quantity information of the UPS in the parallel operation UPS;
step S12: sequencing and marking all the UPSs in the parallel operation UPS in sequence, and recording the marking and the corresponding UPSs in a preset recording manual;
step S13: and acquiring connection information of all the UPSs in the parallel operation UPSs.
3. The method of claim 1, wherein step S2 comprises the steps of:
step S21: drawing a circular communication diagram of the parallel operation UPS through the quantity information;
Step S22: acquiring a connecting node of a single UPS through the connecting information, and connecting the UPSs in the parallel operation UPSs through the acquired connecting node;
step S23: verifying the UPS in the parallel operation UPS according to the drawn circular communication diagram of the parallel operation UPS, and generating an indication mark needing to be reconnected if more than two or less than two UPS exist in a single UPS and are connected with the single UPS; if two UPSs exist in a single UPS and are connected with the UPS, marking the UPS and the connected UPS on a circular communication diagram;
step S24: performing communication test on a circular communication loop formed by connection, and if the phenomenon that the UPS cannot acquire communication occurs, generating indication information of abnormal communication of the UPS; if the UPS in the communication loop can realize the communication function, generating indication information of successful test.
4. A method according to claim 3, characterized in that the specific step of performing a communication test on the communication loop of the ring shape formed by the connection is:
step S211: randomly selecting a UPS as a UPS host for communication test through the annular communication diagram;
step S212: a UPS host sends a preset test data packet to a UPS positioned at a left connection port of the UPS host, and the test data packet is sequentially transmitted in a anticlockwise order, and if the test data packet fails to be sent, abnormal sending indication information is generated;
Step S213: the method comprises the steps of obtaining a test data packet obtained by a UPS host from a right connector, comparing the obtained test data packet with a transmitted test data packet, and generating indication information of communication loop abnormality if the test data packet is not matched;
step S214: adjusting the UPS host according to the clockwise circulation sequence, and transferring the current UPS host to the UPS of the left connection port;
step S215: when the UPS host returns to the original UPS and no abnormal indication information is generated, completing the communication test of the circular communication loop and generating the indication information of the normal communication loop;
step S216: and carrying out cyclic test on the communication loop for a data collection threshold number of times, and recording all test data in the test in a preset data statistics log, wherein the test data comprises a transmission speed of a data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS.
5. The method of claim 1, wherein the predetermined detection data packet includes a first detection data packet, a second detection data packet, and a third detection data packet, and step S3 includes the steps of:
Step S31: adding a transmission mode of a first detection data packet, a second detection data packet and a third detection data packet to all the UPSs in the parallel operation UPS;
step S32: any UPS is appointed to serve as a starting UPS host, and the UPSs connected to the left end and the right end of the UPS host transmit a first detection data packet, a second detection data packet and a third detection data packet;
step S33: acquiring transmission data of a first detection data packet, a second detection data packet and a third detection data packet of each UPS, and recording the transmission data in a preset data statistics log, wherein the transmission data of the detection data packet comprises a transmission speed of the data packet, a retransmission rate of the data packet, a retransmission speed of the data packet, a size value of content attached to the data packet, a packet loss rate of the data packet, a time value for establishing connection communication at two ends of the UPS and a confirmation time value for confirming disconnection at two ends of the UPS;
step S34: and performing deep learning through the test data collected in the data statistics log and the statistics data of the detection data packet to construct a communication detection module.
6. The method of claim 5, wherein the step of constructing the communication detection module by deep learning the test data collected in the data statistics log and the statistics of the detection data packet comprises the steps of:
Step S311: constructing a Gaussian distribution set of data transmission time according to the data packet transmission time in the data statistics log;
step S312: constructing a first convolution kernel, and performing convolution operation on a Gaussian distribution set of data transmission time by utilizing the first convolution kernel to generate a data packet transmission time feature set;
step S313: performing primary training on a preset deep learning module through a data packet transmission time feature set;
step S314: constructing a Gaussian distribution set of the packet loss rate according to the packet loss rate of the data packets in the data statistics log;
step S315: constructing a second convolution kernel, and carrying out convolution operation by utilizing a Gaussian distribution set of the packet loss rate of the second convolution kernel so as to generate a characteristic set of the packet loss rate;
step S316: and performing reinforcement training on the preset deep learning module through the data packet loss rate characteristic set and the correction value of the communication abnormality correction algorithm to generate a communication detection module.
7. The method of claim 6, wherein the communication anomaly correction algorithm is specifically:
Figure QLYQS_1
wherein a represents a correction value, a represents a transmission speed of a data packet, b represents a retransmission rate of the data packet, c represents a retransmission speed of the data packet, d represents a size value of content attached to the data packet, i represents a packet loss rate of the data packet, f represents a time value at which connection communication is established between both ends of the UPS, g represents a confirmation time value at which both ends of the UPS confirm disconnection, and h represents a correction term.
8. The method of claim 1, wherein step S4 comprises the steps of:
step S41: acquiring UPS (uninterrupted Power supply) which finally receives two detection data packets, and adding the two detection data packets into a communication detection module for detection;
step S42: obtaining a detection value generated by comparing two detection data packets in a communication detection module, wherein when the matching degree of the two detection data packets is nearly equal, the detection value is in a first communication detection threshold value, and indication information of communication loop safety is generated; when the matching degree of the two detection data packets is higher, the detection value is in a second communication detection threshold value, indication information of hidden danger of a loop is generated, and all UPS is restored to preset settings; when the matching degree of the two detection data packets is low, the detection value is at a third communication detection threshold value, indication information of the loop fault is generated, and warning is carried out.
9. A parallel operation UPS device, wherein the system includes:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a parallel UPS communication abnormality detection method according to any one of claims 1 to 8.
10. The parallel machine UPS system is characterized by comprising a plurality of UPSs which are connected in parallel, wherein the plurality of UPSs are also sequentially communicated and connected to form a communication loop;
a parallel UPS device according to claim 9 is incorporated in each UPS.
CN202310185000.2A 2023-02-22 Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system Active CN116436819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310185000.2A CN116436819B (en) 2023-02-22 Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310185000.2A CN116436819B (en) 2023-02-22 Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system

Publications (2)

Publication Number Publication Date
CN116436819A true CN116436819A (en) 2023-07-14
CN116436819B CN116436819B (en) 2024-06-21

Family

ID=

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488893A (en) * 2009-03-04 2009-07-22 北京星网锐捷网络技术有限公司 Stack system test method, apparatus and system
US20100085878A1 (en) * 2008-10-06 2010-04-08 Mcdade Iain Automating Identification And Isolation Of Loop-Free Protocol Network Problems
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN106888118A (en) * 2017-02-15 2017-06-23 金钱猫科技股份有限公司 The detection method and device of a kind of network loop
CN110909811A (en) * 2019-11-28 2020-03-24 国网湖南省电力有限公司 OCSVM (online charging management system) -based power grid abnormal behavior detection and analysis method and system
CN111083172A (en) * 2019-12-31 2020-04-28 厦门耐特源码信息科技有限公司 Link communication monitoring view construction method based on data packet analysis
WO2020159439A1 (en) * 2019-01-29 2020-08-06 Singapore Telecommunications Limited System and method for network anomaly detection and analysis
CN113300909A (en) * 2021-04-30 2021-08-24 科华数据股份有限公司 Parallel operation UPS communication abnormity detection method and device and parallel operation UPS system
WO2021243848A1 (en) * 2020-06-03 2021-12-09 枣庄学院 Anomaly detection method for wireless sensor network
US20220053010A1 (en) * 2020-08-13 2022-02-17 Tweenznet Ltd. System and method for determining a communication anomaly in at least one network
CN114660399A (en) * 2022-02-28 2022-06-24 湖北拓普电力有限公司 Ring main unit equipment state monitoring and fault diagnosis method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100085878A1 (en) * 2008-10-06 2010-04-08 Mcdade Iain Automating Identification And Isolation Of Loop-Free Protocol Network Problems
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN101488893A (en) * 2009-03-04 2009-07-22 北京星网锐捷网络技术有限公司 Stack system test method, apparatus and system
CN106888118A (en) * 2017-02-15 2017-06-23 金钱猫科技股份有限公司 The detection method and device of a kind of network loop
WO2020159439A1 (en) * 2019-01-29 2020-08-06 Singapore Telecommunications Limited System and method for network anomaly detection and analysis
CN110909811A (en) * 2019-11-28 2020-03-24 国网湖南省电力有限公司 OCSVM (online charging management system) -based power grid abnormal behavior detection and analysis method and system
CN111083172A (en) * 2019-12-31 2020-04-28 厦门耐特源码信息科技有限公司 Link communication monitoring view construction method based on data packet analysis
WO2021243848A1 (en) * 2020-06-03 2021-12-09 枣庄学院 Anomaly detection method for wireless sensor network
US20220053010A1 (en) * 2020-08-13 2022-02-17 Tweenznet Ltd. System and method for determining a communication anomaly in at least one network
CN113300909A (en) * 2021-04-30 2021-08-24 科华数据股份有限公司 Parallel operation UPS communication abnormity detection method and device and parallel operation UPS system
CN114660399A (en) * 2022-02-28 2022-06-24 湖北拓普电力有限公司 Ring main unit equipment state monitoring and fault diagnosis method

Similar Documents

Publication Publication Date Title
CN113328872B (en) Fault repairing method, device and storage medium
US8041996B2 (en) Method and apparatus for time-based event correlation
CN110336827B (en) Modbus TCP protocol fuzzy test method based on abnormal field positioning
Barbosa et al. Exploiting traffic periodicity in industrial control networks
US8804491B2 (en) Recovery method for ring-based network
JP2007081454A (en) Abnormality detecting system, abnormality management apparatus, abnormality management method, probe and program thereof
CN113259168A (en) Fault root cause analysis method and device
Faisal et al. Modeling Modbus TCP for intrusion detection
CN109104335A (en) A kind of industrial control equipment network attack test method and system
Lim et al. Attack induced common-mode failures on PLC-based safety system in a nuclear power plant: practical experience report
CN109271273A (en) A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN107566036A (en) Mistake in automatic detection communication and automatically determine the wrong source
CN112737856A (en) Link tracking method and device, storage medium and electronic device
CN116389130A (en) Large-scale network security defense system based on knowledge graph
CN104022907A (en) Failure detection system and method of campus network
Manickam et al. Labelled Dataset on Distributed Denial‐of‐Service (DDoS) Attacks Based on Internet Control Message Protocol Version 6 (ICMPv6)
CN116436819B (en) Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system
CN116684256B (en) Node fault monitoring method, device and system, electronic equipment and storage medium
CN116436819A (en) Parallel operation UPS communication abnormality detection method and device and parallel operation UPS system
CN109032867A (en) A kind of method for diagnosing faults, device and equipment
Schuster et al. Attack and fault detection in process control communication using unsupervised machine learning
CN112532467B (en) Method, device and system for realizing fault detection
CN117081906A (en) Power equipment fault monitoring system, method and storage medium
Guclu et al. Distributed fault detection in smart spaces based on trust management
CN116366512A (en) Test case generation method and 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
GR01 Patent grant