Routing path generation method, device, electronic device and storage medium

By selecting alternative links in the QKD network to ensure that the generated key length meets the requirements, the target routing path is generated, which solves the problem of long QKD key generation time under the shortest path first routing strategy and improves the security of QKD.

CN118214555BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410627236.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-27
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

In quantum key distribution (QKD), the routing path generated based on the shortest path first routing strategy leads to a long time for QKD key generation, thereby reducing the security of QKD.

Method used

By determining the key length of the quantum key to be sent and the receiving node, the adjacency relationship of the nodes in the QKD network and the generation time information of the QKD keys available on the link are obtained, and alternative links are selected to ensure that the candidate links are It is assumed that the key length of the available QKD key generated after the time point is not less than the key length of the quantum key to be sent, thereby generating the target routing path.

Benefits of technology

The security of the generation time of the QKD key is improved, so that the key used by the QKD node during encryption has higher security. Compared with the routing path generated by the shortest path first routing policy, QKD is more secure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118214555B
    Figure CN118214555B
Patent Text Reader

Abstract

The present disclosure provides a routing path generation method, device, electronic device and storage medium, which relates to the field of quantum communication technology. The method includes: determining the key length and receiving node of the quantum key to be sent; obtaining the adjacency relationship of the QKD nodes in the QKD network, the generation time information of the available QKD key on the link and the corresponding key length; selecting an alternative link from the link of the QKD network according to the generation time information and the corresponding key length, and the key length of the available QKD key generated on the alternative link after the preset time point is not less than the key length of the quantum key to be sent; generating a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link. When QKD is performed on the target routing path generated in this way, it has higher security.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the field of quantum communication technology, Quantum Key Distribution (QKD) follows the principles of "one-time one-key" and "key and plaintext are equal in length", that is, when two non-adjacent QKD nodes perform QKD, they need to be relayed through other QKD nodes. The QKD node acting as a relay uses the QKD key shared with the previous QKD node to decrypt the quantum key to be forwarded, and then uses the QKD key shared with the subsequent node to encrypt the quantum key, and sends the encrypted quantum key to the subsequent node. Before quantum key distribution, the routing path for distributing quantum keys needs to be generated in advance.

[0003] In the related art, the shortest path first routing strategy is used to generate the routing path of QKD.

[0004] However, when performing QKD using a routing path generated based on a shortest path first routing strategy, there is a problem that the QKD key generation time for encrypting the quantum key is long, resulting in lower security of QKD.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The present disclosure provides a routing path generation method, device, electronic device and storage medium, which at least to a certain extent overcome the problem of low security of QKD in related technologies.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to one aspect of the present disclosure, a routing path generation method is provided, including: determining a key length of a quantum key to be sent and a receiving node; obtaining an adjacency relationship of QKD nodes in a QKD network, generation time information of an available QKD key on a link, and a corresponding key length; selecting an alternative link from the links of the QKD network according to the generation time information and the corresponding key length, wherein the key length of an available QKD key generated on the alternative link after a preset time point is not less than the key length of the quantum key to be sent; and generating a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link.

[0009] In one embodiment of the present disclosure, the generation time information is a generation time point; the selecting an alternative link from the links of the QKD network according to the generation time information and the corresponding key length includes: selecting an alternative link from the links of the QKD network according to a preset time point, the generation time information and the corresponding key length; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, updating the preset time point, the updated preset time point being earlier than the preset time point before the update; and re-selecting an alternative link from the links of the QKD network according to the updated preset time point, the generation time information and the corresponding key length.

[0010] In one embodiment of the present disclosure, the generation time information is freshness, and the freshness indicates the time period in which the generation time point of the available QKD key is located, and the smaller the freshness, the later the corresponding time period; the selecting an alternative link from the links of the QKD network according to the generation time information and the corresponding key length includes: determining a freshness threshold; selecting an alternative link from the links of the QKD network according to the freshness and the corresponding key length, and the key length of the available QKD key on the alternative link whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, updating the freshness threshold, and the updated freshness threshold is greater than the freshness threshold before the update; and re-selecting an alternative link from the links of the QKD network according to the updated freshness threshold, the generation time information and the corresponding key length.

[0011] In one embodiment of the present disclosure, generating a target routing path for sending the to-be-sent quantum key to the receiving node according to the adjacency relationship and the alternative link includes: generating multiple routing paths for sending the to-be-sent quantum key to the receiving node according to the adjacency relationship and the alternative link; and selecting a routing path from the multiple routing paths as the target routing path.

[0012] In one embodiment of the present disclosure, the selecting a routing path from the multiple routing paths as the target routing path includes: randomly selecting a routing path from the multiple routing paths as the target routing path; or, based on a shortest path first routing strategy, selecting a routing path from the multiple routing paths as the target routing path.

[0013] In one embodiment of the present disclosure, obtaining generation time information and corresponding key length of a QKD key available on a link in a QKD network includes: sending an acquisition request to a QKD node in the QKD network; receiving link status information fed back by the QKD node in the QKD network in response to the acquisition request, wherein the link status information includes generation time information and key length of a QKD key available on a link between the QKD node and an adjacent QKD node.

[0014] According to another aspect of the present disclosure, a routing path generation device is provided, including: a determination module, used to determine the key length of a quantum key to be sent and a receiving node; an acquisition module, used to acquire the adjacency relationship of QKD nodes in a QKD network, generation time information of available QKD keys on a link, and the corresponding key length; a selection module, used to select an alternative link from the links of the QKD network according to the generation time information and the corresponding key length, wherein the key length of the available QKD key generated on the alternative link after a preset time point is not less than the key length of the quantum key to be sent; and a generation module, used to generate a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link.

[0015] In one embodiment of the present disclosure, the generation time information is a generation time point; the selection module is used to select an alternative link from the links of the QKD network according to the preset time point, the generation time information and the corresponding key length; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, the preset time point is updated, and the updated preset time point is earlier than the preset time point before the update; according to the updated preset time point, the generation time information and the corresponding key length, the alternative link is re-selected from the links of the QKD network.

[0016] In one embodiment of the present disclosure, the generation time information is freshness, and the freshness indicates the time period in which the generation time point of the available QKD key is located, and the smaller the freshness, the later the corresponding time period; the selection module is used to determine the freshness threshold; according to the freshness and the corresponding key length, select an alternative link from the links of the QKD network, and the key length of the available QKD key on the alternative link whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, update the freshness threshold, and the updated freshness threshold is greater than the freshness threshold before the update; according to the updated freshness threshold, the generation time information and the corresponding key length, re-select the alternative link from the links of the QKD network.

[0017] In one embodiment of the present disclosure, the generating module is used to generate multiple routing paths for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link; and select a routing path from the multiple routing paths as the target routing path.

[0018] In one embodiment of the present disclosure, the generation module is used to randomly select a routing path from the multiple routing paths as the target routing path; or, based on a shortest path first routing strategy, select a routing path from the multiple routing paths as the target routing path.

[0019] In one embodiment of the present disclosure, the acquisition module is used to send an acquisition request to a QKD node in the QKD network; receive link status information fed back by the QKD node in the QKD network in response to the acquisition request, wherein the link status information includes generation time information and key length of the available QKD key on the link between the QKD node and the adjacent QKD node.

[0020] According to another aspect of the present disclosure, a routing path generation device is provided, including: a neighbor management module, used to maintain a neighbor table, wherein the neighbor table is used to represent the adjacency relationship between QKD nodes in the QKD network; a link status management module, used to maintain link status information of the QKD nodes in the QKD network, wherein the link status information includes generation time information and key length of the available QKD key on the link between the QKD node and the adjacent QKD node; a routing management module, used to generate a routing table according to the routing path generation method described in any of the above embodiments.

[0021] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned routing path generation methods by executing the executable instructions.

[0022] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned routing path generation methods is implemented.

[0023] According to another aspect of the present disclosure, a computer program product is provided, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being loaded and executed by a processor so that a computer implements any of the above-mentioned routing path generation methods.

[0024] The technical solution provided by the embodiments of the present disclosure includes at least the following beneficial effects:

[0025] The technical solution provided by the embodiments of the present disclosure sets the key length of the available QKD key generated on the alternative link after the preset time point to be not less than the key length of the quantum key to be sent, and then selects the alternative link from the QKD network, so that the available QKD key in the selected alternative link has a shorter generation time, thereby having higher security. Then, the alternative link is used to generate a target routing path for sending the quantum key to be sent to the receiving node, so that the QKD key used by the QKD node in the target routing path when encrypting the quantum key to be sent has higher security, thereby ensuring that QKD performed using the target routing path has higher security than QKD performed using a routing path generated based on the shortest path priority routing strategy.

[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0028] Figure 1 A flow chart showing quantum key distribution in related art.

[0029] Figure 2 A schematic diagram of a routing path generation system in one embodiment of the present disclosure is shown.

[0030] Figure 3 A schematic diagram of a routing path generating device in an embodiment of the present disclosure is shown.

[0031] Figure 4 A flow chart of a method for generating a routing path in one embodiment of the present disclosure is shown.

[0032] Figure 5 A flowchart of selecting candidate links in one embodiment of the present disclosure is shown.

[0033] Figure 6 A flowchart of selecting candidate links in another embodiment of the present disclosure is shown.

[0034] Figure 7 A schematic diagram of a QKD network in one embodiment of the present disclosure is shown.

[0035] Figure 8 A schematic diagram of a routing path generating device in another embodiment of the present disclosure is shown.

[0036] Fig. 9 A structural block diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0038] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0039] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0040] 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, they should be understood as "one or more".

[0041] Due to the characteristics of QKD, QKD can only be implemented between the two communicating parties, and the two communicating parties need to achieve direct fiber connection. Limited by the transmission distance of the optical signal, on the premise of meeting the key coding rate requirements, the transmission distance of QKD is usually 40km (kilometers) -80km. If you want to achieve QKD over longer distances, you need to add relay nodes between the sending node and the receiving node. Among the sending nodes, relay nodes and receiving nodes, the two adjacent nodes obtain the shared key on the link between the two adjacent nodes through the QKD method (that is, the QKD key obtained by the nodes at both ends of the link). After the sender generates the quantum key to be sent, all relay nodes on the path use the QKD key to perform encryption and decryption transmission segment by segment.

[0042] In a large-scale mesh-connected QKD network, a routing mechanism must be supported. Routing is usually performed according to static routing or shortest path priority strategies. For security reasons, the quantum key distribution process follows the principles of "one-time one-key" and "key and plaintext are equal in length". During the quantum key relay process, a QKD key of the same length as that of each relevant QKD node is required for encrypted transmission.

[0043] like Figure 1 As shown, the routing path of QKD includes a sending node, a first relay node, a second relay node, and a receiving node in sequence. Then the QKD process includes the following S11 to S1.

[0044] S11, the sending node generates a quantum key and encrypts the quantum key using an available QKD key on the link with the first relay node.

[0045] Among them, the available QKD key is the QKD key that can be used on the link between the QKD node and the next QKD node when the QKD node (for example, the sending node, the first relay node, the second relay node, the receiving node and other nodes involved in QKD) needs to encrypt and send the quantum key.

[0046] It should be noted that the key length of the QKD key used to encrypt the quantum key is the same as the key length of the quantum key, following the principle of "key and plaintext are equal in length".

[0047] S12, the sending node sends the encrypted quantum key to the first relay node.

[0048] S13, the first relay node decrypts the encrypted quantum key, and encrypts the quantum key using the available QKD key on the link with the second relay node.

[0049] S14, the first relay node sends the encrypted quantum key to the second relay node.

[0050] S15, the second relay node decrypts the encrypted quantum key and encrypts the quantum key using the available QKD key on the link with the receiving node.

[0051] S16, the second relay node sends the encrypted quantum key to the receiving node.

[0052] S17, the receiving node decrypts the encrypted quantum key to obtain the quantum key.

[0053] During the relay process, the quantum key (i.e., QKD key) shared between two adjacent QKD nodes is generated in advance through the QKD method and stored in the key management system of each QKD node. The longer the QKD key is stored in each QKD node, the greater the risk it faces, the lower the security of the QKD key, the lower the security of the protected quantum key, and the lower the security of QKD.

[0054] In this regard, the technical solution provided by the embodiments of the present disclosure determines the key length of the quantum key to be sent and the receiving node; obtains the adjacency relationship of the QKD nodes in the QKD network, the generation time information of the available QKD keys on the link, and the corresponding key length; selects an alternative link from the links of the QKD network according to the generation time information and the corresponding key length, and the key length of the available QKD key generated on the alternative link after a preset time point is not less than the key length of the quantum key to be sent; and generates a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link.

[0055] Since the key length of the available QKD key generated after the preset time point on the alternative link is set to be no less than the key length of the quantum key to be sent, the available QKD key in the selected alternative link has a shorter generation time, thereby having higher security. Then, the method of using the alternative link to generate a target routing path for sending the quantum key to be sent to the receiving node can make the QKD key used by the QKD node in the target routing path when encrypting the quantum key to be sent have higher security, thereby ensuring that QKD using the target routing path has higher security.

[0056] Figure 2 A schematic diagram of a routing path generation system in an embodiment of the present disclosure is shown, and the system can apply the routing path generation method or routing path generation device in various embodiments of the present disclosure.

[0057] like Figure 2 As shown, the routing path generation system may include: multiple QKD nodes 21.

[0058] A plurality of QKD nodes 21 form a QKD network. Different QKD nodes 21 may be in an adjacent relationship or a non-adjacent relationship. If two QKD nodes 21 are directly connected via a link, the two QKD nodes 21 are in an adjacent relationship. Conversely, if there is no direct link between the two QKD nodes 21, the two QKD nodes 21 are in a non-adjacent relationship.

[0059] like Figure 3 As shown, each QKD node 21 is configured with a routing path generating device, which has a neighbor management module 211, a link state management module 212 and a routing management module 213.

[0060] Among them, the neighbor management module 211 is used to maintain the neighbor table, which is used to represent the adjacency relationship between QKD nodes 21 in the QKD network. The link state management module 212 is used to maintain the link state information of the QKD node 21 in the QKD network, and the link state information includes the generation time information and key length of the available QKD key on the link between the QKD node 21 and the adjacent QKD node 21 (the adjacent QKD node and the QKD node are in an adjacent relationship, that is, there is a directly connected link between the two nodes). The routing management module 213 is used to generate a routing table according to the routing path generation method in any embodiment of the present disclosure.

[0061] The QKD nodes 21 are connected to each other through a network, which can be a wired network or a wireless network.

[0062] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocols. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.

[0063] In one embodiment, the network is a wired network, and the wired network is optical fiber.

[0064] The QKD node 21 may be a variety of electronic devices, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.

[0065] The QKD node 21 may also be a server. Optionally, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0066] Those skilled in the art will know that Figure 1 The number of QKD nodes 21 in the example is only illustrative, and any number of QKD nodes 21 may be provided according to actual needs. This is not limited in the embodiments of the present disclosure.

[0067] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.

[0068] The present disclosure provides a method for generating a routing path, which can be executed by any electronic device with computing and processing capabilities. For example, the electronic device is a QKD node.

[0069] Figure 4 A flow chart of a method for generating a routing path in an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the routing path generation method provided in the embodiment of the present disclosure may include the following S401 to S404.

[0070] S401, determining the key length and receiving node of the quantum key to be sent.

[0071] The key length is used to measure the number of bytes of the quantum key. The specific size of the key length can be determined according to the corresponding quantum key to be sent. For example, the key length is 40KB (KiloByte).

[0072] In one embodiment, when the QKD node is used as a sending node, the key length of the quantum key can be directly determined when the quantum key is generated. When the QKD node is used as a sending node, the receiving node can be directly determined according to the destination address of the quantum key to be sent.

[0073] S402, obtaining the adjacency relationship of the QKD nodes in the QKD network, the generation time information of the available QKD keys on the link, and the corresponding key length.

[0074] When two QKD nodes are directly connected via a link, the two QKD nodes have an adjacency relationship. If there is no direct link between the two QKD nodes, the two QKD nodes do not have an adjacency relationship.

[0075] A link in a QKD network is a link between two adjacent QKD nodes that are directly connected. In one embodiment, the link can be implemented based on optical fiber.

[0076] The generation time information of the available QKD key is used to indicate the generation time of the available QKD, and specifically may indicate the generation time point of the available QKD key or the time period in which the generation time point is located. The embodiments of the present disclosure do not limit what the generation time information specifically is. In one embodiment, the generation time information may be a specific time point, that is, the generation time information is the generation time point. In another embodiment, the generation time information may be freshness, which may indicate the time period in which the generation time point of the available QKD key is located, wherein the smaller the freshness, the later the corresponding time period, for example, the time period corresponding to the freshness of 1 is t1-current, and the time period corresponding to the freshness of 2 is t2-t1, wherein t2 is earlier than t1, for example, t2 is 8:00 on April 1, 2024, and t1 is 8:00 on April 2, 2024.

[0077] In one embodiment, the QKD node establishes the adjacency relationship of the QKD node by sending a multicast detection message to other QKD nodes in the QKD network, and then records and saves the adjacency relationship between the QKD nodes in the form of a neighbor table, and can also periodically or non-periodically update and maintain the neighbor table to ensure the accuracy and comprehensiveness of the adjacency relationship recorded in the neighbor table. In one embodiment, obtaining the adjacency relationship of the QKD node in the QKD network may include: obtaining the adjacency relationship of each QKD node from the neighbor table maintained by the QKD node.

[0078] In one embodiment, a neighbor management module is configured in the QKD node, and the neighbor management module can maintain a neighbor table according to messages fed back by other QKD nodes in response to the multicast detection message.

[0079] In another embodiment, obtaining the adjacency relationship of QKD nodes in the QKD network may include: directly sending a multicast detection message to other QKD nodes in the QKD network, and determining the adjacency relationship between the QKD nodes in the QKD network based on the messages fed back by other QKD nodes.

[0080] In one embodiment, the QKD node can send a multicast detection message to other QKD nodes in the QKD network. After receiving the multicast detection message, the other QKD nodes can return the locally stored link status information description. After receiving the link status information description, the QKD node can compare the link status information description with the local link status information to determine the link status information that is not available locally; then the QKD node sends a request to other QKD nodes to request the link status information that is not available locally. After receiving the request, the other QKD nodes feedback the corresponding link status information to the QKD node. In addition, the QKD node can also periodically or non-periodically update the stored link status information through multicast detection messages to ensure the accuracy of the stored link status information.

[0081] For example, the first QKD node sends a multicast detection message to the second QKD node. After receiving the multicast detection message, the second QKD node can return the locally stored link state information description to the first QKD node. After receiving the link state information description, the first QKD node can compare the link state information description with the local link state information to determine the link state information that is not available locally. Then the first QKD node sends a request to the second QKD node to request the link state information that is not available locally. After receiving the request, the second QKD node feeds back the corresponding link state information to the first QKD node.

[0082] In one embodiment, the link status information includes generation time information of the available QKD key on the link and the corresponding key length. Taking the generation time information as the generation time point as an example, the generation time information of the available QKD key can be time point 1, ..., time point n, n is an integer not less than 1, and the key length corresponding to time point 1 is key length 1, ..., and the key length corresponding to time point n is key length n. Among them, time point 1 and the corresponding key length 1 can indicate that part of the available QKD keys on the link are generated at time point 1, and the key length of the part of the available QKD keys is key length 1.

[0083] In one embodiment, a link state management module is configured in the QKD node, and the link state management module can maintain local link state information based on link state information fed back by other QKD nodes.

[0084] In one embodiment, obtaining generation time information and corresponding key length of a QKD key available on a link in a QKD network may include: directly obtaining the generation time information and corresponding key length from link status information maintained by a QKD node.

[0085] In another embodiment, obtaining the generation time information and corresponding key length of the available QKD key on the link in the QKD network may include: sending an acquisition request to a QKD node in the QKD network; receiving link status information fed back by the QKD node in the QKD network in response to the acquisition request, the link status information including the generation time information and key length of the available QKD key on the link between the QKD node and an adjacent QKD node.

[0086] In the case where the generation time information is freshness, the data volume of the link state information can be reduced, the frequency of updating the link state information can be reduced, and the applicability is better.

[0087] S403, according to the generation time information and the corresponding key length, select an alternative link from the links of the QKD network, and the key length of the available QKD key generated on the alternative link after the preset time point is not less than the key length of the quantum key to be sent.

[0088] After limiting the key length of the available QKD key that needs to be generated on the alternative link after a preset time point to be no less than the key length of the quantum key to be sent, the alternative links can be directly screened out based on the generation time information of the available QKD key on the link and the corresponding key length.

[0089] The embodiments of the present disclosure do not limit the specific time point of the preset time point. In one embodiment, when the generation time information is the generation time point, the preset time point is an arbitrarily determined time point; when the generation time information is freshness, the preset time point can be the boundary time point of the time period corresponding to the freshness, for example, the time period corresponding to the freshness of 1 is t1-current, and the time point corresponding to the freshness of 2 is t2-t1, then the boundary time point between the time period corresponding to the freshness of 1 and the time period corresponding to the freshness of 2 is t1.

[0090] S404: Generate a target routing path for sending the quantum key to be sent to the receiving node based on the adjacency relationship and the candidate links.

[0091] Through the adjacency relationship between QKD nodes in the QKD network and the selected alternative links, a target routing path for sending the quantum key to be sent to the receiving node can be generated through any routing path generation method.

[0092] For example, multiple routing paths can be obtained by combining candidate links, and a routing path that can connect the sending node and the receiving node can be selected as the target routing path. For another example, the sending node and the receiving node can be used as the two ends of the routing path, and the candidate links can be combined to obtain the target routing path.

[0093] In one embodiment, the candidate links can be combined to form one or more routing paths connecting the sending node and the receiving node. At this time, generating a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the candidate links can include: generating multiple routing paths for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the candidate links; and selecting a routing path from the multiple routing paths as the target routing path.

[0094] The embodiments of the present disclosure do not limit how to select a routing path from multiple routing paths. In one embodiment, selecting a routing path from multiple routing paths as a target routing path may include: randomly selecting a routing path from multiple routing paths as the target routing path; or, according to a shortest path first routing strategy, selecting a routing path from multiple routing paths as the target routing path.

[0095] By using the shortest path first routing strategy to select the target routing path from multiple routing paths for sending the quantum key to the receiving node, the efficiency of QKD can be improved by making the distance of the routing path as short as possible while ensuring that QKD has sufficient security.

[0096] The technical solution provided by the embodiments of the present disclosure sets the key length of the available QKD key generated on the alternative link after the preset time point to be not less than the key length of the quantum key to be sent, and then selects the alternative link from the QKD network, so that the available QKD key in the selected alternative link has a shorter generation time, thereby having higher security. Then, the alternative link is used to generate a target routing path for sending the quantum key to be sent to the receiving node, so that the QKD key used by the QKD node in the target routing path when encrypting the quantum key to be sent has higher security, thereby ensuring that QKD performed using the target routing path has higher security than QKD performed using a routing path generated based on the shortest path priority routing strategy.

[0097] In one embodiment, the generation time information is the generation time point, and the process of selecting alternative links may include the following S501 to S503, that is, according to the generation time information and the corresponding key length, selecting alternative links from the links of the QKD network may include S501 to S503.

[0098] S501, selecting an alternative link from the links of the QKD network according to a preset time point, generation time information and a corresponding key length.

[0099] Among them, the key length of the available QKD key generated on the alternative link after a preset time point is not less than the key length of the quantum key to be sent.

[0100] S502, when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, updating the preset time point, and the updated preset time point is earlier than the preset time point before the update.

[0101] According to the selected alternative links, multiple routing paths are combined to form. If the multiple routing paths do not include a routing path for sending the quantum key to be sent to the receiving node, it means that the alternative links cannot form a routing path for sending the quantum key to be sent to the receiving node.

[0102] At this time, the preset time point needs to be updated. By limiting the updated preset time point to be earlier than the preset time point before the update, more alternative links can be re-selected, so that a routing path that can send the quantum key to be sent to the receiving node can be obtained by combining the alternative links.

[0103] The embodiments of the present disclosure do not limit how to update the preset time point. In one embodiment, the preset time point can be updated by moving the preset time period forward based on the original preset time point. For example, the preset time period can be 5 hours, 6 hours, 24 hours, etc., and the embodiments of the present disclosure do not limit this.

[0104] The embodiments of the present disclosure do not limit how to determine the first preset time point for selecting the candidate link. For example, the first preset time point for selecting the candidate link can be configured as a time period before the current time point. The specific time period is not limited by the embodiments of the present disclosure, for example, the time period is 1 day.

[0105] In another embodiment, before selecting candidate links, multiple preset time points may be directly generated, each preset time point corresponds to a round of selecting candidate links, and the larger the round of application, the greater the time difference between the preset time point and the current time point.

[0106] S503, reselect an alternative link from the links of the QKD network according to the updated preset time point, generation time information and corresponding key length.

[0107] Among them, the re-selected alternative link still meets the following requirement: the key length of the available QKD key generated after the preset time point is not less than the key length of the quantum key to be sent.

[0108] If the reselected candidate links can form a routing path for sending the quantum key to be sent to the receiving node, the routing path that can send the quantum key to be sent to the receiving node is used as the target routing path. Otherwise, the preset time point is continuously updated to select more candidate links.

[0109] In one embodiment, the generation time information is freshness, and the smaller the freshness, the later the corresponding time period. The process of selecting an alternative link may include the following S601 to S604, that is, according to the generation time information and the corresponding key length, selecting an alternative link from the links of the QKD network may include S601 to S604.

[0110] S601, determining a freshness threshold.

[0111] In one embodiment, a plurality of different freshness thresholds may be configured in a QKD node, and the plurality of different freshness thresholds are in an ascending relationship. When selecting alternative links, it is possible to start from the first freshness threshold and use freshness thresholds with larger values ​​one by one until the selected alternative links can form a routing path for sending the quantum key to be sent to the receiving node.

[0112] In another embodiment, a freshness threshold is configured in the QKD node. In selecting the candidate link, the freshness threshold is used as the first freshness threshold for selection. After each update of the freshness threshold, a set value is added based on the previous freshness threshold (the set value can be determined according to the value of the interval between two adjacent freshnesses, for example, there is a freshness level between freshness 1 and freshness 2, and there is no intermediate freshness between freshness 1 and freshness 2. At this time, the value of the interval between two adjacent freshnesses is 1). The set value added each time can be the same or different, and the embodiments of the present disclosure do not limit this. For example, the freshness threshold configured in the QKD node is 1, and the set value is 1.

[0113] Determining the freshness threshold may include: determining the freshness threshold to be used in a current round of selecting candidate links.

[0114] S602, selecting an alternative link from the links of the QKD network according to the freshness and the corresponding key length, and the key length of the available QKD key on the alternative link whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent.

[0115] S603: When the candidate link cannot form a routing path for sending the quantum key to be sent to the receiving node, the freshness threshold is updated, and the freshness threshold after the update is greater than the freshness threshold before the update.

[0116] The embodiments of the present disclosure do not limit how to update the freshness threshold. In one embodiment, updating the freshness threshold may include: based on the original freshness threshold, increasing the value of two adjacent freshness intervals each time. In another embodiment, the QKD node is configured with freshness thresholds for selecting candidate links in different rounds, and the freshness threshold can be updated to directly replace the freshness threshold used in the previous round with the freshness threshold required to be used in this round.

[0117] By updating the freshness threshold and limiting the updated freshness threshold to be greater than the freshness threshold before the update, more alternative links can be selected according to the updated freshness threshold, so that the re-selected alternative links can form a routing path for sending the quantum key to be sent to the receiving node.

[0118] S604, reselect an alternative link from the links of the QKD network according to the updated freshness threshold, generation time information and corresponding key length.

[0119] Among them, the re-selected alternative links still meet the following requirements: the key length of the available QKD key whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent.

[0120] If the re-selected alternative link still cannot form a routing path for sending the quantum key to be sent to the receiving node, it is necessary to continue to update the freshness threshold until the selected alternative link can form a routing path for sending the quantum key to be sent to the receiving node.

[0121] To facilitate understanding of the routing path generation method in the embodiment of the present disclosure, the following will take the generation time information as the freshness and combine Figure 7 It should be noted that the smaller the value of freshness is, the later the time period corresponding to the freshness is, that is, the closer to the current time.

[0122] Figure 7 There are four QKD nodes and four links in the QKD network shown in Figure 1. The four QKD nodes are labeled as QKD node 1, QKD node 2, QKD node 3, and QKD node 4. The four links are the link between QKD node 1 and QKD node 2, the link between QKD node 1 and QKD node 3, the link between QKD node 2 and QKD node 4, and the link between QKD node 3 and QKD node 4.

[0123] Among them, there are three levels of available QKD keys of freshness on the link between QKD node 1 and QKD node 2, among which the key length of the available QKD key with freshness 1 is 30KB, the key length of the available QKD key with freshness 2 is 30KB, and the key length of the available QKD key with freshness 3 is 10KB, totaling 70K available QKD keys.

[0124] There are three levels of available QKD keys of freshness on the link between QKD node 1 and QKD node 3, among which the key length of the available QKD key with freshness 1 is 20KB, the key length of the available QKD key with freshness 2 is 20KB, and the key length of the available QKD key with freshness 3 is 660KB, for a total of 700KB of available QKD keys.

[0125] There are three levels of freshness of available QKD keys on the link between QKD node 2 and QKD node 4, among which the key length of the available QKD keys with freshness 1 is 10KB, the key length of the available QKD keys with freshness 2 is 30KB, and the key length of the available QKD keys with freshness 3 is 30KB, for a total of 70KB of available QKD keys.

[0126] There are three levels of freshness of available QKD keys on the link between QKD node 3 and QKD node 4, among which the key length of the available QKD key with freshness 1 is 10KB, the key length of the available QKD key with freshness 2 is 20KB, and the key length of the available QKD key with freshness 3 is 870KB, for a total of 900KB of available QKD keys.

[0127] When QKD node 1 needs to send a quantum key with a key length of 40KB to QKD node 4, QKD node 1 can obtain the link state information stored in the node. Figure 7 The freshness of the available QKD keys and the corresponding key lengths on the four links. Afterwards, the candidate links are selected with a freshness threshold of 1, and the key length of each QKD node with a freshness of 1 is compared with the 40KB key length required to be sent. The key lengths of the four links are 30KB, 10KB, 20KB, and 10KB, respectively, which are all less than 40KB, and no candidate links can be selected.

[0128] After that, the freshness threshold is updated to 2 to select candidate links. Figure 7 It can be seen that the freshness of the four links that are not greater than 2 is 1 and 2. The sum of the key lengths of the freshness 1 and 2 on each link is compared with the 40KB key length required to be sent. The key lengths of the four links are 60KB, 40KB, 40KB, and 30KB, respectively. The two links in routing path 1 are 60KB and 40KB, respectively, which are greater than or equal to 40KB, and the remaining key length is sufficient. The two links in routing path 2 are 40KB and 30KB, respectively, and there is a link less than 40KB, and the remaining key length is insufficient. Routing path 1 is used as the target routing path for QKD node 1 to send the quantum key to QKD node 4, and QKD is performed.

[0129] Based on the same inventive concept, the present disclosure also provides a routing path generation device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0130] Figure 8 A schematic diagram of a routing path generating device in an embodiment of the present disclosure is shown as follows: Figure 8 As shown, the device includes: a determination module 81, used to determine the key length of the quantum key to be sent and the receiving node; an acquisition module 82, used to obtain the adjacency relationship of the QKD nodes in the QKD network, the generation time information of the available QKD key on the link and the corresponding key length; a selection module 83, used to select an alternative link from the link of the QKD network according to the generation time information and the corresponding key length, and the key length of the available QKD key generated on the alternative link after the preset time point is not less than the key length of the quantum key to be sent; a generation module 84, used to generate a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative link.

[0131] In one embodiment of the present disclosure, the generation time information is a generation time point; the selection module 83 is used to select an alternative link from the link of the QKD network according to the preset time point, the generation time information and the corresponding key length; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, the preset time point is updated, and the updated preset time point is earlier than the preset time point before the update; according to the updated preset time point, the generation time information and the corresponding key length, the alternative link is re-selected from the link of the QKD network.

[0132] In one embodiment of the present disclosure, the generation time information is freshness, and the freshness indicates the time period in which the generation time point of the available QKD key is located, and the smaller the freshness, the later the corresponding time period; a selection module 83 is used to determine a freshness threshold; according to the freshness and the corresponding key length, an alternative link is selected from the links of the QKD network, and the key length of the available QKD key on the alternative link whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent; when the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, the freshness threshold is updated, and the updated freshness threshold is greater than the freshness threshold before the update; according to the updated freshness threshold, the generation time information and the corresponding key length, the alternative link is re-selected from the links of the QKD network.

[0133] In one embodiment of the present disclosure, the generation module 84 is used to generate multiple routing paths for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the alternative links; and select a routing path from the multiple routing paths as the target routing path.

[0134] In one embodiment of the present disclosure, the generation module 84 is used to randomly select a routing path from multiple routing paths as the target routing path; or, according to the shortest path first routing strategy, select a routing path from multiple routing paths as the target routing path.

[0135] In one embodiment of the present disclosure, the acquisition module 82 is used to send an acquisition request to a QKD node in the QKD network; receive link status information fed back by the QKD node in the QKD network in response to the acquisition request, wherein the link status information includes generation time information and key length of the available QKD key on the link between the QKD node and the adjacent QKD node.

[0136] The technical solution provided by the embodiments of the present disclosure sets the key length of the available QKD key generated on the alternative link after the preset time point to be not less than the key length of the quantum key to be sent, and then selects the alternative link from the QKD network, so that the available QKD key in the selected alternative link has a shorter generation time, thereby having higher security. Then, the alternative link is used to generate a target routing path for sending the quantum key to be sent to the receiving node, so that the QKD key used by the QKD node in the target routing path when encrypting the quantum key to be sent has higher security, thereby ensuring that QKD performed using the target routing path has higher security than QKD performed using a routing path generated based on the shortest path priority routing strategy.

[0137] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0138] Refer to the following Fig. 9 The electronic device 900 according to this embodiment of the present disclosure is described. Fig. 9 The electronic device 900 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0139] like Fig. 9As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0140] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Specific Implementation Methods” section of this specification.

[0141] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

[0142] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0143] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0144] The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 900, and / or any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 960. Fig. 9 As shown, the network adapter 960 communicates with other modules of the electronic device 900 via the bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0145] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0146] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Specific Implementation Methods” section of this specification.

[0147] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, 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), 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 foregoing.

[0148] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a 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.

[0149] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0150] In specific implementation, the program code for performing the operation of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0151] In an exemplary embodiment of the present disclosure, a computer program product is also provided, which includes a computer program or computer instructions, and the computer program or computer instructions are loaded and executed by a processor to enable a computer to implement the steps of various exemplary embodiments of the present disclosure described in the above "Specific Implementation" section of this specification.

[0152] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0153] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0154] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the example implementation modes described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation mode of the present disclosure.

[0155] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.

Claims

1. A method for generating a routing path, characterized in that: include: Determine the key length and receiving node of the quantum key to be sent; Obtain the adjacency relationship of QKD nodes in the quantum key distribution QKD network, the generation time information of the available QKD keys on the link, and the corresponding key length; Selecting an alternative link from the links of the QKD network according to the generation time information and the corresponding key length, wherein the key length of the available QKD key generated on the alternative link after the preset time point is not less than the key length of the quantum key to be sent; Generate a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the candidate link; Among them, generating a target routing path for sending the to-be-sent quantum key to the receiving node according to the adjacency relationship and the alternative link includes: generating multiple routing paths for sending the to-be-sent quantum key to the receiving node according to the adjacency relationship and the alternative link; randomly selecting a routing path from the multiple routing paths as the target routing path; or, according to a shortest path first routing strategy, selecting a routing path from the multiple routing paths as the target routing path.

2. The method according to claim 1, characterized in that The generation time information is a generation time point; and selecting an alternative link from the links of the QKD network according to the generation time information and the corresponding key length includes: Selecting an alternative link from the links of the QKD network according to a preset time point, the generation time information and the corresponding key length; When the alternative link cannot form a routing path for sending the quantum key to be sent to the receiving node, updating the preset time point, the updated preset time point being earlier than the preset time point before the update; According to the updated preset time point, the generation time information and the corresponding key length, an alternative link is reselected from the links of the QKD network.

3. The method according to claim 1, characterized in that: The generation time information is freshness, which indicates the time period in which the generation time point of the available QKD key is located. The smaller the freshness, the later the corresponding time period. The selecting, according to the generation time information and the corresponding key length, an alternative link from the links of the QKD network comprises: Determine freshness threshold; According to the freshness and the corresponding key length, selecting an alternative link from the links of the QKD network, wherein the key length of the available QKD key on the alternative link whose freshness is not greater than the freshness threshold is not less than the key length of the quantum key to be sent; When the candidate link cannot form a routing path for sending the quantum key to be sent to the receiving node, updating the freshness threshold, and the updated freshness threshold is greater than the freshness threshold before the update; According to the updated freshness threshold, the generation time information and the corresponding key length, an alternative link is reselected from the links of the QKD network.

4. The method according to claim 1, characterized in that: Get the generation time information and corresponding key length of the available QKD key on the link in the QKD network, including: Send an acquisition request to the QKD node in the QKD network; Receive link status information fed back by a QKD node in the QKD network in response to the acquisition request, wherein the link status information includes generation time information and key length of an available QKD key on a link between the QKD node and an adjacent QKD node.

5. A routing path generating device, characterized in that: include: A determination module, used to determine the key length and receiving node of the quantum key to be sent; An acquisition module is used to obtain the adjacency relationship of QKD nodes in the quantum key distribution QKD network, the generation time information of the available QKD keys on the link, and the corresponding key length; A selection module, configured to select an alternative link from the links of the QKD network according to the generation time information and the corresponding key length, wherein the key length of the available QKD key generated on the alternative link after a preset time point is not less than the key length of the quantum key to be sent; A generating module, configured to generate a target routing path for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the candidate link; The generating module is further used to: generate multiple routing paths for sending the quantum key to be sent to the receiving node according to the adjacency relationship and the candidate link; and randomly select a routing path from the multiple routing paths as the target routing path; Alternatively, according to a shortest path first routing strategy, a routing path is selected from the multiple routing paths as the target routing path.

6. A routing path generating device, characterized in that: include: A neighbor management module, used to maintain a neighbor table, wherein the neighbor table is used to represent the adjacency relationship between QKD nodes in a quantum key distribution QKD network; A link status management module, used to maintain link status information of QKD nodes in the QKD network, wherein the link status information includes generation time information and key length of available QKD keys on the link between the QKD node and an adjacent QKD node; A routing management module is used to generate a routing table according to a routing path generation method such as any one of claims 1-4.

7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the routing path generation method according to any one of claims 1 to 4 by executing the executable instructions.

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

9. A computer program product, characterized in that The computer program product includes a computer program or a computer instruction, and the computer program or the computer instruction is loaded and executed by a processor, so that a computer implements the routing path generation method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Distributed routing method and system for load balancing in quantum key distribution network

    CN117527239A

  • Quantum key distribution network security routing and resource allocation method and related equipment

    CN117914485A

  • Distributed Internet of Vehicles identity authentication system

    CN117978550A

  • Rerouting method and device for OTN, and computer-readable storage medium

    WO2022166347A1