The condition monitoring system of electricity consumption acquisition virtual private channel link
Technical field
The present invention relates to network communication fields, in particular to a kind of shape of electricity consumption acquisition virtual private channel link
State monitors system.
Background technique
Currently, a large amount of electricity consumption acquisition terminal passes through the virtual private channel of mobile communication carrier, Utilities Electric Co. is accessed
Internal network, this access way had not only obtained safer network access mode, but also saved network construction cost, solve
It has inconvenient traffic, the network insertion problem in the area Shao Ren.
But the topological structure of the protection due to operator to virtual network, network is invisible to user, shield SNMP,
The traditional networks prospecting tools such as traceroute are also brought to the system monitoring of user although improving the safety of network
It is difficult.When network failure occurs, Utilities Electric Co. is difficult to find network failure problem in time, it is difficult to which judgement is that access of virtual is dedicated
The terminal equipment failure or network link failure of network can not assess the journey that current network link state influences data transmission
Degree, can not quickly judge the terminal range that network failure or congestion effects arrive.
The virtual network topology provided for common carrier in the prior art is invisible, causes to be difficult to acquire system to electricity consumption
The problem of network link of system is monitored, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of condition monitoring systems of electricity consumption acquisition virtual private channel link, existing to solve
The virtual network topology for having common carrier in technology to provide is invisible, cause to be difficult to the network link of electricity consumption acquisition system into
The technical issues of row monitoring.
According to an aspect of an embodiment of the present invention, a kind of state prison of electricity consumption acquisition virtual private channel link is provided
Examining system, comprising: electricity consumption acquisition terminal communicates with default ammeter, and accesses public network, and electricity consumption acquisition terminal is for acquiring default electricity
The electricity consumption data of table, and when receiving data uploading instructions, electricity consumption data is uploaded by public network;Gateway server is detected, with
The communication of electricity consumption acquisition terminal, detection gateway server further include network detection module, and network detection module is used to acquire electricity consumption
Terminal is pairwise grouping, and the electricity consumption acquisition terminal to after being grouped two-by-two sends message, with the round-trip delay of measured message;Net
Network monitoring server clusters electricity consumption acquisition terminal to logic according to the round-trip delay of message with detection gateway server communication
Under router, to obtain the logical topological structure of network.
Further, electricity consumption acquisition terminal includes at least subscriber identification card, and has a corresponding network address,
Wherein, subscriber identification card is used to access public network using electric acquisition terminal.
Further, network detection module is used for the long-range call instruction that response to network monitoring server is sent, and is patrolling
The operating parameter of electricity consumption acquisition is monitored in the case where inspection, wherein operating parameter includes: whether online, propagation delay time, packet loss.
Further, when network detection module is also used to the existence of monitoring electricity consumption acquisition in the case where topological structure is inferred
Between.
Further, network monitor server further include: topological structure inference module, for according to two sections in one group
The corresponding round-trip delay of point, calculates the time delay covariance of two nodes, is the chain of that two node based on time delay covariance
Road correlation, and according to the link correlation of node, link correlation is met into preset relation by using hierarchical clustering algorithm
Cluster to router logic, inferred with carrying out the topological structure of logical links, obtain the logical topological structure of network.
Further, network monitor server further include: network patrol module, network patrol module are used for according to preset
The logical topological structure of period traverses network measures the time delay and packet loss of each router logic in logical topological structure.
Further, any a plurality of terminals in router logic are the GC group connector of router logic, network patrol
Module is also used to send message to GC group connector, to measure the time delay and packet loss of GC group connector.
Further, network monitor server further include: network failure evaluation module, network patrol module, which is also used to work as, appoints
When router logic of anticipating meets following any one or more conditions, the alarm record of database is written, and by router logic
Address be sent to network failure evaluation module, with start network failure evaluation module operation.
Further, network failure evaluation module is also used to after receiving failed terminals information, according to logical topology chart, is mentioned
The information for taking all target logic routers of the detection gateway service to failed terminals on the link, measures all target logic roads
By the how corresponding destination node of device, and the malfunction of other nodes with destination node with the same father node.
Further, network monitor server further includes fault alarm module, and fault alarm module is used for Test database
In alarm record, and when detect alarm record in emerging alarm record when, sending warning information.
In embodiments of the present invention, the electricity consumption data that ammeter is acquired by electricity consumption acquisition terminal, by detecting gateway service
The electricity consumption acquisition terminal is pairwise grouping in network detection module in device, and to two-by-two be grouped after electricity consumption acquisition terminal
Message is sent, to measure the round-trip delay of the message, and is inferred by network monitor server according to the round-trip delay of message
The logical topological structure of network out, above scheme is by the way that by after the grouping of electricity consumption acquisition terminal, the round-trip delay based on message is carried out
Cluster solves the virtual network topology that common carrier provides in the prior art to obtain the logical topological structure of network
It is invisible, cause to be difficult to the technical issues of being monitored the network link of electricity consumption acquisition system, thus when network breaks down
When, fault point can be searched based on the logical topological structure got.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the signal of the condition monitoring system of electricity consumption acquisition virtual private channel link according to an embodiment of the present invention
Figure;And
Fig. 2 is a kind of status monitoring system of optional electricity consumption acquisition virtual private channel link according to an embodiment of the present invention
The schematic diagram of system.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of reality of the condition monitoring system of electricity consumption acquisition virtual private channel link is provided
Example is applied, Fig. 1 is the schematic diagram of the condition monitoring system of electricity consumption acquisition virtual private channel link according to an embodiment of the present invention, such as
Shown in Fig. 1, which includes:
Electricity consumption acquisition terminal 10 communicates with default ammeter, and accesses public network, and electricity consumption acquisition terminal is for acquiring default ammeter
Electricity consumption data electricity consumption data is uploaded by public network and when receiving data uploading instructions.
It is connected specifically, acquisition terminal is adopted in above-mentioned electricity consumption with one or more ammeters, the use recorded for acquiring ammeter
Electric data,
In an alternative embodiment, electricity consumption acquisition terminal summarizes by wireless access carrier network and connects electricity
The electricity consumption data of table;When receiving the uploading instructions of electricity consumption acquisition gateway transmission, electricity consumption data is uploaded;What response server was sent
Icmp probe packet.
Gateway server 20 is detected, is communicated with electricity consumption acquisition terminal, the detection gateway server further includes network detection
Module, the network detection module is for being pairwise grouping the electricity consumption acquisition terminal, and to the electricity consumption after being grouped two-by-two
Acquisition terminal sends message, to measure the round-trip delay of the message.
Specifically, above-mentioned detection gateway server is also used to the virtual channel established between the electricity consumption acquisition terminal,
To obtain the electricity consumption data that the electricity consumption acquisition terminal uploads.
In an alternative embodiment, network detection module measures the electricity consumption acquisition terminal node using ping order
TTL;Electricity consumption acquisition is generated by electricity consumption acquisition terminal node combination of two to method using the immediately grouping based on round-trip delay
Terminal node pair, and multiple groups probe messages are sent using ICMP agreement, to measure round-trip delay.
Network monitor server 30, and detection gateway server communication, according to the round-trip delay of the message by the use
Electric acquisition terminal is clustered to router logic, to obtain the logical topological structure of network.
Above-mentioned network monitor server also monitors service script by operational network, connect with detection gateway server, and
Long-range starting stops detecting the virtual private channel detection task on gateway server;And operation maintenance system database, access
Detect the electricity consumption data that gateway service uploads.
In an alternative embodiment, network monitor server is according to the round-trip delay of electricity consumption acquisition terminal node pair,
The time delay covariance for calculating the two measures the link correlation of the two;Using hierarchical clustering algorithm, correlation requirement will be met
Node, cluster arrive under the same router logic, realize that the topology of logical links is inferred, obtain the logical topology chart of network.
From the foregoing, it will be observed that the above embodiments of the present application acquire the electricity consumption data of ammeter by electricity consumption acquisition terminal, pass through detection
The electricity consumption acquisition terminal is pairwise grouping in network detection module in gateway server, and to two-by-two be grouped after electricity consumption
Acquisition terminal sends message, to measure the round-trip delay of the message, and by network monitor server according to the round-trip of message
Time delay is inferred to the logical topological structure of network, after above scheme is by the way that electricity consumption acquisition terminal to be grouped, based on the round-trip of message
Time delay is clustered, to obtain the logical topological structure of network, solves the virtual of common carrier offer in the prior art
Network topology is invisible, causes to be difficult to the technical issues of being monitored the network link of electricity consumption acquisition system, to work as network
When failure, fault point can be searched based on the logical topological structure got.
As a kind of optional embodiment, electricity consumption acquisition terminal includes at least subscriber identification card, and right with one
The network address answered, wherein subscriber identification card is used to access public network using electric acquisition terminal.
Above-mentioned subscriber identification card is SIM card, and in an alternative embodiment, electricity consumption acquisition terminal is equipped with
SIM card, one IP address of each terminal, and only in response to icmp probe data packet, electricity consumption acquisition terminal by GPRS or CDMA without
Line access carrier network.
As a kind of optional embodiment, network detection module is used for the long-range tune that response to network monitoring server is sent
With instruction, the operating parameter of electricity consumption acquisition is monitored in the case where inspection, wherein when operating parameter includes: whether online, transmission
Prolong, packet loss.It is also used as a kind of optional embodiment, network detection module is also used to monitor in the case where topological structure is inferred
The life span of electricity consumption acquisition.
In an alternative embodiment, the far call instruction of network detection module response monitoring server: work as progress
It is whether online using the ping order test electricity consumption acquisition terminal when network Daily Round Check, propagation delay time and packet loss;When into
When row topological structure is inferred, the TTL of the electricity consumption acquisition terminal node is measured using ping order;Using based on round-trip delay
It is immediately grouped to method, by electricity consumption acquisition terminal node combination of two, sends multiple groups probe messages using ICMP agreement, measurement is round-trip
Time delay.The virtual private channel that each operator can be connected with multiple gateway servers carries out Distributed probing to network.Do not allow
Network monitor server direct detection electricity consumption acquisition terminal, to safeguard the safety of electricity consumption acquisition system itself.
As a kind of optional embodiment, the network monitor server further include: topological structure inference module is used for root
According to the corresponding round-trip delay of two nodes in one group, the time delay covariance of described two nodes is calculated, is assisted based on the time delay
Variance is the link correlation of that described two node, and according to the link correlation of the node, by using level
The cluster that link correlation is met preset relation by clustering algorithm is pushed away to router logic with carrying out the topological structure of logical links
It is disconnected, obtain the logical topological structure of network.
In an alternative embodiment, the time delay association of the two is calculated to round-trip delay according to user's acquisition terminal node
Variance measures the link correlation of the two;Using hierarchical clustering algorithm, the node of correlation requirement will be met, cluster arrives same
Under a router logic, realizes that the topology of logical links is inferred, obtain the logical topology chart of network, be stored in the data of monitoring system
In library;Each router logic is corresponding without real ip address, only exists as logic unit, in the use that the router logic includes
In electric acquisition terminal, GC group connector of the K electricity consumption acquisition terminal as the router logic is randomly selected, for measuring link
Energy.
As a kind of optional embodiment, network monitor server further include: network patrol module, network patrol module are used
In the logical topological structure according to preset period traverses network, the time delay of each router logic in logical topological structure is measured
And packet loss.
In an alternative embodiment, network patrol module extracts Network traffic model figure, according between the preset time
Every layer-by-layer traverses network topology measures the time delay of each router logic, packet loss in topological diagram by gateway server.
As a kind of optional embodiment, any a plurality of terminals in router logic are that the representative of router logic is whole
End, network patrol module is also used to send message to GC group connector, to measure the time delay and packet loss of GC group connector.
As a kind of optional embodiment, network monitor server further include: network failure evaluation module, network patrol mould
Block is also used to be written the alarm record of database when any router logic meets following any one or more conditions, and
The address of router logic is sent to network failure evaluation module, to start the operation of network failure evaluation module.
In an alternative embodiment, the measurement method of network patrol module is: sending icmp packet, measures the logic
The time delay of a plurality of GC group connectors of router, packet loss, and by the average delay of this plurality of GC group connector, average packet loss
Rate, time delay, packet loss as router logic;When the time delay for finding wherein some router logic is higher than preset value or loses
Packet rate is higher than the case where preset value, terminal disconnection, generates warning information, the warning information table of database is written;It will go offline or net
The relatively low terminal IP of network performance is sent to network failure evaluation module, while triggering the operation of network failure evaluation module.
As a kind of optional embodiment, network failure evaluation module is also used to after receiving failed terminals information, according to
Logical topology chart extracts the information of all target logic routers of the detection gateway service to failed terminals on the link, measurement
The how corresponding destination node of all target logic routers, and there are other nodes of the same father node with destination node
Malfunction.
In an alternative embodiment, network failure evaluation module is after receiving possible failed terminals information, in time
Judgement is single electricity consumption acquisition terminal connecting fault or router logic nodes break down.
The judgment method of the network failure evaluation module the following steps are included:
(1) according to Network traffic model figure, detection gateway server is extracted to failed terminals each logic routing on the link
Device information;Failed terminals list F is added in the terminal;
(2) using whole brotgher of node terminals of failed terminals in ping measurement Network traffic model figure, discovery can not
When the terminal that ping leads to, it is added into failed terminals list F;If all brotghers of node are normal, illustrate only one terminal certainly
Body breaks down, then EP (end of program), returns to failed terminals list F;If the fruit part brotgher of node is abnormal, then illustrate father's node,
Router logic link presence i.e. belonging to them is abnormal in short-term, returns to failed terminals list F;If whole brotghers of node are different
Often, then the router logic belonging to illustrating breaks down, which is added failed terminals list F;
(3) to the router logic increased newly in failed terminals list F, step (2) are executed one by one, until without newly-increased in F
Router logic is added;
(4) failed terminals list F is last fault incidence;Assessment of failure report is generated, database is written.
As a kind of optional embodiment, network monitor server further includes fault alarm module, and fault alarm module is used
Alarm record in Test database, and when detecting emerging alarm record in alarm record, issue warning information.
In an alternative embodiment, warning information table records in fault alarm module cycle detection database, discovery
When new warning information, by Web page and Intranet mailing system, network failure warning message is pushed to network maintenance staff.
Fig. 2 is a kind of status monitoring system of optional electricity consumption acquisition virtual private channel link according to an embodiment of the present invention
The schematic diagram of system, in the following, as shown in connection with fig. 2, illustrating above-mentioned electricity consumption acquisition virtual private CHN chain with a complete embodiment
The condition monitoring system on road.
Deployment installation hardware system first, installs topological structure inference module, the net of software systems in monitoring server
Network polling module, network failure evaluation module, fault alarm module;For different common carriers, need to dispose different
Gateway server is detected, network detection module is installed, for the electricity consumption acquisition terminal in detecting visual special network network.Monitoring service
Device encapsulates recalls information by RPC (Remote Procedure Call, remote procedure call protocol) mechanism, with xml format,
Network detection module on far call gateway server.
When system runs for the first time or needs to update network topology, topological structure inference module need to be called.The module is extracted
Each electricity consumption acquisition terminal IP address of gateway connection, the measurement module on far call gateway server, with being immediately grouped to method,
The round-trip delay of measuring node pair is stored in database;The TTL of each terminal is measured simultaneously.
Topological structure inference module reads node to round-trip delay from database, calculates the time delay covariance of the two, degree
Measure the link correlation of the two;Using hierarchical clustering algorithm, bottom-uply, correlation requirement, the identical section of TTL will be met
Point, cluster arrive under the same router logic, obtain the logical topology chart of network, are stored in the database of monitoring system.Because
Each router logic is the logic unit inferred, no real ip address is corresponding, therefore randomly selects the K clustered under the router
GC group connector of a terminal as the router logic, for measuring link performance.The size of K is according to network size and bandwidth spirit
It is living to choose.
When it is implemented, for provincial network, to reduce network detection flow pressure caused by virtual channel, first by
A each city-level network of detection, then collect for the logical topology of the whole province's network.For large scale network, the first topology probe time compared with
It is long, the progress of business idle periods should be arranged in.
After generating logical topology chart, monitoring server starts network patrol module, according to the preset time interval, in this example
The one districts and cities' network of detection in every 30 minutes measures topological diagram by gateway server using depth-first method traverses network topology
In the time delay of each router logic, packet loss, by the average delay of K GC group connector, average packet loss ratio, as router logic
Time delay, packet loss.
Set delay threshold T=4000ms, packet loss threshold value L=20%, when find certain router logic time delay > T or
The case where packet loss > L, terminal disconnection, generates warning information, the alarm table of database is written.It will go offline or network performance is inclined
Low terminal IP is sent to network failure evaluation module, calls network failure evaluation module.
When finding failed terminals, network failure evaluation module is called, if it is single terminal failure, is alerted to database
Terminal disconnection warning record is written in information table, if it is determined that be that network failure occurs in virtual link, such as network congestion, therefore
Hinder the terminal range that output failure influences in assessment report.
Fault alarm module is according to Fixed Time Interval, warning information table record in cycle detection database, if it find that
When new warning information, such as terminal disconnection, assessment of failure report etc., by Web page and Intranet mailing system, to network dimension
Shield personnel push network failure warning message.
The virtual network topology that the present invention is provided for common carrier is invisible, can not be acquired with conventional method to electricity consumption
The problem of network link of system is monitored discloses a kind of electricity consumption acquisition virtual private channel link condition monitoring system.
The system includes electricity consumption acquisition terminal, detection gateway server, network monitor server.Gateway server network detection module,
Topological structure inference module, network patrol module, network failure evaluation module, fault alarm module are run in monitoring server,
Realize that link state monitoring and fault coverage are assessed.Using only icmp packet detection network, it is not necessarily to SNMP and traceroute branch
It holds, is applicable in Virtual Private Network.The electricity consumption acquisition terminal range that network fault influence can quickly be defined, without detecting each end
End, saves network detection flow when fault location;It avoids aggravating network load in network congestion.The present invention, which has, to be protruded
Substantive distinguishing features and significant progress.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.