CN102413158A - IP camera access method based on P2P - Google Patents
IP camera access method based on P2P Download PDFInfo
- Publication number
- CN102413158A CN102413158A CN2011100078943A CN201110007894A CN102413158A CN 102413158 A CN102413158 A CN 102413158A CN 2011100078943 A CN2011100078943 A CN 2011100078943A CN 201110007894 A CN201110007894 A CN 201110007894A CN 102413158 A CN102413158 A CN 102413158A
- Authority
- CN
- China
- Prior art keywords
- camera
- router
- server
- port
- address
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to an IP camera access method based on peer-to-peer (P2P). A P2P technology is utilized to enable an IP camera to establish a legal session through a server. Advantages of the access method are as follows: a p2p access technology on the Internet is applied to an IP camera, so that restriction that an external network IP address can not access a multi-layer NAT internal network in the prior art is broken; therefore, video monitoring interconnection can be realized everywhere; and meanwhile, hardware costs and a network complexity are not increased.
Description
Technical field
The invention belongs to the web camera communication field, particularly a kind of IP camera access method based on p2p.
Background technology
IP camera claims web camera again; It is a web page server that can independently operate, and integrated network and WEB service function can be sent to the video of production Anywhere through network; As long as the user imports IP address or the network name of IP camera on the WEB browser; Just can realize visiting at any time live video, and can carry out intercommunication, can be widely used in the serial place of large-scale sales field, school, factory with computer.
Present IP camera can only be limited in Intranet monitoring basically or have outer net IP but open fixed port or have only on the network of one deck NAT and move.If the user is the broadband, sub-district, the internet of outer net can't have access to IP camera under the situation that can't apply for fixed port.And at present P2P (Peer-to-Peer, point-to-point) extensively sent out be applied to the Internet, no matter urgent need can solve the technology that can have access to IP camera in Intranet, outer net and via what NAT.
Summary of the invention
The object of the present invention is to provide a kind of access method that no matter can have access to IP camera in Intranet, outer net and via what NAT based on P2P.
Based on the IP camera access method of P2P, its step is following:
Step 1: IP camera A is Connection Service device C at first, and server C obtains address and the port of the outer net NA of IP camera A;
Step 2: IP camera B Connection Service device C, server C obtains address and the port of the outer net NB of IP camera B;
Step 3: IP camera B sends and IP camera A communication instruction to server C;
Step 4: server C sends out communication instruction through router-A and gives IP camera A, and this communication instruction comprises address and the port of the outer net router B of IP camera B;
Step 5: IP camera A sends out packet to router B; Because this moment, router B was still also for setting up IP camera A to the legal session of router B; Therefore this packet is dropped because of illegal session; Meanwhile, set up the legal session of IP camera A on the router B to router B;
Step 6: IP camera A sends out packet and gives server C, and server C has set up legal session information to router B for IP camera B transmission IP camera A after receiving packet;
Step 7: IP camera B sends out router B packet to the outer net of IP camera A after receiving the command information that server C sends; Because IP camera A has set up legal session to router B, router B and router-A are set up legitimate correspondence session;
Step 8: IP camera B sends information through router B to router-A, is transmitted to IP camera A after the router-A reception information, and communication port was set up and accomplished this moment.
The advantage of the IP camera access method based on P2P of the present invention is: the present invention is the basis with the P2P technology; No matter make the user can have access to IP camera, enlarged the scope of application of IP camera greatly in Intranet, outer net and via what NAT.
Description of drawings
Fig. 1 is based on the visit sketch map of the IP camera access method of P2P.
Embodiment
As shown in Figure 1, be the visit of IP camera between Intranet A and the Intranet B, the communication connected mode between IP camera A, IP camera B, Router A, Router B, the Server is specific as follows:
IP camera A and IP camera B are respectively the IP camera of two Intranets, and Router A, Router B are respectively corresponding with it router.
Intranet IP address and the port of setting IP camera A are 192.168.0.1:1234, and the Intranet IP address of IP camera B and port are 192.168.0.18:1234; The IP address of Router A is 202.100.100.100, and its port is 80000; The IP address of Router B is 204.100.100.200, and its port is 89000; The IP address of Server is 114.247.16.66.
IP camera A sends to Server through port 80000 through Router A after with packet encapsulation and sends communication and connect request package; Server obtains address and the port of Router A; Equally; IP camera B sends to Server through port 89000 through Router B after with packet encapsulation and sends communication and connect request package, and Server obtains address and the port of Router B.
Server is to Router A transmission and inform that the address of Router B and port are 204.100.100.200:89000; Router A is transmitted to IP camera A with address and the port of Router B simultaneously; Make its address that obtains Router B and port; In like manner; Server is to Router B transmission and inform that the address of Router A and port are 202.100.100.100:80000, and Router B is transmitted to IP camera B with address and the port of Router A simultaneously, makes its address that obtains Router A and port.
IP camera A sends address from Frame to Router B and port 204.100.100.200:89000, and at this moment, Router A sets up the legal session of IP camera A to Router, and in this simultaneously, Router B writes down this routing relation.
IP camera B sends address from Frame to Router A and port 202.100.100.100:80000; Router A is transmitted to IP camera A with Frame; IP camera A accepts request; And make corresponding to IP camera B; Address and port 204.100.100.200:89000 to Router B sends Frame simultaneously, and Router B is that 192.168.0.1:1234 transmits Intranet IP address from the Frame that receives to IP camera A and port, and IP camera A accepts Frame and sets up legal session.
At this moment, the communication port between IP camera A and the IP camera B is set up and is accomplished, and can visit each other.
Claims (1)
1. based on the IP camera access method of P2P, its step is following:
Step 1: IP camera A is Connection Service device C at first, and server C obtains address and the port of the outer net NA of IP camera A;
Step 2: IP camera B Connection Service device C, server C obtains address and the port of the outer net NB of IP camera B;
Step 3: IP camera B sends and IP camera A communication instruction to server C;
Step 4: server C sends out communication instruction through router-A and gives IP camera A, and this communication instruction comprises address and the port of the outer net router B of IP camera B;
Step 5: IP camera A sends out packet to router B; Because this moment, router B was still also for setting up IP camera A to the legal session of router B; Therefore this packet is dropped because of illegal session; Meanwhile, set up the legal session of IP camera A on the router B to router B;
Step 6: IP camera A sends out packet and gives server C, and server C has set up legal session information to router B for IP camera B transmission IP camera A after receiving packet;
Step 7: IP camera B sends out router B packet to the outer net of IP camera A after receiving the command information that server C sends; Because IP camera A has set up legal session to router B, router B and router-A are set up legitimate correspondence session;
Step 8: IP camera B sends information through router B to router-A, is transmitted to IP camera A after the router-A reception information, and communication port was set up and accomplished this moment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100078943A CN102413158A (en) | 2011-01-14 | 2011-01-14 | IP camera access method based on P2P |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100078943A CN102413158A (en) | 2011-01-14 | 2011-01-14 | IP camera access method based on P2P |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102413158A true CN102413158A (en) | 2012-04-11 |
Family
ID=45915005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100078943A Pending CN102413158A (en) | 2011-01-14 | 2011-01-14 | IP camera access method based on P2P |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102413158A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106572149A (en) * | 2016-10-13 | 2017-04-19 | 芯海科技(深圳)股份有限公司 | Writer remote control device and method based on P2P network technology |
CN107295102A (en) * | 2017-07-25 | 2017-10-24 | 广东美的制冷设备有限公司 | Point-to-point transmission detection method, system and the mobile terminal of the network equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863157A (en) * | 2005-10-28 | 2006-11-15 | 华为技术有限公司 | Method and apparatus for implementing network communication through NAT |
US20060271695A1 (en) * | 2005-05-16 | 2006-11-30 | Electronics Line 3000 Ltd. | System for remote secured operation, monitoring and control of security and other types of events |
CN101369959A (en) * | 2007-08-14 | 2009-02-18 | 中兴通讯股份有限公司 | Network address conversion traversing method supporting point-to-point service |
US20090106394A1 (en) * | 2007-10-18 | 2009-04-23 | D-Link Corporation | Method of establishing a tunnel between network terminal devices passing through firewall |
CN101938532A (en) * | 2010-09-17 | 2011-01-05 | 北京神州泰岳软件股份有限公司 | UDP-based method and system for penetrating through NAT equipment |
-
2011
- 2011-01-14 CN CN2011100078943A patent/CN102413158A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060271695A1 (en) * | 2005-05-16 | 2006-11-30 | Electronics Line 3000 Ltd. | System for remote secured operation, monitoring and control of security and other types of events |
CN1863157A (en) * | 2005-10-28 | 2006-11-15 | 华为技术有限公司 | Method and apparatus for implementing network communication through NAT |
CN101369959A (en) * | 2007-08-14 | 2009-02-18 | 中兴通讯股份有限公司 | Network address conversion traversing method supporting point-to-point service |
US20090106394A1 (en) * | 2007-10-18 | 2009-04-23 | D-Link Corporation | Method of establishing a tunnel between network terminal devices passing through firewall |
CN101938532A (en) * | 2010-09-17 | 2011-01-05 | 北京神州泰岳软件股份有限公司 | UDP-based method and system for penetrating through NAT equipment |
Non-Patent Citations (2)
Title |
---|
《中国优秀硕士学位论文全文数据库 信息科技辑》 20090515 云亮 "基于对等网的NAT穿透技术的研究和实现" , * |
云亮: ""基于对等网的NAT穿透技术的研究和实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 May 2009 (2009-05-15) * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106572149A (en) * | 2016-10-13 | 2017-04-19 | 芯海科技(深圳)股份有限公司 | Writer remote control device and method based on P2P network technology |
CN107295102A (en) * | 2017-07-25 | 2017-10-24 | 广东美的制冷设备有限公司 | Point-to-point transmission detection method, system and the mobile terminal of the network equipment |
CN107295102B (en) * | 2017-07-25 | 2020-02-28 | 广东美的制冷设备有限公司 | Point-to-point transmission detection method and system of network equipment and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jara et al. | Extending the Internet of Things to the Future Internet through IPv6 support | |
Bergmann et al. | A CoAP-gateway for smart homes | |
CN104836863B (en) | The system and method for realizing the mapping of TCP reverse ports | |
JP6085891B2 (en) | Access control method and system, and access point | |
GB0613417D0 (en) | Method for enabling communication between two network nodes | |
US9819574B2 (en) | Concerted multi-destination forwarding in a joint TRILL fabric and VXLAN/IP fabric data center | |
WO2007041662A3 (en) | Secured media communication across enterprise gateway | |
CN106534319A (en) | Method for direct access to target server through proxy server | |
US9313050B2 (en) | Method and gateway for extending EtherCAT network | |
CN103763407A (en) | Method for achieving address resolution protocol proxy through two-layer virtual local area network and local area network system | |
CN101895590A (en) | UDT-based system and method for realizing network address translator traversal | |
CN104092789B (en) | Session-aware network address translation penetration method | |
CN105072213A (en) | IPSec NAT bidirection traversing method, IPSec NAT bidirection traversing system and VPN gateway | |
WO2011071190A3 (en) | Method and apparatus for establishing virtual private networks | |
WO2007121262A3 (en) | Highly adaptable proxy traversal and authentication | |
CN106302847B (en) | Network transmission method and system for multi-layer network address translator structure | |
CN104092684A (en) | Method and device for supporting VPN based on OpenFlow protocol | |
CN101599992A (en) | P2PNAT traversal scheme based on SIP | |
CN103973826A (en) | Online video device access system and method | |
JP6211975B2 (en) | Network extension system, control device, and network extension method | |
CN102882733B (en) | A kind of cross-over NAT equipment realizes WEB network management method | |
CN103685007A (en) | Method for MAC address learning during packet forwarding of edge devices and edge device | |
CN102413158A (en) | IP camera access method based on P2P | |
Hoebeke et al. | Managed ecosystems of networked objects | |
CN104168302B (en) | Equipment manipulation implementation method, system and proxy gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120411 |