Resource allocation method and related equipment

By constructing a multi-dimensional evaluation space and calculating reward values ​​through deep reinforcement learning, the problem of fairness imbalance in business prioritization and bandwidth allocation in the existing technology is solved, efficient spectrum resource allocation and business replacement are achieved, and spectrum utilization and solutions are improved. reliability.

CN118590999APending Publication Date: 2024-09-03中国卫通集团股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410745971.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing technology fails to fully consider multiple influencing factors when prioritizing services and allocating bandwidth, resulting in fairness imbalance, and the fixed bandwidth allocation strategy requires a large amount of calculations, and fails to effectively handle the inter-subband hinges caused by digital transparent forwarding. relation.

Method used

Build a multi-dimensional evaluation space based on user priority and service priority, sort services, calculate reward values ​​in the spectrum environment through deep reinforcement learning, determine the best frequency band for bandwidth allocation, and minimize the impact on other services during service replacement. .

Benefits of technology

It improves spectrum utilization, achieves globally optimal resource allocation, solves the problem of fairness imbalance, and optimizes service replacement rules through multi-dimensional analysis, improving the reliability of the solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590999A
    Figure CN118590999A
Patent Text Reader

Abstract

The invention provides a resource allocation method and related equipment. The method comprises the following steps: sorting services according to the total priority of the services; observing a frequency spectrum environment, and calculating a corresponding reward for the service to access each frequency band in the frequency spectrum environment in response to the fact that the frequency spectrum environment can meet the requirements of the service; and calculating a Q value corresponding to each accessed frequency band based on the reward, and determining the frequency band accessed by the service based on the Q value so as to allocate bandwidth resources. The embodiment of the invention relates to a queuing method based on the total priority of services, which effectively ensures the fairness during queuing scheduling, and can select a mode with the maximum spectrum utilization rate to allocate services by calculating the corresponding Q value, thereby realizing global optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of satellite communication technology, and in particular to a resource allocation method and related equipment. Background Art

[0002] In the prior art, when arranging the priorities of services, generally only the priority of the service itself is considered, but in addition to the service itself, there are other influencing factors.

[0003] In addition, when allocating bandwidth for services, fixed bandwidth is generally used to transmit services. However, using fixed bandwidth for transmission generally requires reserving corresponding bandwidth for various types of services. For bursty service data, the bandwidth allocation strategy needs to be adjusted continuously, which requires too much calculation. And each node needs to reserve resources for each service flow.

[0004] In addition, when allocating bandwidth for services, it is assumed that the uplink and downlink beams of the services are one-to-one corresponding, and the further division of sub-bands by digital transparent processor (DTP) and the hinge relationship between sub-bands brought by DTP are not taken into account. Summary of the invention

[0005] In view of this, the purpose of the present application is to propose a resource allocation method and related equipment.

[0006] Based on the above purpose, the present application provides a resource allocation method, including:

[0007] sorting the businesses according to their overall priority;

[0008] Observe the spectrum environment, and in response to whether the spectrum environment can meet the needs of the service, calculate a corresponding reward for the service to access each frequency band in the spectrum environment;

[0009] A Q value corresponding to accessing each of the frequency bands is calculated based on the reward, and a frequency band for accessing the service is determined based on the Q value to allocate bandwidth resources.

[0010] In a possible implementation, the total priority is determined based on the user priority and the service priority; the service priority includes at least one first influencing factor;

[0011] The services are sorted according to their overall priority, including:

[0012] constructing a multidimensional evaluation space using each of the first influencing factors of the user priority and the business priority;

[0013] Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result;

[0014] The services are ranked based on the evaluation results.

[0015] In a possible implementation manner, the calculating a corresponding reward for the service accessing each frequency band in the spectrum environment includes:

[0016] Acquire a white space frequency band in the spectrum environment;

[0017] A corresponding reward for accessing the service in each of the blank frequency bands is calculated.

[0018] In a possible implementation, the calculating, based on the reward, a Q value corresponding to accessing each of the frequency bands includes:

[0019] Inputting a first action of accessing the service to a first access frequency band in the spectrum environment and a first observation state corresponding to the first action into the Q network to obtain a first calculated value;

[0020] Inputting a second action of accessing the service to a second access frequency band in the spectrum environment and a second observation state corresponding to the second action into the Q network to obtain a second calculated value;

[0021] Based on the first calculated value, the second calculated value, and a first reward obtained by a first action of accessing the service to a first access frequency band in the spectrum environment, updating the first calculated value to obtain a new first calculated value;

[0022] The new first calculated value is used as the Q value corresponding to the first access frequency band.

[0023] In a possible implementation manner, determining the frequency band for accessing the service based on the Q value includes:

[0024] The access frequency band corresponding to the largest Q value among all updated Q values ​​is used as the access frequency band for the service.

[0025] In a possible implementation, the spectrum environment of the service includes a transmit beam and a receive beam;

[0026] The method further comprises:

[0027] In response to the transmit beam of the service being unable to meet service requirements, determining a first service to be selected from the remaining services of the transmit beam, and prioritizing the first service to be selected; the transmit beam of the first service to be selected is the same as the receive beam of the service; the priority of the first service to be selected includes at least one second influencing factor;

[0028] Remove the hinge relationship of the first candidate service with the lowest priority, and determine the bandwidth resource allocated to the service from the transmission beam of the first candidate service;

[0029] Establishing a hinge between the transmit beam of the first to-be-selected service and the receive beam of the service to reallocate resources of the spectrum environment;

[0030] The step of prioritizing the first selected services includes:

[0031] constructing a multidimensional evaluation space using each of the second influencing factors;

[0032] Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result;

[0033] The first to-be-selected services are sorted based on the evaluation result.

[0034] In a possible implementation, the spectrum environment of the service includes a transmit beam and a receive beam;

[0035] The method further comprises:

[0036] In response to the receiving beam of the service being unable to meet the service demand, determining a second service to be selected from the remaining services of the receiving beam, and prioritizing the second service to be selected; the receiving beam of the second service to be selected is the same as the transmitting beam of the service; the priority of the second service to be selected includes at least one second influencing factor;

[0037] Remove the hinge relationship of the first candidate service with the lowest priority, and determine the bandwidth resource to be allocated to the service from the receiving beam of the first candidate service;

[0038] Establishing a hinge between the receiving beam of the first to-be-selected service and the transmitting beam of the service to reallocate resources of the spectrum environment;

[0039] The step of prioritizing the second selected services includes:

[0040] constructing a multidimensional evaluation space using each of the second influencing factors;

[0041] Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result;

[0042] The second to-be-selected services are sorted based on the evaluation result.

[0043] In a possible implementation, the spectrum environment of the service includes a transmit beam and a receive beam;

[0044] The method further comprises:

[0045] In response to the fact that both the transmit beam and the receive beam of the service cannot meet the demand of the service, respectively prioritizing the remaining services in the transmit beam and the receive beam; the priorities of the remaining services in the transmit beam and the receive beam include at least one second influencing factor;

[0046] Determining a third candidate service with the lowest priority in the transmit beam;

[0047] Determining a fourth candidate service with the lowest priority in the receiving beam;

[0048] Removing hinges of the third business to be selected and the fourth business to be selected;

[0049] Determine the bandwidth resources allocated to the service in the transmit beam of the third service to be selected, and determine the bandwidth resources allocated to the service in the receive beam of the fourth service to be selected;

[0050] Establishing a hinge between the transmit beam of the third service to be selected and the receive beam of the fourth service to be selected to reallocate resources of the spectrum environment;

[0051] The prioritizing of the remaining services in the transmit beam and the receive beam, respectively, includes:

[0052] constructing a multidimensional evaluation space using each of the second influencing factors;

[0053] Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result;

[0054] The third candidate business and the fourth candidate business are sorted respectively based on the evaluation result.

[0055] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a resource allocation method as described in any one of the above is implemented.

[0056] Based on the same inventive concept, an embodiment of the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute any of the resource allocation methods described above.

[0057] From the above, it can be seen that the resource allocation method and related equipment provided by the present application sort the services according to the total priority of the services; observe the spectrum environment, and in response to the spectrum environment being able to meet the needs of the services, calculate the corresponding reward for the services to access each frequency band in the spectrum environment; calculate the Q value corresponding to accessing each frequency band based on the reward, and determine the frequency band for the services to access based on the Q value to allocate bandwidth resources. The embodiment of the present application designs a queuing method based on user priority and service priority, which solves the problem of fairness imbalance caused by scheduling based on a single priority. By predicting the service arrangement through deep reinforcement learning and selecting the method with the highest spectrum utilization for allocation, the spectrum utilization can be effectively improved and the global optimum can be achieved. By analyzing the various beam spectrum environments faced during service arrangement and based on the multi-dimensional service arrangement influencing factors, a service replacement rule that minimizes the impact of services is proposed, which can minimize the impact of new services on other services when resources are insufficient. In summary, this application takes into account the actual business scenarios, business types, business spatiotemporal distribution, and the hinge relationship between sub-bands between uplink and downlink beams, and designs business replacement priorities from multiple dimensions to make the replacement rules more reasonable and the proposed solution more reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 A schematic diagram of a resource allocation method flow chart of an embodiment of the present application;

[0060] Figure 2 This is a schematic diagram of the overall process of the resource allocation method according to an embodiment of the present application;

[0061] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0063] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0064] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0065] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0066] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0067] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0068] As described in the background technology section, in the prior art, when arranging the priorities of services, generally only the priority of the service itself is considered. In addition to the service itself, there are other influencing factors.

[0069] In addition, when allocating bandwidth for services, fixed bandwidth is generally used to transmit services. However, using fixed bandwidth for transmission generally requires reserving corresponding bandwidth for various types of services. For bursty service data, the bandwidth allocation strategy needs to be adjusted continuously, which requires too much calculation. And each node needs to reserve resources for each service flow. In addition, when allocating bandwidth for services, the uplink and downlink beams of the default service are one-to-one, and the further division of sub-bands by DTP and the hinge relationship between sub-bands brought by DTP are not taken into account.

[0070] Based on the above considerations, an embodiment of the present application proposes a resource allocation method, which sorts the services according to the total priority of the services; observes the spectrum environment, and in response to the spectrum environment being able to meet the needs of the services, calculates the corresponding reward for the services to access each frequency band in the spectrum environment; calculates the Q value corresponding to accessing each frequency band based on the reward, and determines the frequency band to which the services are accessed based on the Q value to allocate bandwidth resources. An embodiment of the present application designs a queuing method based on user priority and service priority, which solves the problem of fairness imbalance caused by scheduling based on a single priority. By predicting the service arrangement through deep reinforcement learning and selecting the method with the highest spectrum utilization for allocation, the spectrum utilization can be effectively improved and the global optimum can be achieved. By analyzing the various beam spectrum environments faced during service arrangement and based on the multi-dimensional service arrangement influencing factors, a service replacement rule that minimizes the impact on the service is proposed, which can minimize the impact of new services on other services when resources are insufficient. In summary, this application takes into account the actual business scenarios, business types, business spatiotemporal distribution, and the hinge relationship between sub-bands between uplink and downlink beams, and designs business replacement priorities from multiple dimensions to make the replacement rules more reasonable and the proposed solution more reliable.

[0071] The technical solutions of the embodiments of the present application are described in detail below through specific examples.

[0072] refer to Figure 1 The resource allocation method of the embodiment of the present application comprises the following steps:

[0073] Step S101, sorting the services according to their total priorities;

[0074] Step S102, observing the spectrum environment, and in response to the spectrum environment being able to meet the needs of the service, calculating a corresponding reward for the service accessing each frequency band in the spectrum environment;

[0075] Step S103, calculating a Q value corresponding to accessing each of the frequency bands based on the reward, and determining a frequency band for accessing the service based on the Q value, so as to allocate bandwidth resources.

[0076] refer to Figure 2 , which is a schematic diagram of the overall process of the resource allocation method according to an embodiment of the present application.

[0077] like Figure 2 As shown, first, determine whether there is a waiting queue in the transmit beam. If there is a waiting queue, queue the service based on priority, and then determine whether the current service is in the first place. If not, continue to wait for the previous service to be processed. If it is in the first place, observe the spectrum environment of the current service. Specifically, determine whether the transmit beam spectrum meets the service requirements. If it does, continue to determine whether the receive beam spectrum meets the requirements. If both meet the requirements, directly allocate dual-beam resources, then establish a new hinge, and transmit the service.

[0078] If in the above process, the transmitting beam meets the requirements, it is still necessary to further determine whether the receiving beam meets the requirements. If not, then only the receiving beam does not meet the service requirements. At this time, determine whether the service list in the receiving beam that is the same as the transmitting beam of the service is empty, that is, determine whether there is a service in the receiving beam that is the same as the transmitting beam of the service. If the list is empty, all services in the receiving beam are sorted according to the priority of the service, and the hinge of the service with the lowest priority is removed. If the list is not empty, select the hinge of the service with the lowest priority from the list for removal, and then re-establish a new hinge based on the receiving beam of the service with the lowest priority and the transmitting beam of the service to be transmitted, and then the service can be transmitted.

[0079] If the transmitting beam does not meet the requirements in the above judgment process, it is still necessary to further determine whether the receiving beam meets the requirements. If the receiving beam meets the requirements, it is determined whether there is a service in the transmitting beam that is the same as the receiving beam of the service. If the list is empty, all services in the transmitting beam are sorted according to the priority of the service, and the hinge of the service with the lowest priority is removed. If the list is not empty, the hinge of the service with the lowest priority is selected from the list for removal. Then, a new hinge is re-established based on the transmitting beam of the service with the lowest priority and the receiving beam of the service to be transmitted, and then the service can be transmitted.

[0080] If the transmit beam does not meet the requirements in the above judgment process, it is still necessary to further judge whether the receive beam meets the requirements. If the receive beam does not meet the requirements, it is judged whether there is a service in the transmit beam that is the same as the receive beam of the service. If the list is empty, all services in the transmit beam and the receive beam are prioritized, and then the service with the lowest priority is found in the two beams, and the hinges are removed respectively, and a service hinge is established. If the list is not empty, the services found are prioritized and then removed, and then it is judged whether there is a service with the same as the receive beam in the receive beam. If the list is empty, all services in the transmit beam and the receive beam are prioritized, and then the service with the lowest priority is found in the two beams, and the hinges are removed respectively, and a service hinge is established. If the list is not empty, the services found are prioritized and then removed, and then the transmit beam and the receive beam are hinged, and the service transmission is completed.

[0081] The following is a detailed introduction to each step.

[0082] With respect to step S101 , the services are sorted according to their total priorities.

[0083] In some embodiments, the total priority is determined based on user priority and service priority; the service priority includes at least one first influencing factor; the services are sorted according to the total priority of the services, including: constructing a multidimensional evaluation space using the user priority and each of the first influencing factors of the service priority; evaluating the services using the multidimensional evaluation space to obtain evaluation results; and sorting the services based on the evaluation results.

[0084] Specifically, after a new user activates the service, the user information and service information of the new user are first obtained, and it is observed whether there is a service queue waiting to be inserted in the target beam. If there is no service queue, proceed to the next step. If there is a service queue, it is necessary to insert the user service into the queue according to the total priority. When the user service is first in the queue, proceed to the next step.

[0085] The basis for sorting user service queues is the total priority, which is composed of user priority and service priority. The basis for user priority is the enterprise's sorting rules for customers, which can be preset and modified at any time according to changes in the situation. The basis for service priority is the service release time, lease time, bandwidth usage, data type, queue waiting time, etc. For example, the earlier the service is released, the longer the lease time, the more bandwidth is used, the longer the queue waiting time, and the data type is video or multimedia stream, the higher its priority will be.

[0086] When determining the overall priority, a multidimensional evaluation space is formed through multiple influencing factors. Each user in the queue has a unique position coordinate in the space. The priority of the service is calculated by the following formula:

[0087] ψ i =F(α0,α1,α2,α3,...)

[0088] Among them, ψ i is the priority of the ith business, F is the evaluation function, and [α0, α1, α2, α3, ...] are the weights of the corresponding influencing factors.

[0089] After determining the total priority of the service, the spectrum environment needs to be observed. For step S102, the spectrum environment is observed, and in response to whether the spectrum environment can meet the needs of the service, the corresponding reward for the service accessing each frequency band in the spectrum environment is calculated.

[0090] Specifically, observe the spectrum environment of the currently allocated transmit beam and receive beam. If both spectrum environments meet the bandwidth required by the user, then start resource allocation; if one or both of the two spectrum environments do not meet the bandwidth required by the user, then service replacement is required.

[0091] The following first describes resource allocation in detail.

[0092] In some embodiments, the calculating the corresponding reward for the service accessing each frequency band in the spectrum environment includes: acquiring blank frequency bands in the spectrum environment; and calculating the corresponding reward for the service accessing each blank frequency band.

[0093] Specifically, if there are enough free frequency bands to allocate at time t, assuming that the length of the free frequency band is L and the bandwidth required by the user service is K, there are L-K+1 frequency bands to choose from. t It is expressed as follows.

[0094]

[0095] where p∈{1,2,...,L-K+1}. t =p means that the pth frequency band is selected for access at time t, and the idle bandwidth of the selected frequency band can meet the bandwidth demand of the user's service; a t =0 means that the frequency band selected at time t cannot meet its bandwidth requirements, and the user service access fails. Action a t The selection is done through an ε-greedy strategy.

[0096] Action a t You can use the reward r tFor evaluation, at time t, the reward may have two cases, which can be defined as:

[0097]

[0098] Among them, w1 is the positive reward and w2 is the negative reward.

[0099] In some embodiments, the Q value corresponding to accessing each of the frequency bands based on the reward calculation includes: inputting a first action of the service accessing a first access frequency band in the spectrum environment and a first observation state corresponding to the first action into the Q network to obtain a first calculation value; inputting a second action of the service accessing a second access frequency band in the spectrum environment and a second observation state corresponding to the second action into the Q network to obtain a second calculation value; based on the first calculation value, the second calculation value and the first reward obtained by the first action of accessing the service to the first access frequency band in the spectrum environment, updating the first calculation value to obtain a new first calculation value; and using the new first calculation value as the Q value corresponding to the first access frequency band.

[0100] In the embodiment of the present application, when the service accesses the first access frequency band at the first time, the first action is completed. At this time, the first action will have a corresponding first observation state. At this time, the first action and the corresponding first observation state are input into the Q network, and the first calculation value is obtained at this time. Then the service is accessed to the next frequency band, and the second action is completed accordingly, and the second observation state is obtained, and the second calculation value is further obtained. At this time, it is necessary to use the second calculation value to iteratively process the first calculation value to predict what state the service will be in when accessing the first access frequency band at the next moment, and how its corresponding Q value will change. Then all blank frequency bands are selected in turn for access to obtain the corresponding Q value, and the previous result is updated after each calculation until all blank frequency bands are traversed.

[0101] Specifically, the DQN (Deep Q-Network) algorithm uses the observed state x and action a as the input of the Q network, and the corresponding Q value Q(x,a) as the output. The iterative formula of Q(x,a) is shown below.

[0102]

[0103] Among them, Q new (x t ,a t ) represents the new first calculated value obtained after iteration, Q(x t ,a t ) represents the first calculated value, α and γ represent the first parameter and the second parameter of the influence of the new value on the updated value, respectively, r tIndicates the reward value corresponding to the first action.

[0104] Further, with respect to step S103, a Q value corresponding to accessing each of the frequency bands is calculated based on the reward, and a frequency band for accessing the service is determined based on the Q value, so as to allocate bandwidth resources.

[0105] In this embodiment, Q θ′ (x t+1 ,a) is defined as the target Q value of the target Q network. The Q network minimizes the loss function L at each iteration. θ To update its own parameters, this process is actually the process of continuous iterative update of the parameters θ of the Q network. The target Q network here represents the Q network corresponding to the historical data, including the target Q value, which also represents the historical data calculated in the previous steps. The DQN algorithm is a reinforcement learning algorithm based on neural networks proposed by DeepMind. Its core idea is to combine the Q-learning algorithm with a deep neural network.

[0106] Furthermore, all the results obtained in the previous steps are saved in the experience replay buffer D, and then a small batch of data is randomly extracted from the experience replay buffer D to calculate the minimum loss function L θ , and update the parameters θ of the Q network. At each iteration, sampling in small batches from the experience replay buffer D can effectively overcome the correlation between data and the non-stationary distribution of data, and improve the efficiency of data sampling. The loss function L θ It can be defined by the mean square error between the Q value calculated by the Q network and the target Q value of the target Q network.

[0107] L θ =Ε[(Qθ(x,a)-y′) 2 ]

[0108] Among them, Q θ (x,a) is the Q value calculated by the Q network, and y′ represents the true value, which is the sum of the reward and the target Q value of the target Q network. The true value is calculated by the following formula:

[0109]

[0110] Among them, r represents the reward value corresponding to the corresponding action.

[0111] In some embodiments, determining the frequency band for accessing the service based on the Q value includes: using the accessed frequency band corresponding to the largest Q value among all updated Q values ​​as the frequency band for accessing the service.

[0112] In this embodiment, the optimal strategy π* It is achieved through a large number of iterative updates of Q-values ​​and strategies π, generated according to the optimal Q-value function.

[0113]

[0114] In the steps here, after completing the last iteration of the Q value, the largest Q value is selected from all Q values, and then the action corresponding to the largest Q value is executed to insert the corresponding frequency band into the service.

[0115] In addition, for this application, if the access user frequency f u If it is an integer multiple of the network update frequency f, the parameters θ′ of the target Q network are updated.

[0116] In the aforementioned step S102, the spectrum environment is observed, and in response to whether the spectrum environment can meet the needs of the service, the corresponding reward for the service to access each frequency band in the spectrum environment is calculated. If the spectrum environment cannot meet the needs of the service when observing the spectrum environment, then service replacement processing is required.

[0117] When the beam does not meet the user's service needs, service replacement is required, which is divided into three situations. Case 1: The transmit beam spectrum does not meet the demand, but the receive beam spectrum can meet the demand; Case 2: The transmit beam spectrum can meet the demand, but the receive beam spectrum does not meet the demand; Case 3: Both the transmit beam spectrum and the receive beam spectrum cannot meet the demand. The service replacement rule is to minimize the service impact principle, which is specifically stated as follows: Assuming that there are i services in the mth transmit beam and the receive beam number is n, then for the i services, first search to see if there is a service with the same hinge relationship as the new service, and the service list found will be replaced first. The reason for this is: Since DTP technology realizes the hinge relationship of sub-bands, if service 1 occupies the sub-band (z i ,z i+1 ), service 2 occupies subband zi+1, and both zi and zi+1 establish a hinge relationship from transmit beam m to receive beam n. If z i With z i+1If one of them changes the transmitting beam or receiving beam, both hinge relationships need to be removed. Then the replacement priority is sorted, and the service with the lowest replacement priority is selected to replace the inserted service. The replacement priority here takes into account factors such as daily use frequency, whether it crosses sub-bands, release time, lease time, remaining time, bandwidth size and data type to form a multi-dimensional evaluation space. For example, the higher the frequency of daily use, the service crosses the sub-band during transmission, the later the release time, the longer the lease time, the shorter the remaining time, the larger the bandwidth used, and the service is a video stream or multimedia stream, the higher the priority of the corresponding service will be, and correspondingly, it should not be replaced.

[0118] In some embodiments, for the above-mentioned situation one, the spectrum environment of the service includes a transmitting beam and a receiving beam; the method also includes: in response to the transmitting beam of the service being unable to meet the needs of the service, determining a first candidate service from the remaining services of the transmitting beam, and prioritizing the first candidate service; the transmitting beam of the first candidate service is the same as the receiving beam of the service; the priority of the first candidate service includes at least one second influencing factor; the hinge relationship of the first candidate service with the lowest priority is removed, and the bandwidth resources allocated to the service are determined from the transmitting beam of the first candidate service; a hinge is established between the transmitting beam of the first candidate service and the receiving beam of the service to reallocate the resources of the spectrum environment; wherein, the prioritizing of the first candidate service includes: constructing a multidimensional evaluation space using each of the second influencing factors; evaluating the service using the multidimensional evaluation space to obtain an evaluation result; and sorting the first candidate service based on the evaluation result.

[0119] In this embodiment, based on the service replacement rule, in case 1, first find the service in the transmit beam that is the same as the receive beam of the user service, prioritize the found services, and then remove them. Use the resource allocation method to find a suitable subband in the receive beam, and establish a hinge for the user service. If the service in the transmit beam that is the same as the receive beam of the user service is not found, prioritize all services in the transmit beam, then remove them, and then use the resource allocation method to find a suitable subband in the receive beam, and establish a hinge for the user service.

[0120] In some embodiments, for the above-mentioned situation 2, the spectrum environment of the service includes a transmitting beam and a receiving beam; the method also includes: in response to the receiving beam of the service being unable to meet the needs of the service, determining a second candidate service from the remaining services of the receiving beam, and prioritizing the second candidate service; the receiving beam of the second candidate service is the same as the transmitting beam of the service; the priority of the second candidate service includes at least one second influencing factor; the hinge relationship of the first candidate service with the lowest priority is removed, and the allocated bandwidth resources for the service are determined from the receiving beam of the first candidate service; a hinge is established between the receiving beam of the first candidate service and the transmitting beam of the service to reallocate the resources of the spectrum environment; wherein, the prioritizing of the second candidate service includes: constructing a multidimensional evaluation space using each of the second influencing factors; evaluating the service using the multidimensional evaluation space to obtain an evaluation result; and sorting the second candidate service based on the evaluation result.

[0121] In this embodiment, in case 2, first find the service in the receiving beam that is the same as the transmitting beam of the user service, prioritize the found services, and then remove them. Use the resource allocation method to find a suitable subband in the transmitting beam, and establish a hinge for the user service. If the service in the receiving beam that is the same as the transmitting beam of the user service is not found, prioritize all services in the receiving beam, then remove them, and then use the resource allocation method to find a suitable subband in the transmitting beam, and establish a hinge for the user service.

[0122] In some embodiments, with respect to the above-mentioned situation three, the spectrum environment of the service includes a transmitting beam and a receiving beam; the method further includes: in response to the fact that both the transmitting beam and the receiving beam of the service are unable to meet the needs of the service, respectively prioritizing the remaining services in the transmitting beam and the receiving beam; the priorities of the remaining services in the transmitting beam and the receiving beam include at least one second influencing factor; determining a third candidate service with the lowest priority in the transmitting beam; determining a fourth candidate service with the lowest priority in the receiving beam; removing the hinges between the third candidate service and the fourth candidate service; and The bandwidth resources allocated to the service are determined in the transmit beam, and the bandwidth resources allocated to the service are determined in the receive beam of the fourth candidate service; a hinge is established between the transmit beam of the third candidate service and the receive beam of the fourth candidate service to reallocate resources of the spectrum environment; wherein, the prioritizing of the remaining services in the transmit beam and the receive beam respectively comprises: constructing a multidimensional evaluation space using each of the second influencing factors; evaluating the services using the multidimensional evaluation space to obtain evaluation results; and respectively sorting the third candidate service and the fourth candidate service based on the evaluation results.

[0123] In this embodiment, in case 3, first find the service in the transmit beam that is the same as the receive beam of the user service, prioritize the found services, then remove them, and establish a hinge for the user service. If no service in the transmit beam that is the same as the receive beam of the user service is found, prioritize all services in the transmit beam and receive beam, find the service with the lowest priority in the two beams, then remove them, and establish a hinge for the user service.

[0124] It can be seen from the above embodiments that the resource allocation method described in the embodiment of the present application sorts the services according to the total priority of the services; observes the spectrum environment, and in response to the spectrum environment being able to meet the needs of the services, calculates the corresponding reward for the services to access each frequency band in the spectrum environment; calculates the Q value corresponding to accessing each frequency band based on the reward, and determines the frequency band accessed by the services based on the Q value to allocate bandwidth resources. The embodiment of the present application designs a queuing method based on user priority and service priority, which solves the problem of fairness imbalance caused by scheduling based on a single priority. By predicting the service arrangement through deep reinforcement learning and selecting the method with the highest spectrum utilization for allocation, the spectrum utilization can be effectively improved and the global optimum can be achieved. By analyzing the various beam spectrum environments faced during service arrangement and based on the multi-dimensional service arrangement influencing factors, a service replacement rule that minimizes the impact on the service is proposed, which can minimize the impact of new services on other services when resources are insufficient. In summary, this application takes into account the actual business scenarios, business types, business spatiotemporal distribution, and the hinge relationship between sub-bands between uplink and downlink beams, and designs business replacement priorities from multiple dimensions to make the replacement rules more reasonable and the proposed solution more reliable.

[0125] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0126] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0127] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the resource allocation method described in any of the above embodiments is implemented.

[0128] Figure 3A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0129] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0130] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0131] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0132] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0133] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0134] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0135] The electronic device of the above embodiment is used to implement the corresponding resource allocation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0136] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the resource allocation method described in any of the above embodiments.

[0137] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0138] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the resource allocation method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0139] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0140] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0141] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0142] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A resource allocation method, characterized in that: include: sorting the businesses according to their overall priority; Observe the spectrum environment, and in response to whether the spectrum environment can meet the needs of the service, calculate a corresponding reward for the service to access each frequency band in the spectrum environment; A Q value corresponding to accessing each of the frequency bands is calculated based on the reward, and a frequency band for accessing the service is determined based on the Q value to allocate bandwidth resources.

2. The method according to claim 1, characterized in that The overall priority is determined based on the user priority and the service priority; the service priority includes at least one first influencing factor; The services are sorted according to their overall priority, including: constructing a multidimensional evaluation space using each of the first influencing factors of the user priority and the business priority; Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result; The services are ranked based on the evaluation results.

3. The method according to claim 1, characterized in that The calculating a corresponding reward for the service accessing each frequency band in the spectrum environment includes: Acquire a white space frequency band in the spectrum environment; A corresponding reward for accessing the service in each of the blank frequency bands is calculated.

4. The method according to claim 1, characterized in that: The calculating the Q value corresponding to accessing each of the frequency bands based on the reward includes: Inputting a first action of accessing the service to a first access frequency band in the spectrum environment and a first observation state corresponding to the first action into the Q network to obtain a first calculated value; Inputting a second action of accessing the service to a second access frequency band in the spectrum environment and a second observation state corresponding to the second action into the Q network to obtain a second calculated value; Based on the first calculated value, the second calculated value, and a first reward obtained by a first action of accessing the service to a first access frequency band in the spectrum environment, updating the first calculated value to obtain a new first calculated value; The new first calculated value is used as the Q value corresponding to the first access frequency band.

5. The method according to claim 1, characterized in that The determining the frequency band for accessing the service based on the Q value includes: The access frequency band corresponding to the largest Q value among all updated Q values ​​is used as the access frequency band for the service.

6. The method according to claim 1, characterized in that The spectrum environment of the service includes a transmitting beam and a receiving beam; The method further comprises: In response to the transmit beam of the service being unable to meet service requirements, determining a first service to be selected from the remaining services of the transmit beam, and prioritizing the first service to be selected; the transmit beam of the first service to be selected is the same as the receive beam of the service; the priority of the first service to be selected includes at least one second influencing factor; Remove the hinge relationship of the first candidate service with the lowest priority, and determine the bandwidth resource allocated to the service from the transmission beam of the first candidate service; Establishing a hinge between the transmit beam of the first to-be-selected service and the receive beam of the service to reallocate resources of the spectrum environment; The step of prioritizing the first selected services includes: constructing a multidimensional evaluation space using each of the second influencing factors; Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result; The first to-be-selected services are sorted based on the evaluation result.

7. The method according to claim 1, characterized in that The spectrum environment of the service includes a transmitting beam and a receiving beam; The method further comprises: In response to the receiving beam of the service being unable to meet the service demand, determining a second service to be selected from the remaining services of the receiving beam, and prioritizing the second service to be selected; the receiving beam of the second service to be selected is the same as the transmitting beam of the service; the priority of the second service to be selected includes at least one second influencing factor; Remove the hinge relationship of the first candidate service with the lowest priority, and determine the bandwidth resource to be allocated to the service from the receiving beam of the first candidate service; Establishing a hinge between the receiving beam of the first to-be-selected service and the transmitting beam of the service to reallocate resources of the spectrum environment; The step of prioritizing the second selected services includes: constructing a multidimensional evaluation space using each of the second influencing factors; Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result; The second to-be-selected services are sorted based on the evaluation result.

8. The method according to claim 1, characterized in that The spectrum environment of the service includes a transmitting beam and a receiving beam; The method further comprises: In response to the fact that both the transmit beam and the receive beam of the service cannot meet the demand of the service, respectively prioritizing the remaining services in the transmit beam and the receive beam; the priorities of the remaining services in the transmit beam and the receive beam include at least one second influencing factor; Determining a third candidate service with the lowest priority in the transmit beam; Determining a fourth candidate service with the lowest priority in the receiving beam; Removing hinges of the third business to be selected and the fourth business to be selected; Determine the bandwidth resources allocated to the service in the transmit beam of the third service to be selected, and determine the bandwidth resources allocated to the service in the receive beam of the fourth service to be selected; Establishing a hinge between the transmit beam of the third service to be selected and the receive beam of the fourth service to be selected to reallocate resources of the spectrum environment; The prioritizing of the remaining services in the transmit beam and the receive beam, respectively, includes: constructing a multidimensional evaluation space using each of the second influencing factors; Using the multidimensional evaluation space to evaluate the business and obtain an evaluation result; The third candidate business and the fourth candidate business are sorted respectively based on the evaluation result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 8.