Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, data transmission credibility can be effectively improved by providing one kind
PDCP layers of data processing method, device and storage medium.
To achieve the above object, the embodiment of the present invention uses following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of PDCP layers of data processing method, comprising:
Newest PDCP PDU is generated according to from GTP layers of received new data;
Judge whether the newest PDCP PDU repeats with the PDCP PDU for currently getting forwarded to rlc layer;
If the newest PDCP PDU and PDCP PDU for currently getting forwarded to the rlc layer is repeated, working as forward pass
Toward before the PDCP PDU time-out of the rlc layer, time-out is carried out immediately to the PDCP PDU for currently getting forwarded to the rlc layer
It abandons.
In one of the embodiments, the method also includes:
The newest PDCP PDU is got forwarded into the rlc layer.
In one of the embodiments, the method also includes:
If currently getting forwarded to the PDCP PDU time-out of the rlc layer, the PDCP of the rlc layer will be currently got forwarded to
PDU carries out overtime discarding.
In one of the embodiments, the method also includes:
If the newest PDCP PDU and PDCP PDU for currently getting forwarded to the rlc layer is not repeated, and newest
The PDCP PDU time-out, then carry out overtime discarding to the newest PDCP PDU.
The basis generates the step of newest PDCP PDU from GTP layers of received new data in one of the embodiments,
Suddenly, comprising:
Receive the GTP layers of PDCP SDU newly issued;Wherein, the new data includes the PDCP SDU;
The PDCP SDU is packaged into the newest PDCP PDU;
The newest PDCP PDU is added to local cache queue.
On the other hand, a kind of PDCP layers of data processing equipment is also provided, comprising:
Receiving processing module, for generating newest PDCP PDU according to from GTP layers of received new data;
Repeat judgment module, for judge the newest PDCP PDU with currently get forwarded to rlc layer PDCP PDU whether
It repeats;
First data discard module, for the newest PDCP PDU with currently get forwarded to described in the rlc layer
When PDCP PDU is repeated, before the PDCP PDU time-out for currently getting forwarded to the rlc layer, to currently getting forwarded to the rlc layer
The PDCP PDU carries out overtime discarding immediately.
It in one of the embodiments, further include the second data discard module, in the institute for currently getting forwarded to the rlc layer
When stating PDCP PDU time-out, the PDCP PDU for currently getting forwarded to the rlc layer is subjected to overtime discarding.
The receiving processing module includes: in one of the embodiments,
Receiving module, for receiving the GTP layers of PDCP SDU newly issued;Wherein, the new data includes the PDCP
SDU;
Data package module, for the PDCP SDU to be packaged into the newest PDCP PDU;
Buffer process module, for the newest PDCP PDU to be added to local cache queue.
Another aspect, also provides a kind of base station, including memory and processor, and the memory is stored with computer journey
The step of sequence, the processor realizes the data processing method of the PDCP layer when executing the computer program.
In another aspect, also providing a kind of computer readable storage medium, it is stored thereon with computer program, the computer
The step of data processing method of the PDCP layer is realized when program is executed by processor.
A technical solution in above-mentioned technical proposal is had the following advantages and beneficial effects:
Above-mentioned PDCP layers of data processing method, by the newest PDCP PDU and PDCP for currently getting forwarded to rlc layer
PDU carries out the judgement of Data duplication, will execute immediately with the duplicate PDCP PDU for currently getting forwarded to rlc layer of newest PDCP PDU
It is possible to prevente effectively from losing duplicate newest PDCP PDU simultaneously the PDCP for currently getting forwarded to rlc layer occurs for overtime discard processing
The problem of discarding of PDU time-out leads to two new and old PDCP PDU while losing, effectively improve PDCP layer data transmission process
Reliability.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Referring to Fig. 1, PDCP layers of data processing method provided in an embodiment of the present invention can be applied to it is as shown in Figure 1
In application environment.It is appreciated that being only the corresponding each layer for being directly related to PDCP layers in base station shown in Fig. 1, may be used also in base station
To include other layers.Base station can be LTE base station eNB, be also possible to the base station 5G gNB, can also be that other include corresponding each layer
Base station.Corresponding packet data protocol data cell PDCP will be packaged into after the PDCP layers of data for receiving GTP layers of downlink
PDU.PDCP layers can carry out data judgement to newest PDCP PDU and just when the PDCP PDU of forward pass toward rlc layer in real time, with
Determine whether newest PDCP PDU and the PDCP PDU of proper forward pass toward rlc layer repeat.If newest PDCP PDU with it is proper
The PDCP PDU of forward pass toward rlc layer is repeated, and PDCP layers will carry out in advance time-out to the PDCP PDU of proper forward pass toward rlc layer and refer to
Show, so that the PDCP PDU of proper forward pass toward rlc layer immediately enters the process flow of time-out discarding, abandoning should be with newest PDCP
The duplicate PDCP PDU for currently getting forwarded to rlc layer of PDU data, without waiting the PDCP PDU for currently getting forwarded to rlc layer normally to surpass
Shi Houzai executes discarding.
Referring to Fig. 2, in one embodiment, providing a kind of PDCP layers of data processing method, it is applied to shown in FIG. 1
Application environment includes the following steps S12 to S16:
S12 generates newest PDCP PDU according to from GTP layers of received new data.
It is appreciated that PDCP layers receive GTP layers transmission downlink service data after, can pass through the agreement of itself will
Downlink service data is packaged into PDCP PDU, to be transferred to the rlc layer of low layer.Specifically, PDCP layers are transmitting data procedures
In, newest PDCP PDU can be generated according to the new data received from GTP layers.
S14, judges whether newest PDCP PDU repeats with the PDCP PDU for currently getting forwarded to rlc layer.
Specifically, PDCP layers can in real time count newest PDCP PDU with the PDCP PDU for currently getting forwarded to rlc layer
It is judged that whether being repeated with the newest PDCP PDU of determination with the PDCP PDU for currently getting forwarded to rlc layer namely two PDCP PDU
Whether the data of interior carrying repeat, for example whether being duplicate message.
S16 is currently getting forwarded to rlc layer if newest PDCP PDU is repeated with the PDCP PDU for currently getting forwarded to rlc layer
Before PDCP PDU time-out, overtime discarding is carried out immediately to the PDCP PDU for currently getting forwarded to rlc layer.
Specifically, before currently getting forwarded to the PDCP PDU time-out of rlc layer, PDCP layer determine newest PDCP PDU with currently
When getting forwarded to the PDCP PDU repetition of rlc layer, PDCP layers will carry out in advance overtime instruction to the PDCP PDU for currently getting forwarded to rlc layer,
So that the PDCP PDU for currently getting forwarded to rlc layer immediately enters the process flow of time-out discarding, abandons this and duplicate currently get forwarded to RLC
The PDCP PDU of layer, without executing discarding again after waiting the normal time-out of the PDCP PDU for currently getting forwarded to rlc layer.In this way, PDCP
Layer is the moment of time-out of timer of newest PDCP PDU setting, is later than the PDCP PDU corresponding timer for currently getting forwarded to rlc layer
The overtime moment determine by PDCP layers before the PDCP PDU time-out for currently getting forwarded to rlc layer and currently get forwarded to rlc layer
When PDCP PDU and newest PDCP PDU data repeat, the timer that instruction immediately currently gets forwarded to the PDCP PDU of rlc layer is super
When, so that the PDCP PDU for currently getting forwarded to rlc layer be abandoned, effectively prevent abandoning newest PDCP PDU and currently getting forwarded to
When the PDCP PDU auto-timeout of rlc layer abandons, there are while abandoning two PDCP PDU, lead to asking for corresponding data loss
Topic reduces data transmission credibility.
The data processing method of above-mentioned PDCP layer, S12 to S16 through the above steps, to newest PDCP PDU with
The PDCP PDU for currently getting forwarded to rlc layer carries out the judgement of Data duplication, to newest PDCP PDU is duplicate currently gets forwarded to RLC
The PDCP PDU of layer executes overtime discard processing immediately, it is possible to prevente effectively from occurring when abandoning duplicate newest PDCP PDU
The problem of currently getting forwarded to the PDCP PDU auto-timeout discarding of rlc layer leads to two new and old PDCP PDU while losing, effectively
Improve the reliability of PDCP layer data transmission process.
Referring to Fig. 3, the data processing method of above-mentioned PDCP layer further includes following steps in one of the embodiments,
S18:
Newest PDCP PDU is got forwarded to rlc layer by S18.
It is appreciated that PDCP layers will be (namely old with the duplicate PDCP PDU for currently getting forwarded to rlc layer of newest PDCP PDU
PDCP PDU) immediately abandon after, continue the transmission process process for safeguarding newest PDCP PDU, by newest PDCP PDU
It is transmitted to rlc layer.
S18 through the above steps safeguards newest PDCP PDU after abandoning duplicate old PDCP PDU data unit
Transmission process process, it is ensured that the reliable transmission of newest PDCP PDU corresponding data, avoid the occurrence of data exception discarding ask
Topic, effectively improves PDCP layers of data transmission credibility.
Referring to Fig. 4, the data processing method of above-mentioned PDCP layer further includes following steps in one of the embodiments,
S15:
S15, if newest PDCP PDU is not repeated with the PDCP PDU for currently getting forwarded to rlc layer, and newest PDCP PDU
Time-out then carries out overtime discarding to newest PDCP PDU.
It is appreciated that PDCP layers are determining between newest PDCP PDU and the current PDCP PDU for getting forwarded to rlc layer not
When being duplicate data, then conventional timer expiry is also carried out to newest PDCP PDU and judged, to judge that this is newest
PDCP PDU is in transmission process, if time-out.PDCP layers when determining the newest PDCP PDU time-out occurs, i.e., most to this
New PDCP PDU executes the process that time-out abandons, and abandons the newest PDCP PDU.
Between S15 through the above steps, the PDCP PDU that rlc layer can be got forwarded in newest PDCP PDU and currently not
When being duplicate data, overtime monitoring is carried out to newest PDCP PDU as usual, abandons the newest PDCP that time-out occurs in time
PDU avoids newest PDCP PDU that from cannot being sent to rlc layer in time and influence business real-time.
Referring to Fig. 5, the data processing method of above-mentioned PDCP layer further includes S13 in one of the embodiments:
The PDCP PDU for currently getting forwarded to rlc layer is carried out time-out if currently getting forwarded to the PDCP PDU time-out of rlc layer by S13
It abandons.
PDCP layers are appreciated that in above-mentioned data handling procedure, it is lasting to supervise in the timing of corresponding timer
Whether the PDCP PDU that control currently gets forwarded to rlc layer is overtime, for example not yet receives newest PDCP PDU or have been received
Newest PDCP PDU, and do not determine the processes such as newest PDCP PDU and the PDCP PDU repetition for currently getting forwarded to rlc layer
In, PDCP layers determine currently when get forwarded to the PDCP PDU time-out of rlc layer, i.e., can be to deserving PDCP of the forward pass toward rlc layer
PDU executes time-out and abandons process, loses the PDCP PDU for deserving forward pass toward rlc layer.S13 through the above steps, can also be timely
The PDCP PDU for currently getting forwarded to rlc layer that time-out occurs is abandoned, avoids the PDCP PDU for currently getting forwarded to rlc layer that from cannot sending in time
Business real-time is influenced to rlc layer.
Referring to Fig. 6, can specifically include following sub-step for above-mentioned step S12 in one of the embodiments,
S122 to S126:
S122 receives the GTP layers of PDCP SDU newly issued;Wherein, new data includes PDCP SDU;
PDCP SDU is packaged into newest PDCP PDU by S124;
Newest PDCP PDU is added to local cache queue by S126.
It is appreciated that the packet data protocol where PDCP SDU namely the above-mentioned PDCP layers of data received from GTP layers
Convergence layer service data cell.Specifically, PDCP layers can be sent out by upper layer receiving entity from GTP layers of corresponding lower layer
It send and is physically receiving the GTP layers of PDCP SDU newly issued.In turn, PDCP layers will be to the PDCP SDU received according to association
View is packaged processing, such as is encrypted, compressed and added PDCP SN (Serial to the PDCP SDU received
Number, sequence number) number equal processing, the PDCP SDU received is packaged into newest PDCP PDU.PDCP layers of completion encapsulation
Afterwards, if also other PDCP PDU etc. are to be transmitted on current PDCP layer, newest PDCP PDU can be cached to local cache
Queue is lined up together with other PDCP PDU and carries out downlink transfer processing.S122 to S126 through the above steps, it can be ensured that
The encapsulation and caching process of each new received PDCP SDU, PDCP layer of effective guarantee the time-out of newest PDCP PDU is judged,
The processing such as transmission and Data duplication judgement.
Fig. 7 and Fig. 8 are please referred to, above-mentioned newest PDCP PDU and currently gets forwarded to rlc layer to become apparent to explain in precise term
When PDCP PDU data repeats, the process for currently getting forwarded to the PDCP PDU of rlc layer is abandoned, PDCP layer as shown in Figure 7 transmits number
According to processing flow schematic diagram, following processing step can specifically include:
The starting of S101,1ms timer, is triggered to MAC layer, rlc layer, PDCP layers in base station and the data of GTP layers of uplink and downlink
It is handled, turns S102 after 1ms timer expiry;
S102, PDCP layers judge whether there is PDCP PDU data and need to handle, if there is then turning S103;Otherwise turn S101 after
It is continuous to wait the processing of 1ms timer expiry;
S103, PDCP layers judge whether aforementioned PDCP PDU is the new data received from GTP layers, are to turn S105, no
Then aforementioned PDCP PDU is the PDCP PDU inside PDCP layers of local cache queue, turns S104;
S104 judges whether aforementioned PDCP PDU is overtime, is to turn S106, otherwise turns S101;
S105, judge new received aforementioned PDCP PDU whether with currently get forwarded to rlc layer PDCP PDU (namely relative to
Old PDU data for new received aforementioned PDCP PDU) it repeats, it is to turn S107, otherwise turns S108;
S106 abandons the PDCP PDU, turns S110;
S107 forces setting currently to get forwarded to the PDCP PDU time-out of rlc layer, turns S108;
S108 obtains newest PDCP PDU after carrying out protocol processes to new received PDCP SDU, including carries out to it
The processing such as encryption, compression and addition PDCP SN, and cache to PDCP layers of local cache queue, turn S109;
S109 carries out newest PDCP PDU to abandon timer resetting, sends newest PDCP PDU to rlc layer, turns
S110;
S110 is disposed.
Timeslice schematic diagram as shown in Figure 8, wherein the relationship at each moment is T1 < T2 < T1+Tmr.Currently get forwarded to rlc layer
PDCP PDU namely before current time, be successfully received PDCP layers of PDCP PDU.For example, currently getting forwarded to rlc layer
PDCP PDU is received at the T1 moment, then must be transferred to rlc layer at the T1+Tmr moment at the latest, is otherwise surpassed after timer timing Tmr
When and be forced to abandon.And the PDCP PDU that newest PDCP PDU namely current time have been successfully received.For example, newest
PDCP PDU be received at the T2 moment, then rlc layer must be transferred at the T2+Tmr moment at the latest, otherwise after timer timing Tmr
Time-out and be forced to abandon.
When two PDCP PDU datas repeat in Fig. 8, the PDCP PDU that Instant Compulsion currently gets forwarded to rlc layer is fixed accordingly
When device shift to an earlier date time-out, so that triggering currently gets forwarded to the passive discarding of the PDCP PDU of rlc layer, and then save overlapping time piece
Transmission loss is repeated, selection is also avoided and abandons newest PDCP PDU, rather than abandon the PDCP PDU for currently getting forwarded to rlc layer
When, cause to abandon newest PDCP PDU simultaneously, currently gets forwarded to the PDCP PDU of rlc layer also while entering timer expiry shape
State is also dropped and two PDCP PDU is caused to be dropped the problem of influencing data transmission credibility.Ensure reliability transmission
Under the premise of, the repetition transmission of downlink data is in turn avoided, to reduce the consuming of corresponding downlink resource, can more improve system
Performance and efficiency.
It should be understood that although each step in the flow chart of Fig. 2-6 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-6
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
Referring to Fig. 9, also providing a kind of PDCP layers of data processing equipment 100, including receiving processing module 12, repetition are sentenced
Disconnected module 14 and the first data discard module 16.Wherein: receiving processing module 12 is used for according to raw from GTP layers of received new data
At newest PDCP PDU.Judgment module 14 is repeated for judging newest PDCP PDU and currently getting forwarded to the PDCP of rlc layer
Whether PDU repeats.First data discard module 16 is used in newest PDCP PDU and the PDCP PDU weight for currently getting forwarded to rlc layer
When multiple, before currently getting forwarded to the PDCP PDU time-out of rlc layer, time-out carried out to the PDCP PDU for currently getting forwarded to rlc layer immediately and is lost
It abandons.
The data processing equipment 100 of above-mentioned PDCP layer, by newest PDCP PDU and currently getting forwarded to rlc layer
PDCP PDU carries out the judgement of Data duplication, to newest PDCP PDU is duplicate currently gets forwarded to the PDCP PDU of rlc layer i.e.
Shi Zhihang time-out discard processing, it is possible to prevente effectively from occurring currently to get forwarded to rlc layer when abandoning duplicate newest PDCP PDU
PDCP PDU auto-timeout abandons, and the problem of leading to two new and old PDCP PDU while losing, effectively improves PDCP layer data
The reliability of transmission process.
PDCP layers of data processing equipment 100 further includes the second data discard module in one of the embodiments, is used for
In the PDCP PDU time-out for currently getting forwarded to rlc layer, the PDCP PDU for currently getting forwarded to rlc layer is subjected to overtime discarding.
Above-mentioned receiving processing module 12 is gentle including receiving module, data package module in one of the embodiments,
Deposit processing module.Wherein: receiving module is for receiving the GTP layers of PDCP SDU newly issued;Wherein, new data includes PDCP
SDU.Data package module is used to PDCP SDU being packaged into newest PDCP PDU.Buffer process module is used for will be newest
PDCP PDU is added to local cache queue.
PDCP layers of data processing equipment 100 further includes third data discard module in one of the embodiments, is used for
It is not repeated in newest PDCP PDU in the PDCP PDU for getting forwarded to rlc layer, and when newest PDCP PDU time-out, to most
New PDCP PDU carries out overtime discarding.
PDCP layers of data processing equipment 100 further includes data transmission blocks in one of the embodiments, and being used for will most
New PDCP PDU gets forwarded to rlc layer.
Specific restriction about PDCP layers of data processing equipments 100 may refer at the data above for PDCP layers
The restriction of reason method, details are not described herein.Modules in above-mentioned PDCP layers of data processing equipment 100 can be all or part of
It is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of in computer equipment
Processor in, can also be stored in a software form in the memory in computer equipment, in order to processor call execute
The corresponding operation of above modules.
In one embodiment, a kind of base station is provided, including the processor and memory connected by system bus.This
Field technical staff is appreciated that above-mentioned base station can also include other dependency structures of word, not reinflated superfluous in this specification
It states.Wherein, the processor of the base station is for providing calculating and control ability.The memory of the base station includes that non-volatile memories are situated between
Matter, built-in storage.The non-volatile memory medium is stored with operating system and computer program.The built-in storage is non-volatile
The operation of operating system and computer program in storage medium provides environment.The network interface of the base station is used for and external end
End passes through network connection communication.To perform the steps of according to received from GTP layers when the computer program is executed by processor
New data generates newest PDCP PDU;Judge whether newest PDCP PDU repeats with the PDCP PDU for currently getting forwarded to rlc layer;
If the newest PDCP PDU and PDCP PDU for currently getting forwarded to rlc layer is repeated, in the PDCP PDU time-out for currently getting forwarded to rlc layer
Before, overtime discarding is carried out immediately to the PDCP PDU for currently getting forwarded to rlc layer.
PDCP in the various embodiments described above can also be realized when processor executes computer program in one of the embodiments,
The step of data processing method of layer.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor generates newest PDCP PDU according to from GTP layers of received new data;Sentence
Whether the newest PDCP PDU that breaks repeats with the PDCP PDU for currently getting forwarded to rlc layer;If newest PDCP PDU with currently get forwarded to
The PDCP PDU of rlc layer is repeated, then before currently getting forwarded to the PDCP PDU time-out of rlc layer, to the PDCP for currently getting forwarded to rlc layer
PDU carries out overtime discarding immediately.
It can also be realized in the various embodiments described above when computer program is executed by processor in one of the embodiments,
The step of PDCP layers of data processing method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable
It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen
Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise
Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art,
Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection scope of the application.
Therefore, the scope of protection shall be subject to the appended claims for the application patent.