CN109936602A - It is a kind of based on the P2P network system pushed in real time - Google Patents
It is a kind of based on the P2P network system pushed in real time Download PDFInfo
- Publication number
- CN109936602A CN109936602A CN201711362330.5A CN201711362330A CN109936602A CN 109936602 A CN109936602 A CN 109936602A CN 201711362330 A CN201711362330 A CN 201711362330A CN 109936602 A CN109936602 A CN 109936602A
- Authority
- CN
- China
- Prior art keywords
- node
- transmission
- layer
- real time
- node layer
- 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
Links
Abstract
The invention discloses a kind of based on the P2P network system pushed in real time, comprising: sends the host node of data;The end node layer being made of the end node in host node downstream;The forking node layer being made of multiple forking nodes as the end node downstream;The transmission node layer being made of the transmission node in multiple forking node downstreams;Multiple receiving nodes for receiving transmission node layer data;End node layer includes PC end node layer and mobile terminal node layer;After the mobile terminal node layer transmission assert identity using http agreement, it is transmitted using websocket protocol, the present invention passes through the combination of http agreement and webscoket agreement, solve the problems, such as that P2P data are realized in mobile terminal, efficiency of transmission can be accelerated with mutual data transmission between mobile terminal, realize push in real time, quickly transmission, it is convenient and efficient.
Description
Technical field
The invention belongs to network communication fields more particularly to a kind of based on the P2P network system pushed in real time.
Background technique
P2P network, that is, peer-to-peer network is a kind of thought of network structure.The visitor of leading position is occupied in it and current network
One essential distinction of family end/server (Client/Server) structure is that central node is not present in whole network structure
(or central server).In P2P structure, each node (peer) mostly has information consumer, informant simultaneously
With the function of three aspect such as information communication.For from calculating mode, P2P has broken traditional Client/Server (C/S) mould
The status of formula, each node in a network is reciprocity.Each node both serves as server, provides clothes for other nodes
Business, while the service of other nodes offer being also provided.Briefly, P2P is exactly directly to allow people to pass through people contact
Internet is directly interactive.P2P becomes easy the communication on network, is more directly shared and interactive, veritably eliminates agent.
But P2P network at this stage is essentially all to be connected in the way of socket, since socket connection is for network connection
Autonomous control ability it is weak, real-time property is poor, and transmission efficiency is low, and the application based on socket cannot be directly logical with browser
Letter, this will be unfavorable for data and transmit in real time, and also someone is realized by longpoll, ajax poll push away in real time for this problem
It send, but will greatly occupy cyberspace using both methods, the server in this method cannot actively be built with client
Vertical connection, but client constantly inquire and obstruction by way of, inconvenient to use, low efficiency, and current P2P network is most
Big problem is to be not applied for mobile terminal, only supports the end PC, this will substantially reduce application of the people to P2P network.
Summary of the invention
Technical problem to be solved by the present invention lies in providing, one kind is easy to use, high-efficient, can preferably realize data reality
When push, and be suitable for mobile device it is a kind of based on the P2P network system pushed in real time.
In order to solve the above technical problems, the technical solution of the invention is as follows:
It is a kind of based on the P2P network system pushed in real time, comprising:
Send the host node of data;
The end node layer being made of the end node in host node downstream;
The forking node layer being made of multiple forking nodes as the end node downstream;
The transmission node layer being made of the transmission node in multiple forking node downstreams;
Multiple receiving nodes for receiving transmission node layer data;
The end node layer includes PC end node layer and mobile terminal node layer;
After the mobile terminal node layer transmission assert identity using http agreement, transmitted using websocket protocol;
The transmission node, for transmission of the real time data in entire p2p system.
Preferably, the forking node layer includes literal node layer, audio node layer, video node layer, file node
Layer and other node layers.
Preferably, the transmission node can remove transmission literal node layer, video node layer, file section according to own bandwidth
The data that point layer, audio node layer and other node layers are transmitted.
Preferably, the network bandwidth of the transmission node in the video node layer downstream is greater than 2 times of single channel broadband widths, institute
The network bandwidth of the transmission node in the audio node layer downstream stated is greater than 1 times of single channel broadband width.
Preferably, the node of the forking node and transmission node with tree form tissue line, with forking node layer
Be connected directly be transmission node root, each only one forking node of transmission node upstream, downstream at most only one
Receiving node.
Preferably, the receiving node can be transformed into host node to transmit data.
Preferably, the host node of only one upstream of end node, there is the forking node in multiple downstreams.
Preferably, PC end node layer transmission is transmitted using HTTPS agreement.
Preferably, the transmission node can find the receiving node for not receiving data, when the transmission node is more than to set
When fixed time threshold does not find receiving node, transmission node layer is left automatically.
Preferably, the transmission node being most recently connected can be cached in the memory of the receiving node of the receiving node layer
Information.
The beneficial effects of the present invention are:
1. passing through the combination of http agreement and webscoket agreement, solves the problems, such as that P2P data are realized in mobile terminal, move
It can be with mutual data transmission between moved end;
2. invalid information is avoided in intermediate busy channel, accelerates efficiency of transmission by separating for mobile terminal and the end PC,
Realize push in real time;
3, the classification by forking node layer to various data distributes the transmission node of different bandwidth, realizes every kind of data
Precisely quickly transmission, it is convenient and efficient.
Detailed description of the invention
Fig. 1 is network frame figure of the invention;
Fig. 2 is the flow chart of the P2P network of push in real time of the invention;
Fig. 3 is node layer connection protocol code map in mobile terminal of the present invention;
In figure: 1 host node, 2 end node layers, 3 forking node layers, 4 transmission node layers, 5 receiving nodes, 21 end nodes, 31
Forking node, 41 transmission nodes, 211PC end node layer, 212 mobile terminal node layers, 311 literal node layers, 312 audio nodes
Layer, 313 video node layers, 314 file node layers, 315 other node layers
Specific embodiment
The invention will be further described in the following with reference to the drawings and specific embodiments.It should be noted that following institute
Technical characteristic involved in each embodiment of the present invention of description can be combined with each other as long as they do not conflict with each other.
As shown in Figure 1, a kind of based on the P2P network system pushed in real time, comprising:
Send the host node 1 of data;
The end node layer 2 being made of the end node 21 in 1 downstream of host node;
The forking node layer 3 being made of multiple forking nodes 31 as 21 downstream of end node;End node 21 only one
The host node 1 of upstream has the forking node 31 in multiple downstreams;
The transmission node layer 4 being made of the transmission node 41 in multiple 31 downstreams of forking node;Multiple reception transmission nodes 41
The receiving node 5 of data;Forking node 31 and node of the transmission node 41 with tree form tissue line, with forking node layer 3
Be connected directly be transmission node 41 root, each only one forking node 31 of 41 upstream of transmission node, downstream at most only
There is a receiving node 5;
End node layer 2 includes PC end node layer 211 and mobile terminal node layer 212;As shown in figure 3, mobile terminal node layer passes
After the defeated identification identity using http agreement, transmitted using websocket protocol.
As shown in Fig. 2, host node 1 can send corresponding data when there is node to need to receive data, judge to receive data
Object whether be the end PC, if the end PC, then host node 1 sends data to PC end node layer 211,211 benefit of PC end node layer
Forking node layer 3 is sent data to after being connected with http agreement;If not the end PC, then host node 1 sends data to mobile terminal
Node layer 212 is sent data to after mobile terminal end node layer assert identity using http agreement using websocket protocol
The P2P data transmission that mobile terminal pushes in real time may be implemented in forking node layer 3 by this method;Forking node layer 3 includes text
Word node layer 311, audio node layer 312, video node layer 313, file node layer 314 and other node layers 315, system determine
Corresponding node layer is sent data to after data mode, for example, system is sent data to when the data of transmission are videos
Video node layer 313, video node layer 313 transmit data by transmission node 41, and transmission node 41 exists for real time data
Transmission in entire p2p system, system can distribute the transmission node 41 of different bandwidth according to the form of data, for example, transmission sound
Frequency according to when, the network bandwidth of transmission node 41 is greater than 1 times of single channel broadband width, when transmitting video data, transmission node 41
Network bandwidth is greater than 2 times of single channel broadbands, when the time threshold that the transmission node 41 in some forking node layer is more than setting is not looked for
When to receiving node, the transmission node layer under the forking node layer can be left automatically, transmits number into other forking node layers
According to, such as sometime video data never has people's reception, then the transmission node 41 under video distributing node layer 313 can arrive it
It goes to participate in data transmission in his forking node layer, effectively guarantees that transmission node is not idle, wastes information resources in this way;Work as transmission
After node sends data to receiving node, receiving node be can read using data, can be cached with most in the memory of receiving node
Data can be read directly there is no need to transmit again in the transmission node information closely connected, interior open of certain time, and if
Receiving node, which needs to transmit modified data then and can will receive receiving node, is transformed into host node to transmit data, in circulation
The step of face.
P2P data are transmitted by the invention, have saved P2P network in the transmission of mobile terminal, and solve transmission channel
Upper resource occupation inefficiency problem, effectively raises efficiency, convenient to use.
The above described is only a preferred embodiment of the present invention, be not intended to limit the scope of the present invention,
Therefore the changes or modifications that claim under this invention and specification are done in every case, it all should belong to the range that the invention patent covers
Within.
Claims (10)
1. a kind of based on the P2P network system pushed in real time, it is characterised in that: include:
Send the host node of data;
The end node layer being made of the end node in host node downstream;
The forking node layer being made of multiple forking nodes as the end node downstream;
The transmission node layer being made of the transmission node in multiple forking node downstreams;
Multiple receiving nodes for receiving transmission node layer data;
The end node layer includes PC end node layer and mobile terminal node layer;
After the mobile terminal node layer transmission assert identity using http agreement, transmitted using websocket protocol;
The transmission node, for transmission of the real time data in entire p2p system.
2. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the shunting section
Point layer includes literal node layer, audio node layer, video node layer, file node layer and other node layers.
3. according to claim 2 a kind of based on the P2P network system pushed in real time, it is characterised in that the transmission section
Point can go transmission literal node layer, video node layer, file node layer, audio node layer and other node layers according to own bandwidth
The data transmitted.
4. according to claim 3 a kind of based on the P2P network system pushed in real time, it is characterised in that the video section
The network bandwidth of the transmission node in point layer downstream is greater than 2 times of single channel broadband widths, the transmission section in the audio node layer downstream
The network bandwidth of point is greater than 1 times of single channel broadband width.
5. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the shunting section
Point and transmission node with tree form tissue line, be connected directly with the node of forking node layer be transmission node root,
Each only one forking node of transmission node upstream, downstream at most only one receiving node.
6. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the receiving node
Host node be can be transformed into transmit data.
7. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the end node
The host node of only one upstream has the forking node in multiple downstreams.
8. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the PC end segment
Point layer transmission is transmitted using HTTPS agreement.
9. according to claim 3 a kind of based on the P2P network system pushed in real time, it is characterised in that the transmission section
Point can find the receiving node for not receiving data, when the time threshold that the transmission node is more than setting does not find receiving node
When, transmission node layer is left automatically.
10. according to claim 1 a kind of based on the P2P network system pushed in real time, it is characterised in that the reception
The transmission node information being most recently connected can be cached in the memory of the receiving node of node layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711362330.5A CN109936602B (en) | 2017-12-18 | 2017-12-18 | P2P network system based on real-time push |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711362330.5A CN109936602B (en) | 2017-12-18 | 2017-12-18 | P2P network system based on real-time push |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109936602A true CN109936602A (en) | 2019-06-25 |
CN109936602B CN109936602B (en) | 2022-03-11 |
Family
ID=66982228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711362330.5A Active CN109936602B (en) | 2017-12-18 | 2017-12-18 | P2P network system based on real-time push |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109936602B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115240369A (en) * | 2022-07-21 | 2022-10-25 | 天津君秒安减灾科技有限公司 | Internet of things loudspeaker voice broadcasting system based on earthquake early warning |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118405A (en) * | 2009-12-31 | 2011-07-06 | 比亚迪股份有限公司 | P2P (Peer-to-Peer) network system applied to real-time video data transmission |
CN103024806A (en) * | 2011-09-20 | 2013-04-03 | 中兴通讯股份有限公司 | Data forwarding method and device |
CN103379096A (en) * | 2012-04-18 | 2013-10-30 | 中兴通讯股份有限公司 | Internet and operator network service sharing method, service side and webpage gateway |
CN105897853A (en) * | 2015-12-29 | 2016-08-24 | 乐视云计算有限公司 | Peer-to-peer network connection method and device |
WO2016201776A1 (en) * | 2015-06-19 | 2016-12-22 | 网宿科技股份有限公司 | Content distribution method and system for mobile terminal application |
CN106416149A (en) * | 2014-03-31 | 2017-02-15 | 宝利通公司 | Method and systems for optimizing bandwidth utilization in a multi-participant full mesh peer-to-peer video session |
CN106791902A (en) * | 2016-12-23 | 2017-05-31 | 北京多视角文化传播有限公司 | To the audio-video switching method and its cut bank of mobile internet device |
-
2017
- 2017-12-18 CN CN201711362330.5A patent/CN109936602B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118405A (en) * | 2009-12-31 | 2011-07-06 | 比亚迪股份有限公司 | P2P (Peer-to-Peer) network system applied to real-time video data transmission |
CN103024806A (en) * | 2011-09-20 | 2013-04-03 | 中兴通讯股份有限公司 | Data forwarding method and device |
CN103379096A (en) * | 2012-04-18 | 2013-10-30 | 中兴通讯股份有限公司 | Internet and operator network service sharing method, service side and webpage gateway |
CN106416149A (en) * | 2014-03-31 | 2017-02-15 | 宝利通公司 | Method and systems for optimizing bandwidth utilization in a multi-participant full mesh peer-to-peer video session |
WO2016201776A1 (en) * | 2015-06-19 | 2016-12-22 | 网宿科技股份有限公司 | Content distribution method and system for mobile terminal application |
CN105897853A (en) * | 2015-12-29 | 2016-08-24 | 乐视云计算有限公司 | Peer-to-peer network connection method and device |
CN106791902A (en) * | 2016-12-23 | 2017-05-31 | 北京多视角文化传播有限公司 | To the audio-video switching method and its cut bank of mobile internet device |
Non-Patent Citations (3)
Title |
---|
J. SEEDORF等: "CDNI Request Routing with ALTO draft-seedorf-cdni-request-routing-alto-04", 《IETF 》 * |
RUI S. CRUZ等: "PPSP Tracker Protocol-Base Protocol (PPSP-TP/1.0) draft-ietf-ppsp-base-tracker-protocol-04", 《IETF 》 * |
张向辉等: "基于WebRTC的实时视音频通信研究综述", 《计算机科学》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115240369A (en) * | 2022-07-21 | 2022-10-25 | 天津君秒安减灾科技有限公司 | Internet of things loudspeaker voice broadcasting system based on earthquake early warning |
Also Published As
Publication number | Publication date |
---|---|
CN109936602B (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109450911A (en) | A kind of across a network stream medium data transmission system and method | |
CN101127623A (en) | Data processing method, device and system | |
CN109672708A (en) | Communication means and device, system | |
CN103051521A (en) | Retransmitting method of message in cloud environment | |
CN105163071B (en) | Obtain the system and method for the monitor video of monitor supervision platform | |
TW200703025A (en) | Method and apparatus for improving data transfers in peer-to-peer networks | |
CN105207860B (en) | A kind of business acceleration system and method | |
CN103780681A (en) | High real-time Web application system and data real-time pushing method thereof | |
CN110460816A (en) | Cloud monitoring system | |
CN104902259A (en) | Video processing method and apparatus | |
CN107920072A (en) | A kind of multimedia sharing method and system based on data characteristics | |
CN109936602A (en) | It is a kind of based on the P2P network system pushed in real time | |
CN106210611B (en) | A kind of method for playing video, video monitoring platform and system | |
WO2017101409A1 (en) | Video push notification method, system, and server between different client ends | |
CN105898550A (en) | End-to-end peer video assistance transmission method | |
CN105376075A (en) | Chat room voice direct broadcasting system and voice direct broadcasting method based on web | |
CN103702091B (en) | A kind of network-building method of wireless portable video monitoring system | |
CN106375100B (en) | Method of realizing group broadcasting and device in a kind of video monitoring system | |
CN104780230A (en) | Method of automatically acquiring cloud server IP address, system and cloud system | |
CN104702596A (en) | Method and system for hiding and transmitting information based on data packet length | |
CN109905317B (en) | Method for interactive communication between users of WeChat public numbers | |
Sui et al. | Deadline-aware cooperative data exchange with network coding | |
CN108259576B (en) | Software and hardware real-time information transmission system and method | |
WO2018121421A1 (en) | Cross-domain transmission method, device, and system for stream data | |
WO2013068415A1 (en) | Method and system for provisioning frequently requested content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210325 Address after: Room 2201, 703c, Desai science and technology building, 9789 Shennan Avenue, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Applicant after: Benchainless Technology (Shenzhen) Co.,Ltd. Address before: 361000 unit 21, 201, building B, 86 Haijing Road, Xiamen area, China (Fujian) pilot Free Trade Zone, Xiamen City, Fujian Province Applicant before: XIAMEN INSTINCT BLOCKCHAIN TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |