Communication method and communication apparatus
By encapsulating multiple data streams with a MAC layer header and an LC layer header, the problem of resource waste in wireless communication is solved, transmission efficiency is improved, and resources are saved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2026-03-26
AI Technical Summary
In wireless communication, existing technologies waste resources by encapsulating different protocol headers for each data, which is especially inefficient when transmitting small data batches.
A communication method and apparatus are adopted to reduce the amount of information in the protocol header and save transmission resources by encapsulating multiple data with a MAC layer header and an LC layer header.
By reducing the amount of information in the protocol header, the efficiency of data transmission is improved and transmission resources are saved, especially in scenarios involving small data packets where there is a significant gain.
Smart Images

Figure CN2025122862_26032026_PF_FP_ABST
Abstract
Description
Method and communication apparatus
[0001] The present application claims priority to the Chinese patent application No. 202411328025.4, filed on September 23, 2024, and entitled "Method and communication apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of communication, and more particularly, to a method and communication apparatus. BACKGROUND
[0003] In wireless communication, in order to ensure the reliability of transmission, the sending end can encapsulate the data to be transmitted, and correspondingly, the receiving end can obtain the data to be transmitted by decapsulation. Since different data has different serial numbers (SN), the sending end needs to encapsulate different protocol headers for different data.
[0004] However, this way will cause unnecessary waste of resources. SUMMARY
[0005] The present application provides a method and communication apparatus for communication, which can save transmission resources.
[0006] In a first aspect, a method for communication is provided, which can be executed by a second communication apparatus or a component (such as a chip or circuit or chip system) of the second communication apparatus.
[0007] The method comprises: determining a media access control (MAC) layer protocol data unit (PDU), the MAC layer PDU comprising one MAC layer header, one link control (LC) layer header and a plurality of data, the plurality of data having different serial numbers; and outputting the MAC layer PDU.
[0008] Based on the above scheme, when encapsulating data, the second communication apparatus can encapsulate one MAC layer header and one LC layer header for the plurality of data, so that the first PDU comprises one MAC layer header, one LC layer header and the plurality of data. In this way, the amount of information occupied by the protocol header can be reduced, and transmission resources can be saved.
[0009] In some implementations in combination with the first aspect, the LC layer header comprises first indication information, the first indication information being used to indicate that the MAC layer PDU comprises the plurality of data.
[0010] Based on the above scheme, the LC header can include an indication of whether the first PDU includes multiple data, so that the receiving end can determine the number of data in the PDU, facilitating the receiving end to parse.
[0011] In combination with the first aspect, in some implementations, the LC header includes second indication information, the second indication being used to indicate whether the lengths of the multiple data are the same.
[0012] Based on the above scheme, the LC header can include an indication of whether the lengths of the multiple data are the same, so that the receiving end can determine the length of the data in the PDU, facilitating the receiving end to parse.
[0013] As an example, if the second indication information indicates that the lengths of the multiple data are the same, the MAC layer PDU includes one first length information, the first length information being used to indicate the length of the multiple data.
[0014] Based on the above scheme, when the first communication device learns from the LC header that the lengths of the multiple data are the same, the first communication device can further learn the length of each data according to the one first length information, so that the data in the first PDU can be parsed more quickly, improving the efficiency of parsing.
[0015] In addition, when the lengths of the multiple data are the same, by carrying one first length information, the amount of data of the non-data part can be reduced, transmission resources are saved, and in a large number of small data packet transmission scenarios with the same length, there is obvious gain.
[0016] As another example, if the second indication information indicates that the lengths of the multiple data are different, the MAC layer PDU includes multiple first length information, and the multiple first length information is used to indicate the length of each of the multiple data.
[0017] Based on the above scheme, when the first communication device learns from the LC header that the lengths of the multiple data are different, the first communication device can further learn the length of each data according to each first length information, so that the data in the first PDU can be parsed more quickly, improving the efficiency of parsing.
[0018] In combination with the first aspect, in some implementations, the MAC layer header includes second length information, the second length information being used to indicate the total length of the fields in the MAC layer PDU except the MAC layer header.
[0019] In combination with the first aspect, in some implementations, the sequence numbers of the multiple data are continuous, and the MAC layer PDU includes the sequence number of the first data in the multiple data.
[0020] In this implementation, the sequence numbers of the data in the MAC layer PDU except the first data are determined according to the sequence number of the first data.
[0021] Based on the above scheme, when the SNs of the plurality of data are continuous, the first PDU can only include the SN of the first data in the plurality of data, and the SNs of the data other than the first data in the first PDU can be determined according to the SN of the first data, so that the amount of information of the non-data part of the first PDU can be further reduced, and transmission resources can be saved.
[0022] In combination with the first aspect, in some implementations, the sequence numbers of the plurality of data are not continuous, and the MAC layer PDU includes the sequence number of each data in the plurality of data.
[0023] Based on the above scheme, when the SNs of the plurality of data are not continuous, the first PDU can include the SN of each data in the plurality of data, so that the receiving end can be facilitated to analyze and be simple and efficient.
[0024] In combination with the first aspect, in some implementations, the LC layer header includes a segment offset value of the first data in the plurality of data.
[0025] Illustratively, the MAC layer PDU includes one integrity protection information, and the integrity protection information is used to verify the integrity of the plurality of data.
[0026] Illustratively, the LC layer header includes one upper layer protocol indication information, and the upper layer protocol indication information is used to indicate the upper layer protocol layer of the plurality of data.
[0027] The second aspect provides a communication method, which can be executed by a first communication device or a component (such as a chip or a circuit or a chip system) of the first communication device.
[0028] The method includes: inputting a MAC layer PDU, the MAC layer PDU including one MAC layer header, one LC layer header and a plurality of data, the sequence numbers of the plurality of data being different; and parsing the MAC layer PDU to obtain the plurality of data.
[0029] Based on the above scheme, when the first communication device performs data unpacking, the plurality of data can be parsed and obtained from one PDU, and the PDU includes one MAC layer header and one LC layer header, so that the amount of information occupied by the protocol header can be reduced, and transmission resources can be saved.
[0030] In combination with the second aspect, in some implementations, the LC layer header includes first indication information, and the first indication information is used to indicate that the MAC layer PDU includes the plurality of data.
[0031] In combination with the second aspect, in some implementations, the LC layer header includes second indication information, and the second indication is used to indicate whether the lengths of the plurality of data are the same.
[0032] As an example, if the second indication information indicates that the lengths of the plurality of data are the same, the MAC layer PDU includes one first length information, and the first length information is used to indicate the length of the plurality of data.
[0033] As another example, if the second indication information indicates that the lengths of the plurality of data are different, the MAC layer PDU includes a plurality of first length information, and the plurality of first length information is respectively used to indicate the length of each of the plurality of data.
[0034] In combination with the second aspect, in some implementations, the MAC layer header includes second length information, and the second length information is used to indicate the total length of the fields in the MAC layer PDU except the MAC layer header.
[0035] Exemplarily, the MAC layer PDU is parsed, including: obtaining the plurality of data from the MAC layer PDU according to the second length information and the first length information respectively.
[0036] In combination with the second aspect, in some implementations, the sequence numbers of the plurality of data are continuous, and the MAC layer PDU includes the sequence number of the first data in the plurality of data.
[0037] In this implementation, the sequence numbers of the data in the MAC layer PDU except the first data are determined according to the sequence number of the first data.
[0038] In combination with the second aspect, in some implementations, the sequence numbers of the plurality of data are not continuous, and the MAC layer PDU includes the sequence number of each data in the plurality of data.
[0039] In combination with the second aspect, in some implementations, the LC layer header includes the segment offset value of the first data in the plurality of data.
[0040] Exemplarily, the MAC layer PDU includes one integrity protection information, and the integrity protection information is used to verify the integrity of the plurality of data.
[0041] Exemplarily, the LC layer header includes one upper layer protocol indication information, and the upper layer protocol indication information is used to indicate the upper layer protocol layer of the plurality of data.
[0042] The third aspect provides a communication device, which can be the second communication device or a component (such as a chip or circuit or chip system) of the second communication device.
[0043] The device includes: a processing unit configured to determine a MAC layer PDU, the MAC layer PDU including one MAC layer header, one LC layer header and a plurality of data, and the sequence numbers of the plurality of data being different; and a transceiver configured to output the MAC layer PDU.
[0044] In some implementations of the third aspect, the LC layer header includes first indication information, the first indication information being used to indicate that the MAC layer PDU includes multiple data.
[0045] In some implementations of the third aspect, the LC layer header includes second indication information, the second indication information being used to indicate whether lengths of the multiple data are same.
[0046] As an example, if the second indication information indicates that the lengths of the multiple data are same, the MAC layer PDU includes one first length information, the first length information being used to indicate the lengths of the multiple data.
[0047] As another example, if the second indication information indicates that the lengths of the multiple data are different, the MAC layer PDU includes multiple first length information, the multiple first length information being used to indicate the lengths of each of the multiple data respectively.
[0048] In some implementations of the third aspect, the MAC layer header includes second length information, the second length information being used to indicate a total length of fields in the MAC layer PDU except the MAC layer header.
[0049] In some implementations of the third aspect, the sequence numbers of the multiple data are continuous, and the MAC layer PDU includes the sequence number of a first data of the multiple data.
[0050] In this implementation, the sequence numbers of data in the MAC layer PDU except the first data are determined according to the sequence number of the first data.
[0051] In some implementations of the third aspect, the sequence numbers of the multiple data are not continuous, and the MAC layer PDU includes the sequence number of each data of the multiple data.
[0052] In some implementations of the third aspect, the LC layer header includes a segment offset value of a first data of the multiple data.
[0053] As an example, the MAC layer PDU includes one integrity protection information, the integrity protection information being used to verify integrity of the multiple data.
[0054] As an example, the LC layer header includes one upper layer protocol indication information, the upper layer protocol indication information being used to indicate an upper layer protocol layer of the multiple data.
[0055] A fourth aspect provides a communication apparatus, which can be a first communication apparatus or a component (e.g., a chip or a circuit or a chip system) of the first communication apparatus.
[0056] The device comprises: a transceiver unit configured to input a MAC layer PDU, the MAC layer PDU comprising one MAC layer header, one LC layer header, and a plurality of data, the plurality of data having different sequence numbers; and a processing unit configured to parse the MAC layer PDU to obtain the plurality of data.
[0057] In some implementations, the LC layer header comprises first indication information, the first indication information being used to indicate that the MAC layer PDU comprises the plurality of data.
[0058] In some implementations, the LC layer header comprises second indication information, the second indication being used to indicate whether the plurality of data has the same length.
[0059] As an example, if the second indication information indicates that the plurality of data has the same length, the MAC layer PDU comprises one first length information, the first length information being used to indicate the length of the plurality of data.
[0060] As another example, if the second indication information indicates that the plurality of data has different lengths, the MAC layer PDU comprises a plurality of first length information, the plurality of first length information being used to indicate the length of each of the plurality of data.
[0061] In some implementations, the MAC layer header comprises second length information, the second length information being used to indicate the total length of the fields in the MAC layer PDU except the MAC layer header.
[0062] The processing unit is configured to obtain the plurality of data from the MAC layer PDU according to the second length information and the first length information, respectively.
[0063] In some implementations, the sequence numbers of the plurality of data are continuous, and the MAC layer PDU comprises the sequence number of a first data in the plurality of data.
[0064] In this implementation, the sequence numbers of the data in the MAC layer PDU except the first data are determined according to the sequence number of the first data.
[0065] In some implementations, the sequence numbers of the plurality of data are not continuous, and the MAC layer PDU comprises the sequence number of each data in the plurality of data.
[0066] In some implementations, the LC layer header comprises a segment offset value of a first data in the plurality of data.
[0067] The MAC layer PDU comprises one integrity protection information, the integrity protection information being used to verify the integrity of the plurality of data.
[0068] Exemplarily, the LC layer header includes one upper layer protocol indication information, and the upper layer protocol indication information is used to indicate the upper layer protocol of the plurality of data.
[0069] In a fifth aspect, a communication apparatus is provided. The apparatus includes a memory configured to store a computer program or instructions; and at least one processor configured to execute the computer program or instructions stored in the memory to perform the method in any one of the aspects or the implementations thereof.
[0070] In an implementation form, the apparatus is the first communication apparatus or the second communication apparatus.
[0071] In another implementation form, the apparatus is a chip, a chip system or a circuit for the first communication apparatus or the second communication apparatus.
[0072] In a sixth aspect, a communication apparatus is provided. The apparatus includes at least one processor and a communication interface. The at least one processor is configured to acquire, through the communication interface, a computer program or instructions stored in a memory, to perform the method in any one of the aspects or the implementations thereof. The communication interface can be implemented by hardware or software.
[0073] In an implementation form, the apparatus further includes the memory.
[0074] In a seventh aspect, a processor is provided. The processor is configured to perform the method in any one of the aspects.
[0075] For the sending and acquiring / receiving operations involved in the processor, if no special description is made, or if it is not contrary to the actual role or inherent logic in the related description, it can be understood as the processor output and receive, input, etc. operations, and also can be understood as the sending and receiving operations performed by the radio frequency circuit and the antenna, and the present application does not limit this.
[0076] In an eighth aspect, a computer readable storage medium is provided. The computer readable medium stores program codes for execution by an apparatus. The program codes include codes for performing the method in any one of the aspects or the implementations thereof.
[0077] In a ninth aspect, a computer program product containing instructions is provided. When the instructions in the computer program product are run on a computer, the computer is caused to perform the method in any one of the aspects or the implementations thereof.
[0078] In a tenth aspect, a chip is provided. The chip includes a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface, and performs the method in any one of the aspects or the implementations thereof. The communication interface can be implemented by hardware or software.
[0079] Optionally, as an implementation form, the chip further comprises a memory, the memory storing a computer program or instructions, and the processor is configured to execute the computer program or instructions stored in the memory, and when the computer program or instructions are executed, the processor is configured to execute the method provided in any one of the aspects or the implementation forms thereof.
[0080] When the method provided in the application is executed by a chip, the number of chips for implementing the method provided in the application is not limited in the application, for example, the method can be executed by one chip, or executed by two or more chips. When the number of chips for implementing the method provided in the application is two or more, the chip manufacturers are not limited, and can be the same manufacturer or different manufacturers.
[0081] In a eleventh aspect, a computer program is provided, when running on a computer, causes the method provided in any one of the aspects or the implementation forms thereof to be executed.
[0082] In a twelfth aspect, a communication system is provided, comprising the first communication device or the second communication device described above.
[0083] It should be understood that the beneficial effects of the second aspect to the twelfth aspect and any implementation form thereof can refer to the first aspect and any implementation form thereof. BRIEF DESCRIPTION OF DRAWINGS
[0084] FIG. 1 is a schematic diagram of a network architecture suitable for embodiments of the application.
[0085] FIG. 2 is a schematic flowchart of a communication method provided in the application.
[0086] FIG. 3 is a schematic diagram of two protocol headers.
[0087] FIG. 4 is a schematic diagram of a data packet encapsulation process.
[0088] FIG. 5 is a schematic flowchart of a communication method 500 provided in the application.
[0089] FIG. 6 is a schematic diagram of a data encapsulation and decapsulation process.
[0090] FIGS. 7 to 10 are several schematic diagrams of data encapsulation and decapsulation provided in the application.
[0091] FIG. 11 is a schematic diagram of the relationship between a transport block and a PDU provided in the application.
[0092] FIGS. 12 and 13 are schematic diagrams of the structure of a communication device provided in embodiments of the application. DETAILED DESCRIPTION
[0093] The technical solutions in the application will be described below with reference to the accompanying drawings.
[0094] The technical solutions provided in the present application can be applied to various communication systems, for example, a 5th generation (5G) (or new radio (NR)) system, a long term evolution (LTE) system, an LTE frequency division duplex (FDD) system, an LTE time division duplex (TDD) system, and the like. The technical solutions provided in the present application can also be applied to device to device (D2D) communication, vehicle-to-everything (V2X) communication, machine to machine (M2M) communication, machine type communication (MTC), and an internet of things (IoT) communication system or other communication systems. In addition, the technical solutions provided in the present application support short distance communication.
[0095] Exemplarily, short distance communication can realize communication between electronic devices that are relatively close to each other. Currently, mainstream access technologies in short distance communication include wireless fidelity (Wi-Fi) technology, blueteeth technology, ZigBee technology, and the like. With the development of the internet of things, new application scenarios such as intelligent vehicles, smart homes, intelligent terminals, and intelligent manufacturing have emerged, and a new generation of short distance access technologies has emerged as the times require. Taking sparklink alliance access technology as an example, the sparklink alliance access technology includes but is not limited to: sparklink basic (SLB) access technology and sparklink low energy (SLE) access technology. The SLB access technology can support transmission of large-bandwidth services such as screen projection, virtual reality (VR), and vehicle-mounted communication, and the SLE access technology can support transmission of small-bandwidth, low-rate, and low-power services such as audio playback, keyboards, mice, and electronic pens. For convenience of description, the SLB access technology can be referred to as SLB and the SLE access technology can be referred to as SLE in the following embodiments. In addition, unless otherwise specified, the access technology mentioned in the following description refers to short distance access technology.
[0096] The embodiments of the present application can be applied to a wireless local area network (WLAN), for example, a wireless local area network (WLAN) supporting Institute of Electrical and Electronics Engineers (IEEE) 802.11 related standards, such as 802.11a / b / g standards, 802.11n standards, 802.11ac standards, 802.11ax standards (i.e., Wi-Fi 6, also known as high efficient (HE) standards), 802.11be standards (i.e., Wi-Fi 7, also known as extremely high throughput (EHT) standards), 802.11bn standards (i.e., Wi-Fi 8, also known as ultra high reliability (UHR) standards), or Wi-Fi 8 next generation standards, and the like, including 802.11ad, 802.11ay standards, and the like. The embodiments of the present application can also be applied to a wireless local area network system supporting integrated millimeter wave (IMMW), and can also be applied to a wireless local area network system supporting ultra wide band (UWB), such as 802.15 series standards, and can also be applied to a sensing system, such as 802.11bf series standards, or can be applied to wireless positioning, such as 802.11az, and the present application can also support sparklink, nearlink, and the like.
[0097] The above communication system to which the present application is applied is only illustrative, and the communication system to which the present application is applied is not limited thereto.
[0098] FIG. 1 is a schematic diagram of a communication system suitable for the embodiments of the present application. As shown in FIG. 1, the communication system 100 includes a sending end device 110 and a receiving end device 120. The sending end device 110 refers to a device that sends data, and the receiving end device 120 refers to a device that receives data.
[0099] It should be noted that FIG. 1 only takes the communication system 100 including one sending end device 110 and one receiving end device 120 as an example for illustration, but the communication system 100 is not limited to including more other devices, and the present application does not make specific limitation thereto.
[0100] Exemplarily, in embodiments of the present application, the sending-end device 110 or the receiving-end device 120 can be any kind of device with wireless transceiving function, for example, the sending-end device 110 is a radio access network (RAN) node or a terminal, and the receiving-end device 120 is a RAN node or a terminal.
[0101] In the present application, the RAN node, also referred to as a radio access network device, a RAN entity or an access node, is used to help terminals access a communication system through wireless means. In one application scenario, the RAN node can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next generation NodeB (gNB) in a 5G system, a base station in a future mobile communication system or an access node in a Wi-Fi system. The RAN node can be a macro base station, a micro base station or an indoor station, and can also be a relay node or a donor node. In another application scenario, the RAN node can be used to help terminals realize wireless access through cooperation of multiple RAN nodes, and different RAN nodes respectively implement part of the functions of a base station. For example, the RAN node can be a central unit (CU), a distributed unit (DU) or a radio unit (RU). Here, the CU implements the functions of the radio resource control protocol and the packet data convergence protocol (PDCP) of the base station, and can also implement the function of the service data adaptation protocol (SDAP); the DU implements the functions of the radio link control layer and the medium access control (MAC) layer of the base station, and can also implement part of the physical layer or the entire physical layer; the specific description of the above-mentioned protocol layers can be referred to related technical specifications. The RU can be used to implement the transceiving function of radio frequency signals. The CU and the DU can be two independent RAN nodes, or can be integrated in the same RAN node, such as integrated in a baseband unit (BBU). The RU can be included in a radio frequency device, such as included in a remote radio unit (RRU) or an active antenna unit (AAU). The CU can be further divided into two types of RAN nodes, CU-control plane and CU-user plane.
[0102] In different systems, the RAN node can have different names. For example, in an O-RAN system, the CU can also be referred to as an open CU (O-CU), the DU can also be referred to as an open DU (O-DU), and the RU can be referred to as an open RU (O-RU). In this application, the RAN node can be implemented by a software module, a hardware module, or a combination of a software module and a hardware module. For example, the RAN node can be a server loaded with a corresponding software module. The embodiments of this application do not limit the specific technology and specific device form of the RAN node. For ease of description, the network device or base station is taken as an example of the RAN node below.
[0103] A terminal is a device with wireless transceiving function, which can send signals to a base station or receive signals from a base station. The terminal can also be referred to as a terminal device, user equipment (UE), mobile station, mobile terminal, etc. The terminal can be widely applied to various scenarios, such as D2D communication, V2X communication, MTC, IoT, virtual reality, augmented reality, industrial control (e.g., smart manufacturing), autonomous driving, remote medical treatment, smart power grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. The terminal can be a mobile phone, tablet computer, cordless phone, session initiation protocol (SIP) phone, smart phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computer with wireless transceiving function, wearable device, vehicle, airplane, ship, robot, mechanical arm, smart home device, etc. The embodiments of this application do not limit the specific technology and specific device form of the terminal.
[0104] In some embodiments, the sending end device 110 and the receiving end device 120 can support at least one short-distance access technology, for example, both support SLB access technology. Further, the sending end device 110 and / or the receiving end device 120 can also support SLE access technology. For example, a mobile phone, a tablet computer, a wearable device, etc. can support SLE and SLB at the same time. For another example, a VR glasses, a vehicle central control console, a camera can support SLB. Whether an electronic device supports SLE access technology is not the focus of this application, and will not be described in more detail.
[0105] Exemplarily, in a communication process supporting the SLB access technology, one of the sending device 110 and the receiving device 120 can be a grant node (or glink node), and the other can be a terminal node. The grant node can be referred to as a master node device, a G node, a G device, or a first node, etc. The terminal node can be referred to as a T node, a T device, or a second node, etc. In this application, the names of the devices are not limited, as long as the corresponding functions can be implemented. For ease of description, the grant node is referred to as a G node, and the terminal node is referred to as a T node. Generally, as a G node, the resource can be uniformly scheduled and managed, therefore, the G node can send data scheduling information, and the T node can receive the data scheduling information and send data according to the data scheduling information.
[0106] It should be understood that the above description of the sending device 110 and the receiving device 120 is only exemplary, and the application does not limit the specific form of the sending device 110 and the receiving device 120.
[0107] FIG. 2 is a schematic diagram of a wireless short-range communication protocol architecture suitable for embodiments of the application. The protocol architecture 200 can be applied to any electronic device that can implement short-range communication, for example, to the sending device 110 and the receiving device 120 in the communication system 100 shown in FIG. 1. The sending device 110 can be a G node or a T node, and correspondingly, the receiving device 120 can be a T node or a G node. FIG. 2 illustrates the communication between the G node and the T node as an example.
[0108] As shown in FIG. 2, for the G node and the T node, the protocol architecture 200 can include an access layer 210, a network and transport layer 220, and an application layer 230 from bottom to top. Optionally, the network and transport layer 220 can also be referred to as a basic service layer, and the application layer 230 can also be referred to as a basic application layer.
[0109] The access layer 210 is the lowest layer of the protocol architecture, and the network and transport layer 220 and the application layer 230 are upper layer protocols. At the sending end, the data passes through the application layer 230, the network and transport layer 220, and the access layer 210 in sequence, and is sent out by the physical layer in the access layer 210. At the receiving end, the data passes through the access layer 210, the network and transport layer 220, and the application layer 230 in sequence, and each layer processes the data accordingly.
[0110] Specifically, the access layer 210 is responsible for the processing of the underlying logical link, for implementing security functions and / or management functions, etc., and can further include a data link layer and a physical layer, the data link layer can include an LC layer and a media access layer, and the media access layer can also be referred to as a MAC layer. Each layer implements its own function to support the access layer 210. Among them, the physical layer provides a physical connection for the data link layer using a transmission medium, and realizes transparent transmission of a bit stream; the data link layer performs resource management, access control, data segmentation, concatenation or reordering, etc., to ensure reliable data transmission. In order to realize safe and efficient data transmission between the G node and the T node of the access layer, the necessary connection management, resource scheduling and other management functions and information security related functions between the G node and the T node are also included in the protocol. Information can be exchanged between layers, and the lower layer provides services for the upper layer.
[0111] The access layer 210 can support multiple access technologies, including but not limited to SLB access technology, SLE access technology, and other access technologies such as Bluetooth low energy (BLE) technology and future other Starlink access technologies, etc. The embodiments of the present application take the SLB access technology as an example to introduce the architecture of the access layer 210. The name of the SLB access technology is only exemplary and should not be understood as a limitation of the embodiments of the present application. In other embodiments or in future architectures, SLB can also use other names.
[0112] It should be understood that the network architecture and business scenarios shown in FIG. 2 are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, as the network architecture evolves and new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0113] In wireless communication, in order to ensure the reliability of transmission, the sending end can encapsulate the data to be transmitted, and correspondingly, the receiving end can obtain the data to be transmitted by decapsulation. For example, taking the protocol layer of FIG. 2 as an example, the sending end device encapsulates the corresponding protocol header at the MAC layer and the LC layer when encapsulating the data, and each data has a corresponding serial number (SN). If data of different SNs is to be encapsulated, the protocol header needs to be encapsulated for each SN of data. In the case of a large amount of data, the redundancy is high, especially in small data batch transmission, the protocol header occupies a large proportion, which makes the transmission efficiency low, and causes unnecessary resource waste. Taking transmission mode 2 as an example, FIGS. 3 and 4 are used for illustration.
[0114] It should be understood that in order to provide data transmission service for upper layers, the LC layer supports multiple different types of transmission modes, including transmission mode 1 and transmission mode 2. If the LC layer is configured as transmission mode 1, the receiving end needs to feed back a status report to the sending end, which can indicate which data sent by the sending end is successfully received and which is not successfully received. If the LC layer is configured as transmission mode 2, the receiving end does not need to feed back a status report to the sending end.
[0115] Figure 3(a) shows a protocol format of a data PDU of the LC layer in transmission mode 2. Figure 3(b) shows a protocol format of a data PDU of the LC layer in transmission mode 1. Figure 3(c) shows a protocol format of a MAC header (H_MAC). In Figures 3(a) and (b), byte 1 to byte 7 refer to the LC header (H_LC) of the PDU, byte 8 to byte N-4 refer to the data carried in the PDU, and byte N-3 to byte N refer to the integrity protection field in the PDU, where N is a positive integer. The logical channel identity (LCID) field in Figure 3(c) is used to indicate the logical channel, and the length (L) field is used to indicate the length of the MAC service data unit (SDU) in bytes. In the example given in Figure 3, the length of the MAC SDU is the length of the LC layer PDU shown in Figures 3(a) or (b). In Figure 3, the "reserve" (R) field indicates that the field is temporarily undefined.
[0116] It should be understood that Figure 3(a) shows a PDU format carrying a segment offset value in transmission mode 2. The data PDU of transmission mode 2 can also not carry a segment offset value. Whether to carry a segment offset value can be indicated by the segment indication field in byte 1 in Figure 3(a). Figure 3(b) shows a PDU format carrying a segment offset value in transmission mode 1. The data PDU of transmission mode 1 can also not carry a segment offset value. Whether to carry a segment offset value can be indicated by the segment indication field in byte 1 in Figure 3(b). In addition, in Figure 3(b), the data / control field can be used to indicate that the PDU is a data PDU, and the query field can be used to indicate whether the receiving end is required to feed back a status report.
[0117] Figure 4 shows a data encapsulation format, as shown in Figure 4, the data can be information carried on a physical downlink share channel (PDSCH) or a physical uplink share channel (PUSCH), wherein the format of H_MAC is shown in Figure 3(c), a total of 3 bytes, the format of H_LC can be shown in Figure 3(a) or (b) bytes 1 to byte 7, since the segment offset value is an optional field, H_LC occupies 5-7 bytes, data1 and data2 are information shown in Figure 3(a) or (b) byte 8 to byte N-4, "optional 4 bytes" means byte N-3 to byte N in Figure 3(a) or (b). It should be understood that Figure 4 takes encapsulating two data (i.e. data1 and data2) as an example, data1 and data2 have different SNs.
[0118] As can be seen from Figure 4, data1 and data2 both have H_MAC and H_LC, so the protocol header needs to occupy more transmission resources, which will cause unnecessary waste of resources.
[0119] Therefore, the present application provides a communication method and a communication device, which can save transmission resources.
[0120] It should be understood that the embodiments shown below take the first communication device and the second communication device as an example to illustrate the execution subject of the interaction, but the present application does not limit the execution subject, as long as the execution subject can communicate according to the method provided by the embodiments of the present application by running the code of the method provided by the embodiments of the present application. The execution subject of the method provided by the embodiments of the present application can be the first communication device and the second communication device, or the functional module capable of calling and executing the program in the first communication device and the second communication device. For example, the first communication device in Figure 5 can also be a chip, a chip system or a processor supporting the method that the first communication device can implement, and can also be a logic module or software capable of implementing all or part of the functions of the first communication device; the second communication device in Figure 5 can also be a chip, a chip system or a processor supporting the method that the terminal communication device can implement, and can also be a logic module or software capable of implementing all or part of the functions of the second communication device.
[0121] Figure 5 is a schematic flow chart of a communication method 500 provided by the present application. As shown in Figure 5, the method 500 includes the following steps.
[0122] S510, the second communication device determines a first PDU, the first PDU includes one MAC layer header, one LC layer header and multiple data.
[0123] The first PDU includes one MAC layer header, which means that the number of MAC layer headers in the first PDU is one.
[0124] The first PDU includes one LC layer header, which means that the number of LC layer headers in the first PDU is one.
[0125] In the present application, the MAC layer header can be replaced by MAC header, MAC layer packet header, MAC packet header, or H_MAC, etc.
[0126] Similarly, the LC layer header can be replaced by LC header, LC layer packet header, LC packet header, H_LC, etc.
[0127] Exemplarily, the format of the MAC layer header can be similar or the same as the format shown in (c) of FIG. 3, and the format of the LC layer header can be similar to the format shown in bytes 1 to 7 in (a) or (b) of FIG. 3.
[0128] In the present application, the first PDU refers to one MAC layer PDU, or in other words, one MAC layer PDU corresponding to one logical channel. As shown in (c) of FIG. 3, the MAC layer header in the MAC layer PDU includes an LCID field, which is used to identify the logical channel.
[0129] It should be understood that in the present application, the MAC layer and the LC layer are only one example of the protocol layer name, and the present application does not limit that the MAC layer and / or the LC layer can have other names in the future as long as they can achieve similar functions of the MAC layer and / or the LC layer in the present application.
[0130] Exemplarily, the first PDU can include Y data, where Y is an integer greater than or equal to 2.
[0131] Among the plurality of data, the SNs are different, or in other words, the first PDU can include a plurality of data with different SNs.
[0132] In the present application, the SN is also called a sequence number, which refers to the number of data and can be used to identify the order of the data.
[0133] Exemplarily, the SN can be allocated by the application layer, for example, according to the order of the data packets in the to-be-transmitted service.
[0134] In the present application, the first PDU includes one MAC layer header, one LC layer header, and Y data, which can be understood as that the Y data share or multiplex the same MAC layer header and the same LC layer header; or the MAC layer header of each data in the Y data can be determined according to the one MAC layer header included in the first PDU, and the LC layer header of each data in the Y data can be determined according to the one LC layer header included in the first PDU.
[0135] The determining of the first PDU can be understood as a process of encapsulating the first PDU by the data link layer.
[0136] In the present application, the second communication device refers to a data sending end device, which can be a RAN node or a terminal, or a G node or a T node.
[0137] The second communication device outputs the first PDU, S520.
[0138] In the present application, the output of the first PDU can mean that the sending end sends the first PDU, or can mean that the sending end outputs the first PDU to the physical layer.
[0139] Exemplarily, after the first PDU is processed by the physical layer, the sending end can send the processed signal (referred to as signal #1) through the wireless channel.
[0140] Based on the above scheme, when the second communication device encapsulates data, it can encapsulate one MAC layer header and one LC layer header for multiple data, so that the first PDU includes one MAC layer header, one LC layer header and multiple data, which can reduce the amount of information occupied by the protocol header and save transmission resources.
[0141] Optionally, the method 500 further includes: S530, the first communication device inputs the first PDU.
[0142] In the present application, the input of the first PDU can mean that the receiving end receives the first PDU, or can mean that the receiving end receives the signal #1 from the wireless channel, and obtains the first PDU after processing by the physical layer.
[0143] In the present application, the first communication device refers to a data receiving end device, which corresponds to the second communication device. The first communication device can be a terminal or a RAN node, or a T node or a G node.
[0144] Optionally, the method 500 further includes: S540, the first communication device parses the first PDU to obtain Y data.
[0145] Exemplarily, the first communication device can parse Y data according to the one MAC layer header and the one LC layer header in the first PDU.
[0146] The parsing can also be referred to as unpackaging or unsealing.
[0147] Exemplarily, after the first communication device parses Y data, the first communication device can input the Y data to the upper layer for further processing.
[0148] Based on the above scheme, the first communication device can obtain multiple data from one PDU when performing data unpacking, and the PDU includes one MAC layer header and one LC layer header, so as to reduce the amount of information occupied by the protocol header and save transmission resources.
[0149] In an implementation manner, the LC layer header includes first indication information, and the first indication information is used to indicate whether the first PDU includes multiple data.
[0150] The first indication information can also be referred to as multi data (M) indication information or M field.
[0151] For example, the first indication information can be 1 bit, and a value 0 of the first indication information indicates that the first PDU includes one data, and a value 1 of the first indication information indicates that the first PDU includes multiple data.
[0152] For example, the first indication information can be located in a reserved field in the LC header, as shown in bits 2 to 5 in byte 1 in (a) of FIG. 3, or as shown in bits 4 to 5 in byte 1 in (b) of FIG. 3.
[0153] Based on the above scheme, the LC header can include an indication of whether the first PDU includes multiple data, so that the receiving end can determine the number of data in the PDU, facilitating the receiving end to parse.
[0154] In an implementation manner, the LC layer header includes second indication information, and the second indication information is used to indicate whether lengths of the multiple data are same.
[0155] The second indication information can also be referred to as same length data (S) indication information or S field. The second indication information can take effect when the first PDU includes multiple data, for example, when the first indication information takes a value 1.
[0156] For example, the second indication information can be 1 bit, and a value 0 of the second indication information indicates that lengths of the multiple data are different, and a value 1 of the second indication information indicates that lengths of the multiple data are same.
[0157] For example, the second indication information can be located in a reserved field in the LC header, as shown in bits 2 to 5 in byte 1 in (a) of FIG. 3, or as shown in bits 4 to 5 in byte 1 in (b) of FIG. 3.
[0158] It should be understood that the first indication information and the second indication information are both located in the LC layer header of the first PDU, and therefore, the first communication device can obtain the first indication information and the second indication information when parsing, and the present application does not limit the positions and the order of the first indication information and the second indication information.
[0159] Based on the above scheme, the LC header can have an indication of whether the lengths of the plurality of data are the same, so that the receiving end can determine the length of the data in the PDU, facilitating the receiving end to parse.
[0160] As an example, if the second indication information indicates that the lengths of the plurality of data are the same, the first PDU includes one first length information, and the one first length information is used to indicate the length of the plurality of data, or in other words, the one first length information is used to indicate the length of each of the plurality of data.
[0161] In this application, the length of the data can be replaced by the size of the data.
[0162] Optionally, in this example, the one first length information can be located before the first data of the plurality of data in the first PDU, and after the MAC layer header and the LC layer header.
[0163] In this application, the first length information can be replaced by the first length field, so the one first length information can be understood as one field, and the Y first length information can be understood as Y fields.
[0164] Exemplarily, in this application, the length of each data in the plurality of data can be determined by the application layer according to the type of the service, the data amount of the service, and the like.
[0165] Based on the above scheme, when the first communication device learns from the LC header that the lengths of the plurality of data are the same, the first communication device can further learn the length of each data according to the one first length information, so that the data in the first PDU can be parsed more quickly, and the efficiency of parsing is improved.
[0166] In addition, when the lengths of the plurality of data are the same, by carrying one first length information, the data amount of the non-data part can be reduced, and the transmission resource is saved, especially in the transmission scene of a large number of small data packets with the same length, which has obvious gain.
[0167] As another example, if the second indication information indicates that the lengths of the plurality of data are different, the first PDU includes a plurality of first length information, and the plurality of first length information is used to indicate the length of each of the plurality of data.
[0168] For example, the first PDU includes Y data, and the first PDU can include Y first length information, and each first length information is used to indicate the length of one data.
[0169] Optionally, in this example, each of the plurality of first length information can be located before one of the plurality of data and after the MAC layer header and the LC layer header, that is, there can be one first length information before each of the data after the MAC layer header and the LC layer header, to indicate the length of the data.
[0170] Based on the above scheme, when the first communication device learns that the lengths of the plurality of data are different from the LC header, the first communication device can further learn the length of each of the data according to each of the first length information, so that the data in the first PDU can be parsed faster, and the parsing efficiency is improved.
[0171] In an implementation manner, the MAC layer header comprises second length information, and the second length information is used to indicate the total length of the fields in the first PDU except the MAC layer header.
[0172] In the present application, the second length information can be replaced by a second length field, that is, the MAC layer header can comprise a length field.
[0173] For example, the second length information can be located in the length field in the MAC layer header, as shown in bytes 2 to 3 in (c) of FIG. 3.
[0174] The total length of the fields in the first PDU except the MAC layer header can comprise the length of the LC layer header, the length of one or more second length information fields, and the total length of the Y data.
[0175] Optionally, the first PDU can further comprise one integrity protection field, as shown in bytes N-3 to N of (a) or (b) of FIG. 3, and the one integrity protection field is used to perform integrity protection verification on the plurality of data in the first PDU.
[0176] In the present application, the integrity protection field can also be replaced by integrity protection information.
[0177] When the first PDU comprises the integrity protection field, the total length of the fields in the first PDU except the MAC layer header can further comprise the length of the integrity protection field.
[0178] Optionally, the LC header of the first PDU can further comprise one upper layer protocol indication field, as shown in bytes 6 to 7 of (a) or (b) of FIG. 3, and the one upper layer protocol indication field is used to indicate the upper layer protocol layer corresponding to the plurality of data, that is, the plurality of data should be handed over to which upper layer protocol for processing.
[0179] In the present application, the upper layer protocol indication field can also be replaced by upper layer protocol indication information.
[0180] For example, the first communication device parses the first PDU, including: the first communication device obtains the plurality of data from the first PDU according to the second length information and the first length information respectively, S540.
[0181] For example, the first communication device can cyclically parse the first PDU according to the total length of the fields in the first PDU except the MAC layer header and the length of each field, and take the length of 0 as the end condition of the cycle, thereby obtaining Y data.
[0182] As a possible implementation, the SNs of the plurality of data are continuous, and the first PDU includes the SN of the first data in the plurality of data.
[0183] For example, when the LC layer of the second communication device is configured as transmission mode 2, the SNs of the plurality of data can be continuous, and at this time, the first PDU can only include the SN of the first data in the plurality of data, and does not include the SNs of the data other than the first data.
[0184] In this implementation, the SNs of the data other than the first data in the first PDU can be determined according to the SN of the first data, for example, the second communication device obtains one data at a time when parsing, and the SN is 1 based on the previous time.
[0185] For example, in this implementation, the SN of the first data in the plurality of data can be carried in the LC layer header, for example, as shown in bits 6 to 7 in byte 1 and bytes 2 to 3 in (a) or (b) of FIG. 3.
[0186] Based on the above scheme, when the SNs of the plurality of data are continuous, the first PDU can only include the SN of the first data in the plurality of data, and the SNs of the data other than the first data in the first PDU can be determined according to the SN of the first data, so as to further reduce the amount of information of the non-data part of the first PDU, and save transmission resources.
[0187] As another possible implementation, the SNs of the plurality of data are not continuous, and the first PDU includes the SN of each data in the plurality of data.
[0188] For example, when the LC layer of the second communication device is configured as transmission mode 1, the SNs of the plurality of data can be discontinuous, and at this time, the first PDU can include the SN of each data in the plurality of data.
[0189] Exemplarily, in this implementation, the SN of the first data in the plurality of data can be carried in the LC layer header, for example, as shown in bits 6-7 in byte 1 and bytes 2-3 in (a) or (b) of FIG. 3. The SN of each data in the plurality of data other than the first data can be carried before each data.
[0190] Based on the above scheme, when the SNs of the plurality of data are not continuous, the first PDU can include the SN of each data in the plurality of data, so that the receiving end can be facilitated to analyze, which is simple and efficient.
[0191] In an implementation, the LC layer header includes a segment offset value of the first data in the plurality of data.
[0192] Specifically, when data is encapsulated, according to the TB size, the data of the same SN can be completely encapsulated in one MAC layer PDU, that is, the data of the same SN is a complete SDU in the MAC layer PDU. Or, the data of the same SN can also be encapsulated in different MAC layer PDUs in several parts, at this time, the data of the same SN is an SDU segment in different MAC layer PDUs.
[0193] In this application, according to the TB size, the first data in the plurality of data can refer to a complete SDU, or an SDU segment, which is not limited. The last data in the plurality of data can refer to a complete SDU, or an SDU segment, which is not limited. The data in the plurality of data other than the first data and the last data is a complete SDU.
[0194] The segment indication in the LC layer header can be used to indicate that the first data in the plurality of data is a complete SDU, or the first segment, the middle segment, or the last segment of the SDU.
[0195] Exemplarily, when the first data in the first PDU is a complete SDU, or the first segment of the SDU, the LC layer header of the first PDU can not include a segment offset value, when the first data in the first PDU is the middle segment of the SDU or the last segment of the SDU, the LC layer header of the first PDU can include a segment offset value, which is used to indicate the position of the SDU segment in the original data, wherein the position of the first byte of the original data is 0.
[0196] Based on the above scheme, the LC layer header of the first PDU can include the segment offset value of the first data in the plurality of data, so that the data of the same SN can be completely identified, which facilitates the receiving end to correctly analyze and improves the reliability of transmission.
[0197] FIG. 6 is a schematic diagram of a data encapsulation and decapsulation process. As shown in FIG. 6, the process includes the following steps.
[0198] S601, the sending end determines the TB size of the current transmission according to the scheduling of the MAC layer.
[0199] S602, the sending end encapsulates the data according to the method 500 according to the TB size.
[0200] Specifically, the sending end can encapsulate multiple data in one MAC layer PDU when encapsulating.
[0201] S603, the sending end sends the encapsulated data to the receiving end.
[0202] S604, the receiving end parses the encapsulated data according to the method 500.
[0203] Specifically, the receiving end can obtain multiple data from one MAC layer PDU when parsing.
[0204] S605, the receiving end sorts the parsed data according to the size of the SN.
[0205] S606, the receiving end delivers the sorted data to the upper layer for further processing.
[0206] The method 500 will be illustrated below in combination with FIGS. 7-10.
[0207] FIG. 7 is a schematic diagram of data encapsulation and decapsulation provided by the present application. In FIG. 7, there are three SDUs (which are an example of data), i.e., Y=3, and the SNs of the three SDUs are 1, 2 and 3, respectively, that is, the SNs of the three SDUs are consecutive, and the three SDUs can be denoted as SDU1, SDU2 and SDU3, respectively, each SDU has the same length, and each occupies 15 bytes, so the three SDUs occupy 45 bytes in total. It is assumed that the size of the TB is 60 bytes in total.
[0208] As shown in (a) of FIG. 7, when generating a MAC layer PDU, the sending end orders the SDUs according to the order of SNs, and adds H_MAC, H_LC and LEN fields before SDU1. The format of H_MAC is shown in (c) of FIG. 3, which occupies 3 bytes. The length field in H_MAC (an example of the second length information) indicates L=52 bytes, which means the total length of the fields in the PDU except H_MAC is 52 bytes. The format of H_LC is similar to (a) of FIG. 3. The two reserved fields in H_LC can respectively indicate M=1 (i.e. the PDU includes multiple SDUs) and S=1 (i.e. the lengths of the multiple SDUs are the same), and H_LC does not carry a segment offset value. The sequence number in H_LC can indicate that the SN of SDU1 is 1. Therefore, H_LC occupies 5 bytes in total. The LEN field is only one, which occupies 2 bytes. LEN indicates 15, which means the length of each SDU is 15 bytes. Therefore, the PDU occupies 55 bytes in total, which is less than the size of the TB.
[0209] As shown in (b) of FIG. 7, after receiving the PDU, the receiving end can first parse L=52 from H_MAC, and then parse that there is no segment offset value in H_LC, and the PDU includes multiple SDUs, the lengths of the multiple SDUs are the same, and the SN of the first SDU in the PDU is 1. Further, the length of each SDU is 15 obtained by parsing LEN. Then, the receiving end can parse all the SDUs in a loop, and the end of the loop is determined by whether L is parsed completely (i.e. whether L is equal to 0). The SN of the first SDU parsed is 1, and the SN of each SDU parsed after that is 1 plus the SN of the previous SDU. Assuming that the starting position of H_MAC field is P, the receiving end can determine the starting position of H_LC field as P+3, the starting position of LEN field as P+3+5, the starting position of SDU1 as P+3+5+2, the starting position of SDU2 as P+3+5+2+LEN, the starting position of SDU3 as P+3+5+2+LEN+LEN, and the ending position of SDU3 as P+3+5+2+LEN+LEN+LEN.
[0210] FIG. 8 is another schematic diagram of data encapsulation and decapsulation provided by the present application. In FIG. 8, there are 3 SDUs (i.e. an example of data), i.e. Y=3, and the SNs of the 3 SDUs are 1, 2 and 3 respectively, i.e. the SNs of the 3 SDUs are consecutive. The 3 SDUs can be denoted as SDU1, SDU2 and SDU3 respectively. The lengths of the 3 SDUs are different. SDU1 occupies 15 bytes, SDU2 occupies 10 bytes, and SDU3 occupies 20 bytes. Therefore, the 3 SDUs occupy 45 bytes in total. Assuming that the size of the TB is 60 bytes in total.
[0211] As shown in (a) of FIG. 8, when generating a MAC layer PDU, the sending end orders the SDUs according to the order of SNs, and adds H_MAC, H_LC and LEN1 field before SDU1, adds LEN2 field before SDU2, and adds LEN3 field before SDU3. The format of H_MAC is shown in (c) of FIG. 3, which occupies 3 bytes. The length field in H_MAC indicates L=56 bytes, which means the total length of the fields in the PDU except H_MAC is 56 bytes. The format of H_LC is similar to (a) of FIG. 3. The two reserved fields in H_LC can respectively indicate M=1 (i.e. the PDU includes multiple SDUs) and S=0 (i.e. the lengths of the multiple SDUs are not the same), and H_LC does not carry a segment offset value. The sequence number in H_LC can indicate the SN of SDU1 is 1. Therefore, H_LC occupies 5 bytes in total. LEN1 field, LEN2 field and LEN3 field respectively occupy 2 bytes. LEN1 indicates 15, which means the length of SDU1 is 15 bytes. LEN2 indicates 10, which means the length of SDU2 is 10 bytes. LEN3 indicates 20, which means the length of SDU3 is 20 bytes. Therefore, the PDU occupies 59 bytes in total, which is less than the size of a TB.
[0212] As shown in (b) of FIG. 8, after receiving the PDU, the receiving end can first parse L=56 from H_MAC, and then parse that there is no segment offset value, the PDU includes multiple SDUs, the lengths of the multiple SDUs are not the same, and the SN of the first SDU in the PDU is 1 from H_LC. Further, the receiving end can parse the length of SDU1 as 15 from LEN1, and then can cyclically parse LEN2, SDU2, and LEN3, SDU3, with whether L is parsed completely (i.e. whether L is equal to 0) as the end condition of the cycle. The SN of the first SDU parsed is 1, and the SN of each SDU parsed is 1 more than the SN of the previous SDU. Assuming the starting position of H_MAC field is P, the receiving end can determine the starting position of H_LC field is P+3, the starting position of LEN1 field is P+3+5, the starting position of SDU1 is P+3+5+2, the starting position of LEN2 field is P+3+5+2+LEN1, the starting position of SDU2 is P+3+5+2+LEN1+2, the starting position of LEN3 field is P+3+5+2+LEN1+2+LEN2, and the starting position of SDU3 is P+3+5+2+LEN1+2+LEN2+2. The end position of SDU3 is P+3+5+2+LEN1+2+LEN2+2+LEN3.
[0213] Figure 9 is another schematic diagram of data encapsulation and decapsulation provided by the present application. In Figure 9, there are 3 SDUs (i.e. an example of data), i.e. Y=3, and the SNs of the 3 SDUs are 1, 2, 3 respectively, i.e. the SNs of the 3 SDUs are consecutive, the 3 SDUs can be denoted as SDU1, SDU2, SDU3 respectively, the length of each SDU is the same, and each SDU occupies 15 bytes, thus the 3 SDUs occupy 45 bytes in total. It is assumed that the size of a TB is 35 bytes in total. Since the size of the TB is smaller than the size of the SDU, the 3 SDUs will be split and encapsulated in different PDUs. According to the size of the TB, the first 10 bytes of SDU2 and SDU1 can be encapsulated in one PDU (denoted as PDU#1), and the last 5 bytes of SDU2 and SDU3 can be encapsulated in another PDU (denoted as PDU#2), the first 10 bytes of SDU2 can be regarded as the first segment (denoted as segment 1) of SDU2, and the last 5 bytes of SDU2 can be regarded as the last segment (denoted as segment 2) of SDU2.
[0214] As shown in (a) of FIG. 9, when generating the MAC layer PDU#1, the transmitting end orders the SDUs according to the order of SNs, and adds H_MAC, H_LC and LEN field before SDU1. The format of H_MAC is shown in (c) of FIG. 3, which occupies 3 bytes. The length field in H_MAC indicates L=32 bytes, which means the total length of the fields in the PDU except H_MAC is 32 bytes. The format of H_LC is similar to (a) of FIG. 3. The two reserved fields in H_LC can indicate M=1 (i.e. the PDU includes multiple SDUs) and S=1 (i.e. the lengths of the multiple SDUs are the same), respectively. Since PDU#1 includes the first segment of SDU2, H_LC does not carry the segment offset value. The sequence number in H_LC can indicate the SN of SDU1 is 1. Therefore, H_LC occupies 5 bytes in total. There is only one LEN field, which occupies 2 bytes. LEN indicates 15, which means the length of each SDU is 15 bytes. Therefore, the PDU#1 occupies 35 bytes in total, which is equal to the size of the TB. When generating the MAC layer PDU#2, the transmitting end orders the SDUs according to the order of SNs, and adds H_MAC, H_LC and LEN field before SDU2. The format of H_MAC is shown in (c) of FIG. 3, which occupies 3 bytes. The length field in H_MAC indicates L=29 bytes, which means the total length of the fields in the PDU except H_MAC is 29 bytes. The format of H_LC is similar to (a) of FIG. 3. The two reserved fields in H_LC can indicate M=1 (i.e. the PDU includes multiple SDUs) and S=1 (i.e. the lengths of the multiple SDUs are the same), respectively. Since PDU#2 includes the last segment of SDU2, H_LC carries the segment offset value, which is 10, indicating the offset between segment 2 and the start position of SDU2 is 10 bytes. The sequence number in H_LC can indicate the SN of segment 2 is 2. Therefore, H_LC occupies 7 bytes in total. There is only one LEN field, which occupies 2 bytes. LEN indicates 15, which means the length of each SDU is 15 bytes. Therefore, the PDU#1 occupies 32 bytes in total, which is less than the size of the TB.
[0215] As shown in (b) of FIG. 9, after receiving the PDU#1, the receiving end can parse L=32 from the H_MAC of the PDU#1, then parse that there is no segment offset value from the H_LC of the PDU, and the PDU includes multiple SDUs, the lengths of the multiple SDUs are the same, and the SN of the first SDU in the PDU is 1. Further, the receiving end can parse the length of each SDU as 15 from the LEN field of the PDU#1, then the receiving end can parse all the SDUs in a loop, and the end of the loop is determined by whether L is parsed completely (i.e. whether L is equal to 0), and the SN of the first SDU parsed is 1, and the SN of each SDU parsed is increased by 1 based on the previous SN. In (b) of FIG. 9, when parsing the first segment, it is found that the total length L is 12, which is less than LEN, so the receiving end parses the first segment of the SDU2 according to L=12. Assuming that the start position of the H_MAC field of the PDU#1 is P, then the receiving end can determine the start position of the H_LC field as P+3, the start position of the LEN field as P+3+5, the start position of the SDU1 as P+3+5+2, the start position of the first segment as P+3+5+2+LEN, and the end position of the first segment as P+3+5+2+LEN+10 according to the indication information in the PDU#1.
[0216] Similarly, as shown in (c) of FIG. 9, after receiving the PDU#2, the receiving end can parse L=29 from the H_MAC of the PDU#2, then parse that the segment offset value is 10 from the H_LC of the PDU, and the PDU includes multiple SDUs, the lengths of the multiple SDUs are the same, and the SN of the first SDU in the PDU is 2. Further, the receiving end can parse the length of each SDU as 15 from the LEN field of the PDU#2, then the receiving end can parse all the SDUs in a loop, and the end of the loop is determined by whether L is parsed completely (i.e. whether L is equal to 0), and the SN of the first SDU parsed is 2, and the SN of each SDU parsed is increased by 1 based on the previous SN. In (b) of FIG. 9, the receiving end parses offset=10, and LEN=15, so the receiving end can determine the length of the second segment in the PDU#2 as LEN-offset=5, and then the receiving end can obtain the second segment of the SDU2. The receiving end can combine the first segment and the second segment of the SDU2 according to the SN. Assuming that the start position of the H_MAC field of the PDU#2 is P, then the receiving end can determine the start position of the H_LC field as P+3, the start position of the LEN field as P+3+7, the start position of the second segment as P+3+7+2, the start position of the SDU3 as P+3+7+2+LEN-offset, and the end position of the SDU3 as P+3+7+2+LEN-offset+LEN according to the indication information in the PDU#2.
[0217] Figure 10 is another schematic diagram of data encapsulation and decapsulation provided by the present application. In Figure 10, there are three SDUs (i.e. an example of data), i.e. Y=3, and the SNs of the three SDUs are 1, 5 and 8 respectively, i.e. the SNs of the three SDUs are not continuous, and the three SDUs can be denoted as SDU1, SDU5 and SDU8 respectively, each of which has the same length, i.e. 15 bytes, and thus the three SDUs occupy 45 bytes in total. It is assumed that the size of a TB is 60 bytes.
[0218] As shown in (a) of Figure 10, the sending end sorts the SDUs according to the order of SNs when generating a MAC layer PDU, and adds H_MAC, H_LC and LEN fields before SDU1. The format of H_MAC is shown in (c) of Figure 3, which occupies 3 bytes. The length field (an example of second length information) in H_MAC indicates L=56 bytes, which means the total length of the fields in the PDU except H_MAC is 56 bytes. The format of H_LC is similar to (b) of Figure 3, in which the two reserved fields can indicate M=1 (i.e. the PDU includes multiple SDUs) and S=1 (i.e. the lengths of the multiple SDUs are the same) respectively, and H_LC does not carry a segment offset value. The sequence number in H_LC can indicate that the SN of SDU1 is 1, and thus H_LC occupies 5 bytes in total. The LEN field is only one, which occupies 2 bytes. LEN indicates 15, which means the length of each SDU is 15 bytes. In addition, the PDU includes SN2 field before SDU2, which indicates 5, meaning the SN of SDU2 is 5, and the PDU includes SN3 field before SDU3, which indicates 8, meaning the SN of SDU3 is 8. The SN2 field and the SN3 field each occupy 2 bytes. Thus, the PDU occupies 59 bytes in total, which is less than the size of a TB.
[0219] As shown in (b) of FIG. 10, after receiving the PDU, the receiving end can first parse L = 56 from the H_MAC, then parse the nonexistence of the segment offset value from the H_LC, and the PDU includes multiple SDUs, the lengths of the multiple SDUs are the same, and the SN of the first SDU in the PDU is 1. Further, the parsing of LEN obtains the length of each SDU as 15, and then the receiving end can cyclically parse SDU1, SN2, SDU2, and SN3, SDU3, taking whether the parsing of L is completed (i.e., whether L is equal to 0) as the loop end condition. Assuming that the starting position of the H_MAC field is P, the receiving end can determine the starting position of the H_LC field as P+3, the starting position of the LEN field as P+3+5, the starting position of SDU1 as P+3+5+2, the starting position of SN2 as P+3+5+2+LEN, the starting position of SDU2 as P+3+5+2+LEN+2, the starting position of SN3 as P+3+5+2+LEN+2+LEN, and the starting position of SDU3 as P+3+5+2+LEN+2+LEN+2, and the end position of SDU3 as P+3+5+2+LEN+2+LEN+2+LEN.
[0220] It should be understood that the parsing manners of FIGS. 7 to 10 described above are only examples, and the application does not limit the manner of obtaining Y pieces of data from the first PDU, for example, the first PDU can also be parsed by an artificial intelligence algorithm, or the last piece of data in the Y pieces of data is parsed in a reverse order.
[0221] In the above examples, one MAC layer PDU is transmitted in one TB. Alternatively, according to the TB size, multiple MAC layer PDUs can also be transmitted in one TB, for example, in FIG. 11, two MAC layer PDUs are included in one TB, and each MAC layer PDU can be regarded as an example of the first PDU of the application.
[0222] It can be understood that, in order to implement the functions in the above embodiments, the base station and the terminal include corresponding hardware structures and / or software modules for executing various functions. Those skilled in the art should easily realize that, in combination with the units and method steps of the examples described in the embodiments disclosed in the application, the application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application scene and design constraints of the technical solution.
[0223] FIG. 12 and FIG. 13 are structural diagrams of a communication apparatus provided by the embodiments of the present application. The communication apparatus can be used to implement the functions of the first communication apparatus or the second communication apparatus in the above-mentioned method embodiments, and thus can achieve the beneficial effects of the above-mentioned method embodiments. In the embodiments of the present application, the communication apparatus can be the first communication apparatus or the second communication apparatus, or a module (such as a chip) applied to the first communication apparatus or the second communication apparatus.
[0224] As shown in FIG. 12, the communication apparatus 2000 includes a processing unit 2010 and a transceiver unit 2020. The communication apparatus 2000 is used to implement the functions of the first communication apparatus or the second communication apparatus in the above-mentioned method embodiment shown in FIG. 5.
[0225] When the communication apparatus 2000 is used to implement the functions of the second communication apparatus in the method embodiment shown in FIG. 5, the processing unit 2010 is configured to: determine a MAC layer PDU, the MAC layer PDU including one MAC layer header, one LC layer header and multiple data, the multiple data having different sequence numbers; and the transceiver unit 2020 is configured to: output the MAC layer PDU.
[0226] When the communication apparatus 2000 is used to implement the functions of the first communication apparatus in the method embodiment shown in FIG. 5, the transceiver unit 2020 is configured to: input a MAC layer PDU, the MAC layer PDU including one MAC layer header, one LC layer header and multiple data, the multiple data having different sequence numbers; and the processing unit 2010 is configured to: parse the MAC layer PDU to obtain the multiple data.
[0227] For detailed description of the functions performed by the processing unit 2010 and the transceiver unit 2020, reference can be made to the related description in the method 500 shown in FIG. 5.
[0228] As shown in FIG. 13, the communication apparatus 3000 includes a processor 3010 and an interface circuit 3020. The processor 3010 and the interface circuit 3020 are coupled to each other. It can be understood that the interface circuit 3020 can be a transceiver or an input / output interface. Optionally, the communication apparatus 3000 can further include a memory 3030, configured to store instructions executed by the processor 3010, or store input data required by the processor 3010 to execute instructions, or store data generated after the processor 3010 executes instructions. Sometimes, the interface circuit 3020 can also be understood as a part of the processor 3010, and at this time, the communication apparatus 3000 includes the processor 3010.
[0229] When the communication apparatus 3000 is used to implement the method shown in FIG. 5, the processor 3010 is configured to implement the functions of the above-mentioned processing unit 2010, and the interface circuit 3020 is configured to implement the functions of the above-mentioned transceiver unit 2020.
[0230] When the communication device is a chip applied to the first communication device, the chip implements the functions of the first communication device in the method embodiments. The chip receives information from the second communication device, which can be understood as that the information is first received by other modules (such as a radio frequency module or an antenna) in the first communication device, and then sent to the chip by the modules. The chip sends information to the second communication device, which can be understood as that the information is first sent to other modules (such as a radio frequency module or an antenna) in the first communication device, and then sent to the second communication device by the modules.
[0231] When the communication device is a chip applied to the second communication device, the chip implements the functions of the second communication device in the method embodiments. The chip receives information from the first communication device, which can be understood as that the information is first received by other modules (such as a radio frequency module or an antenna) in the second communication device, and then sent to the chip by the modules. The chip sends information to the first communication device, which can be understood as that the information is first sent to other modules (such as a radio frequency module or an antenna) in the second communication device, and then sent to the first communication device by the modules.
[0232] It can be understood that the processor in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.
[0233] The method steps in the embodiments of the present application can be implemented in hardware, or in software instructions executable by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. The storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. The processor and the storage medium can also exist as discrete components in the base station or the terminal.
[0234] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer programs or instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments are performed. The computer can be a general purpose computer, a special purpose computer, a computer network, a network device, a user equipment or other programmable apparatus. The computer programs or instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer programs or instructions can be transferred from one website site, computer, server or data center to another website site, computer, server or data center through wired or wireless manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center and the like integrated with one or more available media. The available media can be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; or an optical medium, such as a digital video disc; or a semiconductor medium, such as a solid state disk. The computer readable storage medium can be a volatile or non-volatile storage medium, or can include both volatile and non-volatile storage media.
[0235] In various embodiments of the present application, the terms and / or descriptions of different embodiments are consistent and can be referred to each other if there is no special description and logical conflict. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.
[0236] In the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the relationship between the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the following cases: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. In the literal description of the present application, the character " / ", generally represents that the front and rear associated objects are in an "or" relationship. "Including at least one of A, B and C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.
[0237] It should be understood that in various embodiments of the present application, the first, second and various numerical designations are only for the convenience of differentiation and do not limit the scope of the embodiments of the present application. The size of the serial number of the above processes does not mean the order of execution, and the execution order of the processes should be determined by their functions and inherent logic.
[0238] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software manner depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0239] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0240] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are merely schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0241] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment.
[0242] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit.
[0243] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0244] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method of communication, comprising: The method comprises: determining a media access control layer protocol data unit (MAC PDU) comprising one MAC header, one LC header and a plurality of data, wherein the sequence numbers of the plurality of data are different; outputting the MAC PDU.
2. A method of communication, comprising: The method comprises: inputting a MAC PDU comprising one MAC header, one LC header and a plurality of data, wherein the sequence numbers of the plurality of data are different; parsing the MAC PDU to obtain the plurality of data.
3. The method according to claim 1 or 2, characterized in that, The LC header comprises first indication information, and the first indication information is used to indicate that the MAC PDU comprises a plurality of data.
4. The method according to any one of claims 1 to 3, characterized in that, The LC header comprises second indication information, and the second indication is used to indicate whether the lengths of the plurality of data are the same.
5. The method of claim 4, wherein: if the second indication information indicates that the lengths of the plurality of data are the same, the MAC PDU comprises one first length information, and the first length information is used to indicate the lengths of the plurality of data.
6. The method of claim 4, wherein: if the second indication information indicates that the lengths of the plurality of data are different, the MAC PDU comprises a plurality of first length information, and the plurality of first length information is respectively used to indicate the length of each of the plurality of data.
7. The method according to any one of claims 1 to 6, characterized in that, The MAC header comprises second length information, and the second length information is used to indicate the total length of the fields in the MAC PDU except the MAC header.
8. The method according to any one of claims 1 to 7, characterized in that, The sequence numbers of the plurality of data are continuous, and the MAC PDU comprises the sequence number of a first data in the plurality of data.
9. The method of claim 8, wherein, The sequence numbers of the data in the MAC PDU except the first data are determined according to the sequence number of the first data.
10. The method according to any one of claims 1 to 7, characterized in that, The sequence numbers of the plurality of data are not continuous, and the MAC PDU comprises the sequence number of each data in the plurality of data.
11. The method according to any one of claims 1 to 10, characterized in that, The LC header comprises a segment offset value of a first data in the plurality of data.
12. The method according to any one of claims 1 to 11, characterized in that, The MAC PDU comprises one integrity protection information, and the integrity protection information is used to verify the integrity of the plurality of data.
13. The method according to any one of claims 1 to 12, characterized in that, The LC header comprises one upper layer protocol indication information, and the upper layer protocol indication information is used to indicate the upper layer protocol layer of the plurality of data.
14. A communications device, characterized by The apparatus comprises: units for performing the method of any one of claims 1, 3-13, or units for performing the method of any one of claims 2-13.
15. A communications device, characterized by The apparatus comprises: a processor coupled to the memory, the memory storing a computer program, and the processor being configured to execute the computer program stored in the memory to cause the apparatus to perform the method of any one of claims 1, 3-13, or to cause the apparatus to perform the method of any one of claims 2-13.
16. A computer readable storage medium characterized by: The storage medium stores a computer program or instructions, and when the computer program or instructions are executed by the communication apparatus, the method of any one of claims 1, 3-13 is implemented, or the method of any one of claims 2-13 is implemented.
17. A computer program product, characterised in that, Computer program product comprising a computer program which, when the computer program is executed by a computer, causes the method as claimed in any one of claims 1, 3 to 13 to be performed, or, causes the method as claimed in any one of claims 2 to 13 to be performed.
Citation Information
Patent Citations
Communication method and user equipment
CN104284366A
Data transmission method and related product
CN110832901A
Data format structure and method of formatting signalsin communication system
KR1020060069378A
Reducing overhead by omitting header fields
WO2018082760A1