Method and device for balancing load in scheduling evolution base station
Technical Field
The present invention relates to a resource allocation technique in a Long Term Evolution (LTE) system in the field of mobile communications, and in particular, to a method and an apparatus for balancing and scheduling a load in an evolved node b (eNodeB).
Background
In the LTE system, the priority of Voice over Internet Protocol (VoIP) service is higher than that of non-VoIP service, so when performing resource scheduling, the eNodeB preferentially schedules resources for the VoIP service. When the eNodeB handles more VoIP traffic, more resources may be scheduled for the VoIP traffic. However, the total resource of each scheduling is limited by the Control Channel Element (CCE) resource, and many VoIP services occupy a large amount of CCE resources. Therefore, when the VoIP service in the eNodeB is more, the eNodeB can preferentially schedule more resources for the VoIP service, so that the number of resources that can be scheduled for the non-VoIP service is reduced, and a situation that no resource can be scheduled for the non-VoIP service may occur, thereby affecting the use experience of the non-VoIP service user. Furthermore, the relative channel condition of the eNodeB is good and the load of the eNodeB is light, but the VoIP service of the eNodeB cannot be switched to the adjacent eNodeB, so that the resources of the adjacent eNodeB cannot be fully utilized, and the bandwidth resource utilization rate of the system cannot be improved.
Therefore, in the prior art, when resources are scheduled for a VoIP service, the actual use condition of the resources in the current eNodeB is not considered, so that the use experience of non-VoIP service users is affected, and the bandwidth resource utilization rate of the system cannot be improved.
Disclosure of Invention
In view of this, the present invention aims to provide a method and an apparatus for balancing and scheduling load in an eNodeB, so as to ensure the user experience of non-VoIP service; in addition, the resources of the adjacent eNodeBs are fully utilized, so that the bandwidth resource utilization rate of the system is improved.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for balancing load in scheduling eNodeB, which comprises the following steps:
counting the total throughput of the VoIP service in the detection duration, and calculating the total CCE resource occupancy rate in the detection duration;
and if the total CCE resource occupancy rate is judged to be greater than the preset judgment threshold and the total throughput of the VoIP service is judged to be greater than the preset switching threshold, switching the subsequent processing of the VoIP service completing the call access process to the selected eNodeB.
In the foregoing solution, the counting the total throughput of the VoIP service within the detection duration includes: and after the detection is determined to be started, starting a timer, detecting whether a received request message for initiating the VoIP service is received or not in real time, counting and recording the throughput corresponding to the VoIP service when the request message for initiating the VoIP service is detected, and accumulating the currently recorded throughputs corresponding to all the VoIP services when the timer reaches the detection time length to obtain the total throughput of the VoIP service in the preset detection time length.
In the foregoing solution, the calculating the total CCE resource occupancy within the detection duration includes: after the detection is determined to be started, starting a timer, recording the currently allocated CCE resources in real time, and accumulating all recorded currently allocated CCE resources when the timer reaches the detection duration to obtain the used CCE resources in the detection duration; and calculating the proportion value of the CCE resources used in the detection duration to the total CCE resources.
In the above scheme, the determining that the total CCE resource occupancy is greater than the preset decision threshold and the determining that the total throughput of the VoIP service is greater than the preset switching threshold includes: judging whether the total CCE resource occupancy rate is greater than a preset judgment threshold, if so, judging whether the total throughput of the VoIP service is greater than a preset switching threshold; otherwise, the process flow is ended.
In the above scheme, the switching the subsequent processing of the VoIP service that completes the call access procedure to the selected eNodeB includes: after receiving the request message for initiating the VoIP service, the eNodeB detects whether the VoIP service completes the call access process or not according to the SIP, and if so, switches the subsequent processing of the VoIP service completing the call access process to the selected eNodeB.
In the above scheme, the selected eNodeB is: and selecting one eNodeB with the best channel condition or the most free resources from the adjacent eNodeB list as the selected eNodeB.
The invention also provides a device for balancing the load in the scheduling eNodeB, which comprises: the device comprises a calculation module, a judgment module and a scheduling module; wherein,
the calculation module is used for counting the total throughput of the VoIP service in the detection duration, calculating the total CCE resource occupancy rate in the detection duration, and sending the total throughput and the total CCE resource occupancy rate of the VoIP service to the judgment module;
and the judging module is used for receiving the total throughput and the total CCE resource occupancy rate of the VoIP service sent by the calculating module, and informing the scheduling module that the judgment result is switching start if the total CCE resource occupancy rate is judged to be greater than a preset judgment threshold and the total throughput of the VoIP service is judged to be greater than a preset switching threshold.
And the scheduling module is used for switching the subsequent processing of the VoIP service completing the call access process to the selected eNodeB when receiving the judgment result of starting the switching sent by the judgment module.
In the above scheme, the apparatus further comprises: the control module is used for starting a timer after the start of detection is determined, detecting whether a received request message for initiating the VoIP service is received or not in real time, counting the throughput corresponding to the VoIP service when the request message for initiating the VoIP service is detected, sending the throughput corresponding to the VoIP service to the calculation module, and informing the calculation module of starting to count the total throughput of the VoIP service in the detection time when the time of detection is reached by the timer;
correspondingly, the calculation module is further configured to receive and store the throughput corresponding to the single VoIP service sent by the control module, and accumulate the currently recorded throughputs corresponding to all the VoIP services after receiving the total throughput of the VoIP service within the start statistical detection duration sent by the control module, so as to obtain the total throughput of the VoIP service within the detection duration.
In the above scheme, the control module is further configured to start a timer after determining that the detection is started, notify the calculation module to record the currently allocated CCE resource in real time, and notify the calculation module to start calculating the total CCE resource occupancy rate within the detection duration when the timer reaches the detection duration;
correspondingly, the calculating module is further configured to, after receiving the notification sent by the control module to start calculating the total CCE resource occupancy rate within the detection duration, obtain the total CCE resource from the scheduling module, accumulate all recorded CCE resources allocated by the current eNodeB to obtain CCE resources used within the detection duration, and calculate a ratio of the used CCE resource to the total CCE resource;
the scheduling module is further configured to provide the currently allocated CCE resource and the total CCE resource for the calculating module.
In the above scheme, the determining module is specifically configured to determine whether the total CCE resource occupancy rate is greater than a preset decision threshold, if so, determine whether the total throughput of the VoIP service is greater than a preset switching threshold, otherwise, do not perform the operation.
In the above scheme, the scheduling module is specifically configured to detect whether the VoIP service completes a call access procedure according to SIP after the control module receives a request message for initiating the VoIP service, and if so, switch the subsequent processing of the VoIP service that completes the call access procedure in the control module to the selected eNodeB;
correspondingly, the control module is further configured to receive the detection of the scheduling module, and switch the subsequent processing of the VoIP service that completes the call access procedure to the selected eNodeB according to the operation of the scheduling module.
In the foregoing solution, the scheduling module is specifically configured to select, as the selected eNodeB, one eNodeB with the best channel conditions or the most idle resources from a neighboring eNodeB list stored in the scheduling module.
The method and the device for balancing and scheduling the load in the eNodeB can switch the subsequent processing of the VoIP service which finishes the call access process to the selected eNodeB when the total CCE resource occupancy rate is greater than the preset judgment threshold and the total throughput of the VoIP service is greater than the preset switching threshold. Therefore, the resource use condition in the current eNodeB can be determined according to the total throughput and the total CCE resource occupancy rate of the VoIP service, and the resources used by the VoIP service are allocated, so that certain resources reserved in the current eNodeB can be ensured to be used by the non-VoIP service, and the use experience of users of the non-VoIP service is further ensured; and, by switching part of processing operation in the VoIP service to the selected eNodeB, the resources of the selected eNodeB can be fully utilized, thereby improving the bandwidth resource utilization rate of the system.
Drawings
Fig. 1 is a flowchart illustrating a method for scheduling load in eNodeB in a balanced manner according to the present invention;
fig. 2 is a schematic structural diagram of an apparatus for balancing load in scheduling eNodeB according to the present invention.
Detailed Description
The basic idea of the invention is: counting the total throughput of the VoIP service in the detection duration, and calculating the total CCE resource occupancy rate in the detection duration; and if the total CCE resource occupancy rate is judged to be greater than the preset judgment threshold and the total throughput of the VoIP service is judged to be greater than the preset switching threshold, switching the subsequent processing of the VoIP service completing the call access process to the selected eNodeB.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The method for balancing and scheduling the load in the eNodeB, as shown in FIG. 1, includes the following steps:
step 101: and counting the total throughput of the VoIP service in the detection duration, and calculating the total CCE resource occupancy rate in the detection duration.
Here, the detection time length is a preset time length according to an actual situation, for example, the detection time length may be preset to twenty minutes;
the total throughput of the VoIP service in the statistical detection duration is as follows: and after the detection is determined to be started, starting a timer, detecting whether a received request message for initiating the VoIP service is received or not in real time, counting and recording the throughput corresponding to the VoIP service when the request message for initiating the VoIP service is detected, and accumulating the currently recorded throughputs corresponding to all the VoIP services when the timer reaches the detection time length to obtain the total throughput of the VoIP service in the preset detection time length. The determination of the start of detection may be performed according to a preset period of an actual situation, for example, the detection is preset every two hours, or the detection is started under the control of a manager; the request message for initiating the VoIP service is a message specified in a Session Initiation Protocol (SIP) in the prior art, which is not described herein again; the obtaining of the throughput corresponding to the VoIP service is a function provided by an eNodeB specified in the prior art, and is not described herein.
The calculating the total CCE resource occupancy rate in the detection duration comprises: after the detection is determined to start, starting a timer, recording the CCE resources distributed by the current eNodeB in real time, and when the timer reaches the detection duration, the eNodeB accumulating all the recorded CCE resources distributed by the current eNodeB to obtain the used CCE resources in the detection duration; calculating the proportion value of the CCE resources used in the detection duration to the total CCE resources in the eNodeB, wherein the calculation formula is as follows:
wherein, CCENum _ cached is a CCE resource used in the preset detection time, and CCENum _ total is a total CCE resource in the preset detection time; the method for acquiring the CCE resources used by the eNodeB and the total CCE resources in the eNodeB are both the prior art.
Step 102: judging whether the total CCE resource occupancy rate is greater than a preset judgment threshold, if so, executing a step 103; otherwise, the process flow is ended.
Here, the decision threshold is a ratio preset according to actual conditions, and may be preset to 90%, for example.
Step 103: judging whether the total throughput of the VoIP service is greater than a preset switching threshold, if so, executing a step 104; otherwise, the process flow is ended.
Here, the switching threshold is a ratio preset according to actual conditions, and may be preset to 70%, for example.
Step 104: and switching the subsequent processing of the VoIP service which completes the call access process to the selected eNodeB.
The method specifically comprises the following steps: the eNodeB detects whether the eNodeB receives the request message for initiating the VoIP service in real time, if so, the eNodeB detects whether the VoIP service completes the call access process according to the SIP, and if so, the eNodeB switches the subsequent processing of the VoIP service completing the call access process to the selected eNodeB.
Here, the detecting whether the VoIP service completes the call access flow according to the SIP is the prior art, and is not described herein again; the subsequent processing of the VoIP service that completes the call access procedure is processing of a call, and the eNodeB performs operations such as CCE allocation for the call of the VoIP service, which is not described herein for the prior art.
The selected eNodeB is an eNodeB which is selected from an adjacent eNodeB list and has the best channel condition or the most idle resources as the selected eNodeB; the neighboring eNodeB list is a list maintained by the enodebs according to the prior art, in which channel conditions and resource usage of each neighboring eNodeB are recorded.
In addition, after the step 104 is completed, the eNodeB repeats the step 101 according to a preset period; alternatively, after step 104 is completed, the eNodeB performs step 101 according to the operation of the administrator. And when the total CCE resource occupancy rate is not greater than or the VoIP service resource occupancy rate is not greater than the preset switching threshold, ending the processing flow and not switching the VoIP service to the selected eNodeB any more.
The present invention provides a device for balancing load in scheduling eNodeB, as shown in fig. 2, including: a calculation module 21, a scheduling module 23 and a judgment module 22; wherein,
the calculating module 21 is configured to count the total throughput of the VoIP service in the detection duration, calculate the total CCE resource occupancy rate in the detection duration, and send the total throughput and the total CCE resource occupancy rate of the VoIP service to the determining module 22;
the judging module 22 is configured to receive the total throughput and the total CCE resource occupancy of the VoIP service sent by the calculating module 21, and notify the scheduling module 23 that the result is the start of switching if it is determined that the total CCE resource occupancy is greater than the preset decision threshold and that the total throughput of the VoIP service is greater than the preset switching threshold.
And the scheduling module 23 is configured to switch the subsequent processing of the VoIP service that completes the call access procedure to the selected eNodeB when receiving the determination result sent by the determining module 22 to start the handover.
The device further comprises: the control module 24 is configured to store a preset period of time according to an actual situation as the detection time period, for example, the detection time period may be preset to twenty minutes.
The control module 24 is further configured to start a timer after determining that the detection is started, detect whether a received request packet initiating the VoIP service is received in real time, when the request packet initiating the VoIP service is detected, count the throughput corresponding to the VoIP service, send the throughput corresponding to the VoIP service to the calculation module 21, and when the timer reaches the detection duration, notify the calculation module 21 to start counting the total throughput of the VoIP service within the detection duration; correspondingly, the calculating module 21 is further configured to receive and store the throughput corresponding to the single VoIP service sent by the control module 24, and after receiving the total throughput of the VoIP service in the starting statistical detection duration sent by the control module 24, accumulate the currently recorded throughputs corresponding to all the VoIP services to obtain the total throughput of the VoIP service in the preset detection duration.
The control module 24 is specifically configured to determine to start detection according to a preset period of an actual situation, for example, preset detection every two hours, or determine to start detection according to control of a manager.
The control module 24 is further configured to start a timer after determining that the detection is started, notify the calculation module 21 to record the currently allocated CCE resource in real time, and notify the calculation module 21 to start calculating the total CCE resource occupancy rate within the detection duration when the timer reaches the detection duration; correspondingly, the calculating module 21 is further configured to, after receiving the notification sent by the controlling module 24 to record the currently allocated CCE resource in real time, obtain and record the currently allocated CCE resource from the scheduling module 23, and after receiving the notification sent by the controlling module 24 to start calculating the total CCE resource occupancy rate within the detection duration, obtain the total CCE resource from the scheduling module 23, accumulate all the recorded CCE resources allocated by the current eNodeB to obtain a CCE resource used within the detection duration, and calculate a ratio of the used CCE resource to the total CCE resource; the scheduling module 23 is further configured to provide currently allocated CCE resources and total CCE resources to the calculating module 21;
wherein, the calculation formula for calculating the proportion value of the used CCE resources to the total CCE resources is as follows:wherein, CCENum _ allocated is the CCE resource used in the preset detection time, and CCENum _ total is the total CCE resource in the preset detection time.
The judging module 22 is specifically configured to judge whether the total CCE resource occupancy rate is greater than a preset decision threshold, if so, judge whether the total throughput of the VoIP service is greater than a preset switching threshold, otherwise, do not perform the operation.
The determining module 22 is specifically configured to determine whether the total throughput of the VoIP service is greater than a preset switching threshold, if so, send a determination result of starting switching to the scheduling module 23, otherwise, do not perform an operation; correspondingly, the scheduling module 23 is specifically configured to detect whether the control module 24 receives a request message for initiating the VoIP service after receiving a determination result for starting the handover sent by the determining module 22, detect whether the VoIP service completes the call access procedure according to the SIP if the request message is received, and switch the subsequent processing of the VoIP service that completes the call access procedure to the selected eNodeB if the request message is completed.
The scheduling module 23 is specifically configured to select an eNodeB with the best channel condition or the most idle resources from a neighboring eNodeB list stored in the scheduling module itself as the selected eNodeB.
The above apparatus may be installed in an eNodeB as a logical unit.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.