CN109936603A - One kind being based on the non-associated network network communication means of HTTP - Google Patents

One kind being based on the non-associated network network communication means of HTTP Download PDF

Info

Publication number
CN109936603A
CN109936603A CN201711362341.3A CN201711362341A CN109936603A CN 109936603 A CN109936603 A CN 109936603A CN 201711362341 A CN201711362341 A CN 201711362341A CN 109936603 A CN109936603 A CN 109936603A
Authority
CN
China
Prior art keywords
node
network
http
data
communication means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711362341.3A
Other languages
Chinese (zh)
Other versions
CN109936603B (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
Xiamen Instinct Blockchain 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 Xiamen Instinct Blockchain Technology Co ltd filed Critical Xiamen Instinct Blockchain Technology Co ltd
Priority to CN201711362341.3A priority Critical patent/CN109936603B/en
Publication of CN109936603A publication Critical patent/CN109936603A/en
Application granted granted Critical
Publication of CN109936603B publication Critical patent/CN109936603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses one kind to be based on the non-associated network network communication means of HTTP, data requirements is issued by the data requirements node on mobile terminal, it is established after connection using http agreement and the most fast communication distance of history is calculated by communication history record, and it is sent to first node on this path, agency's forwarding is carried out by first node, and successively agency's forwarding;And the whole network broadcast requirement destination node is carried out using Websocket and carries out active connection;It realizes that mobile terminal cross-network segment, across a network, inter-regional networks establish data P 2 P connection, transmission, realizes the application of block chain technology on mobile terminals.

Description

One kind being based on the non-associated network network communication means of HTTP
Technical field
The invention belongs to network communication fields, more particularly to one kind to be based on the non-associated network network communication means of HTTP.
Background technique
With the appearance of bit coin, block chain technology is more and more recognized, currently, block chain is applied well In the end PC, but the data that it is also difficult to achieve P2P for mobile terminal are transmitted, and main problem is between each mobile nodes in mobile terminal Locating network, network segment are all different, and the method for connecting network of block chain in mobile terminal used at present can not realize cross-network segment, The communication of across a network, inter-regional networks, this is by greatly limitation block chain technology in the development of mobile terminal.
Summary of the invention
Technical problem to be solved by the present invention lies in provide one kind can mobile terminal realize cross-network segment, across a network, across Local Area Network establishes P2P connection, and the one kind of block chain technology preferably applied to mobile terminal is enabled to be based on the non-associated network of HTTP Network communication means.
In order to solve the above technical problems, the technical solution of the invention is as follows:
One kind being based on the non-associated network network communication means of HTTP, includes the following steps:
(1) the data requirements node on mobile terminal issues data requirements, establishes connection;
(2) available network nodes list is obtained from other nodes, each network node finds to add when new network node To network node list;
(3) when destination node cannot be communicated directly with data requirements node, searched targets node whether with data Demand nodes have path that can be direct-connected;
(4) if having can direct access path be sent to node on the direct access path and carry out agent communication, if without can be direct-connected Path just records first node for calculating the most fast communication distance of history, and being sent on this path according to communication history, Agency's forwarding is carried out by first node, and successively agency's forwarding;
(5) it if can not also calculate the communication path of destination node in communication history, is carried out using Websocket complete Net broadcast requirement destination node carries out active connection;
(6) if any broadcast response is not received still in a block period, it is considered that the destination node has fallen Line, returned data demand nodes are fed back without required data.
Further, connection is established using http protocol and other network nodes when establishing connection in step (1)
Further, in step (5) in the whole network broadcasting process, if thering is node and the destination node to have connection, then will It is notified and establish agency connection.
Further, pass through the substantive requirements of form target of websocket when destination node is in closed Intranet in step (5) Node is actively connected to data requirements node.
Further, the network node in step (2) is mobile terminal network node, and the network node list is distribution Hash table.
Further, data can be transmitted after first node-agent forwarding data requirements to destination node in step (4) To data requirements node.
Further, the transmission node there are many whole network forms of broadcasting downstreams is responsible for propagation data demand.
Further, the transmission node can distribute different bandwidth according to data mode.
The beneficial effects of the present invention are:
Solves mobile terminal cross-network segment, across a network, trans-regional by indirectly connected mode after accessing by http agreement Network establishes the problem of data P 2 P connection, transmission, realizes the application of block chain technology on mobile terminals.
Detailed description of the invention
Fig. 1 is flow through a network figure of the invention;
Fig. 2 is the broadcast mode flow chart of step of the present invention (5);
Fig. 3 is the transmission node schematic diagram of step of the present invention (5)
Fig. 4 is that step of the present invention (1) establishes connection protocol code map.
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 be based on the non-associated network network communication means of HTTP, include the following steps:
(1) mobile terminal node issues data requirements, establishes connection;Http protocol and other networks are utilized when establishing connection Node establishes connection, as shown in figure 4, calling http agreement to find other network nodes first when establishing connection;
(2) available network nodes list is obtained from other nodes, each network node finds to add when new network node To network node list;
(3) when destination node cannot be communicated directly with data requirements node, searched targets node whether with data Demand nodes have path that can be direct-connected;
(4) if having can direct access path be sent to node on the direct access path and carry out agent communication, if without can be direct-connected Path just records first node for calculating the most fast communication distance of history, and being sent on this path according to communication history, Agency's forwarding is carried out by first node, and successively agency's forwarding;
(5) it if can not also calculate the communication path of destination node in communication history, is carried out using Websocket complete Net broadcast requirement destination node carries out active connection;As shown in Fig. 2, in the whole network broadcasting process, if having node and the target section Point had connection, then by it is notified and establish agency connection, just have later the intermediate node be responsible for transfer destination node with The data communication of data requirements node, if passing through the substantive requirements of form target of websocket when destination node is in closed Intranet Node is actively connected to data requirements node, as shown in figure 3, the whole network forms of broadcasting are many transmission nodes using downstream It is responsible for propagation data demand, these transmission nodes can distribute different bandwidth according to data mode.
(6) if any broadcast response is not received still in a block period, it is considered that the destination node has fallen Line, returned data demand nodes are fed back without required data.
Detailed process of the invention is as follows:
Data requirements when the data requirements node of mobile terminal needs the P2P data under block chain, on mobile terminal Node issues data requirements, connection is established using http protocol and other network nodes, as shown in figure 4, when establishing connection Http agreement is called to find other network nodes first, after finding other nodes, data requirements node is obtained from other nodes Available network nodes list, each network node are added to the new network node of discovery in network node list again, if Destination node is found in these network node lists, and destination node can be communicated directly with data requirements node, then It directly establishes connection with data requirements node by destination node to carry out data transmission, if destination node and data requirements node When cannot directly be communicated, searched targets node whether with data requirements node have can be direct-connected path;It can direct-connected road if having Diameter is sent to the node on the direct access path, and the node on the path is allowed to carry out agent communication, if without can direct access path, just First node for calculating the most fast communication distance of history, and being sent on this path is recorded according to communication history, by first A node carries out agency's forwarding, and successively agency's forwarding, can incite somebody to action after first node-agent forwarding data requirements to destination node Data are transmitted to data requirements node.If can not also calculate the communication path of destination node in communication history, utilize Websocket carries out the whole network broadcast requirement destination node and carries out active connection;As shown in Fig. 2, during the whole network broadcast, if There is a node and the destination node had connection, then will be notified and establish agency's connection, it is just born later by the intermediate node Blame transfer destination node and data requirements node data communication, if destination node in closed Intranet, e.g. in enterprise Internal lan in, at this moment will be actively connected to data requirements node by the substantive requirements of form destination node of websocket, As shown in figure 3, the whole network forms of broadcasting are to be responsible for propagation data demand using many transmission nodes in downstream, these transmission node meetings Different bandwidth is distributed according to data mode, such as when the data of propagation are videos, high power bandwidth will be distributed, so as to data biography It is defeated faster more convenient, when data to be transmitted are audio or text if distribute lower bandwidth, can faster realize number in this way According to transmission, and the waste of resource is not caused.If not receiving any broadcast response still in a block period, it is considered that The destination node has gone offline, returned data demand nodes, feeds back without required data, the data requirements node of mobile terminal is told to look for Less than required data.Indirectly connected mode through the invention solves mobile terminal cross-network segment, across a network, trans-regional net Network establishes the problem of data P 2 P connection, transmission, realizes the application of block chain technology on mobile terminals.
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 (8)

1. one kind is based on the non-associated network network communication means of HTTP, include the following steps:
(1) the data requirements node on mobile terminal issues data requirements, establishes connection;
(2) available network nodes list is obtained from other nodes, each network node finds to be added to net when new network node Network node listing;
(3) when destination node cannot be communicated directly with data requirements node, searched targets node whether with data requirements Node has path that can be direct-connected;
(4) if having can direct access path be sent to node on the direct access path and carry out agent communication, if without can direct access path, First node calculating the most fast communication distance of history, and be sent on this path is just recorded according to communication history, by the One node carries out agency's forwarding, and successively agency's forwarding;
(5) if can not also calculate the communication path of destination node in communication history, it is wide that the whole network is carried out using Websocket It broadcasts and destination node is required to carry out active connection;
(6) it if not receiving any broadcast response still in a block period, it is considered that the destination node has gone offline, returns Data requirements node is returned, is fed back without required data.
2. according to claim 1 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that in step (1) Connection is established using http protocol and other network nodes when establishing connection.
3. according to claim 1 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that complete in step (5) In net broadcasting process, if having a node and the destination node had connection, then will be notified and establish agency's connection.
4. according to claim 1 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that mesh in step (5) Data requirements section is actively connected to by the substantive requirements of form destination node node of websocket when marking node in closed Intranet Point.
5. according to claim 1 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that in step (2) Network node is mobile terminal network node.
6. a kind of the non-associated network network communication means of HTTP is based on according to claim 1, it is characterised in that the in step (4) Data requirements node can be sent data to after one node-agent forwarding data requirements to destination node.
7. according to claim 4 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that described the whole network The transmission node that there are many forms of broadcasting downstreams is responsible for propagation data demand.
8. according to claim 7 a kind of based on the non-associated network network communication means of HTTP, it is characterised in that the transmission Node can distribute different bandwidth according to data mode.
CN201711362341.3A 2017-12-18 2017-12-18 Non-direct connection network communication method based on HTTP Active CN109936603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711362341.3A CN109936603B (en) 2017-12-18 2017-12-18 Non-direct connection network communication method based on HTTP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711362341.3A CN109936603B (en) 2017-12-18 2017-12-18 Non-direct connection network communication method based on HTTP

Publications (2)

Publication Number Publication Date
CN109936603A true CN109936603A (en) 2019-06-25
CN109936603B CN109936603B (en) 2022-07-01

Family

ID=66982233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711362341.3A Active CN109936603B (en) 2017-12-18 2017-12-18 Non-direct connection network communication method based on HTTP

Country Status (1)

Country Link
CN (1) CN109936603B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492053A (en) * 2019-08-20 2021-03-12 厦门本能管家科技有限公司 Cross-network penetration method and system for P2P network

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878118A (en) * 2005-06-06 2006-12-13 腾讯科技(深圳)有限公司 System for realizing data communication and its method
CN101079783A (en) * 2006-05-27 2007-11-28 腾讯科技(深圳)有限公司 A method for establishing P2P channel in P2P network
CN101663859A (en) * 2006-12-14 2010-03-03 北方电讯网络有限公司 Method and apparatus for exchanging routing information and the establishment of connectivity across multiple network areas
CN101715201A (en) * 2009-11-12 2010-05-26 北京邮电大学 Method for acquiring information by sink node in wireless sensor network when moving
CN101867973A (en) * 2010-06-25 2010-10-20 陶洋 Multidimensional network and data transmission method thereof
CN102123100A (en) * 2008-02-05 2011-07-13 华为技术有限公司 Method and device for maintaining routing information
WO2013053252A1 (en) * 2011-10-10 2013-04-18 中兴通讯股份有限公司 Method and apparatus for processing network overload
CN103200642A (en) * 2013-04-12 2013-07-10 电子科技大学 Optimization method for wireless mobile network route selection
CN105282161A (en) * 2015-10-23 2016-01-27 绵阳师范学院 Point-to-point anonymous communication method based on random stateless address distributing policies in IPv6 network
US20160086175A1 (en) * 2014-09-22 2016-03-24 Qualcomm Incorporated Peer-to-peer transaction system
CN105516002A (en) * 2015-12-07 2016-04-20 百度在线网络技术(北京)有限公司 Data transmitting method and device
CN105656771A (en) * 2014-11-12 2016-06-08 中国移动通信集团公司 Service path determining method, device and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878118A (en) * 2005-06-06 2006-12-13 腾讯科技(深圳)有限公司 System for realizing data communication and its method
CN101079783A (en) * 2006-05-27 2007-11-28 腾讯科技(深圳)有限公司 A method for establishing P2P channel in P2P network
CN101663859A (en) * 2006-12-14 2010-03-03 北方电讯网络有限公司 Method and apparatus for exchanging routing information and the establishment of connectivity across multiple network areas
CN102123100A (en) * 2008-02-05 2011-07-13 华为技术有限公司 Method and device for maintaining routing information
CN101715201A (en) * 2009-11-12 2010-05-26 北京邮电大学 Method for acquiring information by sink node in wireless sensor network when moving
CN101867973A (en) * 2010-06-25 2010-10-20 陶洋 Multidimensional network and data transmission method thereof
WO2013053252A1 (en) * 2011-10-10 2013-04-18 中兴通讯股份有限公司 Method and apparatus for processing network overload
CN103200642A (en) * 2013-04-12 2013-07-10 电子科技大学 Optimization method for wireless mobile network route selection
US20160086175A1 (en) * 2014-09-22 2016-03-24 Qualcomm Incorporated Peer-to-peer transaction system
CN105656771A (en) * 2014-11-12 2016-06-08 中国移动通信集团公司 Service path determining method, device and system
CN105282161A (en) * 2015-10-23 2016-01-27 绵阳师范学院 Point-to-point anonymous communication method based on random stateless address distributing policies in IPv6 network
CN105516002A (en) * 2015-12-07 2016-04-20 百度在线网络技术(北京)有限公司 Data transmitting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄道颖等: "JXTA网络路由机制研究", 《郑州轻工业学院学报(自然科学版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492053A (en) * 2019-08-20 2021-03-12 厦门本能管家科技有限公司 Cross-network penetration method and system for P2P network
CN112492053B (en) * 2019-08-20 2023-04-07 本无链科技(深圳)有限公司 Cross-network penetration method and system for P2P network

Also Published As

Publication number Publication date
CN109936603B (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US8818946B2 (en) Machine to machine (M2M) application server, XDMS server, and methods for M2M applications group management
CN107889082B (en) D2D device discovery method utilizing social relationship among users
US20210337463A1 (en) Systems and methods for prioritizing service set identifiers on a wireless access point
RU2008144581A (en) MOBILE peer-to-peer networks
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN104363407A (en) Video conference system communication method and corresponding device
CN104009998A (en) Server and data transmission method
CN106210049A (en) A kind of cluster communication method based on Message Queuing and system
CN104247339A (en) Home network packet delivery
CN103780483A (en) Method, system and device for obtaining resource information of terminal device of Internet of Thingss
CN108391299B (en) Method for removing isolated node in Mesh network
CN104767796B (en) A kind of car networking hot point resource management method based on mobile P 2 P
CN107734598A (en) A kind of system information change instruction method, UE, network side equipment and system
CN109936603A (en) One kind being based on the non-associated network network communication means of HTTP
US20150026258A1 (en) Method and apparatus for determining participant discovery message period
CN104935878A (en) Large-scale network video monitoring hotspot information distribution system and distribution method thereof
CN104618247B (en) A kind of transmission method and device of multicast message
Neto et al. Transformation based routing overlay for privacy and reusability in multi-domain iot
CN105491065A (en) Resource access method of message-oriented middleware, server, and resource access system
CN110474781B (en) Method and device for forwarding multicast data
CN109246796A (en) A kind of communication means and device
CN102857352A (en) Multicasting and broadcasting method and system based on overlay network
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
CN202353590U (en) A network low-load self-configuration router facing to content delivery/subscription
CN104639465B (en) The processing method and equipment of a kind of multicast message

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
TA01 Transfer of patent application right

Effective date of registration: 20210326

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.

GR01 Patent grant
GR01 Patent grant