CN102984490A - Network video recorder - Google Patents

Network video recorder Download PDF

Info

Publication number
CN102984490A
CN102984490A CN2012105897052A CN201210589705A CN102984490A CN 102984490 A CN102984490 A CN 102984490A CN 2012105897052 A CN2012105897052 A CN 2012105897052A CN 201210589705 A CN201210589705 A CN 201210589705A CN 102984490 A CN102984490 A CN 102984490A
Authority
CN
China
Prior art keywords
memory
controller
processor
network interface
nvr
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
Application number
CN2012105897052A
Other languages
Chinese (zh)
Other versions
CN102984490B (en
Inventor
周迪
余剑声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201210589705.2A priority Critical patent/CN102984490B/en
Publication of CN102984490A publication Critical patent/CN102984490A/en
Application granted granted Critical
Publication of CN102984490B publication Critical patent/CN102984490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network video recorder NVR. The NVR comprises a controller and a memory, wherein the controller and the memory are connected through a first internal network port and a second internal network port; the memory also comprises a first processor, a first internal network card, a first ring network access port and a second ring network access port; the two ring network access ports are connected with adjacent equipment respectively to achieve ring-shaped networking respectively; the first internal network card comprises an exchange chip connected to the first processor, the second internal network port, the first ring network access port and the second ring network access port respectively; the first processor is used for running an Ethernet ring network protection protocol and sending a takeover request message when judging that the controller has a fault; the controller comprises a second internal network card and a second processor; and the second processor is used for sending a resource request message when judging that the memory has a fault. According to the NVR, the equipment level redundancy is provided in a memory area network of a video monitoring system, so that the problem in the prior art is effectively avoided.

Description

A kind of network video machine
Technical field
The present invention relates to field of video monitoring, relate in particular to a kind of network video machine.
Background technology
Along with the development of video/audio encoding and decoding technology and Network storage technology, with the view data digitlization of video camera, and formed the digital video monitoring technology in Internet transmission over networks, storage.
In the existing IP network video monitoring system, head end encoder (EC) is according to the storage of recording a video of the plan of formulating in advance or strategy, when the video recording storage, head end encoder is encoded continuously to current image content, and coded data is encapsulated in Internet small computer system interface (iSCSI) message continuously, mail in the storage area network (SAN) and store.
Fig. 1 is the networking structure figure of storage area network in the existing video monitoring system.With reference to Fig. 1, described storage area network comprises a plurality of controllers and a plurality of memory, and each memory is connected with a controller, under the control of controller, the coded data that front end sends over is stored.Particularly, memory 1 is connected with controller 1, and memory 2 is connected with controller 2, and memory 3 is connected with controller 3, and controller 1,2,3 is connected to respectively bus.Usually, memory and controller can be used as a whole physical equipment application externally are provided, and for example, just include described memory and controller in the network video machine (NVR).In the IP of video monitoring system networking, storage system adopts the iSCSI agreement externally to provide professional, iSCSI originating end (initiator) can carry out data access to it, and the terminal equipments such as front network video camera (IPC) are just crossed IP network as iSCSI initiator with the data communication device that gathers and deposited in the memory.
As can be seen from Figure 1, in the storage area network of prior art, along with the scale of video monitoring system constantly increases, the quantity of storage area network middle controller and memory is in continuous increase, and when controller and memory break down, need to manually carry out more exchange device, whole reliability is lower.
Summary of the invention
In view of this, the invention provides a kind of network video machine NVR, this NVR comprises controller and memory, wherein:
Described controller comprises the first inner network interface, and described memory comprises the second inner network interface, and this controller is connected the described first inner network interface and is connected inner network interface and connects with memory;
This memory also comprises on first processor, the first inner network interface card, the first ring network interface and the upper network interface of the second ring, and network interface and the upper network interface of the second ring link to each other with adjacent memory respectively and realize the annular networking of Ethernet on this first ring; The described first inner network interface card comprises exchange chip, and this exchange chip is connected to network interface and the upper network interface of the second ring on first processor, the second inner network interface, the first ring; Wherein this first processor is further used for moving the Ethernet ring protection agreement, and when judging described controller failure, the request of transmission is taken over notice so that other controller is taken over this memory;
Described controller also comprises the second inner network interface card and the second processor that links to each other with the described second inner network interface, and this second processor is used for when judging described storage failure, sends request resource and notifies to obtain other memories as management object.
The present invention is by adopting ring-shaped network to memory, when memory breaks down, can utilize other memories to replace this memory, when controller breaks down, can utilize other controllers to take over memory under this controller that breaks down, thereby the redundancy of device level is provided in the storage area network of video monitoring system, has realized when memory and controller equiment damage, not needing manually to carry out more exchange device, effectively evaded the existing problem of prior art.
Description of drawings
Fig. 1 is the networking structure figure of storage area network in the video monitoring system in the prior art.
Fig. 2 is the storage area network networking diagram in one embodiment of the present invention.
Fig. 3 is the structural representation of one embodiment of the present invention controller and memory.
Fig. 4 is storage area network networking diagram in the another embodiment of the present invention.
Fig. 5 enables the schematic diagram that host node behind the RRPP blocks secondary interface in one embodiment of the present invention.
Fig. 6 enables the schematic diagram that host node behind the RRPP is enabled secondary interface in one embodiment of the present invention.
Fig. 7 is the schematic diagram of realizing the first situation that the whole network is taken in the embodiment of the invention;
Fig. 8 is the schematic diagram of realizing the second situation that the whole network is taken in the embodiment of the invention;
Fig. 9 is the schematic diagram of realizing the third situation that the whole network is taken in the embodiment of the invention;
Figure 10 is the schematic diagram of realizing the 4th kind of situation that the whole network is taken in the embodiment of the invention;
Figure 11 is another storage area network networking diagram of the embodiment of the invention.
Embodiment
Describe the present invention below in conjunction with accompanying drawing.The problem that the NVR reliability is low in the prior art is embodied in following 2 points: at first, NVR often makes as a whole physical equipment, (breaking down such as memory) needs to replace in case certain parts breaks down, and then may cause the whole NVR of replacement of user's needs, and such maintenance cost is too high; Secondly, if the NVR of fault is recoverable, such as change a disk, this need administrative staff safeguard to the scene with, such processing needs the time first, two change at disk and may cause business to be affected before finishing, even interrupt.The present invention significantly promotes its reliability in the controlling mechanism that NVR introduces annular networking and correspondence.The invention provides a kind of new NVR, this NVR comprises controller and memory.Wherein memory adopts the networking of Ethernet annular, and each memory on the looped network is by the processor operation looped network agreement of self, such as popular RRPP agreement.Memory and controller move corresponding controlling mechanism simultaneously, so that when controller breaks down, can utilize other controllers to take over the memory of this NVR; Same reason, when memory broke down, the controller of this NVR can be asked the storage resources on other memories.
Introduce preferred implementation of the present invention below in conjunction with accompanying drawing.Please refer to Fig. 2 and Fig. 3, in one embodiment, together networking of a plurality of NVR, wherein each NVR includes controller and memory.Memory and controller both can be designed as a whole physical equipment service externally were provided, certainly separate design physically.Please refer to Fig. 2, storage area network comprises 3 NVR, wherein the memory of each NVR links to each other with the second inner network interface of controller by the first inner network interface of self, also link to each other by network interface on the ring of network interface on the first ring of self and the upper network interface of the second ring and neighbours' memory simultaneously, to realize annular networking shown in Figure 2.
Please refer to Fig. 3, in one embodiment of the present invention, NVR comprises controller and memory.Wherein memory comprises first processor, and controller comprises the second processor.The first inner network interface of memory is connected to the second inner network interface a of controller by Ethernet.Described memory comprises inner network interface card 1, wherein should comprise exchange chip by inside network interface card 2, and this exchange chip connects respectively three network interface a/b/c, is used for carrying out between network interface message switching.In preferred embodiment, memory and controller be respectively by power module 1 and power module 2 power supplies of self inside, and power module 1 and power module 2 all have simultaneously supply paths of the inner network interface card 1 of arrival and 2.When any one broke down when controller or memory, inner network interface card 1 and inner network interface card 2 still can work, and the forwarding of message can not be interrupted.Such as fault has occured in memory, because inner network interface card 1 can also obtain power supply from the power module 2 as stand-by power supply, therefore it can guarantee that still message repeating is normal between three network interfaces of a/b/c, that is controller still can with looped network on other memory communication, vice versa.
Please further with reference to figure 4, comprise altogether 4 memories and 4 controllers in the network environment of this execution mode, wherein memory 4 is shelf storage, and controller 4 is spare controller.Need to prove that in actual application, shelf storage can only be set in the annular networking of storage or spare controller only is set, the present invention does not limit this.In above-mentioned networking, being connected between controller and the memory can be that transmission control protocol (TCP) connects, and also can be that iSCSI connects.As previously mentioned, each memory in the looped network has all been enabled rapid ring protection protocol (RRPP) function.The looped network agreement can realize by software, moved by the first processor of memory.After adopting two layers of Ethernets composition RRPP ring, pre-configured host node can be set to its secondary network interface obstruction (Block) state, allow protocol massages by and do not allow data message to pass through, data message can only be transmitted to a direction like this, thereby can not produce broadcast storm.Host node can be regularly sends probe messages (protocol massages a kind of) from the major network mouth, and probe messages can be transmitted the final secondary network interface that arrives self along looped network.If certain node or link failure in the RRPP ring, host node can can't be received probe messages within the time of appointment, and host node can be set to secondary network interface forwarding (UP) state this moment again, thereby guarantees that data message can continue to transmit by new path.Please refer to Fig. 5 and Fig. 6 is working mechanism's schematic diagram of RRPP.With reference to Fig. 5, memory 1 is host node, and when all memories did not all break down in the looped network, memory 1 blocked its secondary network interface, data flow such as shown in this Fig; With reference to Fig. 6, when memory 2 broke down, memory 1 was set to the UP state with secondary network interface, data flow such as shown in this Fig.
After above basic condition builds, controller and memory can adopt distinctive discovery mechanism, adapter between realizing mutually and the mechanism of being taken over, this process mainly relies on the processor on memory and the controller to move corresponding software and realizes.Memory finds that fault has occured the controller of this NVR, and it can ask other controllers to take over this memory; Otherwise controller is found the memory of this NVR fault has been occured, and this means that controller has lost storage resources, and it can ask on the looped network other memories to accept its management as its new storage resources.Because the existence of the redundancy scheme of looped network, any memory or controller break down, and the controller that it is corresponding or memory still can be finished by looped network and take over and the processing of being taken over.Below introduce after memory or controller break down, under the control of self processor, take over and 4 kinds of concrete situations that quilt is taken over.
Situation 1, memory break down, and controller uses the shelf storage in the looped network; Please refer to Fig. 7, if memory 1 breaks down, when having shelf storage, for example, memory 4 is shelf storage, then takes over memory 4 by controller 1, replaces memory 1 as the new storage resources of controller 1 by memory 4.
Situation 2, controller break down, and the request spare controller is taken over; Please refer to Fig. 8, if controller 1 breaks down, when there being spare controller, for example, controller 4 is spare controller, then takes over memory 1 by controller 4, and storage service can be processed by controller 4 again on the memory 1 like this.
Situation 3, memory breaks down, and the existing memory of controller request is as new storage resources; Please refer to Fig. 9, do not have shelf storage in the network environment, after memory 1 broke down, controller 1 can send resource request to other memories in the network, can be shared by controller 1 and controller 2 such as memory 2;
Situation 4, controller breaks down, and uses existing controller to take over; Please refer to Figure 10, do not have spare controller in the network environment, after controller 1 breaks down, take over by other controllers of looped network request, memory 1 can be taken over such as controller 2 and come, business datum still can deposit in the memory 1 by controller 2.
It should be noted that at first that in above-mentioned four kinds of situations if memory or controller participate in annular networking as specific installation, then its in-house network calorie requirement comprises that at least two network interfaces are to support annular networking.Initialized the time, the IP address of controller and memory can also can be obtained by modes such as DHCP automatically by keeper's manual configuration, specifically please refer to situation about disposing among Figure 11.Communication is all in same two layers of network segment inside between whole each memory of rear end NVR and the control.When equipment normally moves, only need in NVR, set up TCP connection or iSCSI and connect, foundation is connected with the TCP of memory 1 in inside such as controller 1.After the TCP connection established, memory 1 conduct is memory independently, as long as the Command encapsulate that controller 1 will be read and write is delivered to memory 1 in Transmission Control Protocol.When controller 1 broke down, other controllers just can connect to replace controller 1 by looped network and memory 1.Certainly the service application aspect can be done some optimization processes so that the adapter process is more smooth-going, but this is not the present embodiment outline.In the present embodiment, pay close attention to the adapter of network and transportation level with taken over.Below describe a better adapter and taken over machine-processed implementation procedure, it adopts proprietary protocol to realize.
The first step: memory 1 is found the TCP disconnecting between itself and the controller 1, this moment, memory 1 can think that fault has occured controller 1, so memory 1 form by the broadcasting packet carrying in network sends request adapter notice, the content of this notice can vividly describe for: I am memory 1, my IP address is 2.2.2.101, I need a new controller to take over me, and former controller address is 2.2.2.1;
Second step: controller 2 judges according to pre-defined rule whether needs are carried out this adapter task for it after receiving this notice, if it is after notice is taken in the request that receives storage, memory 1 is responded accordingly, the content of this response can vividly describe for: I am controller 2, and my address is 2.2.2.2;
The 3rd step: set up TCP between controller 2 and the memory 1 and be connected, adapter is finished.
When memory breaks down, for example memory 1 breaks down, TCP disconnecting between controller 1 and the memory 1, controller 1 is learnt memory 1 fault, because the characteristic of RRPP ring net, although storage failure, as previously mentioned, owing to optimize the existence of power supply mechanism, usually can not affect the connectivity of whole looped network.At this moment, controller 1 sends the request resource notice with the form of broadcasting packet carrying, and the content of this notice is: I am controller 1, and my address is 2.2.2.1, and I need the memory that storage resources can be provided.Suppose that this moment, looped network built-in storage 4 was shelf storage, rule (preferential such as shelf storage) according to prior agreement judges whether self need to respond this notice, if it is memory 4 is responded controller 1: I am memory 4, and my IP address is 2.2.2.104; Setting up at last the TCP connection between memory 4 and controller 1 gets final product.
For situation 1 and situation 4, the idiographic flow how to connect between controller and memory can be realized with reference to above processing procedure, specifically repeats no more.Need to prove, except setting up TCP is connected, can also set up iSCSI and connect between controller and the memory.When setting up the TCP connection, memory is only as the simple equipment that memory space is provided, and the RAID function realizes at controller.When setting up iSCSI and connect, can be so that memory be more independent, need this moment memory to have independently the functions such as RAID card, it has been equivalent to finish the process of Storage Virtualization.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (9)

1. network video machine NVR, this NVR comprises controller and memory, it is characterized in that:
Described controller comprises the first inner network interface, and described memory comprises the second inner network interface, and this controller is connected the described first inner network interface and is connected inner network interface and connects with memory;
This memory also comprises on first processor, the first inner network interface card, the first ring network interface and the upper network interface of the second ring, and network interface and the upper network interface of the second ring link to each other with adjacent memory respectively and realize the annular networking of Ethernet on this first ring; The described first inner network interface card comprises exchange chip, and this exchange chip is connected to network interface and the upper network interface of the second ring on first processor, the second inner network interface, the first ring; Wherein this first processor is further used for moving the Ethernet ring protection agreement, and when judging described controller failure, the request of transmission is taken over notice so that other controller is taken over this memory;
Described controller also comprises the second inner network interface card and the second processor that links to each other with the described second inner network interface, and this second processor is used for when judging described storage failure, sends request resource and notifies to obtain other memories as management object.
2. NVR as claimed in claim 1 is characterized in that, described memory also comprises the first power module, is used for to described memory power supply; Described controller comprises the second source module, is used for to described controller power supply; Described the first power module has the supply path that arrives the second inner network interface card, and described second source module has the supply path that arrives the first inner network interface card.
3. NVR as claimed in claim 1 is characterized in that, described first processor is further used for that notice is taken in request and is carried in the broadcasting packet and sends.
4. NVR as claimed in claim 1 is characterized in that, described the second processor is further used for request resource notice is carried in the broadcasting packet and sends.
5. NVR as claimed in claim 1, described first processor are further used for when receiving the request resource notice, according to preset rules judge self whether needs as the management object of correspondence, if respond this notice.
6. NVR as claimed in claim 1, described the second processor are further used for when notice is taken in the request of receiving, according to preset rules judge self whether needs as the adapter controller of correspondence, if respond this notice.
7. NVR as claimed in claim 1 is characterized in that, described first processor and the second processor are used for setting up TCP between memory and controller; Perhaps
Described memory also comprises polylith disk and RAID module, and this RAID module is used for using described polylith disk to create the RAID array, and described first processor and the second processor are used for setting up iSCSI and connect between memory and controller.
8. NVR as claimed in claim 5 is characterized in that,
First processor is further used for determining that controller breaks down when finding that described TCP connection or iSCSI connect disconnection;
The second processor is further used for determining described storage failure when finding that described TCP connection or iSCSI connect disconnection.
9. NVR as claimed in claim 1 is characterized in that, described looped network agreement is the RRPP agreement.
CN201210589705.2A 2012-12-28 2012-12-28 A kind of network video recorder Active CN102984490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210589705.2A CN102984490B (en) 2012-12-28 2012-12-28 A kind of network video recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210589705.2A CN102984490B (en) 2012-12-28 2012-12-28 A kind of network video recorder

Publications (2)

Publication Number Publication Date
CN102984490A true CN102984490A (en) 2013-03-20
CN102984490B CN102984490B (en) 2015-11-25

Family

ID=47858183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210589705.2A Active CN102984490B (en) 2012-12-28 2012-12-28 A kind of network video recorder

Country Status (1)

Country Link
CN (1) CN102984490B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159846A (en) * 2015-07-02 2015-12-16 浙江宇视科技有限公司 Method for supporting dual-control switching of virtualized disk and storage system
CN105847147A (en) * 2016-03-17 2016-08-10 浙江宇视科技有限公司 Data transmission method and device
CN111526331A (en) * 2020-04-17 2020-08-11 浙江大华技术股份有限公司 Cascade networking method and cascade networking system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056254A (en) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 An expansion method, system and device of network storage device
CN101122877A (en) * 2006-08-10 2008-02-13 富士通株式会社 Duplex system and processor switching method
US20120047302A1 (en) * 2010-08-23 2012-02-23 Inventec Corporation Storage system
CN102664757A (en) * 2012-04-25 2012-09-12 浙江宇视科技有限公司 Cascading method and equipment for storage devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122877A (en) * 2006-08-10 2008-02-13 富士通株式会社 Duplex system and processor switching method
CN101056254A (en) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 An expansion method, system and device of network storage device
US20120047302A1 (en) * 2010-08-23 2012-02-23 Inventec Corporation Storage system
CN102664757A (en) * 2012-04-25 2012-09-12 浙江宇视科技有限公司 Cascading method and equipment for storage devices

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159846A (en) * 2015-07-02 2015-12-16 浙江宇视科技有限公司 Method for supporting dual-control switching of virtualized disk and storage system
CN105159846B (en) * 2015-07-02 2020-01-14 浙江宇视科技有限公司 Method and storage system for supporting double-control switching of virtualized disk
CN105847147A (en) * 2016-03-17 2016-08-10 浙江宇视科技有限公司 Data transmission method and device
CN105847147B (en) * 2016-03-17 2019-04-30 浙江宇视科技有限公司 A kind of transmission method and device of data
CN111526331A (en) * 2020-04-17 2020-08-11 浙江大华技术股份有限公司 Cascade networking method and cascade networking system
CN111526331B (en) * 2020-04-17 2021-08-03 浙江大华技术股份有限公司 Cascade networking method and cascade networking system

Also Published As

Publication number Publication date
CN102984490B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN101640644B (en) Method and equipment for flow equilibrium based on flexible link group
JP4527447B2 (en) Network relay device and control method thereof
US7756118B2 (en) Video switching system utilizing a prioritized common network
CN105429883B (en) The long connection method of multiple smart machines and server apparatus and smart machine
CN105607590B (en) Method and apparatus to provide redundancy in a process control system
JP5187249B2 (en) Redundant system connection recovery device, method and processing program
CN102006184B (en) Management method, device and network device of stack link
CN102299846B (en) Method for transmitting BFD (Bidirectional Forwarding Detection) message and equipment
CN102724030A (en) Stacking system with high reliability
US10581697B2 (en) SDN controlled PoE management system
CN103684716A (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN101854283A (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN102307137B (en) Method and device for transmitting and receiving management message, stacked switchboard and switchboard system
WO2014169557A1 (en) Interface switching method and device
CN102984490A (en) Network video recorder
JP5974911B2 (en) Communication system and network relay device
CN104394012B (en) Cluster routers, MPU and its failure determination method, sensing controller
CN111585791B (en) Data synchronization configuration method, system and storage medium
US10659251B2 (en) Ring protection network division
US20190268235A1 (en) Method for managing network nodes and communication control method thereof
CN102255741A (en) Subscriber service information backup method and device
CN106304241A (en) A kind of data transmission method, transponder and gateway
TWI396089B (en) System for using multi-channels to transmit serial data according to arguments and method thereof
CN107438032B (en) A kind of method and device of VRRP load balancing
CN105704422B (en) A kind of video conference group network system and its method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant