CN105072418A - Method and device for judging offline of monitoring front-end device - Google Patents
Method and device for judging offline of monitoring front-end device Download PDFInfo
- Publication number
- CN105072418A CN105072418A CN201510535754.1A CN201510535754A CN105072418A CN 105072418 A CN105072418 A CN 105072418A CN 201510535754 A CN201510535754 A CN 201510535754A CN 105072418 A CN105072418 A CN 105072418A
- Authority
- CN
- China
- Prior art keywords
- monitoring frontend
- address
- logical resource
- monitoring
- frontend
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method for judging offline of a monitoring front-end device. The method is applied to a storage device, and comprises the following steps: performing performance statistics on a logical resource; if the write performance of the logical resource is smaller than a set threshold within preset time, sending a data packet constructed according to a Ping command to the monitoring front-end device corresponding to the logical resource; and if no response data packet is received from the monitoring front-end device, judging that the monitoring front-end device is offline, otherwise, judging that the monitoring front-end device is online. With respect to a timing Ping monitoring front-end device, the method for judging offline of the monitoring front-end device has the advantages that the consumption of the performance of the storage device is reduced and data packets in the network are reduced.
Description
Technical field
The present invention relates to technical field of video monitoring, particularly relate to a kind of method and apparatus judging monitoring frontend off-line.
Background technology
Monitoring business model is the video recording write of 7 × 24 hours substantially.The memory device that video monitoring data after oneself compressed encoding is sent to rear end by each monitoring frontend (encoder as IPC, access simulation camera) stores.Usually, each monitoring frontend can get memory space memory device being specific to oneself.Each monitoring frontend is mounted to rear end memory device by iSCSI agreement, and the storage resources being specific to oneself carries out 7 × 24 h cycle writes of video monitoring data.
Because the memory device of monitoring frontend to rear end needs through IP network, so when monitoring frontend is obstructed to the IP network of memory device, the storage flow of monitoring frontend cannot successfully write rear end memory device.
At present, the mode that can detect by carrying out timing ping (packetinternetgroup, the Internet packets survey meter) bag to monitoring frontend judge that whether network is obstructed, namely confirms monitoring frontend whether off-line.Such as the management server of supervisory control system sent ping bag every 20 seconds to monitoring frontend, if can not lead to by ping, just think monitoring frontend off-line.Or; monitoring frontend can also send keep-alive message every 20 seconds to management server; if management server is in the regular hour, such as within 40 seconds, all do not receive the keep-alive message that monitoring frontend sends, so just think monitoring frontend off-line.
Although said method can confirm monitoring frontend whether off-line, this mode is relatively large to the consumption of system.
Summary of the invention
In view of this, the invention provides a kind of method and apparatus judging monitoring frontend off-line.
The method comprises: carry out performance statistics for a certain logical resource; If the write performance on described logical resource is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds; If do not receive the response data bag of described monitoring frontend, then judge this monitoring frontend off-line, otherwise judge that this monitoring frontend is online.
Preferably, the write performance on described logical resource comprises bandwidth or the number of times writing IO per second.
Preferably, the method also comprises:
Set up the general unique identifier UUID of storage resources and the corresponding relation of monitoring frontend IP address in advance;
The packet that the described monitoring frontend corresponding to this logical resource sends Ping order structure comprises:
Inquire about the IP address that the UUID of described logical resource is corresponding;
The packet that Ping order builds is sent to described IP address.
Preferably, the corresponding relation setting up storage resources UUID and monitoring frontend IP address in advance comprises:
Behind the IP address of the monitoring frontend carried in the storage plan that the management server obtaining supervisory control system issues, distribute corresponding storage resources to this monitoring frontend, and at the UUID of this storage resources of local record and the corresponding relation of monitoring frontend IP address.
The device of this judgement monitoring frontend off-line comprises:
Performance statistic module, for carrying out performance statistics to logical resource;
Ping command module, if the write performance on described logical resource is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds;
Off-line judge module, if the response data bag for not receiving described monitoring frontend, then judges this monitoring frontend off-line, otherwise judges that this monitoring frontend is online.
Preferably, this device also comprises:
List item sets up module, for the corresponding relation of the general unique identifier UUID and monitoring frontend IP address that set up storage resources in advance;
The packet that the monitoring frontend that described Ping command module is corresponding to this logical resource sends Ping order structure comprises:
Inquire about the IP address that the UUID of described logical resource is corresponding;
The packet that Ping order builds is sent to described IP address.
Preferably, list item is set up the corresponding relation that module sets up storage resources UUID and monitoring frontend IP address in advance and is comprised: behind the IP address of the monitoring frontend carried in the storage plan that the management server obtaining supervisory control system issues, distribute corresponding storage resources to this monitoring frontend, and at the UUID of this storage resources of local record and the corresponding relation of monitoring frontend IP address.
Compared to prior art, whether the present invention program does not confirm monitoring frontend blindly online, write performance in the stored logic resource that monitoring frontend is corresponding occurs abnormal, namely occur that write flow is the situation close to 0 substantially constantly, memory device is Ping monitoring frontend.Like this relative to timing Ping monitoring frontend, decrease the consumption to storage device performance, decrease the packet in network.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention flow chart.
Fig. 2 is logical resource performance statistics schematic diagram.
Fig. 3 is embodiment of the present invention device building-block of logic.
Embodiment
For solving the technical problem mentioned in background technology, the invention provides a kind of scheme judging monitoring frontend off-line targetedly.Whether the program does not confirm monitoring frontend blindly online, but just triggers the judgement whether online to monitoring frontend in any case.Be described in detail below by way of specific embodiment.
Embodiment of the present invention method flow diagram shown in please refer to the drawing 1.
S11, performance statistics is carried out to logical resource.
If the write performance on the described logical resource of S12 is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds;
If S13 does not receive the response data bag of described monitoring frontend, then judge this monitoring frontend off-line, otherwise judge that this monitoring frontend is online.
Memory space on memory device can be divided into some logical resources.Each logical resource as the storage resources of a monitoring frontend, for this monitoring frontend at storing surveillance video above.Memory device has the ability of each storage resources being carried out to performance statistics, the example of shown in please refer to the drawing 2.The example shows two parameters of reflection logical resource performance: bandwidth sum IOPS (number of times of read-write IO per second).This example has all carried out performance statistics for read and write.But the present embodiment, monitoring frontend substantially just as write device write video monitoring data on logical resource, so only need the write performance considering storage resources, therefore, only need concern write bandwidth or per secondly write IO number.
Write IO number for per second, if this number of times is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds.A concrete example is: if in 5 seconds, described in write that IO number is on average per second is less than N, then think current monitor headend equipment likely off-line.Here N is multiple data less than normal discharge write logical resource, but considers the situation that also may there are miscellaneous equipment management write data, so N can not be 0, concrete size can provide in conjunction with empirical data.
When monitoring frontend may off-line, memory device again to the packet storing the monitoring frontend of data on this logical resource and send Ping order structure, i.e. ICMP request data package.If memory device receives the response data bag of this monitoring frontend, then think that this monitoring frontend is also online, otherwise think this monitoring frontend off-line.
Memory device confirms that the trigger condition of monitoring frontend whether off-line is: the write performance in the stored logic resource that this monitoring frontend is corresponding occurs abnormal, namely occurs that write flow is the situation close to 0 substantially constantly.When this trigger condition occurs, memory device is Ping monitoring frontend.Like this relative to timing Ping monitoring frontend, decrease the consumption to storage device performance, decrease the packet in network.
In order to successfully can send the packet of Ping order structure to monitoring frontend, need the IP address knowing this monitoring frontend.A kind of simple and effective method is: set up the general unique identifier UUID of storage resources and the corresponding relation of monitoring frontend IP address in advance.Specifically, memory device can know the IP address of monitoring frontend by the management server of supervisory control system.Such as management server issues storage plan, notice memory device monitoring frontend a needs store video monitor data, and this storage plan comprises the IP address of monitoring frontend a; The logical resource 1 of memory device is given to monitoring frontend a, and memory device is at the corresponding relation of the UUID of local record storage resources 1 and the IP address of monitoring frontend a.When the write performance of logical resource 1 occurs abnormal, search the IP address of monitoring frontend corresponding to this logical resource 1 (UUID is the unique identification of this logical resource 1), send the packet that Ping order builds to this IP address.
In addition, when can also be mounted to memory device by monitoring frontend, memory device obtains its IP address, and then corresponding relation is set up in the IP address of the logical resource and monitoring frontend of giving this monitoring frontend, is recorded in this locality.
It should be noted that, when sending the packet that Ping order builds to monitoring frontend, if first time does not receive the response data bag of monitoring frontend, the packet of Ping order structure can be sent again to this monitoring frontend, if still do not receive back message, then think monitoring frontend off-line.
Based on same design, the present invention also provides a kind of device judging monitoring frontend off-line.Please refer to the drawing 3, the logical construction of this device comprises: performance statistic module, Ping command module, off-line judge module.
This performance statistic module, for carrying out performance statistics to logical resource;
This Ping command module, if the write performance on described logical resource is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds;
This off-line judge module, if the response data bag for not receiving described monitoring frontend, then judges this monitoring frontend off-line, otherwise judges that this monitoring frontend is online.
The device of this judgement monitoring frontend off-line also comprises: list item sets up module, and this module is used for setting up the general unique identifier UUID of storage resources and the corresponding relation of monitoring frontend IP address in advance; The packet that the monitoring frontend that described Ping command module is corresponding to this logical resource sends Ping order structure comprises: inquire about the IP address that the UUID of described logical resource is corresponding; The packet that Ping order builds is sent to described IP address.
This list item is set up the corresponding relation that module sets up storage resources UUID and monitoring frontend IP address in advance and is comprised: behind the IP address of the monitoring frontend carried in the storage plan that the management server obtaining supervisory control system issues, distribute corresponding storage resources to this monitoring frontend, and at the UUID of this storage resources of local record and the corresponding relation of monitoring frontend IP address.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.
Claims (8)
1. judge a method for monitoring frontend off-line, the method is applied to memory device, it is characterized in that, the method comprises:
Performance statistics is carried out for a certain logical resource;
If the write performance on described logical resource is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds; If do not receive the response data bag of described monitoring frontend, then judge this monitoring frontend off-line, otherwise judge that this monitoring frontend is online.
2. the method for claim 1, is characterized in that, the write performance on described logical resource comprises bandwidth or the number of times writing IO per second.
3. the method for claim 1, is characterized in that, described method also comprises:
Set up the general unique identifier UUID of storage resources and the corresponding relation of monitoring frontend IP address in advance;
The packet that the described monitoring frontend corresponding to this logical resource sends Ping order structure comprises:
Inquire about the IP address that the UUID of described logical resource is corresponding;
The packet that Ping order builds is sent to described IP address.
4. method as claimed in claim 3, it is characterized in that, the corresponding relation setting up storage resources UUID and monitoring frontend IP address in advance comprises:
Behind the IP address of the monitoring frontend carried in the storage plan that the management server obtaining supervisory control system issues, distribute corresponding storage resources to this monitoring frontend, and at the UUID of this storage resources of local record and the corresponding relation of monitoring frontend IP address.
5. judge a device for monitoring frontend off-line, this application of installation, in memory device, is characterized in that, this device comprises:
Performance statistic module, for carrying out performance statistics to logical resource;
Ping command module, if the write performance on described logical resource is less than setting threshold in Preset Time, then corresponding to this logical resource monitoring frontend sends the packet that Ping order builds;
Off-line judge module, if the response data bag for not receiving described monitoring frontend, then judges this monitoring frontend off-line, otherwise judges that this monitoring frontend is online.
6. device as claimed in claim 5, it is characterized in that, the write performance on described logical resource comprises bandwidth or the number of times writing IO per second.
7. device as claimed in claim 5, it is characterized in that, described device also comprises:
List item sets up module, for the corresponding relation of the general unique identifier UUID and monitoring frontend IP address that set up storage resources in advance;
The packet that the monitoring frontend that described Ping command module is corresponding to this logical resource sends Ping order structure comprises:
Inquire about the IP address that the UUID of described logical resource is corresponding;
The packet that Ping order builds is sent to described IP address.
8. device as claimed in claim 7, is characterized in that, list item is set up the corresponding relation that module sets up storage resources UUID and monitoring frontend IP address in advance and comprised:
Behind the IP address of the monitoring frontend carried in the storage plan that the management server obtaining supervisory control system issues, distribute corresponding storage resources to this monitoring frontend, and at the UUID of this storage resources of local record and the corresponding relation of monitoring frontend IP address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535754.1A CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535754.1A CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105072418A true CN105072418A (en) | 2015-11-18 |
CN105072418B CN105072418B (en) | 2019-01-15 |
Family
ID=54501687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510535754.1A Active CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105072418B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635271A (en) * | 2015-12-28 | 2016-06-01 | 中国民航信息网络股份有限公司 | Application on-line state monitor method and system |
CN109981806A (en) * | 2017-12-28 | 2019-07-05 | 北京京东尚科信息技术有限公司 | Domain name processing, register method and system, computer system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483547A (en) * | 2009-02-12 | 2009-07-15 | 中国人民解放军信息工程大学 | Evaluation method and system for network burst affair |
CN102811344A (en) * | 2011-12-08 | 2012-12-05 | 苏州科达科技有限公司 | Control method and device for improving storage stability in video monitoring system |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
CN103347179A (en) * | 2013-07-17 | 2013-10-09 | 浙江宇视科技有限公司 | Device and method for achieving monitor front-end equipment networking |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104317696A (en) * | 2014-10-27 | 2015-01-28 | 浙江省烟草公司金华市公司 | Information-based equipment and service running state failure alarming system |
-
2015
- 2015-08-27 CN CN201510535754.1A patent/CN105072418B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483547A (en) * | 2009-02-12 | 2009-07-15 | 中国人民解放军信息工程大学 | Evaluation method and system for network burst affair |
CN102811344A (en) * | 2011-12-08 | 2012-12-05 | 苏州科达科技有限公司 | Control method and device for improving storage stability in video monitoring system |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
CN103347179A (en) * | 2013-07-17 | 2013-10-09 | 浙江宇视科技有限公司 | Device and method for achieving monitor front-end equipment networking |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104317696A (en) * | 2014-10-27 | 2015-01-28 | 浙江省烟草公司金华市公司 | Information-based equipment and service running state failure alarming system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635271A (en) * | 2015-12-28 | 2016-06-01 | 中国民航信息网络股份有限公司 | Application on-line state monitor method and system |
CN109981806A (en) * | 2017-12-28 | 2019-07-05 | 北京京东尚科信息技术有限公司 | Domain name processing, register method and system, computer system |
CN109981806B (en) * | 2017-12-28 | 2022-07-05 | 北京京东尚科信息技术有限公司 | Domain name processing and registering method and system, and computer system |
Also Published As
Publication number | Publication date |
---|---|
CN105072418B (en) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101123492B (en) | Method and device for detecting scanning attack | |
US8135979B2 (en) | Collecting network-level packets into a data structure in response to an abnormal condition | |
CN108933798B (en) | Data storage method, storage server and system | |
CN105373899A (en) | Server asset management method and apparatus | |
CN104394382A (en) | Storage method, device and system of video monitoring record | |
CN108833149B (en) | Method and system for monitoring network availability and self-healing of express delivery cabinet | |
CN103001809A (en) | Service node state monitoring method for cloud storage system | |
CN103856760A (en) | Longitudinal virtualization device between video surveillance devices | |
US20140201356A1 (en) | Monitoring system of managing cloud-based hosts and monitoring method using for the same | |
CN101340567B (en) | Reliability guarantee method of network video monitoring frontend | |
CN103581626A (en) | Video monitoring system and video storage information recording method | |
CN104486125A (en) | Backup method and device of configuration files | |
CN103024326A (en) | Video backup method and system based on security and protection home gateway | |
CN103514173A (en) | Data processing method and node equipment | |
CN105429799A (en) | Server backup method and device | |
CN104468201A (en) | Automatic deleting method and device for offline network equipment | |
CN103347031B (en) | A kind of method and apparatus taking precautions against ARP message aggression | |
CN111064957B (en) | Equipment state monitoring method and device | |
CN103634166A (en) | Equipment survival detection method and equipment survival detection device | |
CN105072418A (en) | Method and device for judging offline of monitoring front-end device | |
CN104753992A (en) | Method, device and system for data storage and method and device for virtual platform failure recovery | |
CN111083176B (en) | Cloud self-adaptive online method and device for monitoring camera | |
CN102664757A (en) | Cascading method and equipment for storage devices | |
CN104899157A (en) | Memory overflow detection method and system | |
CN107864209B (en) | Data writing method and device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |