CN110474924B - Data transmission method and device, computer equipment and storage medium - Google Patents

Data transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110474924B
CN110474924B CN201910875277.1A CN201910875277A CN110474924B CN 110474924 B CN110474924 B CN 110474924B CN 201910875277 A CN201910875277 A CN 201910875277A CN 110474924 B CN110474924 B CN 110474924B
Authority
CN
China
Prior art keywords
transmitted
sdap
message
messages
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910875277.1A
Other languages
Chinese (zh)
Other versions
CN110474924A (en
Inventor
胡呈欣
郑自永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201910875277.1A priority Critical patent/CN110474924B/en
Publication of CN110474924A publication Critical patent/CN110474924A/en
Priority to PCT/CN2019/124687 priority patent/WO2021051673A1/en
Application granted granted Critical
Publication of CN110474924B publication Critical patent/CN110474924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

When a terminal detects that the number of the current messages to be transmitted is at least two, the messages to be transmitted are generated into one message according to an SDAP protocol, and the message is sent to a base station, wherein when the terminal generates one message, the content and the length of the at least two messages to be transmitted are packaged into one message, so that the head overhead required when a downstream protocol of the SDAP protocol processes data is greatly reduced, and the efficiency of data transmission is improved.

Description

Data transmission method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a data transmission method, an apparatus, a computer device, and a storage medium.
Background
In the technical field of fifth generation mobile communication systems (5G), a Service Data Adaptation Protocol (SDAP) belongs to a new generation communication Protocol, one end of which is connected to a Packet Data Convergence Protocol (PDCP), the other end of which is connected to a GPRS Tunneling Protocol (GTP), and both ends of which respectively carry transceiving processing of a wireless side and a wired side of Data transmission.
The SDAP module in 5G is used to implement forwarding of user data, mapping between Quality of Service (QoS) flows and radio bearers, and implementing QoS flow identification (QoS flow ID, QFI) in uplink and downlink packets. In the uplink data transmission process, a large number of small messages are often generated, for example, in the FTP service downloading, a large number of uplink response small messages are generated, when a large number of uplink small messages are processed, data packets need to be processed in each layer of protocol, so that the overhead of each layer of protocol head is large, and the problem of low data transmission efficiency exists in the scene of a large number of uplink small messages.
Disclosure of Invention
Based on this, it is necessary to provide a data transmission method, an apparatus, a computer device, and a storage medium for solving the technical problem of low data transmission efficiency in the above scenario where a large number of small uplink messages exist.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes:
the terminal obtains the number of the current messages to be transmitted;
when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the current messages to be transmitted according to the SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the terminal sends the SDAP message to the base station, wherein the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
In one embodiment, the generating, by the terminal, an SDAP message from a current to-be-transmitted message according to an SDAP protocol includes:
the terminal compares the number of the current messages to be transmitted with a preset threshold value;
if the number of the current messages to be transmitted is larger than or equal to a preset threshold value, the terminal stacks and encapsulates the messages to be transmitted with the number corresponding to the preset threshold value and the length of each message to be transmitted according to the SDAP protocol to obtain the SDAP messages;
and if the number of the current messages to be transmitted is smaller than a preset threshold value, the terminal stacks and encapsulates all the messages to be transmitted and the lengths of all the messages to be transmitted according to the SDAP protocol to obtain the SDAP messages.
In one embodiment, before the terminal generates an SDAP message from a current message to be transmitted according to an SDAP protocol, the method includes:
the terminal obtains the size relation between the number of the current messages to be transmitted and 1;
if the size relationship is that the number of the current messages to be transmitted is larger than 1, the terminal executes the step of generating an SDAP message from the current messages to be transmitted;
and if the size relationship is that the number of the current messages to be transmitted is equal to 1, the terminal determines the current messages to be transmitted as SDAP messages.
In one embodiment, when the number of the current messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values.
In one embodiment, the terminal includes a first SDAP module and a first PDCP module, and the base station includes a second SDAP module and a second PDCP module;
the sending, by the terminal, the SDAP message to the base station includes:
the first SDAP module sends the SDAP message to the first PDCP module, the first PDCP module sends the SDAP message to the second PDCP module, and the second PDCP module sends the SDAP message to the second SDAP module.
In a second aspect, an embodiment of the present application provides a data transmission method, where the method includes:
a base station receives an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the base station analyzes the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
In one embodiment, the analyzing, by the base station, the corresponding content of the message to be transmitted according to the reserved bit identifier and the length of each message to be transmitted includes:
the base station judges whether the SDAP message is generated by at least two messages to be transmitted according to the reserved bit identifier;
if the SDAP message is generated by at least two messages to be transmitted, the base station analyzes the corresponding message content to be transmitted according to the length of each message to be transmitted;
and if the SDAP message is not generated by at least two messages to be transmitted, the base station determines the content of the SDAP message as the content of the message to be transmitted.
In one embodiment, when the number of the current messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values.
In one embodiment, the step of determining, by the base station, whether the SDAP packet is generated by at least two packets to be transmitted according to the reserved bit identifier includes:
if the reserved bit identifier is a second value, the base station determines that the SDAP message is generated by at least two messages to be transmitted;
if the reserved bit mark is a first value, the base station determines that the SDAP message is not generated by at least two messages to be transmitted.
In one embodiment, the terminal includes a first SDAP module and a first PDCP module, and the base station includes a second SDAP module and a second PDCP module;
the base station receives the SDAP message sent by the terminal, including:
the second SDAP module receives the SDAP message sent by the second PDCP module; the SDAP message is a message sent by the first SDAP module to the second PDCP module through the first PDCP module.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, including:
the quantity obtaining module is used for obtaining the quantity of the current messages to be transmitted by the terminal;
the generating module is used for generating an SDAP message from the current message to be transmitted according to the SDAP protocol by the terminal when the number of the current message to be transmitted is at least two; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the sending module is used for sending the SDAP message to the base station by the terminal, and the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, including:
a receiving module, configured to receive, by a base station, an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the analysis module is used for analyzing the corresponding message content to be transmitted by the base station according to the reserved bit identifier and the length of each message to be transmitted.
In a fifth aspect, the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the methods provided in the embodiments of the first aspect and the second aspect when executing the computer program.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the methods provided in the embodiments of the first and second aspects.
According to the data transmission method, the data transmission device, the computer equipment and the storage medium, when the terminal detects that the number of the current messages to be transmitted is at least two, the at least two messages to be transmitted are generated into one message according to the SDAP protocol, and the one message is sent to the base station, wherein when the terminal generates one message, the content and the length of the at least two messages to be transmitted are packaged into one message, so that the head overhead required when a downstream protocol of the SDAP protocol processes data is greatly reduced, and the data transmission efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a data transmission method according to an embodiment;
fig. 2 is a flowchart illustrating a data transmission method according to an embodiment;
FIG. 2a illustrates an original SDAP protocol upstream header and SDAP PDU format, according to an embodiment;
fig. 2b is a format of an extended SDAP protocol uplink header and an SDAP PDU according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 4 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 4a is a complete schematic diagram of a terminal-side data transmission method according to an embodiment;
fig. 5 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 6 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 6a is a complete schematic diagram of a base station-side data transmission method according to an embodiment;
fig. 7 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 8 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 9 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 10 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 11 is a block diagram of a data transmission apparatus according to an embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data transmission method provided by the present application can be applied to the application environment shown in fig. 1, where a terminal is connected to a base station, and the terminal and the base station perform data interaction. The terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. Wherein the base station may be a 5G base station. The terminal and the base station are used for executing the data transmission method provided by the application in the data interaction process.
Embodiments of the present application provide a data transmission method, an apparatus, a computer device, and a storage medium, and a technical solution and how to solve the above technical problem will be specifically described in detail below with reference to the accompanying drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the data transmission method provided in the present application, the execution main bodies of fig. 2 to fig. 4 are terminals, and the execution main bodies of fig. 5 to fig. 6 are base stations, where the execution main bodies of fig. 2 to fig. 6 may also be data transmission devices, and the data transmission devices may be implemented as part or all of the terminals or the base stations by software, hardware, or a combination of software and hardware.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
The following description will first be made of an embodiment in which the execution body is a terminal.
In an embodiment, fig. 2 provides a Data transmission method, where this embodiment relates to a specific process in which a terminal generates, according to a Service Data Adaptation Protocol (SDAP) Protocol, at least two messages to be transmitted into an SDAP message according to the SDAP Protocol when the number of the current messages to be transmitted is at least two, and sends the SDAP message to a base station, as shown in fig. 2, the method includes:
s101, the terminal obtains the number of the current messages to be transmitted.
In this embodiment, the current to-be-transmitted message represents a message that needs to be transmitted by the terminal at the current time, and for example, the to-be-transmitted message may be stored in a cache region of the terminal, and when the terminal needs to obtain the current number of the to-be-transmitted messages, the number of all the to-be-transmitted messages may be directly extracted from the cache region. The terminal can also store the specific quantity of all messages to be transmitted at the current moment and update the quantity in real time, so that the quantity can be directly obtained when the terminal obtains the quantity of the messages to be transmitted.
S102, when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the current messages to be transmitted according to the SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated for at least two messages to be transmitted.
Based on the number of the messages to be transmitted obtained in the step S101, when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the at least two messages to be transmitted according to the SDAP protocol. It can be understood that, when the terminal obtains the number of the current messages to be transmitted, it may obtain all the messages to be transmitted together, and when the terminal detects that the number of the current messages to be transmitted is at least two or more, it generates one message from the at least two messages to be transmitted, wherein, when the terminal generates the message, it generates one SDAP message from the at least two messages to be transmitted according to the SDAP protocol, wherein the generated one SDAP message includes reserved bit identifiers, contents of each of the at least two messages to be transmitted, and length of each message to be transmitted, wherein the reserved bit identifiers are used to distinguish whether the SDAP message is one of identifiers generated for the at least two messages to be transmitted, and different reserved bit identifiers indicate different situations, for example, when the reserved bit identifier is 0, it indicates that the one SDAP message is generated from one message to be transmitted, when the reserved bit mark is 1, it indicates that the SDAP message is generated by at least two messages to be transmitted. Providing an embodiment for the corresponding relationship between the reserved bit identifier and the number of the messages to be transmitted, wherein optionally, if the number of the messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values. The first value and the second value respectively represent that the number of the messages to be transmitted is equal to 1 or greater than 1, where greater than 1 is the case of at least two messages mentioned in the above embodiments; when the number of the messages to be transmitted is smaller than 1, that is, when the number of the messages to be transmitted is 0, the situation is not processed.
For a newly added SDAP protocol in 5G, a head field in an uplink service of the SDAP protocol has 1bit reservation, so that the SDAP protocol can be expanded and upgraded and supports new functions. The format of the SDAP Protocol upstream header and the SDAP Protocol Data Unit (PDU) is shown in fig. 2a, where the meaning of each field in the figure is shown in table 1 below:
TABLE 1
Figure BDA0002204096380000071
Based on the uplink head reserved field of the SDAP protocol, in practical applications, the embodiment of this step encapsulates multiple uplink messages to be transmitted and length indications thereof into one message in a front-to-back connection manner, and the format of the extended uplink head of the SDAP protocol and the format of the SDAP data PDU are shown in fig. 2b, which adds the length of each message on the basis of fig. 2 a.
S103, the terminal sends the SDAP message to the base station, and the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
In this step, the terminal sends the one SDAP message generated in the step S102 to the base station, where after the terminal sends the one SDAP message to the base station, the base station may parse the corresponding message content to be transmitted according to the reserved bit identifier in the one message and the length of each message to be transmitted, so as to complete transmission.
In the existing 5G communication protocol, the support of the RLC (radio link control protocol) on data series connection and cascade connection is removed, but in practical application, a scene of a large number of small messages often appears in an uplink process, so that the overhead of protocol headers at each layer is high in proportion, and the data transmission efficiency is too low. Specifically, according to the data transmission method provided in this embodiment, when the terminal detects that the number of the current messages to be transmitted is at least two, a message is generated from the at least two messages to be transmitted according to the SDAP protocol, and the message is sent to the base station, where when the terminal generates a message, the contents and length of the at least two messages to be transmitted are encapsulated in a message, so as to greatly reduce the overhead of the header required when the downstream protocol of the SDAP protocol processes data, thereby improving the efficiency of data transmission.
On the basis of the above embodiment, an embodiment of the present application further provides a data transmission method, which relates to a specific process in which a terminal generates at least two current messages to be transmitted into an SDAP message, as shown in fig. 3, where the step S102 includes:
s201, the terminal compares the number of the current messages to be transmitted with a preset threshold value.
In this embodiment, it is determined that the number of the current messages to be transmitted is greater than 1, that is, at least two messages are present, but in practical application, a threshold value is usually set for controlling the maximum number of the messages. Therefore, in this step, the terminal needs to compare the relationship between the current number of the messages to be transmitted and a preset threshold, where the preset threshold is a preset threshold, that is, the preset threshold is the maximum number of the messages to be transmitted allowed by the terminal when generating an SDAP message. The specific value of the preset threshold is not limited in this embodiment, and may be determined according to actual conditions, for example, 5 or 10.
S202, if the number of the current messages to be transmitted is larger than or equal to a preset threshold value, the terminal stacks and encapsulates the messages to be transmitted with the number corresponding to the preset threshold value and the length of each message to be transmitted according to the SDAP protocol to obtain the SDAP messages.
Based on the above S201, after the terminal compares the relationship between the current number of the messages to be transmitted and the preset threshold, if the current number of the messages to be transmitted is greater than or equal to the preset threshold, the terminal stacks and encapsulates the content of the number of the messages to be transmitted corresponding to the preset threshold and the length of each message to be transmitted to obtain an SDAP message, where the terminal stacks and encapsulates the number of the messages to be transmitted corresponding to the preset threshold and the length of each message to be transmitted, and stacks and encapsulates the messages to be transmitted in a message in a front-back connection manner, so that the data messages can be smoothly connected in series and cascaded again.
S203, if the number of the messages to be transmitted is smaller than the preset threshold value, the terminal stacks and encapsulates all the messages to be transmitted and the lengths of all the messages to be transmitted according to the SDAP protocol to obtain the SDAP messages.
In the step, after the terminal compares the relation between the number of the messages to be transmitted currently and the preset threshold, if the comparison result is that the number of the messages to be transmitted currently is smaller than the preset threshold, the terminal stacks and packages all the messages to be transmitted and the lengths of all the messages to be transmitted according to the SDAP protocol to obtain the SDAP message. When the number of the messages to be transmitted is less than the preset threshold value, the content of all the messages to be transmitted and the length of each message are directly stacked and packaged in one message in a front-back connection mode without screening the number.
In the data transmission method provided by this embodiment, a situation that a terminal generates one message from at least two messages to be transmitted is divided into two scenarios by setting a preset threshold, where one scenario is that the number of the current messages to be transmitted is too large and exceeds the preset threshold, and the other scenario is that the number of the current messages to be transmitted does not exceed the preset threshold; the method comprises the steps that the terminal selects different numbers of messages to be transmitted to be stacked and packaged according to two different scenes, and each generated SDAP message is generated by a proper number of messages to be transmitted, so that the situation that the number of the messages to be transmitted is too large and one generated message is too large is avoided, and the method that the terminal generates one message from at least two messages to be transmitted is effectively realized.
In an actual scenario, except for the case where the terminal described in the above embodiment generates one packet for at least two packets to be transmitted, there is also a case where the number of packets to be transmitted is 1, and therefore, when the number of packets to be transmitted is 1, how the terminal performs data transmission, and a specific process in which the terminal distinguishes the two cases according to the current number of packets to be transmitted is provided in this application, a data transmission method is provided in this embodiment, which is performed before the terminal generates one SDAP packet for at least two packets to be transmitted after acquiring the current number of packets to be transmitted, as shown in fig. 4, the method includes:
s301, the terminal obtains the size relation between the number of the current messages to be transmitted and 1.
In this embodiment, after the terminal obtains the number of the current messages to be transmitted in step S101, the size relationship between the number of the current messages to be transmitted and 1 is compared, and the size relationship has three conditions: the first is the condition that the number of the messages to be transmitted is more than 1, namely the number of the messages to be transmitted is at least two; the second is that the number of the messages to be transmitted is equal to 1; and the third is that the number of the messages to be transmitted is less than 1, namely, no message to be transmitted exists currently, and the process is finished directly without processing the situation.
S302, if the size relationship is that the number of the current messages to be transmitted is larger than 1, the terminal executes the step of generating an SDAP message from the current messages to be transmitted.
In this step, in the case that the size relationship is that the number of the current messages to be transmitted is greater than 1, the terminal directly executes the step of generating one SDAP message from at least two messages to be transmitted according to the manner described in the above embodiment, which is not described herein again.
S303, if the size relationship is that the number of the current messages to be transmitted is equal to 1, the terminal determines the current messages to be transmitted as SDAP messages.
In this step, the size relationship is that the number of the current messages to be transmitted is equal to 1, in this case, it indicates that only one message needs to be transmitted, and the terminal directly determines the message as the SDAP message to be transmitted finally, without performing a stack encapsulation operation.
In the data transmission method provided by this embodiment, after acquiring the number of the current messages to be transmitted, the terminal determines whether the number is greater than 1 or equal to 1 according to the number, and then executes different operations according to different situations, as long as the messages during final transmission are all one message, so that the situations are distinguished, the operation is performed specifically, and the processing resources of the terminal are greatly saved.
In addition, in the data transmission method provided by the present application, data interaction between the terminal and the base station may be specifically performed in the internal protocol module, in some scenarios, the terminal includes a first SDAP module and a first PDCP module, and the base station includes a second SDAP module and a second PDCP module; one implementation way for the terminal to send the SDAP packet to the base station includes: the first SDAP module sends the SDAP message to the first PDCP module, the first PDCP module sends the SDAP message to the second PDCP module, and the second PDCP module sends the SDAP message to the second SDAP module.
Specifically, the first SDAP module encapsulates a current Packet to be transmitted to generate an SDAP Packet, and sends the SDAP Packet to a first Packet Data Convergence Protocol (PDCP) module, so that the first PDCP module sends the SDAP Packet to the second PDCP module, and the second PDCP module sends the SDAP Packet to the second SDAP module. It should be noted that, this is only an example that the terminal and the base station respectively include an SDAP module and a PDCP module, and in practical applications, besides the SDAP module and the PDCP module, there are modules such as an RLC (Media Access Control Address) module and an MAC (Media Access Control layer) module, and during a message data transmission process, the message data needs to be transmitted through the modules such as the RLC module and the MAC module, which is not described herein.
Based on all the above embodiments, the present application provides an embodiment, which fully describes the data transmission method of the present application, and the embodiment uses the terminal side SDAP module as the sending end, as shown in fig. 4a, and includes the following specific steps:
s11, the SDAP module of the terminal detects the messages to be sent at the current moment and the number of the messages to be sent, and executes S12;
s12, judging whether the message quantity is larger than 0, if so, executing S13, otherwise, executing S19;
s13, judging whether the message quantity is larger than 1, if so, executing S14, otherwise, executing S15;
s14, judging whether the number of the messages is smaller than a preset threshold value N, if so, executing S16, otherwise, executing S17;
s15, packaging the current 1 message into SDAP head, setting the reserved bit as 0, and executing S18;
s16, stacking all messages and the lengths thereof, packaging the SDAP header, marking the reserved bit as 1, and executing S18;
s17, stacking the N messages and the lengths thereof, packaging the SDAP header, marking the reserved bit as 1, and executing S18;
s18, sending the packaged message to a PDCP module, and executing S12;
and S19, finishing the processing.
The data transmission method provided by this embodiment integrates data packet cascade and the SDAP protocol, and encapsulates a packet to be transmitted and its length in a front-to-back connection manner to generate a packet, thereby saving the overhead of the header of a downstream protocol (e.g., PDCP/RLC/MAC), and improving the data transmission efficiency.
The following describes an embodiment in which the execution subject is a base station, and it should be noted that, since the base station and the terminal interactively complete the data transmission method of the present application, for parts of contents in the embodiment of the base station side are consistent on the terminal side, which will not be described again, and reference may be made to the description of the terminal side.
In an embodiment, fig. 5 provides a data transmission method, where this embodiment relates to a specific process in which a base station receives an SDAP packet sent by a terminal and parses the packet, and as shown in fig. 5, the method includes:
s401, a base station receives an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated for at least two messages to be transmitted.
In this embodiment, the SDAP message sent by the base station receiving terminal is a message, and the SDAP message is a message generated by the terminal according to the SDAP protocol and the current message to be transmitted. The method comprises the following steps that a current message to be transmitted represents a message which needs to be transmitted by a terminal at the current moment, wherein when the terminal generates an SDAP message from the current message to be transmitted, the two conditions are included, and one condition is that when the number of the current message to be transmitted is larger than 1, namely when the number of the current message to be transmitted is at least two, the terminal stacks and encapsulates the at least two messages to be transmitted into one SDAP message; in another method, when the number of the current messages to be transmitted is equal to 1, the terminal directly generates the SDAP message from the message to be transmitted. For the specific process of how the terminal generates one message in two cases, reference may be made to the embodiment at the terminal side, which is not described herein again in this embodiment.
In addition, the reserved bit identifier in one of the SDAP messages is used to distinguish whether the one of the SDAP messages is generated as multiple messages to be transmitted, for example, if the reserved bit identifier is 0, it indicates that only one of the SDAP messages to be transmitted is not stacked and packaged, and if the reserved bit identifier is 1, it indicates that the one of the SDAP messages is formed by stacking and packaging at least two messages to be transmitted.
S402, the base station analyzes the corresponding message content to be transmitted according to the reserved bit identification and the length of each message to be transmitted.
Based on the message received in the step S401, the base station parses the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
In the data transmission method provided by this embodiment, the base station receives the SDAP message sent by the terminal, and the SDAP message is a SDAP message generated by the terminal according to the SDAP protocol, so that no matter how many messages the terminal currently waits to transmit, only one message is finally transmitted to the base station, which greatly reduces the overhead of the head required when the downstream protocol of the SDAP protocol processes data, thereby improving the efficiency of data transmission.
For a specific process of the base station analyzing the corresponding message content to be transmitted, see the embodiment shown in fig. 6, then the step S402 includes:
s501, the base station judges whether the SDAP message is generated by at least two messages to be transmitted according to the reserved bit identifier.
In this embodiment, the reserved bit identifier takes different values under different conditions, so that the base station can obtain the reserved bit identifier and determine whether the SDAP packet is generated for at least two packets to be transmitted according to the identifier.
Providing an embodiment for the relationship between the number of messages to be transmitted by the terminal and the reserved bit identifier, and optionally, when the number of the messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values. On the basis of the embodiment, the specific process that the base station judges whether the SDAP message is generated by at least two messages to be transmitted according to the reserved bit identifier includes: if the reserved bit mark is a second value, generating at least two messages to be transmitted by the SDAP message; if the reserved bit identifier is the first value, the SDAP message is not generated by at least two messages to be transmitted.
For example, when the number of the current messages to be transmitted is equal to 1, the reserved bit identifier is 0; when the number of the current messages to be transmitted is greater than 1, the reserved bit identifier is 1, and when the base station detects that the reserved bit identifier is 0, the base station can determine that the SDAP message is not generated by at least two messages to be transmitted, and if the reserved bit identifier is 1, the base station can determine that the SDAP message is generated by at least two messages to be transmitted.
S502, if the SDAP message is generated by at least two messages to be transmitted, the base station analyzes the corresponding message content to be transmitted according to the length of each message to be transmitted.
Based on the determination result in the step S501, if the SDAP packet is generated from at least two packets to be transmitted, the base station analyzes the corresponding packet content to be transmitted according to the length of each packet to be transmitted, that is, one packet length corresponds to one packet, so as to sequentially analyze the packet content.
S503, if the SDAP message is not generated by at least two messages to be transmitted, the base station determines the content of the SDAP message as the content of the message to be transmitted.
Based on the determination result in the step S501, if the SDAP packet is not generated from at least two packets to be transmitted, the base station directly determines the content of the currently received SDAP packet as the content of the packet to be transmitted.
In the data transmission method provided by this embodiment, the base station determines, according to different reserved bit identifiers, that an SDAP packet is generated from several packets to be transmitted, if the SDAP packet is generated from at least two packets, the contents of the packets to be transmitted need to be sequentially analyzed according to the lengths of the corresponding packets, and if only one packet is generated, the contents of the SDAP packet can be directly determined as the contents of the packets to be transmitted.
As in the terminal-side embodiment, the interaction of data between the terminal and the base station may be embodied in an internal protocol module, and in some scenarios, the terminal includes a first SDAP module and a first PDCP module, and the base station includes a second SDAP module and a second PDCP module; the specific process of the base station receiving the SDAP message sent by the terminal in step S401 includes: the second SDAP module receives the SDAP message sent by the second PDCP module; the SDAP message is a message sent by the first SDAP module to the second PDCP module through the first PDCP module.
In this embodiment, the second SDAP module receives an SDAP message sent by the second PDCP module, where the SDAP message is sent by the first SDAP module to the second PDCP module through the first PDCP module, and similarly, the description here is only given by taking an example in which the terminal and the base station respectively include the SDAP module and the PDCP module, and in practical application, the terminal and the base station may include other protocol layer modules to perform data transmission.
Based on all the embodiments of the base station side described above, the present application provides an embodiment to fully describe the data transmission method of the base station side of the present application, where the embodiment uses the SDAP module in the base station as the receiving end, as shown in fig. 6a, the method includes the following specific steps:
s21, receiving the message from PDCP, and then executing S22;
s22, removing the SDAP header of the message, and then executing S23;
s23, detecting whether the reserved bit mark is 1, if so, turning to S24, otherwise, executing S25;
s24, decapsulating the stacked sub-messages one by one according to the length, and then executing S25;
s25, sending the message (or sub-message) to the lower GTP module.
In the data transmission method provided by this embodiment, because the packet received by the base station is a packet generated by fusing the data packet cascade and the SDAP protocols and encapsulating the packet to be transmitted and the length thereof in a front-to-back connection manner, the overhead of the header of a downstream protocol (e.g., PDCP/RLC/MAC) is saved in the parsing process, thereby improving the data transmission efficiency.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a data transmission apparatus including: a quantity acquisition module 10, a generation module 11 and a sending module 12, wherein,
a quantity obtaining module 10, configured to obtain, by a terminal, the quantity of a current packet to be transmitted;
a generating module 11, configured to, when the number of the current to-be-transmitted messages is at least two, generate, by the terminal, an SDAP message from the current to-be-transmitted message according to the SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the sending module 12 is configured to send the SDAP message to the base station by the terminal, where the SDAP message is used to instruct the base station to analyze corresponding contents of the message to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, as shown in fig. 8, there is provided a data transmission apparatus, where the generating module 11 includes: a comparison unit 111, a first encapsulation unit 112, and a second encapsulation unit 113, wherein,
a comparing unit 111, configured to compare, by the terminal, the number of current messages to be transmitted with a preset threshold;
a first encapsulating unit 112, configured to, if the number of the current messages to be transmitted is greater than or equal to a preset threshold, stack and encapsulate, by the terminal, the messages to be transmitted and the lengths of the messages to be transmitted, where the number of the messages to be transmitted corresponds to the preset threshold, according to an SDAP protocol, so as to obtain an SDAP message;
the second encapsulating unit 113 is configured to, if the number of the current messages to be transmitted is smaller than a preset threshold, stack and encapsulate all the messages to be transmitted and the lengths of the messages to be transmitted by the terminal according to the SDAP protocol, so as to obtain an SDAP message.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, as shown in fig. 9, there is provided a data transmission apparatus, further comprising: a relationship acquisition module 13 and a determination module 14, wherein,
a relation obtaining module 13, configured to obtain, by the terminal, a size relation between the number of the current packets to be transmitted and 1;
a generating module 11, configured to, if the size relationship indicates that the number of the current messages to be transmitted is greater than 1, perform, by the terminal, a step of generating one SDAP message from at least two messages to be transmitted;
the determining module 14 is configured to determine, by the terminal, the current packet to be transmitted as the SDAP packet if the size relationship indicates that the number of the current packets to be transmitted is equal to 1.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In an embodiment, when the number of the current messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In an embodiment, the sending module 12 is specifically configured to send the SDAP message to the first PDCP module through the first SDAP module, where the first PDCP module sends the SDAP message to the second PDCP module, and the second PDCP module sends the SDAP message to the second SDAP module.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, as shown in fig. 10, there is provided a data transmission apparatus including: a receiving module 15 and an analyzing module 16, wherein,
a receiving module 15, configured to receive, by a base station, an SDAP packet sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the analysis module 16 is used for analyzing the corresponding message content to be transmitted by the base station according to the reserved bit identifier and the length of each message to be transmitted.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, as shown in fig. 11, the parsing module 16 includes: a judging unit 161, a parsing unit 162, and a determining unit 163, wherein,
a determining unit 161, configured to determine, by the base station, whether the SDAP packet is generated by at least two packets to be transmitted according to the reserved bit identifier;
the parsing unit 162 is configured to, if the SDAP packet is generated from at least two packets to be transmitted, parse, by the base station, the corresponding packet content to be transmitted according to the length of each packet to be transmitted;
the determining unit 163 is configured to, if the SDAP packet is not generated by at least two packets to be transmitted, determine the content of the SDAP packet as the content of the packet to be transmitted by the second SDAP module.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In an embodiment, when the number of the current messages to be transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the messages to be transmitted is larger than 1, the reserved bit identifier is a second value; the first value and the second value are different values; the determining unit 161 is specifically configured to determine that the SDAP packet is generated from at least two packets to be transmitted if the reserved bit identifier is the second value; if the reserved bit mark is a first value, the base station determines that the SDAP message is not generated by at least two messages to be transmitted.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In an embodiment, the receiving module 15 is specifically configured to receive, by the second SDAP module, an SDAP message sent by the second PDCP module; the SDAP message is a message sent by the first SDAP module to the second PDCP module through the first PDCP module.
The implementation principle and technical effect of the data transmission device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
For specific limitations of the data transmission device, reference may be made to the above limitations of the data transmission method, which are not described herein again. The modules in the data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data transmission method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
the terminal obtains the number of the current messages to be transmitted;
when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the current messages to be transmitted according to the SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the terminal sends the SDAP message to the base station, wherein the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
Alternatively, the processor implements the following steps when executing the computer program:
a base station receives an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the base station analyzes the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
the terminal obtains the number of the current messages to be transmitted;
when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the current messages to be transmitted according to the SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the terminal sends the SDAP message to the base station, wherein the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
Alternatively, the computer program when executed by a processor implements the steps of:
a base station receives an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to the SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted;
and the base station analyzes the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method of data transmission, the method comprising:
the terminal obtains the number of the current messages to be transmitted;
when the number of the current messages to be transmitted is at least two, the terminal generates an SDAP message from the current messages to be transmitted according to an SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted; the method for generating an SDAP message from the current message to be transmitted by the terminal according to the SDAP protocol is as follows: based on the SDAP protocol uplink head reserved field, packaging each current message to be transmitted and the length thereof into an SDAP message in a front-back connection mode;
the terminal sends the SDAP message to a base station, wherein the SDAP message is used for indicating the base station to analyze the corresponding message content to be transmitted according to the reserved bit identification and the length of each message to be transmitted;
the step of generating, by the terminal, an SDAP message from the current message to be transmitted according to an SDAP protocol includes:
the terminal compares the number of the current messages to be transmitted with a preset threshold value;
and if the number of the current messages to be transmitted is greater than or equal to the preset threshold value, the terminal stacks and packages the messages to be transmitted with the number corresponding to the preset threshold value and the respective lengths thereof according to the SDAP protocol to obtain the SDAP messages.
2. The method of claim 1, further comprising:
and if the number of the current messages to be transmitted is smaller than the preset threshold value, the terminal stacks and packages all the messages to be transmitted and the lengths of all the messages to be transmitted according to the SDAP protocol to obtain the SDAP messages.
3. The method according to claim 1, wherein before the terminal generates the current message to be transmitted into an SDAP message according to an SDAP protocol, the method comprises:
the terminal obtains the size relation between the number of the current messages to be transmitted and 1;
if the size relationship is that the number of the current messages to be transmitted is greater than 1, the terminal executes the step of generating an SDAP message from the current messages to be transmitted;
and if the size relationship is that the number of the current messages to be transmitted is equal to 1, the terminal determines the current messages to be transmitted as the SDAP messages.
4. The method according to any one of claims 1 to 3, wherein when the number of the messages to be currently transmitted is equal to 1, the reserved bit identifier is a first value; when the number of the current messages to be transmitted is greater than 1, the reserved bit identifier is a second value; the first value and the second value are different values.
5. The method of claim 1, wherein the terminal comprises a first SDAP module and a first PDCP module, and wherein the base station comprises a second SDAP module and a second PDCP module;
the sending, by the terminal, the SDAP message to the base station includes:
the first SDAP module sends the SDAP message to the first PDCP module, the first PDCP module sends the SDAP message to the second PDCP module, and the second PDCP module sends the SDAP message to the second SDAP module.
6. A method of data transmission, the method comprising:
a base station receives an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to an SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted; the method for generating an SDAP message from the current message to be transmitted by the terminal according to the SDAP protocol is as follows: based on the SDAP protocol uplink head reserved field, packaging each current message to be transmitted and the length thereof into an SDAP message in a front-back connection mode; the terminal generates an SDAP message from the current message to be transmitted according to an SDAP protocol, and the method comprises the following steps: the terminal compares the number of the current messages to be transmitted with a preset threshold value; if the number of the current messages to be transmitted is larger than or equal to the preset threshold value, the terminal stacks and packages the messages to be transmitted with the number corresponding to the preset threshold value and the respective lengths thereof according to the SDAP protocol to obtain the SDAP messages;
and the base station analyzes the corresponding message content to be transmitted according to the reserved bit identification and the length of each message to be transmitted.
7. The method of claim 6, wherein the analyzing, by the base station, the corresponding message content to be transmitted according to the reserved bit identifier and the length of each message to be transmitted includes:
the base station judges whether the SDAP message is generated by at least two messages to be transmitted according to the reserved bit identifier;
if the SDAP message is generated by at least two messages to be transmitted, the base station analyzes the corresponding message content to be transmitted according to the length of each message to be transmitted;
and if the SDAP message is not generated by at least two messages to be transmitted, the base station determines the content of the SDAP message as the content of the message to be transmitted.
8. The method of claim 7, wherein the step of the base station determining whether the SDAP packet is generated by at least two packets to be transmitted according to the reserved bit identifier comprises:
if the reserved bit identifier is a second value, the base station determines that the SDAP message is generated by at least two messages to be transmitted;
if the reserved bit identifier is a first value, the base station determines that the SDAP message is not generated by at least two messages to be transmitted; wherein the first value and the second value are different values.
9. The method of claim 6, wherein the terminal comprises a first SDAP module and a first PDCP module, and wherein the base station comprises a second SDAP module and a second PDCP module;
the step of receiving, by the base station, the SDAP packet sent by the terminal includes:
the second SDAP module receives the SDAP message sent by the second PDCP module; the SDAP message is a message sent by the first SDAP module to the second PDCP module through the first PDCP module.
10. A data transmission apparatus, characterized in that the apparatus comprises:
the quantity obtaining module is used for obtaining the quantity of the current messages to be transmitted by the terminal;
a generating module, configured to, when the number of the current to-be-transmitted messages is at least two, generate, by the terminal, one SDAP message from the current to-be-transmitted message according to an SDAP protocol; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted; the method for generating an SDAP message from the current message to be transmitted by the terminal according to the SDAP protocol is as follows: based on the SDAP protocol uplink head reserved field, packaging each current message to be transmitted and the length thereof into an SDAP message in a front-back connection mode;
a sending module, configured to send, by the terminal, the SDAP packet to a base station, where the SDAP packet is used to instruct the base station to analyze, according to the reserved bit identifier and the length of each to-be-transmitted packet, corresponding to a content of the to-be-transmitted packet;
wherein the generating module comprises a comparing unit and a first packaging unit,
the comparison unit is used for comparing the number of the current messages to be transmitted with a preset threshold value;
the first encapsulating unit is configured to, if the number of the current messages to be transmitted is greater than or equal to the preset threshold, stack and encapsulate the messages to be transmitted of the number corresponding to the preset threshold and their respective lengths according to the SDAP protocol, so as to obtain the SDAP message.
11. A data transmission apparatus, characterized in that the apparatus comprises:
a receiving module, configured to receive, by a base station, an SDAP message sent by a terminal; the SDAP message is an SDAP message generated by the terminal according to an SDAP protocol and the current message to be transmitted; the SDAP message comprises a reserved bit identifier, each message content to be transmitted and each message length to be transmitted; the reserved bit identifier is used for distinguishing whether the SDAP message is generated by at least two messages to be transmitted; the method for generating an SDAP message from the current message to be transmitted by the terminal according to the SDAP protocol is as follows: based on the SDAP protocol uplink head reserved field, packaging each current message to be transmitted and the length thereof into an SDAP message in a front-back connection mode; the terminal generates an SDAP message from the current message to be transmitted according to an SDAP protocol, and the method comprises the following steps: the terminal compares the number of the current messages to be transmitted with a preset threshold value; if the number of the current messages to be transmitted is larger than or equal to the preset threshold value, the terminal stacks and packages the messages to be transmitted with the number corresponding to the preset threshold value and the respective lengths thereof according to the SDAP protocol to obtain the SDAP messages;
and the analysis module is used for analyzing the corresponding message content to be transmitted by the base station according to the reserved bit identifier and the length of each message to be transmitted.
12. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 9 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN201910875277.1A 2019-09-17 2019-09-17 Data transmission method and device, computer equipment and storage medium Active CN110474924B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910875277.1A CN110474924B (en) 2019-09-17 2019-09-17 Data transmission method and device, computer equipment and storage medium
PCT/CN2019/124687 WO2021051673A1 (en) 2019-09-17 2019-12-11 Data transmission method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875277.1A CN110474924B (en) 2019-09-17 2019-09-17 Data transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110474924A CN110474924A (en) 2019-11-19
CN110474924B true CN110474924B (en) 2021-11-02

Family

ID=68515965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875277.1A Active CN110474924B (en) 2019-09-17 2019-09-17 Data transmission method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110474924B (en)
WO (1) WO2021051673A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474924B (en) * 2019-09-17 2021-11-02 京信网络***股份有限公司 Data transmission method and device, computer equipment and storage medium
CN115551006A (en) * 2021-06-30 2022-12-30 华为技术有限公司 Data transmission method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713415A (en) * 2016-11-14 2017-05-24 北京邮电大学 Data transmission method and system
CN108738080A (en) * 2017-04-20 2018-11-02 华为技术有限公司 The method and apparatus of data transmission
CN109996288A (en) * 2019-03-28 2019-07-09 京信通信***(中国)有限公司 Data Cascading Methods, device, computer equipment and the storage medium of rlc layer
CN110071935A (en) * 2019-04-30 2019-07-30 重庆邮电大学 Terminal assembles SDAP implementation methods in a kind of 5G system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281728A (en) * 2013-05-17 2013-09-04 福建星网锐捷网络有限公司 Message aggregation method and device and network equipment
WO2018231006A1 (en) * 2017-06-16 2018-12-20 Samsung Electronics Co., Ltd. Method and apparatus for rapidly reporting frequency measurement results in next generation mobile communication system
US10951533B2 (en) * 2017-09-27 2021-03-16 Qualcomm Incorporated Header formats in wireless communication
JP2021514135A (en) * 2018-02-15 2021-06-03 テレフオンアクチーボラゲット エルエム エリクソン(パブル) Methods to provide QFI harmonization between RAN and 5GC, as well as associated radio terminals, base stations, and core network nodes.
CN109688606B (en) * 2018-12-29 2022-03-25 京信网络***股份有限公司 Data processing method and device, computer equipment and storage medium
CN110474924B (en) * 2019-09-17 2021-11-02 京信网络***股份有限公司 Data transmission method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713415A (en) * 2016-11-14 2017-05-24 北京邮电大学 Data transmission method and system
CN108738080A (en) * 2017-04-20 2018-11-02 华为技术有限公司 The method and apparatus of data transmission
CN109996288A (en) * 2019-03-28 2019-07-09 京信通信***(中国)有限公司 Data Cascading Methods, device, computer equipment and the storage medium of rlc layer
CN110071935A (en) * 2019-04-30 2019-07-30 重庆邮电大学 Terminal assembles SDAP implementation methods in a kind of 5G system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SDAP Header Format;Convida Wireless;《3GPP TSG-RAN WG2 NR Ad Hoc,R2-1707351》;20170617;第1-5页 *

Also Published As

Publication number Publication date
CN110474924A (en) 2019-11-19
WO2021051673A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
CN110035437B (en) User plane data security protection method and device
CN110474924B (en) Data transmission method and device, computer equipment and storage medium
CN111988212B (en) Message transmission method and related device
CN110891324A (en) RRC (radio resource control) connection method, equipment and system
CN110557785A (en) Data distribution method and device based on MEC
AU2017436699B2 (en) Method for transmitting data, terminal device and network device
CN110290130B (en) VOLTE data transmission method and device, access network equipment and storage medium
US20240163674A1 (en) Communication method and apparatus
US20200204986A1 (en) Uplink Data Compression In Mobile Communications
US11570826B2 (en) Method and device for establishing session
CN110662257B (en) Message transmission method and device, computer equipment and storage medium
CN110401935B (en) NB-IOT (network node B-Internet of things) -based data transmission method and device, communication equipment and storage medium
CN107211404B (en) Data transmission method and device
CN114846774B (en) Communication method and device
CN109996288B (en) Data cascading method and device of RLC layer, computer equipment and storage medium
US20170041180A1 (en) Data processing method and apparatus, and control method and apparatus
CN109981229B (en) Data processing method and device of RLC layer, computer equipment and storage medium
WO2018058391A1 (en) Method for establishing bearer, radio access network device and customer terminal device
CN111064673B (en) User plane data integrity protection method and device, electronic equipment and medium
JP7166337B2 (en) DATA GENERATION METHOD, LOGICAL CHANNEL SETTING METHOD, TERMINAL DEVICE AND CHIP
CN108924060B (en) VOLTE data transmission method, device and system
CN112637894A (en) Resource allocation method, device, access network equipment and storage medium
EP3737204B1 (en) Mobile communication system, method and device
KR20120014572A (en) Techniques for supporting multiple protocols in wireless networks
CN115002833B (en) Ethernet frame transmitting method, receiving method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200113

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant