Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Calculation method and system for selecting optimal node

A technology of optimal nodes and calculation methods, applied in the field of blockchain, which can solve problems such as slow transmission speed and poor node connection stability.

Pending Publication Date: 2021-04-30
PUHUA YUNCHUANG TECH (BEIJING) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The main purpose of the present invention is to provide a method and system for selecting the optimal node, aiming to solve the technical problems of poor node connection stability and slow transmission speed in the blockchain system in related technologies

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Calculation method and system for selecting optimal node
  • Calculation method and system for selecting optimal node
  • Calculation method and system for selecting optimal node

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0053] Please refer to Figure 1-2 , in order to achieve the above purpose, in the first embodiment of the present invention, the calculation method 100 for selecting the optimal connection node includes the following steps:

[0054] S10, establishing a communication channel between the user node and the contact node;

[0055] In this embodiment, the user node may be a node that newly joins the blockchain, or a node that has already joined the blockchain.

[0056] S20, the user node sends a ping signal to the contact node, wherein the ping signal includes the block height, communication speed and node comprehensive parameters of the user node;

[0057] In this embodiment, the communication speed of the user node is a communication speed between nodes. When the user node is a newly joined node, the communication speed is the time required for establishing a communication channel between the user node and the contact node; when the user node is a node that has joined the block c...

no. 2 example

[0080] see image 3 , based on the calculation method 100 for optimal connection nodes provided in the first embodiment of the present invention, the second embodiment of the present invention provides another calculation method 200 for optimal connection nodes, the steps S10-S50 are the same, and the difference is The difference is that after the step S50, the following steps are also included:

[0081] S60. Respond to the request for data synchronization again, and enter the step S20.

[0082] When the user node is a node that has joined the blockchain system, this embodiment can be applied to the following scenarios:

[0083] In the normal operation of the blockchain network, there are a large number of nodes; we randomly select a node, called node P for the time being, P node is now connected to node A, after a new round of communication, P node calculates the current most The superior node is node B, then node P will reconnect to node B according to the address of node ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a calculation method and system for selecting an optimal connection node. The method comprises the following steps: establishing a communication channel between a user node and a contact node; enabling the user node to send a ping-pong signal to the contact node, wherein the ping-pong signal comprises a block height, a communication speed and a node comprehensive parameter of the user node; enabling the contact node to receive the ping-pong signal and feed back the ping-pong signal to the user node, wherein the ping-pong signal comprises the block height, the communication speed, the connected node address data and the node comprehensive performance list of the contact node; enabling the user node to receive the ping-pong signal, select an optimal node according to a node comprehensive performance list, and set the optimal node as a new contact node; and obtaining address data of the corresponding optimal node according to the address data of the connected nodes, establishing a communication channel between the user node and the optimal node, and executing data synchronization operation. According to the technical scheme provided by the invention, the stability of node connection can be effectively improved; and the node comprehensive performance can be computed.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and system for selecting an optimal node. Background technique [0002] Blockchain technology uses block chain data structure to verify and store data, uses distributed node consensus algorithm to generate and update data, uses cryptography to ensure the security of data transmission and access, and utilizes intelligence composed of automated script codes. A new distributed infrastructure and computing method that uses contracts to program and manipulate data. [0003] Blockchain has the characteristics of decentralization, non-tampering, transparency and openness, etc. Among them, the decentralization feature of blockchain technology has always been called the most typical feature of blockchain technology. [0004] In a system distributed with many nodes, each node has a high degree of autonomy. Nodes can be freely connected to each other to form new connection u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/1004H04L67/1095H04L67/1097
Inventor 翟红鹰
Owner PUHUA YUNCHUANG TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products