CN104539902A - IPC remote access method and system - Google Patents

IPC remote access method and system Download PDF

Info

Publication number
CN104539902A
CN104539902A CN201410839822.9A CN201410839822A CN104539902A CN 104539902 A CN104539902 A CN 104539902A CN 201410839822 A CN201410839822 A CN 201410839822A CN 104539902 A CN104539902 A CN 104539902A
Authority
CN
China
Prior art keywords
address
ipc
message
nvr
client host
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
CN201410839822.9A
Other languages
Chinese (zh)
Other versions
CN104539902B (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 CN201410839822.9A priority Critical patent/CN104539902B/en
Publication of CN104539902A publication Critical patent/CN104539902A/en
Application granted granted Critical
Publication of CN104539902B publication Critical patent/CN104539902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an IPC remote access method. The method comprises the steps that an NVR and a bound IPC negotiate a first IP address and a first port number, wherein the first IP address and the first port number are used for remote access; a web server establishing connection between the NVR and a client side host computer through the first IP address and the first port number; after connection is established, the NVR issues the first IP address and the first port number to the bound IPC, and after the first IP address and the first port number take effect on the bound IPC, and the web server annunciates an MAC address of the bound IPC to the client side host computer; the client side host computer sends remote access messages to an exit route device on one side of the NVR, the remote access messages comprise an MAC forwarding identification and the MAC address of the IPC to be accessed, after the exit route device on one side of the NVR receives the remote access messages, the messages are forwarded to the IPC corresponding to the MAC address when it is judged that the remote access messages carry the MAC forwarding identification. The IPC remote access method can enable the client side host computer to directly have access to the IPC.

Description

The remote access method of a kind of IPC and system
Technical field
The present invention relates to field of video monitoring, particularly relate to remote access method and the system of a kind of IPC.
Background technology
Along with the development of Network Video Surveillance, the wide area network video monitoring demand being representative with civilian video monitoring increases day by day.In wide area network video monitoring system, watch-dog is generally by soho router access carrier network, and user wishes can whenever and wherever possible by client-access watch-dog.
In wide area video general at present monitoring networking diagram, watch-dog manufacturer arranges Website server at public network, user arranges 1 NVR (Network Video Recorder at home, network hard disk video recorder) and multiple stage IPC (IP Camera, web camera), by website client end telemanagement NVR and IPC when user goes out.Wherein, Website server, website client end, NVR can belong to a watch-dog manufacturer together, realize the flow process of passing through NAT (Network Address Translation, network address translation) to cooperatively interact, user can by website client end telemanagement NVR.
But because current IPC mostly is third party device, cannot coordinate the flow process realizing passing through NAT with Website server and website client end, therefore user does not carry out telemanagement third party IPC by website client end.In order to realize allowing user by website client end remote access third party IPC, in the prior art, dereference third party IPC can be carried out by NVR, then website client end is accessed every platform IPC and is all needed to carry out transfer through NVR in this scenario, the performance pressures of NVR can be increased, and once Single Point of Faliure appears in NVR, all IPC will be caused all cannot to be accessed by website client end.
Summary of the invention
In view of this, the present invention proposes the remote access method of a kind of little IPC, is applied in video monitoring system, described video monitoring system comprise network hard disk video recorder NVR, client host, Website server and with some IPC that described NVR binds, comprising:
The IPC of NVR and binding consults to be used for providing a remote access IP address and first end slogan for client host;
Website server is connect between described NVR and described client host by a described IP address and first end slogan;
When after described connection establishment, the IPC of described binding is handed down in a described IP address and first end slogan by NVR, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Client host sends remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
The present invention also proposes the remote access system of a kind of IPC, some IPC that described system comprises NVR, client host, Website server and binds with described NVR, wherein:
NVR is used for consulting with the IPC of binding to be used for providing a remote access IP address and first end slogan for client host;
It is connect between described NVR and described client host that Website server is used for by a described IP address and first end slogan;
When after described connection establishment, NVR is further used for a IPC described IP address and first end slogan being handed down to described binding, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Client host is used for sending remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
The present invention program negotiates for providing remote access IP address and port numbers for client host by the IPC of NVR and its binding, Website server is connect between described NVR and described client host by described IP address and port numbers, after this connection establishment completes, the IPC of described binding is handed down in described IP address and port numbers by NVR, and after coming into force in described IP address and port numbers on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host, after client host receives the MAC Address of Website server notice, outlet routing device to described NVR side sends and carries the remote access message that MAC forwards the MAC Address of mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging that carrying MAC in described remote access message forwards mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.In the present invention program, owing to being replaced the connection between IPC foundation with client host by NVR, and after connection establishment success, IPC is handed down in IP address when connecting and port numbers, subsequent client main frame directly can access IPC by this IP address and port numbers, thus instant when Website server and NVR break down, also can not affect client host access IPC.
Accompanying drawing explanation
Fig. 1 is the flow chart of the remote access method of a kind of IPC shown in an exemplifying execution mode;
Fig. 2 is the networking diagram of a kind of video monitoring system scheme shown in an exemplifying execution mode;
Fig. 3 is the networking diagram of the another kind of video monitoring system scheme shown in an exemplifying execution mode;
Fig. 4 is the schematic diagram of the remote access system of a kind of IPC proposed in an exemplifying execution mode.
Embodiment
The present invention is intended to realize client host at the direct remote access IPC of far-end, thus when NVR and Website server break down, can not affect the remote access of client host to IPC yet.
The present invention program negotiates for providing remote access IP address and port numbers for client host by the IPC of NVR and its binding, Website server is connect between described NVR and described client host by described IP address and port numbers, after this connection establishment completes, the IPC of described binding is handed down in described IP address and port numbers by NVR, and after coming into force in described IP address and port numbers on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host, after client host receives the MAC Address of Website server notice, outlet routing device to described NVR side sends and carries the remote access message that MAC forwards the MAC Address of mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging that carrying MAC in described remote access message forwards mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
In the present invention program, owing to being replaced the connection between IPC foundation with client host by NVR, and after connection establishment success, IPC is handed down in IP address when connecting and port numbers, subsequent client main frame directly can access IPC by this IP address and port numbers, thus instant when Website server and NVR break down, also can not affect client host access IPC.
In order to make technical scheme of the present invention clearly understand, describe the present invention below in conjunction with the accompanying drawing embodiment that develops simultaneously.
In exemplifying a kind of execution mode, the remote access method of a kind of IPC is proposed, be applied in video monitoring system, some IPC that described video monitoring system comprises network hard disk video recorder NVR, client host, Website server and binds with described NVR, refer to Fig. 1, described method comprises:
The IPC of step S101, NVR and binding consults to be used for providing a remote access IP address and first end slogan for client host;
Step S102, Website server are connect between described NVR and described client host by a described IP address and first end slogan;
Step S103, when after described connection establishment, the IPC of described binding is handed down in a described IP address and first end slogan by NVR, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Step S104, client host send remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
Refer to Fig. 2, Fig. 2 is the networking diagram of a kind of video monitoring system scheme shown in the present embodiment, is described in detail the present invention program below in conjunction with this networking diagram.
As shown in Figure 2, described video monitoring system comprise a Website server arranged at public network by watch-dog manufacturer, NVR, a multiple stage IPC, one installed with described Website server with the use of the subscriber's main station (client host) of website client end, wherein said NVR and described IPC all supports ONVFI agreement, also arranges one respectively support two or three layers of Exit Road forwarded by device A and Exit Road by equipment B all simultaneously in NVR side and client host side.Certainly, when realizing, NVR in above video monitoring system also can use DVR (the Digital Video Recorder of network enabled function, digital video recorder) substitute, described IPC also can substitute with the analog video camera of the EC encoder and front end of supporting ONVFI agreement.
In the networking stage, logon message is sent to Website server after described NVR starts, report log-on message, wherein said log-on message comprises the information such as IP address, port numbers, device type, equipment Serial Number of NVR, Website server is after receiving the log-on message of NVR, the log-on message that NVR reports is verified, after being verified, respond the message that succeeds in registration to NVR, and record the IP address of NVR and the Exit Road of port numbers and NVR side by information such as the IP address of device A and port numbers.After succeeding in registration, NVR regularly sends keep-alive message, to maintain the connection between NVR and Website server to Website server.
Described website client end also sends logon message to Website server after starting, and report log-on message, wherein said log-on message comprises the IP address of website client end.Port numbers, user name.The information such as password, Website server is after receiving the log-on message that website client end reports, the log-on message that NVR reports is verified, after being verified, respond the message that succeeds in registration to website client end, and record the IP address of website client end and the Exit Road of port numbers and website client end side by information such as the IP address of equipment B and port numbers.After succeeding in registration, website client end sends keep-alive message, to maintain the connection between website client end and Website server to Website server equally.
After NVR succeeds in registration to Website server, can start at local binding IP C, by the information reporting of IPC bound to Website server.
Wherein, the MAC Address of IPC is generally included in the ipc message that NVR reports to Website server.The information such as device type, the MAC Address of described IPC can obtain by sending ARP message to IPC.After NVR is by the information reporting of the IPC of binding success to Website server, Website server sends a back message to NVR, and in the information such as MAC Address, device type of local record IPC.
For the IPC of binding success, NVR can enable one for providing remote access IP address (an IP address) and port numbers (first end slogan) for website client end in this locality, wherein this IP address and port numbers can be obtain after the IPC of NVR and binding consults.
NVR is that the IPC of binding success is when enabling IP address in this locality, first the IP address pool of this network segment can be obtained according to the information such as IP address, subnet mask of the machine, then from the IP address pool of this network segment, an IP address is taken out in order, object IP address using this IP address as ARP message inside, send ARP request message, if do not receive the arp response message for this ARP request message at the appointed time, show that this IP address is idle, then can enable the IP address of this free time in the machine.Certainly, if having received arp response message, then represent that this IP address is occupied, then repeat above process, again take out an IP address in order, until get an idle IP address, and enable this IP address in this locality.
NVR is when the IPC for binding success enables port numbers, first an idle port numbers can be obtained from the machine, then this port numbers is handed down to IPC, IPC checks that whether this port numbers is idle in the machine, if idle, the message that IPC responds this port numbers free time of instruction enables this port numbers to NVR, NVR receiving this message the machine; If this port is occupied, IPC responds occupied message of this port numbers of instruction to NVR, now carry the agreement of the occupied port numbers list of IPC the machine and correspondence in this message, NVR is after receiving this message, what report according to IPC uses port numbers, in conjunction with the idle port number of the machine, obtain a port numbers all idle on NVR and IPC, and in the machine, enable this port numbers.
After this port numbers is enabled, if when NVR has bound new IPC again, the situation of Bind Failed is caused to occur in order to prevent enabled port numbers from being taken by the IPC newly bound, enabled port numbers can be handed down to this IPC by NVR, this IPC checks that whether this port numbers is idle in the machine, if idle, IPC responds the message of this port numbers free time of instruction to NVR, does not now affect the normal binding of this IPC, if this port is occupied, IPC responds occupied message of this port numbers of instruction to NVR, now carry the agreement of the occupied port numbers list of IPC the machine and correspondence in this message, NVR is after receiving this message, what report according to IPC uses port numbers, obtain the idle port number on an IPC, then agreement corresponding for enabled port numbers and this idle port number are handed down to IPC, now the enabled port numbers of NVR is occupied in IPC this locality, NVR can notify that the port numbers that this has taken by IPC is revised as idle port number, thus complete normal binding.
When NVR successfully enables described for after providing remote access IP address and port numbers for website client end in this locality, Website server can be that described NVR and described website client end connect according to this IP address and port numbers.
Concrete, when user visits a certain IPC by the link that website client end provides, can trigger and send an IPC access request to Website server, Website server is after receiving this IPC access request, the flow process of passing through NAT can be opened, for NVR and IPC sets up the Exit Road of the Exit Road crossing over public network and pass through described NVR side by device A and networking client side by the connection of equipment B in this locality.
Please continue see Fig. 2, suppose that NVR newly enables for providing for website client end, remote access IP address is A1, port numbers is P1; Exit Road through NVR side changed by device A after IP address be A1 ' (namely described Exit Road is by the IP address of device A), Exit Road through NVR side changed by device A after port numbers be P1 ' (namely described Exit Road is by the port numbers of device A); The IP address of website client end is A2, port numbers is P2, and the IP address after the Exit Road of website client end side is changed by equipment B is A2 ' (namely described Exit Road is by the IP address of equipment B), port numbers after the Exit Road of website client end side is changed by equipment B is P2 ' (namely described Exit Road is by the port numbers of device A).
After Website server receives the IPC access request of website client end transmission, trigger and send the first notification packet to NVR, in this first notification packet, carry IP address A2 ' and the port numbers P2 ' of outlet routing device B.NVR is after receiving this first notification packet, obtain Exit Road by the IP address of equipment B and port numbers, send one to Exit Road by equipment B and connect request to create message, now the source IP address of this connection request to create message is A1, source port number is that P1, object IP address is A2 ', destination slogan is P2 '; After Exit Road receives this connection request to create message by device A, the source IP address that can carry in this message of automatic learning, object IP address, source port number and destination slogan, and the NAT list item (i.e. a NAT list item) that source IP address is A1, source port number is P1, object IP address A2 ', destination slogan are P2 ' is generated in this locality, follow-up Exit Road can be carry out address transition from the Exit Road of described client host side by the message of equipment B according to this NAT list item by device A.
When Exit Road by equipment B when receiving described connection request to create message, because now Exit Road is not by equipment B creating corresponding NAT list item, cannot complete address transition, therefore described connection request to create message cannot be transparent to website client end.
After NVR sends described connection request to create message, this message of described Website server can be noticed send, to trigger described Website server after receiving this connection request message, send to described client host and carry the IP address A1 ' of outlet routing device A and second notification packet of port numbers P1 '.The source IP address that now this connection creates back message is A1, and source port number is that P1, object IP address is A2 ', destination slogan is P2 '.
Website client end is after the second notification packet receiving Website server transmission, obtain Exit Road by the IP address of device A and port numbers, send one to Exit Road by device A and connect establishment back message, the source IP address of now this connection establishment back message is A2, port numbers is that P2, object IP address is A1 ', destination slogan is P1 '; After Exit Road receives this connection establishment back message by equipment B, the source IP address that can carry in this message of automatic learning, object IP address, source port number and destination slogan, and the NAT list item (i.e. the 2nd NAT list item) that source IP address is A2, source port number is P2, object IP address A1 ', destination slogan are P1 ' is generated in this locality, follow-up Exit Road can be carry out address transition from the Exit Road of described NVR side by the message of device A according to this NAT list item by equipment B.
Back message is created when Exit Road receives described connection by device A, because now Exit Road is by device A having created a described NAT list item, therefore address transition can be completed, be A1 by the object IP address transition of described connection back message, the destination interface of described connection back message is converted to P1, thus is transparent to NVR.
After website client end sends described connection establishment back message, can notice this message of described Website server and send, since then, the connection between NVR and website client end has created.Public network is crossed in this connection, and due to Exit Road by device A and Exit Road by equipment B having created relevant NAT list item, therefore the Exit Road that the message this connection carried can pass through described NVR side by equipment B, realizes transparent transmission by the Exit Road of device A and networking client side between website client end and NVR.
In the present embodiment, described between NVR with website client end is connected after establishment completes, enabled described IP address A1 and port numbers P1 can be handed down to all IPC bound by NVR, and at local releasing IP addresses A1 and port numbers P1, all IPC of now NVR this locality binding share IP address A1 and port numbers P1.
Each IPC of NVR this locality binding is after receiving the IP address A1 and port numbers P1 that NVR issues, IP address A1 and port numbers P1 (not deleting original IP address and port numbers) is enabled in this locality, and after described IP address A1 and port numbers P1 comes into force, send a response message to NVR, NVR notices Website server IP address A1 and port numbers P1 and comes into force after receiving this response message, the Exit Road that the message now this connection carried can pass through described NVR side by the Exit Road of device A and networking client side by equipment B, transparent transmission is realized between website client end and IPC.
When Website server is after learning that IP address A1 and port numbers come into force on IPC, the MAC Address of each binding IP C that NVR can be reported is advertised to website client end, after website client end gets the MAC Address of each IPC bound with NVR, follow-up as user IPC arbitrary by the links and accesses clicking website client end and provide, one can be constructed and carry MAC and forward mark and the remote access message of the MAC Address of IPC that will access sends to Exit Road by device A.
Wherein, what deserves to be explained is, described MAC forwarding mark and MAC Address, when constructing message, can be carried in heading and realize by website client end.Such as, for described remote access message for IP message, website client end, when constructing message, by the structure of the outer IP head of transformation, can realize by increasing an option comprising MAC forwarding mark and MAC Address two fields in the extended field of outer IP head.
When Exit Road by device A when receiving this remote access message, according to the NAT list item created, the object IP address transition of this message can be become A1, convert the destination slogan of this message to P1, now because IP address A1 and port numbers P1 is handed down to IPC by NVR, therefore website client end directly can access IPC according to this IP address and port numbers.But, because the IPC bound with NVR is generally multiple, and the IPC bound with NVR shares described IP address A1 and port numbers P1, therefore Exit Road by device A after address transition is carried out to this message, can judge that whether carrying MAC in this message forwards mark and MAC Address further, if so, so Exit Road by device A can directly by this message repeating to the IPC corresponding with this MAC Address.
Certainly, if by device A, Exit Road judges that not carrying described MAC in this message forwards mark, or Exit Road for third party device is due to when MAC forwarding identifies described in the incompatible None-identified of equipment by device A, can be inquired about local ARP table, check whether to there is corresponding ARP; If so, then by this message repeating to the IPC corresponding to the object MAC in described ARP; If not, the IPC that will be able to access to website client end sends ARP request message and obtains MAC Address, then by the IPC corresponding to this message repeating to the MAC Address got.
In the present embodiment, when after the remote access message that IPC receives from website client end, a back message can be sent for this remote access message to website client end, to complete the remote access for this IPC; Such as, when the video flowing of user by website client end remote on-demand IPC, IPC when receiving the remote access message from website client end, can by back message by the video stream of this locality to website client end.
When after the back message that Exit Road to be received by equipment B from described IPC, can according to the described 2nd NAT list item created, the object IP address transition of this message is become A2, convert the destination interface of this message to P2, thus can by this message transmission to website client end, to complete the remote access for this IPC.
In conjunction with network environment, above scheme is described with a concrete application example below.
Refer to Fig. 3, suppose that the MAC Address of IPC1 is B8-CA-3A-AF-C3-01, the MAC Address of IPC2 is B8-CA-3A-AF-C3-02, the IP address that IPC1 and IPC2 shares is 192.168.1.2, port numbers is 80, IP address after IPC dypass is changed by device A is 1.1.1.1, and port numbers is 10000; This routing device A existing source IP address is 192.168.1.2, and source port number is 80, object IP addresses is 2.2.2.2, and destination slogan is the NAT list item of 20000.
The IP address of website client end is 192.168.2.2, and port numbers is 8080; IP address after website client side routing device B changes is 2.2.2.2, and port numbers is 20000; This routing device B existing source IP address is 192.168.2.2, and source port number is 8080, object IP addresses is 1.1.1.1, and destination slogan is the NAT list item of 10000
When realizing, website client end sends message to IPC1, and when this message arrives the routing device A of IPC side, the source IP address of message is 2.2.2.2, and source port number is 20000, object IP addresses is 1.1.1.1, and destination slogan is 10000.Routing device A inquires about NAT table, there is corresponding NAT list item, so the object IP address of routing device A translate packets and destination slogan, after changing, the object IP address of message is 192.168.1.2, and destination slogan is 80.
After address transition, routing device A checks header option, and header option carries MAC and forwards mark, and MAC Address is B8-CA-3A-AF-C3-01, now routing device A does not inquire about ARP table, directly message is sent to the IPC 1 that MAC Address is B8-CA-3A-AF-C3-01.
When IPC1 is to website client end back message, when this message arrives the routing device B of website client side, the source IP address of message is 1.1.1.1, and source port number is 10000, object IP addresses is 2.2.2.2, and destination slogan is 20000.Routing device B inquires about NAT table, there is corresponding NAT list item, so the object IP address of routing device A translate packets and destination slogan, after changing, the object IP address of message is 192.168.2.2, and destination slogan is 8080.
After address transition, now this message is sent to IP address by routing device B is 192.168.2.2, and port numbers is the website client end of 8080.Remote access since then for IPC1 completes.
Known by the description of above embodiment, the present invention program negotiates for providing remote access IP address and port numbers for client host by the IPC of NVR and its binding, Website server is that described NVR and described client host connect according to described IP address and port numbers, after this connection establishment completes, the IPC of described binding is handed down in described IP address and port numbers by NVR, and after coming into force in described IP address and port numbers on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host, after client host receives the MAC Address of Website server notice, outlet routing device to described NVR side sends and carries the remote access message that MAC forwards the MAC Address of mark and access IPC, make the outlet routing device of described NVR side after receiving described remote access message, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.In the present invention program, owing to being replaced the connection between IPC foundation with client host by NVR, and after connection establishment success, IPC is handed down in IP address when connecting and port numbers, subsequent client main frame directly can access IPC by this IP address and port numbers, even if thus when Website server and NVR break down, client host access IPC also can not be affected.
Simultaneously, in the present invention, IPC does not need to coordinate Website server and website client end to realize the flow process of passing through NAT, coordinates Website server and website client end to realize NAT pass through by NVR, thus initiatively can access IPC from website client end, telemanagement is carried out to IPC; And, be connected with the network between website client end because NVR substitutes IPC foundation, then issue when connecting use IP address and port numbers give all IPC, all IPC share this IP address and port numbers, share a network to connect, thus during other IPC that website client end is accessed and NVR binds, do not need to repeat NAT and pass through.
Refer to Fig. 4, in a kind of exemplary execution mode, the present invention also proposes the remote access system of a kind of IPC, some IPC that described system comprises NVR, client host, Website server and binds with described NVR, described NVR and described IPC all supports ONVFI agreement, also arranges one respectively support two or three layers of Exit Road forwarded by device A and Exit Road by equipment B all simultaneously in described system in NVR side and client host side.Wherein:
NVR is used for consulting with the IPC of binding to be used for providing a remote access IP address and first end slogan for client host;
It is connect between described NVR and described client host that Website server is used for by a described IP address and first end slogan;
When after described connection establishment, NVR is further used for a IPC described IP address and first end slogan being handed down to described binding, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Client host is used for sending remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
In the present embodiment, described Website server is further used for:
Receive the IPC access request that client host sends; Wherein said IPC access request, for triggering described Website server after receiving this IPC access request, sends the first notification packet to NVR; Described first notification packet comprises the 2nd IP address and second port numbers of the outlet routing device of described client host side;
Described NVR is further used for:
Receive the first notification packet that described Website server sends, outlet routing device to described client host side sends and connects request to create message, and described Website server is noticed after described connection request to create message sends, send the second notification packet to trigger described Website server to described client host; Described second notification packet comprises the 3rd IP address and the 3rd port numbers of the outlet routing device of NVR side;
Described client host is further used for:
Receive the second notification packet that described Website server sends, the outlet routing device to described NVR side sends to connect and creates back message, and notices described Website server after described connection establishment back message sends.
In the present embodiment, the source IP address of described connection request to create message is a described IP address, source port number is described first end slogan, object IP address is described 2nd IP address, destination slogan is described second port numbers; The port numbers that the IP address that the described source IP address connecting establishment back message is client host, source port number are client host, object IP address are described 3rd IP address, destination slogan is described 3rd port numbers;
In the present embodiment, the outlet routing device of described NVR side is further used for:
After receiving described connection request to create message, create the NAT list item be used for for carrying out address transition from the message of the outlet routing device of described client host side;
The outlet routing device of described client host side is further used for:
The 2nd NAT list item for carrying out address transition for the message of the outlet routing device from described NVR side is created after receiving described connection establishment back message.
In the present embodiment, the outlet routing device of described NVR side is further used for:
When receiving the remote access message that described client host sends, the described NAT list item according to having created carries out address transition to this message, and judges that whether carrying MAC in the message after address transition forwards mark and MAC Address; When carrying MAC in this message and forwarding mark and MAC Address, by this message repeating to IPC corresponding to described MAC Address;
The outlet routing device of described client host side is further used for:
After the back message for described remote access message receiving described IPC transmission, after address transition being carried out to this message according to the described 2nd NAT list item created, by this message repeating to described client host, to complete the remote access of described client host for this IPC.
In the present embodiment, the outlet routing device of described NVR side is further used for:
When not carrying described MAC forwarding mark in the message after judging address transition, inquiry ARP table, checks whether to there is corresponding ARP; If so, by this message repeating to the IPC corresponding to the object MAC in described ARP; If not, send ARP request message to described access IPC and obtain MAC Address, by the IPC corresponding to this message repeating to the MAC Address got.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. the remote access method of a web camera IPC, be applied in video monitoring system, described video monitoring system comprise network hard disk video recorder NVR, client host, Website server and with some IPC that described NVR binds, it is characterized in that, comprising:
The IPC of NVR and binding consults to be used for providing a remote access IP address and first end slogan for client host;
Website server is connect between described NVR and described client host by a described IP address and first end slogan;
When after described connection establishment, the IPC of described binding is handed down in a described IP address and first end slogan by NVR, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Client host sends remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
2. the method for claim 1, is characterized in that, described Website server is connect between described NVR and described client host to comprise by a described IP address and first end slogan:
Website server receives the IPC access request that client host sends; Wherein said IPC access request, for triggering described Website server after receiving this IPC access request, sends the first notification packet to NVR; Described first notification packet comprises the 2nd IP address and second port numbers of the outlet routing device of described client host side;
NVR receives the first notification packet that described Website server sends, outlet routing device to described client host side sends and connects request to create message, and described Website server is noticed after described connection request to create message sends, send the second notification packet to trigger described Website server to described client host; Described second notification packet comprises the 3rd IP address and the 3rd port numbers of the outlet routing device of NVR side;
Client host receives the second notification packet that described Website server sends, and the outlet routing device to described NVR side sends to connect and creates back message, and notices described Website server after described connection establishment back message sends.
3. method as claimed in claim 2, it is characterized in that, the source IP address of described connection request to create message is a described IP address, source port number is described first end slogan, object IP address is described 2nd IP address, destination slogan is described second port numbers; The port numbers that the IP address that the described source IP address connecting establishment back message is client host, source port number are client host, object IP address are described 3rd IP address, destination slogan is described 3rd port numbers;
Described method also comprises:
The outlet routing device of NVR side, after receiving described connection request to create message, creates the NAT list item be used for for carrying out address transition from the message of the outlet routing device of described client host side;
The outlet routing device of client host side creates the 2nd NAT list item for carrying out address transition for the message of the outlet routing device from described NVR side after receiving described connection establishment back message.
4. method as claimed in claim 3, it is characterized in that, the outlet routing device of described NVR side is after receiving described remote access message, when judging that carrying MAC in described remote access message forwards mark, this message repeating is comprised to the IPC that described MAC Address is corresponding with the remote access completed for this IPC:
The outlet routing device of described NVR side is when receiving the remote access message that described client host sends, a described NAT list item according to having created carries out address transition to this message, and judges that whether carrying MAC in the message after address transition forwards mark and MAC Address; When carrying MAC in this message and forwarding mark and MAC Address, by this message repeating to IPC corresponding to described MAC Address;
The outlet routing device of described client host side is after the back message for described remote access message receiving described IPC transmission, after address transition being carried out to this message according to the described 2nd NAT list item created, by this message repeating to described client host, to complete the remote access of described client host for this IPC.
5. method as claimed in claim 4, it is characterized in that, described method also comprises:
When not carrying described MAC in the message after the outlet routing device of described NVR side judges address transition and forwarding mark, inquiry ARP table, checks whether to there is corresponding ARP; If so, by this message repeating to the IPC corresponding to the object MAC in described ARP; If not, send ARP request message to described access IPC and obtain MAC Address, by the IPC corresponding to this message repeating to the MAC Address got.
6. a remote access system of IPC, described system comprise NVR, client host, Website server and with some IPC that described NVR binds, it is characterized in that:
NVR is used for consulting with the IPC of binding to be used for providing a remote access IP address and first end slogan for client host;
It is connect between described NVR and described client host that Website server is used for by a described IP address and first end slogan;
When after described connection establishment, NVR is further used for a IPC described IP address and first end slogan being handed down to described binding, and after coming into force in a described IP address and first end slogan on the IPC of described binding, by Website server, the MAC Address of the IPC of described binding is advertised to described client host;
Client host is used for sending remote access message to the outlet routing device of described NVR side, described remote access message comprises the MAC Address that MAC forwards mark and IPC to be visited, make the outlet routing device of described NVR side after receiving described remote access message, when judging to carry in described remote access message MAC and forwarding mark, by this message repeating to IPC corresponding to described MAC Address to complete the remote access for this IPC.
7. system as claimed in claim 6, it is characterized in that, described Website server is further used for:
Receive the IPC access request that client host sends; Wherein said IPC access request, for triggering described Website server after receiving this IPC access request, sends the first notification packet to NVR; Described first notification packet comprises the 2nd IP address and second port numbers of the outlet routing device of described client host side;
Described NVR is further used for:
Receive the first notification packet that described Website server sends, outlet routing device to described client host side sends and connects request to create message, and described Website server is noticed after described connection request to create message sends, send the second notification packet to trigger described Website server to described client host; Described second notification packet comprises the 3rd IP address and the 3rd port numbers of the outlet routing device of NVR side;
Described client host is further used for:
Receive the second notification packet that described Website server sends, the outlet routing device to described NVR side sends to connect and creates back message, and notices described Website server after described connection establishment back message sends.
8. system as claimed in claim 7, it is characterized in that, the source IP address of described connection request to create message is a described IP address, source port number is described first end slogan, object IP address is described 2nd IP address, destination slogan is described second port numbers; The port numbers that the IP address that the described source IP address connecting establishment back message is client host, source port number are client host, object IP address are described 3rd IP address, destination slogan is described 3rd port numbers;
The outlet routing device of described NVR side is used for:
After receiving described connection request to create message, create the NAT list item be used for for carrying out address transition from the message of the outlet routing device of described client host side;
The outlet routing device of described client host side is used for:
The 2nd NAT list item for carrying out address transition for the message of the outlet routing device from described NVR side is created after receiving described connection establishment back message.
9. system as claimed in claim 8, it is characterized in that, the outlet routing device of described NVR side is further used for:
When receiving the remote access message that described client host sends, the described NAT list item according to having created carries out address transition to this message, and judges that whether carrying MAC in the message after address transition forwards mark and MAC Address; When carrying MAC in this message and forwarding mark and MAC Address, by this message repeating to IPC corresponding to described MAC Address;
The outlet routing device of described client host side is further used for:
After the back message for described remote access message receiving described IPC transmission, after address transition being carried out to this message according to the described 2nd NAT list item created, by this message repeating to described client host, to complete the remote access of described client host for this IPC.
10. system as claimed in claim 9, it is characterized in that, the outlet routing device of described NVR side is further used for:
When not carrying described MAC forwarding mark in the message after judging address transition, inquiry ARP table, checks whether to there is corresponding ARP; If so, by this message repeating to the IPC corresponding to the object MAC in described ARP; If not, send ARP request message to described access IPC and obtain MAC Address, by the IPC corresponding to this message repeating to the MAC Address got.
CN201410839822.9A 2014-12-29 2014-12-29 The remote access method and system of a kind of IPC Active CN104539902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410839822.9A CN104539902B (en) 2014-12-29 2014-12-29 The remote access method and system of a kind of IPC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410839822.9A CN104539902B (en) 2014-12-29 2014-12-29 The remote access method and system of a kind of IPC

Publications (2)

Publication Number Publication Date
CN104539902A true CN104539902A (en) 2015-04-22
CN104539902B CN104539902B (en) 2018-06-05

Family

ID=52855361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410839822.9A Active CN104539902B (en) 2014-12-29 2014-12-29 The remote access method and system of a kind of IPC

Country Status (1)

Country Link
CN (1) CN104539902B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883547A (en) * 2015-06-16 2015-09-02 浙江宇视科技有限公司 IPC access method based on physical port of network access equipment, and NVR
CN105656680A (en) * 2016-01-29 2016-06-08 浙江宇视科技有限公司 Method and device for controlling web camera
CN105979405A (en) * 2016-06-24 2016-09-28 浙江宇视科技有限公司 Method and device for accessing video device
CN110557563A (en) * 2019-08-05 2019-12-10 深圳市天视通电子科技有限公司 Remote communication method and system for network camera
CN111163040A (en) * 2018-11-08 2020-05-15 浙江宇视科技有限公司 Renegotiated session reestablishment method and device
CN111432151A (en) * 2020-01-20 2020-07-17 杭州海康威视数字技术股份有限公司 Video data storage method, device, equipment and storage medium
CN113612861A (en) * 2021-10-08 2021-11-05 深圳鼎信通达股份有限公司 Remote access method, system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006081142A (en) * 2004-08-09 2006-03-23 Megachips System Solutions Inc Network camera, ddns server, and video distribution system
CN101552804A (en) * 2008-12-22 2009-10-07 北京大学深圳研究生院 Network video distribution system and network video access method thereof
US20090313477A1 (en) * 2006-06-30 2009-12-17 Posdata Co., Ltd. Dvr server and method for controlling access to monitoring device in network-based dvr system
CN102811174A (en) * 2012-07-30 2012-12-05 浙江宇视科技有限公司 Method for processing monitor service and network video recorder (NVR)
CN104010052A (en) * 2014-06-11 2014-08-27 浙江宇视科技有限公司 UPnP-based media connecting method in monitoring system
CN104104926A (en) * 2014-07-30 2014-10-15 浙江宇视科技有限公司 Universal plug and play (UPnP) monitoring terminal access method and access device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006081142A (en) * 2004-08-09 2006-03-23 Megachips System Solutions Inc Network camera, ddns server, and video distribution system
US20090313477A1 (en) * 2006-06-30 2009-12-17 Posdata Co., Ltd. Dvr server and method for controlling access to monitoring device in network-based dvr system
CN101552804A (en) * 2008-12-22 2009-10-07 北京大学深圳研究生院 Network video distribution system and network video access method thereof
CN102811174A (en) * 2012-07-30 2012-12-05 浙江宇视科技有限公司 Method for processing monitor service and network video recorder (NVR)
CN104010052A (en) * 2014-06-11 2014-08-27 浙江宇视科技有限公司 UPnP-based media connecting method in monitoring system
CN104104926A (en) * 2014-07-30 2014-10-15 浙江宇视科技有限公司 Universal plug and play (UPnP) monitoring terminal access method and access device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883547A (en) * 2015-06-16 2015-09-02 浙江宇视科技有限公司 IPC access method based on physical port of network access equipment, and NVR
CN104883547B (en) * 2015-06-16 2019-04-12 浙江宇视科技有限公司 Method and NVR based on network access equipment physical port access IPC
CN105656680A (en) * 2016-01-29 2016-06-08 浙江宇视科技有限公司 Method and device for controlling web camera
CN105656680B (en) * 2016-01-29 2019-12-13 浙江宇视科技有限公司 Network camera control method and device
CN105979405A (en) * 2016-06-24 2016-09-28 浙江宇视科技有限公司 Method and device for accessing video device
CN111163040A (en) * 2018-11-08 2020-05-15 浙江宇视科技有限公司 Renegotiated session reestablishment method and device
CN111163040B (en) * 2018-11-08 2022-06-14 浙江宇视科技有限公司 Renegotiated session reestablishment method and device
CN110557563A (en) * 2019-08-05 2019-12-10 深圳市天视通电子科技有限公司 Remote communication method and system for network camera
CN111432151A (en) * 2020-01-20 2020-07-17 杭州海康威视数字技术股份有限公司 Video data storage method, device, equipment and storage medium
CN111432151B (en) * 2020-01-20 2022-08-23 杭州海康威视数字技术股份有限公司 Video data storage method, device, equipment and storage medium
CN113612861A (en) * 2021-10-08 2021-11-05 深圳鼎信通达股份有限公司 Remote access method, system and computer readable storage medium
CN113612861B (en) * 2021-10-08 2022-01-11 深圳鼎信通达股份有限公司 Remote access method, system and computer readable storage medium

Also Published As

Publication number Publication date
CN104539902B (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN104539902A (en) IPC remote access method and system
CN102025591B (en) Method and system for implementing virtual private network
CN103179192B (en) The message forwarding method that virtual server moves, system and NAT service equipment
JP4995891B2 (en) Multi-hop mesh network connection using MAC bridge
US10454880B2 (en) IP packet processing method and apparatus, and network system
CN102316028B (en) Method and apparatus for sending internet protocol packet
CN104811371B (en) A kind of brand-new instantaneous communication system
US20110038377A1 (en) Method and apparatus for providing host node awareness for multiple NAT64 environments
CN106559292A (en) A kind of broad band access method and device
CN104168184A (en) Message forwarding method and device
CN102594711A (en) Message forwarding method and edge device therefor
CN107317768B (en) Traffic scheduling method and device
CN102209064B (en) Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN104718733A (en) Method and system of packet based identifier locator network protocol (ILNP) load balancing and routing
CN102932499A (en) Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks
CN102315961A (en) The system management of execution route guiding
JP5424007B2 (en) Method for providing information, home gateway and home network system
CN102055816A (en) Communication method, business server, intermediate equipment, terminal and communication system
WO2015108106A1 (en) Packet transfer device, control device, communication system, communication method, and program
CN103731349A (en) Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device
CN107547665A (en) A kind of method, equipment and the system of dhcp address distribution
CN103634214A (en) Route information generating method and device
CN103957161A (en) Packet forwarding method and device
CN102739502A (en) Method for realizing network identification conversion, apparatus and system thereof
EP2675117A1 (en) Routing method and device for host in multi-homing site

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