A method for improving the quality of quantum key relay service
By establishing a shared key pool in the quantum key relay service and using neural networks to predict key consumption and dynamically adjust the key cache, the key relay service latency and security issues are solved, and key consumption and key consumption are matched. The matching of cache volume improves service quality and stability.
Patent Information
- Application Number
- CN202011628889.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-30
AI Technical Summary
Existing quantum key relay services have latency and security issues in caching threshold settings. Excessive caching thresholds will reduce key freshness. When the thresholds are not time-variant, it is easy to cause insufficient keys and increase network latency.
By establishing a shared key pool between key relay nodes, and using recurrent neural networks and convolutional neural networks to build a key consumption prediction model, dynamically adjust the key cache amount, and perform key caching based on the key consumption prediction amount. , ensuring that the cache amount matches the consumption amount.
It effectively reduces the latency of the key relay service, improves the security and stability of the key relay service, and avoids latency and freshness issues caused by insufficient keys or excessive cache.
Smart Images

Figure CN114697011B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum key management, and in particular to a method for improving the quality of quantum key relay services. Background Art
[0002] With the development of quantum communication technology, the construction scale of quantum communication networks is also expanding, and the architecture of quantum communication networks is also changing. At present, the practical quantum communication network is the quantum key distribution (QKD) network, which can be logically divided into four main functional layers, namely the quantum layer, the key management layer, the QKD network control layer and the QKD network management layer. The quantum layer is used to generate quantum keys through the QKD link (including quantum channels and classical channels) for quantum signal transmission and information negotiation, and forward the generated quantum keys to the key management layer; the key management layer stores and manages quantum keys; the upper-layer application (i.e., the user-side cryptographic application device or module) obtains quantum keys from the key management layer for confidential communication.
[0003] Quantum key relay belongs to the key management layer of the quantum communication network. The quality of key relay service directly determines the service quality of quantum secure communication of upper-layer applications. Quantum key relay service includes two processes: quantum key distribution and key relay between adjacent nodes on the relay path. In order to reduce the delay of key relay service, adjacent relay nodes perform quantum key distribution in advance and cache the distributed quantum keys, which is a common technical method used in current quantum communication networks. In order to ensure that the quantum keys cached in advance are "sufficient" during key relay, an estimated threshold is often determined between relay nodes to control the amount of cached quantum keys.
[0004] However, under this scheme, if the cache threshold is too large, too many cache keys will be cached for a long time, reducing the key freshness and the security of the relay key; and the threshold is not time-varying, which may easily cause insufficient cache keys when the line is busy. The key relay needs to wait for the temporarily generated key, which increases the network delay of the key relay. Summary of the invention
[0005] To address this problem, the present invention proposes a method for improving the quality of quantum key relay services, which dynamically adjusts the key cache amount between key relay nodes, reduces the latency of the key relay services, and improves the security of the key relay services.
[0006] Specifically, the method for improving the quality of key relay service according to the present invention may include a shared key pool establishment step, a key consumption prediction model construction step, a key consumption prediction step, and a key caching step; wherein,
[0007] The shared key pool establishment step is used to establish a shared key pool between adjacent key relay nodes;
[0008] The key consumption prediction model construction step is used to construct a key consumption prediction model for the shared key pool of the key relay node based on a recurrent neural network and a convolutional neural network and train the model, wherein the data used for training the key consumption prediction model of a certain shared key pool of the key relay node includes key consumption history data of other shared key pools of the key relay node except the certain shared key pool;
[0009] The key consumption amount prediction step is used to obtain the predicted amount of key consumption of the certain shared key pool of the key relay node in the next time interval by using the key consumption amount prediction model of the certain shared key pool of the key relay node and the key consumption amounts of other shared key pools of the key relay node except the certain shared key pool in the previous time interval;
[0010] The key caching step is used to cache the shared quantum key for the certain shared key pool of the key relay node according to the predicted amount of key consumption.
[0011] Optionally, the adjacent key relay node is an adjacent trusted relay node of a metropolitan area network; or, the adjacent key relay node is an adjacent access node of a trunk network; or, the adjacent key relay node is an access node of a trunk network and a trusted relay node of an adjacent metropolitan area network.
[0012] The key consumption history data of the shared key pool may include the key consumption of the shared key pool in each time interval.
[0013] Furthermore, the key consumption prediction model building step includes the following steps:
[0014] Step S1: setting the time interval and collecting key consumption history data of each shared key pool of the key relay node;
[0015] Step S2: constructing the key consumption prediction model for each shared key pool of the key relay node based on the recurrent neural network and the convolutional neural network;
[0016] Step S3: using the key consumption history data of other shared key pools of the key relay node except the shared key pool, training the key consumption prediction model of the shared key pool of the key relay node.
[0017] Furthermore, the key consumption prediction model includes: a network input layer; three one-dimensional convolutional layers, the first layer of the one-dimensional convolutional layers is connected to the network input layer; a first recurrent neural network layer, which is connected to the third layer of the one-dimensional convolutional layers; a second recurrent neural network layer, which is connected to the first recurrent neural network layer; and an output layer, which is connected to the second recurrent neural network layer.
[0018] Furthermore, the input dimension of the network input layer is set to [(st, t, n)], where st is the time step, t is the number of previous key consumption values, and n is the number of other shared key pools participating in the prediction;
[0019] The one-dimensional convolution layer is expressed as C=f(wx+b), where f is an activation function, the one-dimensional convolution layer is set to a relu function, and the output dimension of the one-dimensional convolution layer is (st, t, 1) by setting the convolution kernel size and padding operation;
[0020] The first recurrent neural network layer is a GRU structure, whose activation function is tanh, and whose output is [(st, t, X)], where X is the number of output neurons in the first recurrent neural network layer;
[0021] The second recurrent neural network layer is a GRU structure, whose activation function is relu, and whose output is [(st, Y)], where Y is the number of output neurons of the second recurrent neural network layer;
[0022] The output layer is a fully connected layer and has no activation function. Its output dimension is set to [(None, p)], where None is the network output data volume batch_size; p is the value of the p key consumption in p time intervals after predicting the shared key pool.
[0023] Preferably, the X is set to 512, the Y is set to 512, the batch_size is set to 128, and the p is set to 1 or 2.
[0024] Further, in the key caching step, when the amount of shared quantum keys stored in the certain shared key pool of the key relay node is lower than the predicted amount of key consumption, the shared quantum keys are cached to the certain shared key pool of the key relay node.
[0025] Furthermore, when the corresponding shared key pools of the key relay nodes at both ends of the relay path have different predicted key consumption amounts in the next time interval, the larger value of the different predicted key consumption amounts is selected as the predicted key consumption amount of the corresponding shared key pools of the key relay nodes at both ends of the relay path in the next time interval.
[0026] Furthermore, the key consumption of the shared key pool in the next time interval is collected and saved for training and updating the key consumption prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. It is obvious that the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A flow chart of a method for improving the quality of key relay service according to the present invention is schematically shown;
[0030] Figure 2 An example of a method for improving the quality of key relay service according to the present invention is shown. DETAILED DESCRIPTION
[0031] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are provided by way of example so as to fully convey the spirit of the present invention to those skilled in the art to which the present invention belongs. Therefore, the present invention is not limited to the embodiments disclosed herein.
[0032] In a quantum communication network, each key relay node is generally connected to several key relay nodes, and each key relay node is generally set up with several shared key pools, which are used to cache the shared keys between several adjacent key relay nodes. The amount of keys entering and leaving the key relay node is always equal, so it can be inferred that the key consumption of the shared key pool between key relay nodes will always have a certain quantitative relationship.
[0033] Based on this, the present invention proposes a method for improving the quality of key relay service, which is used to dynamically adjust the cache amount of shared keys between key relay nodes, reduce the delay of key relay service, and improve the security of key relay service.
[0034] Figure 1 The flowchart of the method for improving the quality of key relay service according to the present invention is schematically shown.
[0035] like Figure 1 As shown, the method for improving the quality of key relay service may include the following steps, namely: a shared key pool establishment step, a key consumption prediction model construction step, a key consumption prediction step, and a key caching step.
[0036] In the shared key pool establishment step, a shared key pool may be established between adjacent key relay nodes for caching pre-generated shared quantum keys between adjacent key relay nodes. The adjacent key relay nodes may be adjacent trusted relay nodes of a metropolitan area network, or adjacent access nodes of a trunk network, or an access node of a trunk network and a trusted relay node of an adjacent metropolitan area network.
[0037] In the present invention, a key consumption prediction model is constructed to predict the key consumption of a shared key pool in the next time interval, and thereby determine the shared quantum key cache amount of the shared key pool.
[0038] In the key consumption prediction model construction step, a recurrent neural network and a convolutional neural network (CNN) can be used to construct and train a key consumption prediction model for each shared key pool of a key relay node, wherein the data used to train the key consumption prediction model of a shared key pool of a key relay node includes the key consumption history data of other shared key pools other than the shared key pool of the key relay node.
[0039] To better understand the key consumption prediction model construction steps and subsequent steps, Figure 2 An example of how these steps work is shown below, where Figure 2 An example of a method for improving the quality of key relay service according to the present invention is schematically shown.
[0040] The key consumption prediction model construction step of the present invention may include steps S1, S2 and S3.
[0041] In step S1, a time interval can be set, and the key consumption historical data of each shared key pool between the key relay node and the adjacent key relay node (i.e., the key consumption of each shared key pool in each time interval) can be counted and collected to provide key consumption sample data for training the key consumption prediction model.
[0042] In step S2, a key consumption prediction model is constructed for each shared key pool of the key relay node based on a recurrent neural network and a convolutional neural network.
[0043] As an example, the key consumption prediction model may include a network input layer, three one-dimensional convolutional layers, a first recurrent neural network layer, a second recurrent neural network layer, and an output layer.
[0044] The input dimension of the network input layer can be [(st, t, n)].
[0045] Where: st is the time step; t represents the number of previous key consumption values; n represents the number of shared key pools participating in linkage prediction, that is, the number of other shared key pools in this key relay node except the shared key pool to be predicted. For example, n=3 can mean that this key relay node has a total of 4 shared key pools, and 3 shared key pools are used to predict the key consumption of 1 shared key pool. The value of n can be set in advance according to the situation.
[0046] The one-dimensional convolution layer may include three layers, namely, the first one-dimensional convolution layer C1, the second one-dimensional convolution layer C2 and the third one-dimensional convolution layer C3. The convolution layer can be expressed as C = f (wx + b), f is the activation function, each convolution layer is set to the relu function, x is the input, w is the weight, and b is the bias.
[0047] By setting the size of the convolution kernel and the padding operation, the output dimension of the one-dimensional convolution layer is (st, t, 1), that is, the value of the key consumption of the n shared key pools of the key relay node is abstracted into one value. This value is obtained through three layers of convolution, which integrates the changes in the key consumption between the n shared key pools, so it has better smoothness than the value of the key consumption of a single shared key pool.
[0048] The convolution output (st, t, 1) is passed through the last layer (e.g., the third one-dimensional convolution layer C3) of the three one-dimensional convolution layers, and then enters the first recurrent neural network layer and the second recurrent neural network layer.
[0049] Both the first recurrent neural network layer and the second recurrent neural network layer adopt GRU structure.
[0050] The first recurrent neural network layer is connected to the last convolutional layer of the three one-dimensional convolutional layers, and its activation function can be set to tanh, and the output is [(st, t, X)], where X is the number of output neurons X of this layer, preferably X=512.
[0051] The second recurrent neural network layer is connected to the first recurrent neural network layer, and its activation function can be set to relu, and the output is [(st, Y)], where Y is the number of output neurons in this layer, and is connected to the output layer. Y is preferably 512.
[0052] The output layer is a fully connected layer without an activation function. Its output dimension is [(None, p)], where None represents the amount of data batch_size output by the network; p is the number of features, that is, the value of the p key consumption in p time intervals after predicting the shared key pool.
[0053] In step S3, the key consumption historical data (sample data) of the shared key pool of the key relay node collected in step S1 is used to train and test the key consumption prediction model constructed for a shared key pool of the key relay node in step S2 to determine the neural network parameters of the key consumption prediction model for the shared key pool.
[0054] For example, when training the key consumption prediction model of the first shared key pool of a key relay node, the key consumption historical data of other shared key pools of the key relay node except the first shared key pool can be used as sample data and input into the key consumption prediction model of the first shared key pool of the key relay node, and the test can be completed in combination with the key consumption historical data of the first shared key pool of the key relay node.
[0055] In a preferred example, when training the key consumption prediction model of the shared key pool, the network output data volume batch_size may be 128. Furthermore, when performing actual prediction using the key consumption prediction model after training, the network output data volume batch_size may be 1.
[0056] In a preferred example, p can be set to 1. Furthermore, when the key consumption prediction value obtained based on the key consumption prediction model is very accurate, p can also be set to 2, so as to provide enough time to generate the required cache key quantity when the prediction value is large.
[0057] In the key consumption prediction step, the key consumption prediction model of the shared key pool of the key relay node and the key consumption of other shared key pools of the key relay node except the shared key pool in the previous time interval can be used to predict the key consumption of the shared key pool of the key relay node in the next time interval.
[0058] For example, the key consumption of other shared key pools of this key relay node except the current shared key pool in the previous time interval can be used as input and input into the trained key consumption prediction model of the current shared key pool of this key relay node to obtain the predicted key consumption of the current shared key pool of this key relay node in the next time interval.
[0059] In the key consumption prediction model proposed in the present invention, not only the time correlation of the key consumption data of the shared key pool is considered by using the recurrent neural network, but also the spatial correlation between other shared key pools in the key relay node is considered by using the convolutional neural network, which breaks through the limitations and error influence of prediction based on the key consumption data of a single shared key pool, and makes more full use of the historical data of associated multiple shared key pools. Therefore, it is possible to better find the changing law of the key consumption of the shared key pool with higher accuracy.
[0060] In the key caching step, each shared key pool of each key relay node determines whether it needs to cache keys based on the predicted amount of key consumption. If the amount of keys stored in the shared key pool is lower than the predicted amount of key consumption, a cached shared key is generated in the shared key pool; otherwise, the generation of shared keys is stopped.
[0061] Furthermore, if the corresponding shared key pools of the key relay nodes at both ends of the relay path have different predicted key consumption amounts in the next time interval, the larger value of the two different predicted key consumption amounts can be selected as the predicted key consumption amount of the corresponding shared key pools of the key relay nodes at both ends of the relay path in the next time interval.
[0062] Furthermore, the key relay node can retain the key consumption of each shared key pool in the next time interval for training and updating the key consumption prediction model, such as the neural network parameters of the model.
[0063] It can be seen that in the method according to the present invention, the correlation between the key consumption between multiple shared key pools in the same relay node is used to establish a key consumption prediction model based on a neural network, which can more accurately predict the key consumption of the shared key pool. Among them, the application of the key consumption prediction model based on the neural network realizes the accurate prediction of the key consumption of the shared key pool in the next time interval, so that the key amount stored in the shared key pool is not much different from the actual key consumption in the next time interval, and neither the delay of the key relay is increased by the real-time relay due to the shortage of relay keys, nor the freshness of the key is reduced due to the remaining key stock, affecting the security of the key. At the same time, it is allowed to use historical data to continuously optimize the key consumption prediction model based on the neural network, which can further improve the accuracy of the prediction model, and will not cause the instability of the key relay caused by the excessive relay reservation of a certain shared key pool and the excessive occupation of the relay line, resulting in the insufficient key reservation of the cache of other shared key pools. Therefore, with the help of this method, it is beneficial to improve the service quality of quantum key relay in the quantum communication network and improve the user service quality of the quantum communication network for upper-layer applications.
[0064] Although the present invention has been described above through specific embodiments in conjunction with the accompanying drawings, those skilled in the art will readily recognize that the above embodiments are merely exemplary and are used to illustrate the principles of the present invention, and do not limit the scope of the present invention. Those skilled in the art may make various combinations, modifications and equivalent substitutions to the above embodiments without departing from the spirit and scope of the present invention.
Claims
1. A method for improving the quality of quantum key relay service, comprising a shared key pool establishment step, a key consumption prediction model construction step, a key consumption prediction step and a key caching step; wherein, The shared key pool establishment step is used to establish a shared key pool between adjacent key relay nodes; The key consumption prediction model construction step is used to construct a key consumption prediction model for the shared key pool of the key relay node based on a recurrent neural network and a convolutional neural network and train the model, wherein the data used for training the key consumption prediction model of a certain shared key pool of the key relay node includes key consumption history data of other shared key pools of the key relay node except the certain shared key pool; The key consumption amount prediction step is used to obtain the predicted amount of key consumption of the certain shared key pool of the key relay node in the next time interval by using the key consumption amount prediction model of the certain shared key pool of the key relay node and the key consumption amounts of other shared key pools of the key relay node except the certain shared key pool in the previous time interval; The key caching step is used to cache the shared quantum key for the certain shared key pool of the key relay node according to the predicted amount of key consumption; The key consumption prediction model building step comprises the following steps: Step S1: setting the time interval and collecting key consumption history data of each shared key pool of the key relay node; Step S2: constructing the key consumption prediction model for each shared key pool of the key relay node based on the recurrent neural network and the convolutional neural network; Step S3: using the key consumption history data of other shared key pools of the key relay node except the shared key pool, training the key consumption prediction model of the shared key pool of the key relay node.
2. The method of claim 1, wherein: The adjacent key relay node is an adjacent trusted relay node of a metropolitan area network; or, The adjacent key relay node is an adjacent access node of a trunk network; or, The adjacent key relay nodes are access nodes of a backbone network and trusted relay nodes of an adjacent metropolitan area network.
3. The method of claim 1, wherein: The key consumption historical data of the shared key pool includes the key consumption of the shared key pool in each time interval.
4. The method of claim 1, wherein: The key consumption prediction model includes: Network input layer; Three one-dimensional convolutional layers, the first of which is connected to the network input layer; A first recurrent neural network layer connected to the third layer in the one-dimensional convolutional layer; a second recurrent neural network layer connected to the first recurrent neural network layer; and an output layer connected to the second recurrent neural network layer.
5. The method of claim 4, wherein: The input dimension of the network input layer is set to [(st, t, n)], where st is the time step, t is the number of previous key consumption values, and n is the number of other shared key pools participating in the prediction; The one-dimensional convolution layer is expressed as C=f(wx+b), where f is an activation function, the one-dimensional convolution layer is set to a relu function, and the output dimension of the one-dimensional convolution layer is (st, t, 1) by setting the convolution kernel size and padding operation; The first recurrent neural network layer is a GRU structure, whose activation function is tanh, and whose output is [(st, t, X)], where X is the number of output neurons in the first recurrent neural network layer; The second recurrent neural network layer is a GRU structure, whose activation function is relu, and whose output is [(st,Y)], where Y is the number of output neurons in the second recurrent neural network layer; The output layer is a fully connected layer and has no activation function. Its output dimension is set to [(None, p)], where None is the network output data volume batch_size; p is the value of the p key consumption in p time intervals after predicting the shared key pool.
6. The method of claim 5, wherein: The X is set to 512, the Y is set to 512, the batch_size is set to 128, and the p is set to 1 or 2.
7. The method of claim 1, wherein: In the key caching step, when the amount of shared quantum keys stored in the certain shared key pool of the key relay node is lower than the predicted amount of key consumption, the shared quantum keys are cached in the certain shared key pool of the key relay node.
8. The method of claim 1, wherein: When the corresponding shared key pools of the key relay nodes at both ends of the relay path have different predicted key consumption amounts in the next time interval, the larger value of the two different predicted key consumption amounts is selected as the predicted key consumption amount of the corresponding shared key pools of the key relay nodes at both ends of the relay path in the next time interval.
9. The method of claim 1, wherein: The key consumption of the shared key pool in the next time interval is collected and saved for training and updating the key consumption prediction model.
Citation Information
Patent Citations
Quantum key relay method and apparatus based on centralized management and control network
CN108023725A
Intelligent water level prediction method based on recurrent neural network and convolutional neural network
CN111242344A
Quantum key synchronous relay device
CN111371551A
