Summary of the invention
Based on this, it is necessary under the scene of a large amount of small messages of above-mentioned uplink, there are data transmission efficiency it is relatively low under
The technical issues of, a kind of data transmission method, device, computer equipment and storage medium are provided.
In a first aspect, the embodiment of the present application provides a kind of data transmission method, this method comprises:
Terminal obtains current message amount to be transmitted;
When current message amount to be transmitted is at least two, terminal, will current message life to be transmitted according to SDAP agreement
At a SDAP message;SDAP message includes reserved bit identification, each message content to be transmitted and each message length to be transmitted;It is reserved
Bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
SDAP message is sent to base station by terminal, and SDAP message is used to indicate base station according to reserved bit identification and each to be transmitted
Message length parses corresponding message content to be transmitted.
Current message to be transmitted is generated a SDAP according to SDAP agreement by above-mentioned terminal in one of the embodiments,
Message, comprising:
The quantity and preset threshold of the relatively more current message to be transmitted of terminal;
If the quantity of current message to be transmitted is greater than or equal to preset threshold, terminal is according to SDAP agreement, by preset threshold
The length of the message to be transmitted of corresponding number and each message to be transmitted carries out stacked package, obtains SDAP message;
If the quantity of current message to be transmitted is less than preset threshold, terminal is according to SDAP agreement, by institute's available for transmission message
Stacked package is carried out with the length of each message to be transmitted, obtains SDAP message.
Current message to be transmitted is generated one according to SDAP agreement in above-mentioned terminal in one of the embodiments,
Before SDAP message, this method comprises:
Terminal obtains the quantity of current message to be transmitted and 1 size relation;
If size relation is that the quantity of current message to be transmitted is greater than 1, terminal, which executes, generates current message to be transmitted
The step of one SDAP message;
If size relation is that the quantity of current message to be transmitted is equal to 1, current message to be transmitted is determined as by terminal
SDAP message.
When the quantity of above-mentioned current message to be transmitted is equal to 1 in one of the embodiments, reserved place is identified as first
Value;When the quantity of current message to be transmitted is greater than 1, reserved place is identified as second value;First value is different values from second value.
Above-mentioned terminal includes the first SDAP module and the first PDCP module, above-mentioned base station packet in one of the embodiments,
Include the 2nd SDAP module and the 2nd PDCP module;
Then SDAP message is sent to base station and includes: by terminal
SDAP message is sent to the first PDCP module by the first SDAP module, and SDAP message is sent to by the first PDCP module
SDAP message is sent to the 2nd SDAP module by the 2nd PDCP module, the 2nd PDCP module.
Second aspect, the embodiment of the present application provide a kind of data transmission method, this method comprises:
Base station receives the SDAP message that terminal is sent;SDAP message is terminal according to SDAP agreement, will current report to be transmitted
The SDAP message that text generates;SDAP message includes that reserved bit identification, each message content to be transmitted and each message to be transmitted are long
Degree;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
Base station parses corresponding message content to be transmitted according to reserved bit identification and each message length to be transmitted.
Above-mentioned base station is corresponded to according to reserved bit identification and each message length to be transmitted, parsing in one of the embodiments,
Message content to be transmitted, comprising:
Base station judges whether SDAP message is that at least two messages to be transmitted generate according to reserved bit identification;
If SDAP message is that at least two messages to be transmitted generate, base station is corresponded to according to each message length parsing to be transmitted
Message content to be transmitted;
If SDAP message is not that at least two messages to be transmitted generate, the content of SDAP message is determined as to be passed by base station
Defeated message content.
When the quantity of above-mentioned current message to be transmitted is equal to 1 in one of the embodiments, reserved place is identified as first
Value;When the quantity of current message to be transmitted is greater than 1, reserved place is identified as second value;First value is different values from second value.
Base station judges whether SDAP message is at least two to be transmitted according to reserved bit identification in one of the embodiments,
What message generated, comprising:
If reserved place is identified as second value, base station determines that SDAP message is that at least two messages to be transmitted generate;
If reserved place is identified as the first value, it is that at least two messages to be transmitted generate that base station, which determines SDAP message not,.
Above-mentioned terminal includes the first SDAP module and the first PDCP module, above-mentioned base station packet in one of the embodiments,
Include the 2nd SDAP module and the 2nd PDCP module;
Then base station receives the SDAP message that terminal is sent, comprising:
2nd SDAP module receives the SDAP message that the 2nd PDCP module is sent;SDAP message is that the first SDAP module passes through
First PDCP module is sent to the message of the 2nd PDCP mould.
The third aspect, the embodiment of the present application provide a kind of data transmission device, which includes:
Quantity obtains module, and the quantity of current message to be transmitted is obtained for terminal;
Generation module, for when current message amount to be transmitted is at least two, terminal, will be current according to SDAP agreement
Message to be transmitted generates a SDAP message;SDAP message includes reserved bit identification, each message content to be transmitted and each to be transmitted
Message length;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
SDAP message is sent to base station for terminal by sending module, and SDAP message is used to indicate base station according to reserved place
Mark and each message length to be transmitted parse corresponding message content to be transmitted.
Fourth aspect, the embodiment of the present application provide a kind of data transmission device, which includes:
Receiving module receives the SDAP message that terminal is sent for base station;SDAP message is terminal according to SDAP agreement, will
The SDAP message that current message to be transmitted generates;SDAP message includes reserved bit identification, each message content to be transmitted and each
Message length to be transmitted;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
Parsing module parses corresponding report to be transmitted for base station according to reserved bit identification and each message length to be transmitted
Literary content.
5th aspect, the embodiment of the present application provide a kind of computer equipment, including memory and processor, memory storage
There is computer program, processor realizes any that above-mentioned first aspect and second aspect embodiment provide when executing computer program
The step of item method.
6th aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer program,
The step for any one method that above-mentioned first aspect and second aspect embodiment provide is realized when computer program is executed by processor
Suddenly.
A kind of data transmission method, device, computer equipment and storage medium provided by the embodiments of the present application are examined in terminal
When measuring current message amount to be transmitted and being at least two, at least two messages to be transmitted are generated one according to SDAP agreement
Message, and a message is sent to base station, wherein it is by least two reports to be transmitted when terminal generates a message
Literary content and its length are encapsulated into a message, and the downstream protocol of greatly reduction SDAP agreement handles head required when data
Portion's expense, to improve the efficiency of data transmission.
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.
A kind of data transmission method provided by the present application, can be applied in application environment as shown in Figure 1, wherein eventually
End is connect with base station, and the terminal and base station carry out data interaction.Wherein, which can be, but not limited to be various individual calculus
Machine, laptop, smart phone, tablet computer and portable wearable device.Wherein the base station can be the base station 5G.The end
End and base station are used to execute data transmission method provided by the present application in data exchange process.
The embodiment of the present application provides a kind of data transmission method, device, computer equipment and storage medium, will pass through below
How embodiment simultaneously specifically solves above-mentioned technology to the technical solution of the technical solution of the application and the application in conjunction with attached drawing
Problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept or mistake
Cheng Keneng is repeated no more in certain embodiments.It should be noted that a kind of data transmission method provided by the present application, Fig. 2-figure
4 executing subject is terminal, and the executing subject of Fig. 5-Fig. 6 is base station, wherein the executing subject of Fig. 2-Fig. 6 can also be data
Transmitting device, wherein the device can be implemented as terminal or base station by way of software, hardware or software and hardware combining
It is some or all of.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.
First the embodiment that executing subject is terminal is illustrated below.
In one embodiment, Fig. 2 provides a kind of data transmission method, and what is involved is terminals according to working as the present embodiment
When preceding message amount to be transmitted is at least two, terminal is according to service data self-adapted protocol layer (Service Data
Adaptation Protocol, SDAP) agreement, at least two messages to be transmitted are generated into a SDAP message, and by the SDAP
Message is sent to the detailed process of base station, as shown in Figure 2, which comprises
S101, terminal obtain the quantity of current message to be transmitted.
In the present embodiment, what current message to be transmitted indicated is that the message for terminal current time needing to transmit illustratively should
Message to be transmitted can be stored in the buffer area of terminal, can be with when terminal needs to obtain current message amount to be transmitted
The quantity of institute's available for transmission message is extracted directly from buffer area.Wherein, terminal can also store current time institute's available for transmission
The particular number of message, and the real-time update quantity, in this way, terminal can directly acquire the number obtaining message amount to be transmitted
Amount.
S102, when the quantity of current message to be transmitted is at least two, terminal, will be current to be transmitted according to SDAP agreement
Message generates a SDAP message;SDAP message includes that reserved bit identification, each message content to be transmitted and each message to be transmitted are long
Degree;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate.
Based on the message amount to be transmitted obtained in above-mentioned S101 step, terminal is at least in current message amount to be transmitted
At two, according to SDAP agreement, by this, at least two messages to be transmitted generate a SDAP message.It is understood that terminal exists
Above-mentioned acquisition currently message amount to be transmitted when, institute's available for transmission message can also be obtained together, then worked as when terminal detects
When preceding message amount to be transmitted is at least two or more, which is generated into a message,
In, terminal is that at least two or more messages to be transmitted are generated a SDAP message according to SDAP agreement when generating message,
Wherein, including each message to be transmitted in reserved bit identification, at least two messages to be transmitted in a SDAP message for generation
Content and each message to be transmitted length, wherein reserved bit identification for distinguish SDAP message whether be at least two to
A kind of mark that transmitting message generates, different reserved bit identifications indicate different situations, for example, when reserved place is identified as 0,
It indicates that a SDAP message is generated by a message to be transmitted, when reserved place is identified as 1, indicates a SDAP report
Text is generated by least two or more messages to be transmitted.Correspondence between bit identification and message amount to be transmitted is reserved for this
Relationship provides one embodiment, then optionally, if current message amount to be transmitted is equal to 1, reserved place is identified as the first value;
When current message amount to be transmitted is greater than 1, reserved place is identified as second value;First value is different values from second value.Wherein,
One value and second value respectively indicate current message amount to be transmitted and are equal to 1 or are greater than 1, wherein being greater than 1 is above-described embodiment
Mentioned at least two the case where;Wherein, the case where for current message amount to be transmitted less than 1, as current to be passed
The case where defeated message amount is 0, such situation is not processed.
It wherein, is a kind of agreement newly increased in 5G for SDAP agreement, in the SDAP agreement, in uplink service
Header fields are reserved with 1bit, for extension upgrading, support new function.Wherein SDAP agreement uplink head and SDAP agreement number
Meaning such as following table as shown in Figure 2 a according to unit (Protocol Data Unit, PDU) format, that wherein each field indicates in the figure
Shown in 1:
Table 1
Based on SDAP agreement uplink head reserved field, in practical applications, this step embodiment is by uplink available for transmission
Multiple messages and its Length Indication, in such a way that front and back connects, encapsulation to the SDAP association among a message, after extension
It discusses uplink head and SDAP data PDU format is as shown in Figure 2 b, increase each message length on the basis of above-mentioned Fig. 2 a.
SDAP message is sent to base station by S103, terminal, and SDAP message is used to indicate base station according to reserved bit identification and each
Message length to be transmitted parses corresponding message content to be transmitted.
In this step, the SDAP message that terminal generates above-mentioned S102 step is sent to base station, wherein terminal should
After one SDAP message is sent to base station, base station can according in a message reserved bit identification and each message to be transmitted it is long
Degree parses corresponding message content to be transmitted to complete to transmit.
Existing 5G communication protocol has removed RLC (radio link control) to data concatenating, cascade support, but
In practical application, uplink process often will appear the scene of a large amount of small messages, so that occupying specific gravity in each layer protocol header overhead
It is larger, cause data transmission efficiency excessively low, the base that data transmission method provided by the present application is handled in traditional SDAP uplink
On plinth, using SDAP protocol headers reserved field, data message is connected once again, is cascaded, to improve 5G business uplink biography
Defeated efficiency.Specifically, data transmission method provided in this embodiment detects that current message amount to be transmitted is at least in terminal
At two, which is generated by a message according to SDAP agreement, and a message is sent to
Base station, wherein be that at least two message contents to be transmitted and its length are encapsulated into a message when terminal generates a message
In, the downstream protocol of greatly reduction SDAP agreement handles header overhead required when data, to improve data transmission
Efficiency.
On the basis of above embodiments, the embodiment of the present application also provides a kind of data transmission method, what is involved is
Currently at least two messages to be transmitted are generated the detailed process of a SDAP message by terminal, as shown in figure 3, above-mentioned S102 step
Include:
S201, the quantity and preset threshold of the relatively more current message to be transmitted of terminal.
The present embodiment is that terminal has determined that current message amount to be transmitted is greater than 1, the case where i.e., at least two, but
In practical applications, the quantity most generally for message can also be equipped with threshold value and be controlled.Therefore, in this step, terminal
Need relationship of the comparison currently between message amount and preset threshold to be transmitted, wherein the preset threshold is as preset
Threshold value, i.e. preset threshold are prescribed terminal most numbers of permitted message to be transmitted when executing one SDAP message of generation
Amount.The present embodiment does not limit for the specific value of the preset threshold, can according to the actual situation depending on, such as 5,10.
S202, if the quantity of current message to be transmitted is greater than or equal to preset threshold, terminal will be preset according to SDAP agreement
The length of the message to be transmitted of threshold value corresponding number and each message to be transmitted carries out stacked package, obtains SDAP message.
Based in above-mentioned S201, after terminal compares current relationship between message amount and preset threshold to be transmitted, if
Current message amount to be transmitted is greater than or equal to preset threshold, then terminal is by the message to be transmitted with the preset threshold corresponding number
Content and its each length to be transmitted carry out stacked package, obtain a SDAP message, wherein terminal carries out stacked package
As by the message to be transmitted of the preset threshold corresponding number and its each message length, in such a way that front and back connects, front and back heap
It folds, be encapsulated into a message, data message is connected once again, is cascaded in this manner it is possible to smoothly realize.
S203, if current message amount to be transmitted is less than preset threshold, terminal is according to SDAP agreement, by institute's available for transmission report
The length of literary and each message to be transmitted carries out stacked package, obtains SDAP message.
After this step is the relatively more current relationship between message amount and preset threshold to be transmitted of terminal, comparison result is to work as
Preceding message amount to be transmitted is less than the case where preset threshold, then terminal is according to SDAP agreement, by institute's available for transmission message and respectively to
The length of transmission carries out stacked package, obtains SDAP message.I.e. current message amount deficiency preset threshold to be transmitted when, without sieve
Quantity is selected, directly by the content of institute's available for transmission message and each message length in such a way that front and back connects, stacked package is one
In a message.
Data transmission method provided in this embodiment, will at least two messages to be transmitted terminal by setting preset threshold
The case where generating a message is divided into two kinds of scenes, one is current message amount to be transmitted is excessive, has been over default threshold
Value, one is current message amounts to be transmitted to be not above preset threshold;For two different scenes, terminal is chosen different
The message to be transmitted of quantity carries out stacked package, in this way, each SDAP message generated is by an appropriate number of report to be transmitted
Text generates, and avoids message amount to be transmitted excessive, the excessive situation of a message of generation, to ensure that terminal will at least two
Item message to be transmitted generates effective realization of a message method.
In actual scene, in addition to the terminal of above-described embodiment introduction generates a report at least two messages to be transmitted
Text situation, there is also message amount to be transmitted be 1 the case where, therefore, message amount to be transmitted be 1 when, terminal is
How to carry out data transmission and terminal distinguishes the detailed process of both of these case, this Shen according to current message amount to be transmitted
Please provide data transmission method, the embodiment be after terminal obtains current message amount to be transmitted, will at least two to
What transmitting message carried out before generating SDAP message, then as shown in figure 4, this method comprises:
S301, terminal obtain the quantity of current message to be transmitted and 1 size relation.
In the present embodiment, after terminal obtains current message amount to be transmitted in S101 step, compare current to be transmitted
Message amount and 1 size relation, there are three kinds of situations for the size relation: the first is that current message amount to be transmitted is greater than 1,
The case where as above-mentioned current message to be transmitted is at least two;Second is current message amount to be transmitted equal to 1;The third
It is current message amount to be transmitted less than 1, i.e., currently without the message to be transmitted, this kind of situation is not processed, and directly terminates to flow
Journey.
S302, if the quantity that size relation is current message to be transmitted is greater than 1, terminal executes will current message to be transmitted
The step of generating a SDAP message.
It is size relation in this step is the case where current message amount to be transmitted is greater than 1, terminal is directly according to above-mentioned reality
The step of mode described in example is executed at least two one SDAP messages of messages generation to be transmitted is applied, herein no longer
It repeats.
S303, if the quantity that size relation is current message to be transmitted is equal to 1, terminal determines current message to be transmitted
For SDAP message.
It is size relation in this step is the case where current message amount to be transmitted is equal to 1, in this case, expression is only deposited
It needs to transmit in a message, then the message is directly determined as the SDAP message finally to be transmitted by terminal, without carrying out
Stacked package operation.
Data transmission method provided in this embodiment, terminal is after obtaining current message amount to be transmitted, according to the number
Amount is judged as the case where 1 is also equal to greater than 1, and different operations is then executed according to different situations, as long as when final transmission
Message be all that a message is targetedly operated in this way, distinguishing to situation, terminal is greatly saved
Process resource.
In addition, data transmission method provided by the present application, the interaction of data can be specific to inside between terminal and base station
Protocol module, in some scenes, above-mentioned terminal includes the first SDAP module and the first PDCP module, and above-mentioned base station includes second
SDAP module and the 2nd PDCP module;A kind of achievable mode that then SDAP message is sent to base station by terminal includes: first
SDAP message is sent to the first PDCP module by SDAP module, and SDAP message is sent to the 2nd PDCP mould by the first PDCP module
SDAP message is sent to the 2nd SDAP module by block, the 2nd PDCP module.
Specifically, current message encapsulation to be transmitted is generated one article of SDAP message by the first SDAP module, and by this
SDAP message is sent to the first Packet Data Convergence Protocol (Packet Data Convergence Protocol, PDCP) mould
Block sends out SDAP message so that SDAP message is sent to the 2nd PDCP module and the 2nd PDCP module by the first PDCP module
It send to the 2nd SDAP module.It should be noted that only respectively including SDAP module and PDCP module here with terminal and base station
For the explanation that carries out, in practical applications, other than SDAP module and PDCP module, there is also RLC and MAC (Media
Access Control Address, MAC layer) etc. modules, then in message data transmission process, it is also necessary to pass through
It is transmitted by modules such as RLC and MAC, the present embodiment does not enumerate herein.
Based on above-mentioned all embodiments, the application provides one embodiment, has carried out to the data transmission method of the application
Whole explanation, the embodiment is using terminal side SDAP module as transmitting terminal, and as shown in fig. 4 a, including specific step is as follows:
S11, terminal SDAP module detection current time wait transmitting messages text and its quantity, execute S12;
S12, judges whether message amount is greater than 0, if executing S13, otherwise executes S19;
S13, judges whether message amount is greater than 1, if executing S14, otherwise executes S15;
S14, judges whether message amount is less than preset threshold N, if executing S16, otherwise executes S17;
Current 1 message is encapsulated SDAP head by S15, and reserved place is identified as 0, executes S18;
Whole messages and its length are stacked post package SDAP head by S16, and reserved place is identified as 1, executes S18;
N number of message and its length are stacked post package SDAP head by S17, and reserved place is identified as 1, executes S18;
A message after encapsulation is sent to PDCP module, executes S12 by S18;
S19 is disposed.
Data transmission method provided in this embodiment, the cascade of fused data message and SDAP agreement, by message to be transmitted and
Its length is packaged together in such a way that front and back connects, and generates a message, saves downstream protocol (such as PDCP/RLC/
MAC) header overhead, to improve data transmission efficiency.
The embodiment that executing subject is base station is illustrated below, it should be noted that since base station and terminal are to hand over
The data transmission method of the application is mutually completed, therefore consistent in terminal side for partial content in base station side embodiment, it will
It repeats no more, reference can be made to the explanation of terminal side.
In one embodiment, Fig. 5 provides a kind of data transmission method, and what is involved is base stations to receive terminal for the present embodiment
The SDAP message sent, and to the detailed process that the message is parsed, as shown in figure 5, this method comprises:
S401, base station receive the SDAP message that terminal is sent;SDAP message is terminal according to SDAP agreement, will be current to be passed
The SDAP message that defeated message generates;SDAP message includes reserved bit identification, each message content to be transmitted and each report to be transmitted
Literary length;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate.
In the present embodiment, it is a message that base station, which receives the SDAP message that terminal is sent, which is terminal
According to SDAP agreement, the message that current message to be transmitted is generated.Wherein, when what current message to be transmitted indicated is that terminal is current
Carve the message for needing to transmit, wherein when the SDAP message that terminal generates current message to be transmitted, including two kinds of situations,
When being greater than 1 one is the quantity of current message to be transmitted, i.e., when current message amount to be transmitted is at least two, terminal by this extremely
Few two messages to be transmitted carry out stacked package into a SDAP message;Another is the quantity etc. of current message to be transmitted
When 1, this message to be transmitted is directly generated SDAP message by terminal.It is just specifically how to be divided to two kinds of feelings for terminal
Condition generates the process of a message, reference can be made to the embodiment of terminal side, details are not described herein for the present embodiment.
It is for distinguishing a SDAP message whether is more in addition, for the reserved bit identification in a SDAP message
Item message to be transmitted generates, for example, if reserved place is identified as 0, then it represents that only one in a SDAP message is to be transmitted
Message is not stacked package, if reserved place is identified as 1, then it represents that a SDAP message is to be transmitted by least two
Made of message stacked package.
S402, base station parse corresponding message content to be transmitted according to reserved bit identification and each message length to be transmitted.
Based on received message in above-mentioned S401 step, base station is according to reserved bit identification and each message length to be transmitted, solution
Analyse corresponding message content to be transmitted.
Data transmission method provided in this embodiment, base station receives the SDAP message that terminal is sent, due to the SDAP message
It is the SDAP message that terminal generates current message to be transmitted according to SDAP agreement, in this way, no matter terminal is currently to be transmitted
Message how many, be ultimately passed to base station only a message, greatly reduction SDAP agreement downstream protocol handle data
The header overhead of Shi Suoxu, to improve the efficiency of data transmission.
Wherein, base station parses the detailed process of corresponding message content to be transmitted, reference can be made to embodiment shown in fig. 6, then
Above-mentioned S402 step includes:
S501, base station judge whether SDAP message is that at least two messages to be transmitted generate according to reserved bit identification.
In the present embodiment, since reserved bit identification is to take different values under different situations, base station can obtain reserved place
Mark, judges whether SDAP message is that at least two messages to be transmitted generate according to the mark.
Relationship between the quantity and reserved bit identification of message to be transmitted for terminal, provides one embodiment, then optional
Ground, when current message amount to be transmitted is equal to 1, reserved place is identified as the first value;When current message amount to be transmitted is greater than 1, in advance
Staying bit identification is second value;First value is different values from second value.On the basis of the embodiment, base station is according to reserved bit identification
If judging, whether SDAP message be the detailed process that at least two messages to be transmitted generate includes: that reserved place is identified as second value
When, SDAP message is that at least two messages to be transmitted generate;If reserved place is identified as the first value, SDAP message is not at least
What two messages to be transmitted generated.
For example, reserved place is identified as 0 when current message amount to be transmitted is equal to 1;Current message amount to be transmitted is greater than 1
When, reserved place is identified as 1, then when detecting that reserved place is identified as 0, then can determine SDAP message not is at least two for base station
What message to be transmitted generated, if detect that reserved place is identified as 1, it can determine that SDAP message is at least two reports to be transmitted
What text generated.
S502, if SDAP message is that at least two messages to be transmitted generate, base station is according to each message length solution to be transmitted
Analyse corresponding message content to be transmitted.
Based on the judging result in above-mentioned S501 step, if SDAP message is that at least two messages to be transmitted generate,
Base station parses corresponding message content to be transmitted according to each message length to be transmitted, i.e. a message length corresponds to a message,
Message content is successively parsed in this way.
S503, if SDAP message is not that at least two messages to be transmitted generate, base station determines the content of SDAP message
For message content to be transmitted.
Based on the judging result in above-mentioned S501 step, if SDAP message is not that at least two messages to be transmitted generate,
Then the content for the SDAP message being currently received directly is determined as message content to be transmitted by base station.
SDAP message is first determined according to different reserved bit identifications in data transmission method provided in this embodiment, base station
It is to be generated by several messages to be transmitted, if being generated by least two messages, then needs according to corresponding message length successively
The content of message to be transmitted is parsed, if an only message, then directly can be determined as report to be transmitted for SDAP message content
The content of text substantially increases data transmission efficiency in this way, targetedly different modes is taken to handle different situations.
The same with terminal side embodiment, the interaction of data can be specific to internal agreement module, then between terminal and base station
In some scenes, above-mentioned terminal includes the first SDAP module and the first PDCP module, and above-mentioned base station includes the 2nd SDAP module
With the 2nd PDCP module;The detailed process that then base station receives the SDAP message that terminal is sent in S401 step includes: the 2nd SDAP
Module receives the SDAP message that the 2nd PDCP module is sent;SDAP message is that the first SDAP module is sent by the first PDCP module
To the message of the 2nd PDCP mould.
In the present embodiment, the 2nd SDAP module receives the SDAP message that the 2nd PDCP module is sent, and wherein SDAP message is
First SDAP module is sent to the 2nd PDCP mould by the first PDCP module, equally, is only distinguished here with terminal and base station
It in practical applications may include that other protocol layer modules carry out data including the explanation carried out for SDAP module and PDCP module
Transmission.
Based on all embodiments of above-mentioned base station side, the application provides one embodiment, passes to the base station side data of the application
Transmission method is completely illustrated that the embodiment is using SDAP module is receiving end in base station, and as shown in Figure 6 a, including specific steps are such as
Under:
S21 receives the message from PDCP, then executes S22;
S22 rejects the SDAP head of message, then executes S23;
S23, whether detection " reserved bit identification " is 1, if turning S24, otherwise executes S25;
The sub- message of stacking is unsealed one by one according to length, then executes S25 by S24;
The message (or sub- message) is sent to lower layer's GTP module by S25.
Data transmission method provided in this embodiment, due to the message that base station receives be fused data message cascade with
SDAP agreement, by message to be transmitted and its length, a message of the generation that is packaged together in such a way that front and back connects is being parsed
Downstream protocol (such as PDCP/RLC/MAC) header overhead is saved in the process, to improve data transmission 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.
In one embodiment, as shown in fig. 7, providing a kind of data transmission device, which includes: that quantity obtains mould
Block 10, generation module 11 and sending module 12, wherein
Quantity obtains module 10, and the quantity of current message to be transmitted is obtained for terminal;
Generation module 11, for when the quantity of current message to be transmitted is at least two, terminal, will according to SDAP agreement
Current message to be transmitted generates a SDAP message;SDAP message include reserved bit identification, each message content to be transmitted and respectively to
Transmitting message length;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
SDAP message is sent to base station for terminal by sending module 12, and SDAP message is used to indicate base station according to reserved
Bit identification and each message length to be transmitted parse corresponding message content to be transmitted.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, as shown in figure 8, providing a kind of data transmission device, above-mentioned generation module 11 includes: ratio
Compared with unit 111, the first encapsulation unit 112 and the second encapsulation unit 113, wherein
Comparing unit 111, quantity and preset threshold for the relatively more current message to be transmitted of terminal;
First encapsulation unit 112, if the quantity for current message to be transmitted is greater than or equal to preset threshold, terminal according to
The length of the message to be transmitted of preset threshold corresponding number and each message to be transmitted is carried out stacked package, obtained by SDAP agreement
SDAP message;
Second encapsulation unit 113, if being less than preset threshold for current message amount to be transmitted, terminal is assisted according to SDAP
The length of institute's available for transmission message and each message to be transmitted is carried out stacked package, obtains SDAP message by view.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, as shown in figure 9, providing a kind of data transmission device, the device further include: Relation acquisition
Module 13 and determining module 14, wherein
Relation acquisition module 13 obtains the quantity of current message to be transmitted and 1 size relation for terminal;
Generation module 11, if being greater than 1 for the quantity that size relation is current message to be transmitted, terminal execution will at least
The step of two messages to be transmitted generate a SDAP message;
Determining module 14, if being equal to 1 for the quantity that size relation is current message to be transmitted, terminal will be current to be passed
Defeated message is determined as SDAP message.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, when the quantity of above-mentioned current message to be transmitted is equal to 1, reserved place is identified as the first value;When
When the quantity of preceding message to be transmitted is greater than 1, reserved place is identified as second value;First value is different values from second value.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, sending module 12 is specifically used for that SDAP message is sent to first by the first SDAP module
SDAP message is sent to the 2nd PDCP module by PDCP module, the first PDCP module, and the 2nd PDCP module sends SDAP message
To the 2nd SDAP module.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, as shown in Figure 10, a kind of data transmission device is provided, which includes: receiving module
15 and parsing module 16, wherein
Receiving module 15 receives the SDAP message that terminal is sent for base station;SDAP message is terminal according to SDAP agreement,
The SDAP message that current message to be transmitted is generated;SDAP message include reserved bit identification, each message content to be transmitted and
Each message length to be transmitted;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
Parsing module 16 parses corresponding to be transmitted for base station according to reserved bit identification and each message length to be transmitted
Message content.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, as shown in figure 11, above-mentioned parsing module 16 includes: judging unit 161, resolution unit 162
With determination unit 163, wherein
Judging unit 161 judges whether SDAP message is at least two reports to be transmitted according to reserved bit identification for base station
What text generated;
Resolution unit 162, if being that at least two messages to be transmitted generate for SDAP message, base station is according to each to be transmitted
Message length parses corresponding message content to be transmitted;
Determination unit 163, if not being that at least two messages to be transmitted generate for SDAP message, the 2nd SDAP module will
The content of SDAP message is determined as message content to be transmitted.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, when the quantity of above-mentioned current message to be transmitted is equal to 1, reserved place is identified as the first value;When
When the quantity of preceding message to be transmitted is greater than 1, reserved place is identified as second value;First value is different values from second value;Then judge
If unit 161, which is specifically used for reserved place, is identified as second value, base station determines that SDAP message is that at least two messages to be transmitted generate
's;If reserved place is identified as the first value, it is that at least two messages to be transmitted generate that base station, which determines SDAP message not,.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
In one embodiment, receiving module 15 is specifically used for receiving the transmission of the 2nd PDCP module by the 2nd SDAP module
SDAP message;SDAP message is the message that the first SDAP module is sent to the 2nd PDCP mould by the first PDCP module.
A kind of data transmission device provided by the above embodiment, implementing principle and technical effect and above method embodiment
Similar, details are not described herein.
Specific about data transmission device limits the restriction that may refer to above for data transmission method, herein not
It repeats again.Modules in above-mentioned data transmission device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure is shown in Fig.12.The computer equipment includes the processor connected by system bus, memory, network interface, shows
Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment
Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer
Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter
The network interface for calculating machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor
To realize a kind of data transmission method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 12, only part relevant to application scheme
The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set
Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory
Computer program, the processor perform the steps of when executing computer program
Terminal obtains the quantity of current message to be transmitted;
When the quantity of current message to be transmitted is at least two, terminal, will current message to be transmitted according to SDAP agreement
Generate a SDAP message;SDAP message includes reserved bit identification, each message content to be transmitted and each message length to be transmitted;In advance
Stay bit identification for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
SDAP message is sent to base station by terminal, and SDAP message is used to indicate base station according to reserved bit identification and each to be transmitted
Message length parses corresponding message content to be transmitted.
Alternatively, the processor performs the steps of when executing computer program
Base station receives the SDAP message that terminal is sent;SDAP message is terminal according to SDAP agreement, will current report to be transmitted
The SDAP message that text generates;SDAP message includes that reserved bit identification, each message content to be transmitted and each message to be transmitted are long
Degree;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
Base station parses corresponding message content to be transmitted according to reserved bit identification and each message length to be transmitted.
A kind of computer equipment provided by the above embodiment, implementing principle and technical effect and above method embodiment class
Seemingly, details are not described herein.
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
Terminal obtains the quantity of current message to be transmitted;
When the quantity of current message to be transmitted is at least two, terminal, will current message to be transmitted according to SDAP agreement
Generate a SDAP message;SDAP message includes reserved bit identification, each message content to be transmitted and each message length to be transmitted;In advance
Stay bit identification for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
SDAP message is sent to base station by terminal, and SDAP message is used to indicate base station according to reserved bit identification and each to be transmitted
Message length parses corresponding message content to be transmitted.
Alternatively, the computer program performs the steps of when being executed by processor
Base station receives the SDAP message that terminal is sent;SDAP message is terminal according to SDAP agreement, will current report to be transmitted
The SDAP message that text generates;SDAP message includes that reserved bit identification, each message content to be transmitted and each message to be transmitted are long
Degree;Reserved bit identification is for distinguishing whether SDAP message is that at least two messages to be transmitted generate;
Base station parses corresponding message content to be transmitted according to reserved bit identification and each message length to be transmitted.
A kind of computer readable storage medium provided by the above embodiment, implementing principle and technical effect and the above method
Embodiment is similar, and details are not described herein.
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
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including 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.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.