Summary of the invention
The present invention provides data transmission method and the PDCP entity of a kind of PDCP entity, for solving the transmission of PDCP entity
Caching is taken rapidly and causes PDCP protocol processes abnormal, the technical problem that data transmission rate is relatively low.
The data transmission method of a kind of PDCP entity that the embodiment of the present invention provides, including:
PDCP PDCP entity determines that the occupancy sending caching of described PDCP entity is more than or equal to accounting for
After consumption threshold value, detect the data transmission quality between described PDCP entity and RLC entity;Described transmission caching is used for storing institute
State PDCP entity and have transmitted to described RLC entity, but not yet receive described RLC entity and return the PDCP confirming message
PDU;Described PDCP PDU includes and described PDCP SDU corresponding for PDCP PDU and the identification information of described PDCP SDU;
Described PDCP entity determines that described data transmission quality, more than or equal to after first threshold, sends to described RLC entity
Inquiry request message;Described inquiry request message is for obtaining the data volume that described RLC entity is able to receive that;
The data volume that described PDCP entity is able to receive that according to described RLC entity, at least removes described transmission in caching
PDCP PDU, and the data volume that the data volume of the PDCP PDU removed is able to receive that less than or equal to described RLC entity;
Identification information in the PDCP PDU that described PDCP entity will be eliminated is distributed to the reception of described PDCP entity and is delayed
PDCP SDU to be sent in depositing, obtains and PDCP PDU corresponding for PDCP SDU to be sent be sent to described RLC entity.
Optionally, the data volume that described PDCP entity is able to receive that according to described RLC entity, at least remove described transmission and delay
PDCP PDU in depositing, including:
In the reception caching of data volume that described PDCP entity is able to receive that according to described RLC entity and described PDCP entity
The data volume of PDCP SDU to be sent, determines that described PDCP entity sends the target data amount of data, institute to described RLC entity
State the data volume that target data amount is able to receive that less than or equal to described RLC entity;
Described PDCP entity according to described target data amount, at least removes the described PDCP PDU sent in caching, and clearly
The data volume of the PDCP PDU removed is less than or equal to described target data amount.
Optionally, described reception caching also includes the PDCP SDU sent;
Described PDCP entity at least removes the described PDCP PDU sent in caching, including:
Described PDCP entity is removed in the described PDCP PDU sent in caching and described reception caching and is eliminated
The PDCP SDU that what PDCP PDU was corresponding sent.
Optionally, the method also includes:
When described processing module determines that described data transmission quality less than first threshold, then suspends and sends out to described RLC entity
Send described PDCP PDU, until after receiving the first confirmation message that described RLC entity returns, at least removing described transmission and cache
In confirm a PDCP PDU corresponding to message with described first;
Identification information in the PDCP PDU that described PDCP entity will be eliminated is distributed to described reception in caching and is treated
The PDCP SDU sent, obtains and PDCP PDU corresponding for PDCP SDU to be sent, and is sent to described RLC entity.
Optionally, described PDCP entity detects the data transmission quality between described PDCP entity and RLC entity, including:
Described PDCP entity is according to setting in the time period data package size and the packet that the air interface received sends
Quantity, determine the data transmission quality between described PDCP entity and described RLC entity.
Present invention also offers a kind of PDCP entity, including:
Detection module, after determining that the occupancy sending caching of described PDCP entity is more than or equal to occupancy threshold value,
Detect the data transmission quality between described PDCP entity and RLC entity;Described transmission caching is used for storing described PDCP entity
Have transmitted to described RLC entity, but not yet receive described RLC entity and return the PDCP PDU confirming message;Described PDCP
PDU includes and described PDCP SDU corresponding for PDCP PDU and the identification information of described PDCP SDU;
Processing module, is used for determining that whether described data transmission quality is more than or equal to first threshold;
In described processing module, sending module, for determining that described data transmission quality is more than or equal to first threshold, to institute
State RLC entity and send inquiry request message;Described inquiry request message is for obtaining the data that described RLC entity is able to receive that
Amount;
Remove module, for the data volume being able to receive that according to described RLC entity, at least remove described transmission in caching
PDCP PDU, and the data volume that the data volume of the PDCP PDU removed is able to receive that less than or equal to described RLC entity;
Described processing module is additionally operable to, and the identification information in the PDCP PDU that will be eliminated distributes to described PDCP entity
Receive PDCP SDU to be sent in caching, obtain and PDCP PDU corresponding for PDCP SDU to be sent by described transmission
Module is sent to described RLC entity.
Optionally, described removing module specifically for:
The PDCP that the data volume being able to receive that according to described RLC entity is to be sent with in the reception caching of described PDCP entity
The data volume of SDU, determines that described PDCP entity sends the target data amount of data, described target data amount to described RLC entity
The data volume being able to receive that less than or equal to described RLC entity;
According to described target data amount, at least remove the described PDCP PDU sent in caching, and the PDCP PDU removed
Data volume less than or equal to described target data amount.
Optionally, described removing module specifically for: remove described send caching in PDCP PDU and described reception
The PDCP SDU sent corresponding with the PDCP PDU being eliminated in caching.
Optionally, described removing module is additionally operable to: when described processing module determines that described data transmission quality is less than first
Threshold value, then suspend and send described PDCP PDU to described RLC entity, until receiving the first confirmation that described RLC entity returns
After message, at least remove described transmission in caching and confirm, with described first, the PDCP PDU that message is corresponding;
Described processing module is additionally operable to: the identification information of the PDCP PDU being eliminated is distributed to described reception and caches
In PDCP SDU to be sent, obtain and PDCP PDU corresponding for PDCP SDU to be sent, and be sent to by sending module
Described RLC entity.
Optionally, described detection module specifically for: according to setting in the time period number that the air interface received sends
According to bag size and the quantity of packet, determine the data transmission quality between described PDCP entity and described RLC entity.
In the embodiment of the present invention, PDCP entity determines that the occupancy sending caching of PDCP entity is more than or equal to occupancy threshold
After value, detect the data transmission quality between described PDCP entity and described RLC entity, and determining that data transmission quality is more than
After first threshold, by sending inquiry request message to RLC entity, get the data volume that RLC entity is able to receive that, and
The data volume being able to receive that according to described RLC entity, removes the described PDCP PDU sent in caching;Subsequently, PDCP entity will
The identification information of the PDCP PDU being eliminated distributes to PDCP SDU to be sent in the reception caching of described PDCP entity, obtains
Corresponding PDCP PDU is also sent to RLC entity.The embodiment of the present invention is directed to the transmission caching of PDCP entity in prior art
The problem taken rapidly, it is provided that a kind of effective data transmission method, PDCP entity is real with RLC by detection PDCP entity
Data transmission quality between body, and in the case of data transmission quality is preferable, the data being able to receive that according to RLC entity
Amount, sends PDCP PDU to be sent to RLC entity, thus the serial number avoided in PDCP entity overturns in a large number, and cause
PDCP protocol processes is abnormal, the technical problem that data transmission rate is relatively low.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made into
One step ground describes in detail, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
All other embodiments, broadly fall into the scope of protection of the invention.
Wireless data transmission is carried out by air interface, for realizing between air interface and terminal between base station and terminal
Data exchange, and need the packet sent by air interface base station to terminal to carry out series of protocols in user face protocol stack
Process, including PDCP protocol processes.The one that the embodiment of the present invention is based on PDCP agreement process and proposes
Data transmission method.
Fig. 1 exemplarily gives the stream that the data transmission method of a kind of PDCP entity that the embodiment of the present invention provides is corresponding
Journey schematic diagram, this flow and method can be performed by the PDCP entity in the PDCP protocol layer of terminal.As it is shown in figure 1, the present invention is real
The data transmission method executing a kind of PDCP entity that example provides comprises the following steps:
Step 101, PDCP entity determines that the occupancy sending caching of described PDCP entity is more than or equal to occupancy threshold value
After, detect the data transmission quality between described PDCP entity and described RLC entity;Described transmission caching is used for storing described
PDCP entity has transmitted to described RLC entity, but not yet receives described RLC entity and return the PDCP PDU confirming message;
Described PDCP PDU includes and described PDCP SDU corresponding for PDCP PDU and the identification information of described PDCP SDU;
Step 102, after PDCP entity determines that described data transmission quality is more than or equal to first threshold, to described RLC entity
Send inquiry request message;Described inquiry request message is for obtaining the data volume that described RLC entity is able to receive that;
Step 103, the data volume that PDCP entity is able to receive that according to described RLC entity, at least remove described transmission and cache
In PDCP PDU, and the data volume that the data volume of the PDCP PDU removed is able to receive that less than or equal to described RLC entity;
Step 104, the identification information of the PDCP PDU being eliminated is distributed to the reception of described PDCP entity by PDCP entity
PDCP SDU to be sent in caching, obtains corresponding PDCP PDU and is sent to described RLC entity.
The embodiment of the present invention is directed to sending of PDCP entity in prior art and caches the problem taken rapidly, it is provided that
A kind of effective data transmission method, PDCP entity by the data transmission quality between detection PDCP entity and RLC entity, and
After determining that data transmission quality is more than or equal to first threshold, the data volume being able to receive that according to RLC entity, send out to RLC entity
Send PDCP PDU to be sent, thus the serial number avoided in PDCP entity overturns in a large number, and cause PDCP protocol processes not
Normally, the technical problem that data transmission rate is relatively low.
In the embodiment of the present invention, the identification information of described PDCP PDU can be PDCP entity be described PDCP SDU distribution
Serial number.PDCP entity, when RLC entity transmitting data, needs for PDCP SDU assigned sequence number, subsequently through performing head
Compression, integrity protection and the operation such as encryption, renewal state variable, generate corresponding PDU so that being sent to RLC entity.
In the embodiment of the present invention, occupancy threshold value rule of thumb can be arranged by those skilled in the art, such as, if sending
The data volume that buffering can store is M PDCP PDU, then occupancy threshold value can be M-1 PDCP PDU.In step 101,
PDCP entity can monitor the occupancy sending caching of described PDCP entity in real time, when determining that occupancy is more than or equal to occupancy
After threshold value, can use the data transmission method that the embodiment of the present invention provides, in practical situation, PDCP entity determines that occupancy is equal to
After occupancy threshold value (memory space of the most surplus next PDCP PDU), then can use the number that the embodiment of the present invention provides immediately
According to transmission method, taken completely to avoid sending caching.
Specifically, in a step 101, PDCP entity can detect between PDCP entity and RLC entity in several ways
Data transmission quality, such as, PDCP entity can be according to setting in the time period what the base station received be sent by air interface
The data package size of SDU and the quantity of packet, determine the data transmission quality between described PDCP entity and RLC entity;If
The packet of the SDU that the air interface received in setting the time period sends is less, the quantity of packet is relatively big, and PDCP is described
Entity needs to the quantity of the packet of RLC entity transmission is more and packet is less, now, it may be determined that PDCP entity and RLC
The value of the data transmission quality between entity is compared with big (i.e. data transmission quality is preferable), otherwise (such as: connect in setting the time period
The packet of the SDU that the air interface received sends quantity relatively big, packet is less), then the value of data transmission quality is less
(i.e. data transmission quality is poor).Wherein, the setting time period refers to a setting time period before current time, sets the time
The length of section rule of thumb can be arranged by those skilled in the art.
Give an example, PDCP entity determine PDCP entity send caching occupancy more than or equal to occupancy threshold value time
Carving is 10:00, and the most now PDCP entity can receive according in 9:50-10:00 (setting the time period as 10 minutes) this time period
The size of the packet arrived and the quantity of packet, determine the data transmission quality between PDCP entity and RLC entity.
In the embodiment of the present invention, after PDCP entity detects data transmission quality, can be according to different data transmission qualities
Take different data transfer modes.
Specifically, in step 102, if data transmission quality more than or equal to first threshold, illustrate PDCP entity need to
The quantity possibility of the packet that RLC entity sends is more, packet may be less, and now PDCP entity can be to described RLC entity
Send inquiry request message, in order to obtain the data volume that RLC entity is able to receive that.First threshold can be by those skilled in the art
Rule of thumb set, for the judgment criteria good and bad as data transmission quality.The data volume that RLC entity is able to receive that be by
RLC entity receives what the vacant open ended data volume of memory element in caching obtained according to it.
In step 103, if PDCP entity determines that the data volume that RLC entity is able to receive that is not zero, then explanation RLC entity
Can normally send data, even if the PDCP PDU transmission that PDCP entity does not receive the transmission of RLC entity successfully confirms message,
It is also assumed that the PDU that PDCP entity has sent is properly received by RLC entity.Now, PDCP entity can be according to RLC entity energy
Data volume to be sent in the reception caching of enough data volumes received and PDCP entity, determines that PDCP entity sends to RLC entity
The target data amount of data.Wherein, target data amount can be the data volume that is able to receive that of RLC entity and the reception of PDCP entity
Minima in data volume to be sent in caching.Such as, the data volume that RLC entity is able to receive that is 10, connecing of PDCP entity
Receiving data volume to be sent in caching is 12, then PDCP entity can determine that the target data amount to RLC entity transmission data is 10.
Subsequently, PDCP entity is according to the PDU in target data amount clear to send caching, and the data volume of the PDU removed is little
In equal to target data amount.Further, in the embodiment of the present invention, clear to send cache in PDU time, need to consider
Each PDU time of staying in sending caching, the PDU that preferably the removing time of staying is longer (is the transmission time earlier
PDU)。
If PDCP entity determines that the data volume that RLC entity is able to receive that is zero, then explanation RLC entity temporarily cannot receive number
According to, in such cases, PDCP entity can suspend to the described RLC entity described PDCP PDU of transmission, and waits that RLC entity returns
The confirmation message of PDCP PDU, until after receiving the confirmation message that RLC entity returns, then send data to RLC.
Further, in the embodiment of the present invention, the caching that receives of PDCP entity includes the SDU that sent and to be sent
SDU.When PDCP entity removes the described PDCP PDU sent in caching, with this PDCP during the most correspondingly removing receives caching
The PDCP SDU that what PDU was corresponding sent, in order to receive recycling of caching.
At step 104, the identification information of the PDU being eliminated is distributed to PDCP SDU to be sent by PDCP entity, from
And obtain and PDCP PDU corresponding for PDCP SDU to be sent, and PDCP PDU is stored in transmission caching, it is sent simultaneously to
RLC entity.
In the embodiment of the present invention, if data transmission quality is less than first threshold, then explanation PDCP entity needs to RLC entity
The quantity of the packet sent may be less, and now, PDCP entity no longer can send packet to RLC entity, i.e. suspends to institute
Stating RLC entity and send described PDCP PDU, waiting that RLC entity returns the confirmation message of PDCP PDU, until receiving RLC entity
After the first confirmation message returned, obtain the identification information confirming in the PDU that message is corresponding with described first, and remove institute
State the PDU sent in caching, correspondingly, remove and receive caching and the described SDU sent corresponding for a PDU.Subsequently,
The identification information of the PDU being eliminated is distributed to receive SDU to be sent in caching by PDCP entity, obtains with to be sent
The PDU that SDU is corresponding, and it is sent to described RLC entity.
In the embodiment of the present invention, after PDCP entity determines that the occupancy sending caching is more than or equal to occupancy threshold value, first
Data transmission quality between detection PDCP entity and RLC entity, and take different numbers according to the size of data transmission quality
According to transmission means, there is stronger specific aim so that data transmission more conforms to practical situation.Specifically, if data are transmitted
Quality is more than or equal to first threshold, then explanation PDCP entity needs to send more packet to RLC entity, and now, PDCP is real
Body can send inquiry request message to RLC entity, and after determining that RLC entity normally can send packet, direct clear to send is delayed
PDCP PDU in depositing, in order to the transmission of follow-up PDCP PDU, thus avoid PDCP protocol processes abnormal, and improve data
The efficiency of transmission;If data transmission quality is less than first threshold, then explanation PDCP entity needs the packet sent to RLC entity
May be less, now, PDCP entity may wait for PDCP entity and returns confirmation message, and after being verified message, then after execution
The transmission of continuous PDCP PDU, thus more effectively avoid the abnormal phenomenon of PDCP protocol processes.
For said method flow process, the embodiment of the present invention additionally provides a kind of PDCP entity, this PDCP entity concrete in
Hold and be referred to said method enforcement.
The structural representation of a kind of PDCP entity that Fig. 2 provides for the embodiment of the present invention.As in figure 2 it is shown, this PDCP entity
Including:
Detection module 201, for determining that the occupancy sending caching of described PDCP entity is more than or equal to occupancy threshold value
After, detect the data transmission quality between described PDCP entity and RLC entity;It is real that described transmission caching is used for storing described PDCP
Body has transmitted to described RLC entity, but not yet receives described RLC entity and return the PDCP PDU confirming message;Described
PDCP PDU includes and described PDCP SDU corresponding for PDCP PDU and the identification information of described PDCP SDU;
Processing module 202, is used for determining that whether described data transmission quality is more than or equal to first threshold;
Sending module 203, after determining that described data transmission quality is more than or equal to first threshold in described processing module,
Inquiry request message is sent to described RLC entity;Described inquiry request message is for obtaining the number that described RLC entity is able to receive that
According to amount;
Remove module 204, for the data volume received according to described RLC entity, at least remove described transmission in caching
PDCP PDU, and the data volume that the data volume of the PDCP PDU removed is able to receive that less than or equal to described RLC entity;
Described processing module 202 is additionally operable to, and the identification information of the PDCP PDU being eliminated is distributed to described PDCP entity
Receive PDCP SDU to be sent in caching, obtain and PDCP PDU corresponding for PDCP SDU to be sent pass through described
Module is sent to be sent to described RLC entity.
Optionally, described removing module 204 specifically for:
The PDCP that the data volume being able to receive that according to described RLC entity is to be sent with in the reception caching of described PDCP entity
The data volume of SDU, determines that described PDCP entity sends the target data amount of data, described target data amount to described RLC entity
The data volume being able to receive that less than or equal to described RLC entity.
According to described target data amount, at least remove the described PDCP PDU sent in caching, and the PDCP PDU removed
Data volume less than or equal to described target data amount.
Optionally, described removing module 204 specifically for: remove described send caching in PDCP PDU and described in connect
Receive the PDCP SDU sent corresponding with the PDCP PDU being eliminated in caching.
Optionally, described removing module 204 is additionally operable to: when described processing module determines that described data transmission quality is less than the
One threshold value, then suspend and send described PDCP PDU to described RLC entity, true until receive the return of described RLC entity first
After recognizing message, at least remove described transmission in caching and confirm, with described first, the PDCP PDU that message is corresponding;
Described processing module 202 is additionally operable to: the identification information of the PDCP PDU being eliminated is distributed to described reception
PDCP SDU to be sent in caching, is obtained and PDCP PDU corresponding for PDCP SDU to be sent, and is sent out by sending module
Give described RLC entity.
Optionally, described detection module 201 specifically for: according to setting in the time period what the air interface received sent
Data package size and the quantity of packet, determine the data transmission quality between described PDCP entity and described RLC entity.
It can be seen from the above:
In the embodiment of the present invention, PDCP entity determines that the occupancy sending caching of PDCP entity is more than or equal to occupancy threshold
After value, detect the data transmission quality between described PDCP entity and described RLC entity, and determining that data transmission quality is more than
After first threshold, by sending inquiry request message to RLC entity, get the data volume that RLC entity is able to receive that, and
The data volume being able to receive that according to described RLC entity, removes the described PDCP PDU sent in caching;Subsequently, PDCP entity quilt
The memory element shared by PDU removed distributes to SDU to be sent in the reception caching of described PDCP entity, obtains correspondence
PDU is also sent to RLC entity.What the embodiment of the present invention was directed to PDCP entity in prior art sends what caching was taken rapidly
Problem, it is provided that a kind of effective data transmission method, PDCP entity is by the data between detection PDCP entity and RLC entity
Transmission quality, and in the case of data transmission quality is preferable, the data volume being able to receive that according to RLC entity, send out to RLC entity
Send PDCP PDU to be sent, thus the serial number avoided in PDCP entity overturns in a large number, and cause PDCP protocol processes not
Normally, the technical problem that data transmission rate is relatively low.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use and which includes the meter of computer usable program code at one or more
The upper computer journey implemented of calculation machine usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of sequence product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The function specified in one flow process of flow chart or two or more flow process and/or one square frame of block diagram or two or more square frame now
Device.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Making the manufacture of device, this command device realizes in one flow process of flow chart or two or more flow process and/or one side of block diagram
The function specified in frame or two or more square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or two or more flow process and/or square frame
The step of the function specified in one square frame of figure or two or more square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to change and including modification include these.