Movatterモバイル変換


[0]ホーム

URL:


CN104104926A - Universal plug and play (UPnP) monitoring terminal access method and access device - Google Patents

Universal plug and play (UPnP) monitoring terminal access method and access device
Download PDF

Info

Publication number
CN104104926A
CN104104926ACN201410370713.7ACN201410370713ACN104104926ACN 104104926 ACN104104926 ACN 104104926ACN 201410370713 ACN201410370713 ACN 201410370713ACN 104104926 ACN104104926 ACN 104104926A
Authority
CN
China
Prior art keywords
monitor terminal
upnp
port
monitoring terminal
private network
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
CN201410370713.7A
Other languages
Chinese (zh)
Other versions
CN104104926B (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 LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201410370713.7ApriorityCriticalpatent/CN104104926B/en
Publication of CN104104926ApublicationCriticalpatent/CN104104926A/en
Application grantedgrantedCritical
Publication of CN104104926BpublicationCriticalpatent/CN104104926B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention provides a universal plug and play (UPnP) monitoring terminal access method which is applied to a first monitoring terminal in a monitoring private network which further comprises a second monitoring terminal. The first monitoring terminal supports the UPnP while the second monitoring terminal does not support the UPnP, and NAT equipment also supports the UPnP. The UPnP monitoring terminal access method includes sending a UPnP control message to the NAT equipment to request own port mapping, providing information of the port after mapping to users of a public network to allow them to log in the first monitoring terminal, receiving a register message of the second monitoring terminal, sending the modified UPnP control message to the NAT equipment to request the port mapping of the second monitoring terminal, receiving information of the port of the second monitoring terminal mapped through the NAT equipment, and providing the information of the port to the users to allow them to access to the second monitoring terminal. The UPnP control message includes an IP (internet protocol) address of the private network of the second monitoring terminal. Compared with the prior art, the UPnP monitoring terminal access method has the advantages that by the method, to an IPC (information processing center) of the private network which does not support the UPnP protocol, the users of the public network can easily turn to access to the IPC after logging in an NVR (network video recorder).

Description

Translated fromChinese
一种通用即插即用的监控终端访问方法和装置A universal plug and play monitoring terminal access method and device

技术领域technical field

本发明涉及视频监控技术领域,尤其涉及一种通用即插即用的监控终端访问方法和装置。The invention relates to the technical field of video monitoring, in particular to a method and device for accessing a monitoring terminal with universal plug and play.

背景技术Background technique

随着计算机产业以及计算机网络技术的迅猛发展,越来越多嵌入式设备的出现和家庭网络的发展,实现各种设备的互联互通已经成为人们的迫切需求,而实现家庭网络互联互通的关键是家庭网络的中间件技术。业界各大厂商都提出了自己的解决方案,其中以微软提出的UPnP最具有发展前途,也获得了最广泛的支持,目前UPnP基本是家庭网络设备必须支持的特性之一。With the rapid development of the computer industry and computer network technology, the emergence of more and more embedded devices and the development of home networks, it has become an urgent need for people to realize the interconnection of various devices, and the key to realize the interconnection of home networks is Middleware technology for home networking. All major manufacturers in the industry have proposed their own solutions, among which UPnP proposed by Microsoft is the most promising and has won the most extensive support. At present, UPnP is basically one of the features that home network devices must support.

UPnP是通用即插即用(Universal Plug and Play)的缩写,主要用于设备的智能互联互通。使用UPnP协议不需要设备驱动程序,它可以运行在目前几乎所有的操作系统平台上,使得在办公室、家庭和其他公共场所方便地构建设备互联互通成为可能。在视频监控领域,UPnP也发挥着极其重要的作用。如图1,当监控私网中存在网络硬盘录像机NVR,并且开启UPnP功能后从支持UPnP的公网路由器进行NAT端口映射,从而使得公网用户能获取到NVR的公网地址和端口,从而访问此NVR。但是当私网中还存在某些网络摄像机IPC只能以ONVIF协议接入NVR进行集中管理时,就会存在用户要修改某些IPC的配置只能通过登录到IPC自身的界面进行配置修改;因为此时NVR界面是不支持对以ONVIF协议接入该NVR的IPC的配置修改。但是,用户由于无法直接访问NVR中显示IPC的私网地址而无法登录到IPC的界面上进行相应的配置修改。UPnP is the abbreviation of Universal Plug and Play, which is mainly used for the intelligent interconnection of devices. Using the UPnP protocol does not require a device driver, and it can run on almost all current operating system platforms, making it possible to conveniently build device interconnection in offices, homes and other public places. In the field of video surveillance, UPnP also plays an extremely important role. As shown in Figure 1, when there is a network hard disk video recorder NVR in the monitoring private network, and the UPnP function is enabled, NAT port mapping is performed from a public network router that supports UPnP, so that public network users can obtain the public network address and port of the NVR to access This NVR. However, when there are still some network camera IPCs in the private network that can only be connected to the NVR with the ONVIF protocol for centralized management, there will be users who want to modify the configuration of some IPCs and can only log in to the interface of the IPC itself to modify the configuration; because At this time, the NVR interface does not support the modification of the configuration of the IPC connected to the NVR through the ONVIF protocol. However, because the user cannot directly access the private network address of the IPC displayed in the NVR, he cannot log in to the interface of the IPC to make corresponding configuration modifications.

上述问题的解决方法为用户通知在私网中的管理员进行IPC的参数修改或者用户将自身的配置设备搬移到私网,并接入其中,然后登录IPC进行操作。但是这种办法既麻烦又存在信息安全风险。The solution to the above problem is that the user notifies the administrator in the private network to modify the IPC parameters or the user moves his configuration device to the private network, accesses it, and then logs in to the IPC for operation. However, this method is troublesome and has information security risks.

发明内容Contents of the invention

有鉴于此,本发明提供一种通用即插即用的监控终端访问方法和装置。该方法和装置应用于第一监控终端,该第一监控终端位于监控私网,该监控私网还包括第二监控终端;其中该第一监控终端支持通用即插即用UPnP协议,第二监控终端则不支持UPnP协议;将该监控私网和公网隔离的NAT设备支持UPnP协议。In view of this, the present invention provides a universal plug and play monitoring terminal access method and device. The method and device are applied to a first monitoring terminal, the first monitoring terminal is located in a monitoring private network, and the monitoring private network also includes a second monitoring terminal; wherein the first monitoring terminal supports the Universal Plug and Play UPnP protocol, and the second monitoring The terminal does not support the UPnP protocol; the NAT device that isolates the monitored private network from the public network supports the UPnP protocol.

该方法包括:向NAT设备发送UPnP控制报文请求自身的端口映射,该映射后的端口用来提供给公网用户使其登录自身;接收第二监控终端的注册报文;向NAT设备发送改造后的UPnP控制报文请求第二监控终端的端口映射,该UPnP控制报文至少包括第二监控终端的私网IP地址;接收NAT设备映射后的第二监控终端的端口信息,并在所述公网用户登录自身后将该端口信息提供给该公网用户,使其能访问该第二监控终端。The method includes: sending a UPnP control message to a NAT device to request its own port mapping, and the mapped port is used to provide a public network user to log in itself; receiving a registration message of a second monitoring terminal; sending a modification message to the NAT device After the UPnP control message requests the port mapping of the second monitoring terminal, the UPnP control message at least includes the private network IP address of the second monitoring terminal; receives the port information of the second monitoring terminal after the NAT device mapping, and in the described The public network user provides the port information to the public network user after logging in himself, so that he can access the second monitoring terminal.

优选地,在所述公网用户登录自身后将该端口信息提供给该公网用户,使其能访问该第二监控终端具体为:在自身的WEB界面上生成对应该第二监控终端名称的按钮,当用户点击该按钮时,自动生成包含该第二监控终端端口的URL。Preferably, after the public network user logs in to himself, the port information is provided to the public network user, so that he can access the second monitoring terminal, specifically: generating a link corresponding to the name of the second monitoring terminal on his own WEB interface button, when the user clicks the button, a URL including the port of the second monitoring terminal is automatically generated.

优选地,所述方法还包括接收第二终端的注册报文后,在本地生成第二监控终端对应的表项,该表项内容包括:第二监控终端的名称、MAC地址、私网IP地址;所述改造后的UPnP控制报文还包含第二监控终端的MAC地址;在接收到NAT设备映射后的第二监控终端的端口信息后,将该端口信息记录在该第二监控终端对应的表项中。Preferably, the method further includes, after receiving the registration message of the second terminal, locally generating an entry corresponding to the second monitoring terminal, and the content of the entry includes: the name, MAC address, and private network IP address of the second monitoring terminal The UPnP control message after the transformation also includes the MAC address of the second monitoring terminal; after receiving the port information of the second monitoring terminal mapped by the NAT device, the port information is recorded in the corresponding second monitoring terminal table entry.

优选地,所述第一监控终端为NVR设备;所述第二监控终端为IPC设备。Preferably, the first monitoring terminal is an NVR device; the second monitoring terminal is an IPC device.

该一种通用即插即用的监控终端访问装置包括:第一UPnP模块,用于向NAT设备发送UPnP控制报文请求自身的端口映射,该映射后的端口信息用来提供给公网用户使其登录自身;第二UPnP模块,用于在收到第二监控终端的注册报文后,向NAT设备发送改造后的UPnP控制报文请求第二监控终端的端口映射,该UPnP控制报文至少包括第二监控终端的私网IP地址;第二终端链接模块,用于接收NAT设备映射后的第二监控终端的端口信息,并在所述公网用户登录自身后将该端口信息提供给该公网用户,使其能访问该第二监控终端。This kind of universal plug and play monitoring terminal access device includes: a first UPnP module, which is used to send a UPnP control message to the NAT device to request its own port mapping, and the port information after the mapping is used to provide to the public network users. It logs in itself; the second UPnP module is used to send the transformed UPnP control message to the NAT device after receiving the registration message of the second monitoring terminal to request port mapping of the second monitoring terminal, and the UPnP control message is at least Including the private network IP address of the second monitoring terminal; the second terminal link module is used to receive the port information of the second monitoring terminal mapped by the NAT device, and provide the port information to the public network user after logging in itself The public network user enables him to access the second monitoring terminal.

优选地,第二终端链接模块在所述公网用户登录自身后将该端口信息提供给该公网用户具体为:在第一监控终端的WEB界面上生成对应该第二监控终端名称的按钮,当用户点击该按钮时,自动生成包含该第二监控终端端口的URL。Preferably, the second terminal link module provides the port information to the public network user after the public network user logs in to itself, specifically: generating a button corresponding to the name of the second monitoring terminal on the WEB interface of the first monitoring terminal, When the user clicks the button, a URL including the port of the second monitoring terminal is automatically generated.

优选地,所述装置还包括表项生成模块,该表项生成模块在接收第二终端的注册报文后,在本地生成第二监控终端对应的表项,该表项内容包括:第二监控终端的名称、MAC地址、私网IP地址;所述改造后的UPnP控制报文还包含第二监控终端的MAC地址;该表项生成模块还在接收到NAT设备映射后的第二监控终端的端口信息后,将该端口信息记录在该第二监控终端对应的表项中。Preferably, the device further includes an entry generation module. After receiving the registration message of the second terminal, the entry generation module locally generates an entry corresponding to the second monitoring terminal, and the content of the entry includes: the second monitoring terminal The title, MAC address, private network IP address of terminal; The UPnP control message after described transformation also comprises the MAC address of the second monitoring terminal; After obtaining the port information, record the port information in the entry corresponding to the second monitoring terminal.

相较于现有技术,本发明的方法对于不支持UPnP协议的私网IPC,公网用户能通过登录NVR后,然后再转到IPC上实现对IPC的访问,主要是登录到IPC界面实现对其的配置。对于用户来说,操作非常简便。对于私网中的IPC来说,也无需做任何改进;对于NVR和NAT设备来说,改动也非常少。Compared with the prior art, the method of the present invention does not support the private network IPC of the UPnP protocol, and the public network user can log in to the NVR, and then transfer to the IPC to realize the access to the IPC, mainly to log in to the IPC interface to realize the access to the IPC. its configuration. For users, the operation is very simple. For the IPC in the private network, there is no need to make any improvements; for the NVR and NAT devices, there are very few changes.

附图说明Description of drawings

图1是一种现有的监控网络图。FIG. 1 is a diagram of an existing monitoring network.

图2是本发明实施例流程图。Fig. 2 is a flowchart of an embodiment of the present invention.

图3~图6是UPnP报文示例。Figure 3 to Figure 6 are examples of UPnP packets.

图7是本发明实施例界面图示例。Fig. 7 is an example of the interface diagram of the embodiment of the present invention.

图8是本发明装置逻辑结构图。Fig. 8 is a logical structure diagram of the device of the present invention.

具体实施方式Detailed ways

针对背景技术中提出的问题,本发明提供一种即插即用特性的终端访问机制。以下通过具体实施例详细说明。Aiming at the problems raised in the background technology, the present invention provides a terminal access mechanism with a plug-and-play feature. It will be described in detail below through specific examples.

对于监控私网中的具备UPnP特性的监控终端来说,当其开启了UPnP功能后就可以从支持UPnP的NAT路由器进行端口映射。当处于公网的用户,被告知了该监控终端的公网IP地址和该映射的端口后就可以直接登录该监控终端了。但是对于不具备UPnP特性的处于私网的监控终端来说,要让位于公网的用户主动对其进行访问却不是一件容易的事。For the monitoring terminal with UPnP feature in the monitoring private network, when the UPnP function is turned on, it can perform port mapping from the NAT router supporting UPnP. When the user in the public network is informed of the public network IP address of the monitoring terminal and the mapped port, he can directly log in to the monitoring terminal. But for the monitoring terminal in the private network that does not have the UPnP feature, it is not an easy task to let the users in the public network actively access it.

比如说当前一种典型的监控网络,构建的私网中包括NVR设备和若干IPC设备;这些IPC设备接受NVR设备的控制和管理,其上电后向NVR设备进行注册;NVR设备具有UPnP功能,但是IPC却不具备UPnP功能。当公网用户需要主动访问这些IPC,比如进行如背景技术中所提到的登录到其界面上进行配置参数修改时,将无能为力。For example, in a typical current monitoring network, the private network built includes NVR equipment and several IPC equipment; these IPC equipment accept the control and management of the NVR equipment, and register with the NVR equipment after it is powered on; the NVR equipment has UPnP function, But IPC does not have UPnP function. When public network users need to actively access these IPCs, such as logging in to the interface to modify configuration parameters as mentioned in the background art, they will be helpless.

发明人充分利用当前该监控网络的特点:NVR具有UPnP功能;用户需要访问的不具有UPnP功能的IPC均需要向NVR注册接受其控制和管理,来设计一套简便易用的方法解决前文提到的问题来解决公网用户对IPC的主动访问。The inventor makes full use of the characteristics of the current monitoring network: the NVR has the UPnP function; the IPCs that do not have the UPnP function that the user needs to access all need to register with the NVR to accept its control and management, and design a set of easy-to-use methods to solve the problems mentioned above. To solve the problem of active access to IPC by public network users.

以下实施例以前文提到的NVR和IPC为例进行说明,但可以理解的是不能以此作为对本发明的限定。The following embodiments are described by taking the aforementioned NVR and IPC as examples, but it can be understood that this should not be used as a limitation of the present invention.

下面结合图2,对本发明实施例进行详细描述。The embodiment of the present invention will be described in detail below with reference to FIG. 2 .

S21、NVR向NAT设备发送UPnP控制报文请求自身的端口映射,该映射后的端口信息将提供给公网用户使其登录该NVR。S21. The NVR sends a UPnP control message to the NAT device to request its own port mapping, and the mapped port information will be provided to the public network user to log in to the NVR.

NVR开启UPnP后,首先从DHCP服务器获得一个私网IP地址,然后向NAT路由器发送UPnP控制报文请求进行端口映射。After enabling UPnP, the NVR first obtains a private network IP address from the DHCP server, and then sends a UPnP control message to the NAT router to request port mapping.

S22、NAT设备接收到NVR的请求后,对其中的端口进行映射成功后回复200OK给NVR,表示已经成功将25118端口成功映射给NVR。请参图4的回复报文的一个例子。S22. After receiving the request from the NVR, the NAT device maps the ports therein successfully and then replies 200 OK to the NVR, indicating that the port 25118 has been successfully mapped to the NVR. Please refer to an example of the reply message in FIG. 4 .

NAT路由器成功对NVR进行端口映射。此时在公网的用户可以被人工告知此NVR的公网IP和端口,然后就可以直接登录此NVR。NVR向NAT路由器发的UPnP控制报文结构的一个例子请参图3。在该控制报文中,NVR要求NAT设备映射给自身的端口为25118。The NAT router successfully performs port mapping on the NVR. At this time, users in the public network can be manually informed of the public network IP and port of the NVR, and then they can directly log in to the NVR. Please refer to Figure 3 for an example of the structure of the UPnP control message sent by the NVR to the NAT router. In the control message, the NVR requires the NAT device to map the port to itself as 25118.

假设NAT路由器的公网地址为222.100.10.1,那么公网用户在浏览器输入222.100.10.1:25118就能登录NVR了。Assuming that the public network address of the NAT router is 222.100.10.1, then public network users can log in to the NVR by entering 222.100.10.1:25118 in the browser.

S23、IPC上电后向NVR进行注册。S23. After the IPC is powered on, it registers with the NVR.

在同一私网中的不支持UPnP的IPC上电后,从DHCP服务器获得IP地址或静态配置IP地址后向NVR进行注册;IPC可以以ONVIF协议加入该NVR,当然也不排除其他方式。After the IPC that does not support UPnP in the same private network is powered on, it obtains an IP address from the DHCP server or configures the IP address statically and then registers with the NVR; the IPC can join the NVR through the ONVIF protocol, and of course other methods are not excluded.

S24、NVR接收IPC的注册消息。S24. The NVR receives the registration message of the IPC.

NVR接收IPC的注册消息后,可以通过ARP消息或直接通过注册消息知道对应IPC的MAC地址。为了很好的区分各个IPC的信息,NVR可以在本地生成一张存储IPC的名称、IP地址与MAC地址对应关系的IPC表。After receiving the registration message of the IPC, the NVR can know the MAC address of the corresponding IPC through the ARP message or directly through the registration message. In order to better distinguish the information of each IPC, the NVR can locally generate an IPC table that stores the corresponding relationship between the name of the IPC, the IP address and the MAC address.

需要说明的是,后续对IPC的认证以MAC地址绑定的方式进行。这是因为当IPC的私网IP地址变化后(比如IPC重启或DHCP服务器重启等情况),NVR即时根据MAC地址刷新IPC表,这样能避免当重新获取的私网地址与其他IPC以前的私网地址冲突导致表项刷新失败等问题的风险。It should be noted that subsequent authentication of the IPC is performed in a MAC address binding manner. This is because when the private network IP address of the IPC changes (for example, when the IPC is restarted or the DHCP server is restarted, etc.), the NVR immediately refreshes the IPC table according to the MAC address. The risk of address conflicts causing problems such as entry refresh failures.

表1是NVR本地保存的IPC表的一个例子:Table 1 is an example of the IPC table saved locally by the NVR:

序号serial numberIPC编码(名称)IPC code (name)MAC地址MAC address私网IP地址Private network IP address公网IP地址和端口Public IP address and port11HIC2421EHIC2421E48ea6306350e48ea6306350e192.168.1.3192.168.1.3//22HIC3401SHIC3401S48ea6306860e48ea6306860e192.168.1.4192.168.1.4//….....….....….....….....….....

表1Table 1

在表1的例子中记录了两个注册到NVR上的IPC的信息,包括IPC的名称、MAC地址、私网IP地址信息。In the example in Table 1, the information of two IPCs registered to the NVR is recorded, including the name of the IPC, MAC address, and private network IP address information.

S25、NVR发送改造后的UPnP控制报文给NAT设备请求IPC的端口映射。S25. The NVR sends the modified UPnP control message to the NAT device to request port mapping of the IPC.

NVR构造新的UPnP控制报文,然后发送给NAT路由器请求注册在NVR上的IPC的端口映射。在一个例子中,该新的UPnP控制报文携带IPC的私网IP地址、MAC地址和映射的端口。实际上,映射的端口信息可以不携带,因为NAT设备完全可以自己主动地将自己拥有的端口资源分配给IPC。并且,MAC地址也可以不携带。而IPC的私网IP地址需要携带在该控制报文中,从而使得NAT设备上形成包含该IPC私网IP地址和待请求端口的映射信息,这样用户在公网访问该IPC时,NAT设备就能寻址到该IPC。按照表1的例子,两个IPC注册到了NVR上,所以NVR在构造的新UPnP控制报文中携带了这两个IPC的信息,请参图5该控制报文的一个例子。The NVR constructs a new UPnP control message, and then sends it to the NAT router to request port mapping of the IPC registered on the NVR. In an example, the new UPnP control message carries the private network IP address, MAC address and mapped port of the IPC. In fact, the mapped port information does not need to be carried, because the NAT device can actively allocate its own port resources to the IPC. Moreover, the MAC address may not be carried. The private network IP address of the IPC needs to be carried in the control message, so that the mapping information including the private network IP address of the IPC and the port to be requested is formed on the NAT device, so that when the user accesses the IPC on the public network, the NAT device will The IPC can be addressed. According to the example in Table 1, two IPCs are registered on the NVR, so the new UPnP control message constructed by the NVR carries the information of the two IPCs. Please refer to FIG. 5 for an example of the control message.

S26、NAT设备解析该新的UPnP控制报文,对每个IPC需要映射的端口进行一一映射。S26. The NAT device parses the new UPnP control message, and performs one-to-one mapping for each port to be mapped by the IPC.

NAT路由器收到新的UPnP控制报文时能正确识别,并对该报文中每个IPC需要映射的端口进行一一映射。映射成功后,NAT路由器回复200OK给NVR,表示已经成功将IPC的端口进行映射。请参图6所示的NAT路由器的回复报文的一个例子。名称为HIC2421E的IPC成功映射端口为25119;名称为HIC3401S的IPC成功映射端口为25120。When the NAT router receives a new UPnP control message, it can correctly identify it, and perform one-to-one mapping of each IPC port in the message that needs to be mapped. After the mapping is successful, the NAT router will reply 200OK to the NVR, indicating that the port of the IPC has been successfully mapped. Please refer to an example of the reply message of the NAT router shown in FIG. 6 . The IPC named HIC2421E is successfully mapped to port 25119; the IPC named HIC3401S is successfully mapped to port 25120.

S27、NVR接收NAT设备映射后的IPC的端口信息,并将该端口信息提供给用户使其能访问IPC。S27. The NVR receives the port information of the IPC mapped by the NAT device, and provides the port information to the user to enable access to the IPC.

NVR接收到映射后的IPC的端口信息后,可以通过报文直接将其发送给公网中的用户。公网中的用户收到端口信息后,再结合IPC的公网地址(和NVR的公网地址相同)就可以直接访问私网中的IPC了。如果NVR并不知道有哪些用户需要访问IPC或者需要访问IPC的用户很多,该将端口通知到各个用户的方法显得比较繁琐。After receiving the port information of the mapped IPC, the NVR can directly send it to users in the public network through a message. After receiving the port information, users in the public network can directly access the IPC in the private network by combining the public network address of the IPC (same as the public network address of the NVR). If the NVR does not know which users need to access the IPC or there are many users who need to access the IPC, the method of notifying the port to each user seems rather cumbersome.

所以,这里采用另一种对NVR、对用户操作来讲都非常方便的方法:NVR在接收到NAT设备映射后的IPC的端口信息后,在自身的WEB界面上生成对应IPC名称的按钮,当用户点击该按钮时,能自动生成包含该IPC端口的URL。请参图7,在NVR的界面上,有一个名称为HIC2421E的IPC的按钮,当用户点击该按钮时,在用户的浏览器中,将生成“http://222.100.10.1:25119”的URL。这样用户就可以直接通过NAT路由器(NAT路由器上保存有IPC的映射信息:25119对应的私网IP地址192.168.1.3)寻址到对应的IPC进行访问。这里的IP地址222.100.10.1为NAT路由器的公网IP地址,也是私网中设备的私网IP地址映射后对应的公网IP地址,25119是HIC2421E映射后的端口。Therefore, here is another method that is very convenient for NVR and user operations: after receiving the IPC port information mapped by the NAT device, the NVR generates a button corresponding to the IPC name on its own WEB interface. When the user clicks the button, a URL including the IPC port can be automatically generated. Please refer to Figure 7. On the NVR interface, there is an IPC button named HIC2421E. When the user clicks the button, the URL of "http://222.100.10.1:25119" will be generated in the user's browser . In this way, the user can directly address the corresponding IPC through the NAT router (the mapping information of the IPC is stored on the NAT router: 25119 corresponds to the private network IP address 192.168.1.3). The IP address 222.100.10.1 here is the public network IP address of the NAT router, which is also the corresponding public network IP address after the private network IP address of the device in the private network is mapped, and 25119 is the port after the mapping of the HIC2421E.

NVR可以将映射后的IPC端口信息保存在本地IPC表对应的表项中,请参表2;然后根据该IPC表中记录的每个IPC对应的端口信息刷新WEB界面上对应IPC的按钮。这些按钮可以在IPC注册到NVR上后就产生,在获得映射的端口信息后使得按钮的点击操作能关联到IPC的地址端口信息。The NVR can save the mapped IPC port information in the corresponding entry of the local IPC table, please refer to Table 2; then refresh the corresponding IPC button on the WEB interface according to the port information corresponding to each IPC recorded in the IPC table. These buttons can be generated after the IPC is registered on the NVR, and after obtaining the mapped port information, the click operation of the button can be associated with the address port information of the IPC.

序号serial numberIPC编码(名称)IPC code (name)MAC地址MAC address私网IP地址Private network IP address公网IP地址和端口Public IP address and port11HIC2421EHIC2421E48ea6306350e48ea6306350e192.168.1.3192.168.1.3222.100.10.1:25119222.100.10.1:2511922HIC3401SHIC3401S48ea6306860e48ea6306860e192.168.1.4192.168.1.4222.100.10.1:25120222.100.10.1:25120….....….....….....….....….....

表2Table 2

对于用户来讲,其可以按照现有的方式登录到NVR设备上。如果要对NVR下的IPC进行相关配置的更改,只需要在登录到NVR后,在NVR的界面上点击相关IPC的按钮,就能自动的登录到IPC的界面上,可以说极其方便。另外,用户访问的IPC的界面与NVR无关,所以此操作不会占用NVR的CPU和内存。For users, they can log in to the NVR device in the existing way. If you want to change the relevant configuration of the IPC under the NVR, you only need to click the relevant IPC button on the NVR interface after logging in to the NVR, and you can automatically log in to the IPC interface, which can be said to be extremely convenient. In addition, the interface of the IPC accessed by the user has nothing to do with the NVR, so this operation will not occupy the CPU and memory of the NVR.

需要说明的是,上述流程中的有些步骤之间的可以交换先后顺序,比如说步骤S21和步骤23之间。It should be noted that the order of some steps in the above process can be exchanged, for example, between step S21 and step 23 .

基于同样的构思,本发明还提供一种通用即插即用的监控终端访问装置。该装置应用于第一监控终端。该装置包括:第一UPnP模块、第二UPnP模块、第二终端链接模块,请参图8。Based on the same idea, the present invention also provides a universal plug and play monitoring terminal access device. The device is applied to the first monitoring terminal. The device includes: a first UPnP module, a second UPnP module, and a second terminal link module, please refer to FIG. 8 .

该第一UPnP模块,用于向NAT设备发送UPnP控制报文请求自身的端口映射,该映射后的端口信息用来提供给公网用户使其登录自身;The first UPnP module is used to send a UPnP control message to the NAT device to request its own port mapping, and the mapped port information is used to provide public network users to log in themselves;

该第二UPnP模块,用于在收到第二监控终端的注册报文后,向NAT设备发送改造后的UPnP控制报文请求第二监控终端的端口映射,该UPnP控制报文至少包括第二监控终端的私网IP地址,以使得NAT设备上形成包含第二监控终端的私网IP地址和待请求端口的映射信息;The second UPnP module is used to send a modified UPnP control message to the NAT device after receiving the registration message of the second monitoring terminal to request port mapping of the second monitoring terminal, and the UPnP control message includes at least the second The private IP address of the monitoring terminal, so that the mapping information comprising the private IP address of the second monitoring terminal and the port to be requested is formed on the NAT device;

该第二终端链接模块,用于接收NAT设备映射后的第二监控终端的端口信息,并在所述公网用户登录自身后将该端口信息提供给该公网用户,使其能访问该第二监控终端。The second terminal link module is used to receive the port information of the second monitoring terminal mapped by the NAT device, and provide the port information to the public network user after the public network user logs in himself, so that he can access the second terminal 2. Monitoring terminal.

该第二终端链接模块在所述公网用户登录自身后将该端口信息提供给该公网用户具体为:在第一监控终端的WEB界面上生成对应该第二监控终端名称的按钮,当用户点击该按钮时,自动生成包含该第二监控终端端口的URL。The second terminal link module provides the port information to the public network user after the public network user logs in to itself, specifically: generating a button corresponding to the second monitoring terminal name on the WEB interface of the first monitoring terminal, when the user When the button is clicked, a URL including the port of the second monitoring terminal is automatically generated.

该装置还包括表项生成模块,该表项生成模块在接收第二终端的注册报文后,在本地生成第二监控终端对应的表项,该表项内容包括:第二监控终端的名称、MAC地址、私网IP地址;所述改造后的UPnP控制报文还包含第二监控终端的MAC地址;该表项生成模块还在接收到NAT设备映射后的第二监控终端的端口信息后,将该端口信息记录在该第二监控终端对应的表项中。The device also includes an entry generation module. After receiving the registration message of the second terminal, the entry generation module locally generates an entry corresponding to the second monitoring terminal, and the content of the entry includes: the name of the second monitoring terminal, MAC address, private network IP address; The UPnP control message after described transformation also comprises the MAC address of the second monitoring terminal; After the port information of the second monitoring terminal after receiving the NAT device mapping, the entry generation module, Record the port information in the entry corresponding to the second monitoring terminal.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (8)

CN201410370713.7A2014-07-302014-07-30Universal plug and play (UPnP) monitoring terminal access method and access deviceActiveCN104104926B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410370713.7ACN104104926B (en)2014-07-302014-07-30Universal plug and play (UPnP) monitoring terminal access method and access device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410370713.7ACN104104926B (en)2014-07-302014-07-30Universal plug and play (UPnP) monitoring terminal access method and access device

Publications (2)

Publication NumberPublication Date
CN104104926Atrue CN104104926A (en)2014-10-15
CN104104926B CN104104926B (en)2017-04-19

Family

ID=51672691

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410370713.7AActiveCN104104926B (en)2014-07-302014-07-30Universal plug and play (UPnP) monitoring terminal access method and access device

Country Status (1)

CountryLink
CN (1)CN104104926B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104539902A (en)*2014-12-292015-04-22浙江宇视科技有限公司IPC remote access method and system
CN104883547A (en)*2015-06-162015-09-02浙江宇视科技有限公司IPC access method based on physical port of network access equipment, and NVR
CN105611208A (en)*2015-12-312016-05-25深圳市磊科实业有限公司Method for performing real-time limited access on NVR (Network Video Recorder) by external terminal equipment
CN105656680A (en)*2016-01-292016-06-08浙江宇视科技有限公司Method and device for controlling web camera
CN105979022A (en)*2016-04-282016-09-28Tcl集团股份有限公司UPnP (universal plug and play) protocol-based NAT (network address translation) traversal method and system
CN109151407A (en)*2018-11-052019-01-04郑州市景安网络科技股份有限公司A kind of video data acquiring system
CN109257560A (en)*2017-07-122019-01-22杭州海康威视数字技术股份有限公司A kind of video recording plan automatic generation method, apparatus and system
CN109391704A (en)*2017-08-112019-02-26浙江宇视科技有限公司A kind of across the private network access method of video monitoring equipment and device
CN109995482A (en)*2017-12-292019-07-09杭州海康威视系统技术有限公司Data transmission method, device, equipment and computer readable storage medium
CN111327716A (en)*2019-08-282020-06-23杭州海康威视系统技术有限公司Service interaction method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101184063A (en)*2007-10-112008-05-21华为技术有限公司 Method, device and system for controlling non-universal plug and play UPnP equipment
CN102647316A (en)*2011-09-142012-08-22中国科学院计算技术研究所 UPnP device remote interconnection method, system and device
US20130305291A1 (en)*2006-01-272013-11-14Robin DuaMethod and system to share media content between devices via near field commmunication (nfc) and wireless communication
CN103414798A (en)*2013-07-312013-11-27中国联合网络通信集团有限公司Communication method, device and system based on network address translation
CN103442224A (en)*2013-09-092013-12-11杭州巨峰科技有限公司NAT penetration-based video monitoring access strategy and realization method
US20140143851A1 (en)*2007-06-122014-05-22Marc BaumForming a security network including integrated security system components and network devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20130305291A1 (en)*2006-01-272013-11-14Robin DuaMethod and system to share media content between devices via near field commmunication (nfc) and wireless communication
US20140143851A1 (en)*2007-06-122014-05-22Marc BaumForming a security network including integrated security system components and network devices
CN101184063A (en)*2007-10-112008-05-21华为技术有限公司 Method, device and system for controlling non-universal plug and play UPnP equipment
CN102647316A (en)*2011-09-142012-08-22中国科学院计算技术研究所 UPnP device remote interconnection method, system and device
CN103414798A (en)*2013-07-312013-11-27中国联合网络通信集团有限公司Communication method, device and system based on network address translation
CN103442224A (en)*2013-09-092013-12-11杭州巨峰科技有限公司NAT penetration-based video monitoring access strategy and realization method

Cited By (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104539902B (en)*2014-12-292018-06-05浙江宇视科技有限公司The remote access method and system of a kind of IPC
CN104539902A (en)*2014-12-292015-04-22浙江宇视科技有限公司IPC remote access method and system
CN104883547B (en)*2015-06-162019-04-12浙江宇视科技有限公司Method and NVR based on network access equipment physical port access IPC
CN104883547A (en)*2015-06-162015-09-02浙江宇视科技有限公司IPC access method based on physical port of network access equipment, and NVR
CN105611208A (en)*2015-12-312016-05-25深圳市磊科实业有限公司Method for performing real-time limited access on NVR (Network Video Recorder) by external terminal equipment
CN105656680A (en)*2016-01-292016-06-08浙江宇视科技有限公司Method and device for controlling web camera
CN105656680B (en)*2016-01-292019-12-13浙江宇视科技有限公司 Method and device for controlling a network camera
CN105979022A (en)*2016-04-282016-09-28Tcl集团股份有限公司UPnP (universal plug and play) protocol-based NAT (network address translation) traversal method and system
CN109257560A (en)*2017-07-122019-01-22杭州海康威视数字技术股份有限公司A kind of video recording plan automatic generation method, apparatus and system
CN109391704A (en)*2017-08-112019-02-26浙江宇视科技有限公司A kind of across the private network access method of video monitoring equipment and device
CN109391704B (en)*2017-08-112022-06-14浙江宇视科技有限公司Cross-private-network access method and device for video monitoring equipment
CN109995482A (en)*2017-12-292019-07-09杭州海康威视系统技术有限公司Data transmission method, device, equipment and computer readable storage medium
CN109151407A (en)*2018-11-052019-01-04郑州市景安网络科技股份有限公司A kind of video data acquiring system
CN109151407B (en)*2018-11-052020-11-06郑州市景安网络科技股份有限公司Video data acquisition system
CN111327716A (en)*2019-08-282020-06-23杭州海康威视系统技术有限公司Service interaction method and device
CN111327716B (en)*2019-08-282022-08-05杭州海康威视系统技术有限公司Service interaction method and device

Also Published As

Publication numberPublication date
CN104104926B (en)2017-04-19

Similar Documents

PublicationPublication DateTitle
CN104104926B (en)Universal plug and play (UPnP) monitoring terminal access method and access device
US8447843B2 (en)System, method and computer program product for identifying, configuring and accessing a device on a network
KR101822221B1 (en)Method of distributing information regarding one or more electrical devices and system for the same
US8626921B2 (en)Device and service management based on layer 2 through layer 7 device attributes
WO2017148308A1 (en)Method, apparatus and system for accessing network by internet-of-things device
Ammar et al.Network-protocol-based iot device identification
US9774668B2 (en)Communication system for establishing P2P connections and the corresponding devices using the same
CN104093149B (en)The radio switch-in method and device of a kind of monitoring device
US10630551B2 (en)Method and apparatus for automatic networking of gateway device
TW200300312A (en)Parameter setting system
KR101701158B1 (en)Method and system of providing remote access for device within home network
CN107948339B (en) A network addressing method, device and device
US8549118B2 (en)Updating a domain name server with information corresponding to dynamically assigned internet protocol addresses
US20180227173A1 (en)Dynamic Network Awareness
CN101896897A (en)Apparatus and method for providing accessible home network information in remote access environment
WO2017215492A1 (en)Device detection method and apparatus
WO2020038443A1 (en)Bridging communication method and device
CN111049946A (en)Portal authentication method, Portal authentication system, electronic equipment and storage medium
CN1934844B (en)Server device, client device, and network system
WO2016034006A1 (en)Packet sending method and access device
CN102761625A (en)Method and system for registering domain name for video monitoring terminal
JP5169461B2 (en) Security parameter distribution apparatus and security parameter distribution method
KR101860964B1 (en)Method and system for securing access to configuration information stored in universal plug and play data models
WO2008039481A1 (en)System, method and computer program product for identifying, configuring and accessing a device on a network
JP2012209678A (en)Communication device and network connection method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp