Disclosure of Invention
The invention aims to provide a low-voltage station user network topology identification method and system, so as to improve the accuracy of station network topology identification and improve the topology identification efficiency.
In order to achieve the above object, an aspect of the present invention provides a method for identifying a network topology of a low-voltage station user, the method comprising:
S1) determining topology data of each node of a low-voltage station area;
s2) calculating the correlation coefficient of the topology data of each node;
s3) obtaining the topology data and the correlation coefficient of the topology data, and obtaining a network topology relation diagram of the low-voltage station area according to the topology data and the correlation coefficient of the topology data.
Further, step S1) determines topology data of each node of the low-voltage area, including:
s11) sending topology identification instructions marked with the hierarchical identifications to all distributed nodes in the low-voltage area;
S12) each node extracts a level identification from the received topology identification instruction, updates the level of the node according to the extracted level identification, replaces the level identification in the topology identification instruction with the level identification of the node, and forwards the topology identification instruction to other nodes connected with the node;
s13) repeating step S12) until all nodes update the hierarchy.
Further, step S12) each node extracts a hierarchy identifier from the received topology identification instruction, and updates the hierarchy of the node according to the extracted hierarchy identifier, including:
judging whether the extracted hierarchical identifier is smaller than the hierarchical identifier of the node;
if yes, determining the level of the node as the next level of the extracted level identification, and updating the level of the node.
Further, step S2) calculates a correlation coefficient of topology data of each node, including:
Collecting a power parameter sample of the node in unit time, and calculating a power parameter average value in unit time;
And calculating the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the adjacent level nodes of the node according to the power parameter and the power parameter average value, and calculating the correlation coefficients of the two adjacent level nodes according to the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the adjacent level nodes of the node.
Further, the calculation formula of the correlation coefficient is as follows:
Wherein, R UijUi-1k is the correlation coefficient, S UijUi-1k is the sample covariance, S Uij is the sample standard deviation of the node U ij, S Ui-1k is the sample standard deviation of the node U i-1k, i represents the level of the node, j and k represent the sequence numbers of the node;
the calculation formula of the sample covariance is that
The calculation formula of the sample standard deviation is that
Where U ijt is the power parameter of node U ij at time t, U i-1kt is the power parameter of node U i-1k at time t, n is the total number of samples of the power parameter,For the average value of the power parameters of the node U ij in unit time,/>Is the average value of the power parameter of the node U i-1k in a unit time.
The method provided by the invention comprises the steps of firstly identifying the topology data of each node of the transformer area, then carrying out correlation verification on the topology data so as to confirm the topology identification result, obtaining a low-voltage transformer area network topology relation diagram based on the correlation verification result, and improving the accuracy of transformer area network topology identification; in addition, the topology data (hierarchical data) of each node in the low-voltage area are identified by means of step-by-step receiving and transmitting the topology identification instruction, so that the topology identification is dynamically and rapidly carried out on the user network system, and the topology identification efficiency is improved; and performing correlation verification on topology data (hierarchical data) by calculating correlation coefficients of adjacent hierarchical nodes, and improving accuracy of network topology identification of the platform region.
Another aspect of the present invention provides a system for identifying a network topology of a low-voltage station user, the system comprising:
the distributed topology identification node terminal is used for determining topology data of each node in the low-voltage transformer area and calculating correlation coefficients of the topology data of each node;
And the management terminal is used for acquiring the topology data and the correlation coefficient of the topology data, and determining the network topology relation diagram of the low-voltage station area according to the topology data and the correlation coefficient of the topology data.
Further, the distributed topology identification node terminals comprise a plurality of topology identification node terminals, and the plurality of topology identification node terminals are distributed in a distributed structure;
The topology identification node terminal is used for receiving the topology identification instruction marked with the hierarchy identification sent by the management terminal, extracting the hierarchy identification in the topology identification instruction, updating the hierarchy of the topology identification node terminal according to the extracted hierarchy identification, replacing the hierarchy identification in the topology identification instruction with the hierarchy identification of the topology identification node terminal, and forwarding the topology identification instruction to other topology identification node terminals connected with the topology identification node terminal.
Further, the topology identification node terminal includes:
The signal modulation/demodulation module is used for extracting the level identification in the topology identification instruction and replacing the level identification in the topology identification instruction with the level identification of the topology identification node terminal;
The control module is used for determining the hierarchy of the topology identification node terminal according to the hierarchy identification extracted by the signal modulation/demodulation module and updating the hierarchy; the signal modulation/demodulation module is controlled to replace the level identification in the topology identification instruction with the level identification of the topology identification node terminal and then forward the topology identification instruction;
And the storage module is used for storing the hierarchy identification of the topology identification node terminal.
Further, the determining and updating the hierarchy of the topology identification node terminal according to the hierarchy identification extracted by the signal modulation/demodulation module includes:
judging whether the extracted hierarchical identifier is smaller than the hierarchical identifier of the topology identification node terminal;
If yes, determining the hierarchy of the topology identification node terminal as the next stage of the extracted hierarchy identification, and updating the hierarchy of the node.
Further, the topology identification node terminal further includes:
The power parameter sampling module is used for collecting power parameter samples of the topology identification node terminal in unit time and calculating a power parameter average value in unit time;
the correlation analysis module is used for calculating the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the nodes of adjacent layers according to the power parameter and the power parameter average value, and calculating the correlation coefficient of the nodes of the two adjacent layers according to the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the nodes of the adjacent layers of the node;
the storage module is also used for storing the correlation coefficient.
Further, the management terminal is configured to send out a topology identification instruction, obtain the level identifiers and the correlation coefficients of all the topology identification node terminals, and obtain a low-voltage area network topology relationship graph according to the level identifiers and the correlation coefficients of all the topology identification node terminals.
Further, the management terminal is installed on the secondary side of the distribution transformer of the low-voltage transformer area, a plurality of topology identification node terminals are connected with a low-voltage outlet switch, a power grid branch node box and an electric meter box of the distribution transformer step by step from a high level to a low level, and the electric meter is bound with the topology identification node terminals.
The system provided by the invention firstly receives and forwards the topology identification instruction step by step through a relay network composed of the distributed topology identification node terminals, dynamically and rapidly acquires the topology data (hierarchical data) of each topology identification node terminal, and improves the efficiency of the network topology identification of the platform region; and calculating the correlation coefficient of the adjacent level nodes through the topology identification node terminal, verifying the accuracy of the topology data through the correlation coefficient by the management terminal, and obtaining a low-voltage area network topology relation diagram based on the correlation verification result, thereby improving the accuracy of area network topology identification.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Fig. 1 is a flowchart of a method for identifying a network topology of a low-voltage station user according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides a method for identifying a network topology of a low-voltage station user, where the method includes:
S1) determining topology data of each node of a low-voltage station area.
In this embodiment, the topology data includes related data such as a level of a node, an upper level of the node, a lower level of the node, and the like, and the upper level and the lower level of the node can be determined by determining the level of the node, and the topology relationship of each node is determined according to the level relationship.
Fig. 2 is a flowchart of a hierarchy of determining nodes of a low-voltage area user network topology identification method according to an embodiment of the present invention. As shown in fig. 2, the method steps of determining the hierarchy of nodes are as follows:
s11) sending topology identification instructions marked with the hierarchical identification to each distributed node of the low-voltage area.
S12) each node extracts a hierarchy identification from the received topology identification instruction, updates the hierarchy of the node according to the extracted hierarchy identification, replaces the hierarchy identification in the topology identification instruction with the hierarchy identification of the node, and forwards the topology identification instruction to other nodes connected with the node.
Specifically, in the initial topology identification instruction, a hierarchy identifier i=0, and each node judges whether the extracted hierarchy identifier i is smaller than the hierarchy identifier of the node; if yes, determining the level of the node as the next level (i+1) of the extracted level identification, updating the level of the node as i+1, replacing the level identification i in the topology identification instruction with the level identification i+1 of the node, and forwarding the topology identification instruction to other nodes connected with the node; if not, the topology identification instruction is not forwarded.
S13) repeating step S12) until all nodes update the hierarchy.
The nodes which firstly receive the topology identification instruction update the hierarchy and then forward the topology identification instruction step by step, namely the upper node forwards the topology identification instruction to the lower node step by step, and whether all nodes update the hierarchy is judged by judging whether the hierarchy identifications of all nodes are larger than an initial value (i > 0). If some nodes do not complete the updating, repeating the step S12 until the level identification i >0 of all the nodes; if the hierarchy identification i >0 of all the nodes indicates that all the nodes update the hierarchy, the forwarding of the topology identification instruction is ended.
In the embodiment, the topology identification instruction is sequentially forwarded from the highest node to the next node, the hierarchy of each node is identified step by step, relay receiving and transmitting of the topology identification instruction is realized, the identification efficiency is high, and the defect that the longer the line is, the larger the signal attenuation is overcome.
S2) calculating the correlation coefficient of the topology data of each node.
In order to verify the correctness of the topology data obtained in the step S1, the correlation of the adjacent level nodes is verified, and the correlation coefficient is adopted to reflect the degree of the relationship between the adjacent level nodes. The value interval of the correlation coefficient is between 0 and 1, 1 represents that two variables are completely linearly correlated, and 0 represents that the two variables are uncorrelated. The closer the data is to 1, the closer the correlation is, and the closer the data is to 0, the weaker the correlation is.
The step of calculating the correlation coefficient is as follows:
s21) collecting power parameter samples of the nodes in unit time, and calculating the average value of the power parameters in unit time.
The power parameters comprise current, voltage, power, electric energy and power factor, and the power parameter sample can be any one of the current, the voltage, the power, the electric energy and the power factor.
S22) calculating a sample covariance of the node, a sample standard deviation of the node, and a sample standard deviation of adjacent level nodes of the node according to the power parameter and the power parameter average value, and calculating correlation coefficients of the two adjacent level nodes according to the sample covariance of the node, the sample standard deviation of the node, and the sample standard deviation of the adjacent level nodes of the node.
The calculation formula of the correlation coefficient is as follows:
Wherein R UijUi-1k is the correlation coefficient, S UijUi-1k is the sample covariance, S Uij is the sample standard deviation of the node U ij, S Ui-1k is the sample standard deviation of the node U i-1k, i represents the level of the node, and j and k represent the sequence numbers of the node.
The calculation formula of the sample covariance is as follows:
the calculation formula of the sample standard deviation is as follows:
Where U ijt is the power parameter of node U ij at time t, U i-1kt is the power parameter of node U i-1k at time t, n is the total number of samples of the power parameter, For the average value of the power parameters of the node U ij in unit time,/>Is the average value of the power parameter of the node U i-1k in a unit time.
Each node calculates the correlation coefficient between the node and the node at the previous stage, the value of the correlation coefficient approaches to 1 to represent the close relationship between the nodes at the two adjacent layers, and the accuracy of the node level data obtained in the step S1 is high. The value of the correlation coefficient approaching 0 indicates that the relationship between two adjacent level nodes is weak, and the accuracy of the node level data obtained in step S1 is not high.
S3) obtaining the topology data and the correlation coefficient of the topology data, and obtaining a low-voltage station area network topology relation diagram according to the topology data and the correlation coefficient of the topology data.
And acquiring the level identifiers and the correlation coefficients of all the nodes, and determining the upper level nodes and the lower level nodes of each node. Acquiring the correlation coefficient of all the nodes, judging the accuracy of the node level data through the correlation coefficient, and if the accuracy is high, taking the level data of each node as the basic data of the network topology relationship of the platform area to generate a low-voltage network topology relationship diagram; if the accuracy is not high, a topology identification instruction is sent out again, and the hierarchical identification of each node is determined again.
The method provided by the embodiment of the invention identifies the topology data (hierarchical data) of each node in the low-voltage area by means of step-by-step receiving and forwarding the topology identification instruction, dynamically and rapidly identifies the topology of the network system, overcomes the defect that the longer the line is, the larger the signal attenuation is, and improves the efficiency of identifying the network topology of the area; and carrying out correlation verification on topology data by calculating correlation coefficients of adjacent hierarchical nodes so as to confirm a topology identification result, obtaining a low-voltage area network topology relation diagram based on the correlation verification result, and improving the accuracy of area network topology identification.
Fig. 3 is a block diagram of a network topology identification system for a low-voltage station user according to an embodiment of the present invention. As shown in fig. 3, the embodiment of the invention provides a network topology identification system for a low-voltage station user, which comprises a distributed topology identification node terminal and a management terminal. The distributed topology identification node terminal is used for determining topology data of each node in the low-voltage area and calculating correlation coefficients of the topology data of each node. The management terminal is used for acquiring the topology data and the correlation coefficient of the topology data, and determining a low-voltage station area network topology relation diagram according to the topology data and the correlation coefficient of the topology data.
The distributed topology identification node terminals comprise a plurality of topology identification node terminals, and the plurality of topology identification node terminals are distributed in a distributed structure. Fig. 4 is a schematic diagram of a distributed topology identification node terminal of a low-voltage station user network topology identification system according to an embodiment of the present invention. As shown in fig. 4, in this embodiment, the distributed topology identification node terminal includes three levels, A1, B1, and C1 are primary node terminals, a21, a22, B11, B22, C11, and C22 are secondary node terminals, and a31-a34, and C31-C32 are tertiary node terminals. The primary node terminal, the secondary node terminal and the tertiary node terminal are connected step by step, the primary node terminal is connected with the management terminal, and the management terminal is connected with the distribution transformer of the low-voltage transformer area. In an alternative embodiment, the management terminal is installed on the secondary side of the distribution transformer in the low-voltage area, and the topology identification node terminal is connected with the low-voltage outlet switch, the power grid branch node box and the electric meter box of the distribution transformer step by step from a high level to a low level. The final stage topology identification node terminal is bound with the electric meter, electric parameters such as voltage, current, power, electric energy and the like are collected in real time, the electric meter is incorporated into the topology graph, and the topology relation of the distributed node terminal is determined, so that the complete identification of the low-voltage branch line is realized, namely, the low-voltage branch line is led out from the distribution transformer to each stage of branch cabinet (box) and then to each electric meter box, and finally, the electric connection relation between each electric meter is realized.
The topology identification node terminal is used for receiving the topology identification instruction marked with the hierarchy identification sent by the management terminal, extracting the hierarchy identification in the topology identification instruction, updating the hierarchy of the topology identification node terminal according to the extracted hierarchy identification, replacing the hierarchy identification in the topology identification instruction with the hierarchy identification of the topology identification node terminal, and forwarding the topology identification instruction to other topology identification node terminals connected with the topology identification node terminal. The management terminal periodically acquires the level data of all the topology identification node terminals, judges whether all the nodes update the level, and if the nodes do not update the level, the topology identification node terminals re-send the topology identification instruction, and the topology identification node terminals re-update the level.
And transmitting topology identification instructions between the management terminal and the topology identification node terminals and between the topology identification node terminals through carrier signals on the power lines.
Fig. 5 is a block diagram of a topology identification node terminal of a low-voltage station user network topology identification system according to an embodiment of the present invention. As shown in fig. 5, the topology identification node terminal includes: the system comprises a signal modulation/demodulation module, a control module, a storage module, a power parameter sampling module and a correlation analysis module. The signal modulation/demodulation module is used for extracting the hierarchy identification in the topology identification instruction and replacing the hierarchy identification in the topology identification instruction with the hierarchy identification of the topology identification node terminal.
The control module is used for determining the hierarchy of the topology identification node terminal according to the hierarchy identification extracted by the signal modulation/demodulation module and updating the hierarchy identification of the topology identification node terminal; and controlling the signal modulation/demodulation module to replace the hierarchical identifier in the topology identification instruction with the hierarchical identifier of the topology identification node terminal and then forwarding the topology identification instruction. For example, a hierarchical identifier i=0 in an initial topology identification instruction sent by a management terminal, a topology identification node terminal which receives the topology identification instruction first extracts the hierarchical identifier in the topology identification instruction through a signal modulation/demodulation module, and a control module judges whether the extracted hierarchical identifier i is smaller than the hierarchical identifier of the topology identification node terminal; if yes, determining the hierarchy of the topology identification node terminal as the next stage (i+1) of the extracted hierarchy identification, updating the hierarchy of the topology identification node terminal as i+1, replacing the hierarchy identification i in the topology identification instruction with the hierarchy identification i+1 of the topology identification node terminal, and forwarding the topology identification instruction; if not, the topology identification instruction is not forwarded.
The power parameter sampling module is used for collecting power parameter samples of the topology identification node terminal in unit time and calculating a power parameter average value in unit time. The power parameters comprise current, voltage, power, electric energy and power factor, and the power parameter sample can be any one of the current, the voltage, the power, the electric energy and the power factor.
The correlation analysis module is used for calculating the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the adjacent level nodes of the node according to the power parameter and the power parameter average value, and calculating the correlation coefficient of the two adjacent level nodes according to the sample covariance of the node, the sample standard deviation of the node and the sample standard deviation of the adjacent level nodes of the node. Each topology identification node terminal calculates the correlation coefficient between the node and the node at the previous stage, and the value of the correlation coefficient approaches to 1 to represent the close relationship between the nodes at the two adjacent layers, so that the accuracy of the layer data of the topology identification node terminal is high. A value of the correlation coefficient approaching 0 indicates that the relationship between two adjacent hierarchy nodes is weak, and the accuracy of the hierarchy data of the topology identification node terminal is not high.
The storage module is used for storing the hierarchy identification and the correlation coefficient of the topology identification node terminal.
The management terminal is used for sending out a topology identification instruction, acquiring the level identifiers and the correlation coefficients of all the topology identification node terminals, and obtaining a network topology relation diagram of the low-voltage station area according to the level identifiers and the correlation coefficients of all the topology identification node terminals. Specifically, it is determined whether the hierarchy identification of all the topology identification node terminals is greater than an initial value (i > 0), thereby determining whether all the topology identification node terminals determine and update the hierarchy identification. And if all the topology identification node terminals do not determine and update the hierarchy identification, a topology identification instruction is sent again until the hierarchy identification i >0 of all the topology identification node terminals. If the hierarchy identification i >0 of all the nodes, the forwarding of the topology identification instruction is ended. Determining an upper node terminal and a lower node terminal of each topology identification node terminal according to the hierarchy identifications of all the topology identification node terminals, judging the accuracy of the hierarchy data of the topology identification node terminals through the correlation coefficient, and if the accuracy is high, using the hierarchy data of each topology identification as basic data of a platform area network topology relation to generate a low-voltage platform area network topology relation graph; if the accuracy is not high, a topology identification instruction is sent out again, and the hierarchy identification of each topology identification is determined again.
The system provided by the embodiment of the invention firstly receives and forwards the topology identification instruction step by step through a relay network composed of the distributed topology identification node terminals, dynamically and rapidly acquires the topology data (hierarchical data) of each topology identification node terminal, overcomes the defect that the longer the line is, the larger the signal attenuation is, and improves the efficiency of the network topology identification of the platform region; and calculating the correlation coefficient of the adjacent level nodes through the topology identification node terminal, verifying the accuracy of the topology data through the correlation coefficient by the management terminal, and obtaining a low-voltage area network topology relation diagram based on the correlation verification result, thereby improving the accuracy of area network topology identification.
The distributed topology identification node terminal and the management terminal form a distributed management system, so that the system has good expansibility, can realize multi-service application, has good instantaneity, effectively aims at a district network with complex topology, and realizes automatic identification and dynamic management of the district network topology.
The alternative embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the embodiments of the present invention are not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the embodiments of the present invention within the scope of the technical concept of the embodiments of the present invention, and all the simple modifications belong to the protection scope of the embodiments of the present invention. In addition, the specific features described in the above embodiments may be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the various possible combinations of embodiments of the invention are not described in detail.