CN109962990B - Method and device for automatically accessing monitoring equipment in NAT - Google Patents

Method and device for automatically accessing monitoring equipment in NAT Download PDF

Info

Publication number
CN109962990B
CN109962990B CN201711434930.8A CN201711434930A CN109962990B CN 109962990 B CN109962990 B CN 109962990B CN 201711434930 A CN201711434930 A CN 201711434930A CN 109962990 B CN109962990 B CN 109962990B
Authority
CN
China
Prior art keywords
address
mapping information
port mapping
router
information list
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
Application number
CN201711434930.8A
Other languages
Chinese (zh)
Other versions
CN109962990A (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 CN201711434930.8A priority Critical patent/CN109962990B/en
Publication of CN109962990A publication Critical patent/CN109962990A/en
Application granted granted Critical
Publication of CN109962990B publication Critical patent/CN109962990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Abstract

The invention discloses a method and a device for automatically accessing a monitoring device in NAT, which are applied to a front-end device as an agent in a video monitoring network, wherein the method comprises the steps of firstly obtaining the IP address of the front-end device in a router, then comparing the obtained IP address of the front-end device with a local port mapping information list, sending a message for obtaining the port mapping information to the front-end device which is not recorded in the local port mapping information list, obtaining the port mapping information of the front-end device, and recording the port mapping information in the port mapping information list; and then, receiving a message of the port mapping information list acquired by the back-end management equipment outside the router, and returning the recorded port mapping information list to the back-end management equipment. The method and the device of the invention realize that the equipment in the NAT automatically accesses the management equipment outside the NAT, reduce the configuration of the router, reduce the operation of IPC and obviously improve the user experience.

Description

Method and device for automatically accessing monitoring equipment in NAT
Technical Field
The invention belongs to the technical field of video monitoring, and particularly relates to a method and a device for automatically accessing a monitoring device in an NAT.
Background
In recent years, with the rapid development of computers, networks, image processing and transmission technologies, the popularization trend of video monitoring is more and more obvious. The video monitoring system is a monitoring system which digitizes video information and transmits the video information through a wired network or a wireless network. Video monitoring is an important component of a safety precaution system, and is widely applied to many occasions due to intuition, accuracy, timeliness and rich information content.
However, in the construction of a complex site, the design and the networking are complex according to different construction environments and the change of ports and IP. In the networking of fig. 1, the routers enable NAT, NVR is under the switch, the same switch is under the switch, and part of IPC is under the router. And the network video recorder NVR outside the NAT cannot automatically search the IPC of the network video camera added into the NAT through a standard ONVIF protocol.
In the prior art, to add IPCs in routers for NVR, IP addresses of IPCs in all routers need to be acquired, all ports of each IPC are configured to be mapped to the routers, and the IPCs and the ports are manually configured on the NVR to realize interconnection of the IPCs and the NVR. Obviously, in the current technical scheme, the configuration process is redundant and complex, all the work needs manual configuration, the requirement on technical knowledge is high, and the configuration is difficult to be completed by common users.
Therefore, the rapid and effective addition of the IPC in the router reduces the related configuration of the IPC network, improves the user experience, reduces the configuration cost, and is a problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a method and a device for automatically accessing a monitoring device in an NAT (network address translation), which are used for solving the problems that in the prior art, when an IPC (Internet control protocol) in a router is added, the configuration work needs manual configuration, the requirement on technical knowledge is high, and common users are difficult to complete.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a method for automatically accessing a monitoring device in an NAT is applied to a front-end device which is used as an agent in a video monitoring network, the video monitoring network also comprises a back-end management device which is positioned outside a router, and the method for automatically accessing the monitoring device in the NAT comprises the following steps:
acquiring an IP address of front-end equipment in a router;
comparing the acquired IP address of the front-end equipment with a local port mapping information list;
sending a message for acquiring port mapping information to front-end equipment which is not recorded in a local port mapping information list, acquiring port mapping information of the front-end equipment, and recording the port mapping information in the port mapping information list;
and receiving a message of the port mapping information list acquired by the back-end management equipment outside the router, and returning the recorded port mapping information list to the back-end management equipment.
In an implementation manner of the present invention, the acquiring an IP address of a front-end device in the NAT includes:
and sending a message to the router to acquire a DHCP address pool allocated by the router for the front-end equipment, wherein the DHCP address pool comprises an IP address allocated by the router for the front-end equipment.
Another implementation manner of the present invention, the acquiring an IP address of a front-end device in the NAT includes:
and sending the detection message, and acquiring the IP address of the front-end equipment in the router.
Further, the method for automatically accessing to the monitoring device in the NAT, after acquiring the IP address of the front-end device in the router and comparing the acquired IP address of the front-end device with the local port mapping information list, further includes:
and sending a confirmation message to the front-end equipment which is recorded in the local port mapping information list but does not acquire the IP address, and if the response message is not received within the preset time, deleting the corresponding port mapping information in the local port mapping information list.
Further, the acquiring an IP address of a front-end device in the router includes:
and according to a set period, periodically acquiring the IP address of the front-end equipment in the router.
The invention also provides a device for automatically accessing the monitoring equipment in the NAT, which is applied to the front-end equipment as an agent in a video monitoring network, the video monitoring network also comprises a back-end management equipment positioned outside the router, and the device for automatically accessing the monitoring equipment in the NAT comprises:
the address acquisition module is used for acquiring the IP address of the front-end equipment in the router;
the comparison module is used for comparing the acquired IP address of the front-end equipment with a local port mapping information list;
the updating module is used for sending a message for acquiring the port mapping information to the front-end equipment which is not recorded in the local port mapping information list, acquiring the port mapping information of the front-end equipment and recording the port mapping information in the port mapping information list;
and the sending module is used for receiving the message of the port mapping information list acquired by the back-end management equipment outside the router and returning the recorded port mapping information list to the back-end management equipment.
When the address acquisition module acquires the IP address of the front-end equipment in the NAT, the address acquisition module executes the following steps:
and sending a message to the router to acquire a DHCP address pool allocated by the router for the front-end equipment, wherein the DHCP address pool comprises an IP address allocated by the router for the front-end equipment.
Or/and sending the detection message to acquire the IP address of the front-end equipment in the router.
Further, the update module is further configured to send a confirmation message to the front-end device that is recorded in the local port mapping information list but does not obtain the IP address, and delete the corresponding port mapping information from the local port mapping information list if the response message is not received within a preset time.
Further, when acquiring the IP address of the front-end device in the router, the address acquisition module also periodically acquires the IP address of the front-end device in the router according to a set period.
According to the method and the device for automatically accessing the monitoring equipment in the NAT, provided by the invention, the port mapping information of the front-end equipment in the router is actively acquired through the proxy IPC, is updated to the local, and then is returned to the NVR outside the router through the interaction with the NVR, so that the equipment in the NAT is automatically accessed to the management equipment outside the NAT, the configuration of the router is reduced, the operation on the IPC is reduced, and the user experience is remarkably improved.
Drawings
FIG. 1 is a schematic diagram of a video surveillance network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for automatically accessing a monitoring device in an NAT.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the drawings and examples, which should not be construed as limiting the present invention.
The scenario in which the technical solution is applied is shown in fig. 1, NAT (Network Address Translation) is enabled on a router, front-end devices such as a Network camera IPC and an encoder are deployed in a private Network inside the router, and back-end management devices such as a Network video recorder NVR or a VMS server are outside the router. In this embodiment, the front-end device takes IPC as an example, and the back-end management device takes NVR as an example for description.
The general idea of the technical scheme is that an agent IPC is arranged in an NAT network segment, the agent IPC is registered to and managed by NVR outside the NAT, information of a device list in the NAT is fed back to the NVR through message interaction, a mapping requirement is issued for the IPC without a mapping relation, port mapping is completed, a mapping port of the IPC with mapping is obtained, and a device list of the IPC in the network segment is maintained.
As shown in fig. 2, a method for automatically accessing a monitoring device in an NAT in the present technical solution is applied to a front-end device serving as an agent in a video monitoring network, and the method includes:
acquiring an IP address of front-end equipment in a router;
comparing the acquired IP address of the front-end equipment with a local port mapping information list;
sending a message for acquiring port mapping information to front-end equipment which is not recorded in a local port mapping information list, acquiring port mapping information of the front-end equipment, and recording the port mapping information in the port mapping information list;
and receiving a message of the port mapping information list acquired by the back-end management equipment outside the router, and returning the recorded port mapping information list to the back-end management equipment.
Embodiment 1, a front-end device serving as an agent sends a message to a router to obtain a DHCP address pool allocated by the router to the front-end device, where the DHCP address pool includes an IP address allocated by the router to the front-end device.
Specifically, as shown in fig. 1, the egress router of the intranet enables NAT, IPC1, IPC2 and IPC3 are in the NAT, and NVR is out of the NAT, and the presence of the NAT results in that the NVR cannot search for IPC in the added NAT.
The IPC1 is in a LAN port of a router, and as a proxy device in the technical scheme, the address is 192.168.0.100, NVR and the WAN port of the router are in the same network segment, the address of the NVR is 193.168.1.100, and the address of the NVR configured on the IPC is 193.168.1.100. The IPC1 serving as the proxy supports configuration of multiple NVR addresses, which is not described herein again.
The IPC1 has a mapped external network IP address and port number on the router through port mapping, and the IPC1 sends a registration message carrying the external network IP address of the router and the port number for receiving the NVR message to the configured NVR.
After receiving the correct registration message, the NVR records the IP address and port number of IPC1, and returns a registration success response message.
After receiving the registration success response message, IPC1 records the IP address of the NVR of the opposite end (keep-alive messages are subsequently sent every 30S), sends a message for obtaining the DHCP address pool to the router, and obtains the DHCP address pool allocated by the router for the internal front-end device.
It is easy to understand that, when the IPC inside the router is connected with the router, the router allocates an IP address for the IPC of the front-end device inside the NAT through DHCP, and the IP addresses allocated for the IPC form a DHCP address pool. For example, the router is a wireless WIFI access point, and after the IPC is connected with the router through a wireless connection, an IP address is allocated to the IPC through the wireless WIFI access point. It is obvious that both IPCs 2, 3 can obtain DHCP assigned IP addresses through routers.
After receiving the response message for acquiring the DHCP address pool, the IPC1 acquires the DHCP address pool allocated by the router for the internal front-end device. And comparing the acquired DHCP address pool with a locally stored port mapping information list.
By comparison, a plurality of situations occur, for example, in an initial stage, no port mapping is performed on the front-end device in the router except for the IPC1, the port mapping information list recorded locally by the IPC1 is empty, and the IP addresses in the address pool are not in the port mapping information list through the discovery of the obtained DHCP address pool. Or, some of the IP addresses in the address pool are in the port mapping information list, and some are not in the port mapping information list.
Therefore, when an IP address that exists in the DHCP address pool but is not recorded in the port mapping information list is found, this indicates that the front-end device is connected to the router, acquires the IP address assigned by the DHCP, but does not perform port mapping. Therefore, IPC1 as a proxy needs to send a message for acquiring port mapping information to a front-end device that exists in the DHCP address pool but is not recorded in the port mapping information list. For example, 192.168.0.101 is found to exist in the DHCP address pool but not recorded in the port mapping information list, and in fact, this address corresponds to IPC2, which is an IP address allocated by the router for IPC 2.
At this time, the IP address of IPC2 is not found in the port mapping information list, that is, no port mapping is performed, and IPC1 as an agent sends a message for acquiring port mapping information to IPC 2. After receiving the message for obtaining mapping port mapping information, IPC2 determines whether there is port mapping information, if not, the IPC2 sends a port mapping request to the router, and the router returns information of successful mapping after receiving the request, so as to map an IP address and a port number of an external network for IPC 2. After the port mapping is successful, the IPC2 returns the mapped port mapping information to the proxy IPC 1. The port mapping information includes the mapped IP address and port number of the external network, and the port mapping is a mature technology and is not described herein again.
Through the above process, the IPC1 as a proxy acquires the port mapping information of the IPC2 and records the port mapping information in the port mapping information list. The port mapping information list comprises the private network IP address and the port number of the front-end equipment and the external network IP address and the port number mapped by the router.
Then, IPC1 receives the message that NVR obtains the port mapping information list of the internal front-end device, and returns the recorded port mapping information list to NVR. For example, having obtained the port mapping information of IPC2 above, when returning the recorded port mapping information list to the NVR, the NVR obtains the port mapping information of IPC 2. Therefore, the NVR can initiate an ONVIF detection message to establish connection with the IPC2, and management of the IPC2 is achieved.
Similarly, the same operation is performed on IPC3, and is not described here. It is easy to understand that some IPCs access first and some IPCs access later in the network, so in this embodiment, the IPC1 needs to periodically obtain the DHCP address pool, compare the obtained port mapping information and send the message for obtaining the port mapping information to the front-end device that is not recorded in the local port mapping information list, and obtain the port mapping information of the front-end device, which is recorded in the port mapping information list.
Embodiment 2, the front-end device serving as the proxy sends the detection packet to obtain the IP address of the front-end device in the router.
In the video monitoring system, some IPCs are set as static IP addresses, and the IPCs do not acquire DHCP allocated IP addresses on the router, so the IP addresses of the IPCs do not exist in a DHCP address pool of the router.
Specifically, as shown in fig. 1, for example, IPC3 configures a static IP address 192.168.0.102, IPC1 sends an ONVIF probe message, IPC3 receives the ONVIF probe message and responds to the ONVIF probe message to notify IPC1 of its own IP address, so that IPC1 obtains the IP address of IPC 3.
As in embodiment 1, after comparing the acquired IP address of the front-end device with the local port mapping information list, when finding a front-end device that has acquired an IP address but is not recorded in the port mapping information list, sending an acquire port mapping information message to the front-end device that is not recorded in the local port mapping information list, acquiring port mapping information of the front-end device, and recording the port mapping information in the port mapping information list.
Thereafter, IPC1 as a proxy sends an acquire port mapping information message to IPC 3. After receiving the message for obtaining mapping port mapping information, IPC3 determines whether there is port mapping information, if not, the IPC3 sends a port mapping request to the router, and the router returns information of successful mapping after receiving the request, so as to map an IP address and a port number of an external network for IPC 3. After the port mapping is successful, the IPC3 returns the mapped port mapping information to the proxy IPC 1. The port mapping information includes the mapped IP address and port number of the external network, and the port mapping is a mature technology and is not described herein again.
Through the above process, the IPC1 as a proxy acquires the port mapping information of the IPC3 and records the port mapping information in the port mapping information list.
Then, IPC1 receives the message that NVR obtains the port mapping information list of the internal front-end device, and returns the recorded port mapping information list to NVR. For example, having obtained the port mapping information of IPC3 above, when returning the recorded port mapping information list to the NVR, the NVR obtains the port mapping information of IPC 3. Therefore, the NVR can initiate an ONVIF detection message to establish connection with the IPC3, and management of the IPC3 is achieved.
In addition, in another embodiment of the present technical solution, since the IPC of the front-end device in the intranet is often changed, for example, removed or replaced, the DHCP releases the corresponding IP address, and the IPC1 cannot acquire the IP address of the IPC through the probe message, which needs to update the port mapping information list on the IPC 1.
Therefore, in this embodiment, a method for automatically accessing a monitoring device in an NAT, after acquiring an IP address of a front-end device in a router and comparing the acquired IP address of the front-end device with a local port mapping information list, further includes:
and sending a confirmation message to the IP address which is recorded in the local port mapping information list but is not obtained, and deleting the corresponding port mapping information in the local port mapping information list if a response message is not received within the preset time.
For example, after the IPC3 is removed, when the IPC1 obtains the DHCP address pool from the router or the IP address of the IPC3 cannot be obtained by sending the probe message, when the obtained IP address of the front-end device is compared with the local port mapping information list, it is found that there is a record in the local port mapping information list, but the IP address 192.168.0.102 does not exist in the obtained IP address.
IPC1 sends a confirmation message to 192.168.0.102, and if no response message is received after timeout, deletes the entry corresponding to 192.168.0.102 in the port mapping information list, that is, deletes the entry corresponding to IPC 3.
It is easy to understand that, for the NVR side, a message for acquiring a port mapping information list is sent to the IPC1, after receiving the message, the IPC1 returns the local port mapping information list to the NVR, and the NVR has the port mapping information of the front-end device in the router, so that an ONVIF detection message can be sent to establish connection with the IPC in the router, and management of the IPC is realized.
The IPC1 serving as the proxy may periodically perform the operations in embodiment 1 or/and embodiment 2, or perform the operations in embodiment 1 or/and embodiment 2 again when receiving the message that the NVR acquires the port mapping information list, to update the local port mapping information list, and then return the local port mapping information list to the NVR, thereby implementing the automatic access of the IPC by the NVR. The IP address of the front-end device in the router is obtained by periodically performing the operation in embodiment 1, periodically performing the operation in embodiment 2, or periodically performing the operations in embodiments 1 and 2 at the same time, which is not limited in this technical solution. Certainly, in an actual deployment process, under the condition that the network is connected in advance, the router, the front-end device, and the back-end management device in the network are powered on respectively, and then the operations of embodiment 1 or/and embodiment 2 are performed once, so that the local port mapping information list can be updated without repeated periodic operations. The periodic operation update in this embodiment is to timely maintain the changes generated in the network.
In view of the defects of the prior art, the technical scheme automatically completes IPC port mapping in the NAT and searches and adds IPC in the NAT so as to solve the problem that IPC port mapping configuration is complex when NVR outside the NAT adds IPC in the NAT, and quickly and conveniently realizes that the NVR outside the NAT searches and adds IPC in the NAT. The problem of networking application of a monitoring system which cannot quickly search and add IPC in NAT based on NVR is solved, and user experience is improved.
Correspondingly to the above method, the present technical solution further provides an embodiment of an apparatus for automatically accessing a monitoring device in an NAT, which is applied to a front-end device acting as a proxy in a video monitoring network, where the video monitoring network further includes a back-end management device located outside a router, and the apparatus for automatically accessing a monitoring device in an NAT includes:
the address acquisition module is used for acquiring the IP address of the front-end equipment in the router;
the comparison module is used for comparing the acquired IP address of the front-end equipment with a local port mapping information list;
the updating module is used for sending a message for acquiring the port mapping information to the front-end equipment which is not recorded in the local port mapping information list, acquiring the port mapping information of the front-end equipment and recording the port mapping information in the port mapping information list;
and the sending module is used for receiving the message of the port mapping information list acquired by the back-end management equipment outside the router and returning the recorded port mapping information list to the back-end management equipment.
Corresponding to the above method, in an embodiment of the present technical solution, when the address obtaining module obtains an IP address of a front-end device in the NAT, the address obtaining module executes the following steps:
and sending a message to the router to acquire a DHCP address pool allocated by the router for the front-end equipment, wherein the DHCP address pool comprises an IP address allocated by the router for the front-end equipment.
Or/and sending the detection message to acquire the IP address of the front-end equipment in the router.
Corresponding to the above method, the update module in this embodiment is further configured to send a confirmation message to the front-end device that is recorded in the local port mapping information list but does not obtain the IP address, and if the response message is not received within the preset time, delete the corresponding port mapping information in the local port mapping information list.
Corresponding to the above method, when the address obtaining module obtains the IP address of the front-end device in the router, the address obtaining module also obtains the IP address of the front-end device in the router periodically according to a set period.
The apparatus for automatically accessing to the monitoring device in the NAT corresponds to the steps of the method, and the specific operation process has been described in detail in the embodiment of the method, which is not described herein again.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, but these corresponding changes and modifications should fall within the protection scope of the appended claims.

Claims (10)

1. A method for automatically accessing a monitoring device in an NAT is applied to a front-end device which is used as an agent in a video monitoring network, the video monitoring network also comprises a back-end management device which is positioned outside a router, the method is characterized in that the router enables the NAT, and the method for automatically accessing the monitoring device in the NAT comprises the following steps:
acquiring an IP address of front-end equipment in a router;
comparing the acquired IP address of the front-end equipment with a local port mapping information list;
sending a message for acquiring port mapping information to front-end equipment which is not recorded in a local port mapping information list, acquiring port mapping information of the front-end equipment, and recording the port mapping information in the port mapping information list;
and receiving a message of the port mapping information list acquired by the back-end management equipment outside the router, and returning the recorded port mapping information list to the back-end management equipment.
2. The method for automatically accessing to a monitoring device in a NAT of claim 1, wherein the obtaining of the IP address of the front-end device in the router comprises:
and sending a message to the router to acquire a DHCP address pool allocated by the router for the front-end equipment, wherein the DHCP address pool comprises an IP address allocated by the router for the front-end equipment.
3. The method for automatically accessing to a monitoring device in a NAT of claim 1, wherein the obtaining of the IP address of the front-end device in the router comprises:
and sending the detection message, and acquiring the IP address of the front-end equipment in the router.
4. The method for automatically accessing to a monitoring device in an NAT of claim 1, wherein the method for automatically accessing to a monitoring device in an NAT further comprises, after acquiring an IP address of a front-end device in a router and comparing the acquired IP address of the front-end device with a local port mapping information list:
and sending a confirmation message to the front-end equipment which is recorded in the local port mapping information list but does not acquire the IP address, and if the response message is not received within the preset time, deleting the corresponding port mapping information in the local port mapping information list.
5. The method for automatically accessing to a monitoring device in a NAT of claim 1, wherein the obtaining of the IP address of the front-end device in the router comprises:
and according to a set period, periodically acquiring the IP address of the front-end equipment in the router.
6. The utility model provides an automatic access monitoring equipment's in NAT device, is applied to the front end equipment as agent in the video monitoring network, the video monitoring network still includes the rear end management equipment that is located the router outside, a serial communication port, the router has enabled NAT, automatic access monitoring equipment's in NAT device includes:
the address acquisition module is used for acquiring the IP address of the front-end equipment in the router;
the comparison module is used for comparing the acquired IP address of the front-end equipment with a local port mapping information list;
the updating module is used for sending a message for acquiring the port mapping information to the front-end equipment which is not recorded in the local port mapping information list, acquiring the port mapping information of the front-end equipment and recording the port mapping information in the port mapping information list;
and the sending module is used for receiving the message of the port mapping information list acquired by the back-end management equipment outside the router and returning the recorded port mapping information list to the back-end management equipment.
7. The apparatus for automatically accessing a monitoring device in a NAT of claim 6, wherein the address obtaining module performs the following steps when obtaining the IP address of the front-end device in the router:
and sending a message to the router to acquire a DHCP address pool allocated by the router for the front-end equipment, wherein the DHCP address pool comprises an IP address allocated by the router for the front-end equipment.
8. The apparatus for automatically accessing a monitoring device in a NAT of claim 6, wherein the address obtaining module performs the following steps when obtaining the IP address of the front-end device in the router:
and sending the detection message, and acquiring the IP address of the front-end equipment in the router.
9. The apparatus according to claim 6, wherein the update module is further configured to send a confirmation message to a front-end device that is recorded in the local port mapping information list but does not obtain the IP address, and delete the corresponding port mapping information from the local port mapping information list if a response message is not received within a preset time.
10. The apparatus according to claim 6, wherein the address obtaining module further obtains the IP address of the front-end device in the router periodically according to a set period when obtaining the IP address of the front-end device in the router.
CN201711434930.8A 2017-12-26 2017-12-26 Method and device for automatically accessing monitoring equipment in NAT Active CN109962990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711434930.8A CN109962990B (en) 2017-12-26 2017-12-26 Method and device for automatically accessing monitoring equipment in NAT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711434930.8A CN109962990B (en) 2017-12-26 2017-12-26 Method and device for automatically accessing monitoring equipment in NAT

Publications (2)

Publication Number Publication Date
CN109962990A CN109962990A (en) 2019-07-02
CN109962990B true CN109962990B (en) 2022-04-12

Family

ID=67022357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711434930.8A Active CN109962990B (en) 2017-12-26 2017-12-26 Method and device for automatically accessing monitoring equipment in NAT

Country Status (1)

Country Link
CN (1) CN109962990B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327716B (en) * 2019-08-28 2022-08-05 杭州海康威视系统技术有限公司 Service interaction method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347179A (en) * 2013-07-17 2013-10-09 浙江宇视科技有限公司 Device and method for achieving monitor front-end equipment networking
CN104506802A (en) * 2014-12-17 2015-04-08 浙江宇视科技有限公司 Video monitoring system, and method for monitoring video data through traversing NAT (Network Address Translation)
CN104506807A (en) * 2014-12-24 2015-04-08 浙江宇视科技有限公司 Equipment automatic configuration method in wide area network video monitoring system
CN105187781A (en) * 2015-08-17 2015-12-23 浙江宇视科技有限公司 Method and device for adding monitoring equipment automatically
CN105553853A (en) * 2015-12-01 2016-05-04 浙江宇视科技有限公司 Method, device and system for management of IPC through NVR

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282450B (en) * 2007-04-02 2011-09-28 厦门瑞科技术有限公司 Method capable of immediate access and management of network camera
CN102148879A (en) * 2010-10-22 2011-08-10 华为技术有限公司 Port mapping method and device and communication system
US9825854B2 (en) * 2014-03-27 2017-11-21 Nicira, Inc. Host architecture for efficient cloud service access
CN104010052B (en) * 2014-06-11 2017-06-13 浙江宇视科技有限公司 Media connection method based on UPnP in a kind of monitoring system
CN105611208A (en) * 2015-12-31 2016-05-25 深圳市磊科实业有限公司 Method for performing real-time limited access on NVR (Network Video Recorder) by external terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347179A (en) * 2013-07-17 2013-10-09 浙江宇视科技有限公司 Device and method for achieving monitor front-end equipment networking
CN104506802A (en) * 2014-12-17 2015-04-08 浙江宇视科技有限公司 Video monitoring system, and method for monitoring video data through traversing NAT (Network Address Translation)
CN104506807A (en) * 2014-12-24 2015-04-08 浙江宇视科技有限公司 Equipment automatic configuration method in wide area network video monitoring system
CN105187781A (en) * 2015-08-17 2015-12-23 浙江宇视科技有限公司 Method and device for adding monitoring equipment automatically
CN105553853A (en) * 2015-12-01 2016-05-04 浙江宇视科技有限公司 Method, device and system for management of IPC through NVR

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
物联网与视频监控的融合发展;肖明;《中国优秀硕士学位论文全文数据库》;20150515;全文 *

Also Published As

Publication number Publication date
CN109962990A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN107070691B (en) Cross-host communication method and system of Docker container
CN112039693B (en) System and method for managing home networking network topology
EP3370371A1 (en) System and method for identifying wireless terminal type in router network bridge mode
EP2731010A1 (en) Method, device, and system for migrating configuration information during live migration of virtual machine
EP3157230B1 (en) Method for acquiring identifier of terminal in network, management network element and storage medium
CN103269278B (en) A kind of terminal unit based on SDN accesses in real time, leaves cognitive method
CN105577496B (en) The system that a kind of home gateway identifies access device type using cloud platform
US20170237706A1 (en) Method and apparatus for setting network rule entry
US20120162445A1 (en) Virtual tunnel router, ip camera management server and location-based ip camera service method
US20100281146A1 (en) Dynamic domain name service system and automatic registration method
JPH11122301A (en) Address conversion connection device
CN101582925B (en) Network address translation method and system
EP2928141A1 (en) Ipv6 address tracing method, device, and system
CN109495369B (en) Message forwarding method and device
EP3016423A1 (en) Network safety monitoring method and system
CN109962990B (en) Method and device for automatically accessing monitoring equipment in NAT
US10027655B2 (en) Method and system for CU logging in docking platform
CN112019563B (en) Video data forwarding and transmitting system and method
US20100172266A1 (en) Dynamic network configuration for a network device
CN114553832B (en) Communication method for bearing multiple wired client IP data through wireless client
Zhou et al. Discovery algorithm for network topology based on SNMP
CN116192797B (en) Address request message answering method and device, electronic equipment and storage medium
CN114844845B (en) Virtual-real combined network target range wireless real equipment access device, method and system
CN108882224B (en) User identity information distribution method and access service router
JP4112393B2 (en) Network connection device detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant