A kind of method and device of monitoring device status information real-time synchronization
Technical field
The present invention relates to regarding networking technology field, more particularly to a kind of method of monitoring device status information real-time synchronization
And device.
Background technology
With the fast development of the network technology, the two-way communications such as video conference, video teaching the life of user, work,
Study etc. is widely available.
It is the monitoring business O&M service platform regarding networking depending on networking monitoring management platform, once it is deployed to project
In, it is to run always for nx365x24 hours.It, can be unified to monitoring by monitoring the web administration platform of management platform
Management platform addition regard networking association turn server (addition association turn server regard networking number, monitoring management platform with assist
Turn to communicate by regarding networking protocol between server), when monitoring management platform startup, service can be turned to each association successively
Device obtains the monitoring device information entrained by it, to be managed collectively to all monitoring devices.
When regarding networking monitoring client from networking monitoring management platform obtain monitoring the Resources list when, Wu Fazhi
Road currently each monitors the real-time status of resource, so that when performing associated monitoring business by monitor client, usually occurs clear
Look at monitoring realtime graphic when blank screen (monitoring resource offline), monitor client it is reactionless (monitoring faulty resource, suspension, deactivate etc.)
The problems such as, it causes user experience very poor, influences the examination of project and final delivery.
Invention content
In view of the above problems, it is proposed that the embodiment of the present invention overcomes the above problem or at least partly in order to provide one kind
A kind of monitoring device status information real-time synchronization method and a kind of corresponding monitoring device status information to solve the above problems is real
When synchronizing device.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of sides of monitoring device status information real-time synchronization
Method, applied in networking monitoring management platform, including:
After starting and successfully obtaining all monitoring device information, turning server transmission monitoring device state subscription to each association please
It asks;
Parsing obtains the state of the monitoring device from the status request of monitoring device assisted and turn server push
Information;
According to the status information of the monitoring device, the state of monitoring device corresponding in local data base is carried out more
Newly;
It is asked according to the monitoring device list query that monitor client is sent, the status information of relevant device will be included
Monitoring device list is pushed to the monitor client.
Preferably, it is described to start and successfully obtain institute according to the method for the monitoring device status information real-time synchronization
After having monitoring device information, turn the step of server sends the request of monitoring device state subscription to association, including:
After starting and successfully obtaining all monitoring device information, turn server transmission to each above-mentioned association through Core server and set
Standby state subscription is asked.
Preferably, it according to the method for the monitoring device status information real-time synchronization, further includes:
In the monitoring device state update notification request for turning that server is sent via the Core server from the association, solution
Analysis obtains the state updating information of the monitoring device;
According to the state updating information of the monitoring device, to the state of monitoring device corresponding in local data base into
Row update;
The update notification request of monitoring device state is sent to the monitor client, so that the monitor client is described
The status information of relevant device is updated in monitoring device list.
Preferably, it according to the method for the monitoring device status information real-time synchronization, further includes:
It receives the monitor client transmission monitoring device state and is updated successfully response;
By the monitoring device state be updated successfully response via the Core server be sent to it is described association turn server.
Preferably, it according to the method for the monitoring device status information real-time synchronization, further includes:
If the state of the monitoring resource is abnormal, the networking monitoring client that regards sends warning message to corresponding
Repair client.
To solve the above-mentioned problems, the embodiment of the invention also discloses a kind of dresses of monitoring device status information real-time synchronization
It puts, applied in networking monitoring management platform, including:
Subscribing module is sent, after startup and successfully obtaining all monitoring device information, turns server to each association and sends
Monitoring device state subscription is asked;
Parsing module, for parsing in the status request of monitoring device for turning server push being assisted to obtain the prison from described
Control the status information of equipment;
State update module, for the status information according to the monitoring device, to prison corresponding in local data base
The state of control equipment is updated;
Block of state is pushed, for the monitoring device list query request sent according to monitor client, phase will be included
The monitoring device list for closing the status information of equipment is pushed to the monitor client.
Preferably, it according to the device of the monitoring device status information real-time synchronization, further includes:Core server is used
Start and after successfully obtaining all monitoring device information in the monitoring management platform, through Core server to each association
Turn the request of server sending device state subscription.
Preferably, it according to the device of the monitoring device status information real-time synchronization, further includes:
Analyzing sub-module, for turning monitoring device state that server sent via above-mentioned Core server more from the association
In new notification request, parsing obtains the state updating information of the monitoring device;
State updates submodule, right to institute in local data base for the state updating information according to the monitoring device
The state for the monitoring device answered is updated;
Push state submodule, for sending the update notification request of monitoring device state to the monitor client, for
The monitor client updates the status information of relevant device in the monitoring device list.
Preferably, it according to the device of the monitoring device status information real-time synchronization, further includes:
Respond module is updated successfully response for receiving the monitor client transmission monitoring device state;
Respond module is sent, is sent for the monitoring device state to be updated successfully response via the Core server
Turn server to the association.
Preferably, according to the device of the monitoring device status information real-time synchronization, the monitor client is additionally operable to
If the state of the monitoring device is abnormal, warning message is sent to corresponding repair client.
The embodiment of the present invention applies the characteristic regarding networking, a kind of regarding networking monitoring resource shape by being defined depending on networking protocol
The method of state subscription/notification, such issues that solve.Start depending on networking monitoring management platform and successfully obtain association and turn service
After the monitoring device information of device, can to the association turn server sending device state subscription request, when association turn server receive should ask
After readding request, the status information of current all devices can be sent to monitoring management platform and carry out Input of Data, then
The status information of monitoring management platform handle and the relevant equipment of certain client (user right control) is notified to regarding networking prison
Client is controlled, the real-time status for monitoring resource is showed so as to fulfill monitor client.
Description of the drawings
Fig. 1 is a kind of networking schematic diagram for regarding networking of the present invention;
Fig. 2 is a kind of hardware architecture diagram of node server of the present invention;
Fig. 3 is a kind of hardware architecture diagram of access switch of the present invention;
Fig. 4 is that a kind of Ethernet association of the present invention turns the hardware architecture diagram of gateway;
Fig. 5 a are a kind of structure diagrams of monitoring device status information real-time synchronization of the present invention;
Fig. 5 is a kind of step flow chart of monitoring device status information real-time synchronization of the present invention;
Fig. 6 is a kind of step flow chart of monitoring device status information real-time synchronization of the present invention;
Fig. 7 is a kind of structure diagram of the device embodiment of monitoring device status information real-time synchronization of the present invention;
Fig. 8 a are a kind of structure diagrams of the device embodiment of monitoring device status information real-time synchronization of the present invention;
Fig. 8 b are a kind of structure diagrams of the device embodiment of monitoring device status information real-time synchronization of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
It, can be such as high in a network platform by required service depending on networking using real-time high-definition video switching technology
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information publication by oneself
The services such as etc. tens of kinds videos, voice, picture, word, communication, data are all incorporated into a system platform, by TV or
Computer realizes that high-definition quality video plays.
For those skilled in the art is made to more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
Road and the seamless connection of data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch of Ethernet are used depending on networking, eliminating Ethernet under the premise of full compatibility lacks
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking can not be realized pushes numerous Internet video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, and single network layer is with regard to energy
Enough include signaling and data transmission.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
State-of-the-art real time operating system is employed, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits for typical time to be less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of ad eundem IP internets, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem of puzzlement internet has thoroughly been eradicated from structure, antivirus applet, fire wall has not been needed to generally, has prevented black
Visitor and the attack of virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications program, and can use considerably less code that complicated application can be realized, and realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, it is divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal is (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and Ethernet can be connected.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (empty thiol point), and multiple unified videos are put down
Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger is (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
The equipment of 1.2 wherein access mesh portions can be mainly divided into 3 classes:Node server, access switch is (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, mainly include Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 to the packet come in look into the operation of address table 205, so as to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 approaches
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded if meeting the following conditions:1) port
It is less than to send caching;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operations such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly include Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in is into packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould
The packet (downlink data) that block 302 is come in is into switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the packet come in look into the operation of address table 306, so as to obtain the navigation information of packet;
It is gone if the packet into switching engine module 303 is downstream network interface toward uplink network interface, with reference to flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
It is gone if the queue is downstream network interface toward uplink network interface, meets the following conditions and be forwarded:1)
It is less than that the port sends caching;2) the queue package counting facility is more than zero;3) token that rate control module generates is obtained;
It is gone if the queue is not downstream network interface toward uplink network interface, meets the following conditions and be forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, configuration to address table 306 and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly include Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC add modules 409, MAC removing modules 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, regarding networking mesh way address
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to packet
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
Mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are formed.
2nd, regarding networking data package definition
2.1 access network data package definitions
The data packet for accessing net mainly includes following sections:Destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA |
SA |
Reserved |
Payload |
CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section represents type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical with destination address (DA);
Reserve bytes are made of 2 bytes;
Payload parts have different length according to the type of different datagrams, if being if various protocol packages
64 bytes, if single group unicast packets words be 32+1024=1056 byte, be not restricted to certainly more than 2 kinds;
CRC is made of 4 bytes, and computational methods follow the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between device A and equipment B there are two connect, then data packet slave device A to equipment B just
There are 2 labels, data packet slave device B to device A also there are 2 labels.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized Control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA |
SA |
Reserved |
Label |
Payload |
CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the form of label, which can refer to, to be defined as below:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Put is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, it then follows regarding the association of networking
View as shown in Figure 5 a, turns server by the monitoring management unified platform and association and regards networking protocol according to above-mentioned, association is turned server connects
The state of the monitoring device connect is uploaded to the monitoring management unified platform in real time.
Embodiment one
With reference to Fig. 5, a kind of step flow chart of monitoring device status information real-time synchronization of the present invention, this method are shown
It can be applied to regard in networking monitoring management platform, specifically may include steps of:
Step S501 after starting and successfully obtaining all monitoring device information, turns server to each association and sends monitoring device
State subscription is asked;
After monitoring management platform startup, obtain from local data base and currently connect with the monitoring management platform
Association turn server, turn server to each association and send monitoring device to obtain request, each association turns server and receives prison
After controlling equipment acquisition request, turn the letter for the monitoring device that server records to the monitoring management platform transmission association
Breath.
After monitoring management platform gets the information of monitoring device, turn server to each association and send monitoring device state
Subscribe to request.
It is described when to subscribe to request purpose be that association turns server and receives the state of the monitoring device and change, association turn
The last state of server active push monitoring device.
Step S502, from it is described assist turn server push the status request of monitoring device in parsing obtain it is described monitoring set
Standby status information;
It, will be certainly after association turns the monitoring device state subscription request that server receives the monitoring management platform generation
The status information for the monitoring device that body carries is pushed to the monitoring management platform.
The monitoring management platform obtains the monitoring according to parsing in the status request of the monitoring device of push and sets
Standby status information, such as the monitoring device are in offline, online, busy, equipment fault, maintenance of equipment, the obstructed state of network.
Step S503, according to the status information of the monitoring device, to monitoring device corresponding in local data base
State is updated;
According to the status information of the monitoring device, the shape of the monitoring device in database to monitoring management platform
State is updated.
Such as, the status information that certain monitoring device obtains is equipment fault, then the state of this monitoring device is registered as equipment
Failure simultaneously stores, and facilitates subsequent alarm repair.
Step S504 asks according to the monitoring device list query that monitor client is sent, will include relevant device
The monitoring device list of status information is pushed to the monitor client.
After monitor client logs in, the request of monitoring device list query is sent to monitoring management platform;Monitoring is unified
Management platform obtains the login user information of monitor client by the inquiry request, according to the permission of the user information, by this
The list information of the corresponding monitoring device of user is sent to monitor client, and above-mentioned list information includes corresponding monitoring device
Status information.
After monitor client obtains and stores the state of the monitoring device, sentenced according to the state of the monitoring resource
It is disconnected;
If the state of the monitoring device is online, then it represents that the monitoring device is normal, can be by the monitoring of monitoring device
Information is sent to monitor client, obtains the information of monitoring area.
If the state of the monitoring device for it is offline, failure is untreated, in fault restoration, equipment out of use, equipment suspension etc.
State, then it represents that the monitoring device is abnormal, then the monitor client sends warning message to corresponding repair client, makes
The monitoring device of abnormality can be repaired in time.
The embodiment of the present invention applies the characteristic regarding networking, a kind of regarding networking monitoring resource shape by being defined depending on networking protocol
The method of state subscription/notification, such issues that solve.Start depending on networking monitoring management platform and successfully obtain association and turn service
After the monitoring device information of device, can to the association turn server sending device state subscription request, when association turn server receive should ask
After readding request, the status information of current all devices can be sent to monitoring management platform and carry out Input of Data, then
The status information of monitoring management platform handle and the relevant equipment of certain client (user right control) is notified to regarding networking prison
Client is controlled, the real-time status for monitoring resource is showed so as to fulfill monitor client.
Embodiment two
With reference to Fig. 6, a kind of step flow chart of monitoring device status information real-time synchronization of the present invention, this method are shown
It can be applied to regard in networking monitoring management platform, specifically may include steps of
Step S601 after starting and successfully obtaining all monitoring device information, turns clothes through Core server to each association
Business device sends the request of monitoring device state subscription;
It monitors after management platform starts, the association being currently accessed is read from local data base and turns server, to each
The association turns server and sends monitoring device acquisition request, and the association turns the monitoring that server receives monitoring management platform
After equipment obtains request, the information of the monitoring resource according to entrained by sending it to monitoring management platform depending on networking protocol, according to
The restriction regarding networking protocol, the information of a monitoring device correspond to the instruction of a transmission, until the monitoring is unified
The information of the corresponding all monitoring devices of management platform is all sent to the monitoring management platform.
The monitoring management platform sends monitoring device and subscribes to request to Core server, and the subscription request includes
It is described to assist the number for turning server;The number that association of the Core server in above-mentioned subscription request turns server will be subscribed to
Request is sent to corresponding association and turns server.
Step S602 turns server from the association and updates notification via the monitoring device state that the Core server is sent
In request, parsing obtains the state updating information of the monitoring device;
Association turn server receive it is described subscribe to request after, the association is turned to the state of monitoring device entrained by server
Information depending on networking protocol by being sent to regarding networking Core server;The Core server is by the state of the monitoring device received
Information is sent to the monitoring management platform with the form of status request;The monitoring management platform receives monitoring
After the status request of equipment, the status information of monitoring device is parsed from request instruction, and to corresponding in local data base
The state of monitoring resource be updated.
Step S603 according to the state updating information of the monitoring device, sets monitoring corresponding in local data base
Standby state is updated.
According to the status information of the monitoring device, the shape of the monitoring device in database to monitoring management platform
State is updated.
Such as, the status information that certain monitoring device obtains is equipment fault, then the state of this monitoring device is registered as equipment
Failure simultaneously stores, and facilitates subsequent alarm repair.
Step S604 asks according to the monitoring device list query that monitor client is sent, will include relevant device
The monitoring device list of status information is pushed to the monitor client.
After monitor client logs in, the request of monitoring device list query is sent to monitoring management platform;Monitoring is unified
Management platform obtains the login user information of monitor client by the inquiry request, according to the use according to above-mentioned inquiry request
The list information of the corresponding monitoring device of the user is sent to monitor client by the permission at family, and above-mentioned list information includes pair
The status information for the monitoring device answered.
Preferably, it after association turns server reception subscription request, is subscribing in the request term of validity, is assisting the monitoring turned on server
After the state of equipment sends variation, step S605 to step S609 is included.
Step S605 turns server from the association and updates notification via the monitoring device state that the Core server is sent
In request, parsing obtains the state updating information of the monitoring device
After the state that the association turns the monitoring device on server changes, send monitoring to the Core server and set
Standby state update notification request includes the newest status information of the monitoring device in the request;The core network server
After receiving the update notification request, the update notification request is sent to the monitoring management platform;The monitoring
Management platform obtains monitoring device information and the corresponding last state of monitoring device from the update notification request.
The status information for turning the monitoring device 002 under server 0a f0 such as association is switched to " network is obstructed " by " online " state
State, then association turn server 0a f0 above- mentioned information be sent to monitoring management platform by Core server.
Step S606 according to the state updating information of the monitoring device, sets monitoring corresponding in local data base
Standby state is updated.
Monitoring device information and the corresponding last state of monitoring device are obtained according in the update notification request, updates institute
State the last state of the corresponding monitoring device of local data base of monitoring management platform.
As above example, the monitoring management platform turn the state of the monitoring device 002 under server 0a f0 by association is recorded
Information is " network is obstructed " state.
Step S607 sends the update notification request of monitoring device state, for the monitoring visitor to the monitor client
Family end updates the status information of relevant device in the monitoring device list.
Management platform is monitored according to the corresponding monitor client of monitoring device information searching, by the monitoring device
State update notification request is sent to monitor client.
Monitoring device information searching corresponding monitoring device list of the monitor client in update notification request, update
The status information of corresponding monitoring device, and the response that state is updated successfully is sent to monitoring management platform.
What monitoring management platform lookup association turned the login of the corresponding users of server 0a f0 is monitor client 10,
It is " network is obstructed " shape then to monitor management platform and send association to turn the status information of monitoring device 002 under server 0a f0
The information of state records the information to monitor client 10, monitor client 10.
Step S608 receives the monitor client transmission monitoring device state and is updated successfully response.
It is " network is obstructed " that monitor client 10, which stores and assists the status information for turning the monitoring device 002 under server 0a f0,
After the information of state, the response that is updated successfully of monitoring device state is sent to monitoring management platform.
The monitoring device state is updated successfully response and is sent to the association via the Core server by step S609
Turn server.
After the monitoring management platform reception monitor client transmission monitoring device state is updated successfully response, to core
Central server sends monitoring device state and is updated successfully response, which is transmitted to by Core server turns clothes regarding networking association
Business device, so as to complete the synchronized update of monitoring resource status.
Preferably, it after monitor client obtains the status information of monitoring device, is carried out according to the state of the monitoring resource
Judge;
If the state of the monitoring device is online, then it represents that the monitoring device is normal, can be by the monitoring of monitoring device
Information is sent to monitor client, obtains the information of monitoring area.
If the state of the monitoring device for it is offline, failure is untreated, in fault restoration, equipment out of use, equipment suspension etc.
State, then it represents that the monitoring device is abnormal, then the monitor client sends warning message to corresponding repair client, makes different
Normal monitoring device can timely and effectively work.
The status information that association as described above turns the monitoring device 002 under server 0a f0 is " network is obstructed " state, then supervises
It controls client and sends warning message to the corresponding repair client of the monitoring device, make the shape of " network is obstructed " of the monitoring device
State can be obtained by maintenance personal, timely and effectively handle the failure of the monitoring device.
The embodiment of the present invention applies the characteristic regarding networking, a kind of regarding networking monitoring resource shape by being defined depending on networking protocol
The method of state subscription/notification, such issues that solve.Start depending on networking monitoring management platform and successfully obtain association and turn service
After the monitoring device information of device, can to the association turn server sending device state subscription request, when association turn server receive should ask
After readding request, the status information of current all devices can be sent to monitoring management platform and carry out Input of Data, then
The status information of monitoring management platform handle and the relevant equipment of certain client (user right control) is notified to regarding networking prison
Client is controlled, the real-time status for monitoring resource is showed so as to fulfill monitor client.Once association turns certain monitoring money on server
Source state changes, and association, which turns server, to be needed that the status information of the monitoring resource is notified to be managed collectively regarding networking monitoring to put down
Platform, after monitoring management platform receives the request, the state for completing the equipment in local data base first updates operation, simultaneously
The status information of the equipment is sent to be associated regard networking monitoring client, so as to fulfill regarding networking monitoring client pair
Monitor the real-time status update operation of resource.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
Embodiment three
With reference to Fig. 7, a kind of structure of the device embodiment of monitoring device status information real-time synchronization of the present invention is shown
Block diagram, the device are applied to regard in networking, can specifically include following module:
Association turns server 700, and monitor client 710 monitors management platform 720;
Wherein, monitoring management platform 720 includes:
Subscribing module 721 is sent, after startup and successfully obtaining all monitoring device information, turns server hair to each association
Equipment state is sent to subscribe to request;
Parsing module 722, for parsing in the status request of monitoring device for turning server push being assisted to obtain institute from described
State the status information of monitoring device;
State update module 723, for the status information according to the monitoring device, to corresponding in local data base
The state of monitoring device is updated;
Block of state 724 is pushed, for the monitoring device list query request sent according to monitor client, will be included
The monitoring device list of the status information of relevant device is pushed to the monitor client.
After monitoring the startup of management platform 720, turn the transmission monitoring of server 700 to association by sending subscribing module 721
Equipment state subscribes to request;Association turn server 700 receive the subscription request after, the status request of monitoring device is pushed to prison
The parsing module 722 of management platform 720 is controlled, parsing module 722 will parse described from the status request of monitoring device
The status information of monitoring device is simultaneously sent to state update module 723;State update module 723 will be according to the monitoring device
Status information is updated the state of monitoring device corresponding in local data base;After monitor client 710 logs in, hair
Monitoring device list is sent to give monitoring management platform 720;Monitoring the push block of state 724 of management platform 720 will wrap
The monitoring device list of status information containing relevant device is pushed to the monitor client 710.
Preferably, the monitor client 710 further includes:
Alarm module 712, for sending warning message to corresponding repair client.
After monitor client 710 obtains and stores the state of the monitoring device, judgment module 711 judges each monitoring device
State, if judge the state of certain monitoring device for for it is offline, failure is untreated, in fault restoration, equipment out of use, equipment suspension
When abnormalities, alarm module 712 sends warning message to the repair client of team member.
The embodiment of the present invention applies the characteristic regarding networking, a kind of regarding networking monitoring resource shape by being defined depending on networking protocol
The method of state subscription/notification, such issues that solve.Start depending on networking monitoring management platform 720 and successfully obtain association and turn
After the monitoring device information of server 700, the request of 700 sending device state subscription of server can be turned to the association, when association turns service
Device 700 is received after this please read request, the status information of current all monitoring devices can be sent to monitoring management platform into
Row Input of Data, then monitors management platform handle and the state of the relevant equipment of certain client (user right control) is believed
Breath is notified to regarding networking monitoring client 720, and the real-time status for monitoring resource is showed so as to fulfill monitor client 720.
Example IV
With reference to Fig. 8 a and Fig. 8 b, a kind of device embodiment of monitoring device status information real-time synchronization of the present invention is shown
Structure diagram, the device be applied to regard networking in, can specifically include following module:
Association turns server 800, and monitor client 810 monitors management platform 820;
Wherein, monitoring management platform 820 includes:
Subscribing module 821 is sent, after startup and successfully obtaining all monitoring device information, turns server hair to each association
Equipment state is sent to subscribe to request;
Parsing module 822, for parsing in the status request of monitoring device for turning server push being assisted to obtain institute from described
State the status information of monitoring device;
State update module 823, for the status information according to the monitoring device, to corresponding in local data base
The state of monitoring device is updated;
Block of state 824 is pushed, for the monitoring device list query request sent according to monitor client, will be included
The monitoring device list of the status information of relevant device is pushed to the monitor client.
After monitoring the startup of management platform 820, turn the transmission monitoring of server 800 to association by sending subscribing module 821
Equipment state subscribes to request;Association turn server 800 receive the subscription request after, the status request of monitoring device is pushed to prison
The parsing module 822 of management platform 820 is controlled, parsing module 822 will parse described from the status request of monitoring device
The status information of monitoring device is simultaneously sent to state update module 823;State update module 823 will be according to the monitoring device
Status information is updated the state of monitoring device corresponding in local data base;After monitor client 810 logs in, hair
Monitoring device list is sent to give monitoring management platform 820;Monitoring the push block of state 824 of management platform 820 will wrap
The monitoring device list of status information containing relevant device is pushed to the monitor client 810.
Preferably, the embodiment of the present invention further includes Core server 830;Start for management platform 820 will to be monitored
And after successfully obtaining all monitoring device information, turn 800 sending device state subscription of server to each association through Core server 830
Request;Meanwhile it is also to be sent to monitoring through Core server 830 that each association, which turns server 800 to return to the status request of monitoring device,
Management platform 820.
Preferably, with reference to figure 8b, in the embodiment of the present invention, monitoring management platform 820 further includes:
Analyzing sub-module 825, for assisting the monitoring device shape for turning server and being sent via the Core server from described
In state update notification request, parsing obtains the state updating information of the monitoring device;
State updates submodule 826, for the state updating information according to the monitoring device, to institute in local data base
The state of corresponding monitoring device is updated;
Push state submodule 827, for sending the update notification request of monitoring device state to the monitor client, with
The status information of relevant device is updated in the monitoring device list for the monitor client.
Respond module 828 is updated successfully response for receiving the monitor client transmission monitoring device state;
Respond module 829 is sent, for the monitoring device state to be updated successfully response via the Core server
It is sent to the association and turns server.
After association turns the reception subscription request of server 800, subscribing in the request term of validity, assisting the monitoring turned on server 800
After the state of equipment sends variation, it is logical via the Core server 830 transmission monitoring device state update that association turns server 800
It submits a report asking for and asks to the analyzing sub-module 825 of monitoring management platform 820;Analyzing sub-module 825 please solve above-mentioned update notification
After analysis, the status updates of the monitoring device are obtained, and above- mentioned information is sent to state update submodule 826 and push
State submodule 827;State updates submodule 826 by the state updating information according to the monitoring device, to local data base
In the state of corresponding monitoring device be updated;Push state submodule 827 sends to the monitor client 810 and monitors
Equipment state update notification request, so that the monitor client 810 updates relevant device in the monitoring device list
Status information;After monitor client 810 updates the status information of relevant device, to the response mould of monitoring management platform 820
Block 828 returns to 810 monitoring device state of monitor client and is updated successfully response;Respond module 828 is sent out to respond module 829 is sent
The message that monitoring device state is sent to be updated successfully;It sends respond module 829 and the monitoring device state is updated successfully response warp
The association is sent to by the Core server 830 and turns server 800.
Preferably, the monitor client 810 further includes:
Alarm module 812, for sending warning message to corresponding repair client.
The embodiment of the present invention applies the characteristic regarding networking, a kind of regarding networking monitoring resource shape by being defined depending on networking protocol
The method of state subscription/notification, such issues that solve.Start depending on networking monitoring management platform and successfully obtain association and turn service
After the monitoring device information of device, can to the association turn server sending device state subscription request, when association turn server receive should ask
After readding request, the status information of current all devices can be sent to monitoring management platform and carry out Input of Data, then
The status information of monitoring management platform handle and the relevant equipment of certain client (user right control) is notified to regarding networking prison
Client is controlled, the real-time status for monitoring resource is showed so as to fulfill monitor client.Once association turns certain monitoring money on server
Source state changes, and association, which turns server, to be needed that the status information of the monitoring resource is notified to be managed collectively regarding networking monitoring to put down
Platform, after monitoring management platform receives the request, the state for completing the equipment in local data base first updates operation, simultaneously
The status information of the equipment is sent to be associated regard networking monitoring client, so as to fulfill regarding networking monitoring client pair
Monitor the real-time status update operation of resource.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows
And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base
This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Above to a kind of method and device of monitoring device status information real-time synchronization provided by the present invention, carry out in detail
Thin to introduce, specific case used herein is expounded the principle of the present invention and embodiment, and above example is said
The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, foundation
The thought of the present invention, there will be changes in specific embodiments and applications, in conclusion the content of the present specification is not
It is interpreted as limitation of the present invention.