Routing information processing method, device, routing information interaction system and routing equipment
By sending routing node registration information and updating routing information files in the blockchain network, the problem of cumbersome routing data update in the existing technology is solved, and automatic and timely update of routing node information in the cross-chain network and data processing efficiency is improved.
Patent Information
- Application Number
- CN202211449563.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-11-18
AI Technical Summary
The existing cross-link routing communication methods require manual update of routing data, which leads to cumbersome information updates and the inability to achieve timely update of distributed hash tables, affecting data processing efficiency.
By sending routing node registration information in the blockchain network, responding to node registration instructions, updating routing information files, and improving the routing information files of the target routing node based on the routing information files of each routing node in the blockchain network.
It realizes automatic and timely update of routing node information in cross-chain networks, ensures the consistency and up-to-date information, avoids unnecessary resource occupation, and improves overall data processing efficiency.
Smart Images

Figure CN115996187B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a routing information processing method, apparatus, routing information interaction system, and routing equipment. Background Art
[0002] With the development of Internet technology, different blockchains can realize value circulation and transfer through cross-chain technology. Most of the current cross-chain routing communications are based on distributed hash tables to achieve communication between different cross-chain nodes. This allows data from different blockchains to be traded, achieving the effect of multi-chain interconnection.
[0003] However, the above method usually requires the local maintenance of routing data of all routing nodes. When routing nodes from different spaces (not the same blockchain) join, it is often necessary to manually update the routing table of the existing routing nodes. Alternatively, only when the existing routing node communicates with the newly added routing node, the information of the routing node will be automatically added to the routing table of the existing routing node. This method is cumbersome to operate, and it cannot achieve timely update of the distributed hash table of all routing nodes, affecting the overall data processing efficiency. Summary of the invention
[0004] The content of this disclosure is used to introduce concepts in a brief form, and these concepts will be described in detail in the specific implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution for which protection is sought, nor is it intended to limit the scope of the technical solution for which protection is sought. Some embodiments of the present disclosure propose a routing information processing method, an apparatus, a routing information interaction system, a routing device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0005] In a first aspect, some embodiments of the present disclosure provide a routing information processing method, comprising: in response to receiving a node registration instruction, sending routing node registration information to a blockchain network, so that each routing node in the blockchain network updates a routing information file, wherein the routing node registration information includes attribute information of a target routing node, and the blockchain network includes at least two blockchains; in response to receiving feedback information sent by the blockchain network for characterizing a successful registration, storing the attribute information of the target routing node in the routing information file of the target routing node; and based on the routing information files of each routing node in the blockchain network, improving the routing information file of the target routing node.
[0006] In some embodiments, the method further includes: monitoring events representing changes in node information in the blockchain network; and updating the routing information file of the target routing node based on the monitored event data.
[0007] In some embodiments, the routing information file of the target routing node is updated based on the monitored event data, including: in response to receiving event data representing a newly added routing node, determining whether there is information about the newly added routing node in the routing information file of the target routing node; in response to determining that it does not exist, adding attribute information of the newly added routing node to the routing information file of the target routing node.
[0008] In some embodiments, the method further includes: in response to receiving an information sending instruction, obtaining attribute information of the destination routing node from the routing information file of the target routing node, wherein the information sending instruction includes information and flow data of the destination routing node; and sending the flow data to the destination routing node based on the attribute information of the destination routing node.
[0009] In some embodiments, based on the attribute information of the destination routing node, the flow data is sent to the destination routing node, including: generating target flow data according to an information sending instruction, wherein the target flow data includes the flow data, the information of the target routing node and the information of the destination routing node; and sending the target flow data to the destination routing node according to the position indicated by the attribute information.
[0010] In some embodiments, the method further includes: in response to receiving flow feedback information sent by the destination routing node, sending the flow information indicated by the information sending instruction to the blockchain network.
[0011] In some embodiments, based on the routing information files of each routing node in the blockchain network, the routing information file of the target routing node is improved, including: for each routing node in the blockchain network, determining whether there is information of the routing node in the routing information file of the target routing node, and in response to determining that it does not exist, adding the attribute information of the routing node to the routing information file of the target routing node.
[0012] In some embodiments, based on the routing information files of each routing node in the blockchain network, the routing information file of the target routing node is improved, including: in response to detecting a start signal of the target routing node, obtaining the routing information files of each routing node in the blockchain network; based on the obtained routing information files, improving the routing information file of the target routing node.
[0013] In a second aspect, some embodiments of the present disclosure provide a routing information processing device, including: a registration information sending unit, configured to send routing node registration information to a blockchain network in response to receiving a node registration instruction, so that each routing node in the blockchain network updates a routing information file, wherein the routing node registration information includes attribute information of a target routing node, and the blockchain network includes at least two blockchains; an information storage unit, configured to store the attribute information of the target routing node in the routing information file of the target routing node in response to receiving feedback information sent by the blockchain network for characterizing a successful registration; an information improvement unit, configured to improve the routing information file of the target routing node based on the routing information files of each routing node in the blockchain network.
[0014] In some embodiments, the device also includes a monitoring module configured to monitor events representing changes in node information in the blockchain network; and update the routing information file of the target routing node based on the monitored event data.
[0015] In some embodiments, the monitoring module is further configured to determine whether there is information about the newly added routing node in the routing information file of the target routing node in response to receiving event data representing the newly added routing node; in response to determining that it does not exist, add the attribute information of the newly added routing node to the routing information file of the target routing node.
[0016] In some embodiments, the device also includes a flow data sending module, which is configured to obtain attribute information of the destination routing node from the routing information file of the target routing node in response to receiving an information sending instruction, wherein the information sending instruction includes information of the destination routing node and flow data; based on the attribute information of the destination routing node, send the flow data to the destination routing node.
[0017] In some embodiments, the flow data sending module is further configured to generate target flow data according to the information sending instruction, wherein the target flow data includes flow data, information of the target routing node and information of the destination routing node; and send the target flow data to the destination routing node according to the position indicated by the attribute information.
[0018] In some embodiments, the flow data sending module is further configured to send the flow information indicated by the information sending instruction to the blockchain network in response to receiving the flow feedback information sent by the destination routing node.
[0019] In some embodiments, the information completion unit is further configured to determine, for each routing node in the blockchain network, whether the information of the routing node exists in the routing information file of the target routing node, and in response to determining that it does not exist, add the attribute information of the routing node to the routing information file of the target routing node.
[0020] In some embodiments, the information improvement unit is further configured to obtain the routing information file of each routing node in the blockchain network in response to detecting the start signal of the target routing node; and improve the routing information file of the target routing node based on the obtained routing information file.
[0021] In a third aspect, some embodiments of the present disclosure provide a routing information interaction system, comprising: a blockchain network, configured to receive and process registration information sent by each routing node, and to push events representing changes in node information in the network to achieve synchronous updating of information, wherein the blockchain network comprises at least two blockchains, and each of the at least two blockchains is provided with at least one routing node; the routing node is configured to perform information interaction using the method described in any implementation method of the first aspect above.
[0022] In a fourth aspect, some embodiments of the present disclosure provide a routing device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the above-mentioned first aspect.
[0023] In a fifth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the implementations in the first aspect above is implemented.
[0024] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the routing information processing method of some embodiments of the present disclosure can realize cross-chain communication of routing nodes in different spaces when a new routing node joins the cross-chain network, and can ensure that the information of each routing node can be updated automatically and in time. Specifically, one of the reasons why the information of each routing node in the blockchain network cannot be updated in time is that the cross-chain routing communication based on the distributed hash table usually requires manual maintenance of the routing data of each routing node. In this case, when a new routing node joins, it is necessary to manually add the information of the new routing node in the distributed hash table of each routing node. The number of routing nodes in the network is generally large, and they may usually be distributed in different geographical locations or managed by different personnel. This will greatly increase the time and difficulty of updating information. In addition, in the case of realizing information update through communication between routing nodes, when a new routing node joins, each existing routing node needs to communicate with the new routing node once. This will cause unnecessary resource occupation and affect the overall data processing efficiency.
[0025] Based on this, the routing information processing method of some embodiments of the present disclosure can send routing node registration information to the network when a new routing node is added to the cross-chain blockchain network. In this way, the blockchain network can notify other (existing) routing nodes in the network through events so that these routing nodes can update their own routing information files. That is, the information of the new routing node is added to the routing information file of each routing node, so that the information of all routing nodes can be automatically updated in time. In addition, when it is determined that the registration is successful, the new routing node can improve its own stored routing information file based on the routing information file of each routing node in the network. That is, the information of other routing nodes is added to the routing information file of the new routing node. In this way, the information of the new routing node can also be automatically improved and updated. In other words, when a new routing node is registered in the cross-chain network, the implementation method of the present disclosure can realize the automatic update of the information of all routing nodes, ensure the consistency and latest of the information, and will not cause unnecessary resource occupation, which is conducive to improving the overall data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0027] Figure 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
[0028] Figure 2 is a flow chart of some embodiments of the routing information processing method according to the present disclosure;
[0029] Figure 3 are flow charts of other embodiments of the routing information processing method according to the present disclosure;
[0030] Figure 4 is a schematic diagram of the structure of some embodiments of the routing information processing device according to the present disclosure;
[0031] Figure 5 is a working sequence diagram of some embodiments of the routing information interaction system according to the present disclosure;
[0032] Figure 6 It is a structural diagram of a routing device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0034] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0035] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0038] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0039] Figure 1 An exemplary system architecture 100 is shown to which a routing information processing method or a routing information processing apparatus according to some embodiments of the present disclosure can be applied.
[0040] like Figure 1 As shown, the system architecture 100 may include terminals 101, 102, routing nodes 11, 12, 21, 22 and a blockchain network W. Among them, routing nodes 11, 12 may belong to the first blockchain (as shown by the dotted line in the figure). And routing nodes 21, 22 may belong to the second blockchain. The blockchain network W can be used to provide a medium for communication links between routing nodes 11, 12, 21, 22. The blockchain network W may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0041] Here, users can use terminals 101 and 102 to manage the routing nodes in the blockchain network through the network. Various client applications can be installed on terminals 101 and 102, such as cross-chain routing management applications, shopping applications, web browsing applications, and instant messaging tools.
[0042] The terminals 101 and 102 here can be hardware or software. When the terminals 101 and 102 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, etc. When the terminals 101 and 102 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules for providing distributed services, or they can be implemented as a single software or software module. No specific limitation is made here.
[0043] When receiving the node registration instruction sent by the terminal, the routing nodes 11, 12, 21, and 22 can send the routing node registration information to the blockchain network W. And when the registration is successful, the attribute information of the routing node 11, 12, 21, and 22 can be stored in the routing information file maintained locally. And the routing information file of the routing node 11, 12, 21, and 22 can be improved based on the routing information file of each routing node in the blockchain network.
[0044] The routing nodes 11, 12, 21, and 22 here can be hardware devices with routing functions, or they can be software. When the routing node is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the routing node is software, it can be implemented as multiple software or software modules for providing distributed services, or it can be implemented as a single software or software module. No specific limitation is made here.
[0045] It should be noted that the method provided in the embodiment of the present disclosure may be executed by routing nodes 11, 12, 21, 22. Accordingly, the device may be arranged in routing nodes 11, 12, 21, 22. No specific limitation is made here.
[0046] It should be understood that Figure 1 The number of terminals, blockchains, routing nodes, and blockchain networks in the embodiment is only for illustration. Any number of terminals, blockchains, routing nodes, and blockchain networks may be provided as required.
[0047] Continue to refer Figure 2 , shows a process 200 of some embodiments of the routing information processing method according to the present disclosure. The method comprises the following steps:
[0048] Step 201, in response to receiving a node registration instruction, sending routing node registration information to the blockchain network.
[0049] In some embodiments, the execution subject of the routing information processing method (for example Figure 1 The routing node 11 shown in the figure can send routing node registration information to the blockchain network when receiving the node registration instruction. The node registration instruction here can be used to instruct the registration of the routing node to the blockchain, that is, to add a new routing node to the blockchain network. As an example, the node registration instruction may include information about the blockchain to be added, such as the name or location of the blockchain. The user can send the instruction to the routing node to be added through the terminal. The routing node here can be a node that can implement the routing function. For example, when data is transmitted from the source to the destination, the device (such as a router, server, etc.) passed through during the transmission process can be a routing node.
[0050] Here, upon receiving the instruction, the execution subject can generate routing node registration information and send it to the blockchain network. Among them, the routing node registration information can usually include the attribute information of the target routing node (i.e., the execution subject). The attribute information here can include at least one of the following: its own node information (such as node identification, device name, model), IP address (Internet Protocol Address), port, etc. Among them, the node identification can be used to distinguish the routing nodes in the blockchain network. The node identification can be set according to the actual situation. Usually, a routing node corresponds to a blockchain node.
[0051] It should be noted that the above blockchain network may include at least two blockchains. In other words, the blockchain network here is a cross-chain network. Blockchain is generally a type of distributed ledger. A blockchain is an independent ledger. Two different blockchains are two different independent ledgers. Usually, there is no connection between the two ledgers, and there is essentially no way to transfer between the ledgers. However, cross-chain technology can realize the value transfer between different blockchains. That is, the above blockchain network can be a network using cross-chain technology.
[0052] It is understandable that the blockchain network can process the routing node registration information when it receives it. For example, it can determine whether to receive the routing node registration, and the determination result can be fed back to the execution subject. If received, it means that the routing node registration is successful. If rejected, it means that the routing node registration failed. In addition, in the case of successful registration of the routing node, the blockchain network can notify the existing routing nodes in the network, that is, the routing nodes other than the execution subject (target routing node), so that these routing nodes update their respective routing information files. As an example, when a new routing node is registered, the existing routing nodes can be informed by means of blockchain events, so that the attribute information of the new routing node can be added to the routing information files maintained by each cache. In this way, the timely synchronization and automatic update of the information of each routing node in the network can be achieved, so that the consistency and latest of the routing information in the network can always be guaranteed.
[0053] The routing information file here may be any file for storing attribute information of each routing node, for example, a routing table (a routing table storing a path to a specific network address, which contains topological information of the network periphery). As an example, the routing information file may be a distributed hash table.
[0054] Step 202, in response to receiving feedback information sent by the blockchain network that indicates successful registration, the attribute information of the target routing node is stored in the routing information file of the target routing node.
[0055] In some embodiments, when feedback information sent by the blockchain network is received and the feedback information is used to indicate that the node registration is successful, the execution subject may store the attribute information of the target routing node in the routing information file of the target routing node. Here, the execution subject may pre-create a routing information file locally at the target routing node, that is, initialize the routing information file of the route. After registration, the attribute information of the target routing node may be added to its own routing information file.
[0056] Step 203, based on the routing information files of each routing node in the blockchain network, improve the routing information file of the target routing node.
[0057] In some embodiments, based on the routing information files of each routing node in the blockchain network, the execution subject can improve the routing information file of the target routing node. As an example, for each routing node in the blockchain network, the execution subject can determine whether the routing node's information exists in the routing information file of the target routing node. For example, the execution subject can determine whether there is information matching the information of the routing node (such as device name, node identifier, etc.) in the routing information file of the target routing node. If there is, it means it exists, otherwise it means it does not exist.
[0058] Furthermore, if it is determined to exist, the next routing node can be determined. If it is determined not to exist, the attribute information of the routing node can be added to the routing information file of the target routing node. This cycle is repeated until the information of all routing nodes in the network is added to the routing information file of the target routing node. In this way, the information of all other routing nodes in the blockchain network can be stored in the routing information file of the target routing node (the newly registered routing node), thereby realizing the timely and automatic update of the routing node information.
[0059] In some embodiments, in order to avoid information loss, the execution subject can obtain the routing information file of each routing node in the blockchain network when detecting the start signal of the target routing node. Therefore, based on the obtained routing information file, the above method can be used to improve the routing information file of the target routing node. In other words, each time the target routing node is started, it can read the routing table information of all routing nodes from the blockchain network to determine whether this information is in its routing table. Here, the triggering method of the start signal is not limited. For example, it can be a triggering of a physical switch button on the target routing node, or it can be a receiving of an instruction representing the start of the target routing node.
[0060] In some application scenarios, the execution subject can also start the listening port of the target routing node to listen to the events that represent the changes of node information in the blockchain network. And according to the monitored event data, the execution subject can update the routing information file of the target routing node. In this way, when the routing node information in the network changes, the information can be automatically synchronized and updated.
[0061] It should be noted that the above events may be events that represent any changes in routing node information, such as adding a routing node, deleting a routing node, adjusting the configuration information of a routing node (such as modifying a port or node identifier, etc.), etc.
[0062] Optionally, in response to receiving event data representing a newly added routing node, the execution subject may determine whether there is information about the newly added routing node in the routing information file of the target routing node. If so, no processing is required. If not, the attribute information of the newly added routing node may be added to the routing information file of the target routing node. Similarly, when receiving event data representing the deletion of a routing node, the execution subject may remove the attribute information of the routing node to be deleted from the routing information file of the target routing node.
[0063] It can be seen from the above description that the routing information processing method of some embodiments of the present disclosure can send routing node registration information to the network when a new routing node is added to the cross-chain blockchain network. In this way, the blockchain network can notify other (existing) routing nodes in the network through events so that these routing nodes can update their own routing information files. In addition, when it is determined that the registration is successful, the new routing node can improve its own stored routing information files based on the routing information files of each routing node in the network. In this way, the information of all routing nodes can be dynamically and automatically updated to ensure the consistency and latest of the information, without causing unnecessary resource occupation, which is conducive to improving the overall data processing efficiency.
[0064] See also Figure 3 , shows a process 300 of another embodiment of the routing information processing method according to the present disclosure. The method comprises the following steps:
[0065] Step 301, in response to receiving an information sending instruction, obtaining attribute information of a destination routing node from a routing information file of the target routing node.
[0066] In some embodiments, the execution subject of the routing information processing method may obtain the attribute information of the destination routing node from the routing information file of the target routing node when receiving the information sending instruction. The information sending instruction may include the information of the destination routing node and the flow data. The information of the destination routing node here may be any information used to indicate the destination routing node, such as node identification, device name, etc. The flow data may be data that requires interaction and value flow, such as transaction data. For example, the execution subject may search for attribute information that matches the information of the destination routing node in the routing information file of the target routing node to obtain its detailed information.
[0067] Here, the triggering method of the information sending instruction is also not limited. As an example, the user may perform certain operations on the terminal (such as cross-chain communication testing) to generate an information sending instruction and send it to the target routing node. It can also be that other routing nodes receive the information sending instruction and send it to the target routing node according to the transmission path.
[0068] Step 302: Send the flow data to the destination routing node based on the attribute information of the destination routing node.
[0069] In some embodiments, based on the attribute information of the destination routing node obtained in step 301, the execution subject can send the flow data to the destination routing node. As an example, the execution subject can convert the flow data into a data format readable by the destination routing node. Afterwards, the converted flow data is sent to the destination routing node according to the position indicated by the attribute information (such as IP address and port). It is understandable that the information of the sender (sending routing node) (such as node identification) can be included in the structure of the sent data. In this way, the receiver (destination routing node) can read the sender's information from the data structure, thereby knowing who the sender is.
[0070] Optionally, the execution subject can generate target flow data according to the information sending instruction. Among them, the target flow data may include flow data, information of the target routing node and information of the destination routing node. The information of the target routing node here can also be any information used to indicate the target routing node. Then, according to the position indicated by the attribute information, the execution subject can send the target flow data to the destination routing node. In this way, cross-chain communication and transactions can be realized, and the destination routing node can obtain the information of the target routing node that sends the flow data.
[0071] It is understandable that when the destination routing node receives the information sent by the target routing node, it can first determine whether it is the destination routing node to determine whether the information is sent incorrectly. That is, whether its own attribute information matches the information of the destination routing node indicated by the information (such as the same). This can avoid processing the wrong information and avoid wasting resources. If it is determined that it is not the destination routing node, it means that the information may be sent incorrectly, and feedback information can be sent to the target routing node. If it is determined that it is the destination routing node, it means that the information is not sent incorrectly, and the flow data can be processed at this time. In addition, the destination routing node can also obtain the attribute information of the target routing node from its own routing information file, and then send the processing result to the target routing node.
[0072] Furthermore, the executing entity can also send the information sending operation (i.e., transaction operation), i.e., the target routing node sends the flow data to the destination routing node, to the blockchain network, thereby notifying other routing nodes to achieve information synchronization.
[0073] Step 303, in response to receiving the flow feedback information sent by the destination routing node, the flow information indicated by the information sending instruction is sent to the blockchain network.
[0074] In some embodiments, upon receiving the flow feedback information sent by the destination routing node, the execution subject may send the flow information indicated by the information sending instruction to the blockchain network to achieve information synchronization. Among them, the flow feedback information can be used to indicate the processing result of the flow data. In other words, the execution subject can also synchronize and update the transaction results in the blockchain network.
[0075] It should be noted that the target routing node can send information to the destination routing node through various connection methods. The connection method here can be set according to the monitoring method. If the monitoring is udp (User Datagram Protocol, a transport layer protocol), udp connection can be used. If the monitoring is tpc (Transmission Control Protocol, a transport layer protocol), tpc connection can be used.
[0076] The routing information processing method provided by some embodiments of the present disclosure further enriches and improves the routing information interaction process, especially cross-chain interactive communication. In addition, since each routing node has a local cache of routing information files, the required routing node information can be quickly obtained from the routing information files maintained by itself. Compared with cross-chain communication through relay contracts, the implementation method of the present disclosure does not require addressing between cross-chain routes, and cross-chain transactions will not be limited by the performance of the blockchain network itself. This can effectively improve the performance of cross-chain communication transactions, that is, improve the overall data processing efficiency.
[0077] Further references Figure 4 , as a response to the above Figure 2 , 3 The present disclosure provides some embodiments of routing information processing devices, and these device embodiments are related to Figure 2 , 3 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0078] like Figure 4As shown, the routing information processing device 400 of some embodiments may include: a registration information sending unit 401, configured to send routing node registration information to the blockchain network in response to receiving a node registration instruction, so that each routing node in the blockchain network updates the routing information file, wherein the routing node registration information includes attribute information of the target routing node, and the blockchain network includes at least two blockchains; an information storage unit 402, configured to store the attribute information of the target routing node in the routing information file of the target routing node in response to receiving feedback information sent by the blockchain network for characterizing successful registration; an information improvement unit 403, configured to improve the routing information file of the target routing node based on the routing information files of each routing node in the blockchain network.
[0079] In some embodiments, the routing information processing device 400 may further include a monitoring module ( Figure 4 (not shown in the figure), configured to monitor events representing changes in node information in the blockchain network; update the routing information file of the target routing node according to the monitored event data
[0080] In some embodiments, the monitoring module can be further configured to determine whether there is information about the newly added routing node in the routing information file of the target routing node in response to receiving event data representing the newly added routing node; in response to determining that it does not exist, add the attribute information of the newly added routing node to the routing information file of the target routing node.
[0081] In some embodiments, the routing information processing device 400 may further include a flow data sending module ( Figure 4 ), is configured to, in response to receiving an information sending instruction, obtain the attribute information of the destination routing node from the routing information file of the target routing node, wherein the information sending instruction includes the information and flow data of the destination routing node; based on the attribute information of the destination routing node, send the flow data to the destination routing node.
[0082] In some embodiments, the flow data sending module can be further configured to generate target flow data according to the information sending instruction, wherein the target flow data includes flow data, information of the target routing node and information of the destination routing node; and send the target flow data to the destination routing node according to the position indicated by the attribute information.
[0083] In some embodiments, the flow data sending module can also be configured to send the flow information indicated by the information sending instruction to the blockchain network in response to receiving the flow feedback information sent by the destination routing node.
[0084] In some embodiments, the information improvement unit 403 can be further configured to determine, for each routing node in the blockchain network, whether the routing node's information exists in the routing information file of the target routing node, and in response to determining that it does not exist, add the attribute information of the routing node to the routing information file of the target routing node.
[0085] In some embodiments, the information improvement unit 403 is further configured to obtain the routing information file of each routing node in the blockchain network in response to detecting the start signal of the target routing node; and improve the routing information file of the target routing node based on the obtained routing information file.
[0086] It is understandable that the units described in the routing information processing device 400 are similar to those described in the reference Figure 2 , 3 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the routing information processing device 400 and the units included therein, and will not be described in detail here.
[0087] Continuing with reference 5, a routing information interaction system of some embodiments of the present disclosure is shown. The routing information interaction system may include a blockchain network and routing nodes (such as a first routing node and a second routing node).
[0088] Here, the blockchain network can be configured to receive and process registration information sent by each routing node, and push events that represent changes in node information in the network to achieve synchronous update of information. The blockchain network can include at least two blockchains. Each of the at least two blockchains can be provided with at least one routing node. The routing node can be configured to adopt the above-mentioned Figure 2 , 3 Information exchange is performed using the method described in any one of the implementations.
[0089] As an example, Figure 5 As shown, when the first routing node (belonging to the first blockchain) needs to join the blockchain network, the first routing node can send routing node registration information to the blockchain network. When the blockchain network receives the first routing node to join, it can send feedback information to it. At this time, the first routing node can initialize its own routing table. And it can read the routing tables of other routing nodes in the blockchain network to improve its own routing table.
[0090] In addition, the first routing node and the second routing node (belonging to the second blockchain) can monitor events that represent changes in routing node information, and the blockchain network can also push these events, so that the information can be updated synchronously. When the first routing node joins successfully, it can notify other routing nodes (such as the second routing node) through blockchain events. After receiving the information, other routing nodes can add the attribute information of the first routing node to the routing table they maintain.
[0091] When a user initiates a cross-chain transaction, the information of the destination routing node can be input through parameter input. For example, when the first routing node sends a cross-chain transaction to the second routing node, the first routing node can obtain the IP address and port information of the second routing node from its own routing table. Thus, the transaction data is sent to the second routing node. After confirming that the node is correct, the second routing node can process the transaction data. The second routing node can also obtain the IP address and port information of the first routing node from its own routing table. Thus, the transaction results are fed back to the first routing node. In addition, the first routing node can upload the transaction and transaction results to the blockchain network. For details, see Figure 2 , 3 The relevant description in the embodiments will not be repeated here.
[0092] Each routing node recorded in the routing information interaction system disclosed in the present invention and the reference Figure 2 , 3 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the system and each routing node contained therein, and will not be described in detail here.
[0093] Reference below Figure 6 , which shows a routing device 600 (eg, Figure 1 A schematic diagram of the structure of the routing device in FIG. Figure 6 The routing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0094] like Figure 6As shown, the routing device 600 may include a processing device 601 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. Various programs and data required for the operation of the routing device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0095] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, a physical button, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a display light, a speaker, a vibrator, etc.; storage devices 608 including, for example, a hard disk, etc.; and communication devices 609. The communication devices 609 may allow the routing device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The routing device 600 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0096] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0097] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0098] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0099] The computer-readable medium may be included in the routing device; or it may exist independently without being assembled into the routing device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the routing device, the routing device: in response to receiving a node registration instruction, sends routing node registration information to the blockchain network so that each routing node in the blockchain network updates the routing information file, wherein the routing node registration information includes the attribute information of the target routing node, and the blockchain network includes at least two blockchains; in response to receiving feedback information sent by the blockchain network to characterize successful registration, the attribute information of the target routing node is stored in the routing information file of the target routing node; based on the routing information files of each routing node in the blockchain network, the routing information file of the target routing node is improved.
[0100] In addition, computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including a registration information sending unit, an information storage unit, and an information improvement unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the registration information sending unit may also be described as a "unit for sending routing node registration information to a blockchain network".
[0103] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0104] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for processing routing information, comprising: In response to receiving the node registration instruction, sending routing node registration information to the blockchain network, so that each routing node in the blockchain network updates the routing information file, wherein the routing node registration information includes attribute information of the target routing node, which is used to add a new routing node to the blockchain network, and the blockchain network is a cross-chain network including at least two blockchains; In response to receiving feedback information sent by the blockchain network that indicates successful registration, storing the attribute information of the target routing node in a routing information file of the target routing node; Based on the routing information files of each routing node in the blockchain network, improve the routing information file of the target routing node; Among them, each routing node in the blockchain network obtains the information of the required routing nodes according to the locally cached routing information file to realize cross-chain routing communication.
2. The method according to claim 1, wherein: The method further comprises: Monitoring events representing changes in node information in the blockchain network; The routing information file of the target routing node is updated according to the monitored event data.
3. The method according to claim 2, wherein: The updating of the routing information file of the target routing node according to the monitored event data includes: In response to receiving event data representing a newly added routing node, determining whether information of the newly added routing node exists in a routing information file of the target routing node; In response to determining that the target routing node does not exist, adding the attribute information of the newly added routing node to the routing information file of the target routing node.
4. The method according to claim 1, wherein: The method further comprises: In response to receiving an information sending instruction, acquiring attribute information of a destination routing node from a routing information file of the target routing node, wherein the information sending instruction includes information and flow data of the destination routing node; The flow data is sent to the destination routing node based on the attribute information of the destination routing node.
5. The method according to claim 4, wherein: The sending the flow data to the destination routing node based on the attribute information of the destination routing node includes: Generating target flow data according to the information sending instruction, wherein the target flow data includes the flow data, the information of the target routing node and the information of the destination routing node; The target flow data is sent to the destination routing node according to the location indicated by the attribute information.
6. The method according to claim 4, wherein: The method further comprises: In response to receiving the flow feedback information sent by the destination routing node, the flow information indicated by the information sending instruction is sent to the blockchain network.
7. The method according to claim 1, wherein: The method of improving the routing information file of the target routing node based on the routing information file of each routing node in the blockchain network includes: For each routing node in the blockchain network, determine whether the routing node's information exists in the routing information file of the target routing node, and in response to determining that it does not exist, add the routing node's attribute information to the routing information file of the target routing node.
8. The method according to any one of claims 1 to 7, wherein: The method of improving the routing information file of the target routing node based on the routing information file of each routing node in the blockchain network includes: In response to detecting a start signal of the target routing node, obtaining a routing information file of each routing node in the blockchain network; Based on the acquired routing information file, the routing information file of the target routing node is improved.
9. A routing information processing device, comprising: A registration information sending unit is configured to send routing node registration information to the blockchain network in response to receiving a node registration instruction, so that each routing node in the blockchain network updates a routing information file, wherein the routing node registration information includes attribute information of a target routing node, and is used to add a new routing node to the blockchain network, wherein the blockchain network is a cross-chain network, including at least two blockchains; An information storage unit is configured to store the attribute information of the target routing node in a routing information file of the target routing node in response to receiving feedback information sent by the blockchain network and used to indicate successful registration; An information improvement unit is configured to improve the routing information file of the target routing node based on the routing information files of each routing node in the blockchain network; Among them, each routing node in the blockchain network obtains the information of the required routing nodes according to the locally cached routing information file to realize cross-chain routing communication.
10. A routing information interaction system, comprising: A blockchain network is configured to receive and process registration information sent by each routing node, and to push events representing changes in node information in the network to achieve synchronous update of information, wherein the blockchain network is a cross-chain network, including at least two blockchains, and each of the at least two blockchains is provided with at least one routing node; A routing node is configured to perform information interaction using the routing information processing method according to any one of claims 1 to 8.
11. A routing device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
12. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Equipment registration method and device based on block chain, electronic equipment and storage medium
CN111163182A
Data processing method, related device and computer readable storage medium
CN111460458A