CN104486589B - Access method and device in video monitoring system based on GVRP - Google Patents
Access method and device in video monitoring system based on GVRP Download PDFInfo
- Publication number
- CN104486589B CN104486589B CN201410826502.XA CN201410826502A CN104486589B CN 104486589 B CN104486589 B CN 104486589B CN 201410826502 A CN201410826502 A CN 201410826502A CN 104486589 B CN104486589 B CN 104486589B
- Authority
- CN
- China
- Prior art keywords
- message
- headend equipment
- nvr
- gvrp
- interchanger
- 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.)
- Active
Links
Abstract
The present invention provides access method and device in the video monitoring system based on GVRP, and methods described is applied on network hard disk video recorder NVR, and methods described includes:Receive the access request of user terminal, inquired about according to device identification from the port numbers and virtual local area network No. distributed as headend equipment to be visited, and send the port numbers inquired to user terminal, receive the access message of user terminal, virtual local area network No. is added in access message, and the access message transmission of virtual local area network No. will be carried to interchanger, desampler utilizes the reply message with the headend equipment to be monitored of the forwarding of the trunk port based on GVRP corresponding to virtual net local number, and message transmission will be replied to user terminal, reply message and carry virtual local area network No..NVR CPU participation can not be needed using the embodiment of the present invention, so as to alleviate CPU load, the speed of NVR processing business is also improved.
Description
Technical field
The present invention relates to network communication technology field, more particularly to the access method in video monitoring system based on GVRP
And device.
Background technology
With the development of the network communications technology so that high Qinghua, networking two as existing video monitoring system is big
Development trend.
In the prior art, video monitoring system mainly utilizes web camera (IP Camera, IPC) and the net of double netcard
Network DVR (Network Video Recorder, NVR) is realized.Access process in the video monitoring system is:
NVR is that each IPC distributes transmission control protocol (Transmission Control Protocol, TCP) port numbers respectively, when
When user terminal needs to conduct interviews to some IPC, such as, when the IPC is configured or safeguarded, it is right in user interface to click on
The IPC connections answered, then it is the TCP port number that the IPC is distributed to obtain NVR, and sends access message to NVR, and NVR receives access
, it is necessary to which the net that the destination address of monitoring message is revised as into Intranet IPC assists (Internet Protocol, IP) address after message,
Destination slogan replaces with the IPC port numbers for being used to safeguard configuration, while source address is replaced with to NVR IP address of internal network,
Source port number replaces with NVR Intranet port numbers, when IPC, which is returned, replys message, and NVR is responsible for entering the address of the reply message
Row is reverse to be replaced, i.e., destination address replaces with NVR IP address of internal network, and destination slogan is replaced with to NVR Intranet port numbers,
Source address is replaced with to Intranet IPC IP address simultaneously, source port number replaces with the IPC port numbers for being used to safeguard configuration.
But, it is necessary to which NVR makees agency mechanism in above-mentioned access process, the address of as each message is replaced,
And replacement each time will generate a CPU interruption, so that the CPU to NVR brings very big load, also reduce at NVR
The speed of reason business.
The content of the invention
The present invention provides access method and device in the video monitoring system based on GVRP, to solve to need in the prior art
The address for wanting NVR to be each message is replaced, and replacement each time will generate a CPU interruption, so as to NVR's
CPU brings very big load, the problem of also reducing the speed of NVR processing business.
There is provided the access side in a kind of video monitoring system based on GVRP for first aspect according to embodiments of the present invention
Method, methods described is applied on network hard disk video recorder NVR, and described NVR one end is connected with the user terminal of outer net, the other end
It is connected by interchanger with each headend equipment of Intranet, methods described includes:
The access request of user terminal is received, the access request carries the device identification of headend equipment to be visited;
Inquired about according to the device identification from the port numbers and virtual office distributed as the headend equipment to be visited
Domain network No., and the port numbers inquired are sent to the user terminal;
Receive the access message of the user terminal, the destination address of the access message for the NVR outer net IP
Location, the destination slogan of the access message is the port numbers of the headend equipment to be visited;
The virtual local area network No. is added in the access message, and the visit that the virtual local area network No. will be carried
Message transmission is asked to the interchanger so that the interchanger utilize with corresponding to the virtual net local number based on GVRP's
The access message is forwarded to the headend equipment to be visited by trunk port;
The interchanger is received to utilize and the forwarding of the trunk port based on GVRP corresponding to the virtual net local number
The reply message of the headend equipment to be visited, and by the message transmission of replying to the user terminal, the reply report
Text carries virtual local area network No.;
There is provided a kind of dress of the access in video monitoring system based on GVRP for second aspect according to embodiments of the present invention
Put, described device is applied on network hard disk video recorder NVR, and described NVR one end is connected with the user terminal of outer net, the other end
It is connected by interchanger with each headend equipment of Intranet, described device includes:
First transmission unit, the access request for receiving user terminal, the access request carry it is to be visited before
The device identification of end equipment;
Query unit, for being inquired about according to the device identification from the end distributed as the headend equipment to be visited
Slogan and virtual local area network No., and the port numbers inquired are sent to the user terminal;
Second transmission unit, the access message for receiving the user terminal, the destination address of the access message is
The outer net IP address of the NVR, the destination slogan of the access message is the port numbers of the headend equipment to be visited;
Adding device, for the virtual local area network No. to be added in the access message, and will carry the void
Intend the access message transmission of local network No. to the interchanger, so that the interchanger utilizes right with the virtual net local number institute
The access message is forwarded to the headend equipment to be visited by the trunk port based on GVRP answered;
3rd transmission unit, for receive the interchanger utilize with corresponding to the virtual net local number based on GVRP
Trunk port forwarding the headend equipment to be visited reply message, and by the reply message transmission to the user
Terminal, the reply message carries virtual local area network No..
There is provided a kind of video monitoring system based on GVRP, the system bag for the third aspect according to embodiments of the present invention
Include:The user terminal of outer net, network hard disk video recorder NVR, each headend equipment of interchanger and Intranet;Described NVR one end with
The user terminal of the outer net is connected, and the other end is connected by the interchanger with each headend equipment of the Intranet;
Wherein, the NVR is used for the access request for receiving user terminal, and the access request carries front end to be visited
The device identification of equipment;Inquired about according to the device identification from the port numbers distributed as the headend equipment to be visited and
Virtual local area network No., and the port numbers inquired are sent to the user terminal;Receive the access of the user terminal
Message, the destination address of the access message is the outer net IP address of the NVR, and the destination slogan of the access message is institute
State the port numbers of headend equipment to be visited;The virtual local area network No. is added in the access message, and will be carried
The access message transmission of the virtual local area network No. is to the interchanger, so that the interchanger is utilized and the virtual net local
The access message is forwarded to the headend equipment to be visited by the trunk port based on GVRP corresponding to number;Receive described
Interchanger utilizes the front end to be visited with the forwarding of the trunk port based on GVRP corresponding to the virtual net local number
The reply message of equipment, and by the reply message transmission to the user terminal, the reply message carries virtual local area
Network No.;
The headend equipment to be visited be used for receive the interchanger utilize with corresponding to virtual net local number based on
GVRP trunk port forwarding the user terminal access message, the access message carry with it is described it is to be visited before
The corresponding virtual local area network No. of end equipment, the destination address of the access message is the outer net IP address of the NVR, the access
The destination slogan of message is the port numbers of the headend equipment to be visited;Message is replied according to the access message generation,
And the virtual local area network No. is added in the reply message;According to the outer net IP address of the NVR and described to be visited
The port numbers of headend equipment start local socket, and the virtual local area network No. will be carried according to the local socket
Reply message send to the interchanger so that the interchanger utilize with corresponding to the virtual net local number based on
The reply message is forwarded to the NVR by GVRP trunk port, and by the NVR by the reply message transmission to described
User terminal.
Using the embodiment of the present invention, the mutual message between the user terminal of outer net and the headend equipment to be monitored of Intranet
All carry corresponding wireless local network No., it is only necessary to NVR exchange chip transparent transmission interaction message, it is not necessary to NVR CPU's
Participate in, so as to alleviate CPU load, also improve the speed of NVR processing business.
Brief description of the drawings
Fig. 1 be using GVRP of the embodiment of the present invention video monitoring in access method application scenarios schematic diagram;
Fig. 2 is one embodiment flow chart of the access method in the video monitoring system based on GVRP of the invention;
Fig. 3 is another embodiment flow chart of the access method in the video monitoring system based on GVRP of the invention;
Fig. 4 is a kind of hardware configuration of equipment where the access mechanism in the video monitoring system based on GVRP of the invention
Figure;
Fig. 5 is one embodiment block diagram of the access mechanism in the video monitoring system based on GVRP of the invention;
Fig. 6 is another embodiment block diagram of the access mechanism in the video monitoring system based on GVRP of the invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 1, the application scenarios for the access method in application GVRP of embodiment of the present invention video monitoring system show
It is intended to:
Shown in Fig. 1 a kind of based on general virtual local network log-on protocol (GARP VLAN Regi stration
Protocol, GVRP) video monitoring system group-network construction.Wherein, GARP Chinese is:Generic Attribute Registration Protocol, English
For:Gener ic Attr ibute Regi stration Protocol.As illustrated, should the video monitoring system based on GVRP
System includes each headend equipment of NVR, the user terminal of outer net, interchanger and Intranet.The NVR one end and the user terminal of outer net
It is connected, the other end is connected by interchanger with each headend equipment of Intranet.Wherein, outer net is alternatively referred to as public network, Intranet
Alternatively referred to as private network.
Each headend equipment of Intranet can be web camera (IP Camera, IPC), and NVR can setting for double netcard
It is standby, user terminal can for various smart mobile phones, tablet personal computer or personal computer (Personal Computer, PC) etc., and
Suitable for all embodiments of the present invention.
Each headend equipment of Intranet can gather video data, and convert video data to compressed bit stream, Yi Jitong
Cross interchanger and compressed bit stream is transmitted to NVR., can be to the compressed bit stream and NVR is received after the compressed bit stream of headend equipment
Corresponding video is stored, preview, playback or forwarding etc., i.e., by NVR, can simultaneously watch, browse, play back, manage, deposit
Store up multiple IPC video data.
In the embodiment of the present invention, the user terminal of outer net needs directly to monitor each headend equipment of Intranet, such as, to each
Individual headend equipment configured or safeguarded, for the CPU that reduces NVR load, it is possible to use NVR exchange chip is to outer net
User terminal and Intranet each headend equipment between mutual message carry out the user terminal and Intranet of transparent transmission, i.e. outer net
Mutual message between each headend equipment all carries a virtual local area network No. corresponding with the headend equipment so that outer
Between the user terminal of net and each headend equipment of Intranet can with direct communication, without NVR CPU processing so that
NVR CPU load is alleviated, the speed of NVR processing business is improved.
The embodiment to video monitoring of the present invention is described in detail below in conjunction with the accompanying drawings.
It is one embodiment flow chart of the access method in the video monitoring system of the invention based on GVRP referring to Fig. 2,
The embodiment is described from NVR sides, and the NVR one end is connected with the user terminal of outer net, and the other end passes through interchanger and interior
Each headend equipment of net is connected, and the described method comprises the following steps:
Step 210:Receive the access request of user terminal, the equipment that the access request carries headend equipment to be monitored
Mark.Wherein, device identification can be the identity card of headend equipment to be monitored, the different headend equipment for distinguishing.
In the present embodiment, the access request purpose of user terminal is to inform NVR, and the user terminal of outer net is needed to equipment mark
The headend equipment for knowing corresponding Intranet directly access, it is necessary to know the port numbers of the headend equipment.
In addition, being accomplished by the following way for the access request of user terminal, specific as follows:
Each front end that user terminal can be accessed is presented on (User Interface, UI) interface of user terminal
The icon of equipment, can be with point when the user terminal of outer net needs directly to access some headend equipment to be monitored of Intranet
The mode for hitting the icon corresponding to headend equipment to be visited sends access request to NVR.Wherein, headend equipment to be visited institute
Corresponding icon can be the device identification of the headend equipment to be visited.
Step 220:Inquired about according to device identification from the port numbers and virtual office distributed as headend equipment to be visited
Domain network No., and the port numbers inquired are sent to user terminal.
In the present embodiment, NVR is in advance each headend equipment distribution a port number of Intranet and a VLAN
Number, the IP address of the port numbers and virtual local area network No. and headend equipment is one-to-one relation or mapping
Relation.When NVR sends the port numbers distributed by headend equipment to be visited to user terminal, user terminal can be by the end
Slogan is as the destination slogan for accessing message for headend equipment to be visited, so as to realize and headend equipment to be visited
Message interaction.
Step 230:Receive the access message of user terminal.The destination address of the access message is NVR outer net IP address,
The destination slogan for accessing message is the port numbers of headend equipment to be visited.Wherein, the access message can be used for treating visit
The headend equipment asked is configured or safeguarded.
In the present embodiment, the source address for accessing message is the IP address of user terminal, and source port number is the end of user terminal
Slogan.
Step 240:The virtual local area network No. distributed by headend equipment to be visited is added in access message, and will
The access message transmission of virtual local area network No. is carried to interchanger so that interchanger utilize with corresponding to virtual net local number
Trunk port based on GVRP is forwarded to headend equipment to be visited by message is accessed.
In the present embodiment, the virtual local area network No. distributed by headend equipment to be visited is added to access message middle finger
Be that NVR exchange chip can directly stamp the access message VLAN corresponding to headend equipment to be visited
Mark, after interchanger receives the access message for stamping VLAN tag, directly utilizes the VLAN tag institute
Corresponding main line (trunk) port is forwarded to headend equipment to be visited by message is accessed.
Step 250:Desampler is utilized and the forwarding of the trunk port based on GVRP corresponding to virtual net local number
The reply message of headend equipment to be visited, and message transmission will be replied to user terminal.Wherein, message is replied to carry virtually
Local network No..
In the present embodiment, the return information that headend equipment to be visited is returned can also stamp VLAN tag, work as friendship
Change planes and receive after the reply message for stamping VLAN tag, directly utilize the main line corresponding to the VLAN tag
(trunk) port is forwarded to NVR by message is replied, and the return information is passed through user terminal by NVR again.
Optionally, in the above-described embodiments, message interaction is carried out in the user terminal and headend equipment to be visited of outer net
Before, NVR also need to each headend equipment set up transmission control protocol (Transmi ssion Control Protocol,
TCP) connect, the access method in the video monitoring system based on GVRP includes:
(1) it is each headend equipment assignment of port numbers and virtual local area network No. so that the IP address of headend equipment, distributed
Port numbers and virtual local area network No. correspond.
In the present embodiment, what each headend equipment can be marked by port numbers, port numbers only have integer, port numbers model
Enclose is from 0 to 65535.Wherein, 0 to 1023 be fixing end slogan, and 1024 to 65535 be dynamic in dynamic end slogan, the present invention
It is each headend equipment assignment of port numbers in the scope of state port numbers, so as to set up reflecting for port numbers and the IP address of headend equipment
Penetrate relation.Such as:One NVR can access 16 headend equipments, then can by port numbers from 1026 to 1041 be sequentially allocated to
16 headend equipments so that NVR can just pass through the " port that NVR outer net IP address+NVR is distributed for the headend equipment
Number " distinguish different headend equipments.
NVR is that each headend equipment distributes a port number respectively, as shown in table 1.
Table 1
When user terminal chooses the icon of some headend equipment to be visited in user interface, it is possible to inform that user is whole
The corresponding port numbers of the icon are held, and the corresponding TCP connections of the port numbers can be used to be reported with headend equipment to be visited
Text interaction.Such as:NVR is 1040 to the port numbers that headend equipment to be visited is distributed, then as user, to click on the IPC to be visited
During the icon of headend equipment, directly application target port numbers it will be 1040 TCP connections to complete message interaction.Namely
Say, when user access NVR some port when, it is possible to by the TCP connections based on port numbers will access message transmission to this
On the corresponding headend equipment to be visited in port.
In addition, what each headend equipment can also be marked by virtual local area network No..Wherein, VLAN
(Virtual LAN, VLAN) is that the network that will physically interconnect is logically divided into multiple mutually incoherent networks, different
It can not be communicated between network, just look like not connect the same from each other.One VLAN is exactly a broadcast domain, wherein,
The packet that interchanger sends a certain member of vlan can only issue same VLAN other members, without issue the VLAN into
Equipment beyond member.
In the present invention, NVR is that each headend equipment distributes vlan number, as shown in table 2.
Table 2
Said one headend equipment one vlan number of correspondence, stamps front end to be visited by the access message of user terminal and sets
Standby corresponding virtual local area network No., and be that two layers of forwarding capability of NVR bottom chip need carrying by Layer2 switching
The access message transmission of virtual local area network No. corresponding to the headend equipment of access gives headend equipment to be visited.
Wherein, Layer2 switching refers to learn by analyzing the source address of the input package from all connected networks
Practise the topological structure of network.For example, Layer2 switching receives the packet of host A by circuit 1, then it is assumed that by being connected to line
Network on road 1 can reach host A, by such learning process, and Layer2 switching is with regard to that can set up a routing table, such as table
Shown in 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 |
Layer2 switching can transmit the basis of forwarding using above-mentioned routing table as packet.When Layer2 switching therefrom
When a port receives a packet, it searches routing table according to the destination address of packet, if existed in routing table
The corresponding relation of some port in purposeful address and bridge, packet will be forwarded away by corresponding port, otherwise, number
It will be forwarded away according to bag by all other port in addition to receiving port.
Therefore, Layer2 switching is successfully separated by the data transfer inside the network segment, so as to correspondingly reduce each net
Visible volume of transmitted data in section, can thus improve user's visible network response time, it is not necessary at CPU intervention
Reason.
(2) to interchanger GVRP message, the GVRP message carries virtual local area network No., so that interchanger is virtual according to this
Local network No. sets up the trunk port based on GVRP, the trunk port based on GVRP can forward NVR and headend equipment it
Between carry the message of the virtual local area network No..
In the present embodiment, GVRP is a kind of GAPP application.After NVR is that each headend equipment distributes vlan number,
GVRP message then is sent to interchanger, the vlan number of distribution is included.Interchanger is received after GVRP message, is set up according to the vlan number
Main line (trunk) port, that is, allow corresponding port trunk vlan numbers, and the port of all trunk vlan numbers can allow band
The message for having the label of the VLAN comes in and goes out.In the present invention, NVR and headend equipment all can inform friendship by sending GVRP messages
The allocated vlan numbers of physical port trunk of itself will be connected by changing planes, that is, notify the port to allow the mark with the vlan number
The message of label passes through so that the unicast of interaction between NVR and the headend equipment, broadcast, the message of multicast can only pass through interchanger
The trunk port based on GVRP set up is transmitted.
(3) port numbers and virtual local area network No. are sent to corresponding headend equipment by interchanger.
Further alternative, in the above-described embodiments, the access method in the video monitoring system based on GVRP is also
Including:
The outer net IP address of itself is sent to each headend equipment by interchanger, so that headend equipment is according to NVR's
Outer net IP address and the port numbers generation socket of NVR distribution, and message friendship is carried out according to the user terminal of socket and outer net
Mutually.
In the present embodiment, NVR can be sent the outer net IP address of itself to each headend equipment in the form of unicast, be made
Obtain headend equipment and generate socket according to the NVR received outer net IP address and the NVR received the port numbers distributed
(socket), the socket includes NVR outer net IP address and the port numbers of NVR distribution, and for the user terminal with outer net
Carry out message interaction.
As seen from the above-described embodiment, the NVR in the embodiment will distribute to the WLAN of headend equipment to be visited
In the access message for headend equipment to be visited for number being added to the transmission of the user terminal of outer net, and this is carried wirelessly
The detection information of local network No. is pass-through to interchanger, it is not necessary to NVR CPU participation, so as to alleviate CPU load, also carries
The high speed of NVR processing business.
It is another embodiment flow of the access method in the video monitoring system of the invention based on GVRP referring to Fig. 3
Figure, the embodiment is described from headend equipment to be visited, and the headend equipment to be visited is connected with one end of interchanger,
And the other end of interchanger is connected by NVR with the user terminal of outer net, methods described includes, and methods described includes following step
Suddenly:
Step 310:Desampler is utilized and the forwarding of the trunk port based on GVRP corresponding to virtual net local number
The access message of user terminal.Wherein, access message and carry virtual local area network No. corresponding with headend equipment to be visited, visit
The destination address for asking message is NVR outer net IP address, and the destination slogan for accessing message is the end of headend equipment to be visited
Slogan.
Step 320:Message is replied in access message generation according to receiving, and the virtual local area network No. that NVR is distributed is added
It 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 interchanger for receiving the return information could be caused to be returned using main line (trunk) port corresponding to the VLAN tag
Multiple message is forwarded to NVR, and the return information is passed through user terminal by NVR again.
Step 330:Start local socket according to NVR outer net IP address and the port numbers of headend equipment to be visited,
And sent the reply message for carrying virtual local area network No. to interchanger according to local socket, so that interchanger is utilized and void
Intend the trunk port based on GVRP corresponding to net local number and be forwarded to NVR by message is replied, and message transmission will be replied by NVR
To user terminal.
In the present embodiment, the port numbers of outer net IP address and the NVR distribution of local socket including NVR, and for it is outer
The user terminal of net carries out message interaction.
Optionally, in the above-described embodiments, message interaction is carried out in the user terminal and headend equipment to be visited of outer net
Before, headend equipment, which also needs to set up TCP with NVR, is connected, the access side accessed in the video monitoring system based on GVRP
Method includes:
(1) port numbers and virtual local area network No. of the NVR distribution of desampler forwarding, and by port numbers and virtual local area
Network No. and the IP address of itself set up one-to-one relation.
Such as, headend equipment is headend equipment 1, and its IP address is 192.168.0.13, and NVR is that the headend equipment 1 is distributed
Port numbers and vlan number be respectively 1040 and 0, then the IP address of the headend equipment 1, the port numbers distributed and virtual local area
The one-to-one relationship of 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 interchanger, the GVRP message carries virtual office
Domain network No., so that interchanger sets up the trunk port based on GVRP, the main line end based on GVRP according to virtual local area network No.
Mouth can forward the message that the virtual local area network No. is carried between NVR and headend equipment.
In the present embodiment, headend equipment is received after the port numbers and vlan number of NVR distribution, can be disappeared by sending GVRP
Cease to inform that interchanger will connect the allocated vlan numbers of physical port trunk of itself, that is, notify the port allows to carry to be somebody's turn to do
The message of the label of vlan number passes through so that the unicast of interaction between NVR and the headend equipment, broadcast, the message of multicast only can
The trunk port based on GVRP set up by interchanger is transmitted.
Further alternative, in the above-described embodiments, the access method in the video monitoring system based on GVRP is also
Including:
The NVR of desampler forwarding outer net IP address, and the port distributed according to NVR outer net IP address and NVR
Number generation socket, and according to the user terminal of socket and outer net carry out message interaction.
In the present embodiment, the socket of above-mentioned generation includes NVR outer net IP address 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 headend equipment to be visited in the embodiment will distribute to the WLAN of itself
Number it is added in reply message, and the reply message for carrying wireless local network No. is sent into interchanger, and by interchanger profit
NVR is forwarded to message will be replied with the trunk port based on GVRP corresponding to virtual net local number, then report will be replied by NVR
Text is pass-through to user terminal, should during and do not need NVR CPU participation, so as to alleviate CPU load, also improve
The speed of NVR processing business.
Corresponding with the access method embodiment in the foregoing video monitoring system based on GVRP, present invention also offers base
The embodiment of access mechanism in GVRP video monitoring system.
The embodiment of access mechanism in video monitoring system of the invention based on GVRP can be using on network devices.
Device embodiment can be realized by software, can also be realized by way of hardware or software and hardware combining.It is implemented in software
Exemplified by, as the device on a logical meaning, being will be corresponding in nonvolatile memory by the processor of equipment where it
Computer program instructions read in internal memory what operation was formed.For hardware view, as shown in figure 4, being based on for the present invention
A kind of hardware structure diagram of equipment where access mechanism in GVRP video monitoring system, except the processor shown in Fig. 4, net
Outside network interface, internal memory and nonvolatile memory, it is hard that the equipment in embodiment where device can also generally include other
Part, is such as responsible for the forwarding chip of processing message;The equipment is also possible to be distributed equipment for from hardware configuration, can
Multiple interface cards can be included, to carry out the extension of Message processing in hardware view.
It is one embodiment block diagram of the access mechanism in the video monitoring system of the invention based on GVRP, institute referring to Fig. 5
Stating device can apply on network hard disk video recorder NVR, and described NVR one end is connected with the user terminal of outer net, the other end
It is connected by interchanger with each headend equipment of Intranet, described device includes:First transmission unit 51, query unit 52,
Second transmission unit 53, the transmission unit 55 of adding device 54 and the 3rd.
Wherein, the first transmission unit 51 is used for the access request for receiving user terminal, and the access request, which is carried, to be needed to be visited
The device identification for the headend equipment asked.
Query unit 52 is used to inquire about what is distributed as the headend equipment to be visited certainly according to the device identification
Port numbers and virtual local area network No., and the port numbers inquired are sent to the user terminal.
Second transmission unit 53 is used for the access message for receiving the user terminal, and the destination address of the access message is
The outer net IP address of the NVR, the destination slogan of the access message is the port numbers of the headend equipment to be visited.
Adding device 54 is used to the virtual local area network No. being added in the access message, and will carry the void
Intend the access message transmission of local network No. to the interchanger, so that the interchanger utilizes right with the virtual net local number institute
The access message is forwarded to the headend equipment to be visited by the trunk port based on GVRP answered.
3rd transmission unit 55 be used for receive the interchanger utilize with corresponding to the virtual net local number based on
The reply message of the headend equipment to be visited of GVRP trunk port forwarding, and by the reply message transmission to described
User terminal, the reply message carries virtual local area network No..
In an optional implementation, described device can also include:Allocation unit, the 4th transmission unit and the 5th
Transmission unit (is not marked) in Fig. 5.
Wherein, allocation unit is used for for each described headend equipment assignment of port numbers and virtual local area network No. so that described
The IP address of headend equipment, the port numbers distributed and virtual local area network No. are corresponded.
4th transmission unit is used to send general virtual local network log-on protocol GVRP message to the interchanger, described
GVRP message carries virtual local area network No., so that the interchanger sets up dry based on GVRP according to the virtual local area network No.
Line end mouthful, the trunk port based on GVRP can forward carried between the NVR and the headend equipment it is described virtual
The message of local network No..
5th transmission unit is used to by the interchanger send the port numbers and virtual local area network No. to phase therewith
Corresponding headend equipment.
In another optional implementation, described device can also include:6th transmission unit (is not marked in Fig. 5
Go out).
Wherein, the 6th transmission unit is used to by the interchanger send the outer net IP address of itself to each front end to set
It is standby, so that the headend equipment generates socket according to the outer net IP address of the NVR and the NVR port numbers distributed, and
Message interaction is carried out according to the user terminal of the socket and the outer net.
It is another embodiment block diagram of the access mechanism in the video monitoring system of the invention based on GVRP referring to Fig. 6,
Described device can apply on headend equipment to be visited, and the headend equipment to be visited is connected with one end of interchanger
Connect, the other end of the interchanger is connected by NVR with the user terminal of outer net, and described device includes:First transmission unit
61st, adding device 62 and start unit 63.
Wherein, the first transmission unit 61 be used for receive the interchanger utilize with corresponding to virtual net local number based on
GVRP trunk port forwarding the user terminal access message, the access message carry with it is described it is to be visited before
The corresponding virtual local area network No. of end equipment, the destination address of the access message is the outer net IP address of the NVR, the access
The destination slogan of message is the port numbers of the headend equipment to be visited.
Adding device 62 is used to reply message according to the access message generation, and the virtual local area network No. is added to
In the reply message.
Start unit 63 is used to be opened according to the outer net IP address of the NVR and the port numbers of the headend equipment to be visited
Local socket is moved, and is sent the reply message for carrying the virtual local area network No. to exchange according to the local socket
Machine, reports described reply with the trunk port based on GVRP corresponding to the virtual net local number so that the interchanger is utilized
Text is forwarded to the NVR, and by the NVR by the reply message transmission to the user terminal.
In an optional implementation, described device can also include:Second transmission unit and the 3rd transmission unit
(not marked in Fig. 6).
Second transmission unit is used for the port numbers and VLAN for receiving the NVR distribution of the interchanger forwarding
Number, and set up one-to-one relation by the port numbers and virtual local area network No., with the IP address of itself.
3rd transmission unit is used to send general virtual local network log-on protocol GVRP message to the interchanger, described
GVRP message carries virtual local area network No., so that the interchanger sets up dry based on GVRP according to the virtual local area network No.
Line end mouthful, the trunk port based on GVRP can forward carried between the NVR and the headend equipment it is described virtual
The message of local network No..
In another optional implementation, described device can also include:4th transmission unit (is not marked in Fig. 6
Go out).
Wherein, the 4th transmission unit is used for the outer net IP address for receiving the NVR of the interchanger forwarding, and according to institute
NVR outer net IP address and the port numbers generation socket of NVR distribution are stated, and according to the socket and the outer net
User terminal carries out message interaction.
The function of unit and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, in the embodiment between the user terminal of outer net and the headend equipment to be visited of Intranet
Mutual message all carry corresponding wireless local network No., it is only necessary to the NVR exchange chip transparent transmission mutual message, it is not necessary to
NVR CPU participation, so as to alleviate CPU load, also improves the speed of NVR processing business.
The embodiment of the present invention also provides a kind of video monitoring system based on GVRP, and the system includes:The user of outer net is whole
Each headend equipment at end, network hard disk video recorder NVR, interchanger and Intranet.
Wherein, described NVR one end is connected with the user terminal of the outer net, and the other end passes through the interchanger and described
Each headend equipment of Intranet is connected.
The NVR is used for the access request for receiving user terminal, and the access request carries headend equipment to be visited
Device identification;According to device identification inquiry from the port numbers distributed as the headend equipment to be visited and virtually
Local network No., and the port numbers inquired are sent to the user terminal;The access message of the user terminal is received,
The outer net IP address that the destination address for accessing message is the NVR, the destination slogan of the access message is treated to be described
The port numbers of the headend equipment of access;The virtual local area network No. is added in the access message, and will be carried described
The access message transmission of virtual local area network No. is to the interchanger, so that the interchanger is utilized and the virtual net local institute
The access message is forwarded to the headend equipment to be visited by the corresponding trunk port based on GVRP;Receive described exchange
Machine utilizes the headend equipment to be visited with the forwarding of the trunk port based on GVRP corresponding to the virtual net local number
Reply message, and by it is described reply message transmission to the user terminal, the reply message carries virtual local area network No..
The headend equipment to be visited be used for receive the interchanger utilize with corresponding to virtual net local number based on
GVRP trunk port forwarding the user terminal access message, the access message carry with it is described it is to be visited before
The corresponding virtual local area network No. of end equipment, the destination address of the access message is the outer net IP address of the NVR, the access
The destination slogan of message is the port numbers of the headend equipment to be visited;Message is replied according to the access message generation,
And the virtual local area network No. is added in the reply message;According to the outer net IP address of the NVR and described to be visited
The port numbers of headend equipment start local socket, and the virtual local area network No. will be carried according to the local socket
Reply message send to the interchanger so that the interchanger utilize with corresponding to the virtual net local number based on
The reply message is forwarded to the NVR by GVRP trunk port, and by the NVR by the reply message transmission to described
User terminal.
Alternatively, the NVR is additionally operable to as each described headend equipment assignment of port numbers and virtual local area network No. so that institute
The IP address of stating headend equipment, the port numbers distributed and virtual local area network No. are corresponded;GVRP is sent to the interchanger
Message, the GVRP message carries virtual local area network No.;And, the headend equipment is additionally operable to receive the interchanger forwarding
NVR distribution port numbers and virtual local area network No., and send GVRP message to the interchanger, the GVRP message takes
With virtual local area network No.;And, the interchanger is sent according to NVR transmission GVRP message and the headend equipment
GVRP message sets up the trunk port based on GVRP, before the trunk port based on GVRP can forward the NVR and be described
The message of the virtual local area network No. is carried between end equipment.
Still optionally further, the NVR is additionally operable to by the interchanger send the outer net IP address of itself to each
Headend equipment;And, the headend equipment receives the NVR of interchanger forwarding outer net IP address, and according to described
NVR outer net IP address and the port numbers generation socket of NVR distribution, and can be with the outer net according to the socket
User terminal carry out message interaction.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including undocumented common knowledge in the art of the invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (9)
1. a kind of access method in video monitoring system based on general virtual local network log-on protocol GVRP, its feature exists
In methods described is applied on network hard disk video recorder NVR, and described NVR one end is connected with the user terminal of outer net, the other end
It is connected by interchanger with each headend equipment of Intranet, methods described includes:
The access request of user terminal is received, the access request carries the device identification of headend equipment to be visited;
Inquired about according to the device identification from the port numbers and VLAN distributed as the headend equipment to be visited
Number, and the port numbers inquired are sent to the user terminal;
The access message of the user terminal is received, the destination address of the access message is the outer net IP address of the NVR, institute
State the port numbers for accessing the destination slogan of message for the headend equipment to be visited;
The virtual local area network No. is added in the access message, and the access report that the virtual local area network No. will be carried
Text is pass-through to the interchanger, so that the interchanger is utilized and the main line based on GVRP corresponding to the virtual net local number
The access message is forwarded to the headend equipment to be visited by port;
Receive the interchanger utilize with described in the trunk port forwarding based on GVRP corresponding to the virtual net local number
The reply message of headend equipment to be visited, and by the reply message transmission to the user terminal, the reply message is taken
With virtual local area network No..
2. according to the method described in claim 1, it is characterised in that methods described also includes:
For each described headend equipment assignment of port numbers and virtual local area network No. so that the IP address of the headend equipment, divide
The port numbers and virtual local area network No. matched somebody with somebody are corresponded;
GVRP message is sent to the interchanger, the GVRP message carries virtual local area network No., so that the interchanger root
The trunk port based on GVRP is set up according to the virtual local area network No., the trunk port based on GVRP can forward described
The message of the virtual local area network No. is carried between NVR and the headend equipment;
The port numbers and virtual local area network No. are sent to corresponding headend equipment by the interchanger.
3. method according to claim 2, it is characterised in that methods described also includes:
The outer net IP address of itself is sent to each headend equipment by the interchanger, so that the headend equipment is according to institute
NVR outer net IP address and the port numbers generation socket of NVR distribution are stated, and according to the socket and the outer net
User terminal carries out message interaction.
4. the access mechanism in a kind of video monitoring system based on GVRP, it is characterised in that it is hard that described device is applied to network
On disk video recorder NVR, described NVR one end is connected with the user terminal of outer net, the other end by interchanger and Intranet each
Headend equipment is connected, and described device includes:
First transmission unit, the access request for receiving user terminal, the access request carries front end to be visited and set
Standby device identification;
Query unit, for being inquired about according to the device identification from the port numbers distributed as the headend equipment to be visited
With virtual local area network No., and the port numbers inquired are sent to the user terminal;
Second transmission unit, the access message for receiving the user terminal, the destination address of the access message is described
NVR outer net IP address, the destination slogan of the access message is the port numbers of the headend equipment to be visited;
Adding device, for the virtual local area network No. to be added in the access message, and will carry the virtual office
The access message transmission of domain network No. to the interchanger so that the interchanger utilize with corresponding to the virtual net local number
The access message is forwarded to the headend equipment to be visited by the trunk port based on GVRP;
3rd transmission unit, is utilized and the doing based on GVRP corresponding to the virtual net local number for receiving the interchanger
The reply message of the headend equipment to be visited of line end mouthful forwarding, and the reply message transmission is whole to the user
End, the reply message carries virtual local area network No..
5. device according to claim 4, it is characterised in that described device also includes:
Allocation unit, for for each described headend equipment assignment of port numbers and virtual local area network No. so that the headend equipment
IP address, the port numbers distributed and virtual local area network No. correspond;
4th transmission unit, for sending general virtual local network log-on protocol GVRP message, the GVRP to the interchanger
Message carries virtual local area network No., so that the interchanger sets up the main line end based on GVRP according to the virtual local area network No.
Mouthful, the trunk port based on GVRP, which can be forwarded, carries the virtual local area between the NVR and the headend equipment
The message of network No.;
5th transmission unit, for the port numbers and virtual local area network No. to be sent to corresponding by the interchanger
Headend equipment.
6. device according to claim 5, it is characterised in that described device also includes:
6th transmission unit, for the outer net IP address of itself to be sent to each headend equipment by the interchanger, so that
The headend equipment generates socket according to the outer net IP address of the NVR and the NVR port numbers distributed, and according to described
The user terminal of socket and the outer net carries out message interaction.
7. a kind of video monitoring system based on GVRP, it is characterised in that the system includes:User terminal, the network of outer net
DVR NVR, interchanger and Intranet each headend equipment;Described NVR one end is connected with the user terminal of the outer net
Connect, the other end is connected by the interchanger with each headend equipment of the Intranet;
Wherein, the NVR is used for the access request for receiving user terminal, and the access request carries headend equipment to be visited
Device identification;According to device identification inquiry from the port numbers distributed as the headend equipment to be visited and virtually
Local network No., and the port numbers inquired are sent to the user terminal;The access message of the user terminal is received,
The outer net IP address that the destination address for accessing message is the NVR, the destination slogan of the access message is treated to be described
The port numbers of the headend equipment of access;The virtual local area network No. is added in the access message, and will be carried described
The access message transmission of virtual local area network No. is to the interchanger, so that the interchanger is utilized and the virtual net local institute
The access message is forwarded to the headend equipment to be visited by the corresponding trunk port based on GVRP;Receive described exchange
Machine utilizes the headend equipment to be visited with the forwarding of the trunk port based on GVRP corresponding to the virtual net local number
Reply message, and by it is described reply message transmission to the user terminal, the reply message carries virtual local area network No.;
The headend equipment to be visited be used for receive the interchanger utilize with corresponding to virtual net local number based on GVRP
Trunk port forwarding the user terminal access message, the access message is carried to be set with the front end to be visited
Standby corresponding virtual local area network No., the destination address of the access message is the outer net IP address of the NVR, the access message
Destination slogan be the headend equipment to be visited port numbers;Message is replied according to the access message generation, and will
The virtual local area network No. is added in the reply message;According to the outer net IP address of the NVR and it is described it is to be visited before
The port numbers of end equipment start local socket, and will carry returning for the virtual local area network No. according to the local socket
Multiple message is sent to the interchanger so that the interchanger utilize with corresponding to the virtual net local number based on GVRP's
The reply message is forwarded to the NVR by trunk port, and by the NVR that the reply message transmission is whole to the user
End.
8. system according to claim 7, it is characterised in that the NVR is additionally operable to distribute for each described headend equipment
Port numbers and virtual local area network No. so that the IP address of the headend equipment, the port numbers distributed and virtual local area network No. one
One correspondence;GVRP message is sent to the interchanger, the GVRP message carries virtual local area network No.;
And, the headend equipment is additionally operable to receive the port numbers and virtual local area of the NVR distribution of the interchanger forwarding
Network No., and GVRP message is sent to the interchanger, the GVRP message carries virtual local area network No.;
And, the interchanger sets up base according to the NVR GVRP message for sending GVRP message and headend equipment transmission
In GVRP trunk port, the trunk port based on GVRP can be forwarded and carried between the NVR and the headend equipment
There is the message of the VLAN number.
9. system according to claim 8, it is characterised in that the NVR is additionally operable to pass through the outer net IP address of itself
The interchanger is sent to each headend equipment;
And, the headend equipment receives the NVR of interchanger forwarding outer net IP address, and according to the NVR's
Outer net IP address and the NVR distribution port numbers generation socket, and can be with the outer net according to the socket use
Family terminal carries out message interaction.
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 CN104486589A (en) | 2015-04-01 |
CN104486589B true 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) |
Families Citing this family (10)
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 |
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 |
CN109995482B (en) * | 2017-12-29 | 2022-01-07 | 杭州海康威视系统技术有限公司 | 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 |
WO2021154515A1 (en) * | 2020-01-30 | 2021-08-05 | Arris Enterprises Llc | Method and device to enable end to end qos-low latency-prioritization for nat enabled networks |
CN113194162B (en) * | 2021-04-28 | 2023-03-14 | 浙江宇视科技有限公司 | Data transmission method, device, electronic equipment and medium |
CN114286054B (en) * | 2021-12-27 | 2023-10-27 | 苏州万店掌网络科技有限公司 | Remote debugging method, system, equipment and storage medium for network camera |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8117252B2 (en) * | 2002-12-26 | 2012-02-14 | Schaff Glen D | Video-monitor/recording/playback system |
CN101778264B (en) * | 2010-02-11 | 2012-12-26 | 北京众和汇智科技有限公司 | Video monitoring method and video monitoring system |
CN103237092B (en) * | 2013-04-02 | 2016-03-23 | 浙江宇视科技有限公司 | A kind of method and apparatus of accessing private network hard disk video recorder |
CN103716589B (en) * | 2013-12-26 | 2017-01-18 | 浙江宇视科技有限公司 | Method and device for reducing NVR live forwarding relay |
-
2014
- 2014-12-25 CN CN201410826502.XA patent/CN104486589B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104486589A (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104486589B (en) | Access method and device in video monitoring system based on GVRP | |
CN111193653B (en) | Data transmission method, device, equipment and storage medium | |
CN105721306B (en) | A kind of transmission method and device of configuration information | |
CN105025387B (en) | The method and system of IPTV intelligent terminal progress IPTV service and Internet service | |
CN103404084B (en) | MAC Address forces retransmission unit and method | |
CN105553977B (en) | Processing, sending method and the device of request message | |
CN106464564B (en) | Method, system and the computer-readable medium for encapsulating and routing for network packet | |
CN105306368B (en) | A kind of transmission method and device of data message | |
JP5855630B2 (en) | Management server and management method for managing cloud appliance of virtual local area network | |
CN103905303B (en) | Data processing method, apparatus and system after a kind of virtual machine VM across-the-wire migrations | |
CN103841037B (en) | The method and apparatus of multicast message forwarding | |
CN103118149B (en) | Communication control method between same tenant's server and the network equipment | |
CN103841023A (en) | Data forwarding method and device | |
CN106533890A (en) | Message processing method, device and system | |
CN103354566A (en) | Configuring communications between computing nodes | |
CN103944768A (en) | Providing logical networking functionality for managed computer networks | |
CN106209689B (en) | Multicast data packet forwarding method and apparatus from VXLAN to VLAN | |
CN104348724A (en) | Multi-tenant supporting data forwarding method and device | |
CN106550058A (en) | Network address translation penetration method and system using same | |
CN103763407A (en) | Method for achieving address resolution protocol proxy through two-layer virtual local area network and local area network system | |
CN104869063A (en) | Host route processing method in virtual subnet, related devices and communication system | |
CN108234518A (en) | A kind of method, apparatus, terminal and the storage medium of terminal communication | |
CN114024880A (en) | Network target range probe acquisition method and system based on proxy IP and flow table | |
CN108092923A (en) | Message processing method and device based on SR-IOV | |
CN103503413A (en) | Method and device for transmitting network information |
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 |