Quantum communication network service quality control method, storage device and intelligent terminal
The quantum communication network method optimizes mother machine resource allocation in cloud hosts by filtering, reusing, and comparing loads and latencies, addressing resource wastage and improving utilization.
Patent Information
- Application Number
- CN202510234842.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-15
AI Technical Summary
While ensuring the quality of cloud host network services, the resource utilization rate of the parent machine is low, resulting in waste of resources.
Optimize the creation process of target cloud hosts through configuration filtering, resource reuse, load comparison and regional filtering to improve the resource utilization rate of the master machine.
While ensuring the quality of cloud host service, it effectively improves the utilization rate of parent resources and reduces resource waste.
Smart Images

Figure CN120321137A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication networks and information security, and particularly relates to a method for controlling the quality of quantum communication services, a storage device, and an intelligent terminal. Background Art
[0002] Cloud host network service is an IT infrastructure capability rental service that integrates computing, storage, and network resources, and can provide server rental services with the ability to use on demand and pay on demand based on the cloud computing model. Cloud host is an important part of cloud computing in infrastructure applications, located at the bottom of the cloud computing industry chain pyramid, and its application based on the quantum communication network originates from the cloud computing platform. This platform integrates the three core elements of Internet applications: computing, storage, and quantum network, and provides users with public Internet infrastructure services. Cloud host is a virtualization technology similar to VPS host. VPS uses virtual software, VZ or VM, to virtualize multiple parts similar to independent hosts on one host, enabling multi-user on a single machine. Each part can have a separate operating system, and the management method is the same as that of the host. Cloud host virtualizes multiple parts similar to independent hosts on a group of cluster hosts, and there is an image of the cloud host on each host in the cluster, thus greatly improving the security and stability of the virtual host.
[0003] In the prior art, the method for ensuring the quality of cloud host network services is to configure the physical resource reuse rate in advance and divide the mother machine to provide services for target cloud hosts with different service quality level requirements. When a request to build a target cloud host is received, according to the service quality requirements of the target cloud host, the mother machine with the service quality level allocated in advance is compared, and the target cloud host is directly built on the successfully paired mother machine.
[0004] Although the prior art differentiates cloud hosts with different service quality requirements to a certain extent, enabling them to obtain service quality that meets the requirements, it causes waste of the mother machine resources. There are often situations where the mother machine resources cannot be fully utilized because there is no demand for target cloud hosts with corresponding service quality level requirements.
[0005] Therefore, it is necessary to improve the existing method for controlling the quality of cloud host network services to effectively improve the utilization rate of mother machine resources while ensuring the quality of cloud host network services. Summary of the Invention
[0006] In order to solve the above technical problems, a method for controlling the quality of quantum communication network services is proposed.
[0007] To achieve the above object, the technical solution adopted by the present invention is as follows: A method for controlling the quality of quantum communication network services includes the following steps:
[0008] Step S1: Sending a request: The user sends a request to build a target cloud host (or a quantum encryption request) to the server;
[0009] Step S2: Configuration filtering: After receiving the request, the server performs configuration filtering on all mother machines, filtering out the mother machines with service quality lower than threshold A;
[0010] Step S3: Resource reuse: Under the condition that the user allows resource reuse of the cloud host, the following operations are performed on the filtered mother machines:
[0011] Checking whether the confidentiality level of the user is the highest privilege level:
[0012] a) If it is the highest privilege level, a mother machine with a resource reuse rate of zero and the smallest task load is matched for it to build the target cloud host;
[0013] b) If it is not the highest privilege level, check whether the "specified mother machine" field in the request is empty:
[0014] If it is empty, it means that the user has not configured a specified cloud host;
[0015] If it is not empty, and according to the existing field: "mother machine UUID", and the corresponding mother machine UUID is obtained, then the specified mother machine UUID is used to build the target cloud host;
[0016] c) If the user's confidentiality level is neither the highest confidentiality level privilege nor a specified mother machine, then calculate the service quality level score E of all mother machines:
[0017] E = E d + E c + E r + E i
[0018] where, E c 、E r 、E d and E i respectively represent the weighted values of the resource reuse rates of the CPU, memory, disk, and network of the mother machine;
[0019] By comparing the service quality level score of the mother machine with the service quality level requirement of the target cloud host, if the calculated service quality score of the mother machine is higher than the service quality level score limit required by the target cloud host, then it is filtered out, and the filtered mother machine is used to build the target cloud host.
[0020] Preferably, in step S3, if the user does not allow resource reuse, the following operations are performed on the filtered mother machines:
[0021] 1) If the user requests to build a target cloud host in the form of a specified mother machine, the target cloud host is directly built on the mother machine required by the user.
[0022] 2) If the user does not specify a mother machine, perform regional filtering on all mother machines: compare the network latency between the user's location after quantum secure communication network data encryption and the mother machines, and filter out the mother machines with a network latency greater than threshold B.
[0023] 3) If the network latency gap between the mother machine with the highest network latency and the mother machine with the lowest network latency among all mother machines exceeds 30 ms, select the mother machine with the lowest network latency to build the target cloud host.
[0024] If the network latency gap is within 30 ms, compare the current tasks of all mother machines and select the mother machine with the lightest task load to create the target cloud host.
[0025] Preferably, the method for obtaining the network latency is: obtaining network latency data through the "ping" command.
[0026] Preferably, if there are still multiple mother machines meeting the conditions after steps S1 - S3, the following steps are performed:
[0027] Step S4: Compare the memory load conditions of multiple mother machines and select the mother machine with the smallest memory load to build the target cloud host.
[0028] Preferably, the specific process of filtering in the configuration filtering of step S2 is as follows:
[0029] Step S2 - 1: Set the filtering thresholds A1, A2, and A3 for the CPU, memory, and hard disk of the mother machine respectively.
[0030] Step S2 - 2: When the three values of the CPU, memory, and hard disk of a certain mother machine are respectively greater than A1, A2, and A3, then this mother machine meets the conditions, otherwise it is filtered.
[0031] Preferably, the process of checking the user's security level in step S3 is as follows:
[0032] When the server receives the user's cloud host building request, it obtains the user token_id in the request, and accesses keystone according to the user token_id to verify whether the user token is valid. If it is valid, it obtains the security permission level of this user from the keystone database.
[0033] Preferably, the weighted values E c 、E r 、E d and E i of the resource reuse rates of the CPU, memory, disk, and network of the mother machine are calculated as follows:
[0034]
[0035] Among them, R c is the current CPU usage size of the master machine, and r c is the CPU size of the target cloud host, and R C is the total CPU size of the master machine, and 0.35 is the weight value of the CPU resource reuse rate for the service quality level score;
[0036]
[0037] Among them, R r is the current memory usage size of the master machine, and r r is the memory size of the target cloud host, and R R is the total memory size of the master machine, and 0.25 is the weight value of the memory resource reuse rate for the service quality level score;
[0038]
[0039] Among them, R d is the current disk usage size of the master machine, and r d is the disk size of the target cloud host, and R D is the total disk size of the master machine, and 0.1 is the weight value of the disk resource reuse rate for the service quality level score;
[0040]
[0041] Among them, R i is the current network resource usage size of the master machine, and r i is the network resource usage size of the target cloud host, and R I is the total network resource size of the master machine, and 0.3 is the weight value of the network resource reuse rate for the service quality level score.
[0042] Preferably, the operation of obtaining the load conditions of each master machine in step S4 is as follows:
[0043] The user issues the TOP command to the server, and the server obtains the load condition of the master machine's CPU through the TOP command, and judges the load condition of the master machine's task according to the length of the task queue currently queuing and waiting to be executed on the CPU, and determines that the master machine task with the shortest task queue length has the lightest load.
[0044] A storage device stores multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the step operations of a quantum communication network service quality control method as described above.
[0045] An intelligent terminal includes a processor for executing various instructions and a storage device for storing multiple instructions. The instructions are adapted to be loaded and executed by the processor to perform the step operations of a quantum communication network service quality control method as described above.
[0046] Advantageous technical effects of the present invention: The present invention creates a target cloud host by means of configuration filtering, resource reuse, load comparison, and geographical filtering, etc., which can effectively improve the utilization rate of the mother machine resources while ensuring the service quality of the cloud host. Description of the Drawings
[0047] Figure 1 It is a flowchart of the steps of a quantum communication network service quality control method of the present invention. Detailed Embodiments
[0048] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the following further elaborates on the present invention in conjunction with embodiments. However, the scope of protection required by the present invention is not limited to the following specific embodiments.
[0049] As Figure 1 shown, a quantum communication network service quality control method includes the following steps:
[0050] Step S1: Sending a request: A user sends a request to build a target cloud host (or a quantum encryption request) to the server;
[0051] Step S2: Configuration filtering: After receiving the request, the server performs configuration filtering on all mother machines, and filters out mother machines with service quality lower than threshold A;
[0052] Specifically, configuration filtering means that when creating a cloud host, it is necessary to specify the sizes of the CPU, memory, and hard disk. Only mother machines that meet these configurations simultaneously can be successfully matched. Configuration filtering can initially filter out most mother machines that cannot meet the service quality requirements of the target cloud host.
[0053] Specifically, the specific process of configuration filtering is as follows:
[0054] Step S2-1: Respectively set the filtering thresholds A1, A2, and A3 for the CPU, memory, and hard disk of the mother machine;
[0055] Step S2-2: When the sizes of the CPU, memory, and hard disk of a certain mother machine are respectively greater than A1, A2, and A3, then the mother machine meets the conditions, and the mother machines that meet the conditions are retained and enter the next step, while the mother machines that do not meet the conditions are filtered out.
[0056] Among them, A1, A2, and A3 are set according to actual needs. In this embodiment, the ranges and preferred values of A1, A2, and A3 are respectively:
[0057] Step S3 Resource Reuse: Under the condition that the user allows the cloud host to reuse resources, the following operations are performed on the filtered mother machine:
[0058] Check whether the user's confidentiality level is the highest privilege level:
[0059] a) If it is the highest privilege level, match the mother machine with a zero resource reuse rate and the minimum task load for it to build the target cloud host;
[0060] The process of obtaining the level is as follows:
[0061] When the server receives the user's cloud host construction request, it obtains the user token_id in the request (the token number assigned by the server to the user side after the user logs in successfully), and accesses keystone according to the user token_id to verify whether the user token is valid. If it is valid, it obtains the confidentiality privilege level of this user from the keystone database.
[0062] b) If it is not the highest privilege level, check whether the "specified mother machine" field in the request is empty:
[0063] If it is empty, it means that the user has not configured the specified cloud host;
[0064] If it is not empty, according to the existing field: "mother machine UUID" (UUID: Universally Unique Identifier for distributed systems), and the corresponding mother machine UUID is obtained, then the specified mother machine UUID is used to build the target cloud host;
[0065] c) If the user's confidentiality level is neither the highest confidentiality privilege level nor a specified mother machine, calculate the service quality level score E of all mother machines:
[0066] E = E d + E c + E r + E i
[0067] Among them, E c 、E r 、E d and E i respectively represent the weighted values of the resource reuse rates of the CPU, memory, disk, and network of the mother machine;
[0068] By comparing the service quality level score E of the mother machine with the service quality level requirements of the target cloud host, if the calculated service quality score E of the mother machine is higher than the service quality level score limit required by the target cloud host, it will be filtered out, and the filtered mother machine will be used to build the target cloud host. The lower the service quality level score E of the mother machine, the lower the resource reuse rate and the better the service quality that can be provided.
[0069] According to the required service quality level of the target cloud host carried in the cloud host construction request, by comparing the service quality level score of the mother machine with the service quality level requirement of the target cloud host, if the calculated service quality score of the mother machine is higher than the service quality level score limit required by the target cloud host, it means that this mother machine cannot provide the service quality required by the target cloud host and is filtered out. In this embodiment, before initiating the request, the service quality level is divided into three options: low, medium, and high. The low, medium, and high quality level levels correspond to service quality level score limits of 30%, 20%, and 10% respectively. That is, when the quality level is low, the service quality level score corresponds to 30%. At this time, the mother machines with a service quality level score E higher than 30% are filtered out.
[0070] Specifically, the weighted value E of the resource reuse rates of the CPU, memory, disk, and network of the mother machine c 、E r 、E d and E i The calculation formulas are as follows:
[0071]
[0072] Among them, R c is the current CPU usage size of the mother machine, r c is the CPU size of the target cloud host, R C is the total CPU size of the mother machine, and 0.35 is the weight value of the CPU resource reuse rate for the service quality level score;
[0073]
[0074] Among them, R r is the current memory usage size of the mother machine, r r is the memory size of the target cloud host, R R is the total memory size of the mother machine, and 0.25 is the weight value of the memory resource reuse rate for the service quality level score;
[0075]
[0076] Among them, R d is the current disk usage size of the mother machine, r d is the disk size of the target cloud host, R D is the total disk size of the mother machine, and 0.1 is the weight value of the disk resource reuse rate for the service quality level score;
[0077]
[0078] Among them, R i is the current network resource usage size of the mother machine, ri is the usage size of the network resources of the target cloud host, R I is the total size of the network resources of the mother machine, and 0.3 is the weight value of the network resource reuse rate for the service quality level score.
[0079] Specifically, resource reuse means that two mother machines have the same scheduling and usage rights for a small part of the resources of the same CUP or hard disk storage space. For the operator, reasonably performing resource reuse (in this embodiment, the upper limit of resource reuse is limited to less than 30%) can enable the cloud host service system to provide more cloud host services without affecting the performance of the user's cloud host.
[0080] When in step S3, if the user does not allow resource reuse, the following operations are performed on the filtered mother machines:
[0081] 1) If the user requests to build a target cloud host in the form of a specified mother machine, the target cloud host is directly built on the mother machine required by the user;
[0082] 2) If the user does not specify a mother machine, regional filtering is performed on all mother machines: compare the network latency between the user's location after quantum secure communication network data encryption and the mother machines, and filter out the mother machines with a network latency greater than threshold B;
[0083] Regional filtering means that different mother machines may be in different computer rooms, different computer rooms are in different regions, and there may be differences in different operators or different network data transmission lines between different regions and the user. These differences will cause differences in the network latency between users and mother machines within different regions. By comparing these differences in network latency and filtering out some mother machines with larger network latency, it is called regional filtering.
[0084] 4) If the network latency gap between the mother machine with the highest network latency and the mother machine with the lowest network latency among all mother machines exceeds 30 ms, it is considered that the network latency affects the quantum secure communication network cloud host. At this time, the mother machine with the lowest network latency is selected to build the target cloud host;
[0085] Specifically, the method of network delay is as follows: the network latency data can be obtained by using the "ping" command on the IP address of the mother machine.
[0086] If the network latency gap is within 30 ms, it is considered that the network latency has no impact on the cloud host of the quantum secure communication network. At this time, compare the current tasks of all mother machines, perform filtering on the current tasks of the mother machines, and select the mother machine with the lightest task load to create the target cloud host. Filtering the current tasks of the mother machine means that the tasks such as the creation and deletion operations of the cloud host by the resource operation module on the mother machine are serial, and these operations usually take a long time. Therefore, compare the current tasks of all the remaining mother machines in the comparison items, and select the mother machine with the lightest task load to create the target cloud host.
[0087] The way to have the lightest task load is to obtain the load situation of the mother machine's CPU through the TOP command, and judge the load situation of the mother machine's tasks according to the length of the task queue currently queuing and waiting to be executed on the CPU. It is considered that the mother machine with the shortest task queue length has the lightest task load.
[0088] A storage device stores multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the step operations of a quantum communication network service quality control method as described above.
[0089] An intelligent terminal includes a processor for executing each instruction and a storage device for storing multiple instructions. The instructions are suitable for being loaded and executed by the processor to perform the step operations of a quantum communication network service quality control method as described above.
[0090] The present invention creates the target cloud host through methods such as configuration filtering, resource reuse, load comparison, and geographical filtering, and can effectively improve the resource utilization rate of the mother machine while ensuring the network service quality of the cloud host.
[0091] According to the disclosure and teaching of the above specification, those skilled in the art to which the present invention pertains can 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 protection scope of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for convenience of description and do not constitute any limitation to the invention.
Claims
1. A method for quality of service control of a quantum communication network, characterized in that, Including the steps: Step S1: The user issues a request to build a target cloud host; Step S2: After receiving the request, the server filters all the mother machines and filters out the mother machines with service quality lower than threshold A; Step S3: Under the condition that the user allows resource reuse of the cloud host, operate on the filtered mother machines: Check the user's confidentiality level: a) If it is the highest privilege level, build a target cloud host for the mother machine with a resource reuse rate of zero and the smallest task load; b) Otherwise, obtain the "specified mother machine" in the request, and obtain and assign it to the corresponding mother machine according to the field to build the target cloud host; c) If the user's confidentiality level is neither the highest confidentiality level privilege nor a specified mother machine, calculate the service quality level score E of all mother machines as E = E d + E c + E r + E i , E c , E r , E d and E i respectively represent the weighted values of the resource reuse rates of the CPU, memory, disk, and network of the mother machine; Compare the service quality level score of the mother machine with the service quality level score limit of the target cloud host, and filter out the mother machines with a mother machine service quality score higher than the service quality level score limit required by the target cloud host.
2. The quality of service control method for a quantum communication network according to claim 1, characterized in that, If the user does not allow resource reuse in step S3, the following operations are performed on the filtered master machines: 1) If the user requests to build a target cloud host in the form of a specified master machine, the target cloud host is directly built on the master machine required by the user; 2) If the user does not specify a master machine, regional filtering is performed on all master machines: compare the network latency between the user's location after quantum secure communication network data encryption and the master machines, and filter out the master machines with a network latency greater than threshold B; 3) If the network latency gap between the master machine with the highest network latency and the master machine with the lowest network latency among all master machines exceeds 30 ms, select the master machine with the lowest network latency to build the target cloud host; If the network latency gap is within 30 ms, compare the current tasks of all master machines and select the master machine with the lightest task load to create the target cloud host.
3. The method for controlling the quality of service of a quantum communication network according to claim 2, wherein The method for obtaining the network latency is: obtain network latency data through the "ping" command.
4. The method for controlling the quality of service of a quantum communication network according to claim 3, wherein If there are still multiple master machines that meet the conditions after steps S1 - S3, the following steps are performed: Step S4: Compare the memory load conditions of multiple master machines and select the master machine with the smallest memory load to build the target cloud host.
5. A method for controlling the quality of service of a quantum communication network according to claim 4, characterized in that, The specific process of filtering in the configuration filtering of step S2 is as follows: Step S2-1: Set the filtering thresholds A1, A2, and A3 for the CPU, memory, and hard disk of the master machine respectively; Step S2-2: When the three values of the CPU, memory, and hard disk of a certain master machine are respectively greater than A1, A2, and A3, the master machine meets the conditions, otherwise it is filtered.
6. The method for controlling the quality of service of a quantum communication network according to claim 5, characterized in that, The process of checking the user's security level in step S3 is as follows: When the server receives the user's cloud host building request, it obtains the user token_id in the request, accesses keystone according to the user token_id to verify whether the user token is valid, and if it is valid, obtains the security permission level of this user from the keystone database.
7. The method for controlling the quality of service of a quantum communication network according to claim 6, characterized in that, The weighted value E of the resource reuse rates of the CPU, memory, disk, and network of the master machine c , E r , E d and E i The calculation formulas are as follows: Among them, R c is the current CPU usage size of the master machine, r c is the CPU size of the target cloud host, R C is the total CPU size of the master machine, and 0.35 is the weight value of the CPU resource reuse rate for the service quality level score; Among them, R r is the current memory usage size of the master machine, r r is the memory size of the target cloud host, R R is the total memory size of the master machine, and 0.25 is the weight value of the memory resource reuse rate for the service quality level score; Among them, R d is the current disk usage size of the master machine, r d is the disk size of the target cloud host, R D is the total disk size of the master machine, and 0.1 is the weight of the disk resource reuse rate for the service quality level score; Among them, R i is the current network resource usage size of the master machine, r i is the network resource usage size of the target cloud host, R I is the total network resource size of the master machine, and 0.3 is the weight of the network resource reuse rate for the service quality level score.
8. A method for controlling the quality of service of a quantum communication network according to claim 7, characterized in that, The operations for obtaining the load conditions of each master machine in step S4 are as follows: The user sends a TOP command to the server, and the server obtains the load condition of the master machine CPU through the TOP command, and judges the load condition of the master machine task according to the length of the task queue currently queuing up for execution on the CPU, and determines that the master machine task with the shortest task queue length has the lightest load.
9. A storage device in which multiple instructions are stored, characterized in that, The instruction is applicable to the step operations of a quantum communication network service quality control method as described in any one of claims 1 - 8 loaded and executed by a processor.
10. An intelligent terminal, comprising a processor for executing various instructions and a storage device for storing multiple instructions, characterized in that, The instruction is applicable to the step operations of a quantum communication network service quality control method as described in any one of claims 1 - 8 loaded and executed by the processor.