The rapid development of information technology and the rapid improvement of computing capabilities have put forward higher requirements for network information security.Traditional encryption methods are gradually exposing shortcomings with the development of big data,cloud computing,and quantum computing technologies.The quantum encryption technology,especially quantum key distribution technology,which can theoretically ensure the absolute secure,has become one of the main research topics to solve this problem.Based on a detailed analysis of the features and requirements of a point-to-point quantum key distribution system,quantum key distribution network and trust relay,a quantum encryption queue scheduling based on Diffserve is proposed for the quantum key distribution network that does not support key pools.The algorithm analyzes the time spent when the data packet is encrypted and relayed in the network and estimates the time spent based on parameters such as the key length required for encryption and the quantum key generation rate.By adjusting the scheduling order,encrypting the packets that will soon be timeout,the proposed algorithm can effectively reduce the timeout ratio of the packets.Simulation results show that the algorithm can effectively reduce the timeout ratio of services in high-priority queues when queues are congested,reduce key resource waste caused by timeouts,and do not significantly affect the delay of services in low-priority queues.On the premise of meeting a certain timeout ratio of the packets,the algorithm needs a lower quantum key generation rate,reaching a higher effective utilization of the quantum key,and has better performance than the WFQ algorithm.Besides,a quantum key relay routing algorithm based on trust relay is proposed for the quantum key distribution network that supports key pools and using SDQN to achieve accurate estimation of parameters in the network and fine-grained control of key relay routing.The proposed algorithm calculates the probability of relay failure within a certain period of time and the probability of key overflow by comprehensively considering the quantum key generation rate,the amount of remaining local keys,and the arrival rate of the encrypted service,and then obtain the link cost for routing based on this.Simulation results show that the algorithm can effectively balance the quantum key resources in each key pool,improve the success rate of the quantum key relay,and reduce the situation of quantum key overflow. |