Summary of the invention
The present invention provides the data transmission method and 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 lower technical problem of data transmission rate.
A kind of data transmission method of PDCP entity provided in an embodiment of the present invention, comprising:
Packet Data Convergence Protocol PDCP entity determines that the occupancy of the transmission caching of the PDCP entity is more than or equal to and accounts for
After dosage threshold value, the data transmission quality between the PDCP entity and RLC entity is detected;The transmission caching is for storing
It states PDCP entity and has transmitted to the RLC entity, but not yet receive the PDCP that the RLC entity returns to confirmation message
PDU;It include the identification information of PDCP SDU corresponding with the PDCP PDU and the PDCP SDU in the PDCP PDU;
After the PDCP entity determines that the data transmission quality is more than or equal to first threshold, Xiang Suoshu RLC entity is sent
Inquiry request message;The inquiry request message being capable of received data volume for obtaining the RLC entity;
The PDCP entity according to the RLC entity can received data volume, at least remove in transmission caching
PDCP PDU, and the data volume of the PDCP PDU removed being capable of received data volume less than or equal to the RLC entity;
The PDCP entity delays the reception that the identification information in the PDCP PDU removed distributes to the PDCP entity
PDCP SDU to be sent in depositing obtains PDCP PDU corresponding with PDCP SDU to be sent and is sent to the RLC entity.
Optionally, the PDCP entity according to the RLC entity can received data volume, at least remove it is described send it is slow
PDCP PDU in depositing, comprising:
The PDCP entity is capable of in the reception caching of received data volume and the PDCP entity according to the RLC entity
The data volume of PDCP SDU to be sent determines that the PDCP entity sends the target data amount of data, institute to the RLC entity
Stating target data amount being capable of received data volume less than or equal to the RLC entity;
The PDCP entity at least removes the PDCP PDU sent in caching according to the target data amount, and clear
The data volume of the PDCP PDU removed is less than or equal to the target data amount.
It optionally, further include the PDCP SDU sent in the reception caching;
The PDCP entity at least removes the PDCP PDU sent in caching, comprising:
The PDCP entity remove the PDCP PDU sent in caching and it is described receive in caching with removed
The corresponding PDCP SDU sent of PDCP PDU.
Optionally, this method further include:
When the processing module determines that the data transmission quality less than first threshold, then suspends and sends out to the RLC entity
The PDCP PDU is sent, after receiving the first confirmation message that the RLC entity returns, at least removes the transmission caching
In first PDCP PDU corresponding with first confirmation message;
The PDCP entity by the identification information in the first PDCP PDU removed distribute in reception caching to
The PDCP SDU of transmission obtains PDCP PDU corresponding with PDCP SDU to be sent, and is sent to the RLC entity.
Optionally, the PDCP entity detects the data transmission quality between the PDCP entity and RLC entity, comprising:
The data package size and data packet that the PDCP entity is sent according to the air interface that receives in set period of time
Quantity, determine the data transmission quality between the PDCP entity and the RLC entity.
The present invention also provides a kind of PDCP entities, comprising:
Detection module, after determining that the occupancy of transmission caching of the PDCP entity is more than or equal to occupancy threshold value,
Detect the data transmission quality between the PDCP entity and RLC entity;The transmission caching is for storing the PDCP entity
The RLC entity is had transmitted to, but not yet receives the PDCP PDU that the RLC entity returns to confirmation message;The PDCP
It include the identification information of PDCP SDU corresponding with the PDCP PDU and the PDCP SDU in PDU;
Processing module, for determining whether the data transmission quality is more than or equal to first threshold;
Sending module, for determining that the data transmission quality is more than or equal to first threshold in the processing module, to institute
It states RLC entity and sends inquiry request message;The inquiry request message being capable of received data for obtaining the RLC entity
Amount;
Remove module, for according to the RLC entity can received data volume, at least remove during transmissions cache
PDCP PDU, and the data volume of the PDCP PDU removed being capable of received data volume less than or equal to the RLC entity;
The processing module is also used to, and the identification information in the PDCP PDU removed is distributed to the PDCP entity
PDCP SDU to be sent in caching is received, obtains PDCP PDU corresponding with PDCP SDU to be sent and by the transmission
Module is sent to the RLC entity.
Optionally, the removing module is specifically used for:
It being capable of received data volume and PDCP to be sent in the reception caching of the PDCP entity according to the RLC entity
The data volume of SDU determines that the PDCP entity sends the target data amount of data, the target data amount to the RLC entity
It being capable of received data volume less than or equal to the RLC entity;
According to the target data amount, the PDCP PDU sent in caching, and the PDCP PDU removed are at least removed
Data volume be less than or equal to the target data amount.
Optionally, the module of removing is specifically used for: removing the PDCP PDU sent in caching and the reception
The PDCP SDU that has sent corresponding with the PDCP PDU removed in caching.
Optionally, the removing module is also used to: when the processing module determines the data transmission quality less than first
Threshold value is then suspended to the RLC entity and sends the PDCP PDU, the first confirmation returned until receiving the RLC entity
After message, first PDCP PDU corresponding with first confirmation message in the transmission caching is at least removed;
The processing module is also used to: the identification information of the first PDCP PDU removed being distributed to the reception and is cached
In PDCP SDU to be sent, obtain PDCP PDU corresponding with PDCP SDU to be sent, and be sent to by sending module
The RLC entity.
Optionally, the detection module is specifically used for: the number sent according to the air interface received in set period of time
According to the quantity of packet size and data packet, the data transmission quality between the PDCP entity and the RLC entity is determined.
In the embodiment of the present invention, PDCP entity determines that the occupancy of the transmission caching of PDCP entity is more than or equal to occupancy threshold
After value, the data transmission quality between the PDCP entity and the RLC entity is detected, and determining that data transmission quality is greater than
After first threshold, by RLC entity send inquiry request message, get RLC entity can received data volume, and
According to the RLC entity can received data volume, remove it is described send caching in PDCP PDU;Then, PDCP entity will
The identification information of the PDCP PDU removed distributes to PDCP SDU to be sent in the reception caching of the PDCP entity, obtains
Corresponding PDCP PDU is simultaneously sent to RLC entity.The embodiment of the present invention is directed to the transmission caching of PDCP entity in the prior art
The problem of being taken rapidly, a kind of effective data transmission method is provided, PDCP entity is real by detection PDCP entity and RLC
Data transmission quality between body, and in the preferable situation of data transmission quality, it being capable of received data according to RLC entity
Amount, PDCP PDU to be sent is sent to RLC entity, is largely overturn so as to avoid the sequence number in PDCP entity, and is caused
PDCP protocol processes are abnormal, the lower technical problem of data transmission rate.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Wireless data transmission is carried out by air interface between base station and terminal, to realize between air interface and terminal
Data exchange needs to carry out series of protocols in user face protocol stack to the data packet that terminal is sent by air interface to base station
Processing, including PDCP protocol processes.The embodiment of the present invention is based on PDCP agreement process and one kind for proposing
Data transmission method.
Fig. 1 illustratively gives a kind of corresponding stream of data transmission method of PDCP entity provided in an embodiment of the present invention
Journey schematic diagram, the flow and method can be executed by the PDCP entity in the PDCP protocol layer of terminal.As shown in Figure 1, the present invention is real
Apply example offer a kind of PDCP entity data transmission method the following steps are included:
Step 101, PDCP entity determines that the occupancy of the transmission caching of the PDCP entity is more than or equal to occupancy threshold value
Afterwards, the data transmission quality between the PDCP entity and the RLC entity is detected;The transmission caching is described for storing
PDCP entity has transmitted to the RLC entity, but not yet receives the PDCP PDU that the RLC entity returns to confirmation message;
It include the identification information of PDCP SDU corresponding with the PDCP PDU and the PDCP SDU in the PDCP PDU;
Step 102, after PDCP entity determines that the data transmission quality is more than or equal to first threshold, Xiang Suoshu RLC entity
Send inquiry request message;The inquiry request message being capable of received data volume for obtaining the RLC entity;
Step 103, PDCP entity according to the RLC entity can received data volume, at least remove transmission caching
In PDCP PDU, and remove PDCP PDU data volume be less than or equal to the RLC entity being capable of received data volume;
Step 104, the identification information of the PDCP PDU removed is distributed to the reception of the PDCP entity by PDCP entity
PDCP SDU to be sent in caching obtains corresponding PDCP PDU and is sent to the RLC entity.
The problem of transmission caching that the embodiment of the present invention is directed to PDCP entity in the prior art is taken rapidly, provides
A kind of effective data transmission method, PDCP entity pass through the data transmission quality between detection PDCP entity and RLC entity, and
Determine data transmission quality be more than or equal to first threshold after, according to RLC entity can received data volume, to RLC entity send out
PDCP PDU to be sent is sent, is largely overturn so as to avoid the sequence number in PDCP entity, and causes PDCP protocol processes not
Normally, the lower technical problem of data transmission rate.
In the embodiment of the present invention, the identification information of the PDCP PDU can be that PDCP entity is the PDCP SDU distribution
Sequence number.It when PDCP entity is to RLC entity transmitting data, needs for PDCP SDU assigned sequence number, subsequently through executing head
The operation such as compression, integrity protection and encryption, update state variable, generates corresponding PDU in order to be sent to RLC entity.
In the embodiment of the present invention, occupancy threshold value can be rule of thumb arranged by those skilled in the art, for example, 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 be monitored in real time the PDCP entity transmission caching occupancy, when determine occupancy be more than or equal to occupancy
After threshold value, data transmission method provided in an embodiment of the present invention can be used, in actual conditions, PDCP entity determines that occupancy is equal to
After occupancy threshold value (only remaining the memory space of next PDCP PDU), then number provided in an embodiment of the present invention can be used immediately
According to transmission method, taken completely to avoid caching is sent.
Specifically, in a step 101, PDCP entity can detect in several ways between PDCP entity and RLC entity
Data transmission quality, for example, what PDCP entity can be sent according to the base station received in set period of time by air interface
The data package size of SDU and the quantity of data packet determine the data transmission quality between the PDCP entity and RLC entity;If
The data packet for the SDU that the air interface received in the set time period is sent is smaller, data packet quantity is larger, illustrates PDCP
The quantity for the data packet that entity needs to send to RLC entity is more and data packet is smaller, at this time, it may be determined that PDCP entity and RLC
The value of data transmission quality between entity is larger (i.e. data transmission quality is preferable), and otherwise (such as: it connects in the set time period
The data packet for the SDU that the air interface received is sent is larger, data packet quantity is smaller), then the value of data transmission quality is smaller
(i.e. data transmission quality is poor).Wherein, set period of time refers to a set period of time before current time, setting time
The length of section can be rule of thumb arranged by those skilled in the art.
For example, PDCP entity determine PDCP entity transmission caching occupancy be more than or equal to occupancy threshold value when
Carving is 10:00, then PDCP entity can receive in this period according to 9:50-10:00 (set period of time is 10 minutes) at this time
The size of the data packet arrived and the quantity of data packet, to determine the data transmission quality between PDCP entity and RLC entity.
It, can be according to different data transmission qualities after PDCP entity detects data transmission quality in the embodiment of the present invention
Take different data transfer modes.
Specifically, in step 102, if data transmission quality is more than or equal to first threshold, illustrate PDCP entity need to
The possible more, data packet of the quantity for the data packet that RLC entity is sent may be smaller, and PDCP entity can be to the RLC entity at this time
Inquiry request message is sent, it being capable of received data volume in order to obtain RLC entity.First threshold can be by those skilled in the art
It rule of thumb sets, for the judgment criteria as data transmission quality superiority and inferiority.RLC entity can received data volume be by
RLC entity receives what the hollow remaining open ended data volume of storage unit of caching obtained according to it.
In step 103, if PDCP entity determine RLC entity can received data volume be not zero, illustrate RLC entity
Data can be normally sent, even if the PDCP PDU that PDCP entity does not receive the transmission of RLC entity sends successful confirmation message,
It is also assumed that the PDU that PDCP entity has been sent is properly received by RLC entity.At this point, PDCP entity can be according to RLC entity energy
Enough received data volumes and data volume to be sent in the reception caching of PDCP entity, determine that PDCP entity is sent to RLC entity
The target data amount of data.Wherein, target data amount can be capable of the reception of received data volume and PDCP entity for RLC entity
Minimum value in caching in data volume to be sent.For example, RLC entity being capable of received data volume connecing for 10, PDCP entity
Receiving data volume to be sent in caching is 12, then PDCP entity can determine that the target data amount for sending data to RLC entity is 10.
Then, PDCP entity is according to the PDU in target data amount clear to send caching, and the data volume of the PDU removed is small
In equal to target data amount.Further, in the embodiment of the present invention, clear to send caching in PDU when, need to comprehensively consider
Each PDU is sending the residence time in caching, and preferably (as sending time is earlier by removing residence time longer PDU
PDU)。
If PDCP entity determine RLC entity can received data volume be zero, illustrate that RLC entity can not temporarily receive number
According in such cases, PDCP entity, which can suspend to the RLC entity, sends the PDCP PDU, and RLC entity is waited to return
The confirmation message of PDCP PDU sends data after receiving the confirmation message of RLC entity return, then to RLC.
It further, include the SDU that has sent in the reception caching of PDCP entity and to be sent in the embodiment of the present invention
SDU.PDCP entity remove it is described send caching in PDCP PDU when, also correspondingly remove receive caching in the PDCP
The corresponding PDCP SDU sent of PDU, in order to receive recycling for caching.
At step 104, the identification information of the PDU removed is distributed to PDCP SDU to be sent by PDCP entity, from
And PDCP PDU corresponding with PDCP SDU to be sent is obtained, and PDCP PDU is stored in and is sent in caching, it is sent to simultaneously
RLC entity.
In the embodiment of the present invention, if data transmission quality is less than first threshold, illustrate that PDCP entity is needed to RLC entity
The quantity of the data packet of transmission may be less, at this point, PDCP entity no longer can send data packet to RLC entity, that is, suspends to institute
It states RLC entity and sends the PDCP PDU, wait RLC entity to return to the confirmation message of PDCP PDU, until receiving RLC entity
After the first confirmation message returned, the identification information in the first PDU corresponding with first confirmation message is obtained, and remove institute
The first PDU sent in caching is stated, correspondingly, removes and receives the caching SDU that has sent corresponding with the first PDU.Then,
The identification information of the first PDU removed is distributed to and receives SDU to be sent in caching by PDCP entity, obtain with it is to be sent
The corresponding PDU of SDU, and it is sent to the RLC entity.
In the embodiment of the present invention, after PDCP entity determines that the occupancy for sending caching is more than or equal to occupancy threshold value, first
The data transmission quality between PDCP entity and RLC entity is detected, and the size according to data transmission quality takes different numbers
According to transmission mode, there is stronger specific aim, so that data transmission is more in line with actual conditions.Specifically, if data are transmitted
Quality is more than or equal to first threshold, then illustrates that PDCP entity needs to send more data packet to RLC entity, at this point, PDCP is real
Body can send inquiry request message to RLC entity, and after determining that RLC entity normally can send data packet, direct clear to send is slow
PDCP PDU in depositing to avoid PDCP protocol processes abnormal, and improves data in order to the transmission of subsequent PDCP PDU
The efficiency of transmission;If data transmission quality is less than first threshold, illustrate the data packet that PDCP entity needs to send to RLC entity
May be less, at this point, PDCP entity, which may wait for PDCP entity, returns to confirmation message, and after being verified message, then after executing
The transmission of continuous PDCP PDU, to more effectively avoid the abnormal phenomenon of PDCP protocol processes.
For above method process, the embodiment of the invention also provides a kind of PDCP entity, the PDCP entity it is specific in
Appearance is referred to above method implementation.
Fig. 2 is a kind of structural schematic diagram of PDCP entity provided in an embodiment of the present invention.As shown in Fig. 2, the PDCP entity
Include:
Detection module 201, for determining that the occupancy of transmission caching of the PDCP entity is more than or equal to occupancy threshold value
Afterwards, the data transmission quality between the PDCP entity and RLC entity is detected;The transmission caching is real for storing the PDCP
Body has transmitted to the RLC entity, but not yet receives the PDCP PDU that the RLC entity returns to confirmation message;It is described
It include the identification information of PDCP SDU corresponding with the PDCP PDU and the PDCP SDU in PDCP PDU;
Processing module 202, for determining whether the data transmission quality is more than or equal to first threshold;
Sending module 203, for the processing module determine the data transmission quality be more than or equal to first threshold after,
Inquiry request message is sent to the RLC entity;The inquiry request message being capable of received number for obtaining the RLC entity
According to amount;
Module 204 is removed, at least removing in the transmission caching according to the received data volume of RLC entity
PDCP PDU, and the data volume of the PDCP PDU removed being capable of received data volume less than or equal to the RLC entity;
The processing module 202 is also used to, and the identification information of the PDCP PDU removed is distributed to the PDCP entity
Reception caching in PDCP SDU to be sent, obtain PDCP PDU corresponding with PDCP SDU to be sent and by the hair
Module is sent to be sent to the RLC entity.
Optionally, the removing module 204 is specifically used for:
It being capable of received data volume and PDCP to be sent in the reception caching of the PDCP entity according to the RLC entity
The data volume of SDU determines that the PDCP entity sends the target data amount of data, the target data amount to the RLC entity
It being capable of received data volume less than or equal to the RLC entity.
According to the target data amount, the PDCP PDU sent in caching, and the PDCP PDU removed are at least removed
Data volume be less than or equal to the target data amount.
Optionally, the module 204 of removing is specifically used for: removing the PDCP PDU sent in caching and described connects
Receive the PDCP SDU that has sent corresponding with the PDCP PDU removed in caching.
Optionally, the removing module 204 is also used to: when the processing module determines the data transmission quality less than
One threshold value is then suspended to the RLC entity and sends the PDCP PDU, and first until receiving the RLC entity return is true
After recognizing message, first PDCP PDU corresponding with first confirmation message in the transmission caching is at least removed;
The processing module 202 is also used to: the identification information of the first PDCP PDU removed is distributed to the reception
PDCP SDU to be sent in caching obtains PDCP PDU corresponding with PDCP SDU to be sent, and is sent out by sending module
Give the RLC entity.
Optionally, the detection module 201 is specifically used for: being sent according to the air interface received in set period of time
The quantity of data package size and data packet determines the data transmission quality between the PDCP entity and the RLC entity.
It can be seen from the above:
In the embodiment of the present invention, PDCP entity determines that the occupancy of the transmission caching of PDCP entity is more than or equal to occupancy threshold
After value, the data transmission quality between the PDCP entity and the RLC entity is detected, and determining that data transmission quality is greater than
After first threshold, by RLC entity send inquiry request message, get RLC entity can received data volume, and
According to the RLC entity can received data volume, remove it is described send caching in PDCP PDU;Then, PDCP entity quilt
Storage unit shared by the PDU of removing distributes to SDU to be sent in the reception caching of the PDCP entity, obtains corresponding
PDU is simultaneously sent to RLC entity.What the transmission caching that the embodiment of the present invention is directed to PDCP entity in the prior art was taken rapidly
Problem, provides a kind of effective data transmission method, and PDCP entity passes through the data between detection PDCP entity and RLC entity
Transmission quality, and in the preferable situation of data transmission quality, according to RLC entity can received data volume, sent out to RLC entity
PDCP PDU to be sent is sent, is largely overturn so as to avoid the sequence number in PDCP entity, and causes PDCP protocol processes not
Normally, the lower technical problem of data transmission rate.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide 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 meter at one or more which includes computer usable program code can be used in the present invention
The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The function of being specified in present one process of flow chart or more than two one box of process and/or block diagram or more than two boxes
Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, which realizes in one side of one process of flow chart or more than two processes and/or block diagram
The function of being specified in frame or more than two boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one process of flow chart or more than two processes and/or box
The step of function of being specified in one box of figure or more than two 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, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the invention is also intended to include including these modification and variations.