Background technology
In mobile communication system, when the user that network service is used is moved to another cell from a cell
When, due to wireless transmission signal power, service load quantity adjustment, activation Operation and Maintenance, equipment fault etc., and in order to protect
The quality of the continuity and service of communication is demonstrate,proved, the user and the communication link of former cell are transferred in new cell by system,
Such process is called " switching ".Switching, which can be divided into, damages switching and lossless switching, an important ring of lossless switching process
Section is exactly that data are switched, i.e., the switching incipient stage overstocked data for being stored in source base station is sent to target base according to certain rule
It stands, then these data continue to participate in communication of the user equipment (User Equepment, UE) between core net, server,
Realize zero loss of data.Wherein, data switch Packet Data Convergence Protocol (the Packet Data for being mainly concerned with base station
Convergence Protocol, PDCP) layer.
UE passes through LTE base station (evolved NodeB, eNB), Evolved Packet Core (Evolved Packet
Core, EPC) there are many data communication service types between server, and control (Radio corresponding to base station radio link
Link Control, RLC) layer each entity there are three types of pattern:Affirmation mode (Acknowledge Mode, AM), non-acknowledgement
Pattern (Unacknowledged Mode, UM) and transparent mode (TransparentMode, TM).
Wherein, AM patterns are transmitted after requiring sending side to add necessary control protocol expense on high level data, and
Guarantee is transmitted to peer-entities.AM has automatic repeat request (Automatic Repeat-reQuest, ARQ) ability, if
RLC receives the protocol Data Unit (Protocol DataUnit, PDU) of mistake, notes that the RLC of sender retransmits this
PDU.Due to including sequence number information in RLC PDU, the order transfer of data is supported, and there is ARQ retransmission mechanism, therefore
The increase of time delay is brought, so AM is mainly used in non-real-time service.
In the realization of base station, switching evidence is switched in relation to during predominantly:
(1) for downlink data, source base station first to target BS transmission do not receive UE confirm (Acknowledge,
ACK) data cached, then the new data that core net is come is transmitted, last packet is Endmarker, which shows core
Net will not be again to source base station transmission data, initial turn base station;For upstream data, source base station is needed caching not
Continuous UE data packets are transmitted to target BS, similarly last also to need to send a packet Endmarker.
(2) after data reach target BS, data, including old data and new data, target BS inspection are switched for downlink
After measuring the Endmarker inside new data stream, and uplink is switched data and is also required to after waiting for Endmarker to come, at this time DRB
(Data Radio Bearer, Data Radio Bearer) entity just starts subsequent normal data process flow, and processing core net comes
Downlink data and UE on come new data.
Since the type of service carried out in many cases is all AM patterns and the larger and residing network side ring of data volume
Border is more complicated, for example, if it happens network congestion, many a switch routers etc., switch at this time, in data reversed process
It is likely to lose user data package or Endmarker data packets, target BS can be waited until always and be had received at this time
After the Endmarker of downlink, just start subsequent normal data process flow.
As shown in fig.1, under the prior art, the timeout treatment of data reversed process the specific steps are:
Step 100:Source base station is switched a series of downlinks such as AM re-transmissions data, new data, Endmarker to target BS and is fallen
It changes a series of uplinks such as data, and the discontinuous UE data packets of caching, Endmarker and switches data.
Step 101:Target BS receives the uplink that source base station comes and switches data, and starts Endmarker timers, directly
To uplink Endmarker or timer expiry is received, terminate uplink reversed process.
Step 102:Target BS receives the downlink that source base station comes and switches data, and starts Endmarker timers, directly
To downlink Endmarker or timer expiry is received, terminate downlink reversed process.
Step 103:Target BS has received uplink and downlink Endmarker or two timers are all overtime, thinks at this time several
It is completed according to switching, turns to normal flow, otherwise continue waiting for.
It follows that realization method its feature that above-mentioned data are switched is:Target BS has to wait for Endmarker numbers
According to packet to subsequent operation flow is just started later, if Endmarker loses in reversed process, at this moment necessarily cause to count
According to service disconnection and handover failure.For this problem, traditional solution is setting Endmarker overtime timers, fixed
When device setting value fix, once uplink or downlink wait for Endmarker data packet time-out, target BS that will be no longer waiting for, and
Start subsequent normal flow, this method can prevent handover failure, but when the downlink overstock in target BS caching is fallen
It uses that user data is too many instead, so that when sending these data and being more than timer setting value to the time of UE, then inevitably results in user
Loss of data, and timer setting value is too big can cause data reversed process too slowly and handoff delay is long.
Invention content
The embodiment of the present invention provides a kind of method and device for handling data and switching time-out, to solve to deposit in the prior art
Handoff procedure in loss of data or switching time it is long the problem of.
Specific technical solution provided in an embodiment of the present invention is as follows:
A method of processing data switch time-out, including:
The Data Radio Bearer DRB of data switch status, the target base are at least one of target BS
It stands according to the setting period, judging that each is in the corresponding downlinks of DRB of data switch status and switches in data queue respectively is
It is no to receive new data, wherein the target BS often detects that a downlink is switched and is not received by data queue newly
Data, one downlink is switched into the corresponding waiting timer of data queue and carries out the accumulative added-time;
The target BS judges that any one downlink switches the corresponding waiting timer time-out of data queue, and determines
It any one described downlink is switched into the corresponding downlink of data queue switches whole downlinks in caching and switch data and be sent to use
When the equipment UE of family, any one described downlink is switched into data queue corresponding DRB, normal number is switched to by data switch status
According to processing state.
In the present invention, the sizes values dynamic of waiting timer is adjustable, some that can cope with data reversed process are special
Scene efficiently reduces loss of data and shortens switching time.
Preferably, before a downlink switches the corresponding waiting timer time-out of data queue, further comprise:
If the target BS determines that one downlink is switched and receives new data in data queue, by described one
A downlink switches the corresponding waiting timer of data queue and reverts to initial value.
Preferably, the target BS judges that any one downlink switches the corresponding waiting timer time-out of data queue
When, further comprise:
The target BS determine do not complete by any one described downlink switch the corresponding downlink of data queue switch it is slow
Whole downlinks in depositing switch data and are sent to UE, then any one described downlink are switched the corresponding waiting timing of data queue
Device reduces by a fixed value.
Preferably, further comprising:
The DRB of data switch status is at least one of described target BS, the target BS, which determines, appoints
One downlink of meaning is switched when detecting Endmarker data packets in data queue, then any one described downlink is switched data
Corresponding DRB switches to normal data by data switch status and handles state.
Preferably, further comprising:
The DRB of data switch status is at least one of described target BS, the target BS is either
The no corresponding uplinks of DRB in data switch status at one, which are switched in data queue, detects Endmarker data packets,
When determining that one corresponding downlinks of DRB in data switch status switch completion, data are in by one
The DRB of switch status switches to normal data by data switch status and handles state.
Since the up direction of target BS is not provided with timer, or less behavior it is accurate, effectively save base station processing
Burden.
A kind of processing data switch the device of time-out, including:
Judging unit, the Data Radio Bearer for being in data switch status at least one of target BS
DRB judges that each is in the corresponding downlinks of DRB of data switch status and switches in data queue respectively according to the setting period
Whether new data are received, wherein the target BS often detects that a downlink is switched in data queue and is not received by
One downlink is switched the corresponding waiting timer of data queue and carries out the accumulative added-time by new data;
Downlink processing unit, for judging that any one downlink switches the corresponding waiting timer time-out of data queue, and
Determine by any one described downlink switched the corresponding downlink of data queue switch caching in whole downlinks switch data hair
When sending to user equipment (UE), any one described downlink is switched into the corresponding DRB of data queue and is switched to by data switch status
Normal data handles state.
In the present invention, the sizes values dynamic of waiting timer is adjustable, some that can cope with data reversed process are special
Scene efficiently reduces loss of data and shortens switching time.
Preferably, before a downlink switches the corresponding waiting timer time-out of data queue, the judging unit into
One step is used for:
If it is determined that one downlink, which is switched, receives new data in data queue, then one downlink is switched into number
Initial value is reverted to according to the corresponding waiting timer of queue.
Preferably, when judging that any one downlink switches the corresponding waiting timer time-out of data queue, at the downlink
Reason unit is further used for:
It determines not completing and switch any one described downlink under the whole that the corresponding downlink of data queue is switched in caching
Row switches data and is sent to UE, then any one described downlink is switched the corresponding waiting timer of data queue and reduce one admittedly
Definite value.
Preferably, further comprising:
Detection unit, the DRB for being in data switch status at least one of described target BS are determined and are appointed
One downlink of meaning is switched when detecting Endmarker data packets in data queue, then any one described downlink is switched data
Corresponding DRB switches to normal data by data switch status and handles state.
Preferably, further comprising:
Uplink processing unit, the DRB for being in data switch status at least one of described target BS, nothing
By whether at one, the corresponding uplinks of DRB in data switch status switch in data queue and detect Endmarker data
Packet, when determining that one corresponding downlinks of DRB in data switch status switch completion, is in one
The DRB of data switch status switches to normal data by data switch status and handles state.
Since the up direction of target BS is not provided with timer, or less behavior it is accurate, effectively save base station processing
Burden.
Specific implementation mode
In order to solve the problems, such as in handoff procedure existing in the prior art that loss of data or switching time are long, this hair
Bright to provide a kind of method and device for handling data and switching time-out, this method is:For at least one of target BS place
In the DRB of data switch status, target BS judges that each is in the DRB of data switch status respectively according to the setting period
Whether corresponding downlink is switched receives new data in data queue, wherein target BS often detects that a downlink is switched
New data are not received by data queue, a downlink, which is switched the corresponding waiting timer of data queue, carries out accumulative add
When;Target BS judges that any one downlink switches the corresponding waiting timer time-out of data queue, and determination will be any one
When a downlink switches whole downlinks that the corresponding downlink of data queue is switched in caching and switches data and be sent to UE, by any one
Downlink switches the corresponding DRB of data queue and switches to normal data processing state by data switch status.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
As shown in fig.2, switching the detailed process of time-out for processing data in the present invention:
Step 200:It is in the DRB of data switch status at least one of target BS, target BS is according to setting
Whether fixed cycle judges that each is in the corresponding downlinks of DRB of data switch status and switches in data queue and receives respectively
New data, wherein target BS often detects that a downlink is switched and be not received by new data in data queue, will be under this
Row switches the corresponding waiting timer of data queue and carries out the accumulative added-time.
Here downlink, which switches data to include source base station switch AM to target BS, retransmits data, new data and
Endmarker.Judge that each primary corresponding downlink of DRB for being in data switch status is switched in data queue every 1ms
New data whether are received, if a downlink, which switches queue, does not receive new data, which is switched into queue
Corresponding waiting timer adds up added-time 1ms.
Wherein, the timeout threshold of waiting timer setting, can obtain, example based on experience value or by algorithm simulating
Such as, 60ms.
Since waiting timer does not use system clock or subframe (sub-frame, SF), System Frame Number (system
Frame number, SFN) etc. traditional mechanisms, therefore eased convenience.
In addition, when the downlink that target BS is issued in processing source base station switches data, its corresponding address is existed first
AM pointers cache in array.
Step 210:Target BS judges that any one downlink switches the corresponding waiting timer time-out of data queue, and really
It is fixed when the downlink being switched whole downlinks that the corresponding downlink of data queue is switched in caching switching data and be sent to UE, by this
Downlink switches the corresponding DRB of data queue and switches to normal data processing state by data switch status.
Before a downlink switches the corresponding waiting timer time-out of data queue, if target BS determines a downlink
It switches and receives new data in data queue, then the downlink is switched the corresponding waiting timer of data queue reverts to initially
Value.Initial value is generally 0, ensure that normal downlink reversed process, will not lose data because the timer setting time is too short.
When target BS judges that any one downlink switches the corresponding waiting timer time-out of data queue, if target base
It stands and determines not completing the downlink is switched the corresponding downlink of data queue to switch whole downlinks in caching and switch data and be sent to
The downlink is then switched the corresponding waiting timer of data queue and reduces by a fixed value by UE.Thus it is guaranteed that being switched in downlink
Also all downlinks can be switched data when overabundance of data and be sent to UE, without being led because the setting duration of waiting timer is too short
Cause downlink data transmission that cannot complete.
Waiting timer reduces by a fixed value, which obtained by empirical value or simulation algorithm, for example, 10ms.
For example, once a certain waiting timer adds up the added-time to T0, T0 here is preset timeout threshold, then detects AM
Whether had or not in pointer caching array be sent to UE switch data, if so, then by waiting timer reduce one it is solid
Definite value T1, at this moment (T0-T1)<T0, current DRB keep data switch status, continue timing and wait for.Otherwise, i.e. AM pointers
All downlinks are switched into data in caching array and are sent to UE, then current DRB jumps out data switch status, and beginning is subsequent just
Regular data process flow, the upstream data that the downlink data and UE that processing core net is sent are sent.It is also pointed out that when
DRB enters the state of normal processing data, and the downlink data that core net is sent will be initially stored in downlink reception queue, rather than
Downlink switches queue, and two queues are corresponding different types of data, ensure that the priority and correctness of data processing.
Therefore the value of waiting timer can be adjusted dynamically, it is various in data reversed process flexibly to cope with
Situation.
In addition, being in the DRB of data switch status at least one of target BS, target BS determines any one
A downlink is switched when detecting Endmarker data packets in data queue, then the downlink is switched the corresponding DRB of data by data
Switch status switches to normal data processing state.
Therefore, by downlink switch the corresponding DRB of data by data switch status switch to normal data processing state have two
Kind is possible, first, target BS receives Endmarker data packets;Second, target BS judges that any one downlink switches data
Queue corresponding waiting timer time-out, and determine by the downlink switch the corresponding downlink of data queue switch it is complete in caching
Subordinate's row switches data and is sent to UE.
The target BS of the present invention receives uplink and switches number when the downlink for receiving source base station transmission switches data
According to.Target BS is regardless of whether the corresponding uplinks of DRB in data switch status detect in switching data queue at one
Endmarker data packets, when determining that a corresponding downlink of DRB in data switch status switches completion, by one
A DRB in data switch status switches to normal data by data switch status and handles state.
Because uplink reversed process be mainly source base station processing RLC throw come discontinuous UE data packets and
Endmark, take centainly be less than downlink data reversed process, so Endmark need to be only received with downlink and or downlink switch
It process time-out and corresponding downlink is switched into data is sent to UE, you can data reversed process has been completed in determination.Such target
It is accurate that the uplink and downlink of base station switches or less behavior, alleviates the processing load of target BS.
In addition, the waiting timer of the present invention is to be directed to DRB grades, and the UE grade timings applied in unconventional implementation method
Device.The Endmark of uplink and downlink of traditional UE grade timers needs in all DRB of waiting could terminate data and switch shape
State, if the uplink and downlink of a DRB have been received by Endmarker.Then the DRB needs to wait on all DRB terminate
Downlink data reversed process could terminate data switch status, and state is handled into normal data.And the present invention can be directed to often
One DRB.Data switch status can be jumped out as long as completion is switched in confirmation, avoids the blown-out shot of portion of software code.
The particular flow sheet for handling data in the present invention and switching time-out is shown refering to Fig. 3.
Step 301:Source base station switches AM to target BS and retransmits data, new data, Endmarker (downlink) and caching
Discontinuous UE data packets, Endmarker (uplink).
Step 302:Data queue, target BS are switched for a corresponding downlink of DRB in data switch status
According to the setting period, judges that the downlink is switched and whether receive new data in data queue, if not receiving new data,
The downlink is then switched into the corresponding waiting timer of data queue and carries out the accumulative added-time.
Step 303:If waiting timer is overtime, further judges that AM downlinks are switched and whether had or not in caching array
It is sent to the user data of UE, if so, executing step 304, otherwise, executes step 305.
Step 304:Waiting timer reduces by a fixed value 10ms, and continues timing and wait for.
Return to step 302 at this time continue to judge that the downlink is switched new data whether are received in data queue.
Step 305:Data switch completion, and current DRB switches to normal data by data switch status and handles state.
Current DRB starts subsequent normal data process flow, comes on the downlink data and UE that processing core net comes
New data.
When target BS detect downlink switch receive Endmarker in queue when, directly current DRB is switched by data
State switches to normal data processing state.
As shown in fig.4, processing data switch the device of time-out, including:
Judging unit 40, the Data Radio Bearer for being in data switch status at least one of target BS
DRB judges that each is in the corresponding downlinks of DRB of data switch status and switches in data queue respectively according to the setting period
Whether receive new data, wherein target BS often detect a downlink switch be not received by data queue it is new
One downlink is switched the corresponding waiting timer of data queue and carries out the accumulative added-time by data;
Downlink processing unit 41, for judging that any one downlink switches the corresponding waiting timer time-out of data queue,
And determine by any one downlink switched the corresponding downlink of data queue switch caching in whole downlinks switch data send
When to user equipment (UE), any one downlink is switched into data queue corresponding DRB, normal number is switched to by data switch status
According to processing state.
Preferably, before a downlink switches the corresponding waiting timer time-out of data queue, judging unit 40 into one
Step is used for:
If it is determined that a downlink switches and receives new data in data queue, then a downlink is switched into data queue pair
The waiting timer answered reverts to initial value.
Preferably, when judging that any one downlink switches the corresponding waiting timer time-out of data queue, downlink processing list
Member 41 is further used for:
Determine do not complete by any one downlink switch the corresponding downlink of data queue switch caching in whole downlinks fall
It changes data and is sent to UE, then any one downlink is switched into the corresponding waiting timer of data queue and reduce by a fixed value.
Preferably, further comprising:
Detection unit 42, the DRB for being in data switch status at least one of target BS are determined arbitrary
One downlink is switched when detecting Endmarker data packets in data queue, then it is corresponding any one downlink to be switched data
DRB switches to normal data by data switch status and handles state.
Preferably, further comprising:
Uplink processing unit 43, the DRB for being in data switch status at least one of target BS, no matter
Whether at one, the corresponding uplinks of DRB in data switch status switch in data queue and detect Endmarker data packets,
When determining that a corresponding downlink of DRB in data switch status switches completion, shape is switched in data by one
The DRB of state switches to normal data by data switch status and handles state.
In conclusion in the present invention, the sizes values dynamic of waiting timer is adjustable, can cope with data reversed process
Some special screnes, such as Network Packet Loss, and switch data and come quickly too many so that caching distributes and timing not yet
Situations such as device is just overtime.
In addition the up direction of target BS is not provided with timer, or less behavior it is accurate, save base station processing in this way
Burden.
The realization of waiting timer is not received by every into a PDCP system using a global integer variable
Endmarker then adds one, represents 1ms, does not use system clock or SF (sub-frame, subframe), SFN (system
Frame number, System Frame Number) etc. mechanism, eased convenience.
In addition, waiting timer is directed to DRB grades, rather than as some traditional implementation methods use UE grades of timing
Device so that some Deta bearer can stop data reversed process in time after a time out, and the empty of portion of software code is avoided to run.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.