Disclosure of Invention
In view of the above, the present invention provides a method and apparatus for allocating air interface resources, which overcomes or at least partially solves the above problems.
One aspect of the present invention provides an air interface resource allocation method, where the method includes:
acquiring timing advance of each terminal in a cell;
determining the time length of an uplink and downlink switching protection interval of a corresponding terminal according to the timing advance of each terminal;
selecting a terminal to be scheduled in the cell in the current scheduling period;
determining the length of schedulable time domain resources in the current scheduling period according to the time length of the uplink and downlink switching guard interval of each terminal to be scheduled;
and performing time domain resource allocation on the terminal to be scheduled in the cell according to the length of the schedulable time domain resource.
After allocating the time domain resource to the terminal to be scheduled in the cell according to the schedulable time domain resource length, the method further includes:
and transmitting data according to the time domain resource allocation result corresponding to the terminal to be scheduled.
Wherein the method further comprises:
and if the terminal to be scheduled in the cell selected in the next scheduling period is the same as the terminal to be scheduled in the cell selected in the current scheduling period, and the timing advance of each selected terminal to be scheduled in the next scheduling period is the same as that in the current scheduling period, adopting the time domain resource allocation result of the current scheduling period to perform data transmission in the next scheduling period.
Wherein the selecting the terminal to be scheduled in the cell in the current scheduling period comprises:
and selecting a terminal to be scheduled in the cell in the current scheduling period by adopting a proportional average PF algorithm or a polling RR, or selecting the terminal to be scheduled in the cell in the current scheduling period based on the QoS or the maximum signal-to-noise ratio.
The method for determining the schedulable time domain resource length in the current scheduling period according to the time length of the uplink and downlink switching guard interval of each terminal to be scheduled specifically comprises the following steps:
and removing the time length of the uplink and downlink switching guard interval of each terminal to be scheduled from the time domain resource length in the current scheduling period to obtain the schedulable time domain resource length in the current scheduling period.
Wherein, if there are broadcast time slot and random access time slot in the current scheduling cycle, the time length of uplink and downlink switching guard interval of each terminal to be scheduled is removed from the time domain resource length in the current scheduling cycle to obtain the schedulable time domain resource length in the current scheduling cycle, including:
and removing the time length of the uplink and downlink switching protection interval of each terminal to be scheduled and the time lengths of the broadcast time slot and the random access time slot from the time domain resource length in the current scheduling period to obtain the schedulable time domain resource length in the current scheduling period.
And the time length of the uplink and downlink switching protection interval of each terminal is not less than the timing advance of the corresponding terminal.
In another aspect of the present invention, an air interface resource allocation apparatus is provided, including:
an obtaining module, configured to obtain a timing advance of each terminal in a cell;
the acquisition module is further configured to determine a time length of an uplink and downlink switching guard interval of a corresponding terminal according to the timing advance of each terminal;
a selecting module, configured to select a terminal to be scheduled in the cell in a current scheduling period;
the distribution module is used for determining the length of the schedulable time domain resource in the current scheduling period according to the time length of the uplink and downlink switching guard interval of each terminal to be scheduled;
and the allocation module is further configured to perform time domain resource allocation for the terminal to be scheduled in the cell according to the schedulable time domain resource length.
Wherein the apparatus further comprises:
and the transmission module is used for transmitting data according to the time domain resource allocation result corresponding to the terminal to be scheduled.
The transmission module is further configured to transmit data in the next scheduling period by using the time domain resource allocation result of the current scheduling period if the terminal to be scheduled in the cell selected in the next scheduling period is the same as the terminal to be scheduled in the cell selected in the current scheduling period, and the timing advance of each selected terminal to be scheduled in the next scheduling period is the same as the timing advance of each selected terminal to be scheduled in the current scheduling period.
The selecting module is specifically configured to select a terminal to be scheduled in the cell in the current scheduling period by using a proportional average PF algorithm or a polling RR, or select a terminal to be scheduled in the cell in the current scheduling period based on a quality of service QoS or a maximum signal-to-noise ratio.
The allocation module is specifically configured to remove the time length of the uplink and downlink switching guard interval of each terminal to be scheduled from the time domain resource length in the current scheduling period, and obtain the schedulable time domain resource length in the current scheduling period.
The allocation module is specifically configured to, if a broadcast time slot and a random access time slot exist in the current scheduling period, remove, from the time domain resource length in the current scheduling period, the time length of the uplink and downlink switching guard interval of each terminal to be scheduled and the time lengths of the broadcast time slot and the random access time slot, and obtain the schedulable time domain resource length in the current scheduling period.
The technical scheme provided in the embodiment of the application has the following technical effects or advantages:
according to the air interface resource allocation method and device provided by the embodiment of the invention, when air interface resources are allocated, the uplink and downlink switching protection interval length of the terminal is determined according to the timing advance of the terminal, and the air interface resource allocation is based on the uplink and downlink switching protection interval length of each terminal to be scheduled, so that the user terminal can adjust the uplink and downlink switching protection interval time slot for granularity in real time, the problem that in the prior art, the granularity adjustment is performed by taking a cell as the granularity, and the uplink and downlink protection intervals of all users in the whole cell are allocated according to the protection interval of the terminal at the farthest distance, so that the resource waste is caused is solved, and the utilization rate of the air interface resources is effectively improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 schematically shows a flowchart of an air interface resource allocation method according to another embodiment of the present invention. Referring to fig. 1, a method for allocating air interface resources according to an embodiment of the present invention specifically includes the following steps:
s101, acquiring timing advance of each terminal in a cell.
The timing advance is the signal propagation round-trip delay between the terminal and the base station.
In this step, the base station obtains the timing advance of each terminal by obtaining the round trip delay of signal propagation between each terminal and the base station.
And S102, determining the time length of the uplink and downlink switching protection interval of the corresponding terminal according to the timing advance of each terminal.
In this step, after the timing advance of each terminal is obtained, the time length of the uplink and downlink switching guard interval for the corresponding terminal to perform uplink and downlink data transmission is determined according to the timing advance of each terminal, where the time length of the uplink and downlink switching guard interval of each terminal is not less than the timing advance of the corresponding terminal.
S103, selecting the terminal to be scheduled in the cell in the current scheduling period.
In the embodiment of the present invention, a proportional average PF algorithm or a polling RR may be used to select a terminal to be scheduled in the cell in the current scheduling period, and the terminal to be scheduled in the cell in the current scheduling period may also be selected based on the quality of service QoS or the maximum signal-to-noise ratio.
In other embodiments of the present invention, the terminal to be scheduled in the cell in the selected current scheduling period may also be selected according to the order of access time of each terminal in the cell, and a terminal that is accessed first is preferentially selected.
It should be noted that, the method for selecting the terminal to be scheduled in the cell in the current scheduling period may be implemented according to other manners, such as channel quality of the location where the terminal is located, a terminal cache state, a base station system resource state, a service priority, a user priority, and the like, besides the order of the access time, and the present invention is not limited specifically.
And S104, determining the schedulable time domain resource length in the current scheduling period according to the time length of the uplink and downlink switching guard interval of each terminal to be scheduled.
In the embodiment of the present invention, the S104 specifically includes:
and removing the time length of the uplink and downlink switching protection interval of each terminal to be scheduled from the time domain resource length in the current scheduling period to obtain the schedulable time domain resource length in the current scheduling period.
Further, if there are a broadcast time slot and a random access time slot in the current scheduling period, the time length of the uplink and downlink switching guard interval of each terminal to be scheduled is removed from the time domain resource length in the current scheduling period to obtain the schedulable time domain resource length in the current scheduling period, including:
and removing the time length of the uplink and downlink switching protection interval of each terminal to be scheduled and the time lengths of the broadcast time slot and the random access time slot from the time domain resource length in the current scheduling period to obtain the schedulable time domain resource length in the current scheduling period.
In other optional embodiments of the present invention, in addition to removing the time length of the uplink and downlink switching guard interval of each terminal to be scheduled, the lengths of the broadcast time slot and the random access time slot may also be removed from the time domain resource length in the current scheduling period, so as to obtain the schedulable time domain resource length in the current scheduling period.
And S105, performing time domain resource allocation on the terminal to be scheduled in the cell according to the length of the schedulable time domain resource.
In the embodiment of the present invention, the time domain resource allocation algorithm may adopt PF (proportional average), QoS (quality of service), RR (round robin) and other algorithms, and the present invention is not limited in detail herein.
According to the air interface resource allocation method provided by the embodiment of the invention, when air interface resource allocation is carried out, the length of the uplink and downlink switching protection interval of the terminal is determined according to the timing advance of the terminal, and the air interface resource allocation is carried out based on the length of the uplink and downlink switching protection interval of each terminal to be scheduled, so that the user can adjust the uplink and downlink switching protection interval time slot for granularity in real time, the problem that resource waste is caused because the cell is used for granularity adjustment and the uplink and downlink protection intervals of all users in the whole cell are allocated according to the protection interval which is farthest away from the terminal in the prior art is solved, and the utilization rate of the air interface resource is effectively improved.
In the embodiment of the invention, after time domain resource allocation is carried out on the terminal to be scheduled in the cell according to the length of the schedulable time domain resource, data transmission is carried out according to the time domain resource allocation result corresponding to the terminal to be scheduled, and the purposes of resource allocation and real-time data transmission according to the uplink and downlink switching protection interval which is adjusted in real time by taking a user as the granularity are achieved.
In the embodiment of the invention, if the terminal to be scheduled in the cell selected in the next scheduling period is the same as the terminal to be scheduled in the cell selected in the current scheduling period, and the timing advance of each selected terminal to be scheduled in the next scheduling period is the same as that in the current scheduling period, the time domain resource allocation result of the current scheduling period is adopted to transmit data in the next scheduling period. Specifically, when the terminal to be scheduled in the cell selected in the next scheduling period is the same as the terminal to be scheduled in the cell selected in the current scheduling period, and the timing advance corresponding to each terminal to be scheduled is the same in the next scheduling period and the current scheduling period, the scheduling result of the previous scheduling period may be directly used to perform data transceiving in the current scheduling period, so as to reduce the resource allocation process and further improve the utilization rate of air interface resources.
The following clearly explains the air interface resource allocation method according to the technical solution of the present invention by a specific embodiment.
Fig. 2 schematically shows a structure diagram of a frame structure of a time division system according to an embodiment of the present invention. As shown in fig. 2, the frame structure of the time division system is composed of N pairs of uplink and downlink resource blocks DL and UL, an uplink and downlink switching guard interval gp is sandwiched between the uplink and downlink resource blocks for achieving the purpose of real-time transmission, and for each terminal, the switching guard interval in the uplink and downlink paired resource blocks allocated to the terminal needs to be larger than the transmission round-trip time of signals between the terminal and the base station, so as to avoid data transmission errors caused by signal transceiving time conflicts at the terminal side. As shown in fig. 3, if two users are accessed in the coverage system and are both terminals to be scheduled, i.e. terminal 0 and terminal 1, and the distance between terminal 0 and the base station is 300m, the timing advance is: 2 × 300/300000000s, i.e. 2us, when the distance between terminal 1 and the base station is 10km, the time advance is: 2 × 10000/300000000 seconds, that is, 66.7us, in the case that the scheduling period is 500us, by adopting the method of the prior art, the uplink and downlink switching guard intervals of the terminal 0 and the terminal 1 are calculated according to 66.7us, at this time, 66.7 × 2us must be subtracted from the scheduling period, and the remaining time domain resources can be used for substantial data transmission. The effective time domain resource ratio for actual transmission in the prior art is as follows: (500-2 × 66.7)/500 ═ 73%. By adopting the air interface resource allocation method provided by the embodiment of the invention, the uplink and downlink switching protection interval of the terminal 0 is 2us, and the uplink and downlink switching protection interval of the terminal 1 is 66.7 us. It can be seen that the proportion of the effective time domain resources used for actual transmission by the air interface resource allocation method of the embodiment of the present invention is: (500-66.7-2)/500-86%, the efficiency of the embodiment of the invention is obviously better than that of the prior art. It can be seen that, as the number of access terminals increases, the overhead of the uplink and downlink switching guard intervals is more obvious, and the uplink and downlink switching guard intervals can be effectively improved, which more directly affects the utilization rate of air interface resources.
In the embodiment of the invention, the uplink and downlink switching protection intervals are adjusted in real time by taking the user terminal as the granularity during resource allocation, so that the problem of resource waste caused by the fact that the uplink and downlink protection intervals of all users in the whole cell are allocated according to the protection interval of the terminal at the farthest distance because the cell is adjusted by taking the cell as the granularity in the prior art is solved, and the utilization rate of air interface resources is effectively improved.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 4 is a block diagram schematically illustrating a structure of an air interface resource allocation apparatus according to an embodiment of the present invention. Referring to fig. 4, the air interface resource allocation apparatus in the embodiment of the present invention specifically includes an obtaining module 201, a selecting module 202, and an allocating module 203, where:
the acquiring module 201 is configured to acquire a timing advance of each terminal in a cell;
the obtaining module 201 is further configured to determine a time length of an uplink and downlink switching guard interval of each terminal according to a timing advance of each terminal, where the time length of the uplink and downlink switching guard interval is not less than the timing advance;
a selecting module 202, configured to select a terminal to be scheduled in the cell in a current scheduling period;
the allocating module 203 is configured to determine a schedulable time domain resource length in a current scheduling period according to a time length of an uplink and downlink switching guard interval of each terminal to be scheduled;
the allocating module 203 is further configured to allocate time domain resources to the terminal to be scheduled in the cell according to the length of the schedulable time domain resources.
In another embodiment of the invention, the device further comprises a transmission module not shown in the drawings.
And the transmission module is used for transmitting data according to the time domain resource allocation result corresponding to the terminal to be scheduled.
Further, the transmission module is further configured to transmit data in the next scheduling period by using the time domain resource allocation result of the current scheduling period if the terminal to be scheduled in the cell selected in the next scheduling period is the same as the terminal to be scheduled in the cell selected in the current scheduling period, and the timing advance of each selected terminal to be scheduled in the next scheduling period is the same as the timing advance of each selected terminal to be scheduled in the current scheduling period.
In the embodiment of the present invention, the selecting module 202 is specifically configured to select a terminal to be scheduled in the cell in the current scheduling period by using a proportional average PF algorithm or a polling RR, or select a terminal to be scheduled in the cell in the current scheduling period based on a quality of service QoS or a maximum signal-to-noise ratio.
In this embodiment of the present invention, the allocating module 203 is specifically configured to remove the time length of the uplink and downlink switching guard interval of each terminal to be scheduled from the time domain resource length in the current scheduling period, so as to obtain the schedulable time domain resource length in the current scheduling period.
Further, the allocating module 203 is specifically configured to, if there are a broadcast time slot and a random access time slot in the current scheduling period, remove, from the time domain resource length in the current scheduling period, the time length of the uplink and downlink switching guard interval of each terminal to be scheduled and the time lengths of the broadcast time slot and the random access time slot, and obtain the schedulable time domain resource length in the current scheduling period.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to the air interface resource allocation method and device provided by the embodiment of the invention, when air interface resources are allocated, the uplink and downlink switching protection interval length of the terminal is determined according to the timing advance of the terminal, and the air interface resource allocation is based on the uplink and downlink switching protection interval length of each terminal to be scheduled, so that the user can adjust the uplink and downlink switching protection interval time slot for granularity in real time, the problem that in the prior art, the granularity is adjusted by taking a cell as the granularity, and the uplink and downlink protection intervals of all users in the whole cell are allocated according to the protection interval of the terminal at the farthest distance, so that the resource waste is caused is solved, and the utilization rate of the air interface resources is effectively improved.
The above-described device embodiments are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the described unit or division of units is only one division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash drive (usb flash drive), a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.