Invented by Qiang Tang, Advanced New Technologies Co Ltd
View switching refers to the process of changing the view of a blockchain network from one node to another. This is necessary when a node fails or becomes unresponsive, and another node needs to take over its responsibilities. In a blockchain network, view switching is critical to ensure the network’s stability and reliability.
The market for method of view switching in a blockchain network is a growing one. As more businesses and organizations adopt blockchain technology, the need for reliable and efficient view switching methods becomes more pressing. There are several methods of view switching in a blockchain network, and each has its advantages and disadvantages.
One of the most popular methods of view switching is the use of a primary-backup system. In this system, one node is designated as the primary node, while the other nodes act as backups. If the primary node fails, one of the backup nodes takes over its responsibilities. This method is simple and efficient, but it can be expensive to implement and maintain.
Another method of view switching is the use of a consensus algorithm. In this method, all nodes in the network work together to reach a consensus on which node should take over the responsibilities of the failed node. This method is more complex than the primary-backup system, but it is more reliable and can handle multiple node failures.
The market for method of view switching in a blockchain network is expected to grow in the coming years. As more businesses and organizations adopt blockchain technology, the need for reliable and efficient view switching methods will become more pressing. The primary-backup system and consensus algorithm are just two of the methods available, and new methods may be developed in the future.
In conclusion, the market for method of view switching in a blockchain network is a growing one. As blockchain technology becomes more widespread, the need for reliable and efficient view switching methods will become more pressing. Businesses and organizations that adopt blockchain technology should carefully consider the method of view switching they use to ensure the stability and reliability of their network.
The Advanced New Technologies Co Ltd invention works as follows
Implementations” of the current solution reveal a method to trigger view switching in a Blockchain without requiring backup nodes to execute a separate consensus. The primary node of the blockchain receives a conditional trigger that signals a view switch. The primary node then selects a node to act as the new primary node for the next view. The new primary can initiate a consensus for the next view.
Background for Method of view switching in a Blockchain network
Currently, blockchain technology is widely adopted, and the decentralized mode of the technology ensures data cannot be easily altered, thus improving security.
In practice, a network of blockchain nodes that include multiple nodes (which can be viewed as devices that are part of the network and participate in processing services), can provide services to client devices. Nodes within the blockchain network process service requests from client devices and then feed processing results back to them. Processing results may not be consistent when nodes are running independently. To ensure the client device receives a correct result, a consensus is achieved among the nodes using a Practical Byzantine Fault Tolerance algorithm (PBFT).
In a process using the PBFT algorithms, a consensus usually occurs in a view. In a “view”, one node is designated as the primary node of a blockchain, and all other nodes as backup nodes. In this scenario, the primary receives a request from the client device, broadcasts it to all backup nodes and initiates consensus. The nodes who reach consensus process the service request, and then feed the processing result back to the client device.
In the current technology, the backup node initiates the view switch, and this view switch initiated by the backup is usually acknowledged or accepted by the other nodes within the view. The backup node initiates the view switching to the other nodes in the view (including the primary). This consensus is still based on PBFT. In a consensus based on a view switching request each node suspends consensus on service request. This is different from the consensus process on service requests. The consensus on the request for view switching is therefore essentially a second consensus process). Once a certain number of nodes have reached a consensus, a backup is made the primary node. The new primary broadcasts a message with a new view to complete the view switch.
However in the previous method, a consensus process is required for the view switch initiated by the backup. This additional consensus process increases the system computation amount. A consensus can also be reached in the view switching consensus process after a certain number of nodes confirm it. The process is completed when a primary node broadcasts the new view message. According to this, the existing way of switching views increases not only a system’s computation, but also the time it takes to process a service request. “As a result, processing efficiency is low.
The present application provides a method and apparatus for achieving consensus, which alleviates the problem of how a current way of switching views increases a network’s computation and processing time.
The present application implements a method of consensus that includes: monitoring by a primary blockchain node the triggering condition of view switching; selecting a successor by the primary blockchain node; switching a current view based on a successor to the next view using the successor as a subsequent blockchain primary.
The present application implements a consensus device that includes: a monitoring component, which monitors the triggering condition of a new view; a node-determining module that selects a successor when the monitoring component monitors this condition; and a switch module that switches a current view from a previous view using the successor as the blockchain primary node. This ensures that the blockchain primary node initiating a consensus is the successor.
The implementations in the present application provide an apparatus and method for consensus.” The blockchain primary node actively tracks the condition of view switching in any view. The blockchain primary node must switch views if the view switching condition has been triggered. The blockchain primary selects from among other nodes a successor to be the primary blockchain node for the next view. The blockchain primary node switches views in this way. In the switched-view, the successor node acts as a new primary blockchain node for processing a service. View switching continues to be performed using the previous process. The blockchain primary node appears to have initiated the previous view switch. This prevents the backup node of the blockchain from initiating a view switching consensus. A second consensus, in other words can be avoided. In a blockchain network, this can reduce the amount of computation and time consumed.
BRIEF DESCRIPTION DES DRAWINGS
The accompanying drawings are described to help you better understand the present application. They form a part thereof. The descriptions and illustrations of the implementations and features of the application are meant to be used as a guide and not as limitations. The drawings accompanying this application:
FIG. “FIG.
FIG. “FIG.
FIG. “FIG.
FIG. “FIG.
FIG. “FIG.
FIG. “FIG.
DESCRIPTION AND IMPLEMENTATIONS
To make clearer the objectives, technical solution, and advantages, the following describes clearly and comprehensively the technical solutions in the present applications with references to specific implementations, as well as accompanying drawings. The described implementations appear to be a subset of all the implementations in the present application. “All other implementations that a person with ordinary skill in art could obtain based on implementations of this application without any creative effort shall be covered by the present application.
As previously described, once a primary blockchain node fails, a backup blockchain node will initiate view switching. A second consensus is required for view switching initiated from the backup node. View switching is only possible after other nodes have acknowledged or accepted it. An additional consensus process appears to increase the computation of a network and processing time.
Accordingly an implementation of the current application provides a method for consensus.” After a consensus has ended, a primary blockchain node can initiate view switching to switch a primary blockchain node. No additional consensus is required. A blockchain primary node will be referred as a “primary node” and a Blockchain backup node as “backup node”. This is to make it easier to describe. Also, “nodes” are also used. The nodes described below are those that participate in consensus in a Blockchain network.
Click here to view the patent on Google Patents.
Leave a Reply