CN104486589A - Assess method and device of GVRP-based video monitoring system - Google Patents

Assess method and device of GVRP-based video monitoring system Download PDF

Info

Publication number
CN104486589A
CN104486589A CN201410826502.XA CN201410826502A CN104486589A CN 104486589 A CN104486589 A CN 104486589A CN 201410826502 A CN201410826502 A CN 201410826502A CN 104486589 A CN104486589 A CN 104486589A
Authority
CN
China
Prior art keywords
headend equipment
nvr
area network
local area
message
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
CN201410826502.XA
Other languages
Chinese (zh)
Other versions
CN104486589B (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 CN201410826502.XA priority Critical patent/CN104486589B/en
Publication of CN104486589A publication Critical patent/CN104486589A/en
Application granted granted Critical
Publication of CN104486589B publication Critical patent/CN104486589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an access method and device of a GVRP-based video monitoring system. The method is applied to a network hard disk video tape recorder NVR and comprises the following steps: receiving an access request of a user terminal, querying a port number distributed to a to-be-accessed front-end device and a virtual local area network number, sending the queried port number to the user terminal, receiving an access message of the user terminal, adding the virtual local area network number to the access message, transmitting the access message with the virtual local area network number to a switch, receiving a reply message of the to-be-monitored front-end device forwarded by a GVRP-based trunk port corresponding to the virtual local area network number of the switch, transmitting the reply message to the user terminal, wherein the reply message carries the virtual local area network number. The assess method and the access device can be implemented without the need of participation of CPU of the NVR, so that the load of the CPU is alleviated; the service processing rate of the NVR is also increased.

Description

Based on the access method in the video monitoring system of GVRP and device
Technical field
The present invention relates to network communication technology field, particularly relate to based on the access method in the video monitoring system of GVRP and device.
Background technology
Along with the development of the network communications technology, make high Qinghua, two developing directions that networking becomes existing video monitoring system.
In prior art, video monitoring system mainly utilizes the network hard disk video recorder of web camera (IP Camera, IPC) and double netcard (Network Video Recorder, NVR) to realize.Access process in this video monitoring system is: NVR distributes transmission control protocol (Transmission Control Protocol respectively for each IPC, TCP) port numbers, when user terminal needs to conduct interviews to certain IPC, such as, when this IPC is configured or is safeguarded, click IPC corresponding in user interface to connect, then obtaining NVR is the tcp port number that this IPC distributes, and send access message to NVR, after NVR receives access message, need net association (the Internet Protocol destination address of monitoring message being revised as Intranet IPC, IP) address, destination slogan replaces with the port numbers for maintain configuration of IPC, source address is replaced with the IP address of internal network of NVR simultaneously, source port number replaces with the Intranet port numbers of NVR, when IPC returns reply message, NVR is responsible for carrying out reverse replacement to the address of this reply message, namely destination address replaces with the IP address of internal network of NVR, destination slogan is replaced with the Intranet port numbers of NVR, source address is replaced with the IP address of Intranet IPC simultaneously, source port number replaces with the port numbers for maintain configuration of IPC.
But in above-mentioned access process, need NVR to make agency mechanism, the address being each message is replaced, and replace each time and all will generate CPU and interrupt, thus bring very large load to the CPU of NVR, also reduce the speed of NVR process business.
Summary of the invention
The invention provides based on the access method in the video monitoring system of GVRP and device, NVR is needed to be that the address of each message is replaced to solve in prior art, and replace each time and all will generate CPU and interrupt, thus bring very large load to the CPU of NVR, also reduce the problem of the speed of NVR process business.
According to the first aspect of the embodiment of the present invention, there is provided a kind of based on the access method in the video monitoring system of GVRP, described method is applied on network hard disk video recorder NVR, described NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, and described method comprises:
Receive the access request of user terminal, described access request carries the device identification of headend equipment to be visited;
According to described device identification inquiry from the port numbers of distributing as described headend equipment to be visited and virtual local area network No., and the described port numbers inquired is sent to described user terminal;
Receive the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited;
Described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch;
Receive the reply message that described switch utilizes the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No.;
According to the second aspect of the embodiment of the present invention, there is provided a kind of based on the access means in the video monitoring system of GVRP, described application of installation is on network hard disk video recorder NVR, described NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, and described device comprises:
First transmission unit, for receiving the access request of user terminal, described access request carries the device identification of headend equipment to be visited;
Query unit, for inquiring about the port numbers and virtual local area network No. of certainly distributing as described headend equipment to be visited according to described device identification, and is sent to described user terminal by the described port numbers inquired;
Second transmission unit, for receiving the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited;
Adding device, for described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch;
3rd transmission unit, the reply message of the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number is utilized for receiving described switch, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No..
According to the third aspect of the embodiment of the present invention, provide a kind of video monitoring system based on GVRP, described system comprises: each headend equipment of the user terminal of outer net, network hard disk video recorder NVR, switch and Intranet; Described NVR one end is connected with the user terminal of described outer net, and the other end is connected with each headend equipment of described Intranet by described switch;
Wherein, described NVR is for receiving the access request of user terminal, and described access request carries the device identification of headend equipment to be visited; According to described device identification inquiry from the port numbers of distributing as described headend equipment to be visited and virtual local area network No., and the described port numbers inquired is sent to described user terminal; Receive the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch; Receive the reply message that described switch utilizes the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No.;
Described headend equipment to be visited utilizes the access message of the described user terminal forwarded with the trunk port based on GVRP corresponding to virtual net local number for receiving described switch, described access message carries the virtual local area network No. corresponding with described headend equipment to be visited, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Generate according to described access message and reply message, and described virtual local area network No. is added in described reply message; Local socket is started according to the outer net IP address of described NVR and the port numbers of described headend equipment to be visited, and according to described local socket, the reply message carrying described virtual local area network No. is sent to described switch, to make described switch utilize with the trunk port based on GVRP corresponding to described virtual net local number by described reply message repeating to described NVR, and by described NVR by described reply message transmission to described user terminal.
The application embodiment of the present invention, mutual message between the headend equipment of the user terminal of outer net and the to be monitored of Intranet all carries corresponding wireless local network No., only need this interaction message of exchange chip transparent transmission of NVR, do not need the participation of the CPU of NVR, thus alleviate the load of CPU, also improve the speed of NVR process business.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of the access method in the video monitoring of application embodiment of the present invention GVRP;
Fig. 2 is an embodiment flow chart of the access method that the present invention is based in the video monitoring system of GVRP;
Fig. 3 is another embodiment flow chart of the access method that the present invention is based in the video monitoring system of GVRP;
Fig. 4 is a kind of hardware structure diagram of the access means place equipment that the present invention is based in the video monitoring system of GVRP;
Fig. 5 is an embodiment block diagram of the access means that the present invention is based in the video monitoring system of GVRP;
Fig. 6 is another embodiment block diagram of the access means that the present invention is based in the video monitoring system of GVRP.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, for applying the application scenarios schematic diagram of the access method in the video monitoring system of embodiment of the present invention GVRP:
A kind of group-network construction based on the video monitoring system of general virtual local network log-on protocol (GARP VLANRegi stration Protocol, GVRP) has been shown in Fig. 1.Wherein, GARP Chinese is: Generic Attribute Registration Protocol, and English is: Gener ic Attr ibute Regi strationProtocol.As shown in the figure, each headend equipment of NVR, the user terminal of outer net, switch and Intranet should be comprised based on video monitoring system of GVRP.This NVR one end is connected with the user terminal of outer net, and the other end is connected with each headend equipment of Intranet by switch.Wherein, outer net also can be described as public network, and Intranet also can be described as private network.
Each headend equipment of Intranet can be web camera (IP Camera, IPC), NVR can be the equipment of double netcard, user terminal can be various smart mobile phone, panel computer or personal computer (Personal Computer, etc., and be applicable in all embodiments of the present invention PC).
Each headend equipment of Intranet can gather video data, and video data is converted to compressed bit stream, and by switch, compressed bit stream is transmitted to NVR.And after NVR receives the compressed bit stream of headend equipment, can the video corresponding to this compressed bit stream store, preview, playback or forwarding etc., namely by NVR, can watch simultaneously, browse, playback, management, the multiple IPC of storage video data.
In the embodiment of the present invention, the user terminal of outer net needs each headend equipment directly monitoring Intranet, such as, each headend equipment is configured or maintenance etc., in order to reduce the load of the CPU of NVR, the exchange chip of NVR can be utilized to carry out transparent transmission to the mutual message between the user terminal of outer net and each headend equipment of Intranet, namely the mutual message between the user terminal of outer net and each headend equipment of Intranet all carries a virtual local area network No. corresponding with described headend equipment, making between the user terminal of outer net and each headend equipment of Intranet can direct communication, and do not need the process of the CPU of NVR, thus alleviate the load of the CPU of NVR, improve the speed of the process business of NVR.
Be described in detail below in conjunction with the embodiment of accompanying drawing to video monitoring of the present invention.
See Fig. 2, for the present invention is based on an embodiment flow chart of the access method in the video monitoring system of GVRP, this embodiment is described from NVR side, this NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, said method comprising the steps of:
Step 210: the access request receiving user terminal, this access request carries the device identification of headend equipment to be monitored.Wherein, device identification can be the identity card of headend equipment to be monitored, for distinguishing different headend equipments.
In the present embodiment, the access request object of user terminal informs NVR, and the user terminal of outer net needs directly to access the headend equipment of the Intranet corresponding to device identification, needs the port numbers knowing this headend equipment.
In addition, can realizing in the following manner of the access request of user terminal, specific as follows:
(the User Interface of user terminal, UI) interface is presented to the icon of each headend equipment that user terminal can be accessed, when certain headend equipment to be monitored of Intranet directly accessed by the user terminal needs of outer net, access request can be sent in the mode clicking the icon corresponding to headend equipment to be visited to NVR.Wherein, the icon corresponding to headend equipment to be visited can be the device identification of this headend equipment to be visited.
Step 220: according to device identification inquiry from the port numbers of distributing as headend equipment to be visited and virtual local area network No., and the port numbers inquired is sent to user terminal.
In the present embodiment, NVR is in advance for each headend equipment of Intranet distributes a port numbers and a virtual local area network No., and the IP address of this port numbers and virtual local area network No. and headend equipment is relation one to one, also can be the relation mapped.When the port numbers of distributing for headend equipment to be visited is sent to user terminal by NVR, user terminal using the destination slogan of this port numbers as the access message for headend equipment to be visited, thus can realize the message interaction with headend equipment to be visited.
Step 230: the access message receiving user terminal.The destination address of this access message is the outer net IP address of NVR, and the destination slogan of access message is the port numbers of headend equipment to be visited.Wherein, this access message may be used for being configured headend equipment to be visited or safeguarding.
In the present embodiment, the source address of access message is the IP address of user terminal, and source port number is the port numbers of user terminal.
Step 240: the virtual local area network No. distributed for headend equipment to be visited is added in access message, and will the access message transmission of virtual local area network No. be carried to switch, utilize to make switch and will access message repeating headend equipment extremely to be visited with the trunk port based on GVRP corresponding to virtual net local number.
In the present embodiment, the virtual local area network No. distributed for headend equipment to be visited is added to the mark that this access message directly can be stamped the VLAN corresponding to headend equipment to be visited by the exchange chip referring to NVR in access message, after switch receives the access message stamping VLAN tag, directly utilize the main line corresponding to this VLAN tag (trunk) port by access message repeating to headend equipment to be visited.
Step 250: desampler utilizes the reply message of the headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to virtual net local number, and will reply message transmission to user terminal.Wherein, reply message and carry virtual local area network No..
In the present embodiment, the return information that headend equipment to be visited returns also can stamp VLAN tag, after switch receives the reply message stamping VLAN tag, directly utilize the main line corresponding to this VLAN tag (trunk) port will reply message repeating and again this return information is passed through user terminal to NVR, NVR.
Optionally, in the above-described embodiments, before the user terminal of outer net and headend equipment to be visited carry out message interaction, NVR also needs to set up transmission control protocol (Transmi ssionControl Protocol with each headend equipment, TCP) connect, describedly to comprise based on the access method in GVRP video monitoring system:
(1) be each headend equipment assignment of port numbers and virtual local area network No., make the IP address of headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding.
In the present embodiment, each headend equipment can be marked by port numbers, and port numbers only has integer, and range of port number is from 0 to 65535.Wherein, 0 to 1023 is stiff end slogan, and 1024 to 65535 is dynamic end slogan, is each headend equipment assignment of port numbers, thus sets up the mapping relations of the IP address of port numbers and headend equipment in the present invention in the scope of dynamic end slogan.Such as: a NVR can access 16 headend equipments, then port numbers can be distributed to this 16 headend equipments successively from 1026 to 1041, make NVR just can distinguish different headend equipments by " port numbers that the outer net IP address+NVR of NVR distributes for this headend equipment ".
NVR distributes a port numbers respectively for each headend equipment, as shown in table 1.
Table 1
When user terminal chooses the icon of certain headend equipment to be visited in user interface, just can inform the port numbers that this icon of user terminal is corresponding, and the TCP that this port numbers can be used corresponding connects and headend equipment to be visited carries out message interaction.Such as: the port numbers that NVR distributes to headend equipment to be visited is 1040, then when user clicks the icon of this IPC headend equipment to be visited, will directly application target port numbers be 1040 TCP connection carried out message interaction.That is, when user accesses certain port of NVR, just can by connecting access message transmission on headend equipment to be visited corresponding to this port based on the TCP of port numbers.
In addition, each headend equipment also can be marked by virtual local area network No..Wherein, VLAN (Virtual LAN, VLAN) network physically interconnected logically is divided into multiple mutual incoherent network, cannot communication between different networks, just look like mutually between do not connect the same.A VLAN is exactly a broadcast domain, and wherein, the packet that a certain member of vlan sends by switch can only issue other member of same VLAN, and can not issue the equipment beyond this member of vlan.
In the present invention, NVR is each headend equipment distribution vlan number, as shown in table 2.
Table 2
The corresponding vlan number of an above-mentioned headend equipment, the access message of user terminal is stamped the virtual local area network No. corresponding to headend equipment to be visited, and by two layers of forwarding capability of the bottom chip of Layer2 switching and NVR by the access message transmission of virtual local area network No. that carries corresponding to headend equipment to be visited to headend equipment to be visited.
Wherein, refer to can by analyzing the topological structure carrying out learning network from the source address of the input package of all connected network for Layer2 switching.Such as, Layer2 switching receives the packet of host A by circuit 1, then think can reach host A by the network be connected on circuit 1, and by such learning process, Layer2 switching just can set up a routing table, as shown in table 3.
Table 3
Host MAC address Port numbers
1111.1111.1111 1
2222.2222.2222 1
3333.3333.3333 2
4444.4444.4444 3
1bcd.1234.cdfa 1
The basis that Layer2 switching can adopt above-mentioned routing table to forward as data packet transmission.When Layer2 switching is from one of them port accepts to a packet, it searches routing table according to the destination address of packet, if have the corresponding relation of certain port in destination address and bridge in routing table, packet will be forwarded away by corresponding port, otherwise packet is forwarded away by other ports all except receiving port.
Therefore, Layer2 switching is successfully separated by the transfer of data of network segment inside, thus correspondingly reduces visible volume of transmitted data on each network segment, so just can improve user's visible network response time, does not need the intervention process of CPU.
(2) to switch GVRP message, this GVRP message carries virtual local area network No., to make switch set up the trunk port based on GVRP according to this virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between NVR and headend equipment.
In the present embodiment, GVRP is the one application of GAPP.After NVR distributes vlan number for each headend equipment, then send GVRP message to switch, include the vlan number of distribution.After switch receives GVRP message, set up main line (trunk) port according to this vlan number, namely allow corresponding this vlan number of port trunk, the port of this vlan number of all trunk can allow to come in and go out with the message of the label of this VLAN.In the present invention, NVR and headend equipment all can inform by sending GVRP message the vlan number that the physical port trunk being connected self has distributed by switch, namely notify that this port allows to pass through with the message of the label of this vlan number, clean culture mutual between NVR and this headend equipment, broadcast, the trunk port based on GVRP that the message of multicast only can have been set up by switch are transmitted.
(3) port numbers and virtual local area network No. are sent to the headend equipment corresponded by switch.
Further alternative, in the above-described embodiments, describedly also to comprise based on the access method in the video monitoring system of GVRP:
The outer net IP address of self is sent to each headend equipment by switch, generates socket with the port numbers making headend equipment distribute according to the outer net IP address of NVR and NVR, and carry out message interaction according to the user terminal of socket and outer net.
In the present embodiment, the outer net IP address of self can be sent to each headend equipment with the form of clean culture by NVR, make port numbers generation socket (socket) that headend equipment distributes with the NVR received according to the outer net IP address of the NVR received, this socket comprises the outer net IP address of NVR and the port numbers of NVR distribution, and for carrying out message interaction with the user terminal of outer net.
As seen from the above-described embodiment, NVR in this embodiment the wireless local network No. distributing to headend equipment to be visited is added to outer net user terminal send in the access message of headend equipment to be visited, and the Detection Information this being carried wireless local network No. is pass-through to switch, do not need the participation of the CPU of NVR, thus alleviate the load of CPU, also improve the speed of NVR process business.
See Fig. 3, for the present invention is based on another embodiment flow chart of the access method in the video monitoring system of GVRP, this embodiment is described from headend equipment to be visited, this headend equipment to be visited is connected with one end of switch, and the other end of switch is connected with the user terminal of outer net by NVR, described method comprises, and said method comprising the steps of:
Step 310: desampler utilizes the access message of the user terminal forwarded with the trunk port based on GVRP corresponding to virtual net local number.Wherein, access message carries the virtual local area network No. corresponding with headend equipment to be visited, and the destination address of access message is the outer net IP address of NVR, and the destination slogan of access message is the port numbers of headend equipment to be visited.
Step 320: generate according to the access message received and reply message, and the virtual local area network No. that NVR distributes is added in reply message.
In the present embodiment, reply message and only stamp the VLAN tag corresponding with headend equipment to be visited, the switch receiving this return information just can be made to utilize the main line corresponding to this VLAN tag (trunk) port will reply message repeating and again this return information to be passed through user terminal to NVR, NVR.
Step 330: start local socket according to the outer net IP address of NVR and the port numbers of headend equipment to be visited, and according to local socket, the reply message carrying virtual local area network No. is sent to switch, utilize to make switch and will reply message repeating to NVR with the trunk port based on GVRP corresponding to virtual net local number, and message transmission will be replied to user terminal by NVR.
In the present embodiment, local socket comprises the outer net IP address of NVR and the port numbers of NVR distribution, and for carrying out message interaction with the user terminal of outer net.
Optionally, in the above-described embodiments, before the user terminal of outer net and headend equipment to be visited carry out message interaction, headend equipment also needs to set up TCP with NVR and is connected, and described access comprises based on the access method in the video monitoring system of GVRP:
(1) port numbers that the NVR that desampler forwards distributes and virtual local area network No., and by port numbers and virtual local area network No., set up relation one to one with the IP address of self.
Such as, headend equipment is headend equipment 1, port numbers that this headend equipment 1 distributes that to be 192.168.0.13, NVR be in its IP address and vlan number are respectively 1040 and 0, then the one-to-one relationship of the IP address of this headend equipment 1, the port numbers of distributing and virtual local area network No. is as shown in table 4.
Table 4
Headend equipment title IP address Port numbers Vlan number
Headend equipment 1 192.168.0.13 1040 0
(2) general virtual local network log-on protocol GVRP message is sent to switch, this GVRP message carries virtual local area network No., to make switch set up the trunk port based on GVRP according to virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between NVR and headend equipment.
In the present embodiment, headend equipment receive NVR distribute port numbers and vlan number after, the vlan number that the physical port trunk connecting self has distributed by switch can be informed by sending GVRP message, namely notify that this port allows to pass through with the message of the label of this vlan number, clean culture mutual between NVR and this headend equipment, broadcast, the trunk port based on GVRP that the message of multicast only can have been set up by switch are transmitted.
Further alternative, in the above-described embodiments, describedly also to comprise based on the access method in the video monitoring system of GVRP:
The outer net IP address of the NVR that desampler forwards, and generate socket according to the port numbers that outer net IP address and the NVR of NVR distribute, and carry out message interaction according to the user terminal of socket and outer net.
In the present embodiment, the socket of above-mentioned generation comprises the outer net IP address of NVR and the port numbers of NVR distribution, and for carrying out message interaction with the user terminal of outer net.
As seen from the above-described embodiment, the wireless local network No. distributing to self adds to by the headend equipment to be visited in this embodiment replys in message, and the reply message this being carried wireless local network No. sends switch, and utilized by switch and will reply message repeating to NVR with the trunk port based on GVRP corresponding to virtual net local number, message transmission will be replied to user terminal again by NVR, the participation of the CPU of NVR is not needed in this process, thus alleviate the load of CPU, also improve the speed of NVR process business.
Corresponding based on the access method embodiment in the video monitoring system of GVRP with aforementioned, present invention also offers the embodiment based on the access means in the video monitoring system of GVRP.
The embodiment that the present invention is based on the access means in the video monitoring system of GVRP can be applied on network devices.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view, as shown in Figure 4, for the present invention is based on a kind of hardware structure diagram of the access means place equipment in the video monitoring system of GVRP, except the processor shown in Fig. 4, network interface, internal memory and nonvolatile memory, in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message; May be also distributed equipment from this equipment of hardware configuration, multiple interface card may be comprised, to carry out the expansion of Message processing at hardware view.
See Fig. 5, for the present invention is based on an embodiment block diagram of the access means in the video monitoring system of GVRP, described device can be applied on network hard disk video recorder NVR, described NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, and described device comprises: the first transmission unit 51, query unit 52, second transmission unit 53, adding device 54 and the 3rd transmission unit 55.
Wherein, the first transmission unit 51 is for receiving the access request of user terminal, and described access request carries the device identification of headend equipment to be visited.
The described port numbers inquired for inquiring about the port numbers and virtual local area network No. of certainly distributing as described headend equipment to be visited according to described device identification, and is sent to described user terminal by query unit 52.
Second transmission unit 53 is for receiving the access message of described user terminal, and the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited.
Adding device 54 is for adding in described access message by described virtual local area network No., and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch.
3rd transmission unit 55 utilizes the reply message of the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number for receiving described switch, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No..
In an optional implementation, described device can also comprise: allocation units, the 4th transmission unit and the 5th transmission unit (not marking in Fig. 5).
Wherein, allocation units are used for, for each headend equipment assignment of port numbers described and virtual local area network No., making the IP address of described headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding.
4th transmission unit is used for sending general virtual local network log-on protocol GVRP message to described switch, described GVRP message carries virtual local area network No., to make described switch set up the trunk port based on GVRP according to described virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment.
5th transmission unit is used for described port numbers and virtual local area network No. to be sent to the headend equipment corresponded by described switch.
In another optional implementation, described device can also comprise: the 6th transmission unit (not marking in Fig. 5).
Wherein, 6th transmission unit is used for the outer net IP address of self to be sent to each headend equipment by described switch, generate socket with the port numbers making described headend equipment distribute according to the outer net IP address of described NVR and described NVR, and carry out message interaction according to the user terminal of described socket and described outer net.
See Fig. 6, for the present invention is based on another embodiment block diagram of the access means in the video monitoring system of GVRP, described device can be applied on headend equipment to be visited, described headend equipment to be visited is connected with one end of switch, the other end of described switch is connected with the user terminal of outer net by NVR, and described device comprises: the first transmission unit 61, adding device 62 and start unit 63.
Wherein, first transmission unit 61 utilizes the access message of the described user terminal forwarded with the trunk port based on GVRP corresponding to virtual net local number for receiving described switch, described access message carries the virtual local area network No. corresponding with described headend equipment to be visited, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited.
Adding device 62 replys message for generating according to described access message, and is added in described reply message by described virtual local area network No..
Start unit 63 is for starting local socket according to the outer net IP address of described NVR and the port numbers of described headend equipment to be visited, and according to described local socket, the reply message carrying described virtual local area network No. is sent to switch, to make described switch utilize with the trunk port based on GVRP corresponding to described virtual net local number by described reply message repeating to described NVR, and by described NVR by described reply message transmission to described user terminal.
In an optional implementation, described device can also comprise: the second transmission unit and the 3rd transmission unit (not marking in Fig. 6).
The port numbers that second transmission unit distributes for the described NVR receiving described switch and forward and virtual local area network No., and by described port numbers and virtual local area network No., set up relation one to one with the IP address of self.
3rd transmission unit is used for sending general virtual local network log-on protocol GVRP message to described switch, described GVRP message carries virtual local area network No., to make described switch set up the trunk port based on GVRP according to described virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment.
In another optional implementation, described device can also comprise: the 4th transmission unit (not marking in Fig. 6).
Wherein, 4th transmission unit is for receiving the outer net IP address of the described NVR of described switch forwarding, and generate socket according to the port numbers that outer net IP address and the described NVR of described NVR distribute, and carry out message interaction according to the user terminal of described socket and described outer net.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As seen from the above-described embodiment, in this embodiment the user terminal of outer net and the to be visited of Intranet headend equipment between mutual message all carry corresponding wireless local network No., only need this mutual message of exchange chip transparent transmission of NVR, do not need the participation of the CPU of NVR, thus alleviate the load of CPU, also improve the speed of NVR process business.
The embodiment of the present invention also provides a kind of video monitoring system based on GVRP, and this system comprises: each headend equipment of the user terminal of outer net, network hard disk video recorder NVR, switch and Intranet.
Wherein, described NVR one end is connected with the user terminal of described outer net, and the other end is connected with each headend equipment of described Intranet by described switch.
Described NVR is for receiving the access request of user terminal, and described access request carries the device identification of headend equipment to be visited; According to described device identification inquiry from the port numbers of distributing as described headend equipment to be visited and virtual local area network No., and the described port numbers inquired is sent to described user terminal; Receive the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch; Receive the reply message that described switch utilizes the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No..
Described headend equipment to be visited utilizes the access message of the described user terminal forwarded with the trunk port based on GVRP corresponding to virtual net local number for receiving described switch, described access message carries the virtual local area network No. corresponding with described headend equipment to be visited, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Generate according to described access message and reply message, and described virtual local area network No. is added in described reply message; Local socket is started according to the outer net IP address of described NVR and the port numbers of described headend equipment to be visited, and according to described local socket, the reply message carrying described virtual local area network No. is sent to described switch, to make described switch utilize with the trunk port based on GVRP corresponding to described virtual net local number by described reply message repeating to described NVR, and by described NVR by described reply message transmission to described user terminal.
Alternatively, described NVR also for being each headend equipment assignment of port numbers described and virtual local area network No., makes the IP address of described headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding; Send GVRP message to described switch, described GVRP message carries virtual local area network No.; And, the port numbers that the described NVR that described headend equipment also forwards for receiving described switch distributes and virtual local area network No., and send GVRP message to described switch, described GVRP message carries virtual local area network No.; And, described switch sends the trunk port of GVRP message foundation based on GVRP of GVRP message and the transmission of described headend equipment according to described NVR, and the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment.
Further alternatively, described NVR is also for being sent to each headend equipment by the outer net IP address of self by described switch; And, described headend equipment receives the outer net IP address of the described NVR that described switch forwards, and generate socket according to the port numbers that outer net IP address and the described NVR of described NVR distribute, and message interaction can be carried out with the user terminal of described outer net according to described socket.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (9)

1. one kind based on the access method in the video monitoring system of general virtual local network log-on protocol GVRP, it is characterized in that, described method is applied on network hard disk video recorder NVR, described NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, and described method comprises:
Receive the access request of user terminal, described monitoring request carries the device identification of headend equipment to be visited;
According to described device identification inquiry from the port numbers of distributing as described headend equipment to be visited and virtual local area network No., and the described port numbers inquired is sent to described user terminal;
Receive the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited;
Described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch;
Receive the reply message that described switch utilizes the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No..
2. method according to claim 1, is characterized in that, described method also comprises:
For each headend equipment assignment of port numbers described and virtual local area network No., make the IP address of described headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding;
GVRP message is sent to described switch, described GVRP message carries virtual local area network No., to make described switch set up the trunk port based on GVRP according to described virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment;
Described port numbers and virtual local area network No. are sent to the headend equipment corresponded by described switch.
3. method according to claim 2, is characterized in that, described method also comprises:
The outer net IP address of self is sent to each headend equipment by described switch, generate socket with the port numbers making described headend equipment distribute according to the outer net IP address of described NVR and described NVR, and carry out message interaction according to the user terminal of described socket and described outer net.
4. one kind based on the access means in the video monitoring system of GVRP, it is characterized in that, described application of installation is on network hard disk video recorder NVR, and described NVR one end is connected with the user terminal of outer net, the other end is connected with each headend equipment of Intranet by switch, and described device comprises:
First transmission unit, for receiving the access request of user terminal, described access request carries the device identification of headend equipment to be visited;
Query unit, for inquiring about the port numbers and virtual local area network No. of certainly distributing as described headend equipment to be visited according to described device identification, and is sent to described user terminal by the described port numbers inquired;
Second transmission unit, for receiving the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited;
Adding device, for described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch;
3rd transmission unit, the reply message of the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number is utilized for receiving described switch, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No..
5. device according to claim 4, is characterized in that, described device also comprises:
Allocation units, for being each headend equipment assignment of port numbers described and virtual local area network No., make the IP address of described headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding;
4th transmission unit, for sending general virtual local network log-on protocol GVRP message to described switch, described GVRP message carries virtual local area network No., to make described switch set up the trunk port based on GVRP according to described virtual local area network No., the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment;
5th transmission unit, for being sent to described port numbers and virtual local area network No. the headend equipment corresponded by described switch.
6. device according to claim 5, is characterized in that, described device also comprises:
6th transmission unit, for the outer net IP address of self is sent to each headend equipment by described switch, generate socket with the port numbers making described headend equipment distribute according to the outer net IP address of described NVR and described NVR, and carry out message interaction according to the user terminal of described socket and described outer net.
7. based on a video monitoring system of GVRP, it is characterized in that, described system comprises: each headend equipment of the user terminal of outer net, network hard disk video recorder NVR, switch and Intranet; Described NVR one end is connected with the user terminal of described outer net, and the other end is connected with each headend equipment of described Intranet by described switch;
Wherein, described NVR is for receiving the access request of user terminal, and described access request carries the device identification of headend equipment to be visited; According to described device identification inquiry from the port numbers of distributing as described headend equipment to be visited and virtual local area network No., and the described port numbers inquired is sent to described user terminal; Receive the access message of described user terminal, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Described virtual local area network No. is added in described access message, and the access message transmission that will carry described virtual local area network No. is to described switch, to utilize described access message repeating with the trunk port based on GVRP corresponding to described virtual net local number to described headend equipment to be visited to make described switch; Receive the reply message that described switch utilizes the described headend equipment to be visited forwarded with the trunk port based on GVRP corresponding to described virtual net local number, and by described reply message transmission to described user terminal, described reply message carries virtual local area network No.;
Described headend equipment to be visited utilizes the access message of the described user terminal forwarded with the trunk port based on GVRP corresponding to virtual net local number for receiving described switch, described access message carries the virtual local area network No. corresponding with described headend equipment to be visited, the destination address of described access message is the outer net IP address of described NVR, and the destination slogan of described access message is the port numbers of described headend equipment to be visited; Generate according to described access message and reply message, and described virtual local area network No. is added in described reply message; Local socket is started according to the outer net IP address of described NVR and the port numbers of described headend equipment to be visited, and according to described local socket, the reply message carrying described virtual local area network No. is sent to described switch, to make described switch utilize with the trunk port based on GVRP corresponding to described virtual net local number by described reply message repeating to described NVR, and by described NVR by described reply message transmission to described user terminal.
8. system according to claim 7, is characterized in that, described NVR also for being each headend equipment assignment of port numbers described and virtual local area network No., makes the IP address of described headend equipment, the port numbers of distributing and virtual local area network No. one_to_one corresponding; Send GVRP message to described switch, described GVRP message carries virtual local area network No.;
And, the port numbers that the described NVR that described headend equipment also forwards for receiving described switch distributes and virtual local area network No., and send GVRP message to described switch, described GVRP message carries virtual local area network No.;
And, described switch sends the trunk port of GVRP message foundation based on GVRP of GVRP message and the transmission of described headend equipment according to described NVR, and the described trunk port based on GVRP can forward the message carrying described virtual local area network No. between described NVR and described headend equipment.
9. system according to claim 8, is characterized in that, described NVR is also for being sent to each headend equipment by the outer net IP address of self by described switch;
And, described headend equipment receives the outer net IP address of the described NVR that described switch forwards, and generate socket according to the port numbers that outer net IP address and the described NVR of described NVR distribute, and message interaction can be carried out with the user terminal of described outer net according to described socket.
CN201410826502.XA 2014-12-25 2014-12-25 Access method and device in video monitoring system based on GVRP Active CN104486589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410826502.XA CN104486589B (en) 2014-12-25 2014-12-25 Access method and device in video monitoring system based on GVRP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410826502.XA CN104486589B (en) 2014-12-25 2014-12-25 Access method and device in video monitoring system based on GVRP

Publications (2)

Publication Number Publication Date
CN104486589A true CN104486589A (en) 2015-04-01
CN104486589B CN104486589B (en) 2017-11-03

Family

ID=52761088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410826502.XA Active CN104486589B (en) 2014-12-25 2014-12-25 Access method and device in video monitoring system based on GVRP

Country Status (1)

Country Link
CN (1) CN104486589B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634903A (en) * 2015-12-31 2016-06-01 深圳市磊科实业有限公司 NVR and IPC port corresponding method
CN106534794A (en) * 2016-11-30 2017-03-22 浙江宇视科技有限公司 Video monitoring system remote control method and device
CN106817439A (en) * 2017-02-10 2017-06-09 武汉卓威视讯科技有限公司 A kind of method for obtaining MAC Address
CN107959898A (en) * 2017-12-05 2018-04-24 无锡路通视信网络股份有限公司 A kind of method that OLT identifies connected ONU legitimacies
CN108924165A (en) * 2018-08-24 2018-11-30 北京和利时工业软件有限公司 A kind of Intranet remote access method and its device and Intranet gateway
CN109995482A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN111083234A (en) * 2019-12-30 2020-04-28 武汉佰钧成技术有限责任公司 Camera system and data uploading and issuing method
CN113194162A (en) * 2021-04-28 2021-07-30 浙江宇视科技有限公司 Data transmission method, device, electronic equipment and medium
US20210243131A1 (en) * 2020-01-30 2021-08-05 Arris Enterprises Llc SYSTEM TO ENABLE END TO END QoS-LOW LATENCY-PRIORITIZATION FOR NAT ENABLED NETWORKS
CN114286054A (en) * 2021-12-27 2022-04-05 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040136388A1 (en) * 2002-12-26 2004-07-15 Schaff Glen D. Video-monitor/recording/playback system
CN101778264A (en) * 2010-02-11 2010-07-14 北京众和汇智科技有限公司 Video monitoring method and video monitoring system
CN103237092A (en) * 2013-04-02 2013-08-07 浙江宇视科技有限公司 Method and device for accessing private network hard disk video recorder
CN103716589A (en) * 2013-12-26 2014-04-09 浙江宇视科技有限公司 Method and device for reducing NVR live forwarding relay

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040136388A1 (en) * 2002-12-26 2004-07-15 Schaff Glen D. Video-monitor/recording/playback system
CN101778264A (en) * 2010-02-11 2010-07-14 北京众和汇智科技有限公司 Video monitoring method and video monitoring system
CN103237092A (en) * 2013-04-02 2013-08-07 浙江宇视科技有限公司 Method and device for accessing private network hard disk video recorder
CN103716589A (en) * 2013-12-26 2014-04-09 浙江宇视科技有限公司 Method and device for reducing NVR live forwarding relay

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634903B (en) * 2015-12-31 2019-03-22 深圳市磊科实业有限公司 A kind of port corresponding method of NVR and IPC
CN105634903A (en) * 2015-12-31 2016-06-01 深圳市磊科实业有限公司 NVR and IPC port corresponding method
CN106534794A (en) * 2016-11-30 2017-03-22 浙江宇视科技有限公司 Video monitoring system remote control method and device
CN106817439A (en) * 2017-02-10 2017-06-09 武汉卓威视讯科技有限公司 A kind of method for obtaining MAC Address
CN107959898A (en) * 2017-12-05 2018-04-24 无锡路通视信网络股份有限公司 A kind of method that OLT identifies connected ONU legitimacies
CN109995482A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN108924165A (en) * 2018-08-24 2018-11-30 北京和利时工业软件有限公司 A kind of Intranet remote access method and its device and Intranet gateway
CN111083234A (en) * 2019-12-30 2020-04-28 武汉佰钧成技术有限责任公司 Camera system and data uploading and issuing method
US20210243131A1 (en) * 2020-01-30 2021-08-05 Arris Enterprises Llc SYSTEM TO ENABLE END TO END QoS-LOW LATENCY-PRIORITIZATION FOR NAT ENABLED NETWORKS
US11743197B2 (en) * 2020-01-30 2023-08-29 Arris Enterprises Llc System to enable end to end QoS-low latency-prioritization for NAT enabled networks
CN113194162A (en) * 2021-04-28 2021-07-30 浙江宇视科技有限公司 Data transmission method, device, electronic equipment and medium
CN114286054A (en) * 2021-12-27 2022-04-05 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN114286054B (en) * 2021-12-27 2023-10-27 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera

Also Published As

Publication number Publication date
CN104486589B (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN104486589A (en) Assess method and device of GVRP-based video monitoring system
US20230074913A1 (en) Managing Virtual Networks of Virtual Machines Using Telecommunications Infrastructure Systems
US8767737B2 (en) Data center network system and packet forwarding method thereof
CN103931144B (en) A kind of method, apparatus and system communicated in virtual Domain
CN102594711A (en) Message forwarding method and edge device therefor
CN104869063A (en) Host route processing method in virtual subnet, related devices and communication system
JP2016540448A (en) Virtual extended LAN communication method, apparatus, and system
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN103401952A (en) Configuring communication between computing nodes
CN101001264B (en) Method, device, network edge equipment and addressing server for L1VPN address distribution
CN103404084A (en) MAC address forced forwarding device and method
US10313302B2 (en) Methods for NAT (network address translation) traversal and systems using the same
CN109005252A (en) A kind of IPv6 address generating method, equipment, system and the medium of fictitious host computer
CN102724101A (en) Message forwarding method and message forwarding system, and relay agent device
CN105306368A (en) Data message transmission method and device
CN104539902A (en) IPC remote access method and system
CN103503413A (en) Method and device for transmitting network information
US20150381560A1 (en) Logical interface encoding
CN105812221A (en) Data transmission device and method in virtual extensible local area network
CN106878419A (en) A kind of efficient Method of printing of desktop cloud based on tunnel and system
CN104506405B (en) The method and device of cross-domain access
CN105323128A (en) Method, device and system for connecting front-end device to server
CN104539752A (en) Access method and system between multiple level domain platforms
CN105979405A (en) Method and device for accessing video device
CN102571817A (en) Method and device for accessing application 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