Summary of the invention
For defect of the prior art, the invention provides a kind of acquisition method of terminal disconnection and terminal, base station, make terminal when the Connection Release order not receiving base station, know the situation that goes offline of self quickly, the terminal disconnection erroneous judgement caused due to dispatch delay can be avoided again simultaneously, improve reliability and the promptness of terminal disconnection monitoring.
First aspect, the invention provides a kind of monitoring method of terminal disconnection, comprising:
In terminal and base station reciprocal process, terminal sends dispatch request SR to described base station;
If terminal sends SR continuously number of times to described base station is N, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect;
The response message for described base station sends to this terminal after receiving the SR of M this terminal transmission is authorized in described SR response, M<N.
Preferably, described method also comprises:
If the number of times that terminal sends SR continuously to described base station is less than N, terminal receives the SR response mandate that described base station sends, then terminal continues to send SR to described base station, and restarts the number of times that computing terminal sends SR;
If terminal sends SR continuously number of times to described base station is N again, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect;
If terminal receives the uplink scheduling authorization that described base station sends, then terminal stops sending SR to described base station, will send the number of times clear 0 of SR.
Preferably, described method also comprises:
If the number of times that terminal sends SR continuously to described base station is less than N, terminal receives the SR response mandate that described base station sends, then terminal suspends one section of duration is t
0time period after, continue to send SR to described base station, and restart the number of times that computing terminal sends SR;
If terminal sends SR continuously number of times to described base station is N again, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect.
Preferably, the response message of the not enough or dispatch delay of the base station resource issued to terminal for described base station is authorized in described SR response.
Preferably, described N is the multiple of M.
Second aspect, the present invention also provides a kind of method sending response and authorize, and comprising:
In terminal and base station reciprocal process, base station receives the dispatch request SR that described terminal sends, if base station receives the SR of M described terminal transmission, then base station sends SR response mandate to this terminal;
As long as base station receives a SR from described terminal, if base station can send uplink scheduling authorization to terminal, then preferentially send uplink scheduling authorization, and will SR the number clear 0 of described terminal transmission be received.
Preferably, described method also comprises:
The SR of M described terminal transmission is received in base station, and to this terminal send SR response authorize after, if base station receives the SR that described terminal sends again, then restart to calculate and receive the number of times that this terminal sends SR, when again receiving the SR of M described terminal transmission, base station sends SR response to this terminal and authorizes.
Preferably, when sending SR response mandate in base station to described terminal, described SR response is authorized and is adopted the special C-RNTI scrambling of user.
The third aspect, the invention provides a kind of terminal, comprising:
Transmitting element, in terminal and base station reciprocal process, sends dispatch request SR to described base station;
Counting unit, for adding up the number of times of transmitting element to described base station transmission SR;
Receiving element, the SR response sent for receiving described base station is authorized;
Judging unit, when the number of times for judging to add up in described counting unit is N, whether described receiving element receives the SR response that described base station sends and authorizes;
Determining unit, during for determining that at described judging unit described receiving element does not receive the SR response mandate of described base station transmission, determines that this terminal and described base station disconnect.
Fourth aspect, the invention provides a kind of base station, comprising:
Receiving element, in terminal and base station reciprocal process, receives the dispatch request SR that described terminal sends;
Counting unit, receives the number of times of the SR that described terminal sends for adding up described receiving element;
Judging unit, for judging whether the number of times that described counting unit is added up is M;
Transmitting element, during for determining that the number of times that described counting unit is added up is M at described judging unit, sending SR response to described terminal and authorizing.
As shown from the above technical solution, the acquisition method of terminal disconnection of the present invention, dispatch request SR is sent to base station by terminal, and regulation base station must send SR response to described terminal and authorize after the SR receiving M terminal transmission, if after terminal sends N dispatch request to base station continuously, N>M, still do not receive the SR response that base station sends and authorize, then described terminal just can be known and self goes offline.Compared to prior art, the present invention can arrange less N value, by judging whether that receiving SR response mandate knows whether self goes offline.The method of the invention can know self the situation that goes offline quickly, can avoid again the terminal disconnection erroneous judgement caused due to dispatch delay simultaneously.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 shows the flow chart of the monitoring method of the terminal disconnection that the embodiment of the present invention one provides, and as shown in Figure 1, the monitoring method of the terminal disconnection of the present embodiment is as described below.
Step 101: in terminal and base station reciprocal process, terminal sends dispatch request SR to described base station.
Step 102: if terminal sends SR continuously number of times to described base station is N, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect;
The response message for described base station sends to this terminal after receiving the SR of M this terminal transmission is authorized in described SR response, M<N.
In a preferred embodiment of the monitoring method gone offline of the present invention, the monitoring method of described terminal disconnection also comprises: if the number of times that terminal sends SR to described base station is less than N, terminal receives the SR response mandate that described base station sends, then terminal continues to send SR to described base station, and restarts the number of times that computing terminal sends SR;
If terminal sends SR continuously number of times to described base station is N again, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect;
If terminal receives the uplink scheduling authorization that described base station sends, then terminal stops sending SR to described base station, will send the number of times clear 0 of SR.
In another preferred embodiment of the monitoring method of terminal disconnection of the present invention, the monitoring method of described terminal disconnection also comprises:
If the number of times that terminal sends SR continuously to described base station is less than N, terminal receives the SR response mandate that described base station sends, then terminal suspends one section of duration is t
0time period after, continue to send SR to described base station, and restart the number of times that computing terminal sends SR;
If terminal sends SR continuously number of times to described base station is N again, terminal does not receive the SR response mandate that described base station sends, then determine that this terminal and described base station disconnect.
Do not reduce terminal judges go offline speed prerequisite under, in order to reduce further SR respond mandate issue frequency, saving resource expense.Can report often taking turns SR--SR response is inserted the SR of a period of time between authorizing and is reported intermittent phase t
0.If i.e. terminal to report SR, have received corresponding SR authorization response, then have reason to think that terminal is also online, and base station knows and have recorded the situation that terminal has uplink traffic transmission demand.So a SR can be started report intermittent timer, interval a period of time, if also do not receive uplink scheduling authorization during this, more then continue to report SR.Because base station side is also aware of terminal uplink transmission demand, so also dispatch delay can not be caused because SR reports interval.
In the embodiment and two preferred embodiments of preceding method, the response message of the not enough or dispatch delay of the base station resource issued to terminal for described base station is authorized in described SR response.
In the embodiment and two preferred embodiments of preceding method, described N is preferably the multiple of M.
M time just response is on the one hand in order to reduce the expense that SR response is authorized for base station selection, and another aspect avoids the inspection of a SR void namely to trigger a secondary response.Considering that SR response is authorized again may error of transmission cause terminal to receive, so preferably N is the multiple of M, is equivalent to terminal and does not all receive the N/M of base station response, just think and go offline.
Thus, the monitoring method of the present embodiment and the terminal disconnection described in preferred embodiment thereof, utilize and SR Baos the detection feedback mechanism of – SR authorization response, the SR maximum wait response times N of setting terminal and base station must issue condition that SR response authorizes (must issue SR response mandate after receiving the SR request that M a certain terminal send).Therefore, when terminal has uplink service to arrive, SR dispatch request is sent continuously to base station.If terminal have sent N SR (N>M) continuously to base station, the SR response also do not received from base station is authorized, then think and self go offline.The monitoring method of the terminal disconnection described in the present embodiment can by arranging less N value, and Timeliness coverage self goes offline situation.
Certainly, during terminal sends N SR continuously, terminal receives the uplink scheduling authorization from base station, then terminal starts transfer of data, and nature can judge self not go offline.
The flow chart of the method that the transmission response that Fig. 2 shows the embodiment of the present invention two to be provided is authorized, as shown in Figure 2, the method that the transmission response of the present embodiment is authorized is as described below.
Step 201: in terminal and base station reciprocal process, base station receives the dispatch request SR that described terminal sends.
Step 202: if base station receives the SR of M described terminal transmission, then base station sends SR response mandate to this terminal; As long as base station receives a SR from described terminal, if base station can send uplink scheduling authorization to terminal, then preferentially send uplink scheduling authorization, and will SR the number clear 0 of described terminal transmission be received.
Send in a preferred embodiment of response authorization method of the present invention, the described method sending response mandate also comprises:
The SR of M described terminal transmission is received in base station, and to this terminal send SR response authorize after, if base station receives the SR that described terminal sends again, then restart to calculate and receive the number of times that this terminal sends SR, when again receiving the SR of M described terminal transmission, base station sends SR response to this terminal and authorizes.
Send in another preferred embodiment of response authorization method of the present invention, the described method sending response mandate also comprises:
When sending SR response mandate in base station to described terminal, described SR response is authorized and is adopted the special C-RNTI scrambling of user.
Generally, base station side normally should make uplink scheduling authorization to the SR dispatch request of terminal, if but cause present stage cannot carry out scheduling authorization to this terminal immediately due to dispatch delay or inadequate resource, if then judge to receive uplink scheduling request SRM time from certain terminal continuously, then must issue SR response mandate at once.This SR responds to authorize and adopts the special C-RNTI scrambling of user, and namely different user can be distinguished this SR and respond whether mandate is oneself.Effectively can distinguish the SR request not response caused due to inadequate resource or terminal disconnection like this, so SR response waits for that times N can be arranged relatively littlely detect to improve terminal the speed gone offline.Also can avoid from another point of view just in case really because resource anxiety causes not dispatching for a long time a certain terminal, self goes offline to cause this end-error to be thought simultaneously.
Thus, the method that the present embodiment and the response of the transmission described in preferred embodiment thereof are authorized, arrange independent SR response to authorize, it is only respond for the up SR dispatch request of terminal that this SR responds the object of authorizing, object informs that terminal base station side have received the SR request of terminal, knows that terminal has service needed uplink, and due to resource-constrained, temporarily really cannot carry out uplink scheduling to terminal, need to wait for.Such terminal just can be known and self do not go offline.Conversely, if terminal goes offline, then described base station just can not receive the SR request that terminal sends over, therefore also can not send SR response and license to terminal, when terminal is in predetermined wait times N is secondary, all do not receive the SR response mandate that base station sends, then terminal can judge that self goes offline in time.
The present invention makes terminal to know by the method that monitoring method and the transmission response of terminal disconnection are authorized, and whether self goes offline.Dispatch request SR is sent to base station by terminal, and regulation base station must send SR response to described terminal and authorize after the SR receiving M terminal transmission, if after terminal sends N dispatch request to base station continuously, N>M, still do not receive the SR response that base station sends to authorize, then described terminal just can be known and self goes offline.Compared to prior art, the present invention can arrange less N value, by judging whether that receiving SR response mandate knows whether self goes offline.The method of the invention can know self the situation that goes offline quickly, can avoid again the terminal disconnection erroneous judgement caused due to dispatch delay simultaneously.
Fig. 3 shows the structural representation of a kind of terminal that the embodiment of the present invention three provides, and as shown in Figure 3, terminal described in the present embodiment comprises transmitting element 31, counting unit 32, receiving element 33, judging unit 34 and determining unit 35;
Transmitting element 31, in terminal and base station reciprocal process, sends dispatch request SR to described base station;
Counting unit 32, for adding up the number of times of transmitting element to described base station transmission SR;
Receiving element 33, the SR response sent for receiving described base station is authorized;
Judging unit 34, for judging whether described receiving element 33 receives the SR response mandate of described base station transmission when the number of times of described counting unit 32 statistics is N;
Determining unit 35, during for determining that at described judging unit 34 described receiving element 33 does not receive the SR response mandate of described base station transmission, determines that this terminal and described base station disconnect.
Preferably, described judging unit 34, time also for judging that the number of times added up in described counting unit is less than N, whether described receiving element receives the SR response mandate that described base station sends;
Described transmitting element 31, also, continues to send SR to described base station when the number of times of described counting unit 32 statistics is less than N and described receiving element 33 receives the SR response mandate of described base station transmission for determining at described judging unit 34;
Described counting unit 32, also for determining that at described judging unit 34 number of times added up when described counting unit 32 is less than N and described receiving element 33 receives the SR response mandate that described base station sends, when described transmitting element 31 continues to send SR to described base station, restart to add up transmitting element 31 sends number of times from SR to described base station.
Preferably, described terminal also comprises:
Interval timing unit 36, for determining that at described judging unit 34 number of times added up when described counting unit 32 is less than N and described receiving element 33 receives after SR response that described base station sends authorizes, starts from 0 timing, and from timing to t
0during second, send prompting message to transmitting element 31;
Described transmitting element 31, also for when receiving the prompting message that interval timing unit 36 sends, continues to send SR to described base station;
Described counting unit 32, time also for receiving prompting message that interval timing unit 36 sends at described transmitting element 31, when continuing to send SR to described base station, restarts to add up transmitting element sends number of times from SR to described base station.
Terminal described in the embodiment of the present invention three, may be used for performing method described in embodiment one, its know-why and to realize effect similar, does not repeat them here.
Fig. 4 shows the structural representation of a kind of base station that the embodiment of the present invention four provides, and as shown in Figure 4, base station described in the present embodiment comprises receiving element 41, counting unit 42, judging unit 43 and transmitting element 44;
Receiving element 41, in terminal and base station reciprocal process, receives the dispatch request SR that described terminal sends;
Counting unit 42, receives the number of times of the SR that described terminal sends for adding up described receiving element 41;
Judging unit 43, for judging whether the number of times that described counting unit 42 is added up is M;
Transmitting element 44, for when described judging unit 43 determines that the number of times that described counting unit 42 is added up is M, sends SR response to described terminal and authorizes.
Preferably, described base station also comprises:
Control unit 45, after sending SR response mandate at described transmitting element 44 to described terminal, and when receiving element 41 receives the SR of described terminal transmission again, sends and puts 1 signal to counting unit;
Described counting unit 42, also for receive that control unit 45 sends put 1 signal after, from 1, again add up described receiving element 41 receive the number of times of SR that described terminal sends.
Base station described in the embodiment of the present invention four, may be used for performing method described in embodiment two, its know-why and to realize effect similar, does not repeat them here.
Above embodiment only for illustration of technical scheme of the present invention, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.