Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and an apparatus for avoiding a measurement opportunity and a data transmission opportunity from colliding, which can ensure that RAT measurement of an LTE system and data transmission of a current system are both performed normally.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for avoiding conflict between measurement opportunity and data transmission opportunity, which comprises the following steps:
performing conflict arbitration on the boundary of the transmission time interval TTI of each data transmission, and outputting an arbitration result;
and giving a conflict resolution mode according to an arbitration result: measurement deferral or data transmission deferral.
In the above scheme, the performing collision blanking is: and judging whether the DMO configuration time of the special measurement scene conflicts with the data transmission time, and generating an arbitration result by acquiring DMO configuration information, TTI (transmission time interval) and time slot configuration information related to data transmission and data cache information.
In the above scheme, the determining whether the special measurement scenario DMO configuration time conflicts with the data transmission time is as follows:
if the time slot configured by the DMO is completely different from the time slot configured by the data transmission, judging that no conflict exists;
and if the time slot configured by the DMO is partially or completely the same as the time slot configured by the data transmission, further judging according to the existence of the data to be transmitted.
In the above scheme, the further determination according to the existence of the data to be transmitted is as follows:
if the cached data is to be transmitted in the TTI of the data transmission and the overlapped part exists between the TTI and the DMO measurement occasion, judging that a conflict exists;
if the cached data are ready to be transmitted in the TTI of the data transmission and the overlapped part does not exist between the TTI and the DMO measurement time, judging that no conflict exists;
and if no buffered data is ready to be transmitted in the TTI of the data transmission, judging that no conflict exists.
In the above scheme, the measurement yielding is as follows: only data transmission is performed without measurement; the data transmission back-off is as follows: only measurements are made and no data transmission is performed.
The invention also provides a device for avoiding the conflict between the measurement opportunity and the data transmission opportunity, which comprises a conflict arbitration module and a conflict resolution module; wherein,
the conflict arbitration module is used for carrying out conflict arbitration on the boundary of each data transmission TTI and outputting an arbitration result to the conflict resolution module;
the conflict resolution module is used for giving a conflict resolution mode according to the arbitration result output by the conflict arbitration module: measurement deferral or data transmission deferral.
In the above scheme, the conflict arbitration module performs conflict blanking as follows: the conflict arbitration module judges whether the DMO configuration time conflicts with the data transmission time, generates an arbitration result by acquiring DMO configuration information, TTI (transmission time interval) and time slot configuration information related to data transmission and data cache information, and outputs the arbitration result to the conflict resolution module.
In the above scheme, the determining, by the conflict arbitration module, whether a conflict exists between the DMO configuration time and the data transmission time is as follows:
if the time slot configured by the DMO is completely different from the time slot configured by the data transmission, the conflict arbitration module judges that no conflict exists;
if the time slot configured by the DMO is partially or completely the same as the time slot configured by the data transmission, the conflict arbitration module further judges whether the data to be transmitted exists or not.
In the above scheme, the conflict arbitration module further determines whether there is data to be transmitted:
if the cached data is ready to be transmitted in the TTI of the data transmission and the overlapped part exists between the TTI and the DMO measurement time, the conflict arbitration module judges that a conflict exists;
if the cached data is ready to be transmitted in the TTI of the data transmission and the overlapped part does not exist between the TTI and the DMO measurement time, the conflict arbitration module judges that no conflict exists;
and if no cached data is ready to be transmitted in the TTI of the data transmission, the conflict arbitration module judges that no conflict exists.
According to the method and the device for avoiding the conflict between the measurement opportunity and the data transmission opportunity, the conflict arbitration module carries out conflict arbitration at the boundary of each data transmission TTI and outputs an arbitration result to the conflict resolution module; for the case of no conflict, the conflict resolution module does not need to perform additional intervention; for the case of conflict, the conflict resolution module will give the conflict resolution: measurement deferral or data transmission deferral. Therefore, the invention solves the problem of how to ensure normal RAT measurement and data transmission when the measurement time configured by the DMO conflicts with the data transmission time.
Detailed Description
The basic idea of the invention is as follows: performing conflict arbitration at the boundary of each data transmission TTI, and for the case of no conflict, not needing to perform additional conflict resolution intervention; determining measurement back-off or data transmission back-off for the case of collision; therefore, when the measurement time configured by the DMO conflicts with the time of data transmission, the RAT measurement of the LTE system and the data transmission of the current system can be ensured to be normally carried out.
Fig. 1 is a schematic diagram of a structure of an apparatus for avoiding a collision between a measurement opportunity and a data transmission opportunity according to the present invention, as shown in fig. 1, the apparatus includes: a conflict arbitration module 11 and a conflict resolution module 12; wherein,
a conflict arbitration module 11, configured to perform conflict arbitration at the boundary of each data transmission TTI, and output an arbitration result to the conflict resolution module 12;
specifically, the conflict arbitration is as follows: judging whether the DMO configuration time conflicts with the data transmission time, generating an arbitration result by acquiring DMO configuration information, TTI (transmission time interval) and time slot configuration information related to data transmission and data cache information, and outputting the arbitration result to a conflict solution module 12;
and the conflict resolution module 12 is used for giving a conflict resolution mode according to the arbitration result: measuring a back-off or a data transmission back-off;
that is, the conflict resolution module 12 coordinates RAT measurement operation and data transmission operation of the LTE system according to the arbitration result; the measurement yielding refers to that the measurement yielding is in data transmission, and only the data transmission is carried out without measurement; data transmission yielding refers to data transmission yielding in measurement, and only measurement is carried out without data transmission.
At the boundary of each data transmission TTI, the conflict arbitration module 11 performs conflict arbitration and outputs the arbitration result to the conflict resolution module 12. For the case of no conflict, the conflict resolution module 12 does not need to perform additional conflict resolution intervention. For the case of conflict, the conflict resolution module 12 gives a conflict resolution mode according to the arbitration result: measurement deferral or data transmission deferral.
Fig. 2 is a schematic flow chart illustrating an implementation of the method for avoiding a collision between a measurement opportunity and a data transmission opportunity according to the present invention, as shown in fig. 2, the method includes:
step 201: performing conflict arbitration at the boundary of each data transmission TTI, and outputting an arbitration result;
here, the collision blanking is: and judging whether the DMO configuration time conflicts with the data transmission time by a conflict arbitration module, generating an arbitration result by acquiring DMO configuration information, TTI (transmission time interval) and time slot configuration information related to data transmission and data cache information, and outputting the arbitration result to a conflict resolution module.
Specifically, the criterion for determining whether the DMO configuration time conflicts with the data transmission configuration time is:
(1) if the time slot configured by the DMO is completely different from the time slot configured by the data transmission, no conflict is considered;
(2) if the time slot of the DMO configuration is partially or completely the same as the time slot of the data transmission configuration:
(2.1) if buffered data is ready to be transmitted in the next data transmission TTI and a part of the TTI is overlapped with the DMO measurement occasion, determining that a conflict exists;
(2.2) if there is buffered data to be transmitted in the next data transmission TTI and there is no overlapping part of the TTI and the DMO measurement occasion, then there is no conflict;
(2.3) if no buffered data is pending for transmission in the next data transmission TTI, then no collision is considered.
Step 202: and giving a conflict resolution mode according to an arbitration result: measurement deferral or data transmission deferral.
Specifically, the conflict resolution module gives a conflict resolution mode according to the arbitration result as follows:
firstly, a conflict resolution module generates a random number P, and the value range is [0,1 ]; comparing the random number P with a preset threshold value P _ thres;
here, the value range of P _ thres is also [0,1], for example, P _ thres may be 0.1; if P is less than P _ thres, adopting a data transmission deferral mode, otherwise adopting a measurement deferral mode; the value of P _ thres can be determined according to the quality of service (QoS) of data transmission, and the higher the QoS of data transmission, the smaller the P _ thres.
In addition, in order to prevent the measurement back-off or the data transmission back-off from occurring continuously for a long time and affecting the measurement function or the data transmission function, two counters Cm and Cd can be further arranged and used for recording the continuous occurrence frequency of the measurement back-off and the continuous occurrence frequency of the data transmission back-off respectively, and the initial values of Cm and Cd are both set to be 0. When one measurement yield occurs, adding 1 to Cm; then, adding 1 to Cm every time measurement yielding continuously occurs; when data transmission yielding occurs, Cm is reset to 0; when the value of Cm is greater than or equal to the predetermined continuous back-off threshold Cm _ thres, the next back-off must be the data transmission back-off, and the value of Cm is reset to 0. Similarly, when data transmission yielding occurs once, adding 1 to Cd; then, adding 1 to Cd every time data transmission yielding continuously occurs; when one measurement back-off occurs, Cd is reset to 0; when the value of Cd is greater than or equal to the predetermined continuous back-off threshold Cd _ thres, the next back-off must be the measured back-off, and the value of Cd is reset to 0.
Fig. 3 is a schematic flow chart of a functional implementation of a conflict arbitration module according to an embodiment of the present invention, and as shown in fig. 3, the functional implementation of the conflict arbitration module in the embodiment includes the following steps:
step 301: and collecting DMO configuration information, data transmission configuration information and data buffering information at the data transmission TTI boundary.
Step 302: judging whether the time slot information of the DMO configuration is completely different from the time slot information of the data transmission configuration, if so, executing a step 305; otherwise, step 303 is performed.
Step 303: judging whether data to be transmitted does not exist, if not, executing step 305; otherwise, step 304 is performed.
Step 304: judging whether the TTI of the data transmission and the time sequence pattern in the DMO configuration have an overlapped part, if not, executing step 305; otherwise, step 306 is performed.
Step 305: the arbitration result is set to conflict free, and step 307 is executed.
Step 306: the arbitration result is set to conflict, and step 307 is executed.
Step 307: and outputting an arbitration result.
Fig. 4 is a schematic flow chart of the functional implementation of the conflict resolution module according to the embodiment of the present invention, and as shown in fig. 4, the functional implementation of the conflict resolution module in the embodiment includes the following steps:
step 401-402: obtaining the arbitration result of conflict, if the arbitration result is not conflict, executing step 413; otherwise, step 403 is performed.
Step 403-404: generating a random number P of [0,1], judging whether P is smaller than a preset threshold value P _ thres, if so, executing step 405; otherwise, step 408 is performed.
Step 405: the continuous measurement back-off count value Cm is set to 0, and the continuous data transmission back-off count value Cd is incremented by 1, and step 406 is executed.
Step 406: judging whether Cd is greater than or equal to the maximum continuous data transmission deferral time Cd _ thres, if so, executing step 407; otherwise, step 412 is performed.
Step 407: the continuous data transmission back-off count value Cd is set to 0, the continuous measurement back-off count value Cm is incremented by 1, and step 411 is executed.
Step 408: the continuous data transmission back-off count value Cd is set to 0, the continuous measurement back-off count value Cm is incremented by 1, and step 409 is executed.
Step 409: judging whether Cm is more than or equal to the maximum continuous measurement yielding times Cm _ thres, if so, executing step 410; otherwise, step 411 is executed.
Step 410: the continuous measurement back-off count value Cm is set to 0, and the continuous data transmission back-off count value Cd is incremented by 1, and step 412 is executed.
Step 411: perform measurement back-off, suspend measurement, start data transmission, perform step 413.
Step 412: perform a data transfer back-off, suspend data transfer, initiate measurement, go to step 413.
Step 413: and (6) ending.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.