Quantum key relay routing calculation method and system

By constructing a quantum key network topology graph and generating an index subgraph, combined with a path planning algorithm, the problem of low computational efficiency of key relay routing in the existing technology is solved, and the method of quickly finding the optimal path and dynamically adapting to network changes is achieved. ability.

CN118523913BActive Publication Date: 2024-10-01中电信量子信息科技集团有限公司
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410985643.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing quantum key relay routing calculation method is difficult to adaptively update during network deployment, resulting in the network topology unable to automatically discover devices, and each node needs to manually configure the key, and the routing calculation efficiency is low when the key relay is requested. , unable to quickly find the optimal path.

Method used

Construct a network topology graph by collecting the status and link information of quantum key network devices, integrate the link key generation rate, node status and the number of concurrent relays to generate an index subgraph, and use a path planning algorithm to perform heuristic search and calculate Best routing path.

Benefits of technology

It realizes the rapid calculation of optimal routes when requesting key relay, reduces the waste of keys during the relay process, improves the reuse rate of network management information, reduces the load of the management and control system, and can dynamically adapt to network topology changes. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118523913B_ABST
    Figure CN118523913B_ABST
Patent Text Reader

Abstract

The present invention discloses a quantum key relay route calculation method and system, the method comprises collecting the device status and link information of each quantum device in a quantum key network and constructing a network topology map; integrating the link key generation rate, the node status and the number of concurrent relays, deleting useless nodes from the network topology map, and obtaining an index sub-map; using a path planning algorithm to perform a heuristic search on the index sub-map, and calculating an optimal routing path; the present invention ensures that when a key relay request occurs, the optimal route can be quickly calculated and the real-time concurrency of the business is taken into consideration, and the proposed method is practical and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum communication technology, and in particular to a quantum key relay routing calculation method and system. Background Art

[0002] Quantum cryptography technology based on the Quantum Key Distribution (QKD) protocol is one of the rapidly developing future industries in recent years. Unlike traditional cryptography which is based on mathematics, quantum cryptography is based on quantum mechanics. It uses the characteristics of quantum physics to ensure the security of symmetric key distribution and uses the distributed quantum keys to encrypt data.

[0003] The network used to generate and distribute quantum keys and provide quantum cryptographic services to the outside world is called a quantum cryptographic network, which integrates a quantum key distribution network based on optical paths and quantum key distribution devices (i.e., QKD devices) and a quantum key management network based on classical communication links and quantum key management devices. Due to the maximum effective distance limitation of key generation between QKD devices, there are no direct quantum links between many QKD devices, and direct distribution of quantum keys cannot be achieved. Instead, quantum keys are relayed through a quantum key management network. Due to the difficulty and cost of network deployment, quantum key distribution networks are generally not fully connected graphs. Therefore, it is necessary to select appropriate quantum relay links, i.e., quantum key relay routes, during the quantum key relay process.

[0004] In the related art, the patent application document with publication number CN104579964A discloses a quantum cryptography network routing method, which centrally calculates the route through the routing server, and the network topology is regularly updated and sent to all relay nodes, and the relay nodes calculate the route by themselves. The routing calculation method builds a tree with the relay node as the root node, and completes the routing from one node to all nodes in a breadth-first traversal manner. When selecting a route, the path with the least number of nodes is preferred; when there are multiple paths with the same number of nodes, the path with the largest minimum value of the remaining quantum key in the node is selected; when there are multiple paths with the same minimum value, the path with the largest second minimum value is selected, and so on.

[0005] The patent application document with publication number CN115460129A discloses a quantum key distribution routing method based on the OSPF protocol, in which each relay KM monitors the changes in neighbor relationships and transmits link change information to the entire area through flooding, and each KM updates its own maintained link database accordingly. When calculating the route, the KM uses the node as the root of the tree and uses the weighted SPF algorithm to calculate the optimal path, but the algorithm does not give a definition of weight.

[0006] The routing method disclosed in the patent application document with publication number CN116032821A uses the lowest generation rate in the quantum key link as the link rate, and uses this as the basis for routing; the key generation method disclosed in the patent application document with publication number CN114362937A combines the KM key amount and the key reduction rate compared with the previous cycle to sort the links; the routing method disclosed in the patent application document with publication number CN106230582A selects multiple shortest paths based on the distance vector routing algorithm and randomly selects one of them as the routing result.

[0007] The patent application document with publication number CN114362938A proposes a quantum communication key management dynamic routing generation network architecture and method. In this scheme, the node information reported by KM is directly sorted and connected to form a routing table, and does not involve the calculation of the optimal routing path.

[0008] In the above technologies, the entire network topology is generally established manually by the administrator by default, and it is impossible to adaptively update the equipment; in addition, although there are related technologies in which the central management node aggregates the topology and calculates the route, and each relay node discovers the adjacency and calculates the route by itself, no matter which method is used, the availability in the actual network deployment is not considered when performing route calculation, and there may be deficiencies in engineering applications. Because the existing methods are cumbersome to network, it is impossible to automatically discover devices and automatically access the network when joining the network. Manual configuration of each device is required, and a pair of keys are preset for all devices that need to be connected. And each node needs to deploy a switch, and the connection lines include but are not limited to: KM and QKD n. KM and KM n, KM and network management system, etc. In the existing routing calculation methods, the method in which each node calculates by itself requires the KM node to save and maintain a large amount of routing information. Changes in network status will lead to large-scale KM routing changes, causing flooding effects. Summary of the invention

[0009] The technical problem to be solved by the present invention is how to propose a practical and efficient quantum cryptography network routing calculation method to ensure that the optimal route can be quickly calculated when a key relay request occurs while taking into account the real-time concurrency of the business.

[0010] The present invention solves the above technical problems by the following technical means:

[0011] The present invention proposes a quantum key relay routing calculation method, the method comprising:

[0012] Collect the device status and link information of each quantum device in the quantum key network and build a network topology map;

[0013] Converged link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph;

[0014] A path planning algorithm is used to perform a heuristic search on the index subgraph to calculate the best routing path.

[0015] Furthermore, the collecting of device status and link information of each quantum device in the quantum key network and constructing a network topology diagram includes:

[0016] Send a hello message to the directly connected neighbor node to confirm the connection relationship, and use a data structure to store the connection status of the current quantum key network;

[0017] In each After the device successfully joins the network, receive the successful Report information sent by the device, including device status, adjacent device information and link information;

[0018] According to the successful The device gradually improves the network connection status stored in the data structure until All adjacent device information uploaded by the device already exists in the data structure storing the network connection status;

[0019] Regularly receive successful network access The quantum key generation rate reported by the device is stored correspondingly with the quantum key generation rate, the key pool capacity and the network connection status in the data structure to generate the network topology graph, wherein the network topology graph is a weighted undirected graph, the nodes in the weighted undirected graph are the quantum devices in the quantum key network, and the edges are the connection status.

[0020] Furthermore, the key pool capacity is The device successfully obtains the The quantum key of the device is then checked periodically.

[0021] Furthermore, the fusion link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph, including:

[0022] The normal state in the network topology diagram The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay tasks that the virtual node is undertaking;

[0023] Determine whether the available key quantity of a virtual node exceeds the requested key quantity of this key relay in a certain upcoming time period;

[0024] If yes, keep the virtual node;

[0025] If not, delete the virtual node;

[0026] If the status is normal If there are still virtual nodes under the node that have not been deleted, then each All virtual nodes under the node are shrunk into one node to obtain the index subgraph.

[0027] Furthermore, the node status in the network topology diagram is normal. The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and the adjacent nodes in the past time period T, and the key relay tasks currently undertaken by the virtual node, including:

[0028] Copying the network topology map to obtain an index map;

[0029] Delete the index map that is in a faulty state Node, and the status is normal The node is split into a set number of virtual nodes, and based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay task that the virtual node is undertaking, the available key amount of each virtual node is calculated as:

[0030]

[0031] In the formula, For the The number of available keys per virtual node, For the The remaining amount of the key pool of virtual nodes, For the The average key generation rate of virtual nodes and adjacent nodes in the past time period T, For the The virtual nodes are currently undertaking the key relay task. , The number of relay tasks undertaken by the virtual node.

[0032] Furthermore, the adopting of a path planning algorithm to perform a heuristic search on the index subgraph to calculate an optimal routing path includes:

[0033] Adding the starting node in the index subgraph to the open list;

[0034] Add the adjacent nodes reachable by the departure node to the open list, set the departure node as the parent node of the reachable adjacent node, and calculate the cost of the reachable adjacent node to the departure node as the cost of the parent node to the departure node plus 1;

[0035] Remove the departure node from the open list and add it to the close list;

[0036] Traverse each node in the open list and take it as the current node. Calculate the priority of each node in the open list based on the cost of the current node from the starting node and the cost of the current node from the target node. Remove the node with the highest priority from the open list and add it to the close list.

[0037] Retrieve the adjacent nodes of the node added to the close list. If the adjacent node is in the close list, skip it. Otherwise, calculate the cost of the adjacent node to the starting node.

[0038] Repeat the above steps of calculating the priority of each node in the open list until the target node is added to the open list;

[0039] The parent nodes are gradually traced from the target node until the departure node is reached to obtain the optimal routing path.

[0040] Furthermore, the cost of the current node from the departure node is the number of nodes on the way from the departure node to the current node, and the cost of the current node from the target node is the number of nodes on the way from the current node to the target node.

[0041] Furthermore, the calculation formula of the cost of the current node to the target node is:

[0042]

[0043] In the formula, For the current node The cost of the distance to the target node, For the current node The longitude, For the current node The latitude, is the longitude of the target node, is the latitude of the target node, is kilometers, Indicates rounding up.

[0044] Furthermore, the priority calculation formula of each node is:

[0045]

[0046] In the formula, Representation Node The overall priority of Is a node The cost of the distance to the starting node; Is a node The estimated cost to reach the target node.

[0047] Furthermore, the method further comprises:

[0048] When there are multiple nodes with the same priority in the open list, a node is randomly selected from the multiple nodes with the same priority, removed from the open list, and added to the close list.

[0049] Furthermore, the step of retrieving the adjacent nodes of the node added to the close list and skipping the adjacent nodes if the adjacent nodes are in the close list, or calculating the cost of the adjacent nodes from the starting node otherwise, includes:

[0050] Retrieve the adjacent nodes of the node added to the close list, and determine whether the adjacent nodes of the node newly added to the close list are in the close list;

[0051] If it is in the close list, skip it;

[0052] If it is not in the close list, determine whether the adjacent node of the node newly added to the close list is in the open list;

[0053] If not, add the adjacent node to the open list, and set the newly added node to the close list as the parent node of its adjacent node. The cost of the adjacent node to the starting node is calculated as the cost of the parent node to the starting node plus 1;

[0054] If yes, the cost of the adjacent node from the starting node in the new path is calculated as the cost of the parent node of the adjacent node from the starting node plus 1, and compared with the cost of the adjacent node from the starting node when it passed through the previous path;

[0055] Based on the comparison result, if the previous path is better, no operation is performed; if the new path is better, the parent node of the adjacent node is set to the node newly added to the close list.

[0056] In addition, the present invention also proposes a quantum key relay routing calculation system, the system comprising:

[0057] A network topology construction module is used to collect the device status and link information of each quantum device in the quantum key network and construct a network topology map;

[0058] Index subgraph generation module, used to integrate link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph;

[0059] The best routing path calculation module is used to use a path planning algorithm to perform a heuristic search on the index subgraph to calculate the best routing path.

[0060] In addition, the present invention also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the quantum key relay routing calculation method as described above is implemented.

[0061] The advantages of the present invention are:

[0062] (1) The present invention first collects the device status and link information of each quantum device and constructs a network topology map, and generates an index subgraph based on the network topology map. The index subgraph generation method increases the consideration of link key generation rate and the number of concurrent relays, and also takes into account the node status and other conditions, which can effectively avoid the core The excessive concurrency of node relays leads to the problem of no key available in the subsequent relays; finally, the heuristic function is used to actively find the path consistent with the direction of the target node on the index subgraph to determine the optimal routing path; the proposed quantum key relay routing calculation method is a practical and efficient quantum cryptographic network routing calculation method, which ensures that the optimal route can be calculated quickly when a key relay request occurs and takes into account the real-time concurrency of the business.

[0063] (2) The present invention is based on real-time upload Adjacency relationships dynamically change the network topology, helping network relay routing to select the best path.

[0064] (3) The present invention actively searches for a path that is consistent with the direction of the destination node through a heuristic function, and the path that passes through the least number of nodes is considered the best path, which can effectively reduce the amount of relay keys wasted in the relay process.

[0065] (4) The present invention realizes network control and network management through integration, thereby improving the reuse rate of management information, reducing the amount of management information transmitted in the network, alleviating the load of the management and control system, and facilitating practical implementation.

[0066] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a flowchart of a quantum key relay routing calculation method proposed in one embodiment of the present invention;

[0068] Figure 2 is a flow chart of generating a network topology diagram in one embodiment of the present invention;

[0069] Figure 3 is an original network topology diagram constructed in an embodiment of the present invention;

[0070] Figure 4 This is a schematic diagram of virtual node splitting in one embodiment of the present invention;

[0071] Figure 5 In one embodiment of the present invention, Figure 4 The topology graph obtained by deleting available nodes;

[0072] Figure 6 In one embodiment of the present invention, Figure 5 The index subgraph obtained by conversion;

[0073] Figure 7 is a schematic diagram of a routing path calculated using a path planning algorithm in one embodiment of the present invention;

[0074] Figure 8 It is a schematic diagram of the structure of a quantum key relay routing computing system proposed in one embodiment of the present invention;

[0075] Fig. 9 This is a diagram of a quantum key distribution network architecture implemented by integrating network control and network management in one embodiment of the present invention. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] like Figure 1 The first embodiment of the present invention proposes a quantum key relay routing calculation method, which includes the following steps:

[0078] S10, collecting the device status and link information of each quantum device in the quantum key network and constructing a network topology map;

[0079] It should be noted that this embodiment collects The device status and link information of the device, QKD device, etc. can be collected in incremental form. The device only maintains the information of adjacent devices and directly connected links, but does not maintain the topology and routing of the entire network.

[0080] It should be understood that Devices adjacent to the device include but are not limited to quantum key network distribution controller QKDNC, other Equipment, QKD equipment, business systems, etc.

[0081] S20, fusion link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph;

[0082] It should be noted that this embodiment takes into account that in an actual quantum key distribution network, key relays between multiple different nodes may occur simultaneously. When calculating a new relay route, the key consumption generated by the ongoing key relay and the key consumption repeatedly occurring in the relay link should be estimated. The concurrent capability of the node is integrated with the link key generation rate, node status, and the number of concurrent relays to generate an index subgraph from the network topology graph for the calculation of this routing path.

[0083] S30: Use a path planning algorithm to perform a heuristic search on the index subgraph to calculate an optimal routing path.

[0084] The quantum key relay routing calculation method proposed in this embodiment can be applied to quantum key distribution devices. By generating an index subgraph based on the network topology graph, the index subgraph generation method increases the consideration of link key generation rate and the number of concurrent relays, and also takes into account the node status and other conditions, which can effectively avoid the core The excessive concurrency of node relays leads to the problem of no key available in the subsequent relays; finally, the heuristic function is used to actively find the path consistent with the direction of the target node on the index subgraph to determine the best routing path; the proposed scheme can ensure that the optimal route can be calculated quickly when a key relay request occurs and take into account the real-time concurrency of the business.

[0085] Furthermore, for the purpose of facilitating management and minimizing the amount of control messages in the network, this embodiment is based on the design of the architecture and the division of network elements in the current industry-popular quantum secure communication network functional architecture, and integrates the network elements used to implement the QKD network control function with the network elements used to implement the QKD network management function to form a quantum key network distribution controller (Quantum Key Distribution Network Controller, abbreviated as QKDNC), which can be used to collect device status and link status from network elements that implement the QKD network management function to draw the network topology.

[0086] In this network architecture, newly connected devices (including Devices and QKD devices) apply to QKDNC for network access, and successful network access The device reports device information and link status to QKDNC, which is used for topology drawing of quantum key network and can be reused for network device management. By integrating network control and network management, the reuse rate of management information is improved, the amount of management information transmitted in the network is reduced, the load of the management and control system is reduced, and it is conducive to actual deployment and implementation.

[0087] Furthermore, after obtaining the device status and link information of each quantum device in the quantum key network, the network topology map is constructed. The construction steps are as follows:

[0088] S11, sending a hello message to the directly connected neighbor node to confirm the connection relationship, and using a data structure to store the connection status of the current quantum key network;

[0089] Specifically, QKDNC sends a hello message to the neighbor node to confirm the connection relationship, and uses a data structure to store the connection status of the current quantum key network, where the data structure can be an adjacency list, an adjacency matrix, an adjacency multi-table and other structures. The stored network connection status includes but is not limited to adjacency relationships, device types, etc., which are not specifically limited in this embodiment.

[0090] S12. After the device successfully joins the network, receive the successful Report information sent by the device, including device status, adjacent device information and link information;

[0091] Specifically, the network After successfully joining the network, the device sends a hello message to its neighbor node to confirm the connection relationship and record the adjacency relationship, device type and other information so that QKDNC can receive the successful network access. Report information sent by the device.

[0092] It should be noted that the neighbor nodes described in this embodiment include but are not limited to QKDNC, other Device, QKD device, business system, etc. are not specifically limited in this embodiment.

[0093] S13. According to the network access success The device gradually improves the network connection status stored in the data structure until All adjacent device information uploaded by the device already exists in the data structure storing the network connection status;

[0094] Specifically, Each time the device collects information and finds that the collected information is different from the information reported to QKDNC last time, it reports the information to QKDNC; QKDNC retrieves the reported information just received from the data structure storing the network connection status. If the information is not retrieved, the data structure content is supplemented and improved; when the adjacency relationship, device type and other information received by QKDNC are the same as the stored connection information, the data structure storing the network connection status is not modified.

[0095] S14, regularly receive successful network access The quantum key generation rate reported by the device is stored correspondingly with the quantum key generation rate, the key pool capacity and the network connection status in the data structure to generate the network topology graph, wherein the network topology graph is a weighted undirected graph, the nodes in the weighted undirected graph are the quantum devices in the quantum key network, and the edges are the connection status.

[0096] Specifically, after the QKD device successfully establishes a quantum key distribution link with its adjacent QKD device and generates a quantum key, it counts its key generation rate. The QKD device reports the quantum key generation rate to the QKDNC once every specific time interval. After successfully obtaining the quantum key from the QKD device, the device periodically checks the key pool capacity and reports it to the QKDNC.

[0097] It should be noted that if Figure 2 As shown, QKDNC initially only knows the Device existence and device status, as each After the device successfully joins the network, it uploads the device status, adjacent device information, and link information to QKDNC. QKDNC gradually improves the network topology until All the adjacent device information uploaded by the device already exists in the topology. QKDNC matches the received key generation rate and key pool capacity with the stored connection relationship and stores them to form a weighted undirected graph such as Figure 3As shown in the figure, the nodes of the graph are the quantum devices in the network, and the edges are the connection states. The node here refers to a physical computer room. device and one or more QKD devices.

[0098] The solution proposed in this embodiment is convenient for networking, reduces the number of links for each node and the number of overall links in the network, and all devices are automatically connected to the QKDNC network, which can dynamically adapt to the devices going off-network and on-network.

[0099] Further, After the device completes a purpose After the device relays its own key, it reports the relay completion message to QKDNC.

[0100] Furthermore, when When an abnormal alarm occurs in the device or QKD device, the alarm information will be reported to QKDNC.

[0101] Furthermore, the step S20: integrating the link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph, specifically including the following steps:

[0102] S21, the state in the network topology diagram is normal The nodes are split into a set number of virtual nodes, and the available key quantity of each virtual node is calculated based on the remaining key quantity in the key pool of each virtual node, the average key generation rate of the virtual node and its neighboring nodes in the past time period T, and the key relay tasks currently undertaken by the virtual node;

[0103] S22, determining whether the available key quantity of a certain virtual node exceeds the applied key quantity of this key relay within a certain upcoming time period, if so, executing step S23, if not, executing step S24;

[0104] S23, retaining the virtual node;

[0105] S24, deleting the virtual node;

[0106] S25, if the status is normal If there are still virtual nodes under the node that have not been deleted, then each All virtual nodes under the node are shrunk into one node to obtain the index subgraph.

[0107] Further, the step S21: the network topology diagram in a normal state The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and the adjacent nodes in the past time period T, and the key relay task being undertaken by the virtual node, which specifically includes the following steps:

[0108] S211, copying the network topology map to obtain an index map;

[0109] It should be noted that, considering that there may be concurrent calculations of paths between multiple different nodes, it is impossible to process them simultaneously on the original network topology map. Moreover, if it is processed on the original network topology map, only one routing calculation can be performed and the next routing calculation cannot be performed. Therefore, this embodiment copies the network topology map and operates on the copied index map.

[0110] S212, for any Node, assuming that the node is If a key is generated between adjacent nodes, the node maintains Key pool and key links, delete the ones in the index map that are in a faulty state Node, when When the node is in normal state, The node is split into a set number of virtual nodes to obtain Figure 4 The network topology diagram of the virtual nodes is split as shown, and based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and the adjacent nodes in the past time period T, and the key relay task being undertaken by the virtual node, the available key amount of each virtual node is calculated as:

[0111]

[0112] In the formula, For the The number of available keys per virtual node, For the The remaining amount of the key pool of virtual nodes, For the The average key generation rate of virtual nodes and adjacent nodes in the past time period T, For the The virtual nodes are currently undertaking the key relay task. , The number of relay tasks undertaken by the virtual node.

[0113] For example, after splitting the virtual nodes, the available key quantity is calculated for each virtual node, and the key stock of the node after 3 minutes is calculated based on the key generation rate on the current link. The virtual nodes that are unavailable or have insufficient key quantity are deleted. The deletion result is as follows: Figure 5 As shown, the index subgraph is generated as Figure 6 shown.

[0114] It should be noted that, considering that in an actual quantum key distribution network, key relays between multiple different nodes may appear at the same time, when performing new relay route calculations, the key consumption generated by the ongoing key relay and the concurrent capacity of the KM nodes that appear repeatedly in the relay link should be estimated, and the link key generation rate, node status, and number of concurrent relays should be integrated to generate an index subgraph from the connection relationship graph. The index subgraph generation method increases the consideration of the link key generation rate and the number of concurrent relays, and also takes into account situations such as abnormal node status. Generating this route based on the index subgraph can effectively avoid the problem of no key available in the subsequent relay due to excessive concurrency of the core KM node relay.

[0115] Furthermore, the step S30: using a path planning algorithm to perform a heuristic search on the index subgraph to calculate the best routing path specifically includes the following steps:

[0116] S31, the starting node in the index subgraph Add to the open list;

[0117] It should be noted that the departure node is the node that makes the demand.

[0118] S32, the starting node The reachable adjacent nodes are added to the open list, and the departure node Set it as the parent node of the reachable adjacent node, and calculate the cost of the reachable adjacent node from the departure node as the cost of the parent node from the departure node plus 1;

[0119] It should be noted that from the starting node Start, Add to an open list, then the cost of the departure node from the starting point is the departure node itself Recorded as 0.

[0120] Specifically, the retrieval and departure nodes If there are adjacent nodes, add the reachable nodes in the adjacent nodes to the openlist and add the departure node Set as the parent node of these reachable nodes, and set the cost of these reachable nodes from the starting node to their parent node .

[0121] S33, the starting node Remove from the open list and add to the close list;

[0122] S34, traverse each node in the open list and take each node as the current node, calculate the priority of each node in the open list according to the cost of the current node from the departure node and the cost of the current node from the target node, and remove the node with the highest priority from the open list and add it to the close list;

[0123] S35, searching for the adjacent nodes of the node added to the close list, if the adjacent node is in the close list, skipping it, otherwise calculating the cost of the adjacent node to the starting node;

[0124] S36, repeat the above steps S34 to S35 until the target node is added to the open list;

[0125] S37, gradually trace the parent nodes from the target node until the departure node is reached to obtain the optimal routing path.

[0126] Furthermore, the cost of the current node from the departure node is the number of nodes on the way from the departure node to the current node, and the cost of the current node from the target node is the number of nodes on the way from the current node to the target node.

[0127] It should be noted that, during quantum key relay, the fewer nodes passed, the less key is consumed by the relay, and the lower the delay is. Therefore, in this embodiment, the node priority is judged by the number of nodes passed. The number of nodes passed from the starting node to the current node is recorded, and the number of nodes passed from the current node to the target node is estimated. The search range is the index subgraph.

[0128] Furthermore, the calculation formula of the cost of the current node to the target node is:

[0129]

[0130] In the formula, For the current node The cost of the distance to the target node, For the current node The longitude, For the current node The latitude, is the longitude of the target node, is the latitude of the target node, is kilometers, Indicates rounding up.

[0131] This embodiment is based on the haversine formula, selects the earth model as a spherical model, takes the equatorial radius as the reference, and calculates the spherical distance between two coordinates, taking the average km per node to estimate the number of nodes from the current node to the target node. The value is determined by the specific network deployment situation.

[0132] Furthermore, the priority calculation formula of each node is:

[0133]

[0134] In the formula, Representation Node The overall priority of Is a node The cost of the distance to the starting node; Is a node The estimated cost to reach the target node.

[0135] It should be noted that when performing routing calculation, since the quantum network is a two-dimensional weighted undirected non-connected graph with no obstacles, it is suitable to use a heuristic algorithm. In this embodiment, a path planning algorithm is used. Perform a heuristic search to calculate the priority of each node using a heuristic function, where: The smaller the value, the lower the cost and the shorter the path, and the higher the overall priority of the node.

[0136] Furthermore, in this embodiment, one is selected from the open list. The node with the smallest value , remove it from the open list and add it to the close list; if there are multiple nodes with the same comprehensive priority value, a node is randomly selected from them, removed from the open list, and added to the close list.

[0137] Furthermore, the step S35: retrieving the adjacent nodes of the node added to the close list, if the adjacent node is in the close list, skipping it, otherwise calculating the cost of the adjacent node from the starting node, specifically includes the following steps:

[0138] S351, retrieve the adjacent nodes of the node added to the close list, and determine whether the adjacent nodes of the node newly added to the close list are in the close list, if yes, skip, if not, execute step S352;

[0139] S352, determine whether the adjacent node of the node newly added to the close list is in the open list, if not, execute step S353, if yes, execute step S354;

[0140] S353, add the adjacent node to the open list, set the node newly added to the close list as the parent node of its adjacent node, and calculate the cost of the adjacent node to the departure node as the cost of the parent node to the departure node plus 1;

[0141] S354, calculating the cost of the adjacent node from the departure node in the new path as the cost of the parent node of the adjacent node from the departure node plus 1, and comparing it with the cost of the adjacent node from the departure node when passing through the previous path;

[0142] S355. Based on the comparison result, if the previous path is better, no operation is performed; if the new path is better, the parent node of the adjacent node is set to the node newly added to the close list.

[0143] Specifically, if a node is newly added to the close list If the adjacent node is not in the close list and not in the open list, add the adjacent node to the open list and add the node Set as the parent node of these adjacent nodes, The value is set to its parent node Value +1; if the adjacent node is already in the open list, calculate the adjacent node in the new path The value is its parent node of The value is +1, which is the same as the previous path of the adjacent node. Value comparison, if the previous path is better, no operation is performed, if the new path is better, the parent node of the node is set as node , and the neighboring node The value is replaced by the node in the new path value.

[0144] like Figure 7 As shown, this embodiment actively searches for a path that is consistent with the direction of the destination node through a heuristic function, and takes the path that passes through the least number of nodes as the best path, which can effectively reduce the amount of relay keys wasted in the relay process.

[0145] In addition, if Figure 8 As shown, the second embodiment of the present invention proposes a quantum key relay routing calculation system, the system comprising:

[0146] A network topology map construction module 10 is used to collect the device status and link information of each quantum device in the quantum key network and construct a network topology map;

[0147] The index subgraph generation module 20 is used to integrate the link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph;

[0148] The optimal routing path calculation module 30 is used to perform a heuristic search on the index subgraph using a path planning algorithm to calculate the optimal routing path.

[0149] This embodiment generates an index subgraph based on the generated network topology graph. The index subgraph generation method increases the consideration of link key generation rate and the number of concurrent relays, and also takes into account situations such as abnormal node status. It can effectively avoid the problem of no key available in the relay caused by excessive concurrency of core KM node relays.

[0150] Specifically, the quantum key relay routing computing system proposed in this embodiment can be implemented by integrating network control and network management. The quantum key distribution network architecture is as follows: Fig. 9 As shown, in this embodiment, the current quantum key relay demand is initiated by KM-1, with the purpose of establishing a 300-byte quantum key shared between KM-1 and KM-9. QKDNC performs virtual node splitting on the nodes in the generated network topology diagram. After the virtual nodes are split, the available key amount is calculated for each virtual node, and the key stock of the node after 3 minutes is calculated based on the key generation rate on the current link. Unavailable virtual nodes or those with insufficient key amount are deleted, and an index subgraph is generated. Based on the index subgraph, the optimal route calculation is performed.

[0151] Furthermore, the network topology diagram construction module 10 includes:

[0152] An information storage module is used to send hello messages to directly connected neighbor nodes to confirm the connection relationship, and use a data structure to store the connection status of the current quantum key network;

[0153] Information receiving module, used in each After the device successfully joins the network, receive the successful Report information sent by the device, including device status, adjacent device information and link information;

[0154] The information update module is used to update the The device gradually improves the network connection status stored in the data structure until All adjacent device information uploaded by the device already exists in the data structure storing the network connection status;

[0155] The topology map generation module is used to periodically receive successful network access The quantum key generation rate reported by the device is stored correspondingly with the quantum key generation rate, the key pool capacity and the network connection status in the data structure to generate the network topology graph, wherein the network topology graph is a weighted undirected graph, the nodes in the weighted undirected graph are the quantum devices in the quantum key network, and the edges are the connection status.

[0156] Furthermore, the index subgraph generation module specifically includes:

[0157] The node splitting unit is used to split the nodes in the normal state in the network topology diagram. The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay tasks that the virtual node is undertaking;

[0158] A key quantity determination unit, used to determine whether the available key quantity of a certain virtual node exceeds the applied key quantity of this key relay within a certain upcoming time period;

[0159] A node operation unit, used to retain the virtual node when the key amount determination module outputs a yes result, and to delete the virtual node when the key amount determination module outputs a no result;

[0160] Index sub-graph generation unit, used in normal state If there are still virtual nodes under the node that have not been deleted, then each All virtual nodes under the node are shrunk into one node to obtain the index subgraph.

[0161] Furthermore, the node splitting unit is specifically used to perform the following steps:

[0162] Copying the network topology map to obtain an index map;

[0163] Delete the index map that is in a faulty state Node, and the status is normal The node is split into a set number of virtual nodes, and based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay task that the virtual node is undertaking, the available key amount of each virtual node is calculated as:

[0164]

[0165] In the formula, For the The number of available keys per virtual node, For the The remaining amount of the key pool of virtual nodes, For the The average key generation rate of virtual nodes and adjacent nodes in the past time period T, For the The virtual nodes are currently undertaking the key relay task. , The number of relay tasks undertaken by the virtual node.

[0166] Furthermore, the optimal routing path calculation module is specifically used to perform the following steps:

[0167] Adding the starting node in the index subgraph to the open list;

[0168] Add the adjacent nodes reachable by the departure node to the open list, set the departure node as the parent node of the reachable adjacent node, and calculate the cost of the reachable adjacent node to the departure node as the cost of the parent node to the departure node plus 1;

[0169] Remove the departure node from the open list and add it to the close list;

[0170] Traverse each node in the open list and take it as the current node. Calculate the priority of each node in the open list based on the cost of the current node from the starting node and the cost of the current node from the target node. Remove the node with the highest priority from the open list and add it to the close list.

[0171] Retrieve the adjacent nodes of the node added to the close list. If the adjacent node is in the close list, skip it. Otherwise, calculate the cost of the adjacent node to the starting node.

[0172] Repeat the above steps of calculating the priority of each node in the open list until the target node is added to the open list;

[0173] The parent nodes are gradually traced from the target node until the departure node is reached to obtain the optimal routing path.

[0174] Furthermore, the calculation formula of the cost of the current node to the target node is:

[0175]

[0176] In the formula, For the current node The cost of the distance to the target node, For the current node The longitude, For the current node The latitude, is the longitude of the target node, is the latitude of the target node, is kilometers, Indicates rounding up.

[0177] Furthermore, the priority calculation formula of each node is:

[0178]

[0179] In the formula, Representation Node The overall priority of Is a node The cost of the distance to the starting node; Is a node The estimated cost to reach the target node.

[0180] It should be noted that other embodiments or implementation methods of the quantum key relay routing calculation system of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.

[0181] In addition, the third embodiment of the present invention further proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the quantum key relay routing calculation method as described in the first embodiment is implemented.

[0182] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0183] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0184] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0185] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0186] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A quantum key relay routing calculation method, characterized in that: The method comprises: Collect the device status and link information of each quantum device in the quantum key network and build a network topology map; Converged link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph; A path planning algorithm is used to perform a heuristic search on the index subgraph to calculate the best routing path, specifically including: Adding the starting node in the index subgraph to the open list; Add the adjacent nodes reachable by the departure node to the open list, set the departure node as the parent node of the reachable adjacent node, and calculate the cost of the reachable adjacent node to the departure node as the cost of the parent node to the departure node plus 1; Remove the departure node from the open list and add it to the close list; Traverse each node in the open list and take it as the current node. Calculate the priority of each node in the open list based on the cost of the current node from the starting node and the cost of the current node from the target node. Remove the node with the highest priority from the open list and add it to the close list. Retrieve the adjacent nodes of the node added to the close list. If the adjacent node is in the close list, skip it. Otherwise, calculate the cost of the adjacent node to the starting node. Repeat the above steps of calculating the priority of each node in the open list until the target node is added to the open list; The parent nodes are gradually traced from the target node until the departure node is reached to obtain the optimal routing path.

2. The quantum key relay routing calculation method according to claim 1, characterized in that: The collecting of device status and link information of each quantum device in the quantum key network and constructing a network topology diagram includes: Send a hello message to the directly connected neighbor node to confirm the connection relationship, and use a data structure to store the connection status of the current quantum key network; In each After the device successfully joins the network, receive the successful network access Report information sent by the device, including device status, adjacent device information and link information; According to the successful The device gradually improves the network connection status stored in the data structure until All adjacent device information uploaded by the device already exists in the data structure storing the network connection status; Regularly receive successful network access The quantum key generation rate reported by the device is stored correspondingly with the quantum key generation rate, the key pool capacity and the network connection status in the data structure to generate the network topology graph, wherein the network topology graph is a weighted undirected graph, the nodes in the weighted undirected graph are the quantum devices in the quantum key network, and the edges are the connection status.

3. The quantum key relay routing calculation method according to claim 2, characterized in that: The key pool capacity is for successful network access The device successfully obtains the The quantum key of the device is then checked periodically.

4. The quantum key relay routing calculation method according to claim 1, characterized in that: The converged link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph, including: The normal state in the network topology diagram The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay tasks that the virtual node is undertaking; Determine whether the available key quantity of a virtual node exceeds the requested key quantity of this key relay in a certain upcoming time period; If yes, keep the virtual node; If not, delete the virtual node; If the status is normal If there are still virtual nodes under the node that have not been deleted, each All virtual nodes under the node are shrunk into one node to obtain the index subgraph.

5. The quantum key relay routing calculation method according to claim 4, characterized in that: The node status in the network topology diagram is normal The nodes are split into a set number of virtual nodes, and the available key amount of each virtual node is calculated based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and the adjacent nodes in the past time period T, and the key relay tasks currently undertaken by the virtual node, including: Copying the network topology map to obtain an index map; Delete the index map that is in a faulty state Node, and the status is normal The node is split into a set number of virtual nodes, and based on the remaining amount of the key pool of each virtual node, the average key generation rate of the virtual node and its adjacent nodes in the past time period T, and the key relay task that the virtual node is undertaking, the available key amount of each virtual node is calculated as: In the formula, For the The number of available keys per virtual node, For the The remaining amount of the key pool of virtual nodes, For the The average key generation rate of virtual nodes and adjacent nodes in the past time period T, For the The virtual nodes are currently undertaking the key relay task. , The number of relay tasks undertaken by the virtual node.

6. The quantum key relay routing calculation method according to claim 1, characterized in that: The cost of the current node to the departure node is the number of nodes from the departure node to the current node, and the cost of the current node to the target node is the number of nodes from the current node to the target node.

7. The quantum key relay routing calculation method according to claim 1, characterized in that: The priority calculation formula of each node is: In the formula, Representation Node The overall priority of Is a node The cost of the distance to the starting node; Is a node The estimated cost to reach the target node.

8. The quantum key relay routing calculation method according to claim 1, characterized in that: The method further comprises: When there are multiple nodes with the same priority in the open list, a node is randomly selected from the multiple nodes with the same priority, removed from the open list, and added to the close list.

9. The quantum key relay routing calculation method according to claim 1, characterized in that: The step of retrieving the adjacent nodes of the node added to the close list and skipping the adjacent nodes if the adjacent nodes are in the close list, or calculating the cost of the adjacent nodes from the starting node otherwise includes: Retrieve the adjacent nodes of the node added to the close list, and determine whether the adjacent nodes of the node newly added to the close list are in the close list; If it is in the close list, skip it; If it is not in the close list, determine whether the adjacent node of the node newly added to the close list is in the open list; If not, add the adjacent node to the open list, and set the newly added node to the close list as the parent node of its adjacent node. The cost of the adjacent node to the starting node is calculated as the cost of the parent node to the starting node plus 1; If yes, the cost of the adjacent node from the starting node in the new path is calculated as the cost of the parent node of the adjacent node from the starting node plus 1, and compared with the cost of the adjacent node from the starting node when it passed through the previous path; Based on the comparison result, if the previous path is better, no operation is performed; if the new path is better, the parent node of the adjacent node is set to the node newly added to the close list.

10. A quantum key relay routing computing system, characterized in that: The system comprises: A network topology construction module is used to collect the device status and link information of each quantum device in the quantum key network and construct a network topology map; Index subgraph generation module, used to integrate link key generation rate, Node status and number of concurrent relays, delete useless ones from the network topology diagram Node, get the index subgraph; An optimal routing path calculation module, used to perform a heuristic search on the index subgraph using a path planning algorithm to calculate an optimal routing path; The optimal routing path calculation module is used to perform the following steps: Adding the starting node in the index subgraph to the open list; Add the adjacent nodes reachable by the departure node to the open list, set the departure node as the parent node of the reachable adjacent node, and calculate the cost of the reachable adjacent node to the departure node as the cost of the parent node to the departure node plus 1; Remove the departure node from the open list and add it to the close list; Traverse each node in the open list and take it as the current node. Calculate the priority of each node in the open list based on the cost of the current node from the starting node and the cost of the current node from the target node. Remove the node with the highest priority from the open list and add it to the close list. Retrieve the adjacent nodes of the node added to the close list. If the adjacent node is in the close list, skip it. Otherwise, calculate the cost of the adjacent node to the starting node. Repeat the above steps of calculating the priority of each node in the open list until the target node is added to the open list; The parent nodes are gradually traced from the target node until the departure node is reached to obtain the optimal routing path.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Dynamic route architecture system for quantum cryptography network

    CN104579964A

  • Random routing method in quantum secret communication network

    CN106230582A

  • Quantum secret communication dynamic selection QKD access network architecture and secret key generation method

    CN114362937A

  • Key management dynamic route generation network architecture and method for quantum communication

    CN114362938A

  • Quantum key distribution routing method based on OSPF protocol

    CN115460129A