Quantum communication access network key pre-distribution method for reinforcement learning

The reinforcement learning method is used to pre-distribute keys in the quantum access network, which solves the problem of insufficient key and waste, achieves higher resource utilization and request success rate, and solves the problem of insufficient key supply in the existing technology. .

CN118631444APending Publication Date: 2024-09-10NAT QUANTUM COMM (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845413.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult for the existing quantum access network to supply keys according to the requirements of secure communication, resulting in insufficient keys and waste of keys, which reduces the success rate of secure communication requests and the utilization rate of key resources.

Method used

The quantum communication access network key pre-distribution method using reinforcement learning is used to obtain the available channel wavelength of the access network and the remaining amount of the key pool, and use the reinforcement learning neural network to predict the intensity of user requests, reasonably allocate wavelength resources and generate quantum keys. Enable key pre-distribution and effective utilization.

Benefits of technology

Key pre-distribution is performed when there is no confidential communication request, which reduces waiting time, improves wavelength resource utilization, reduces key shortage and waste, and improves the success rate of confidential communication requests and key resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631444A
    Figure CN118631444A
Patent Text Reader

Abstract

The invention discloses a quantum communication access network key pre-distribution method based on reinforcement learning, and the method comprises the steps: carrying out the key pre-distribution of a QKD device of an access terminal when there is no secret communication request and there is an idle network resource, generating a quantum key, and storing the quantum key in a corresponding key pool, so as to enable a user communication request of the access terminal to be immediately satisfied. The invention discloses a quantum communication access network key pre-distribution method based on reinforcement learning, which can supply keys according to secret communication requirements, reduce the conditions of key insufficiency and key waste, and improve the request success rate of secret communication and the utilization rate of key resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum information and optical communication technology, and in particular to a quantum communication access network key pre-distribution method based on reinforcement learning. Background Art

[0002] The traditional key system based on computational complexity will be impacted by high computing power technology. Quantum key distribution (QKD) is based on the Heisenberg uncertainty principle and the quantum no-cloning law, which theoretically guarantees its unconditional security. In recent years, quantum key distribution technology has developed rapidly, and multi-user terminal quantum access network has become an important support for the large-scale application of quantum secure communication. How to effectively improve the performance of quantum access network is an important problem that needs to be solved in the large-scale application of quantum secure communication.

[0003] The existing patent CN110138552A discloses a multi-user quantum key supply method and device, in which the access network can generate a key supply queue according to the received key request, generate a key and store it in the key pool of each access terminal for key supply. However, in this scheme, key generation is performed passively according to the key request, and key supplementation needs to be initiated by the access terminal. It is difficult to generate and supply keys according to the request strength of confidential communication, and it is easy to cause insufficient keys and key waste, which reduces the request success rate of confidential communication and the utilization rate of key resources. Summary of the invention

[0004] In order to solve the problem that existing quantum access networks are difficult to supply keys according to confidential communication needs, resulting in insufficient keys and key waste, and reducing the success rate of confidential communication requests and network resource utilization, the present invention provides a quantum communication access network key pre-distribution method based on reinforcement learning.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows: A quantum communication access network key pre-distribution method based on reinforcement learning, comprising the following steps: S1: Obtain the available channel wavelengths of the access network and the remaining keys in each key pool; S2: Determine whether the access terminal has a confidential communication request; If yes, execute step S5; if no, execute step S3; S3: convert the total number of historical key requests of each access terminal, the capacity of the key pool, and the current number of keys into a vector and input it into the reinforcement learning neural network to obtain a corresponding output vector; S4: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the output vector of the reinforcement learning neural network, execute the quantum key distribution process, generate the quantum key and save it in the corresponding key pool, and return to step S1; S5: Determine whether the remaining key amount of the key pool of the corresponding access terminal can meet the confidential communication request; If yes, execute step S8; If not, execute step S6; S6: Determine whether the available channel wavelength resources of the access network can meet the key generation requirements of the confidential communication request; If yes, execute step S7; If not, a request failure message is sent to the corresponding access terminal, and step S9 is executed; S7: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the confidential communication request, perform the quantum key distribution process, generate the quantum key and save it in the corresponding key pool; S8: Use the key resources in the key pool to realize quantum secure communication; S9: Quantum secure communication ends.

[0006] In the above scheme, when there is no confidential communication request and there are idle network resources, the QKD device of the access terminal performs key pre-distribution, so that the user communication request of the access terminal can be satisfied immediately, reducing the time waiting for key generation and improving the wavelength resource utilization of the access network. At the same time, the reinforcement learning method is used to predict the user request intensity of each access terminal based on the historical request key quantity, key pool capacity and current key quantity, reasonably allocate the wavelength resources of the access network and generate a suitable number of quantum keys, so as to reduce the situation of insufficient keys and key waste, and improve the request success rate and key resource utilization of confidential communication.

[0007] Preferably, in step S2, it also includes constructing a historical request information library for storing information of each confidential communication request.

[0008] Preferably, the information of the secure communication request includes the access terminal and the requested key requirement.

[0009] Preferably, in step S3, the total amount of historical key requests of access terminal n is calculated by the number of secure communication requests of access terminal n in the historical request information base and the key requirement for each request.

[0010] Preferably, in step S3, the vector input to the reinforcement learning neural network is represented as: [p1, p2, ..., pn, q1, q2, ..., qn, k1, k2, ..., kn]; Where p1, p2, ..., pn are the total number of historical key requests from access terminals 1, 2, ..., n respectively; q1, q2, ..., qn are the key pool capacities corresponding to the access terminals 1, 2, ..., n respectively; k1, k2, ..., kn are the current key quantities of the key pool corresponding to each access terminal 1, 2, ..., n respectively.

[0011] Preferably, the output vector of the reinforcement learning neural network is expressed as: [a1, a2, ..., an]; wherein a1, a2, ..., an are respectively behaviors of the reinforcement learning neural network in performing key pre-distribution on access terminals 1, 2, ..., n.

[0012] Preferably, the reward obtained by the reinforcement learning neural network depends on the amount of remaining keys in the key pool.

[0013] Preferably, the reward obtained by the reinforcement learning neural network is the sum of the rewards of all key pools; When the remaining key amount in the key pool is greater than a preset first threshold, the reward of the key pool is a first feedback value; When the remaining key amount in the key pool is less than a preset first threshold and greater than a preset second threshold, the reward of the key pool is a second feedback value; When the remaining key amount in the key pool is less than the preset second threshold and greater than 0, the reward of the key pool is the third feedback value; When the remaining key amount in the key pool cannot satisfy the confidential communication request and the request fails, the reward of the key pool is the fourth feedback value; Among them, the preset first threshold is less than the maximum capacity of the key pool, the preset first threshold is greater than the preset second threshold, and the preset second threshold is greater than 0; the first feedback value is greater than the second feedback value, the second feedback value is greater than the third feedback value, and the third feedback value is greater than the fourth feedback value.

[0014] Preferably, the preset first threshold is 40% of the maximum capacity of the key pool, and the preset second threshold is 20% of the maximum capacity of the key pool.

[0015] Preferably, the first feedback value is 2, the second feedback value is 1, the third feedback value is 0, and the fourth feedback value is -10.

[0016] Beneficial technical effects of the present invention: The present invention provides a quantum communication access network key pre-distribution method based on reinforcement learning, which performs key pre-distribution on the QKD device of the access terminal when there is no confidential communication request and there are idle network resources, so that the user communication request of the access terminal can be satisfied immediately, reducing the time of waiting for key generation and improving the wavelength resource utilization of the access network. At the same time, the reinforcement learning method is used to predict the user request intensity of each access terminal according to the historical request key quantity, key pool capacity and current key quantity, reasonably allocate the wavelength resources of the access network and generate a suitable number of quantum keys, so as to reduce the situation of insufficient keys and key waste, and improve the request success rate and key resource utilization of confidential communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a principle diagram of the technical solution of the present invention; Figure 2 It is a flow chart of the implementation steps of the technical solution of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments, but the scope of protection claimed in the present invention is not limited to the following specific embodiments. Example

[0019] like Figure 1-2 As shown, a quantum communication access network key pre-distribution method based on reinforcement learning includes the following steps: S1: Obtain the available channel wavelengths of the access network and the remaining key quantity information in each key pool (QKP); S2: Determine whether the access terminal has a confidential communication request; If yes, execute step S5; if no, execute step S3; S3: convert the total number of historical key requests of each access terminal, the capacity of the key pool, and the current number of keys into a vector and input it into the reinforcement learning neural network to obtain a corresponding output vector; S4: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the output vector of the reinforcement learning neural network, execute the quantum key distribution process, generate the quantum key and save it in the corresponding key pool, and return to step S1; S5: Determine whether the remaining key amount of the key pool of the corresponding access terminal can meet the confidential communication request; If yes, execute step S8; If not, execute step S6; S6: Determine whether the available channel wavelength resources of the access network can meet the key generation requirements of the confidential communication request; If yes, execute step S7; If not, a request failure message is sent to the corresponding access terminal, and step S9 is executed; S7: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the confidential communication request, perform the quantum key distribution process, generate the quantum key and save it in the corresponding key pool; S8: Use the key resources in the key pool to realize quantum secure communication; S9: Quantum secure communication ends.

[0020] In the specific implementation process, when there is no confidential communication request and there are idle network resources, the QKD device of the access terminal is pre-distributed with keys, so that the user communication request of the access terminal can be satisfied immediately, reducing the time waiting for key generation and improving the wavelength resource utilization of the access network. At the same time, the reinforcement learning method is used to predict the user request intensity of each access terminal based on the historical request key quantity, key pool capacity and current key quantity, reasonably allocate the wavelength resources of the access network and generate a suitable number of quantum keys, so as to reduce the situation of insufficient keys and key waste, and improve the request success rate and key resource utilization of confidential communication. Example

[0021] A quantum communication access network key pre-distribution method based on reinforcement learning, comprising the following steps: S1: Obtain the available channel wavelengths of the access network and the remaining key quantity information in each key pool (QKP); S2: Determine whether the access terminal has a confidential communication request; If yes, execute step S5; if no, execute step S3; More specifically, in step S2, it also includes building a historical request information library for storing information of each confidential communication request.

[0022] More specifically, the information of the secure communication request includes the access terminal and the requested key requirement.

[0023] S3: convert the total number of historical key requests of the access terminal, the capacity of the key pool, and the current number of keys into a vector and input it into the reinforcement learning neural network to obtain the corresponding output vector; More specifically, in step S3, the total amount of historical key requests of access terminal n is calculated by the number of secure communication requests of access terminal n in the historical request information base and the key requirement for each request.

[0024] More specifically, in step S3, the vector input to the reinforcement learning neural network is represented as: [p1, p2, ..., pn, q1, q2, ..., qn, k1, k2, ..., kn]; Where p1, p2, ..., pn are the total number of historical key requests from access terminals 1, 2, ..., n respectively; q1, q2, ..., qn are the key pool capacities corresponding to the access terminals 1, 2, ..., n respectively; k1, k2, ..., kn are the current key quantities of the key pool corresponding to each access terminal 1, 2, ..., n respectively.

[0025] More specifically, the output vector of the reinforcement learning neural network is expressed as: [a1, a2, ..., an]; wherein a1, a2, ..., an are respectively behaviors of the reinforcement learning neural network in performing key pre-distribution on access terminals 1, 2, ..., n.

[0026] S4: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the output vector of the reinforcement learning neural network, execute the quantum key distribution process, generate the quantum key and save it in the corresponding key pool, and return to step S1; In actual implementation, the data is saved in the experience replay pool as the material for reinforcement learning; the data is represented by a four-tuple [s, a, r, s'], where s is the input vector of the neural network at this time step; a is the behavior of the neural network in key pre-distribution; r is the reward obtained by the neural network; s' is the input vector of the neural network in the next round of communication after the output behavior. Several samples are extracted from the experience replay pool and input into the reinforcement learning neural network for training to optimize the quantum key pre-distribution strategy.

[0027] For different reinforcement learning methods, the output of the neural network has different meanings. For example, in the DQN (Deep QNetwork) method, the n outputs of the neural network are the benefits of the corresponding behavior; in the Policy Gradients method, the n outputs of the neural network are the probabilities of taking the corresponding behavior.

[0028] When the DQN method is used, the ε-greedy strategy is used to select from the n output behaviors of the neural network, that is, the corresponding access terminal n is selected for key pre-distribution; when the Policy Gradients method is used, the access terminal n is selected for key pre-distribution with the corresponding probability according to the n outputs of the neural network.

[0029] According to the update strategy, the records in the historical request information base that exceed a certain time limit are deleted, the number of request records in the historical request information base is kept within its upper limit, and the timeliness of the key pre-distribution strategy is ensured.

[0030] S5: Determine whether the remaining key amount of the key pool of the corresponding access terminal can meet the confidential communication request; If yes, execute step S8; If not, execute step S6; S6: Determine whether the available channel wavelength resources of the access network can meet the key generation requirements of the confidential communication request; If yes, execute step S7; If not, a request failure message is sent to the corresponding access terminal, and step S9 is executed; S7: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the confidential communication request, perform the quantum key distribution process, generate the quantum key and save it in the corresponding key pool; S8: Use the key resources in the key pool to realize quantum secure communication; In actual implementation, the access terminal uses the quantum key stored in the corresponding key pool to encrypt the communication data and send it to the destination terminal; or after decrypting the encrypted information, it is encrypted and forwarded to the corresponding access terminal and decrypted using the key stored in its key pool.

[0031] S9: Quantum secure communication ends.

[0032] More specifically, the reward obtained by the reinforcement learning neural network depends on the amount of remaining keys in the key pool.

[0033] More specifically, the reward obtained by the reinforcement learning neural network is the sum of the rewards of all key pools; When the remaining key amount in the key pool is greater than a preset first threshold, the reward of the key pool is a first feedback value; When the remaining key amount in the key pool is less than a preset first threshold and greater than a preset second threshold, the reward of the key pool is a second feedback value; When the remaining key amount in the key pool is less than the preset second threshold and greater than 0, the reward of the key pool is the third feedback value; When the remaining key amount in the key pool cannot satisfy the confidential communication request and the request fails, the reward of the key pool is the fourth feedback value; Among them, the preset first threshold is less than the maximum capacity of the key pool, the preset first threshold is greater than the preset second threshold, and the preset second threshold is greater than 0; the first feedback value is greater than the second feedback value, the second feedback value is greater than the third feedback value, and the third feedback value is greater than the fourth feedback value.

[0034] More specifically, the preset first threshold is 40% of the maximum capacity of the key pool, and the preset second threshold is 20% of the maximum capacity of the key pool.

[0035] More specifically, the first feedback value is 2, the second feedback value is 1, the third feedback value is 0, and the fourth feedback value is -10.

[0036] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the invention should also fall within the scope of protection of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the present invention.

Claims

1. A reinforcement learning method for key pre-distribution in quantum communication access network. It is characterized in that The following steps are involved: S1: Obtain the available channel wavelengths of the access network and the remaining keys in each key pool; S2: Determine whether the access terminal has a confidential communication request; If yes, execute step S5; if no, execute step S3; S3: convert the total number of historical key requests of each access terminal, the capacity of the key pool, and the current number of keys into a vector and input it into the reinforcement learning neural network to obtain a corresponding output vector; S4: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the output vector of the reinforcement learning neural network, execute the quantum key distribution process, generate the quantum key and save it in the corresponding key pool, and return to step S1; S5: Determine whether the remaining key amount of the key pool of the corresponding access terminal can meet the confidential communication request; If yes, execute step S8; If not, execute step S6; S6: Determine whether the available channel wavelength resources of the access network can meet the key generation requirements of the confidential communication request; If yes, execute step S7; If not, a request failure message is sent to the corresponding access terminal, and step S9 is executed; S7: Allocate wavelength resources to the QKD device of the corresponding access terminal according to the confidential communication request, perform the quantum key distribution process, generate the quantum key and save it in the corresponding key pool; S8: Use the key resources in the key pool to realize quantum secure communication; S9: Quantum secure communication ends.

2. According to claim 1, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that In step S2, it also includes building a historical request information library for storing information of each confidential communication request.

3. According to claim 2, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The information of the secure communication request includes the access terminal and the requested key requirement.

4. According to claim 3, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that In step S3, the total amount of key requests historically requested by access terminal n is calculated from the number of secure communication requests of access terminal n in the historical request information base and the key requirement for each request.

5. According to claim 1, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that In step S3, the vector input to the reinforcement learning neural network is represented as: [p1, p2, ..., pn, q1, q2, ..., qn, k1, k2, ..., kn]; Where p1, p2, ..., pn are the total number of historical key requests from access terminals 1, 2, ..., n respectively; q1, q2, ..., qn are the key pool capacities corresponding to the access terminals 1, 2, ..., n respectively; k1, k2, ..., kn are the current key quantities of the key pool corresponding to each access terminal 1, 2, ..., n respectively.

6. According to claim 1, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The output vector of the reinforcement learning neural network is expressed as: [a1, a2, ..., an]; wherein a1, a2, ..., an are respectively the actions of the reinforcement learning neural network to perform key pre-distribution on access terminals 1, 2, ..., n.

7. According to claim 1, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The reward obtained by the reinforcement learning neural network depends on the amount of remaining keys in the key pool.

8. According to claim 7, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The reward obtained by the reinforcement learning neural network is the sum of the rewards of all key pools; When the remaining key amount in the key pool is greater than a preset first threshold, the reward of the key pool is a first feedback value; When the remaining key amount in the key pool is less than a preset first threshold and greater than a preset second threshold, the reward of the key pool is a second feedback value; When the remaining key amount in the key pool is less than the preset second threshold and greater than 0, the reward of the key pool is the third feedback value; When the remaining key amount in the key pool cannot satisfy the confidential communication request and the request fails, the reward of the key pool is the fourth feedback value; Among them, the preset first threshold is less than the maximum capacity of the key pool, the preset first threshold is greater than the preset second threshold, and the preset second threshold is greater than 0; the first feedback value is greater than the second feedback value, the second feedback value is greater than the third feedback value, and the third feedback value is greater than the fourth feedback value.

9. According to claim 8, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The preset first threshold is 40% of the maximum capacity of the key pool, and the preset second threshold is 20% of the maximum capacity of the key pool.

10. According to claim 8, a quantum communication access network key pre-distribution method for reinforcement learning, It is characterized in that The first feedback value is 2, the second feedback value is 1, the third feedback value is 0, and the fourth feedback value is -10.