Submitted:
07 August 2025
Posted:
11 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Quantum key generation is fundamentally constrained by physical factors such as quantum bit error rate (QBER) and channel attenuation, leading to substantial heterogeneity in link performance. Links with insufficient capacity are unable to sustain frequent transmissions, which can cause local key pool exhaustion and disrupt services.
- Key demand is tightly coupled with dynamic traffic patterns and often exhibits unpredictable and bursty behavior. During traffic surges or directional load concentrations, key resources on specific paths can be rapidly exhausted. In addition, imbalanced path selection and uneven request distribution may cause localized link overuse, leading to resource bottlenecks and reduced transmission efficiency.
- Existing routing strategies, such as shortest-path-first and maximum residual key, rely on static or instantaneous network states without modeling key pool dynamics. This limits their adaptability to resource fluctuations, leading to greater key transmission failures and degraded network performance. Routing in QKD network must intelligently adapt to dynamic conditions, integrating key generation, consumption, and control feedback to ensure efficient and reliable key delivery.
- 1.
- We propose a resource-aware key scheduling framework for trusted-relay QKD networks that integrates real-time link state monitoring, online Q-Learning–based adaptive routing, and multidimensional path feasibility verification to ensure dynamic congestion avoidance and stable key distribution under time-varying traffic and network conditions.
- 2.
- We constructed a discrete-time model to characterize key dynamics, where the normalized occupancy ratio was uniformly discretized into states, and the action space was defined by adjacent neighbor sets. A composite reward function, integrating occupancy deviation, consumption penalty, and generation incentive, enabled adaptive balancing between network load and key resource replenishment.
- 3.
- The simulation results demonstrate the proposed method substantially enhances trusted-relay QKD network performance by improving transmission efficiency, optimizing resource utilization, and effectively mitigating congestion to ensure robust stability under high-load conditions.
2. Related Work
3. System Model and Problem Formulation
3.1. QKDN Model and Constraints
3.1.1. Network Topology Model
3.1.2. Quantum Key Pool Model
3.1.3. Routing Constraints
- 1.
- Connectivity constraint: For any pair of adjacent nodes along the routing path, a physical link must exist to guarantee topological continuity.
- 2.
- Bandwidth constraint: At any time t, for each link , the cumulative key distribution rate incurred by all active requests traversing this link must not exceed :where denotes the instantaneous key distribution rate associated with request R on link at time t.
- 3.
- Key resource availability constraint: To ensure path viability, all links must have positive remaining key resources at time t, satisfying:where represents the path from source node s to destination node d.
3.2. Online Q-Learning Model Design
3.2.1. State Space Definition
- 1.
- Normalization: Given the known maximum capacity of the key pool on each link , the remaining key amount is first normalized into a key occupancy ratio:
- 2.
- Interval Partitioning: The range of occupancy ratios is uniformly divided into M intervals of equal width , forming a discrete set of states:
- 3.
- State Mapping: The continuous occupancy ratio is mapped to a discrete state label using:
3.2.2. Action Space Definition
3.2.3. Reward Function Design
3.2.4. Policy and Update Mechanism
| Algorithm 1 Episodic Online Q-Learning for Key Scheduling |
|
4. Results and Performance Discussion
4.1. Simulation Setting
4.2. Online Episodic Training Performance
4.2.1. Average Key Distribution Time Per Episode
4.2.2. Key Utilization Ratio Per Episode (Average & Maximum)
4.2.3. Proportion of Idle Key Resource Nodes Per Episode
4.2.4. Proportion of Over-Threshold Key Resource Nodes Per Episode
4.2.5. Quantum Key Distribution Failure Ratio Per Episode
4.3. Offline Policy Evaluation for Testing Performance
4.3.1. Performance Comparison of 50-Node Dijkstra vs. Q-Learning
4.3.2. Performance Comparison of 100-Node Dijkstra vs. Q-Learning
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A
Appendix A.1. QKD Network Architecture

Appendix A.2. Relay Routing Mechanism in QKD Network

References
- Engin Zeydan, Chamitha De Alwis, Rabia Khan, Yekta Turk, Abdullah Aydeger, Thippa Reddy Gadekallu, and Madhusanka Liyanage, Quantum technologies for beyond 5G and 6G networks: Applications, opportunities, and challenges, arXiv preprint, arXiv:2504.17133, 2025. [CrossRef]
- William K. Wootters and Wojciech H. Zurek, A single quantum cannot be cloned, Nature, vol. 299, no. 5886, pp. 802–803, 1982. [CrossRef]
- Artur K. Ekert, Quantum cryptography based on Bell’s theorem, Physical Review Letters, vol. 67, no. 6, p. 661, 1991. [CrossRef]
- M. Krelina, Quantum technology for military applications, EPJ Quantum Technology, vol. 8, no. 1, article 24, 2021. [CrossRef]
- Q. Liang, Employing quantum key distribution for enhancing network security, in Proc. 2023 International Conference on Image, Algorithms and Artificial Intelligence (ICIAAI 2023), Atlantis Press, 2023, pp. 518–526. [CrossRef]
- S. K. Sahu and K. Mazumdar, State-of-the-art analysis of quantum cryptography: applications and future prospects, Frontiers in Physics, vol. 12, 2024, article 1456491. [CrossRef]
- C. W. Tsai, C. W. Yang, J. Lin, et al., Quantum key distribution networks: challenges and future research issues in security, Applied Sciences, vol. 11, no. 9, article 3767, 2021. [CrossRef]
- X. Yu, Y. Liu, X. Zou, et al., Secret-key provisioning with collaborative routing in partially-trusted-relay-based quantum-key-distribution-secured optical networks, Journal of Lightwave Technology, vol. 40, no. 12, pp. 3530–3545, 2022.
- H. Zhou, K. Lv, L. Huang, et al., Quantum network: security assessment and key management, IEEE/ACM Transactions on Networking, vol. 30, no. 3, pp. 1328–1339, 2022. [CrossRef]
- C. Elliott, A. Colvin, D. Pearson, et al., Current status of the DARPA quantum network, in Quantum Information and Computation III, SPIE, vol. 5815, pp. 138–149, 2005. [CrossRef]
- M. Peev, C. Pacher, R. Alléaume, et al., The SECOQC quantum key distribution network in Vienna, New Journal of Physics, vol. 11, no. 7, article 075001, 2009.
- M. Sasaki, M. Fujiwara, H. Ishizuka, et al., Field test of quantum key distribution in the Tokyo QKD Network, Optics Express, vol. 19, no. 11, pp. 10387–10409, 2011. [CrossRef]
- Y. A. Chen, Q. Zhang, T. Y. Chen, et al., An integrated space-to-ground quantum communication network over 4,600 kilometres, Nature, vol. 589, no. 7841, pp. 214–219, 2021. [CrossRef]
- L. Bi, M. Miao, and X. Di, A dynamic-routing algorithm based on a virtual quantum key distribution network, Applied Sciences, vol. 13, no. 15, article 8690, 2023. [CrossRef]
- J. Yu, S. Qiu, and T. Yang, Optimization of hierarchical routing and resource allocation for power communication networks with QKD, Journal of Lightwave Technology, vol. 42, no. 2, pp. 504–512, 2023. [CrossRef]
- Y. Tanizawa, R. Takahashi, and A. R. Dixon, A routing method designed for a quantum key distribution network, in Proc. 2016 Eighth International Conference on Ubiquitous and Future Networks (ICUFN), IEEE, 2016, pp. 208–214. [CrossRef]
- W. Han, X. Wu, Y. Zhu, et al., QKD network routing research based on trust relay, Journal of Military Communications Technology, vol. 34, no. 4, pp. 43–48, 2013.
- C. Ma, Y. Guo, J. Su, et al., Hierarchical routing scheme on wide-area quantum key distribution network, in Proc. 2016 2nd IEEE International Conference on Computer and Communications (ICCC), IEEE, 2016, pp. 2009–2014. [CrossRef]
- H. Zhang, D. Quan, C. Zhu, et al., A quantum cryptography communication network based on software defined network, in ITM Web of Conferences, EDP Sciences, vol. 17, article 01008, 2018. [CrossRef]
- M. Li, D. Quan, and C. Zhu, Stochastic routing in quantum cryptography communication network based on cognitive resources, in Proc. 2016 8th International Conference on Wireless Communications & Signal Processing (WCSP), IEEE, 2016, pp. 1–4. [CrossRef]
- C. Yang, H. Zhang, and J. Su, Quantum key distribution network: Optimal secret-key-aware routing method for trust relaying, China Communications, vol. 15, no. 2, pp. 33–45, 2018. [CrossRef]
- Q. Han, L. Yu, W. Zheng, et al., A novel QKD network routing algorithm based on optical-path-switching, J. Inf. Hiding Multim. Signal Process., vol. 5, no. 1, pp. 13–19, 2014.
- C. Yang, H. Zhang, and J. Su, The QKD network: Model and routing scheme, Journal of Modern Optics, vol. 64, no. 21, pp. 2350–2362, 2017. [CrossRef]
- C. Ma, Y. Guo, and J. Su, A multiple paths scheme with labels for key distribution on quantum key distribution network, in Proc. 2017 IEEE 2nd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), IEEE, 2017, pp. 2513–2517. [CrossRef]
- M. Mehic, O. Maurhart, S. Rass, et al., Implementation of quantum key distribution network simulation module in the network simulator NS-3, Quantum Information Processing, vol. 16, pp. 1–23, 2017. [CrossRef]
- J. Yao, Y. Wang, Q. Li, et al., An efficient routing protocol for quantum key distribution networks, Entropy, vol. 24, no. 7, article 911, 2022. [CrossRef]
- Y. Cao, Y. Zhao, X. Yu, et al., Resource assignment strategy in optical networks integrated with quantum key distribution, Journal of Optical Communications and Networking, vol. 9, no. 11, pp. 995–1004, 2017. [CrossRef]
- Y. Zhao, Y. Cao, W. Wang, et al., Resource allocation in optical networks secured by quantum key distribution, IEEE Communications Magazine, vol. 56, no. 8, pp. 130–137, 2018. [CrossRef]
- Y. Cao, Y. Zhao, C. Colman-Meixner, et al., Key on demand (KoD) for software-defined optical networks secured by quantum key distribution (QKD), Optics Express, vol. 25, no. 22, pp. 26453–26467, 2017. [CrossRef]
- Y. Cao, Y. Zhao, Y. Wu, et al., Time-scheduled quantum key distribution (QKD) over WDM networks, Journal of Lightwave Technology, vol. 36, no. 16, pp. 3382–3395, 2018. [CrossRef]
- K. Dong, Y. Zhao, X. Yu, et al., Auxiliary graph based routing, wavelength, and time-slot assignment in metro quantum optical networks with a novel node structure, Optics Express, vol. 28, no. 5, pp. 5936–5952, 2020. [CrossRef]
- K. Dong, Y. Zhao, A. Nag, et al., Distributed subkey-relay-tree-based secure multicast scheme in quantum data center networks, Optical Engineering, vol. 59, no. 6, article 065102, 2020. [CrossRef]
- X. Zou, X. Yu, Y. Zhao, et al., Collaborative routing in partially-trusted relay based quantum key distribution optical networks, in Proc. 2020 Optical Fiber Communications Conference and Exhibition (OFC), IEEE, 2020, pp. 1–3.
- O. Amer, W. O. Krawec, and B. Wang, Efficient routing for quantum key distribution networks, in Proc. 2020 IEEE International Conference on Quantum Computing and Engineering (QCE), IEEE, 2020, pp. 137–147.
- X. Yu, X. Liu, Y. Liu, et al., Multi-path-based quasi-real-time key provisioning in quantum-key-distribution enabled optical networks (QKD-ON), Optics Express, vol. 29, no. 14, pp. 21225–21239, 2021. [CrossRef]
- S. Li, X. Yu, Y. Zhao, et al., Routing and wavelength allocation in spatial division multiplexing based quantum key distribution optical networks, in Proc. 2020 International Conference on Computing, Networking and Communications (ICNC), IEEE, 2020, pp. 268–272. [CrossRef]










| Parameter | Value |
|---|---|
| Number of nodes | 50, 100 |
| Topology model | Barabási–Albert (BA) model |
| Average node degree | ∼4 |
| Link maximum key generation rate | 100 keys/s |
| Link key pool capacity | 1000 keys |
| Minimum usable key count | 1 key |
| Ideal occupancy ratio | 0.50 |
| Overload detection threshold | 0.65 |
| Time step duration | 1 s |
| Request load | 500-3500 |
| Granularity level of discretization M | 10 |
| Traffic modulation pattern | Sinusoidal ±20% |
| Link drift standard deviation | 0.10 |
| Link failure probability | 0.01 per link per step |
| Link recovery probability | 0.01 per link per step |
| Random seed | 2025 |
| Parameter | Ep.1–5 | Ep.6–15 | Ep.19–23 | Ep.24–30 |
|---|---|---|---|---|
| (exploration rate) | 1.0→0.5 (linear) | 0.5→0.1 (exp) | 0.1 | 0.01 |
| (learning rate) | 0.01 | 0.01→0.005 | 0.005 | 0.002 |
| (load balance weight) | 0.5 | 0.6 | 0.4 | 0.5 |
| (penalty weight) | 0.5 | 0.4 | 0.6 | 0.5 |
| (quality reward weight) | 0.2 | 0.3 | 0.3 | 0.3 |
| (discount factor) | 0.8 | 0.9 | 0.95 | 0.95 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).