CN103533039B - P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system - Google Patents

P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system Download PDF

Info

Publication number
CN103533039B
CN103533039B CN201310463974.9A CN201310463974A CN103533039B CN 103533039 B CN103533039 B CN 103533039B CN 201310463974 A CN201310463974 A CN 201310463974A CN 103533039 B CN103533039 B CN 103533039B
Authority
CN
China
Prior art keywords
proxy server
forwarding
forwarding proxy
servers
web camera
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
CN201310463974.9A
Other languages
Chinese (zh)
Other versions
CN103533039A (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.)
SHENZHEN REECAM TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN REECAM TECHNOLOGY 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 SHENZHEN REECAM TECHNOLOGY Co Ltd filed Critical SHENZHEN REECAM TECHNOLOGY Co Ltd
Priority to CN201310463974.9A priority Critical patent/CN103533039B/en
Publication of CN103533039A publication Critical patent/CN103533039A/en
Application granted granted Critical
Publication of CN103533039B publication Critical patent/CN103533039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a P2P data transmission method: forwarding proxy servers locally store and submit the device ID (identity) information of network cameras of local area networks to a P2P server; a first monitoring terminal transmits connection request information to the first forwarding proxy server in the local area network, the first forwarding proxy server transmits connection forwarding proxy request information to the P2P server after receiving the connection request information, and according to the connection forwarding proxy request information, the P2P server queries the second forwarding proxy server, and transmits the information of the second forwarding proxy server to the first forwarding proxy server; the first forwarding proxy server queries whether the connection with the second forwarding proxy server succeeds, and if so, then the first forwarding proxy server creates a socket corresponding to a target network camera; and data are transmitted between the first monitoring terminal and the target network camera via the socket. The invention also discloses the forwarding proxy server and a system.

Description

The method of P2P data transfers, forwarding proxy server and system
Technical field
The present invention relates to technical field of data transmission, more particularly to the method for P2P data transfers, forwarding proxy server with System.
Background technology
In today's society, the application of the Internet is more and more extensive, our things at one's side, is more or less directed to The Internet." IP Camera " is exactly one of application, due to convenience, the functional diversity of " IP Camera ", closely Occupation rate over year commercially is more and more higher.But due to historical reasons, the limited amount of outer net IP address is most " IP Camera " is all to connect network using router, and this results in and is in " monitor terminal " of heterogeneous networks and directly cannot connect The photographic head is connect, so needing a kind of technology to solve this problem, " monitor terminal " and " net in LAN is realized The connection of network photographic head ", and P2P technologies are exactly first-selected solution.But traditional P2P solution techniques are that monitoring is whole every time End necessarily passes P2P servers with the connection of IP Camera, and such mode makes P2P server loads excessive, makes when serious Into network blockage.
The content of the invention
The invention provides P2P can be serviced by a kind of method of P2P data transfers, forwarding proxy server and system The load of device reduces.
The invention provides a kind of method of P2P data transfers, including:
The web cam device id information of this LAN is stored in local and reports P2P clothes by forwarding proxy server Business device;
First monitor terminal sends connectivity request message to the first forwarding proxy server in this LAN, the connection Solicited message includes the device id of purpose web camera, and the first forwarding proxy server receives the connectivity request message Afterwards, connection forwarding agent request information is sent to the P2P servers, the connection forwarding agent request information includes purpose net The device id of network video camera;
The P2P servers inquire the second forwarding proxy server according to the connection forwarding agent request information, will The second forwarding proxy server information is sent to the first forwarding proxy server;
Whether the first forwarding proxy server inquiry is successfully connected with the second forwarding proxy server, is then described the One forwarding proxy server creates a socket corresponding with the purpose web camera;
First monitor terminal is carried out data transmission with the purpose web camera by the socket.
Preferably, first monitor terminal carries out data biography with the purpose web camera by the socket It is defeated, specially:
First monitor terminal sends data to the described first forwarding proxy server;
The first forwarding proxy server is by inquiring about socket corresponding with purpose web camera, direct by data Issue the second forwarding proxy server;
After the second forwarding proxy server receives the data, the address of the purpose web camera is inquired about, will The data is activation is to the purpose web camera.
Preferably, when the described first forwarding proxy server is not successfully connected with the second forwarding proxy server, also wrap Include:
The first forwarding proxy server is sent to the P2P servers acts on behalf of connectivity request message;
The P2P servers are acted on behalf of described described in connectivity request message is transmitted to according to the connectivity request message of acting on behalf of Second forwarding proxy server;
It is described second forwarding proxy server receive it is described act on behalf of connectivity request message after respond it is described agency connection please Information is sought, and agreement is sent to the P2P servers and is acted on behalf of link information;
The agreement is acted on behalf of link information and issues the first forwarding proxy server by the P2P servers, and described the One forwarding proxy server and the described second forwarding proxy server successful connection.
Present invention also offers forwarding proxy server, including:
Collecting and reporting module, for being stored in local by the web cam device id information in this LAN and reporting P2P servers;
Receive and send connection request module, for receiving from the first monitor terminal the connectivity request message for sending, the company Connecing solicited message includes the device id of purpose web camera, and sends connection forwarding proxy requests letter to the P2P servers Breath, the connection forwarding agent request information include the device id of purpose web camera;
Inquiry link block, for receiving from the P2P servers the second forwarding proxy server information for sending, and root Whether it is successfully connected with the second forwarding proxy server according to the described second forwarding proxy server information inquiry, is then to send to create Socket information gives establishment socket module;
Socket module is created, for creating socket corresponding with the purpose web camera.
Preferably, also include:
Receive and send data module, for receiving from first monitor terminal data for sending;
Inquiry socket module, for inquiring about socket corresponding with purpose web camera, the data is directly sent out To the described second forwarding proxy server;
Receive and send data module, be additionally operable to receive from other forwarding proxy servers the data for sending over, inquire about institute The address of purpose web camera is stated, the data is activation that described other forwarding proxy servers are sended over is to the purpose net Network video camera.
Preferably, when the described first forwarding proxy server is not successfully connected with the second forwarding proxy server, also wrap Include:
Receiving Agent request module is sent, and connectivity request message is acted on behalf of for sending to the P2P servers, is additionally operable to connect Receive from other forwarding proxy servers described the forwarding from other of response after connectivity request message of acting on behalf of for sending over and act on behalf of clothes What business device was sended over acts on behalf of connectivity request message, sends agreement to the P2P servers and acts on behalf of link information, is additionally operable to receive Link information is acted on behalf of in the agreement sent from the P2P servers.
Present invention also offers a kind of system of P2P data transfers, including:
First forwarding proxy server, for the web cam device id information of this LAN is stored in locally simultaneously Offer P2P servers;
Second forwarding proxy server, is connected with P2P servers, is connected with purpose web camera, for by this local The web cam device id information of net is stored in local and reports P2P servers;
First monitor terminal, is connected with the first forwarding proxy server, for sending connectivity request message to this LAN The first interior forwarding proxy server, the connectivity request message include the device id of purpose web camera;
First forwarding proxy server, is connected with P2P servers, after being additionally operable to receive the connectivity request message, to institute State P2P servers and send connection forwarding agent request information, the connection forwarding agent request information includes purpose network shooting The device id of machine;
P2P servers, for inquiring the second forwarding proxy server according to the connection forwarding agent request information, will The second forwarding proxy server information is sent to the first forwarding proxy server;
First forwarding proxy server, is additionally operable to whether inquiry the first forwarding proxy server is acted on behalf of with the second forwarding Server is successfully connected, and is then to create a socket corresponding with the purpose web camera;
First monitor terminal, is additionally operable to carry out data transmission with the purpose web camera by the socket.
Preferably, also include:
First monitor terminal, is additionally operable to send data to the described first forwarding proxy server;
First forwarding proxy server, is additionally operable to by inquiring about socket corresponding with the purpose web camera, will The data directly issue the second forwarding proxy server;
Second forwarding proxy server, for receiving after the data, inquires about the address of the purpose web camera, will The data is activation is to the purpose web camera.
Preferably, when the described first forwarding proxy server is not successfully connected with the second forwarding proxy server, this is System also includes:
First forwarding proxy server, is additionally operable to the P2P servers send act on behalf of connectivity request message;
P2P servers, are additionally operable to be transmitted to the connectivity request message of acting on behalf of according to the connectivity request message of acting on behalf of The second forwarding proxy server;
Second forwarding proxy server, be additionally operable to receive it is described act on behalf of connectivity request message after respond agency's connection Solicited message, sends agreement to the P2P servers and acts on behalf of link information;
P2P servers, are additionally operable to agree to that acting on behalf of link information issues the first forwarding proxy server by described, described First forwarding proxy server and the described second forwarding proxy server successful connection.
The present invention implements above-described embodiment, by arranging forwarding proxy server in each LAN, it is only necessary to Jing Guoyi Secondary P2P servers are capable of achieving the communication of multi-to-multi between LAN, so significantly alleviate the pressure of P2P servers, Reduce the Connection Time between monitor terminal and web camera.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of method flow schematic diagram of P2P data transfers of the embodiment of the present invention;
Fig. 2 is the present invention using a kind of schematic flow sheet of another embodiment of the method for P2P data transfers;
Fig. 3 is a kind of structural representation of the system of P2P data transfers of the embodiment of the present invention;
Fig. 4 is a kind of structural representation of forwarding proxy server of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of the system of P2P data transfers of the embodiment of the present invention.
Specific embodiment
In order that the technical problem to be solved, technical scheme and beneficial effect become more apparent, below tie Drawings and Examples are closed, the present invention will be described in further detail.
A kind of method flow schematic diagram of P2P data transfers of the embodiment of the present invention shown in Fig. 1 is referred to, including:
Step S101:Forwarding proxy server by the web cam device id information of this LAN be stored in it is local and on Offer P2P servers.
Step S102:First monitor terminal sends connectivity request message to the first forwarding agency service in this LAN Device, the connectivity request message include the device id of purpose web camera, and the first forwarding proxy server receives the connection request After information, connection forwarding agent request information is sent to P2P servers, the connection forwarding agent request information includes purpose network The device id of video camera.
Step S103:P2P servers inquire the second forwarding proxy server according to connection forwarding agent request information, will The second forwarding proxy server information is sent to the first forwarding proxy server.
Step S104:Whether the first forwarding proxy server inquiry is successfully connected with the second forwarding proxy server, is then First forwarding proxy server creates a socket corresponding with purpose web camera.
Step S105:First monitor terminal is carried out data transmission with purpose web camera by the socket.
The present invention implements above-described embodiment, by arranging forwarding proxy server in each LAN, it is only necessary to Jing Guoyi Secondary P2P servers are capable of achieving the communication of multi-to-multi between LAN, so significantly alleviate the pressure of P2P servers, Reduce the Connection Time between monitor terminal and web camera.
With reference to the schematic flow sheet of another embodiment of the method for the of the invention a kind of P2P data transfers shown in Fig. 2, The method for further describing a kind of P2P data transfers of the embodiment of the present invention.For it easier comprehension, following examples knot The system diagram shown in Fig. 3 is closed illustrating.
As shown in figure 3, the system includes LAN 1, LAN 2 and P2P servers.LAN 1 includes at least one prison Control terminal 11, at least one web camera 12 forward proxy server 13.LAN 2 includes at least one monitor terminal 21, Web camera 221, web camera 222 forward proxy server 23.
Step S201:Forwarding proxy server all of monitor terminal or web camera into this LAN send extensively Information is broadcast, web cam device ID is sent to forwarding proxy server after receiving the broadcast message by web camera.
Specifically, for example the forwarding proxy server 23 in LAN 2 to the monitor terminal 21 in LAN 2, take the photograph by network Camera 221, web camera 222 send broadcast message, and web camera 221 receives the broadcast with web camera 222 to be believed After breath, the device id of web camera 221 is sent to forwarding proxy server 23, web camera 222 by web camera 221 The device id of web camera 222 is sent to into forwarding proxy server 23.
Step S202:Forwarding proxy server by the web cam device id information of this LAN be stored in it is local and on Offer P2P servers.
Specifically, proxy server 23 is forwarded by the device id of web camera 221 and the device id of web camera 222 It is stored in forwarding proxy server 23, and reports P2P servers, then P2P servers knows the forwarding in all LANs The corresponding situation of proxy server, web camera and monitor terminal.
Step S203:First monitor terminal sends connectivity request message to the first forwarding agency service in this LAN Device, the connectivity request message include the device id of purpose web camera, and the first forwarding proxy server receives the connection request After information, connection forwarding agent request information is sent to P2P servers.
Specifically, the monitor terminal 11 in LAN 1 sends connectivity request message and gives forwarding proxy server 13, the request Link information includes the device id of the web camera 221 in LAN 2.Forwarding proxy server 13 receives the connection request to be believed After breath, send connection forwarding agent request information and give P2P servers, the connection forwarding agent request information is included in LAN 2 Web camera 221 device id.
Step S204:P2P servers inquire the second forwarding proxy server according to connection forwarding agent request information, will The second forwarding proxy server information is sent to the first forwarding proxy server.
Specifically, device id inquiry of the P2P servers according to the web camera 221 in connection forwarding agent request information Belong to LAN 2 to web camera 221, and forward the forwarding proxy server that proxy server 23 is LAN 2.P2P takes Business device will forward 23 information of proxy server to be sent to forwarding proxy server 13.
Step S205:Whether the first forwarding proxy server inquiry is successfully connected with the second forwarding proxy server, otherwise Into step S206, it is then to enter step S207.
Specifically, forward proxy server 13 inquire about whether with forwarding 23 successful connection of proxy server.
Step S206:First forwarding proxy server is sent to P2P servers acts on behalf of connectivity request message, P2P servers Receive after this acts on behalf of connectivity request message, connectivity request message is acted on behalf of according to this this is acted on behalf of into connectivity request message and be transmitted to Two forwarding proxy servers, the second forwarding proxy server are received after this acts on behalf of connectivity request message and respond the information, to P2P Server sends agreement and acts on behalf of link information, and the agreement is acted on behalf of link information and issues the first forwarding agency service by P2P servers Device, the first forwarding proxy server and the second forwarding proxy server successful connection.
Specifically, forward proxy server 13 to send to P2P servers and act on behalf of connectivity request message, this acts on behalf of connection request Information includes the information for forwarding proxy server 23, and P2P servers are received after this acts on behalf of connectivity request message, according to the agency This is acted on behalf of connectivity request message and is transmitted to forwarding proxy server 23 by connectivity request message, and forwarding proxy server 23 is received This responds the information after acting on behalf of connectivity request message, send agreement to P2P servers and act on behalf of link information, and P2P servers should Agreement is acted on behalf of link information and issues forwarding proxy server 13, and forwarding proxy server 13 is connected into forwarding proxy server 23 Work(.
Step S207:First forwarding proxy server creates a socket corresponding with purpose web camera.
Specifically, forward proxy server 13 create one with 221 corresponding socket of web camera, by the socket Mouthful, forwarding proxy server 13 can be inquired and be needed by forwarding proxy server 23 with web camera 221.
Step S208:First forwarding proxy server is sent and purpose web camera successful connection to the first monitor terminal Information, the first monitor terminal to first forwarding proxy server send data.
Specifically, monitor terminal 11 receive that forwarding proxy server 13 sends with 221 successful connection of web camera Message, monitor terminal 11 send data to forwarding proxy server 13.
Step S209:First forwarding proxy server passes through to inquire about socket corresponding with purpose web camera, by number According to directly issuing the second forwarding proxy server.
Specifically, proxy server 13 is forwarded by inquiry and 221 corresponding socket of web camera, data are direct It is sent to forwarding proxy server 23.
Step S210:After second forwarding proxy server receives the data, the address of purpose web camera is inquired about, should Data is activation is to purpose web camera.
Specifically, after forwarding proxy server 23 to receive data, the address of web camera 221 is inquired about, by data is activation To web camera 221.
The present invention implements above-described embodiment, by arranging forwarding proxy server in each LAN, it is only necessary to Jing Guoyi Secondary P2P servers are capable of achieving the communication of multi-to-multi between LAN, so significantly alleviate the pressure of P2P servers, Reduce the Connection Time between monitor terminal and web camera.
With reference to a kind of structural representation of forwarding proxy server of the embodiment of the present invention shown in Fig. 4, further Describe the structure of the embodiment of the present invention forwarding proxy server in detail.
Collecting and reporting module 401, for the web cam device id information in this LAN is stored in locally simultaneously Offer P2P servers.
Receive and send connection request module 402, for receiving from the first monitor terminal the connectivity request message for sending, the company Connecing solicited message includes the device id of purpose web camera, and sends connection forwarding agent request information to the P2P servers, The connection forwarding agent request information includes the device id of purpose web camera.
Inquiry link block 403, for receiving from the P2P servers the second forwarding proxy server information for sending, and Whether it is successfully connected with the second forwarding proxy server according to the described second forwarding proxy server information inquiry, is then to send wound Build socket information and give establishment socket module.
Socket module 404 is created, for creating socket corresponding with the purpose web camera.
The forwarding proxy server also includes:
Receive and send data module 405, for receiving from the first monitor terminal the data for sending;
Inquiry socket module 406, for inquiring about socket corresponding with purpose web camera, the data is directly sent out To the second forwarding proxy server;
Receive and send data module 405, be additionally operable to receive from other forwarding proxy servers the data for sending over, inquiry The address of the purpose web camera, the data is activation that other forwarding proxy servers are sended over is to purpose network shooting Machine.
When the first forwarding proxy server is not successfully connected with the second forwarding proxy server, the forwarding proxy server Also include:
Receiving Agent request module 407 is sent, and connectivity request message is acted on behalf of for sending to P2P servers, is additionally operable to connect Receive from other forwarding proxy servers described the forwarding from other of response after connectivity request message of acting on behalf of for sending over and act on behalf of clothes Business device send over act on behalf of connectivity request message, to P2P servers send agreement act on behalf of link information, be additionally operable to receive from Link information is acted on behalf of in the agreement that P2P servers send.
The present invention implements above-described embodiment, by arranging forwarding proxy server in each LAN, it is only necessary to Jing Guoyi Secondary P2P servers are capable of achieving the communication of multi-to-multi between LAN, so significantly alleviate the pressure of P2P servers, Reduce the Connection Time between monitor terminal and web camera.
With reference to a kind of structural representation of the system of P2P data transfers of the embodiment of the present invention shown in Fig. 5, enter one Step describes the structure of the embodiment of the present invention system in detail.
First forwarding proxy server 501, for the web cam device id information of this LAN is stored in locally And report P2P servers 503.
Second forwarding proxy server 502, is connected with P2P servers 503, is connected with purpose web camera 504, is used for The web cam device id information of this LAN is stored in local and P2P servers are reported.
First monitor terminal 505, is connected with the first forwarding proxy server 501, for sending connectivity request message to this The first forwarding proxy server 501 in LAN, the connectivity request message include the device id of purpose web camera 504.
First forwarding proxy server 501, is connected with P2P servers 503, after being additionally operable to receive the connectivity request message, Connection forwarding agent request information is sent to P2P servers 503, the connection forwarding agent request information includes purpose network shooting The device id of machine 504.
P2P servers 503, for inquiring the second forwarding proxy server according to the connection forwarding agent request information 502, the second forwarding 502 information of proxy server is sent to into the first forwarding proxy server 501.
First forwarding proxy server 501, is additionally operable to inquiry first and forwards whether proxy server 501 forwards generation with second Reason server 502 is successfully connected, and is then to create one with 504 corresponding socket of purpose web camera.
First monitor terminal 505, is additionally operable to carry out data transmission with purpose web camera 504 by the socket.
The system also includes:
First monitor terminal 505, is additionally operable to send data to the first forwarding proxy server 501.
First forwarding proxy server 501, is additionally operable to by inquiry and 504 corresponding socket of purpose web camera, Data are directly issued the second forwarding proxy server 502.
Second forwarding proxy server 502, for receiving after the data, inquires about the address of purpose web camera 504, will The data is activation is to purpose web camera 504.
When the first forwarding proxy server 501 is not successfully connected with the second forwarding proxy server 502, the system is also wrapped Include:
First forwarding proxy server 501, is additionally operable to P2P servers 503 send act on behalf of connectivity request message.
P2P servers 503, are additionally operable to act on behalf of connectivity request message according to this and this is acted on behalf of connectivity request message are transmitted to Two forwarding proxy servers 502.
Second forwarding proxy server 502, is additionally operable to receive and the agency is responded after this acts on behalf of connectivity request message connects Solicited message, sends agreement to P2P servers 503 and acts on behalf of link information.
P2P servers 503, are additionally operable to for the agreement to act on behalf of link information and issue the first forwarding proxy server 501, and first Forwarding proxy server 501 and the second forwarding 502 successful connection of proxy server.
The present invention implements above-described embodiment, by arranging forwarding proxy server in each LAN, it is only necessary to Jing Guoyi Secondary P2P servers are capable of achieving the communication of multi-to-multi between LAN, so significantly alleviate the pressure of P2P servers, Reduce the Connection Time between monitor terminal and web camera.
It should be noted that through the above description of the embodiments, those skilled in the art can be understood that The mode of required hardware platform can be added to realize by software to the present invention, naturally it is also possible to all by hardware implementing. Based on such understanding, what technical scheme contributed to background technology in whole or in part can be with software product Form embody, the computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., bag Include some instructions to use so that a computer equipment (can be personal computer, server, or network equipment etc.) performs Method described in some parts of each embodiment of the invention or embodiment.
Preferred embodiment in the above disclosed only embodiment of the present invention, can not limit this with this certainly Bright interest field, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope covered by the present invention.

Claims (6)

1. a kind of method of P2P data transfers, it is characterised in that include:
First forwarding proxy server sends broadcast message to the first monitor terminal or web camera in the first LAN, Web cam device ID is sent to the first forwarding proxy server after receiving the broadcast message by web camera;
The web cam device id information of the first LAN is stored in local and reports P2P by the first forwarding proxy server Server;
First monitor terminal sends connectivity request message to the first forwarding proxy server in the first LAN, and the connection please Information is asked to include the device id of purpose web camera, the first forwarding proxy server receives the connectivity request message Afterwards, connection forwarding agent request information is sent to the P2P servers, the connection forwarding agent request information includes purpose net The device id of network video camera;
The P2P servers inquire the second forwarding generation positioned at the second LAN according to the connection forwarding agent request information Described second forwarding proxy server information is sent to the first forwarding proxy server by reason server;
Whether the first forwarding proxy server inquiry is successfully connected with the second forwarding proxy server, is then described first turn Send out proxy server and create a socket corresponding with the purpose web camera;
First monitor terminal is carried out data transmission with the purpose web camera by the socket,
First monitor terminal is carried out data transmission with the purpose web camera by the socket, specially:
First monitor terminal sends data to the described first forwarding proxy server;
Data are directly issued by the first forwarding proxy server by inquiring about socket corresponding with purpose web camera The second forwarding proxy server;
After the second forwarding proxy server receives the data, the address of the purpose web camera is inquired about, will be described Data is activation is to the purpose web camera.
2. the method for claim 1, it is characterised in that when the described first forwarding proxy server is acted on behalf of with the second forwarding Server is not successfully connected, and also includes:
The first forwarding proxy server is sent to the P2P servers acts on behalf of connectivity request message;
The connectivity request message of acting on behalf of is transmitted to described second according to the connectivity request message of acting on behalf of by the P2P servers Forwarding proxy server;
It is described second forwarding proxy server receive it is described act on behalf of connectivity request message after respond it is described act on behalf of connection request letter Breath, sends agreement to the P2P servers and acts on behalf of link information;
The P2P servers by it is described agreement act on behalf of link information issue it is described first forwarding proxy server, described first turn Proxy server is sent out with the described second forwarding proxy server successful connection.
3. proxy server is forwarded, it is characterised in that included:
Collecting and reporting module, sends broadcast message, net for all of monitor terminal or web camera into this LAN Web cam device ID is sent to collecting and reporting module after receiving the broadcast message by network video camera, is additionally operable to this local Web cam device id information in net is stored in local and reports P2P servers;
Receive and send connection request module, for receiving from the first monitor terminal the connectivity request message for sending, the connection please Ask information to include the device id of purpose web camera, and connection forwarding agent request information, institute are sent to the P2P servers Stating connection forwarding agent request information includes the device id of purpose web camera;
Inquiry link block, for receiving from the P2P servers the second forwarding proxy server information for sending, and according to institute State whether the inquiry of the second forwarding proxy server information is successfully connected with another forwarding proxy server positioned at another LAN, It is then to send establishment socket information to give establishment socket module;
Socket module is created, for creating socket corresponding with the purpose web camera,
Receive and send data module, for receiving from first monitor terminal data for sending;
The data, for inquiring about socket corresponding with purpose web camera, are directly issued institute by inquiry socket module State another forwarding proxy server;
Receive and send data module, be additionally operable to receive from other forwarding proxy servers the data for sending over, inquire about the mesh Web camera address, described other forwarding data is activations for sending over of proxy servers are taken the photograph to the purpose network Camera.
4. it is as claimed in claim 3 to forward proxy server, it is characterised in that to forward proxy server another with described when described One forwarding proxy server is not successfully connected, and also includes:
Receiving Agent request module is sent, and connectivity request message is acted on behalf of for sending to the P2P servers, is additionally operable to receive Respond after connectivity request message described from other forwarding proxy servers from acting on behalf of of sending over of other forwarding proxy servers What is sended over acts on behalf of connectivity request message, sends agreement to the P2P servers and acts on behalf of link information, is additionally operable to receive from institute Link information is acted on behalf of in the agreement for stating the transmission of P2P servers.
5. a kind of system of P2P data transfers, it is characterised in that include:
First forwarding proxy server, for sending broadcast to all of monitor terminal in the first LAN or web camera Web cam device ID is sent to the first forwarding proxy server after receiving the broadcast message by information, web camera, It is additionally operable to be stored in local by the web cam device id information of first LAN and report P2P servers;
Second forwarding proxy server, is connected with P2P servers, is connected with purpose web camera, for the second LAN Interior all of monitor terminal or web camera send broadcast message, and web camera is received network after the broadcast message Camera apparatus ID is sent to the second forwarding proxy server, also by the web cam device id information of second LAN It is stored in local and reports P2P servers;
First monitor terminal, is connected with the first forwarding proxy server, for sending connectivity request message in this LAN First forwarding proxy server, the connectivity request message include the device id of purpose web camera;
First forwarding proxy server, is connected with P2P servers, after being additionally operable to receive the connectivity request message, to the P2P Server sends connection forwarding agent request information, and the connection forwarding agent request information includes setting for purpose web camera Standby ID;
P2P servers, for inquiring the second forwarding proxy server according to the connection forwarding agent request information, will be described Second forwarding proxy server information is sent to the first forwarding proxy server;
First forwarding proxy server, is additionally operable to whether inquiry the first forwarding proxy server forwards agency service with second Device is successfully connected, and is then to create a socket corresponding with the purpose web camera;
First monitor terminal, is additionally operable to carry out data transmission with the purpose web camera by the socket,
First monitor terminal, is additionally operable to send data to the described first forwarding proxy server;
First forwarding proxy server, is additionally operable to by inquiring about socket corresponding with the purpose web camera, will be described Data directly issue the second forwarding proxy server;
Second forwarding proxy server, for receiving after the data, inquires about the address of the purpose web camera, will be described Data is activation is to the purpose web camera.
6. system as claimed in claim 5, it is characterised in that when the described first forwarding proxy server is acted on behalf of with the second forwarding Server is not successfully connected, and the system also includes:
First forwarding proxy server, is additionally operable to the P2P servers send act on behalf of connectivity request message;
P2P servers, are additionally operable to be acted on behalf of described described in connectivity request message is transmitted to according to the connectivity request message of acting on behalf of Second forwarding proxy server;
Second forwarding proxy server, be additionally operable to receive it is described act on behalf of connectivity request message after respond and described act on behalf of connection request Information, sends agreement to the P2P servers and acts on behalf of link information;
P2P servers, be additionally operable to by it is described agreement act on behalf of link information issue it is described first forwarding proxy server, described first Forwarding proxy server and the described second forwarding proxy server successful connection.
CN201310463974.9A 2013-09-27 2013-09-27 P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system Active CN103533039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310463974.9A CN103533039B (en) 2013-09-27 2013-09-27 P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310463974.9A CN103533039B (en) 2013-09-27 2013-09-27 P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system

Publications (2)

Publication Number Publication Date
CN103533039A CN103533039A (en) 2014-01-22
CN103533039B true CN103533039B (en) 2017-04-19

Family

ID=49934704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310463974.9A Active CN103533039B (en) 2013-09-27 2013-09-27 P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system

Country Status (1)

Country Link
CN (1) CN103533039B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572323A (en) * 2015-10-09 2017-04-19 阔展科技(深圳)有限公司 Remote monitoring and nursing system
CN108650232A (en) * 2018-04-12 2018-10-12 上海扩博智能技术有限公司 Unmanned plane media data real-time transmission system and method
CN110505270A (en) * 2019-07-03 2019-11-26 西安万像电子科技有限公司 Data transmission method, system and device
CN111355774B (en) * 2019-08-01 2021-10-29 杭州海康威视数字技术股份有限公司 Service communication method, device and system based on P2P
CN113038078A (en) * 2021-03-08 2021-06-25 广东九联科技股份有限公司 Set-top box remote monitoring method supporting ONVIF protocol and storage medium
CN113556467A (en) * 2021-07-21 2021-10-26 中国电信股份有限公司 Control method, control system, storage medium and electronic device of network camera
CN113766186B (en) * 2021-08-25 2023-05-23 浙江大华技术股份有限公司 Method, device, system and electronic device for skipping configuration interface of network camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115062A (en) * 2007-08-23 2008-01-30 华为技术有限公司 Distributed intelligent proxy system, login center and login, message routing method
CN102082674A (en) * 2009-12-01 2011-06-01 中兴通讯股份有限公司 Simulation method and simulation system for data channel
EP2503804A1 (en) * 2011-03-21 2012-09-26 Apple Inc. Apparatus and method for managing peer-to-peer connections between different service providers
CN202750172U (en) * 2012-06-29 2013-02-20 上海益网数码科技有限公司 3G ZigBee P2P video security and protection monitoring platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115062A (en) * 2007-08-23 2008-01-30 华为技术有限公司 Distributed intelligent proxy system, login center and login, message routing method
CN102082674A (en) * 2009-12-01 2011-06-01 中兴通讯股份有限公司 Simulation method and simulation system for data channel
EP2503804A1 (en) * 2011-03-21 2012-09-26 Apple Inc. Apparatus and method for managing peer-to-peer connections between different service providers
CN202750172U (en) * 2012-06-29 2013-02-20 上海益网数码科技有限公司 3G ZigBee P2P video security and protection monitoring platform

Also Published As

Publication number Publication date
CN103533039A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN103533039B (en) P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system
CN102754409B (en) For the method for Diameter protocol harmonization, system and computer-readable medium
EP2437456B1 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform
CN101039309B (en) Link sharing service apparatus and communication method thereof
CN107979592A (en) A kind of method and device for sending business request information
CN105516221B (en) Information transmission system and method
CN103209108B (en) A kind of route generating method based on DVPN and equipment
CN102845123A (en) Virtual private cloud connection method and tunnel proxy server
CN101217482A (en) A method traversing NAT sending down strategy and a communication device
CN104519414B (en) A kind of method and system of streaming media
CN105282803A (en) Communication interface and information transfer method and system based on the same
CN106713084A (en) multi-gateway system of Internet of Things
CN103997539A (en) Radar operation state collecting and distributing system and method based on web service
US20150127837A1 (en) Relay apparatus and data transfer method
CN102215378B (en) A kind of multimedia sensing network system of dynamic group net
CN103516573B (en) Data transmission method among client terminals in restricted network and client terminals
CN105072605A (en) Terminal roaming method in independent AP (Access Point) mode and AP
CN103516794A (en) Distributed-server network architecture and achieving method thereof
CN107786448A (en) The method and apparatus for establishing the forward-path of Business Stream
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN105049543A (en) P2P communication system and method crossing asymmetric NAT between intelligent routers
CN102355653B (en) Inter-terminal communication method, control equipment, user equipment, base station and network system
CN103560937A (en) Data accessing method and entry server
CN106936606A (en) Service implementation method and system and arranging service equipment
CN105306442A (en) Proxy server and command transmission methods

Legal Events

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