Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a method for evaluating the network performance of the equipment by using the power distribution terminal test signal time point, which improves the positioning efficiency of the communication delay reason, thereby providing decision support for later planning and correction.
To achieve the above object, a method for evaluating network performance of a device by using a power distribution terminal to test signal time points is provided, which comprises the following steps:
step one: collecting terminal position data and terminal model data in advance; acquiring a terminal set of a division area based on the terminal position data;
step two: collecting a pre-divided period set; collecting the communication transmission average time of the same day and the historical communication transmission average time of each power distribution terminal in each divided period of each day;
step three: generating an area network abnormality judgment result for each divided area based on the current day communication transmission average time and the historical communication transmission average time of the terminals in each divided area, and turning to the fourth step if the area network abnormality judgment result is normal; if the regional network abnormality judgment result is abnormal, initiating regional network congestion warning;
step four: generating a terminal single network anomaly judgment result for each power distribution terminal in the divided area with a normal regional network anomaly judgment result based on the current day communication transmission average time and the historical communication transmission average time of each divided period;
step five: the distribution terminals with abnormal judging results of all terminal single network abnormal are used as abnormal single terminals, and model network abnormal alarms and single network abnormal alarms are generated based on the terminal model data of all the abnormal single terminals;
the mode of collecting the terminal position data and the terminal model data in advance is as follows:
collecting the geographic position coordinates of each power distribution terminal and the equipment model of each power distribution terminal, wherein the geographic position coordinates of all the power distribution terminals form terminal position data, and the equipment models of all the power distribution terminals form terminal model data;
the method for obtaining the terminal set of the divided area is as follows:
collecting the positions of all core network nodes in the city;
counting the main core network nodes through which each power distribution terminal transmits signals through a public network; the main core network node is the core network node through which the power distribution terminal transmits signals most frequently;
establishing a slave terminal set for each core network node, wherein the slave terminal set comprises all power distribution terminals taking the core network node as a main core network node;
all the subordinate terminal sets form a terminal set of a division area;
the statistical mode of the main core network node is as follows:
each power distribution terminal transmits a plurality of analog signals to the master station front-end processor, and then counts all core network nodes passing through in the route of each analog signal;
for each power distribution terminal, taking the core network node with the most occurrence frequency in the route of all analog signals sent by the power distribution terminal as a main core network node;
the method for collecting the daily communication transmission average time and the historical communication transmission average time of each power distribution terminal in each divided period of each day is as follows:
after each power distribution terminal generates two remote signals, recording the generation time of the two remote signals;
the power distribution terminal sends two remote signals to the master station front-end processor, and the master station front-end processor records the receiving time of each received two remote signals;
subtracting the generation time from the receiving time of each two remote signals to obtain the network transmission time of the two remote signals;
the master station front-end processor classifies the two remote signals received by the latest date as current two remote signals according to the date of the receiving time of the two remote signals, takes each date before the latest date as a historical date, and takes the two remote signals received by each historical date as historical two remote signals;
determining the dividing period of each current two remote signals according to the generation time of the current two remote signals;
for each power distribution terminal, calculating the average value of network transmission time of current two remote signals sent by the power distribution terminal in each divided period, and taking the average value of network transmission time of the current two remote signals as the communication transmission average time of the power distribution terminal in the same day in the divided period;
determining the dividing period of each historical two remote signal according to the generation time of the two remote signals;
in each history period, for each power distribution terminal, calculating the average value of network transmission time of the two remote signals of the history transmitted by the power distribution terminal in each divided period, and taking the average value of network transmission time of the two remote signals of the history as the average time of historical communication transmission of the power distribution terminal in the divided period;
the method for generating the regional network abnormality judgment result for each divided region comprises the following steps:
for each divided region:
presetting a communication delay threshold Y and historical reference days N;
the number of the power distribution terminals in the dividing area is marked as I, and the total number of the power distribution terminals in the dividing area is marked as I;
for each power distribution terminal, collecting historical communication transmission average time of N historical dates of previous historical reference days, and numbering the historical dates in time sequence as N, n=1, 2, 3..n;
calculating the average value and variance of the communication transmission average time of the current day of the I power distribution terminals in the dividing area, respectively serving as the average value and variance of the current day area time, and respectively marking the average value and variance of the current day area time as AD and FD;
calculating the average value of the communication transmission average time of the I power distribution terminals in the nth historical period in the dividing area as the time average value of the historical area, and marking the time average value of the historical area as AHn;
calculating an area abnormality reference value Z of the divided area in a manner thatThe method comprises the steps of carrying out a first treatment on the surface of the Wherein b1 and b2 are respectively preset proportionality coefficients;
if the regional abnormality reference value Z is larger than a preset abnormal value threshold value, the regional network abnormality judgment result is abnormal;
if the regional abnormality reference value Z is smaller than or equal to a preset abnormal value threshold value, the regional network abnormality judgment result is normal;
the method for generating the terminal single network abnormity judgment result for each power distribution terminal comprises the following steps:
marking the communication transmission average time of the ith power distribution terminal on the same day as TDi, and marking the historical communication transmission average time of the ith power distribution terminal on the nth day as THin;
calculating a monomer abnormal reference value Zi of an ith power distribution terminal;
the calculation formula of the monomer anomaly reference value Zi is as follows:;
if the communication transmission average time TDi of the current day is larger than a preset communication delay threshold or a monomer abnormality reference value Zi is larger than a preset monomer fluctuation abnormality threshold, setting a terminal monomer network abnormality judgment result of the power distribution terminal as abnormality;
if the communication transmission average time TDi of the current day is smaller than or equal to a preset communication delay threshold value and the monomer anomaly reference value Zi is smaller than or equal to a preset monomer fluctuation anomaly threshold value, setting a terminal monomer network anomaly judgment result of the power distribution terminal to be normal;
the mode of generating model network abnormal alarms and monomer network abnormal alarms is as follows:
the number of the equipment model is marked as x;
counting the abnormal specific gravity of the power distribution terminal of the x-th equipment model in all abnormal single terminals for the x-th equipment model, and marking the abnormal specific gravity as wx;
if the abnormal specific gravity of the x-th equipment model exceeds a preset abnormal specific gravity threshold, marking the equipment model as an abnormal equipment model, and initiating model network abnormal alarm for the x-th equipment model;
and initiating a single network anomaly alarm for all power distribution terminals with non-anomaly equipment types in the anomaly single terminals.
An electronic device is proposed, comprising: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor executes the method for evaluating the network performance of the equipment by using the power distribution terminal test signal time point by calling the computer program stored in the memory.
A computer-readable storage medium is proposed, on which a computer program is stored that is erasable;
the computer program, when run on a computer device, causes the computer device to perform the method for evaluating device network performance using the power distribution terminal test signal time points described above.
Compared with the prior art, the invention has the beneficial effects that:
the method comprises the steps of acquiring a terminal set of a division area based on terminal position data by collecting the terminal position data and the terminal model data in advance, and collecting a pre-divided division period set; collecting the average time of the communication transmission on the same day and the average time of the communication transmission on the same history of each power distribution terminal in each divided area, generating an area network abnormality judgment result for each divided area based on the average time of the communication transmission on the same day and the average time of the communication transmission on the same history of the terminals in each divided area, and switching to the step four if the area network abnormality judgment result is normal; if the regional network anomaly judgment result is abnormal, initiating regional network congestion warning, generating a terminal single network anomaly judgment result for each power distribution terminal in a partitioned area with a normal regional network anomaly judgment result based on the communication transmission average time and the historical communication transmission average time of each partitioned period, taking all power distribution terminals with abnormal terminal single network anomaly judgment results as abnormal single terminals, and generating model network anomaly warning and single network anomaly warning based on the terminal model data of all abnormal single terminals; analyzing and calculating real-time communication delay data and historical communication delay data samples every day, analyzing time delay problems caused by networks of different operators, different areas and time periods from the statistical perspective, and improving the positioning efficiency of communication delay reasons, so that decision support is provided for later planning and correction.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in fig. 1, the method for evaluating the network performance of the equipment by using the time point of the test signal of the power distribution terminal comprises the following steps:
step one: collecting terminal position data and terminal model data in advance; acquiring a terminal set of a division area based on the terminal position data;
step two: collecting a pre-divided period set; collecting the communication transmission average time of the same day and the historical communication transmission average time of each power distribution terminal in each divided period of each day;
step three: generating an area network abnormality judgment result for each divided area based on the current day communication transmission average time and the historical communication transmission average time of the terminals in each divided area, and turning to the fourth step if the area network abnormality judgment result is normal; if the regional network abnormality judgment result is abnormal, initiating regional network congestion warning;
step four: generating a terminal single network anomaly judgment result for each power distribution terminal in the divided area with a normal regional network anomaly judgment result based on the current day communication transmission average time and the historical communication transmission average time of each divided period;
step five: the distribution terminals with abnormal judging results of all terminal single network abnormal are used as abnormal single terminals, and model network abnormal alarms and single network abnormal alarms are generated based on the terminal model data of all the abnormal single terminals;
the method for collecting the terminal position data and the terminal model data in advance comprises the following steps:
collecting the geographic position coordinates of each power distribution terminal and the equipment model of each power distribution terminal, wherein the geographic position coordinates of all the power distribution terminals form terminal position data, and the equipment models of all the power distribution terminals form terminal model data;
the geographic position coordinates can be longitude and latitude coordinates, or two-dimensional plane coordinates generated after the city is modeled in an equal proportion;
the equipment model comprises the network operators of the power distribution terminal equipment and the numbers of the equipment models of the power distribution terminals in the corresponding network operators;
further, the method for obtaining the terminal set of the divided area based on the terminal position data is as follows:
collecting the positions of all core network nodes in the city; specifically, the core network nodes include, but are not limited to, core routers and core switches in a metropolitan area network, backbone link segments or key relay nodes (network nodes connecting different subnets or network segments), and the like;
counting the main core network nodes through which each power distribution terminal transmits signals through a public network; the main core network node is the core network node through which the power distribution terminal transmits signals most frequently;
establishing a slave terminal set for each core network node, wherein the slave terminal set comprises all power distribution terminals taking the core network node as a main core network node;
all the subordinate terminal sets form a terminal set of a division area;
specifically, the statistical manner of the primary core network node may be:
each power distribution terminal transmits a plurality of analog signals to the master station front-end processor, and then counts all core network nodes passing through in the route of each analog signal;
for each power distribution terminal, taking the core network node with the most occurrence frequency in the route of all analog signals sent by the power distribution terminal as a main core network node;
further, the method for collecting the pre-divided time period set is as follows:
dividing the time of each day into a plurality of time periods according to actual experience based on the actual distribution condition of network flow of each core network node in the urban area at different times, wherein each time period corresponds to one division period; for example, will 2:00-6:00 as a time period, and every 4 hours later as a time period;
further, the method for collecting the average time of the communication transmission on the same day and the average time of the historical communication transmission of each power distribution terminal in each divided period of each day is as follows:
after each power distribution terminal generates two remote signals, recording the generation time of the two remote signals; the two remote signals are the sum of remote signals and remote signaling signals respectively generated after the distribution automation terminal collects the analog quantity of the power line and the change of the state quantity of equipment and carries out logic judgment;
the power distribution terminal sends two remote signals to the master station front-end processor, and the master station front-end processor records the receiving time of each received two remote signals;
subtracting the generation time from the receiving time of each two remote signals to obtain the network transmission time of the two remote signals;
the master station front-end processor classifies the two remote signals received by the latest date as current two remote signals according to the date of the receiving time of the two remote signals, takes each date before the latest date as a historical date, and takes the two remote signals received by each historical date as historical two remote signals;
determining the dividing period of each current two remote signals according to the generation time of the current two remote signals;
for each power distribution terminal, calculating the average value of network transmission time of current two remote signals sent by the power distribution terminal in each divided period, and taking the average value of network transmission time of the current two remote signals as the communication transmission average time of the power distribution terminal in the same day in the divided period;
determining the dividing period of each historical two remote signal according to the generation time of the two remote signals;
in each history period, for each power distribution terminal, calculating the average value of network transmission time of the two remote signals of the history transmitted by the power distribution terminal in each divided period, and taking the average value of network transmission time of the two remote signals of the history as the average time of historical communication transmission of the power distribution terminal in the divided period;
further, the method for generating the regional network anomaly judgment result for each divided region based on the current day communication transmission average time and the historical communication transmission average time of the terminals in each divided region is as follows:
for each divided region:
presetting a communication delay threshold Y and historical reference days N;
the number of the power distribution terminals in the dividing area is marked as I, and the total number of the power distribution terminals in the dividing area is marked as I;
for each power distribution terminal, collecting historical communication transmission average time of N historical dates of previous historical reference days, and numbering the historical dates in time sequence as N, n=1, 2, 3..n; for example, the last N days have a history date stamp number of 1 and yesterday have a history date stamp number of N; it can be understood that the comparison result with more referential property is obtained by comparing with the historical communication data of the previous N days;
calculating the average value and variance of the communication transmission average time of the current day of the I power distribution terminals in the dividing area, respectively serving as the average value and variance of the current day area time, and respectively marking the average value and variance of the current day area time as AD and FD;
calculating the average value of the communication transmission average time of the I power distribution terminals in the nth historical period in the dividing area as the time average value of the historical area, and marking the time average value of the historical area as AHn;
calculating an area abnormality reference value Z of the divided area in a manner thatThe method comprises the steps of carrying out a first treatment on the surface of the Wherein b1 and b2 are respectively preset proportionality coefficients; it will be appreciated that in the formula +.>) The n in (2) expresses the reference weight for improving the communication delay, and obviously, the closer the historical date is to the current date, the greater the reference value is;
if the regional abnormality reference value Z is larger than a preset abnormal value threshold value, the regional network abnormality judgment result is abnormal;
if the regional abnormality reference value Z is smaller than or equal to a preset abnormal value threshold value, the regional network abnormality judgment result is normal;
further, the method for generating the terminal single network anomaly judgment result for each power distribution terminal based on the current day communication transmission average time and the historical communication transmission average time of each divided period is as follows:
marking the communication transmission average time of the ith power distribution terminal on the same day as TDi, and marking the historical communication transmission average time of the ith power distribution terminal on the nth day as THin;
calculating a monomer abnormal reference value Zi of an ith power distribution terminal;
the calculation formula of the monomer anomaly reference value Zi is as follows:;
if the communication transmission average time TDi of the current day is larger than a preset communication delay threshold or a monomer abnormality reference value Zi is larger than a preset monomer fluctuation abnormality threshold, setting a terminal monomer network abnormality judgment result of the power distribution terminal as abnormality;
if the communication transmission average time TDi of the current day is smaller than or equal to a preset communication delay threshold value and the monomer anomaly reference value Zi is smaller than or equal to a preset monomer fluctuation anomaly threshold value, setting a terminal monomer network anomaly judgment result of the power distribution terminal to be normal;
further, the mode of generating the model network abnormal alarm and the monomer network abnormal alarm based on the terminal model data of all abnormal monomer terminals is as follows:
the number of the equipment model is marked as x;
counting the abnormal specific gravity of the power distribution terminal of the x-th equipment model in all abnormal single terminals for the x-th equipment model, and marking the abnormal specific gravity as wx;
if the abnormal specific gravity of the x-th equipment model exceeds a preset abnormal specific gravity threshold, marking the equipment model as an abnormal equipment model, and initiating model network abnormal alarm for the x-th equipment model;
initiating a single network anomaly alarm for all power distribution terminals of non-anomaly equipment types in the anomaly single terminals;
the regional network abnormity judging result judges whether abnormal delay exists in the regional network communication, when the regional network is not delayed, whether abnormal delay exists in the power distribution terminal monomer is judged, and whether the abnormal delay exists in the terminal monomer is further judged, and whether the abnormal delay exists is caused by using the same equipment model or not is judged, so that the reason of abnormal communication delay is analyzed, the efficiency of positioning the reason of communication delay is improved, and decision support is provided for later planning and correction.
Example 2
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 2, an electronic device 100 is also provided according to yet another aspect of the present application. The electronic device 100 may include one or more processors and one or more memories. Wherein the memory has stored therein computer readable code which, when executed by the one or more processors, is capable of performing the method of evaluating device network performance using power distribution terminal test signal time points as described above.
The method or apparatus according to embodiments of the present application may also be implemented by means of the architecture of the electronic device shown in fig. 2. As shown in fig. 2, the electronic device 100 may include a bus 101, one or more CPUs 102, a ROM103, a RAM104, a communication port 105 connected to a network, an input/output component 106, a hard disk 107, and the like. A storage device in the electronic device 100, such as the ROM103 or the hard disk 107, may store the methods provided herein for evaluating device network performance using the distribution terminal test signal time points. The method for evaluating the network performance of a device using the point in time of the test signal of the power distribution terminal may, for example, comprise the steps of: step one: collecting terminal position data and terminal model data in advance; acquiring a terminal set of a division area based on the terminal position data; step two: collecting a pre-divided period set; collecting the communication transmission average time of the same day and the historical communication transmission average time of each power distribution terminal in each divided period of each day; step three: generating an area network abnormality judgment result for each divided area based on the current day communication transmission average time and the historical communication transmission average time of the terminals in each divided area, and turning to the fourth step if the area network abnormality judgment result is normal; if the regional network abnormality judgment result is abnormal, initiating regional network congestion warning; step four: generating a terminal single network anomaly judgment result for each power distribution terminal in the divided area with a normal regional network anomaly judgment result based on the current day communication transmission average time and the historical communication transmission average time of each divided period; step five: the distribution terminals with abnormal judging results of all terminal single network abnormal are used as abnormal single terminals, and model network abnormal alarms and single network abnormal alarms are generated based on the terminal model data of all the abnormal single terminals;
further, the electronic device 100 may also include a user interface 108. Of course, the architecture shown in fig. 2 is merely exemplary, and one or more components of the electronic device shown in fig. 2 may be omitted as may be practical in implementing different devices.
Example 3
Fig. 3 is a schematic structural diagram of a computer readable storage medium according to an embodiment of the present application. Shown in fig. 3 is a computer readable storage medium 200 according to one embodiment of the present application. The computer-readable storage medium 200 has stored thereon computer-readable instructions. When the computer readable instructions are executed by the processor, the method for evaluating the network performance of the device using the distribution terminal test signal time point according to the embodiment of the application described with reference to the above figures may be performed. Computer-readable storage medium 200 includes, but is not limited to, for example, volatile memory and/or nonvolatile memory. Volatile memory can include, for example, random Access Memory (RAM), cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like.
In addition, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, the present application provides a non-transitory machine-readable storage medium storing machine-readable instructions executable by a processor to perform instructions corresponding to the method steps provided herein, which when executed by a Central Processing Unit (CPU), perform the functions defined above in the methods of the present application.
The methods and apparatus, devices, and apparatus of the present application may be implemented in numerous ways. For example, the methods and apparatus, devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present application. Thus, the present application also covers a recording medium storing a program for executing the method according to the present application.
In addition, in the foregoing technical solutions provided in the embodiments of the present application, parts consistent with implementation principles of corresponding technical solutions in the prior art are not described in detail, so that redundant descriptions are avoided.
The purpose, technical scheme and beneficial effects of the invention are further described in detail in the detailed description. It is to be understood that the above description is only of specific embodiments of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The above preset parameters or preset thresholds are set by those skilled in the art according to actual conditions or are obtained by mass data simulation.
The above embodiments are only for illustrating the technical method of the present invention and not for limiting the same, and it should be understood by those skilled in the art that the technical method of the present invention may be modified or substituted without departing from the spirit and scope of the technical method of the present invention.