CN109936602B - P2P network system based on real-time push - Google Patents

P2P network system based on real-time push Download PDF

Info

Publication number
CN109936602B
CN109936602B CN201711362330.5A CN201711362330A CN109936602B CN 109936602 B CN109936602 B CN 109936602B CN 201711362330 A CN201711362330 A CN 201711362330A CN 109936602 B CN109936602 B CN 109936602B
Authority
CN
China
Prior art keywords
node
node layer
layer
nodes
data
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
CN201711362330.5A
Other languages
Chinese (zh)
Other versions
CN109936602A (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.)
Benchainless Technology (Shenzhen) Co.,Ltd.
Original Assignee
Benchainless Technology Shenzhen 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 Benchainless Technology Shenzhen Co ltd filed Critical Benchainless Technology Shenzhen Co ltd
Priority to CN201711362330.5A priority Critical patent/CN109936602B/en
Publication of CN109936602A publication Critical patent/CN109936602A/en
Application granted granted Critical
Publication of CN109936602B publication Critical patent/CN109936602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a P2P network system based on real-time push, comprising: a master node that transmits data; an end node layer consisting of end nodes downstream of the master node; a splitting node layer comprised of a plurality of splitting nodes downstream of the end nodes; a transport node layer comprised of a plurality of transport nodes downstream of the shunting node; a plurality of receiving nodes for receiving data in the transmitting node layer; the end node layer comprises a PC end node layer and a mobile end node layer; after the mobile terminal node layer transmits and utilizes the http protocol to identify the identity, the mobile terminal node layer transmits and utilizes the websocket protocol, the problem that the mobile terminal realizes the P2P data is solved through the combination of the http protocol and the webscolet protocol, the mobile terminals can transmit data mutually, the transmission efficiency is accelerated, real-time pushing and fast transmission are realized, and convenience and rapidness are realized.

Description

P2P network system based on real-time push
Technical Field
The invention belongs to the field of network communication, and particularly relates to a P2P network system based on real-time push.
Background
The P2P network, i.e. the peer-to-peer network, is the idea of a network structure. One essential difference from the Client/Server architecture that is dominant in the current network is that there is no central node (or central Server) in the overall network architecture. In the P2P structure, each node (peer) mostly has the functions of three aspects of information consumers, information providers and information communication at the same time. From a computing perspective, P2P breaks the traditional Client/Server (C/S) model, and the status of each node in the network is peer-to-peer. Each node serves as a server and provides services for other nodes, and meanwhile, the nodes can enjoy the services provided by other nodes. In brief, P2P directly links people to allow people to directly interact with each other through the internet. P2P makes communication on the network easier, more direct sharing and interaction, truly eliminating intermediaries. However, at present, P2P networks are basically connected in a socket manner, since socket connection has weak autonomous control capability for network connection, data real-time performance is poor, and transmission efficiency is low, whereas socket-based applications cannot directly communicate with a browser, which is not favorable for real-time data transmission, and someone also realizes real-time push by long poll and ajax polling for the problem, but the two methods occupy a very large network space, a server in the method cannot actively establish connection with a client, but continuously queries and blocks through the client, which is inconvenient to use and low in efficiency, and the biggest problem of the current P2P network is that the method cannot be applied to a mobile terminal, only supports a PC terminal, which greatly reduces the application of people to the P2P network.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a P2P network system based on real-time push, which is convenient to use, high in efficiency, capable of better realizing real-time push of data and suitable for mobile devices.
In order to solve the technical problems, the technical solution of the invention is as follows:
a real-time push-based P2P network system, comprising:
a master node that transmits data;
an end node layer consisting of end nodes downstream of the master node;
a splitting node layer comprised of a plurality of splitting nodes downstream of the end nodes;
a transport node layer comprised of a plurality of transport nodes downstream of the shunting node;
a plurality of receiving nodes for receiving data in the transmitting node layer;
the end node layer comprises a PC end node layer and a mobile end node layer;
after the mobile terminal node layer transmits the data and identifies the identity by using an http protocol, the data is transmitted to the shunting node layer by using a websocket protocol;
and the transmission node is used for transmitting real-time data on the whole p2p system.
Preferably, the shunting node layer comprises a text node layer, an audio node layer, a video node layer, a file node layer and other node layers.
Preferably, the transmission node transmits the text node layer, the video node layer,
file node level, audio node level and other node level.
Preferably, the network bandwidth of the transmission node downstream of the video node layer is greater than 2 times of the single-path broadband bandwidth, and the network bandwidth of the transmission node downstream of the audio node layer is greater than 1 time of the single-path broadband bandwidth. Preferably, the distribution nodes and the transmission nodes are organized and arranged in a tree form, the nodes in the distribution node layer are directly connected with the root of the transmission node, each transmission node has only one distribution node at the upstream,
there is at most one receiving node downstream.
Preferably, the receiving node is convertible into a master node for transmitting data.
Preferably, the end node has only one upstream master node and a plurality of downstream shunting nodes.
Preferably, said PC end node layer transport utilizes HTTPS protocol transport.
Preferably, the transmitting node searches for a receiving node that does not receive data, and automatically leaves the transmitting node layer when the transmitting node does not find the receiving node beyond a set time threshold.
Preferably, the memory of the receiving node layer may cache information of the transmission node that has been recently connected.
The invention has the beneficial effects that:
1. through the combination of the http protocol and the webscolet protocol, the problem that the mobile terminals realize P2P data is solved, and the mobile terminals can transmit data to each other;
2. by separating the mobile terminal and the PC terminal, invalid information is prevented from occupying a channel in the middle, transmission efficiency is improved, and real-time pushing is realized;
3. the distribution node layer classifies various data and distributes transmission nodes with different bandwidths, so that accurate and rapid transmission of each type of data is realized, and convenience and rapidness are realized.
Drawings
FIG. 1 is a network framework diagram of the present invention;
FIG. 2 is a flow chart of the present invention for pushing a P2P network in real time;
FIG. 3 is a diagram of a mobile node layer connection protocol code of the present invention;
in the figure: 1 main node, 2 end node layer, 3 shunt node layer, 4 transmission node layer, 5 receiving node, 21 end node, 31 shunt node, 41 transmission node, 211PC end node layer, 212 mobile end node layer, 311 text node layer, 312 audio node layer, 313 video node layer, 314 file node layer, 315 other node layer
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples. It should be noted that the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, a P2P network system based on real-time push includes:
a master node 1 that transmits data;
an end node layer 2 consisting of end nodes 21 downstream of the master node 1;
a shunting node layer 3 composed of a plurality of shunting nodes 31 downstream of the end node 21; the end node 21 has only one upstream master node 1 and a plurality of downstream shunting nodes 31;
a transport node layer 4 composed of transport nodes 41 downstream of the plurality of tapping nodes 31; a plurality of receiving nodes 5 that receive data of the transmitting node 41; the shunting nodes 31 and the transmission nodes 41 are organized and arranged in a tree form, the nodes directly connected with the shunting node layer 3 are the roots of the transmission nodes 41, the upstream of each transmission node 41 is only provided with one shunting node 31, and the downstream is provided with at most one receiving node 5;
the end node layer 2 comprises a PC end node layer 211 and a mobile end node layer 212; as shown in fig. 3, after the mobile end node layer transmission uses the http protocol to identify, the mobile end node layer transmission uses the websocket protocol to transmit.
As shown in fig. 2, when a node needs to receive data, the master node 1 sends corresponding data, and determines whether an object receiving the data is a PC end, if so, the master node 1 transmits the data to the PC end node layer 211, and the PC end node layer 211 sends the data to the shunting node layer 3 after being connected by an http protocol; if the mobile terminal is not a PC terminal, the main node 1 transmits data to the mobile terminal node layer 212, the mobile terminal node layer recognizes the identity by using an http protocol and transmits the data to the shunting node layer 3 by using a websocket protocol, and the P2P data transmission pushed by the mobile terminal in real time can be realized by the method; the shunting node layer 3 comprises a text node layer 311, an audio node layer 312, a video node layer 313, a file node layer 314 and other node layers 315, the system determines the data form and then sends the data to the corresponding node layers, for example, when the sent data is a video, the system sends the data to the video node layer 313, the video node layer 313 transmits the data through a transmission node 41, the transmission node 41 is used for transmitting real-time data on the whole p2p system, the system allocates the transmission nodes 41 with different bandwidths according to the data form, for example, when the audio data is transmitted, the network bandwidth of the transmission node 41 is greater than 1 time of the single-path broadband bandwidth, when the video data is transmitted, the network bandwidth of the transmission node 41 is greater than 2 times of the single-path broadband bandwidth, when the transmission node 41 of a certain shunting node layer does not find a receiving node beyond a set time threshold, the transmission node automatically leaves the transmission node layer below the shunting node layer, data is transmitted to other shunting node layers, for example, video data is not received by people at a certain moment, the transmission node 41 under the video shunting node layer 313 can participate in data transmission to other shunting node layers, so that the transmission node is effectively ensured not to be idle, and information resources are wasted; after the transmission node transmits data to the receiving node, the receiving node reads the utilization data, the memory of the receiving node caches the information of the transmission node which is connected recently, the receiving node can directly read the data without transmitting the data after being opened within a certain time, and if the receiving node needs to transmit the modified data, the receiving node can be converted into a main node to transmit the data, and the steps are circulated.
The invention transmits P2P data, saves the transmission of P2P network at the mobile terminal, solves the problem of low resource occupation efficiency on the transmission channel, effectively improves the efficiency and is convenient and rapid to use.
The above-mentioned embodiments are only preferred embodiments of the present invention, and do not limit the technical scope of the present invention, so that the changes and modifications made by the claims and the specification of the present invention should fall within the scope of the present invention.

Claims (10)

1. A P2P network system based on real-time push is characterized in that: the method comprises the following steps:
a master node that transmits data;
an end node layer consisting of end nodes downstream of the master node;
a splitting node layer comprised of a plurality of splitting nodes downstream of the end nodes;
a transport node layer comprised of a plurality of transport nodes downstream of the shunting node;
a plurality of receiving nodes for receiving data in the transmitting node layer;
the end node layer comprises a PC end node layer and a mobile end node layer;
after the mobile terminal node layer transmits the data and identifies the identity by using an http protocol, the data is transmitted to the shunting node layer by using a websocket protocol;
and the transmission node is used for transmitting real-time data on the whole p2p system.
2. The real-time push-based P2P network system according to claim 1, wherein the distribution node layer includes a text node layer, an audio node layer, a video node layer, a file node layer, and other node layers.
3. The P2P network system according to claim 2, wherein the transfer node transfers data transmitted from a text node layer, a video node layer, a file node layer, an audio node layer and other node layers according to its own bandwidth.
4. The real-time push-based P2P network system according to claim 3, wherein the network bandwidth of the transport node downstream of the video node layer is greater than 2 times the single-channel broadband bandwidth, and the network bandwidth of the transport node downstream of the audio node layer is greater than 1 times the single-channel broadband bandwidth.
5. The real-time push-based P2P network system according to claim 1, wherein the distribution nodes and the transmission nodes are organized in a tree, the nodes in the distribution node layer are directly connected to the root of the transmission nodes, each transmission node has only one distribution node upstream and at most one receiving node downstream.
6. The real-time push based P2P network system according to claim 1, wherein the receiving node can transform into a master node to transmit data.
7. The real-time push based P2P network system according to claim 1, wherein the end node has only one upstream master node and a plurality of downstream forking nodes.
8. The real-time push based P2P network system according to claim 1, wherein said PC end node layer transport utilizes HTTPS protocol transport.
9. The P2P network system according to claim 3, wherein the transmitting node will find the receiving node that does not receive the data, and leave the transmitting node layer automatically when the transmitting node does not find the receiving node over a predetermined time threshold.
10. The real-time push-based P2P network system according to claim 1, wherein the receiving node of the receiving node layer has a memory with recently connected transmitting node information cached therein.
CN201711362330.5A 2017-12-18 2017-12-18 P2P network system based on real-time push Active CN109936602B (en)

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 CN109936602A (en) 2019-06-25
CN109936602B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN109936602A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
WO2019205907A1 (en) Intelligent device communication platform based on mqtt message protocol
CN110392079A (en) The node calculating task dispatching method and its equipment calculated towards mist
CN101127623A (en) Data processing method, device and system
CN101247316A (en) Data sharing method of communication terminal
Gupta A survey of application layer protocols for internet of things
CN103457956A (en) HTTP streaming media live broadcasting method and system based on multiple TCP links
Zhang et al. MMCSACC: A multi-source multimedia conference system assisted by cloud computing for smart campus
CN112713924A (en) Working method of CDN network system based on satellite communication
CN109936602B (en) P2P network system based on real-time push
CN102857403B (en) Instant messaging client data sharing method and system
CN114025002A (en) MQTT information transmission method, system and communication equipment
CN109413120A (en) A kind of communication means and device, electronic equipment and server
Zhanikeev Experiments with application throughput in a browser with full HTML5 support
CN112261146B (en) Edge cloud cooperative communication system and method based on message communication and file transmission
Anandaraj et al. An efficient framework for large scale multimedia content distribution in P2P network: I2NC
Lee et al. Collaborative P2P streaming based on MPEG-DASH for smart devices
CN109936603B (en) Non-direct connection network communication method based on HTTP
Tang et al. Cloud‐edge collaboration based peer to peer services redirection strategy for passive optical network
CN101997889B (en) Method, system and device for optimizing P2P transmission in WLAN
Zhai et al. An improved DDS publish/subscribe automatic discovery algorithm
Duan et al. File sharing strategy based on webrtc
Yang et al. Multi-access edge computing-assisted D2D streaming for proximity-based social networking
CN109005240A (en) Real time data method for subscribing based on http protocol
CN111614433B (en) Method for improving data transmission rate, communication system and storage medium
Duan et al. Efficient file sharing scheme based on WebRTC

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