Communication method, apparatus, system, and storage medium

By using unified sequence numbers in the PDCP and RLC layers, and directly reusing packet sequence numbers in the RLC layer, the latency and resource waste caused by the independent sequence numbers in the PDCP and RLC layers are solved, achieving more efficient data processing.

CN123164491APending Publication Date: 2026-11-24HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611564045.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In wireless communication systems, the PDCP layer and RLC layer maintain independent sequence numbers, which increases the overhead and processing complexity of the Uu interface. Furthermore, when the RLC control PDU does not include the sequence number, it will lead to the infinite accumulation of retransmission delay and the waste of uplink resources.

Method used

Using a unified sequence number in the PDCP and RLC layers, the RLC layer directly reuses the sequence number of unsent data packets in the transmit buffer as the sequence number of the PDCP and RLC control PDUs, avoiding PDCP reordering delays, and adds sequence numbers to the RLC control information, reducing the processing complexity of the RLC layer.

Benefits of technology

It effectively avoids the infinite accumulation of PDCP reordering delay and RLC retransmission delay, reducing the processing complexity of the RLC layer and the waste of uplink resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164491A_ABST
    Figure CN123164491A_ABST
Patent Text Reader

Abstract

This application provides a communication method, apparatus, system, and storage medium, relating to the field of communication technology. The method involves the RLC layer of a first device selecting a first sequence number based on a first data packet that has not yet been transmitted in the transmission buffer. This first data packet carries service data, and its sequence number is assigned by the PDCP layer of the first device. Based on the first sequence number, the RLC layer of the first device sends a second data packet to the RLC layer of a second device. This second data packet carries control information. Thus, the embodiments of this application can avoid unnecessary PDCP reordering delays and solve the problem of infinite accumulation of RLC retransmission delays and waste of uplink resources caused by the RLC control PDU not including a sequence number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication method, apparatus, system and storage medium. Background Technology

[0002] In wireless communication systems, communicating devices share a specific protocol layer structure. For example, the user plane protocol layer structure between a first device and a second device includes the Packet Data Convergence Protocol (PDCP) layer, Radio Link Control (RLC) layer, Medium Access Control (MAC) layer, and Physical (PHY) layer. In traditional architectures, the PDCP layer and RLC layer each maintain independent sequence numbers (SNs). That is, when the PDCP layer sends a data packet to the RLC layer, the RLC layer needs to reassign an RLCSN and maintain the mapping relationship between the PDCPSN and RLCSN.

[0003] To reduce overhead and processing complexity of the Uu interface (i.e., air interface), a unified sequence number can be used in both the PDCP and RLC layers. Therefore, how to process data packets carrying control information when using a unified sequence number in both the PDCP and RLC layers is a pressing issue that needs to be addressed. Summary of the Invention

[0004] This application provides a communication method, apparatus, system, and storage medium that can avoid unnecessary PDCP reordering delays and solve the problem of infinite accumulation of RLC retransmission delays and waste of uplink resources caused by the RLC control PDU not including a sequence number.

[0005] In a first aspect, embodiments of this application propose a communication method applied to a first device. The method includes: the RLC layer of the first device selecting a first sequence number based on a first data packet that has not yet been sent in the transmission buffer, the first data packet being used to carry service data, and the sequence number of the first data packet being assigned by the PDCP layer of the first device; and the RLC layer of the first device sending a second data packet to the RLC layer of a second device based on the first sequence number, the second data packet being used to carry control information.

[0006] Thus, in this embodiment of the application, when the control information carried by the second data packet comes from the PDCP layer of the first device (i.e., when the second data packet includes a PDCP control PDU), the PDCP layer of the first device does not assign a sequence number to the PDCP control PDU. Instead, the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the PDCP control PDU. Even if the PDCP control PDU is lost, no sequence number gap will be generated in the PDCP layer of the second device, thereby avoiding unnecessary PDCP reordering delay. Furthermore, when the control information carried by the second data packet comes from the RLC layer of the first device (i.e., when the second data packet includes RLC control information generated by the RLC layer), the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the RLC control information, thereby adding a sequence number to the RLC control information. This ensures that the RLC control PDU contains a sequence number, thus solving the problem of infinite accumulation of RLC retransmission delay and waste of uplink resources caused by the RLC control PDU not including a sequence number.

[0007] In one possible implementation, the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

[0008] Thus, in this embodiment of the application, the fact that the first data packet does not belong to the segmented data packet is also used as a selection condition for the first sequence number, which can reduce the processing complexity of the RLC layer of the second device.

[0009] In one possible implementation, when selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry control information.

[0010] Thus, in this embodiment of the application, when selecting the first sequence number, the fact that the sequence number of the first data packet is not reused by other data packets used to carry control information is used as the selection condition for the first sequence number, which can reduce the processing complexity of the RLC layer of the second device.

[0011] In one possible implementation, the first data packet is the first data packet in the send buffer that has not yet been sent and is used to carry business data.

[0012] Thus, the embodiments of this application can improve the situation in the RLC layer of the first device where the RLC PDU containing the PDCP data PDU blocks the RLC PDU containing the PDCP control PDU, reduce the transmission waiting delay of the RLC PDU containing the PDCP control PDU, and enable the RLC PDU containing the PDCP control PDU to reach the second device side quickly.

[0013] In one possible implementation, both the first data packet and the second data packet include a first field, a second field, and a third field; wherein the first field is used to indicate the data packet type, the second field is used to indicate the data type carried by the data packet, and the third field is used to indicate whether the sequence number is reused by data packets carrying different data types.

[0014] Thus, the embodiments of this application can conveniently indicate which of the following is included in the RLC PDU: PDCP data PDU, PDCP control PDU, and RLC control information, through the first and second fields; and conveniently indicate through the third field whether the sequence number included in the RLC PDU is reused by data packets carrying different data types.

[0015] In one possible implementation, the first field in the first data packet takes the value of a first value; when the control information carried by the second data packet comes from the PDCP layer of the first device, the first field in the second data packet takes the value of a first value; when the control information carried by the second data packet comes from the RLC layer of the first device, the first field in the second data packet takes the value of a second value, and the first value is different from the second value; the second field in the first data packet takes the value of a third value; the second field in the second data packet takes the value of a fourth value, and the third value is different from the fourth value; the third field in the second data packet takes the value of a fifth value; when selecting the first sequence number, the third field in the first data packet takes the value of a sixth value, and the fifth value is different from the sixth value; after selecting the first sequence number, the third field in the first data packet takes the value of a fifth value.

[0016] In one possible implementation, the method further includes: the RLC layer of the first device receiving a third data packet from the PDCP layer of the first device, and the sequence number corresponding to the third data packet; wherein the third data packet does not include the sequence number corresponding to the third data packet, and the third data packet is used to carry service data; the RLC layer of the first device constructs a first data packet based on the third data packet and the sequence number corresponding to the third data packet; the RLC layer of the first device puts the first data packet into the transmission buffer; the RLC layer of the first device sends the first data packet in the transmission buffer to the RLC layer of the second device in sequence.

[0017] In this way, an RLC PDU containing PDCP data PDU can be constructed.

[0018] In one possible implementation, the RLC layer of the first device receives the sequence number corresponding to the third data packet through a first interface, which is an inter-layer interface between the PDCP layer and the RLC layer of the first device.

[0019] In one possible implementation, before selecting the first sequence number, the method further includes: the RLC layer of the first device receiving a fourth data packet from the PDCP layer of the first device, wherein the PDCP layer of the first device has not assigned a sequence number to the fourth data packet; and the RLC layer of the first device sending a second data packet to the RLC layer of the second device based on the first sequence number, including: the RLC layer of the first device constructing a second data packet based on the fourth data packet and the first sequence number; and the RLC layer of the first device sending the second data packet to the RLC layer of the second device.

[0020] In this way, an RLC PDU containing a PDCP control PDU can be constructed.

[0021] In one possible implementation, the method further includes: the RLC layer of the first device receiving first indication information from the PDCP layer of the first device; wherein the first indication information is used to indicate that the fourth data packet carries control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device.

[0022] In one possible implementation, before selecting the first sequence number, the method further includes: the RLC layer of the first device generating RLC control information; and the RLC layer of the first device sending a second data packet to the RLC layer of the second device based on the first sequence number, including: the RLC layer of the first device constructing a second data packet based on the RLC control information and the first sequence number; and the RLC layer of the first device sending the second data packet to the RLC layer of the second device.

[0023] In this way, an RLC PDU containing RLC control information can be constructed.

[0024] Secondly, this application provides a communication method applied to a second device. The method includes: the RLC layer of the second device receiving a second data packet from the RLC layer of the first device based on a first sequence number. The second data packet is used to carry control information. The first sequence number is selected by the RLC layer of the first device based on a first data packet that has not yet been sent in the transmission buffer. The first data packet is used to carry service data. The sequence number of the first data packet is assigned by the PDCP layer of the first device.

[0025] In one possible implementation, the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

[0026] In one possible implementation, when selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry control information.

[0027] In one possible implementation, the first data packet is the first data packet in the send buffer that has not yet been sent and is used to carry business data.

[0028] In one possible implementation, both the first data packet and the second data packet include a first field, a second field, and a third field; wherein the first field is used to indicate the data packet type, the second field is used to indicate the data type carried by the data packet, and the third field is used to indicate whether the sequence number is reused by data packets carrying different data types.

[0029] In one possible implementation, the first field in the first data packet takes the value of a first value; when the control information carried by the second data packet comes from the PDCP layer of the first device, the first field in the second data packet takes the value of a first value; when the control information carried by the second data packet comes from the RLC layer of the first device, the first field in the second data packet takes the value of a second value, and the first value is different from the second value; the second field in the first data packet takes the value of a third value; the second field in the second data packet takes the value of a fourth value, and the third value is different from the fourth value; the third field in the second data packet takes the value of a fifth value; when selecting the first sequence number, the third field in the first data packet takes the value of a sixth value, and the fifth value is different from the sixth value; after selecting the first sequence number, the third field in the first data packet takes the value of a fifth value.

[0030] In one possible implementation, the method further includes: the RLC layer of the second device receiving a first data packet from the RLC layer of the first device; for the first data packet whose sequence number is multiplexed, if the first data packet satisfies a first condition, the RLC layer of the second device processes the first data packet to obtain a third data packet and a sequence number corresponding to the third data packet, wherein the third data packet does not include the sequence number corresponding to the third data packet; the RLC layer of the second device setting the value of a first indicator variable to a seventh value; wherein, if the value of the first indicator variable is a seventh value, it is used to indicate that the RLC layer of the second device has received all data packets including the first sequence number and carrying service data; the RLC layer of the second device sending the third data packet and the sequence number corresponding to the third data packet to the PDCP layer of the second device; wherein, the first condition includes at least one of the following: the sequence number of the first data packet is within the receiving window, the value of the first indicator variable is not a seventh value when the RLC layer of the second device receives the first data packet, and the RLC layer of the second device has not received any bytes of the first data packet.

[0031] In one possible implementation, the RLC layer of the second device sends the sequence number corresponding to the third data packet through a second interface, which is the inter-layer interface between the RLC layer and the PDCP layer of the second device.

[0032] In one possible implementation, after the RLC layer of the second device receives the second data packet from the RLC layer of the first device based on the first sequence number, the method further includes: if the second data packet satisfies a second condition, the RLC layer of the second device processes the second data packet to obtain a fourth data packet and the first sequence number, wherein the fourth data packet does not include the first sequence number and is a data packet from the PDCP layer of the first device; the RLC layer of the second device sets the value of the second indicator variable to the eighth value; wherein, when the value of the second indicator variable is the eighth value, it is used to indicate that the RLC layer of the second device has received all data packets including the first sequence number and carrying control information; the RLC layer of the second device sends the fourth data packet to the PDCP layer of the second device; wherein, the RLC layer of the second device does not carry the first sequence number when sending the fourth data packet; wherein, the second condition includes at least one of the following: the first sequence number is within the receiving window, the value of the second indicator variable is not the eighth value when the RLC layer of the second device receives the second data packet, and the RLC layer of the second device has not received any bytes of the second data packet.

[0033] In one possible implementation, the method further includes: the RLC layer of the second device sending second indication information to the PDCP layer of the second device; wherein the second indication information is used to indicate that the fourth data packet carries control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device.

[0034] In one possible implementation, after the RLC layer of the second device receives the second data packet from the RLC layer of the first device based on the first sequence number, the method further includes: if the second data packet satisfies a second condition, the RLC layer of the second device processes the second data packet to obtain RLC control information; the RLC layer of the second device sets the value of the second indicator variable to the eighth value; wherein, if the value of the second indicator variable is the eighth value, it is used to indicate that the RLC layer of the second device has received all data packets including the first sequence number and carrying control information; the RLC layer of the second device processes the RLC control information; wherein the second condition includes at least one of the following: the first sequence number is within the receiving window, the value of the second indicator variable is not the eighth value when the RLC layer of the second device receives the second data packet, and the RLC layer of the second device has not received any bytes of the second data packet.

[0035] In one possible implementation, the method further includes: when the first indicator variable is the seventh value and the second indicator variable is the eighth value, the RLC layer of the second device updates the target state variable; wherein the target state variable includes the first state variable and / or the second state variable, the first state variable is used to indicate the lower boundary of the receiving window, and the second state variable is used to indicate the highest acknowledgment number in the generated RLC state report.

[0036] Thirdly, embodiments of this application propose a communication device comprising a processing unit and a communication unit, which cooperate to enable the communication device to perform the functions of the first device described in the first aspect of the design. These functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the aforementioned functions.

[0037] Fourthly, embodiments of this application propose a communication device comprising a processing unit and a communication unit, which cooperate to enable the communication device to perform the functions of the second device described in the second aspect of the design. These functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the aforementioned functions.

[0038] Fifthly, embodiments of this application provide a communication device including at least one processor coupled to a memory storing a program or instructions. The processor executes the program or instructions to cause the communication device to perform the communication method in any of the possible implementations of the first aspect described above. Optionally, the communication device further includes a communication interface, with the processor coupled to the communication interface.

[0039] In one implementation, the communication interface can be a transceiver or an input / output interface.

[0040] In another implementation, the communication device is a chip configured in the first device. When the communication device is a chip configured in the first device, the communication interface can be an input / output interface.

[0041] Sixthly, embodiments of this application provide a communication device including at least one processor coupled to a memory storing a program or instructions. The processor executes the program or instructions to cause the communication device to perform the communication method in any of the possible implementations of the second aspect described above. Optionally, the communication device further includes a communication interface, with the processor coupled to the communication interface.

[0042] In one implementation, the communication interface can be a transceiver or an input / output interface.

[0043] In another implementation, the communication device is a chip configured in the second device. When the communication device is a chip configured in the second device, the communication interface can be an input / output interface.

[0044] In a seventh aspect, embodiments of this application provide a processor, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive signals through the input circuit and transmit signals through the output circuit, causing the processor to execute the communication method in any possible implementation of the first aspect, or to execute the communication method in any possible implementation of the second aspect.

[0045] In specific implementation, the processor can be one or more chips, the input circuit can be input pins, the output circuit can be output pins, and the processing circuit can be transistors, gate circuits, flip-flops, and various logic circuits. The input signal received by the input circuit can be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to and transmitted by a transmitter. Furthermore, the input circuit and the output circuit can be the same circuit, which is used as both the input circuit and the output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0046] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed, implement the communication method in any possible implementation of the first aspect or the communication method in any possible implementation of the second aspect.

[0047] Ninthly, embodiments of this application provide a computer program product comprising a computer program that, when run, causes a computer to execute the communication method in any possible implementation of the first aspect, or to implement the communication method in any possible implementation of the second aspect.

[0048] In a tenth aspect, embodiments of this application provide a chip system comprising one or more processors, which are configured to retrieve and execute instructions stored in memory, such that the communication method in any possible implementation of the first aspect is executed, or that the communication method in any possible implementation of the second aspect is executed. The chip system may be composed of chips or may include chips and other discrete devices.

[0049] The chip system may include input circuits or interfaces for transmitting information or data, and output circuits or interfaces for receiving information or data.

[0050] Eleventhly, embodiments of this application provide a communication system comprising a first device and a second device. The first device is used to execute the communication method in any possible implementation of the first aspect described above, and the second device is used to execute the communication method in any possible implementation of the second aspect described above. Optionally, the communication system may further include other devices that communicate with the first device and / or the second device.

[0051] The possible implementations of aspects two through eleven are similar in effect to those of aspect one and its possible design, and will not be elaborated upon here. Attached Figure Description

[0052] Figure 1 This is a schematic diagram of the structure of a communication system provided in an embodiment of this application; Figure 2 This is a schematic diagram illustrating data transmission at various layers of the protocol stack according to an embodiment of this application; Figure 3 This is a schematic diagram illustrating the data packet processing flow of each protocol layer on the user plane of the transmitting side, provided in an embodiment of this application. Figure 4 This is a schematic diagram of the processing of the PDCP layer and RLC layer of the first device provided by the related technology; Figure 5 This is a schematic diagram of the processing of the RLC layer and PDCP layer of the second device provided by related technologies; Figure 6 This is a flowchart illustrating a communication method provided in an embodiment of this application; Figure 7 This is a flowchart illustrating another communication method provided in an embodiment of this application; Figure 8 This is a flowchart illustrating another communication method provided in an embodiment of this application; Figure 9 This is a schematic diagram of the RLC PDU format provided in the embodiments of this application; Figure 10 This is a schematic diagram of the operation flow of the PDCP layer of the first device provided in the embodiments of this application; Figure 11 This is a schematic diagram of the operation flow of the RLC layer of the first device provided in the embodiments of this application; Figure 12 This is a schematic diagram of the operation flow of the RLC layer of the second device provided in the embodiments of this application; Figure 13 This is a schematic diagram of the operation flow of the PDCP layer of the second device provided in the embodiments of this application; Figure 14 This is a schematic diagram of the processing of the PDCP layer and RLC layer of the first device provided in the embodiments of this application; Figure 15 This is a schematic diagram of the processing of the RLC layer and PDCP layer of the second device provided in the embodiments of this application; Figure 16 This is a schematic block diagram of a communication device provided in an embodiment of this application; Figure 17 This is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation

[0053] In the embodiments of this application, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "multiple" means two or more.

[0054] It should be noted that, in the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0055] It should also be noted that in the embodiments of this application, "preset", "fixed value", etc. can be implemented by pre-saving the corresponding code, table or other means that can be used to indicate relevant information in the electronic device. This application does not limit the specific implementation method.

[0056] It should be understood that the methods, situations, categories, and classifications of embodiments in this application are for the convenience of description only and should not constitute a special limitation. Various methods, categories, situations, and features in embodiments can be combined with each other without contradiction.

[0057] It should also be understood that, in the description of this embodiment, unless otherwise stated, "multiple" means two or more. In the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0058] The technical solutions provided in this application can be applied to various communication systems, such as: Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Wireless Local Area Network (WLAN), Long Term Evolution (LTE), LTE Frequency Division Duplex (FDD), LTE Time Division Duplex (TDD), sidelink communication systems, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX), non-terrestrial network (NTN), 5th generation (5G) mobile communication systems, or new radio access technologies. Among these, 5G mobile communication systems may include non-standalone (NSA) and / or standalone (SA) networking. The technical solutions provided in this application can also be applied to future communication systems, such as 6th generation mobile communication systems. This application does not limit these applications.

[0059] Figure 1 This is a schematic diagram of the structure of a communication system provided in an embodiment of this application. For example... Figure 1 As shown, the communication system may include network devices, such as... Figure 1 The network device 100 shown. The communication system may also include terminal devices, such as... Figure 1 The terminal device 200 is shown. The network device 100 and the terminal device 200 can communicate via a wireless link.

[0060] Figure 1 An exemplary network device 100 and a terminal device 200 are shown. Optionally, the communication system may also include multiple network devices and / or multiple terminal devices.

[0061] The network device in this application embodiment can be a network-side device such as an access network or core network device. Access network devices are sometimes also called access nodes. Access network devices have wireless transceiver capabilities for communicating with terminal devices. Access network equipment includes, but is not limited to, base stations, evolved NodeBs (eNodeBs), radio network controllers (RNCs), node Bs (NBs), base station controllers (BSCs), base transceiver stations (BTSs), home base stations (e.g., home evolved Node Bs or home node Bs (HNBs)), access points (APs), wireless relay nodes, wireless backhaul nodes, transmission points (TPs), or transmission and reception points (TRPs / TPs) in wireless fidelity (Wi-Fi) systems, next-generation NodeBs (gNBs) in 5G mobile communication systems, access network equipment or modules of access network equipment in open RAN (ORAN) systems, satellites in NTN communication systems, base stations in future mobile communication systems, or access nodes in Wi-Fi systems. Access network equipment can also be modules or units capable of implementing some of the functions of a base station. Access network equipment can be macro base stations, micro base stations, indoor stations, relay nodes, donor nodes, or wireless controllers in cloud radio access network (CRAN) scenarios. Optionally, access network equipment can also be servers, wearable devices, or vehicle-mounted devices. Multiple access network devices in a communication system can be base stations of the same type or different types. Base stations can communicate with terminal devices or through relay stations. Terminal devices can communicate with multiple base stations using different access technologies. The embodiments of this application do not limit the specific technologies or device forms used in the access network equipment. In the embodiments of this application, access network equipment is referred to as network equipment.

[0062] In this application embodiment, the device for implementing the function of the network device can be the network device itself, or it can be any device capable of supporting the network device in implementing that function, such as a processor, circuit, chip, or chip system. This device can be installed in the network device or connected to and used with the network device. In the technical solution provided in this application, the example of a network device being used to implement the function of the network device is used to describe the technical solution provided in this application.

[0063] The terminal device in this application embodiment can be a wireless terminal device capable of receiving network device scheduling and instruction information. The wireless terminal device can be a device providing voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. For example, the terminal device can communicate with one or more core networks or the Internet via a radio access network (RAN). The terminal device can also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things (IoT), ultra-reliable low-latency communication (URLLC), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grids, smart furniture, smart offices, smart wearables, smart transportation, smart cities, or satellite communication, etc. The terminal can be a mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, etc. This application does not limit the specific technology or device form used in the terminal device.

[0064] In the embodiments of this application, the device for implementing the functions of the terminal device can be the terminal device itself, or any device capable of supporting the terminal device in implementing the functions, such as a processor, circuit, chip, or chip system. This device can be installed in the terminal device or connected to and used with the terminal device. In the technical solutions provided in this application, the terminal device is used as an example to illustrate the technical solutions provided in this application.

[0065] Access network equipment and / or terminal equipment can be fixed or mobile. They can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; on water; or in the air on aircraft, balloons, and satellites. This application does not limit the application scenarios of the access network equipment and terminal equipment. They can be deployed in the same or different scenarios; for example, both can be deployed on land simultaneously; or the access network equipment can be deployed on land while the terminal equipment is deployed on water, etc., and so on.

[0066] In practical applications, multiple network devices can collaborate to assist terminal devices in achieving wireless access, with different network devices each implementing a portion of the base station's functions. For example, network devices can be central units (CUs), distributed units (DUs), CU-control plane (CP) nodes, CU-user plane (UP) nodes, or radio units (RUs), etc. CUs and DUs can be set up separately or included in the same network element, such as a baseband unit (BBU). RUs can be included in radio frequency equipment or radio frequency units, such as remote radio units (RRUs), active antenna units (AAUs), or remote radio heads (RRHs).

[0067] In different systems, CU (or CU-CP and CU-UP), DU, or RU may have different names, but those skilled in the art will understand their meaning. For example, in an ORAN system, CU can also be called O-CU (Open CU), DU can also be called O-DU, CU-CP can also be called O-CU-CP, CU-UP can also be called O-CU-UP, and RU can also be called O-RU. Any of the units among CU (or CU-CP, CU-UP), DU, and RU in the embodiments of this application can be implemented through software modules, hardware modules, or a combination of software modules and hardware modules. CU (or CU-CP and CU-UP), DU, and RU can implement different protocol layer functions.

[0068] To facilitate understanding of the technical solutions in the embodiments of this application, some terms involved in the embodiments of this application are briefly explained below. Optionally, the explanation of some terms can also refer to the explanation in the 3rd Generation Partnership Project (3GPP) standard protocol. It should be understood that the technical terms in this application are only examples and not limitations. For example, as technology evolves, technical terms may also change; where the technical meaning is the same, other technical terms should also apply to this application.

[0069] 1. Protocol Layer Structure Interoperable network devices and terminal devices have a specific protocol layer structure. For example, the control plane protocol layer structure, from top to bottom, can include the functions of protocol layers such as the radio resource control (RRC) layer, PDCP layer, RLC layer, MAC layer, and PHY layer. The user plane protocol layer structure, from top to bottom, can include the functions of protocol layers such as the PDCP layer, RLC layer, MAC layer, and PHY layer. Among them, the PHY layer is located at the bottom layer (layer one), the MAC layer, RLC layer, and PDCP layer belong to the second layer (layer two), and the RRC layer belongs to the third layer (layer three). In one implementation, a service data adaptation protocol (SDAP) layer can also be included above the PDCP layer.

[0070] The functions of these protocol layers can be implemented by a single node or by multiple nodes. For example, in one evolutionary architecture, the radio access network equipment may include a CU and a DU, and multiple DUs can be centrally controlled by a single CU. The CU and DU can be distinguished according to the protocol layers of the wireless network. For example, the functions of the PDCP layer and above are located in the CU, while the functions of the protocol layers below PDCP, such as the RLC layer and MAC layer, are located in the DU.

[0071] It should be understood that this protocol layer division is merely an example; other protocol layer divisions are possible. For instance, at the RLC layer, the functions of the RLC layer and above could be placed in the CU, while the functions of the protocol layers below the RLC layer could be placed in the DU. Alternatively, division could be done within a specific protocol layer, for example, placing some functions of the RLC layer and the functions of the protocol layers above the RLC layer in the CU, and placing the remaining functions of the RLC layer and the functions of the protocol layers below the RLC layer in the DU. Furthermore, division can be done in other ways, such as by latency, placing functions whose processing time needs to meet latency requirements in the DU, and functions that do not need to meet that latency requirement in the CU.

[0072] When network devices and terminal devices transmit data, taking upstream data transmission as an example... Figure 2 This is a schematic diagram illustrating data transmission at various layers of the protocol stack, as provided in an embodiment of this application. Figure 2 As shown, data first reaches the PDCP layer of the terminal device. After processing at the PDCP layer, it is transmitted to the RLC and MAC layers. After further processing at the MAC layer, it is sent to the network device via the PHY layer. When the network device receives data, the protocol layers it passes through in sequence are the PHY layer, MAC layer, RLC layer, and PDCP layer. Data in each radio bearer needs to be processed by each layer. Each layer has corresponding functional entities to perform its respective function. For example, the PDCP layer includes a PDCP entity, the RLC layer includes an RLC entity, and the MAC layer includes a MAC entity, etc. Each radio bearer contains one PDCP entity and one or more RLC entities, each RLC entity corresponding to a logical channel. One MAC entity corresponds to multiple logical channels. Data in logical channels can be multiplexed at the MAC layer, for example, multiplexed into the same data block, and finally sent out through the PHY layer. The transmission process for downlink data is similar and will not be elaborated further.

[0073] 2. Data packet A data packet refers to a protocol data unit (PDU) formed by a layer in the protocol stack after it has structuredly encapsulated data from an upper layer. This PDU has independent addressing capabilities and control information boundaries. For example, when an upper-layer service data unit (SDU) enters this layer, this layer adds its own header according to the protocol specification to form its own PDU. This PDU continues to be passed down and becomes the SDU of the next lower layer.

[0074] In some examples, within the same protocol layer, data packets can be divided into two types of PDUs based on their functional attributes: data PDUs (also known as service data packets) and control PDUs (also known as control data packets). For example, a data PDU refers to a protocol data unit used to carry data delivered from the upper layer. For instance, a data PDU can carry user service data delivered from the upper layer, including Internet Protocol (IP) packets, voice frames, video slices, etc. Similarly, a control PDU refers to a protocol data unit used to carry protocol control information for this layer or other layers. Protocol control information includes status reports, feedback instructions, synchronization signaling, etc. Control PDUs are used to implement functions such as protocol status maintenance, link quality feedback, retransmission control, and window synchronization.

[0075] Figure 3 This is a schematic diagram illustrating the data packet processing flow of each protocol layer in the user plane on the transmitting side, as provided in an embodiment of this application. Figure 3 As shown, on the transmitting side, the data packet first arrives at the SDAP layer. The SDAP layer, based on the Quality of Service (QoS) flow to Data Radio Bearer (DRB) mapping rules, delivers the data packet to the corresponding PDCP entity for each DRB (each DRB corresponds to one PDCP entity). The PDCP layer performs compression and encryption operations on the data packet before delivering it to the RLC layer. The RLC layer processes the data packet, whether segmenting or not, before delivering it to the MAC layer. The MAC layer assembles one or more data packets into a MACPDU and delivers it to the PHY layer.

[0076] In this process, the data packets received by the SDAP layer are IP data packets, which are referred to as SDAPSDUs at the SDAP layer. The SDAP layer processes this SDAPSDU by adding an SDAP header and other steps to obtain an SDAP PDU, which is then delivered to the PDCP entity. In other words, the data packet delivered by the SDAP layer to the PDCP entity is an SDAPPDU.

[0077] In the PDCP layer, the SDAPPDU is referred to as the PDCPSDU. The PDCP layer performs various processing steps on the PDCPSDU, such as adding a PDCP header, to obtain the PDCPPDU, and then submits the PDCPPDU to the RLC layer. In other words, the data packet submitted by the PDCP layer to the RLC layer is the PDCPPDU.

[0078] In the RLC layer, PDCPPDU is referred to as RLCSDU (there is a one-to-one mapping between PDCPPDU and RLCSDU). The RLC layer may or may not segment RLCSDU. When RLCSDU is segmented, each segment is called an RLCSDU segment. After the RLC layer obtains RLCPDU by adding RLC headers and other related processing to RLCSDU segments or RLCSDUs, it delivers the RLCPDU to the MAC layer. That is, the data packet delivered by the RLC layer to the MAC layer is an RLCPDU.

[0079] In the MAC layer, the RLCPDU is referred to as a MACSDU. The MAC layer processes this MACSDU by adding a MAC sub-header and performing other related processing to obtain a MACsubPDU. One or more MACsubPDUs are then combined to form a MACPDU, which is then submitted to the PHY layer. In other words, the data packets submitted by the MAC layer to the PHY layer are MACSDUs.

[0080] The PHY layer modulates and encodes the MACPDU to generate a transport block (TB), which is then sent out through air interface resources.

[0081] In this embodiment, improvements are mainly made to the data transmission operations of the PDCP layer and the RLC layer. For ease of understanding, the main functions of the PDCP layer and the RLC layer will be described in detail below.

[0082] 3. RLC layer The RLC layer sits above the MAC layer and below the PDCP layer, providing services such as segmentation and retransmission for user and control data. Its core task is to ensure that each data packet can be reliably and sequentially delivered to the upper layer (PDCP layer) on a single link.

[0083] This can be achieved through the Automatic Repeat Request (ARQ) mechanism. The RLC layer's transmission modes include acknowledged mode (AM). AM RLC introduces an ACK / NACK mechanism, requiring the receiver to ACK or NACK the received data. The sender can then retransmit unacknowledged data packets based on the received ACK / NACK information. AM RLC ensures reliable data transmission to peer entities and corrects potential errors during transmission through retransmission mechanisms, providing reliable data transmission guarantees. In this embodiment, AM RLC is used as an example for illustration.

[0084] An RLC entity is a specific functional instance of the RLC layer. An RLC entity includes an RLC transmitting entity and an RLC receiving entity. An RLC transmitting entity can receive RLCSDUs from the upper layer and send RLCPDUs to its peer RLC entity through the lower layer.

[0085] The core objective of the RLC receiving entity is to reassemble potentially fragmented or out-of-order RLCPDUs into complete RLCSDUs and deliver them to the upper layer (PDCP layer). The RLC receiving entity maintains a receive window (also called a reassembly window), which indicates the sequence number range of data packets (RLC PDUs) expected to be received but not yet received. In other words, the receive window manages the data reception range of the RLC layer. Upon receiving an expected data packet, the receive window slides forward.

[0086] To prevent buffer overflow at the receiving end and to implement flow control, in AM mode, the sending end's RLC entity maintains a sending window and uses a sliding window protocol. The sending window is a logical buffer within the RLC entity used to indicate the range of RLC sequence numbers for packets (RLCPDUs) that have not yet been acknowledged. The sending end can only send data within the sending window; after receiving an acknowledgment, the sending window slides forward. In other words, the sending window manages the data transmission range of the sending end's RLC entity.

[0087] 4. PDCP layer The PDCP layer sits above the RLC layer and primarily provides functions such as encryption, integrity protection, header / data compression, timed discarding, reordering, and in-order delivery. A PDCP entity is a specific functional instance of the PDCP layer. PDCP entities include PDCP sending entities and PDCP receiving entities.

[0088] After receiving a data packet (PDCP SDU) from the upper layer (user plane from SDAP layer, control plane from RRC layer), the PDCP sending entity can perform operations such as compression and encryption on the data packet before delivering it to the RLC layer.

[0089] After receiving a data packet from the lower RLC layer, the PDCP receiving entity first performs decryption and integrity checks. Then, it reorders the packets according to their sequence numbers and delivers them to the upper layer in order. The core task of the receiving PDCP entity is to handle out-of-order data from the higher layers, reordering the data delivered from the RLC layer. This is achieved through a timed wait and timeout skip mechanism. In other words, the PDCP receiving entity does not actively request retransmissions. Upon receiving an out-of-order packet, it starts a reordering timer to wait. After a certain period, to avoid blocking, it skips the lost packets.

[0090] 5. Data packet sequence number A sequence number is an identifier assigned to each data packet to track the order in which data packets are sent and received. Sequence numbers are also called sequence numbers. In related technologies, data packets at different layers can have separate sequence numbers. For example, the PDCP layer sequence number (PDCPSN) is used by the PDCP layer to identify the order of PDCP PDUs. The PDCP layer uses the PDCPSN for duplicate detection and in-order delivery. The RLC layer sequence number (RLCSN) is used by the RLC layer to identify the order of RLCPDUs. The RLC layer uses the RLCSN for segmentation management and retransmission control.

[0091] In traditional NR systems, the PDCPSN and RLCSN each have different uses to support different functions. For example, at the PDCP layer, sequence numbers are used as input to encryption and integrity protection algorithms, as well as for duplicate detection caused by the PDCP replication mechanism, reordering during in-order delivery, and lossless handover in AMDRB. For AMRLC, when transmitting a complete RLCSDU, the sequence number assigned by the RLC is used for RLC status reporting and ARQ retransmission. For UMRLC and AMRLC, when transmitting a segmented RLCSDU, the sequence number assigned by the RLC is used for reassembly.

[0092] 6. COUNT value The COUNT value is composed of the hyperframe number (HFN) and the PDCPSN, and directly participates in the encryption and integrity protection of user plane and control plane data. For example, COUNT = HFN × 2 sn-FieldLength +SN, where sn-FieldLength is the bit length of PDCPSN, such as 12 bits or 18 bits.

[0093] HFN is a key parameter in wireless communication protocols used for data encryption and time synchronization. Together with PDCPSN, it forms the complete COUNT value, used to resolve the PDCPSN circular overflow problem. The HFN portion of the COUNT value is usually not transmitted over the air interface; only the sequence number is transmitted over the air interface.

[0094] For example, HFN increments by 1 each time the PDCPSN flips. For instance, when a terminal device establishes an RRC connection with a network device, the PDCP layer initializes the HFN for each radiobearer, typically with an initial value of 0. Afterward, HFN increments are triggered by PDCPSN overflow. When the PDCPSN reaches its maximum value (e.g., the maximum value for a 12-bit PDCPSN is 4095) and overflows (i.e., the PDCPSN returns to zero from its maximum value), HFN automatically increments by 1.

[0095] 7. TX_Next TX_Next is a state variable maintained by the PDCP layer of the transmitter. TX_Next is used to indicate the count value (i.e., the COUNT value) of the next PDCP PDU to be delivered to the RLC layer of the transmitter. The initial value of TX_Next is 0.

[0096] 8. TX_Next_Ack TX_Next_Ack is a state variable maintained by the RLC layer at the sending end. TX_Next_Ack is used to indicate the minimum RLC SN of a data packet that has been sent by the RLC layer at the sending end but has not yet been acknowledged (i.e., unacknowledged reception). In other words, TX_Next_Ack is also used to indicate the RLC SN of the next data packet after an acknowledged (Ack) data packet. It is the lower boundary of the sending window. Once the RLC SN of a received data packet is TX_Next_Ack, the TX_Next_Ack state variable needs to be updated.

[0097] Therefore, a transmission window is maintained at the RLC layer. The lower boundary of the transmission window is the TX_Next_Ack, and the upper boundary of the transmission window is the lower boundary of the transmission window plus the window size (AM_Window_Size). That is, the transmission window = [TX_Next_Ack, TX_Next_Ack + AM_Window_Size]. The window size of the transmission window can be set according to the bit length of the RLC SN, or it can be set in other ways.

[0098] 9. RX_Next RX_Next is a state variable maintained by the RLC layer at the receiver. RX_Next stores the next RLC SN of the latest in-order, fully received RLCSDU, serving as the lower boundary of the receive window. Furthermore, RX_Next plus the receive window size (AM_Window_Size) can be used as the lower boundary of the receive window; that is, receive window = [RX_Next, RX_Next + AM_Window_Size].

[0099] 10. RX_Highest_Status RX_Highest_Status is a status variable maintained by the RLC layer at the receiver. It represents the maximum state transmission status variable. RX_Highest_Status is used to store the highest possible RLC SN indicated by the RLC status report when the RLC status report is constructed. That is, the next RLC SN after the highest RLC SN of the RLCSDU that the receiver can confirm the reception status.

[0100] 11. RX_Next_Highest RX_Next_Highest is a state variable maintained by the RLC layer of the receiver. It represents the highest received state variable. RX_Next_Highest is used to indicate that the receiver has received the highest sequence number boundary in the RLCSDU. It stores the next sequence number of the highest sequence number in all received RLCSDUs.

[0101] 12. RX_DELIV RX_DELIV is a state variable maintained by the PDCP layer at the receiver. It is used to indicate the COUNT value of the first PDCPSDU that has not yet been submitted to the upper layer (such as the SDAP layer). Its initial value is 0.

[0102] 13. t-Reordering timer The t-Reordering timer is a timer configured by the PDCP layer at the receiving end for the reordering window. When a sequence number gap exists within the reordering window, the t-Reordering timer is activated to detect packet loss. If the t-Reordering timer expires without receiving the data packet corresponding to the missing COUNT value within the window, the PDCP layer at the receiving end determines that the data packet has been lost. In this case, the missing data packet is skipped, and the continuously received data packets within the window are delivered in order. The lower edge of the reordering window is updated, causing the reordering window to slide forward, thus preventing local packet loss from blocking the overall transmission.

[0103] With the development of communication technology, in order to reduce Uu interface overhead and processing complexity, a unified sequence number can be used in the PDCP layer and RLC layer, that is, the PDCPSN and RLCSN are the same. Here, "PDCPSN and RLCSN are the same" means that after the PDCP layer assigns a sequence number to the PDCPPDU, the RLC layer, upon receiving the PDCPPDU, directly uses the sequence number assigned by the PDCP layer as the sequence number of the RLC PDU, without reassigning a sequence number to the RLCPDU.

[0104] It should be understood that in standalone networking, there is a one-to-one mapping between PDCP entities and RLC entities within each DRB, as well as a one-to-one mapping between PDCPPDU and RLCSDU. These one-to-one mappings make it possible for the PDCP layer and RLC layer to adopt a unified sequence numbering mechanism (i.e., common sequence number).

[0105] In the unified sequence numbering mechanism, since the sequence number is the input for PDCP layer security protection, it is still determined by the PDCP layer at the transmitting end. That is, the PDCP layer at the transmitting end is responsible for sequence number allocation. This processing method is consistent with the traditional NR implementation. The allocation of the sequence number occurs earlier than when it is added to the PDCP header. Sharing a single sequence number between data units in the RLC and PDCP layers reduces processing complexity and Uu interface overhead, but it also brings corresponding problems.

[0106] Specifically, using only one sequence number in the user plane protocol stack implies the assumption that all upper-layer SDUs carry a sequence number. However, this assumption does not apply to the PDCP control PDU in 5G NR. Since the PDCP control PDU neither requires reordering nor security protection, it may not contain a PDCPSN. Nevertheless, in NR, the PDCP control PDU still needs to apply the ARQ mechanism, a function that depends on the RLCSN.

[0107] Therefore, under a unified sequence numbering mechanism, if the PDCP layer at the transmitting end omits sequence number allocation for PDCP control PDUs, these PDCP control PDUs will be unable to be segmented or retransmitted due to the lack of sequence numbers. This necessitates that the PDCP layer at the transmitting end also allocate sequence numbers for the PDCP control PDUs. However, this approach has a certain drawback: the loss of a PDCP control PDU will create a sequence number gap at the receiving end, leading to unnecessary PDCP reordering delays.

[0108] For example, Figure 4 This is a schematic diagram of the processing of the PDCP layer and RLC layer of the first device provided by the related technology; Figure 5 This is a schematic diagram of the RLC layer and PDCP layer processing of the second device provided by related technologies. The first device is the transmitter, and the second device is the receiver.

[0109] It should be noted that in related technologies, the sequence number allocated by the PDCP layer to each data packet is either 12 bits or 18 bits in length. Since the window size of the sending window and the window size of the receiving window are half the sequence number space, the window size of the sending window and the window size of the receiving window are 2048 when using 12-bit sequence numbers; and 131072 when using 18-bit sequence numbers. For simplicity, Figure 4 and Figure 5 This example illustrates the concept by assigning a 4-bit sequence number to each data packet by the PDCP layer. In this case, the window size for sending and receiving is 8.

[0110] The PDCP layer of the first device assigns sequence numbers to PDCP PDUs (including PDCP data PDUs and PDCP control PDUs). For example... Figure 4 As shown in (a), taking HFN=0 as an example, the PDCP layer of the first device sends PDCP PDUs with SN=0 to SN=7 to the RLC layer of the first device. Among them, PDCP PDUs with SN=0 to SN=3 and SN=5 to SN=7 are PDCP data PDUs, and PDCP PDU with SN=4 is a PDCP control PDU. However, the PDCP layer of the first device has not yet sent PDC PDUs with SN=8 and beyond to the RLC layer of the first device.

[0111] TX_Next is used to indicate the COUNT value of the next PDCP PDU to be delivered to the RLC layer of the first device. For example, with HFN=0, the PDCP PDU with SN=8 is the next PDCP PDU to be delivered to the RLC layer of the first device.

[0112] After receiving the PDCP PDU, the RLC layer of the first device processes the PDCP PDU to construct an RLC PDU. Furthermore, the RLC layer directly uses the sequence number assigned by the PDCP layer as the sequence number of the RLC PDU and places it into the SN field of the constructed RLC PDU. Then, the RLC layer of the first device sends out the constructed RLC PDU.

[0113] like Figure 4 As shown in (b), the RLC layer of the first device transmits RLC PDUs with SN=0 to SN=7. It should be understood that for an RLC PDU with SN=4, it includes a PDCP control PDU, such that the PDCP control PDU is transmitted in the RLC layer of the first device as an RLC PDU with SN=4.

[0114] like Figure 4 As shown in (b), the lower boundary of the sending window is SN=0, that is, TX_Next_Ack points to SN=0, and the window size of the sending window is 8 (i.e., AM_Window_Size=8). In other words, the minimum SN of the data packets that have been sent by the RLC layer of the first device but have not yet been acknowledged is 0.

[0115] like Figure 5As shown in (b), the lower boundary of the receive window is SN=0, meaning RX_Next points to SN=0, and the window size of the receive window is 8 (i.e., AM_Window_Size=8). Therefore, the RLC layer of the second device allows the reception of RLCPDUs with SN=0 to SN=7. Subsequently, if the RLC layer of the second device receives an RLC PDU with SN=0, it removes the RLC header of the RLC PDU with SN=0 to obtain the PDCP PDU, delivers it to the upper layer (i.e., the PDCP layer of the second device), and updates the lower boundary of the receive window to SN=1.

[0116] If RLC PDUs with SN=0 to SN=3 and RLC PDUs with SN=5 to SN=7 are successfully received by the RLC layer of the second device, but the RLC PDU with SN=4 is lost or not correctly received during transmission (i.e., the transmission of the RLC PDU with SN=4 fails), then the RLC layer of the second device removes the RLC header of the successfully received RLC PDU and delivers the resulting PDCP PDU to the PDCP layer of the second device. Figure 5 As shown in (a), the PDCP layer of the second device detects a reception gap at the sequence number position (i.e., SN=4) based on SN continuity, thereby triggering the start of the t-Reordering timer.

[0117] During the operation of the t-Reordering timer, PDCP SDUs with sequence numbers greater than 4 (such as SN=5, SN=6, SN=7) that have arrived at the PDCP layer of the second device are cached in the reordering buffer, causing a delay in the delivery of PDCP SDUs with sequence numbers greater than 4 (such as SN=5, SN=6, SN=7) to the upper layer.

[0118] Here, RX_DELIV is used to indicate the COUNT value of the first PDCPSDU that has not yet been submitted to the upper layer. For example, RX_DELIV points to SN=0.

[0119] It should be understood that the PDCP control PDU occupies sequence number 4 in the PDCP shared sequence number space. The reason why the t-Reordering timer starts is that the PDCP layer of the second device detects a reception gap at this sequence number position (i.e., SN=4) based on SN continuity. In other words, this reception gap is caused by the PDCP control PDU. However, at the PDCP layer, the PDCP control PDU does not need to participate in the queuing logic for in-order delivery together with the PDCP data PDU.

[0120] Furthermore, in a unified sequence numbering mechanism, the PDCP layer at the transmitting end is responsible for allocating sequence numbers, which makes it difficult to add sequence numbers to the RLC control information generated by the RLC layer at the transmitting end. Consequently, the RLC control PDU output by the RLC layer at the transmitting end does not include sequence numbers.

[0121] Taking the RLC control PDU as an example of an RLC status report, 5G stipulates that the RLC status report must be transmitted within one TB. If the RLC status report is too long, and the channel quality between the terminal device and the network device is poor, the RLC status report transmission will fail and be retransmitted, resulting in excessive retransmission delay and wasting uplink resources. The specific reasons can be found in the description below.

[0122] In AM mode, RLC status reports are sent to provide feedback on packet reception. For each lost or corrupted RLC PDU, a NACK message and its sequence number need to be recorded in the RLC status report. If RLC PDU loss is severe, the number of NACK messages can be quite large. Therefore, for terminal equipment located at the cell edge, when there are a large number of RLC block error rates (BLERs) that need to be corrected by ARQ, a large number of NACK messages will be generated, resulting in a long RLC status report. In other words, high downlink RLC BLER leads to a large RLC status report.

[0123] Furthermore, for terminal devices located at the cell edge, if the network device detects poor channel quality between itself and the terminal device, it will adopt a more conservative modulation and coding scheme (MCS) to ensure correct data transmission. Due to the low MCS and unfavorable channel conditions, the TB size that the uplink grant issued by the network device can carry will be significantly reduced. Thus, if the RLC status report is relatively long and the TB size that the uplink grant can carry is too small, it will result in the inability to transmit the complete RLC status report, and only a small portion suitable for inclusion in the MACPDU's receive window can be transmitted.

[0124] Furthermore, in AM mode, to prevent frequent RLC status report transmissions due to network fluctuations, the terminal device introduces a t-StatusProhibit mechanism (status report prohibition timer). During t-StatusProhibit's operation, even if new packet loss or receive window slippage is detected, RLC status report transmission is prohibited. This further leads to excessively long delays in indicating NACK to the network device at the upper boundary of the receive window. When t-StatusProhibit expires, the terminal device may have a larger number of RLC status reports to transmit, but the uplink grant's capacity (TB) may still be small, causing repeated instances of incomplete RLC status report transmission, thus accumulating latency in RLC retransmissions.

[0125] However, if the value of t-StatusProhibit is small, such as setting it to 0, the terminal device will immediately generate and send an RLC status report as soon as it receives an uplink grant. Because the specification requires that RLC status reports always start from Rx_Next, if the time between two uplink grants is extremely short, the network device simply doesn't have time to retransmit lost packets, meaning the terminal device's status remains unchanged. Therefore, the NACK information included in each RLC status report generated by the terminal device is highly repetitive, leading to a waste of uplink grant resources.

[0126] In summary, the above process reveals a vicious cycle of positive feedback: starting with a large number of NACK messages triggered by high downlink RLC BLER, the limited uplink resources and the t-StatusProhibit timer mechanism ultimately lead to an infinite accumulation of RLC retransmission delays and a waste of uplink resources. The root cause of this problem is that 5G stipulates that RLC status reports must be transmitted within one TB.

[0127] To change this situation, it is necessary to allow RLC status reports to be transmitted not only over multiple TBs, but also to allow retransmission. This requirement necessitates that the new RLC status report has the following characteristics: the RLC status report header contains a sequence number, and the RLC status report supports segmentation.

[0128] Therefore, in a unified sequence numbering mechanism, how to add sequence numbers to the RLC control information generated by the RLC layer at the transmitting end so that the RLC control PDU (such as the RLC status report) contains sequence numbers, in order to solve the aforementioned problems of infinite accumulation of RLC retransmission delay and waste of uplink resources, is also an issue that urgently needs to be considered.

[0129] Based on this, this application provides a communication method in which the RLC layer of the first device selects a first sequence number based on a first data packet that has not yet been sent in the transmission buffer. The first data packet is used to carry service data, and the sequence number of the first data packet is assigned by the PDCP layer of the first device. Based on the first sequence number, the RLC layer of the first device sends a second data packet to the RLC layer of the second device. The second data packet is used to carry control information. Therefore, when the control information carried by the second data packet comes from the PDCP layer of the first device, that is, when the second data packet includes a PDCP control PDU, the PDCP layer of the first device does not assign a sequence number to the PDCP control PDU. Instead, the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the PDCP control PDU. Even if the PDCP control PDU is lost, no sequence number gap will be generated in the PDCP layer of the second device, thereby avoiding unnecessary PDCP reordering delay. Furthermore, when the control information carried by the second data packet comes from the RLC layer of the first device, that is, when the second data packet includes RLC control information generated by the RLC layer, the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the RLC control information, thereby adding a sequence number to the RLC control information. This ensures that the RLC control PDU contains a sequence number, thus solving the problem of infinite accumulation of RLC retransmission delay and waste of uplink resources caused by the RLC control PDU not including a sequence number.

[0130] The communication method provided in this application embodiment will be described in detail below with reference to the corresponding flowcharts. It is understood that the illustrative flowcharts provided in this application embodiment mainly use different devices (for example, a first device, a second device) as examples of the execution subjects of the interaction, but this application embodiment does not limit the execution subjects of the interaction. For example, the device in the schematic flowchart can also be a component applied in that device (e.g., a processor, chip, circuit, or chip system), or it can be a logic module or software that can implement all or part of the functions of the terminal device.

[0131] In the communication scenario of this application embodiment, depending on the specific data carried by the data packet (i.e., RLCPDU) sent by the first device to the second device, it can be divided into the following three cases. The communication methods corresponding to these three cases in this application embodiment can be referred to the following description.

[0132] It should be noted that, Figure 6 The following is an example of the first device sending a first data packet containing PDCP data PDU to the second device. In this case, the first data packet is an RLC PDU containing PDCP data PDU. Figure 7The following is an example of the first device sending a second data packet containing a PDCP control PDU to the second device. In this case, the second data packet is an RLC PDU containing a PDCP control PDU. Figure 8 The following is an example of the first device sending a second data packet containing RLC control information to the second device. In this case, the second data packet is an RLC PDU containing RLC control information.

[0133] Among them, RLC PDUs containing PDCP data PDUs and RLC PDUs containing PDCP control PDUs are both called RLC data PDUs; while RLC PDUs containing RLC control information are called RLC control PDUs.

[0134] For example, Figure 6 This is a flowchart illustrating a communication method provided in an embodiment of this application. It can be understood that... Figure 6 The first device is a transmitter, and the second device is a receiver. The first device includes a PDCP layer and an RLC layer, and the second device also includes a PDCP layer and an RLC layer. In some embodiments, the first device is a terminal device (such as a UE), or a device within the terminal device (e.g., a processor, chip, or chip system); the second device is a network device (such as a base station), or a device within the network device (e.g., a processor, chip, or chip system). Alternatively, the first device is a network device, or a device within the network device (e.g., a processor, chip, or chip system); the second device is a mobile terminal, or a device within the mobile terminal (e.g., a processor, chip, or chip system). Figure 6 As shown, the communication method may specifically include the following steps S601 to S612.

[0135] S601, the PDCP layer of the first device receives the PDCP SDU from the upper layer.

[0136] In some embodiments, the PDCP layer of the first device (i.e., the sending entity of the PDCP layer) can receive a PDCPSDU (e.g., IP packet, voice frame, video slice, etc.) from an upper layer (e.g., SDAP layer).

[0137] S602, the PDCP layer of the first device constructs the third data packet based on the PDCP SDU.

[0138] In some embodiments, when the PDCP layer of the first device receives a new PDCP SDU, the PDCP layer of the first device associates the current TX_Next value with the COUNT value of the PDCPSDU, that is, the PDCP layer of the first device directly assigns the current TX_Next value to the PDCPSDU as the COUNT value of the PDCPSDU.

[0139] Next, the PDCP layer of the first device performs integrity protection and encryption on the PDCPSDU using the COUNT value. Specifically, the PDCP layer of the first device can perform integrity protection on the unencrypted data portion (such as the PDCPSDU) based on the integrity protection key, COUNT value, bearer identifier, and direction identifier to generate a 32-bit message authentication code for integrity (MAC-I), and then append the MAC-I to the end of the PDCP SDU; then, based on the encryption key, COUNT value, bearer identifier, and direction identifier, a key stream is generated, and the key stream is used to perform encryption operations on the PDCPSDU and MAC-I, assembling the PDCP header (i.e., the packet header of the PDCP PDU), the encrypted PDCPSDU, and the encrypted MAC-I into a PDCP data PDU.

[0140] The third data packet refers to the PDCP data PDU constructed in the above manner. The third data packet does not include the sequence number corresponding to the third data packet (that is, the PDCP header of the PDCP data PDU does not include the sequence number corresponding to the PDCP data PDU), and the third data packet is used to carry service data (also known as user service data).

[0141] S603, the PDCP layer of the first device assigns the sequence number corresponding to the third data packet.

[0142] In some embodiments, the PDCP layer of the first device can extract the RSN portion from the COUNT value bound to the PDCPSDU and use the extracted RSN portion as the sequence number corresponding to the third data packet.

[0143] It should be noted that, in this embodiment of the application, since a unified sequence number is used in both the PDCP layer and the RLC layer, the PDCP layer of the first device assigns the sequence number to the PDCP data PDU. The RLC layer of the first device no longer assigns its own sequence number, but directly uses the sequence number provided by the PDCP layer of the first device as the sequence number of the RLC PDU, and the PDCP header of the PDCP data PDU does not include this sequence number. Therefore, in this embodiment of the application, the sequence number of the data packet can be represented by RSN. RSN refers to the sequence number contained in the RLC header of the RLC PDU (i.e., the packet header of the RLC PDU), which is generated by the PDCP layer of the first device and transmitted to the RLC layer of the first device through the inter-layer interface along with the PDCP data PDU.

[0144] In some examples, the sequence number RSN corresponding to the third data packet is TX_Next mod 2. sn-FieldLengthSn-FieldLength is the bit length of the sequence number allocated by the PDCP layer of the first device, such as 12 bits or 18 bits, and mod represents the modulo operation.

[0145] S604, the PDCP layer of the first device sends a third data packet and its corresponding sequence number to the RLC layer of the first device. Correspondingly, the RLC layer of the first device receives the third data packet and its corresponding sequence number from the PDCP layer of the first device.

[0146] After the PDCP layer of the first device constructs the third data packet and assigns a sequence number to it, the PDCP layer of the first device delivers the third data packet to the RLC layer of the first device, and simultaneously delivers the sequence number corresponding to the third data packet to the RLC layer of the first device. Accordingly, the RLC layer of the first device receives the third data packet from the PDCP layer of the first device, along with the sequence number corresponding to the third data packet.

[0147] In some examples, the PDCP layer of the first device sends the sequence number of the third data packet to the RLC layer of the first device through the first interface. Correspondingly, the RLC layer of the first device receives the sequence number of the third data packet through the first interface. The first interface is the inter-layer interface between the PDCP layer and the RLC layer of the first device.

[0148] Furthermore, after the PDCP layer of the first device sends the third data packet to the RLC layer of the first device, the PDCP layer of the first device can update TX_Next, that is, set TX_Next = TX_Next + 1.

[0149] S605, the RLC layer of the first device constructs the first data packet based on the third data packet and the sequence number corresponding to the third data packet.

[0150] After the RLC layer of the first device receives the third data packet and its corresponding sequence number from the PDCP layer of the first device, the third data packet can be used as an RLC SDU. The RLC layer of the first device can construct an RLC header based on the sequence number of the third data packet. For example, the sequence number of the third data packet can be placed in the RSN field of the RLC header. Then, the first data packet can be constructed based on the RLC header and the third data packet. The first data packet can be used as an RLC PDU, and the data payload of the first data packet is a PDCP data PDU, that is, the first data packet includes a PDCP data PDU.

[0151] In one approach, if the RLC layer of the first device does not segment the third data packet, the RLC layer of the first device can assemble the RLC header with the third data packet (i.e., the complete RLC SDU) to obtain the first data packet. For example, the RLC header can be added to the beginning of the third data packet to obtain the first data packet. In this case, the first data packet includes the complete PDCP data PDU.

[0152] Alternatively, if the RLC layer of the first device segments the third data packet into multiple RLC SDU segments, the RLC layer of the first device can assemble the RLC header with each RLC SDU segment respectively, and determine the assembled data packet as the first data packet. In this case, the first data packet includes segmented PDCP data PDUs.

[0153] Since the first data packet is constructed based on the third data packet, and the third data packet is used to carry service data, the constructed first data packet is also used to carry service data, and the sequence number of the first data packet is assigned by the PDCP layer of the first device.

[0154] In some embodiments, the first data packet includes a first field, a second field, and a third field; wherein the first field is used to indicate the data packet type, the second field is used to indicate the data type carried by the data packet, and the third field is used to indicate whether the sequence number is reused by data packets carrying different data types.

[0155] In some examples, the first field can be a D / C (data / control) field, used to indicate the packet type. For example, if the D / C field has a first value (e.g., 1), it indicates that the packet type is an RLC data PDU; if the D / C field has a second value (e.g., 0), it indicates that the packet type is an RLC control PDU. The first and second values ​​are different.

[0156] In some examples, the second field can be a Z field, used to indicate the data type carried by the data packet. For example, if the Z field is a third value (e.g., a value of 1), it indicates that the data type carried by the data packet is service data, meaning the RLC PDU is generated by a PDCP data PDU. In other words, if the Z field is a third value, the data payload of the RLC PDU is a PDCP data PDU. If the Z field is a fourth value (e.g., a value of 0), it indicates that the data type carried by the data packet is control information, meaning the RLC PDU is generated by a PDCP control PDU or RLC control information. The third and fourth values ​​are different.

[0157] In some examples, the third field can be a W field, used to indicate whether the sequence number is multiplexed by packets carrying different data types. Specifically, it indicates whether the sequence number in the RLC header of the RLC PDU is multiplexed by a PDCP control PDU and a PDCP data PDU, or by an RLC control message and a PDCP data PDU. For example, if the W field takes the fifth value (e.g., 1), it means the sequence number in the RLC header of the RLC PDU is multiplexed by a PDCP control PDU and a PDCP data PDU, or by an RLC control message and a PDCP data PDU. If the W field takes the sixth value (e.g., 0), it means the sequence number in the RLC PDU header is neither multiplexed by a PDCP control PDU and a PDCP data PDU, nor by an RLC control message and a PDCP data PDU. The fifth and sixth values ​​are different.

[0158] For example, Figure 9 This is a schematic diagram of the RLC PDU format provided in the embodiments of this application. For example... Figure 9 As shown, the RLC PDU includes an RLC header and a Data field. The RLC header includes the D / C field, P field, segment indicator (SI) field, W field, Z field, RSN field, and sequence number offset (SO) field, while the data field carries the data payload.

[0159] The P field refers to the poll field, which indicates whether to request a status report (STATUSPDU) from its peer. For example, a value of 1 in the P field indicates that a status report is requested from its peer; a value of 0 in the P field indicates that a status report is not requested from its peer.

[0160] The SI field is a segmentation indicator field used to indicate whether the data payload of the RLC PDU contains complete data. Taking an RLC PDU containing an RLC SDU as an example, a SI field value of 00 indicates that the RLCSDU in the RLC PDU is a complete RLCSDU; a SI field value other than 00 indicates that the RLCSDU in the RLC PDU is a segmented RLCSDU (i.e., an RLCSDU segment). Specifically, a SI field value of 01 indicates that the RLCSDU segment in the RLC PDU is the first segment; a SI field value of 10 indicates that the RLCSDU segment in the RLC PDU is the last segment; and a SI field value of 11 indicates that the RLCSDU segment in the RLC PDU is an intermediate segment.

[0161] The RSN field refers to the sequence number of the RLC PDU. In a scenario where an RLCSDU is transmitted in segments, the sequence number in the RLC PDU corresponding to each RLCSDU segment is the same. For example, if an RLCSDU with RSN=3 is transmitted in two segments, then the sequence number of the RLCSDU corresponding to both segments is RSN=3.

[0162] The SO field is used to indicate the byte position of the segmented data within the original data. Taking an RLC PDU containing an RLC SDU as an example, the SO field indicates the byte position of the RLC SDU segment within the original RLC SDU.

[0163] For example, the D / C field, P field, W field and Z field each occupy 1 bit, the SI field occupies 2 bits, the RSN field occupies 12 bits or 18 bits, and the SO field occupies 16 bits.

[0164] It should be noted that the above description uses the D / C field, P field, SI field, W field, Z field, RSN field, and SO field located in the RLC header of the RLC PDU as an example. Of course, at least one of the D / C field, P field, SI field, W field, Z field, RSN field, and SO field can also be located in other positions of the RLC PDU, and this application embodiment does not limit this.

[0165] The format of the first data packet obtained is as follows: Figure 9As shown in (d), the first field in the first data packet takes the first value (i.e., D / C=1), the second field in the first data packet takes the third value (i.e., Z=1), and the third field in the first data packet takes the sixth value (i.e., W=0).

[0166] Therefore, when the RLC layer of the first device constructs the RLC header based on the sequence number of the third data packet, the RLC layer of the first device can also set the value of the D / C field in the RLC header to the first value (i.e., D / C=1), set the value of the Z field in the RLC header to the third value (i.e., Z=1), and set the value of the W field in the RLC header to the sixth value (i.e., W=0).

[0167] For the first data packet that is constructed, the data payload carried by the data field of the first data packet refers to the PDCP data PDU.

[0168] S606, the RLC layer of the first device puts the first data packet into the send buffer.

[0169] In some embodiments, the RLC layer of the first device maintains a transmit buffer that includes transmitted RLCPDUs and untransmitted RLC PDUs.

[0170] After the RLC layer of the first device constructs the first data packet, the RLC layer of the first device puts the first data packet into the transmission buffer in sequence.

[0171] S607, the RLC layer of the first device sequentially sends the first data packet located in the transmit buffer to the RLC layer of the second device. Correspondingly, the RLC layer of the second device receives the first data packet from the RLC layer of the first device.

[0172] In some embodiments, since the PDCP layer of the first device does not assign sequence numbers to the PDCP control PDU, the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the PDCP control PDU; or, when the RLC layer of the first device generates RLC control information, the RLC layer of the first device directly reuses the sequence number of the first data packet that has not yet been sent in the transmission buffer as the sequence number of the RLC control information.

[0173] Therefore, in one scenario, the RLC layer of the first device selects a first sequence number based on the first data packet that has not yet been sent in the transmission buffer. After multiplexing the first sequence number as the sequence number of the PDCP control PDU or as the sequence number of the RLC control information, the RLC layer of the first device needs to modify the value of the third field in the first data packet whose sequence number is multiplexed (i.e., the sequence number of the first data packet in this scenario is the same as the first sequence number). For example, the value of the third field in the first data packet whose sequence number is multiplexed is changed from the sixth value to the fifth value, that is, the value of the W field in the first data packet whose sequence number is multiplexed is changed from W=0 to W=1.

[0174] In this case, the format corresponding to the first data packet whose sequence number is reused is as follows: Figure 9 As shown in (b), the first field in the first data packet has the first value (i.e., D / C=1); the second field in the first data packet has the third value (i.e., Z=1); and the third field in the first data packet has the fifth value (i.e., W=1).

[0175] Therefore, when selecting the first sequence number, the third field in the first data packet takes the sixth value, and the fifth value is different from the sixth value; after selecting the first sequence number, the third field in the first data packet where the sequence number is reused takes the fifth value.

[0176] When the RLC layer of the first device obtains a transmission opportunity, the RLC layer of the first device can send the first data packet located in the transmission buffer to the RLC layer of the second device in ascending order of sequence number.

[0177] Specifically, the RLC layer of the first device can process the first data packet before sending it to the second device. Correspondingly, the second device can receive and process the data packet to obtain the first data packet.

[0178] For example, the RLC layer of the first device can process the first data packet through the lower layers of the protocol stack (such as the MAC layer and PHY layer of the first device) to obtain the first transport block, and then send the first transport block to the second device. Correspondingly, the second device can receive the first transport block sent by the first device, process the first transport block through the lower layers of the protocol stack (such as the PHY layer and MAC layer of the second device) to obtain the first data packet.

[0179] In another scenario, the sequence number of the first data packet that has not yet been sent in the transmit buffer is not reused as the sequence number of the PDCP control PDU, nor is it reused as the sequence number of the RLC control information. Thus, when the first data packet whose sequence number has not been reused (i.e., the sequence number of the first data packet in this scenario is different from the first sequence number) gets a transmission opportunity, the RLC layer of the first device sends the first data packet to the RLC layer of the second device.

[0180] It should be understood that, for the RLC layer of the first device, based on the first data packet that has not yet been sent in the transmission buffer, the first sequence number is selected and multiplexed as the sequence number of the PDCP control PDU or as the sequence number of the RLC control information. The multiplexed sequence number is the first sequence number.

[0181] S608, for the first data packet whose sequence number is reused, if the first data packet meets the first condition, the RLC layer of the second device processes the first data packet to obtain the third data packet and the sequence number corresponding to the third data packet.

[0182] In this embodiment of the application, the third data packet does not include the sequence number corresponding to the third data packet. The third data packet is a data packet from the PDCP layer of the first device, and the third data packet is used to carry service data.

[0183] The first condition includes at least one of the following: the sequence number of the first data packet is within the receiving window; the value of the first indicator variable is not the seventh value when the RLC layer of the second device receives the first data packet; and the RLC layer of the second device has not received any bytes of the first data packet.

[0184] In some embodiments, the RLC layer of the second device receives an RLC PDU from the RLC layer of the first device through the lower layer of the protocol stack. The data payload of the RLC PDU carries the y~z bytes of the original data (i.e., the original RLC SDU or the original RLC control information).

[0185] In one scenario, the RLC PDU carries a portion of the original data (such as bytes y to z), meaning the data payload in the RLC PDU is a segment of the original data (such as an RLC SDU segment or segmented RLC control information). In another scenario, the RLC PDU carries the entire content of the original data (such as a complete RLC SDU or complete RLC control information), meaning bytes y to z are bytes of the complete original data.

[0186] The RLC layer of the second device can determine, based on the SI field of the RLC PDU, whether the data payload in the RLC PDU is a segment of the original data or the entire content of the original data. For details, please refer to the above, and this application will not elaborate further.

[0187] The RLC layer of the second device maintains a reception window, which is defined as [RX_Next, RX_Next + AM_Window_Size). After the RLC layer of the second device receives an RLC PDU from the RLC layer of the first device via lower protocol stack layers, if the W field of the RLC PDU is set to 1, the RLC layer of the second device can determine whether the sequence number of the RLC PDU falls within the reception window. If the sequence number of the RLC PDU is within the reception window, the RLC layer of the second device can execute subsequent processing procedures; otherwise, the RLC layer of the second device will discard the RLC PDU.

[0188] Taking the sequence number x of this RLC PDU as an example, if RX_Next ≤ x < RX_Next + AM_Window_Size, it is determined that the sequence number of the RLC PDU is within the reception window, and the RLC layer of the second device can execute subsequent processing procedures; if x is less than RX_Next, or x is greater than or equal to RX_Next + AM_Window_Size, it is determined that the sequence number of the RLC PDU is outside the reception window, and the RLC layer of the second device will discard the RLC PDU.

[0189] After the RLC layer of the second device determines that the sequence number of the RLC PDU falls within the reception window, if the value of the second field of the RLC PDU is the third value (i.e., Z=1), the RLC layer of the second device needs to determine whether the value of the first indication variable is the seventh value.

[0190] Herein, the first indication variable can be represented by DT(x), which is an indication variable related to the multiplexed sequence number x (i.e., the sequence number x corresponding to the PDCP data PDU, multiplexed as the sequence number of the PDCP control PDU or the sequence number of the RLC control information). When the RLC layer of the second device receives the complete RLC SDU with the multiplexed sequence number x, which contains the complete PDCP data PDU, DT(x) is set to 1. When the value of the first indication variable is the seventh value (e.g., DT(x)=1), it indicates that the RLC layer of the second device has received all data packets including the first sequence number (i.e., the multiplexed sequence number x) and carrying service data.

[0191] Therefore, when the value of the second field of the RLC PDU is the third value (i.e., Z=1), if the value of the first indication variable is the seventh value when the RLC layer of the second device receives the RLC PDU, it indicates that the RLC layer of the second device has received all data packets including the first sequence number and carrying service data, and the current RLC PDU is a duplicate received data packet, so the RLC layer of the second device discards the RLC PDU.

[0192] Correspondingly, after the RLC layer of the second device determines that the sequence number of the RLC PDU is located in the receiving window, if the value of the second field of the RLCPDU is the fourth value (i.e., Z=0), then the RLC layer of the second device needs to determine whether the value of the second indicator variable is the eighth value.

[0193] The second indicator variable can be represented by CT(x), which refers to an indicator variable about the multiplexed sequence number x (i.e., the sequence number x corresponding to the PDCP data PDU, the sequence number multiplexed as the PDCP control PDU, or the sequence number multiplexed as the RLC control information). When the RLC layer of the second device receives the complete data (such as a complete PDCP control PDU or complete RLC control information) with the multiplexed sequence number x, CT(x) is set to 1. When the value of the second indicator variable is the eighth value (such as CT(x) = 1), it is used to indicate that the RLC layer of the second device has received all data packets including the first sequence number (i.e., the multiplexed sequence number x) and carrying control information.

[0194] Therefore, if the value of the second field of the RLC PDU is the fourth value (i.e., Z=0), and the value of the second indicator variable is the eighth value when the RLC layer of the second device receives the RLC PDU, it means that the RLC layer of the second device has received all data packets including the first sequence number and carrying control information. At this time, the RLC PDU is a repeatedly received data packet, and the RLC layer of the second device discards the RLC PDU.

[0195] When the RLC layer of the second device receives an RLC PDU, if the value of the second field of the RLC PDU is the third value (i.e., Z=1) and the value of the first indicator variable is not the seventh value, or if the value of the second field of the RLC PDU is the fourth value (i.e., Z=0) and the value of the second indicator variable is not the eighth value, then the RLC layer of the second device continues to execute the subsequent processing flow.

[0196] Specifically, the RLC layer of the second device determines whether it has received the bytes of the RLC PDU, that is, whether the bytes y~z corresponding to the RLC PDU with sequence number x have been received. If the RLC layer of the second device has received the bytes of the RLC PDU, there is no need to receive it again, and the RLC layer of the second device discards the RLC PDU. If the RLC layer of the second device has not received the bytes of the RLC PDU, the RLC layer of the second device puts the RLC PDU with sequence number x into the receive buffer. The receive buffer is maintained by the RLC layer of the second device.

[0197] Taking the sequence number x of the RLC PDU as an example, if x is greater than or equal to RX_Next_Highest, the RLC layer of the second device updates RX_Next_Highest, i.e., sets RX_Next_Highest = x + 1. Then, it checks whether all bytes of the original data with RSN = x have been received. If x is less than RX_Next_Highest, the RLC layer of the second device does not update RX_Next_Highest and directly checks whether all bytes of the original data with RSN = x have been received.

[0198] If not all bytes of the original data with RSN=x have been received, continue receiving the bytes corresponding to the original data with RSN=x. Once all bytes of the original data with RSN=x have been received, the RLC layer of the second device can process the RLC PDU.

[0199] In one scenario, the RLC PDU carries the entire contents of the original data. In this case, the RLC layer of the second device can remove the RLC header of the RLC PDU to obtain its data payload.

[0200] In another scenario, the RLC PDU carries a segment of the original data. In this case, the RLC layer of the second device reassembles the RLC PDUs corresponding to all segments with RSN=x to obtain an RLC PDU containing the complete original data.

[0201] Therefore, for the first data packet with a multiplexed sequence number (i.e., the RLC PDU containing PDCP data PDU), the RLC layer of the second device can determine whether the sequence number of the first data packet is within the receive window. If the sequence number of the first data packet is outside the receive window, the RLC layer of the second device discards the first data packet; if the sequence number of the first data packet is within the receive window, and the value of the second field of the first data packet is the third value (i.e., Z=1), the RLC layer of the second device determines whether the value of the first indicator variable is the seventh value. If the value of the first indicator variable is the seventh value, the RLC layer of the second device discards the first data packet; if the value of the first indicator variable is not the seventh value, the RLC layer of the second device determines whether bytes of the first data packet have been received. If bytes of the first data packet have been received by the RLC layer of the second device, the RLC layer of the second device discards the first data packet; if bytes of the first data packet have not been received by the RLC layer of the second device, the RLC layer of the second device places the first data packet into the receive buffer.

[0202] It should be noted that the execution order of determining whether the sequence number of the first data packet is within the receiving window, determining whether the value of the first indicator variable is the seventh value, and whether the RLC layer of the second device has received the bytes of the first data packet can be changed according to the actual situation. This application embodiment does not limit this.

[0203] Therefore, if the sequence number of the first data packet is within the receiving window, the value of the first indicator variable is not the seventh value when the RLC layer of the second device receives the first data packet, and the RLC layer of the second device has not received any bytes of the first data packet, then the first data packet satisfies the first condition, and the RLC layer of the second device puts the first data packet into the receiving buffer.

[0204] Furthermore, for the first data packet whose sequence number is reused, if all bytes of the original data (i.e., the original RLC SDU, which is used to carry service data) with RSN=x are received, the RLC layer of the second device can process the first data packet to obtain the third data packet and the sequence number corresponding to the third data packet.

[0205] In one scenario, the RLC SDU in the first data packet is a complete RLC SDU. In this case, the RLC layer of the second device can remove the RLC header of the first data packet to obtain its data payload, which is the third data packet. Furthermore, the RLC layer of the second device can extract the sequence number from the RSN field of the first data packet, and the extracted sequence number is the sequence number corresponding to the third data packet.

[0206] In another scenario, the RLC SDU in the first data packet is an RLC SDU segment. In this case, the RLC layer of the second device reassembles the RLC PDUs (including the first data packet) corresponding to all RLC SDU segments with RSN=x to obtain an RLC PDU containing a complete RLC SDU. Then, if the first field in the RLC header of the reassembled RLC PDU has a first value (i.e., D / C=1), and the second field in the RLC header has a third value (i.e., Z=1), the RLC layer of the second device can remove the RLC header of the reassembled RLC PDU to obtain the third data packet. Furthermore, the RLC layer of the second device can extract the sequence number from the RSN field of the reassembled RLC PDU; this extracted sequence number is the sequence number corresponding to the third data packet.

[0207] Of course, if the RLC SDU in the first data packet is an RLC SDU segment, and if the RLC PDU corresponding to all RLC SDU segments with RSN=x has the first field value (i.e., D / C=1) and the second field value (i.e., Z=1) in its RLC header, then the RLC layer of the second device can also remove the RLC header of the RLCPDU (including the first data packet) corresponding to all RLC SDU segments with RSN=x, obtain all RLC SDU segments corresponding to RSN=x, and reassemble all RLCSDUs corresponding to RSN=x to obtain the third data packet.

[0208] S609, the RLC layer of the second device sets the value of the first indicator variable to the seventh value.

[0209] When the RLC layer of the second device processes the first data packet to obtain the third data packet and its corresponding sequence number, the RLC layer of the second device can also set the value of the first indicator variable to the seventh value, for example, let DT(x) = 1.

[0210] S610, the RLC layer of the second device sends the third data packet and its corresponding sequence number to the PDCP layer of the second device. Correspondingly, the PDCP layer of the second device receives the third data packet and its corresponding sequence number from the RLC layer of the second device.

[0211] After the RLC layer of the second device processes the first data packet to obtain the third data packet and its corresponding sequence number, the RLC layer of the second device submits the third data packet to the PDCP layer of the second device, and simultaneously submits the corresponding sequence number of the third data packet to the PDCP layer of the second device. Accordingly, the PDCP layer of the second device receives the third data packet and its corresponding sequence number from the RLC layer of the second device.

[0212] In some examples, the RLC layer of the second device sends the sequence number corresponding to the third data packet through a second interface, which is the inter-layer interface between the RLC layer and the PDCP layer of the second device. Correspondingly, the PDCP layer of the second device receives the sequence number corresponding to the third data packet from the RLC layer of the second device through the second interface.

[0213] S611, the PDCP layer of the second device processes the third data packet based on the sequence number corresponding to the third data packet to obtain the PDCP SDU.

[0214] After the PDCP layer of the second device receives the third data packet and its corresponding sequence number from the RLC layer of the second device, the PDCP layer of the second device determines the RCVD_COUNT corresponding to the third data packet based on the sequence number of the third data packet. Here, RCVD_COUNT refers to the COUNT value of the received third data packet (i.e., PDCP data PDU).

[0215] Subsequently, the PDCP layer of the second device performs decryption and integrity verification on the third data packet based on the RCVD_COUNT corresponding to the third data packet.

[0216] Specifically, the PDCP layer of the second device can use the RCVD_COUNT corresponding to the third data packet as one of the input parameters to decrypt the encrypted PDCP SDU in the third data packet, obtaining the decrypted PDCP SDU. The PDCP layer of the second device can also use the RCVD_COUNT corresponding to the third data packet, the integrity protection key, the bearer identifier, the direction identifier, and the decrypted PDCPSDU as partial input parameters to input into the integrity protection algorithm to calculate an expected message authentication code for integrity (XMAC-I). Then, the PDCP layer of the second device determines whether the XMAC-I is the same as the MAC-I carried in the third data packet. If the XMAC-I is the same as the MAC-I, the integrity verification is successful; if the XMAC-I is different from the MAC-I, the integrity verification fails.

[0217] If integrity verification fails, the PDCP layer of the second device discards the third data packet. If integrity verification succeeds, the PDCP layer of the second device can recognize the decrypted PDCP SDU as a PDCPSDU to be delivered to the upper layer.

[0218] S612, the PDCP layer of the second device sends the PDCP SDU to the upper layer.

[0219] In some embodiments, the PDCP layer of the second device can first store the PDCP SDU in the PDCP layer's receive buffer. When RCVD_COUNT = RX_DELIV, the consecutively stored PDCP SDUs can be delivered to the upper layer in ascending order of RCVD_COUNT.

[0220] For example, Figure 7 This is a flowchart illustrating another communication method provided in an embodiment of this application. It can be understood that... Figure 7The first device is a transmitter, and the second device is a receiver. The first device includes a PDCP layer and an RLC layer, and the second device also includes a PDCP layer and an RLC layer. In some embodiments, the first device is a terminal device (such as a UE), or a device within the terminal device (e.g., a processor, chip, or chip system); the second device is a network device (such as a base station), or a device within the network device (e.g., a processor, chip, or chip system). Alternatively, the first device is a network device, or a device within the network device (e.g., a processor, chip, or chip system); the second device is a mobile terminal, or a device within the mobile terminal (e.g., a processor, chip, or chip system). Figure 7 As shown, the communication method may specifically include the following steps S701 to S710.

[0221] S701, the PDCP layer of the first device generates PDCP control information.

[0222] S702, the PDCP layer of the first device constructs the fourth data packet based on the PDCP control information.

[0223] In some embodiments, the PDCP layer of the first device assembles the PDCP header and PDCP control information into a fourth data packet. The fourth data packet refers to the PDCP control PDU.

[0224] Furthermore, the PDCP layer of the first device does not assign a sequence number to the fourth data packet, so that the fourth data packet does not include the sequence number corresponding to the fourth data packet (that is, the PDCP header of the PDCP control PDU does not include the sequence number corresponding to the PDCP control PDU), and the fourth data packet is used to carry control information.

[0225] In some examples, the fourth packet may include one or more of the following: PDCP status report, robust header compression (ROHC) feedback, Ethernet header compression (EHC) feedback, or uplink data compression (UDC) feedback.

[0226] S703, the PDCP layer of the first device sends a fourth data packet to the RLC layer of the first device. Correspondingly, the RLC layer of the first device receives the fourth data packet from the PDCP layer of the first device.

[0227] After the PDCP layer of the first device constructs the fourth data packet, it submits the fourth data packet to the RLC layer of the first device. Correspondingly, the RLC layer of the first device receives the fourth data packet from the PDCP layer of the first device.

[0228] In other implementations, the PDCP layer of the first device may also send first indication information to the RLC layer of the first device; correspondingly, the RLC layer of the first device receives the first indication information from the PDCP layer of the first device; wherein, the first indication information is used to indicate that the fourth data packet carries control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device, that is, the first indication information is used to indicate that the fourth data packet is a PDCP control PDU.

[0229] In some examples, the PDCP layer of the first device sends the first indication information to the RLC layer of the first device through the first interface. Correspondingly, the RLC layer of the first device receives the first indication information through the first interface, which is the inter-layer interface between the PDCP layer and the RLC layer of the first device.

[0230] S704, the RLC layer of the first device selects the first sequence number based on the first data packet that has not yet been sent in the transmit buffer.

[0231] After the RLC layer of the first device receives the fourth data packet from the PDCP layer of the first device, the RLC layer of the first device selects the first data packet that has not yet been sent from the transmit buffer. If there are multiple unsent first data packets in the transmit buffer, the sequence number of any one of the first data packets can be used as the first sequence number. The first sequence number selected by the RLC layer of the first device is intended to be multiplexed for the fourth data packet.

[0232] Therefore, the first sequence number is selected by the RLC layer of the first device based on the first data packet that has not yet been sent in the transmission buffer. The first data packet is used to carry service data, and the sequence number of the first data packet is assigned by the PDCP layer of the first device.

[0233] It should be noted that in this embodiment, the first sequence number is selected based on the first data packet that has not yet been sent in the transmission buffer. The purpose of this is to reduce the chance of the second data packet (i.e., the one subsequently constructed by the RLC layer of the first device based on the fourth data packet and the first sequence number) being mistakenly discarded, and to ensure that when the sequence number of the first data packet is selected as the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry control information. The reasons are as follows: If the sequence number of the sent data packet in the transmit buffer (hereinafter referred to as the sent data packet) is used as the first sequence number, the first device cannot know whether the second device has processed the sent data packet. If the second device has processed the sent data packet, it will update the relevant state variables, such as updating RX_Next. Therefore, if the sequence number of the sent data packet in the transmit buffer is used as the first sequence number, it is possible that after constructing the second data packet based on the first sequence number selected in this way and sending the second data packet to the RLC layer of the second device, the second data packet may be outside the receive window, causing the RLC layer of the second device to discard the second data packet. Furthermore, if the sequence number of the sent data packet in the transmit buffer is used as the first sequence number, if the sequence number of the sent data packet has been reused by other data packets used to carry control information, it will result in at least two data packets carrying control information belonging to the same first sequence number after constructing the second data packet based on the first sequence number selected in this way and sending the second data packet to the RLC layer of the second device, thereby increasing the processing complexity of the RLC layer of the second device.

[0234] In other embodiments, the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

[0235] The segmentation indication information can be represented by the SI field mentioned above. When the RLC layer of the first device selects the first data packet that has not yet been sent from the transmission buffer and uses the sequence number of the first data packet as the first sequence number, the selected first data packet is not only a data packet that has not yet been sent in the transmission buffer and is used to carry service data, but it is also not a segmented data packet. That is, the first data packet also needs to contain complete PDCP data PDU.

[0236] Taking the case where the SI field value is 00, indicating that the RLCSDU in the RLC PDU is a complete RLCSDU, as an example, the RLC layer of the first device selects the first data packet that has not yet been sent from the transmission buffer, has an SI field value of 00, and is used to carry service data, and uses the sequence number of the first data packet that meets the conditions as the first sequence number.

[0237] It should be noted that if the RLC layer of the first device selects the sequence number of a segmented data packet (i.e., containing segmented PDCP data PDUs) from the transmit buffer that has not yet been sent and is used to carry service data as the first sequence number, then multiple segmented data packets will share the same first sequence number. Taking two segmented data packets sharing the same first sequence number as an example, if the first sequence number of one segmented data packet has been reused by a data packet carrying control information, and the first sequence number of the other segmented data packet has also been reused by another data packet carrying control information, then after constructing a second data packet based on the first sequence number selected in this way and sending the second data packet to the RLC layer of the second device, two data packets carrying control information will appear with the same first sequence number, thus increasing the processing complexity of the RLC layer of the second device. Therefore, using the fact that the first data packet is not a segmented data packet as a selection criterion for the first sequence number can reduce the processing complexity of the RLC layer of the second device.

[0238] In some other embodiments, when selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry control information.

[0239] It should be noted that if the sequence number of the first data packet has already been reused by other data packets carrying control information, it will result in two data packets carrying control information belonging to the same first sequence number after the second data packet is constructed based on the first sequence number selected in this way and sent to the RLC layer of the second device. This increases the processing complexity of the RLC layer of the second device. Therefore, when selecting the first sequence number, using the fact that the sequence number of the first data packet has not been reused by other data packets carrying control information as the selection criterion can reduce the processing complexity of the RLC layer of the second device.

[0240] In other embodiments, the first data packet is the first data packet in the send buffer that has not yet been sent and is used to carry service data.

[0241] Specifically, from the data packets in the sending buffer that have not yet been sent and are used to carry business data, the data packet with the smallest sequence number is selected as the first data packet. At this time, there is only one first data packet, so the sequence number of the first data packet is used as the first sequence number.

[0242] It should be noted that in related technologies, the PDCP layer of the first device can submit PDCP data PDUs and PDCP control PDUs to the RLC layer of the first device. The RLC layer of the first device does not distinguish between PDCP control PDUs and PDCP data PDUs. If the RLC layer of the first device has already received other PDCP data PDUs before the PDCP control PDU, the PDCP control PDU will be queued after the PDCP data PDU. The transmission of the RLC PDU containing the PDCP control PDU will be blocked because of the RLC PDU containing the PDCP data PDU. That is, the RLC PDU containing the PDCP data PDU will block the RLC PDU containing the PDCP control PDU, resulting in a large waiting delay for the transmission of the RLC PDU containing the PDCP control PDU, which cannot reach the second device quickly. This blocking drawback becomes more pronounced when the data volume of the RLC PDU containing the PDCP data PDU is very large. This blocking problem becomes more difficult under a unified sequence numbering mechanism because using only one sequence number in the user plane protocol stack implies an implicit assumption that all upper-layer SDUs carry sequence numbers. If an RLC PDU containing a PDCP control PDU wants to jump the queue, it will inevitably cause out-of-order transmission at the sending end, thus breaking the ARQ mechanism of the RLC layer.

[0243] Therefore, when the first data packet is the first data packet in the transmission buffer that has not yet been sent and is used to carry service data, it can improve the situation in the RLC layer of the first device where the RLC PDU containing the PDCP data PDU blocks the RLC PDU containing the PDCP control PDU, reduce the transmission waiting delay of the RLC PDU containing the PDCP control PDU, and enable the RLC PDU containing the PDCP control PDU to reach the second device side quickly.

[0244] It should also be noted that, when selecting the first sequence number based on the first data packet that has not yet been sent in the transmission buffer, the selection criteria for the first sequence number may include one or more of the following: the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet; when selecting the first sequence number, the sequence number of the first data packet has not been reused by other data packets used to carry control information; the first data packet is the first data packet in the transmission buffer that has not yet been sent and is used to carry service data.

[0245] Optionally, the RLC layer of the first device selects the first unsent data packet from the transmission buffer, which contains an unused sequence number (i.e., when selecting the first sequence number, the sequence number of the first data packet has not been reused by other data packets used to carry control information), is not a segmented data packet, and is used to carry service data, and uses the sequence number of the first data packet as the first sequence number.

[0246] S705, the RLC layer of the first device constructs the second data packet based on the fourth data packet and the first sequence number.

[0247] After selecting a first sequence number at the RLC layer of the first device, the RLC layer of the first device can construct an RLC header based on the selected first sequence number. For example, the selected first sequence number can be placed in the RSN field of the RLC header, and then a second data packet can be constructed based on the RLC header and the fourth data packet. The second data packet can be used as an RLC PDU, and the data payload of the second data packet is a PDCP control PDU, that is, the second data packet includes a PDCP control PDU.

[0248] In one approach, if the RLC layer of the first device does not segment the fourth data packet, the RLC layer of the first device can assemble the RLC header with the fourth data packet (i.e., the complete RLC SDU) to obtain the second data packet. For example, the RLC header can be added to the beginning of the fourth data packet to obtain the second data packet. In this case, the second data packet includes the complete PDCP control PDU.

[0249] Alternatively, if the RLC layer of the first device segments the fourth data packet to obtain multiple RLC SDU segments, the RLC layer of the first device can assemble the RLC header with each RLC SDU segment respectively, and determine the assembled data packet as the second data packet. In this case, the second data packet includes segmented PDCP control PDUs.

[0250] In this scenario, since the second data packet is constructed based on the fourth data packet, and the fourth data packet is used to carry control information, the constructed second data packet is also used to carry control information. Furthermore, the first sequence number of the second data packet is selected by the RLC layer of the first device based on the first data packet that has not yet been sent from the transmit buffer.

[0251] In some embodiments, the second data packet also includes a first field, a second field, and a third field; wherein the first field is used to indicate the data packet type, the second field is used to indicate the data type carried by the data packet, and the third field is used to indicate whether the sequence number is reused by data packets carrying different data types.

[0252] In some examples, the first field can be the D / C field, the second field can be the Z field, and the third field can be the W field.

[0253] For the second data packet constructed by S705, i.e., when the control information carried by the second data packet comes from the PDCP layer of the first device, its corresponding format is as follows: Figure 9As shown in (a), the first field in the second data packet takes the first value (i.e., D / C=1), the second field in the second data packet takes the fourth value (i.e., Z=0), and the third field in the second data packet takes the fifth value (i.e., W=1).

[0254] Therefore, when the RLC layer of the first device constructs the RLC header based on the first sequence number, the RLC layer of the first device can also set the value of the D / C field in the RLC header to the first value (i.e., D / C=1), set the value of the Z field in the RLC header to the fourth value (i.e., Z=0), and set the value of the W field in the RLC header to the fifth value (i.e., W=1).

[0255] It should be noted that regardless of whether the RLC PDU includes a PDCP data PDU or a PDCP control PDU, at the RLC layer, both PDCP data PDUs and PDCP control PDUs are considered RLC SDUs and are encapsulated as data payloads within the RLC PDU. Therefore, when the control information carried by the second data packet originates from the PDCP layer of the first device, D / C = 1.

[0256] S706, the RLC layer of the first device sends a second data packet to the RLC layer of the second device. Correspondingly, the RLC layer of the second device receives the second data packet from the RLC layer of the first device based on the first sequence number.

[0257] In one scenario, if the first data packet is not the first unsent data packet in the transmit buffer and is used to carry service data, the RLC layer of the first device can, after constructing the second data packet, place it sequentially into the transmit buffer. When the RLC layer of the first device obtains a transmission opportunity, it can send the second data packet located in the transmit buffer to the RLC layer of the second device in ascending order of sequence number.

[0258] In another scenario, when the first data packet is the first unsent data packet in the send buffer that is used to carry service data, after the RLC layer of the first device constructs the second data packet, the RLC layer of the first device does not need to put the second data packet into the send buffer, but directly sends the second data packet to the RLC layer of the second device.

[0259] Specifically, the RLC layer of the first device can process the second data packet before sending it to the second device. Correspondingly, the second device can receive and process the data packet to obtain the second data packet.

[0260] For example, the RLC layer of the first device can process the second data packet through lower layers of the protocol stack (such as the MAC layer and PHY layer of the first device) to obtain the second transport block, and then send the second transport block to the second device. Correspondingly, the second device can receive the second transport block sent by the first device, process the second transport block through lower layers of the protocol stack (such as the PHY layer and MAC layer of the second device) to obtain the second data packet.

[0261] In summary, based on the steps S705 and S706 above, the RLC layer of the first device sends the second data packet to the RLC layer of the second device based on the first sequence number.

[0262] S707, if the second data packet meets the second condition, the RLC layer of the second device processes the second data packet to obtain the fourth data packet and the first sequence number.

[0263] In this embodiment of the application, the fourth data packet does not include the first sequence number. The fourth data packet is a data packet from the PDCP layer of the first device, and the fourth data packet is used to carry control information.

[0264] The second condition includes at least one of the following: the first sequence number is within the receiving window, the value of the second indicator variable is not the eighth value when the second data packet is received at the RLC layer of the second device, and the RLC layer of the second device has not received any bytes of the second data packet.

[0265] Therefore, for the second data packet, the RLC layer of the second device can determine whether the first sequence number of the second data packet is within the receive window. If the first sequence number of the second data packet is outside the receive window, the RLC layer of the second device discards the second data packet; if the first sequence number of the second data packet is within the receive window, and the value of the second field in the second data packet is the fourth value (i.e., Z=0), the RLC layer of the second device determines whether the value of the second indicator variable is the eighth value. If the value of the second indicator variable is the eighth value, the RLC layer of the second device discards the second data packet; if the value of the second indicator variable is not the eighth value, the RLC layer of the second device determines whether bytes of the second data packet have been received. If bytes of the second data packet have been received, the RLC layer of the second device discards the second data packet; if bytes of the second data packet have not been received, the RLC layer of the second device places the second data packet into the receive buffer.

[0266] It should be noted that the execution order of determining whether the first sequence number of the second data packet is within the receiving window, determining whether the value of the second indicator variable is the eighth value, and whether the RLC layer of the second device has received the bytes of the second data packet can be changed according to the actual situation. This application embodiment does not limit this.

[0267] Therefore, if the first sequence number of the second data packet is within the receiving window, the value of the second indicator variable is not the eighth value when the RLC layer of the second device receives the second data packet, and the RLC layer of the second device has not received any bytes of the second data packet, then the second data packet satisfies the second condition, and the RLC layer of the second device puts the second data packet into the receiving buffer.

[0268] For the second data packet, if all bytes of the original data with RSN=x (i.e., the original RLC SDU, which is used to carry control information) are received, the RLC layer of the second device can process the second data packet to obtain the fourth data packet and the first sequence number.

[0269] In one scenario, the RLC SDU in the second data packet is a complete RLC SDU. In this case, the RLC layer of the second device can remove the RLC header of the second data packet to obtain its data payload, which is the fourth data packet. Furthermore, the RLC layer of the second device can extract the sequence number from the RSN field of the second data packet, and the extracted sequence number is the first sequence number.

[0270] In another scenario, the RLC SDU in the second data packet is an RLC SDU segment. In this case, the RLC layer of the second device reassembles the RLC PDUs (including the second data packet) corresponding to all RLC SDU segments with RSN=x to obtain an RLC PDU containing the complete RLC SDU. Then, if the first field in the RLC header of the reassembled RLC PDU has the first value (i.e., D / C=1), and the second field in the RLC header has the fourth value (i.e., Z=0), the RLC layer of the second device can remove the RLC header of the reassembled RLC PDU to obtain the fourth data packet. Furthermore, the RLC layer of the second device can extract the sequence number from the RSN field of the reassembled RLC PDU; the extracted sequence number is the first sequence number.

[0271] S708, the RLC layer of the second device sets the value of the second indicator variable to the eighth value.

[0272] When the second data packet is processed at the RLC layer of the second device to obtain the fourth data packet and the first sequence number, the RLC layer of the second device can also set the value of the second indicator variable to the eighth value, for example, let CT(x) = 1.

[0273] S709, the RLC layer of the second device sends a fourth data packet to the PDCP layer of the second device. Correspondingly, the PDCP layer of the second device receives the fourth data packet from the RLC layer of the second device.

[0274] After the RLC layer of the second device processes the second data packet to obtain the fourth data packet and the first sequence number, the RLC layer of the second device delivers the fourth data packet to the PDCP layer of the second device. The RLC layer of the second device does not carry the first sequence number when sending the fourth data packet; the first sequence number is primarily used for the ARQ mechanism. Correspondingly, the PDCP layer of the second device receives the fourth data packet from the RLC layer of the second device.

[0275] In one implementation, when the RLC layer of the second device sends the fourth data packet to the PDCP layer of the second device, the RLC layer of the second device can also send second indication information to the PDCP layer of the second device; correspondingly, the PDCP layer of the second device receives the second indication information from the RLC layer of the second device; wherein, the second indication information is used to indicate that the fourth data packet carries control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device, that is, the second indication information is used to indicate that the fourth data packet is a PDCP control PDU.

[0276] In some examples, the RLC layer of the second device sends the second indication information to the PDCP layer of the second device through the second interface. Correspondingly, the PDCP layer of the second device receives the second indication information through the second interface, which is the inter-layer interface between the RLC layer and the PDCP layer of the second device.

[0277] In another implementation, when the RLC layer of the second device sends the fourth data packet to the PDCP layer of the second device, the RLC layer of the second device may not send the second indication information to the PDCP layer of the second device. The PDCP layer of the second device can determine whether the received data packet is the third or fourth data packet based on whether it received the first sequence number from the RLC layer of the second device; or, the PDCP layer of the second device can determine whether the received data packet is the third or fourth data packet based on the D / C field of the received data packet.

[0278] S710, the PDCP layer of the second device processes the fourth data packet.

[0279] After the second device's PDCP layer receives the fourth data packet from the second device's RLC layer, the second device's PDCP layer removes the PDCP header of the fourth data packet to obtain the data payload of the fourth data packet, which is the PDCP control information. Then, the second device's PDCP layer directly processes the PDCP control information.

[0280] In summary, regarding Figure 7 In the scenario shown, the PDCP layer of the first device does not assign sequence numbers to PDCP control PDUs. When the RLC layer of the first device receives a PDCP control PDU from the PDCP layer, the RLC layer can select a first sequence number based on the first data packet (including PDCP data PDUs) that has not yet been sent in the transmit buffer, and use the selected first sequence number as the sequence number of the PDCP control PDU. Specifically, when selecting the first sequence number based on the first data packet that has not yet been sent in the transmit buffer, the selection conditions for the first sequence number may also include one or more of the following: the first data packet includes segmentation indication information, which indicates that the first data packet does not belong to a segmented data packet; when selecting the first sequence number, the sequence number of the first data packet has not been reused by other data packets used to carry control information; the first data packet is the first data packet in the transmit buffer that has not yet been sent and is used to carry service data.

[0281] Furthermore, targeting Figure 6 and Figure 7 In the scenario shown, the RLC layer of the second device sets two indicator variables for the sequence number x that falls within the receiving window, namely the first indicator variable DT(x) and the second indicator variable CT(x). The RLC layer of the second device uses the first indicator variable DT(x) and the second indicator variable CT(x) to prevent the repeated reception of related data.

[0282] For example, Figure 8 This is a flowchart illustrating another communication method provided in an embodiment of this application. It can be understood that... Figure 8 The first device is a transmitter, and the second device is a receiver. Both the first and second devices include an RLC layer. In some embodiments, the first device is a terminal device (such as a UE), or a device within the terminal device (e.g., a processor, chip, or chip system); the second device is a network device (such as a base station), or a device within the network device (e.g., a processor, chip, or chip system). Alternatively, the first device is a network device, or a device within the network device (e.g., a processor, chip, or chip system); the second device is a mobile terminal, or a device within the mobile terminal (e.g., a processor, chip, or chip system). Figure 8 As shown, the communication method may specifically include the following steps S801 to S807.

[0283] S801, the RLC layer of the first device generates RLC control information.

[0284] S802, the RLC layer of the first device selects the first sequence number based on the first data packet that has not yet been sent in the transmission buffer.

[0285] In some embodiments, the RLC layer of the first device also generates RLC control information. Under a unified sequence numbering mechanism, the RLC layer of the first device no longer assigns sequence numbers. Therefore, the RLC layer of the first device selects the first data packet that has not yet been sent from the transmission buffer. If there are multiple first data packets that have not yet been sent in the transmission buffer, the sequence number of any one of the first data packets can be used as the first sequence number. The first sequence number selected by the RLC layer of the first device is intended to be multiplexed for the RLC control information.

[0286] In other embodiments, the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

[0287] In some other embodiments, when selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry control information.

[0288] In other embodiments, the first data packet is the first unsent data packet in the transmission buffer that carries service data. Since there is only one first data packet, its sequence number is used as the first sequence number. This improves the situation where an RLC PDU containing PDCP data PDU blocks an RLC PDU containing RLC control information in the RLC layer of the first device, reducing the transmission latency of the RLC PDU containing RLC control information and allowing it to reach the second device quickly.

[0289] It should be understood that when selecting a first sequence number based on a first data packet that has not yet been sent in the transmission buffer, the selection criteria for the first sequence number may include one or more of the following: the first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet; when selecting the first sequence number, the sequence number of the first data packet has not been reused by other data packets used to carry control information; the first data packet is the first data packet in the transmission buffer that has not yet been sent and is used to carry service data.

[0290] S803, the RLC layer of the first device constructs the second data packet based on the RLC control information and the first sequence number.

[0291] After selecting a first sequence number at the RLC layer of the first device, the RLC layer can construct an RLC header based on the selected first sequence number. For example, the selected first sequence number can be placed in the RSN field of the RLC header, and then a second data packet can be constructed based on the RLC header and RLC control information. The second data packet can be used as an RLC PDU, and the data payload of the second data packet is RLC control information, that is, the second data packet includes the RLC control information generated by the RLC layer.

[0292] In some examples, the second data packet containing RLC control information may refer to the RLC status report.

[0293] In one approach, if the RLC layer of the first device does not segment the RLC control information, the RLC layer can assemble the RLC header with the complete RLC control information to obtain the second data packet. For example, the RLC header can be added before the complete RLC control information to obtain the second data packet. In this case, the second data packet includes the complete RLC control information.

[0294] Alternatively, if the RLC layer of the first device segments the RLC control information, the RLC layer can assemble the RLC header with each segment of the RLC control information, and determine the resulting data packet as the second data packet. In this case, the second data packet includes the segmented RLC control information.

[0295] In this scenario, since the second data packet is constructed based on RLC control information, it is used to carry control information. Furthermore, the first sequence number of the second data packet is selected by the RLC layer of the first device based on the first data packet that has not yet been sent from the transmit buffer.

[0296] In some embodiments, the second data packet also includes a first field, a second field, and a third field; wherein the first field is used to indicate the data packet type, the second field is used to indicate the data type carried by the data packet, and the third field is used to indicate whether the sequence number is reused by data packets carrying different data types.

[0297] In some examples, the first field can be the D / C field, the second field can be the Z field, and the third field can be the W field.

[0298] For the second data packet constructed by S803, i.e., when the control information carried by the second data packet comes from the RLC layer of the first device, its corresponding format is as follows: Figure 9As shown in (c), the first field in the second data packet takes the second value (i.e., D / C=0), the second field in the second data packet takes the fourth value (i.e., Z=0), and the third field in the second data packet takes the fifth value (i.e., W=1).

[0299] Therefore, when the RLC layer of the first device constructs the RLC header based on the first sequence number, the RLC layer of the first device can also set the value of the D / C field in the RLC header to the second value (i.e., D / C=0), set the value of the Z field in the RLC header to the fourth value (i.e., Z=0), and set the value of the W field in the RLC header to the fifth value (i.e., W=1).

[0300] S804, the RLC layer of the first device sends a second data packet to the RLC layer of the second device. Correspondingly, the RLC layer of the second device receives the second data packet from the RLC layer of the first device based on the first sequence number.

[0301] This step is similar to the implementation process of S706 described above, and will not be repeated here to avoid repetition.

[0302] S805, if the second data packet meets the second condition, the RLC layer of the second device processes the second data packet to obtain RLC control information.

[0303] The second condition includes at least one of the following: the first sequence number is within the receiving window, the value of the second indicator variable is not the eighth value when the second data packet is received at the RLC layer of the second device, and the RLC layer of the second device has not received any bytes of the second data packet.

[0304] It should be noted that the specific implementation process of the RLC layer of the second device in determining whether the second data packet meets the second condition is similar to the implementation process of S707 described above. To avoid repetition, it will not be described again here.

[0305] Therefore, if the first sequence number of the second data packet is within the receiving window, the value of the second indicator variable is not the eighth value when the RLC layer of the second device receives the second data packet, and the RLC layer of the second device has not received any bytes of the second data packet, then the second data packet satisfies the second condition, and the RLC layer of the second device puts the second data packet into the receiving buffer.

[0306] For the second data packet, if all bytes of the original data (i.e. the original RLC control information) with RSN=x are received, the RLC layer of the second device can process the second data packet to obtain the RLC control information.

[0307] In one scenario, the RLC control information in the second data packet is complete. In this case, the RLC layer of the second device can remove the RLC header of the second data packet to obtain its data payload, which is the RLC control information.

[0308] In another scenario, the RLC control information in the second data packet is segmented. In this case, the RLC layer of the second device reassembles all segments of RLC control information with RSN=x to obtain an RLC PDU containing complete RLC control information. Then, if the first field in the RLC header of the reassembled RLC PDU takes the second value (i.e., D / C=0), the RLC layer of the second device can remove the RLC header of the reassembled RLC PDU to obtain the RLC control information.

[0309] S806, the RLC layer of the second device sets the value of the second indicator variable to the eighth value.

[0310] When the second data packet is processed at the RLC layer of the second device to obtain RLC control information, the RLC layer of the second device can also set the value of the second indicator variable to the eighth value, for example, let CT(x) = 1.

[0311] S807, the RLC layer of the second device processes the RLC control information.

[0312] After processing the second data packet at the RLC layer of the second device to obtain the RLC control information, the RLC control information is directly processed at the RLC layer of the second device.

[0313] In summary, regarding Figure 8 In the scenario shown, when the RLC layer of the first device generates RLC control information, the RLC layer of the first device can select a first sequence number based on the first data packet (including PDCP data PDU) that has not yet been sent in the transmission buffer, and use the selected first sequence number as the sequence number of the RLC control information.

[0314] In the embodiments of this application, for Figure 6 and Figure 7 The scenario shown, or for Figure 6 and Figure 8 In the scenario shown, when the first indicator variable is the seventh value (e.g., DT(x) = 1) and the second indicator variable is the eighth value (e.g., CT(x) = 1), the RLC layer of the second device updates the target state variable; wherein, the target state variable includes the first state variable and / or the second state variable, the first state variable is used to indicate the lower boundary of the receiving window, and the second state variable is used to indicate the highest acknowledgment number in the generated RLC state report.

[0315] In other words, when the values ​​of CT(x) and DT(x) for the reused sequence number x (i.e., the sequence number x corresponding to the PDCP data PDU, the sequence number reused as the PDCP control PDU, or the sequence number reused as the RLC control information) are both 1, the RLC layer of the second device uses the reused sequence number x to update the relevant status variables, such as updating the first status variable (e.g., RX_Next) and / or the second status variable (e.g., RX_Highest_Status).

[0316] The following sections will describe in detail the specific implementation process of the communication method provided in the embodiments of this application, focusing on the operation of the PDCP layer of the first device, the operation of the RLC layer of the first device, the operation of the RLC layer of the second device, and the operation of the PDCP layer of the second device.

[0317] For example, Figure 10 This is a schematic diagram of the operation flow of the PDCP layer of the first device provided in this application embodiment. The first device is the transmitting end. Figure 10 As shown, the communication method may specifically include the following steps: S1001, Does the PDCP layer of the first device receive a PDCP SDU from the upper layer?

[0318] If the PDCP layer of the first device receives a PDCP SDU from the upper layer, proceed with step S1002 below; if the PDCP layer of the first device does not receive a PDCP SDU from the upper layer, proceed with step S1007 below.

[0319] S1002, when the PDCP layer of the first device receives the PDCP SDU from the upper layer, the PDCP layer of the first device associates the value of TX_Next with the COUNT value of the PDCPSDU.

[0320] S1003, the PDCP layer of the first device uses the COUNT value to perform integrity protection and encryption on the PDCPSDU, and obtains the PDCP data PDU.

[0321] S1004, the PDCP layer of the first device assigns a sequence number to the PDCP data PDU, i.e., sequence number RSN = TX_Next mod 2. sn-FieldLength .

[0322] S1005, the PDCP layer of the first device submits PDCP data PDU and the sequence number corresponding to the PDCP data PDU to the RLC layer of the first device.

[0323] In this process, the PDCP layer of the first device submits the sequence number corresponding to the PDCP data PDU to the RLC layer of the first device through the first interface. At this time, the PDCP data PDU refers to the aforementioned third data packet.

[0324] S1006, the PDCP layer of the first device updates TX_Next = TX_Next + 1.

[0325] S1007, Whether the PDCP layer of the first device generates a PDCP control PDU.

[0326] If a PDCP control PDU is generated at the PDCP layer of the first device, proceed with step S1008 below; if no PDCP control PDU is generated at the PDCP layer of the first device, proceed with step S1009 below.

[0327] S1008, when the PDCP layer of the first device generates a PDCP control PDU, the PDCP layer of the first device submits the PDCP control PDU and the first indication information to the RLC layer of the first device.

[0328] At this time, the PDCP control PDU refers to the fourth data packet mentioned above. The first indication information is used to indicate that the PDCP PDU delivered to the RLC layer of the first device in this scenario is the PDCP control PDU.

[0329] S1009, if the PDCP layer of the first device does not generate a PDCP control PDU, the PDCP layer of the first device continues to receive PDCP SDUs from the upper layer.

[0330] It should be noted that, Figure 10 This example illustrates whether to generate a PDCP control PDU only when the PDCP layer of the first device has not received a PDCP SDU from the upper layer, and does not constitute a limitation on the embodiments of this application. In practical applications, there is no fixed order in which the PDCP layer of the first device receives a PDCP SDU from the upper layer and generates a PDCP control PDU.

[0331] For example, Figure 11 This is a schematic diagram of the operation flow of the RLC layer of the first device provided in this application embodiment. The first device is the transmitting end. Figure 11 As shown, the communication method may specifically include the following steps: S1101, Does the RLC layer of the first device receive PDCP data PDU from the PDCP layer of the first device?

[0332] If the RLC layer of the first device receives PDCP data PDU from the PDCP layer of the first device, the following step S1102 is executed; if the RLC layer of the first device does not receive PDCP data PDU from the PDCP layer of the first device, the following step S1106 is executed.

[0333] S1102, when the RLC layer of the first device receives PDCP data PDU from the PDCP layer of the first device, the RLC layer of the first device receives the sequence number corresponding to the PDCP data PDU.

[0334] In this device, the RLC layer receives the sequence number corresponding to the PDCP data PDU through the first interface.

[0335] S1103, the RLC layer of the first device constructs an RLC header based on the sequence number corresponding to the PDCP data PDU, assembles the RLC header and the PDCP data PDU into an RLC PDU, and sets D / C=1, W=0 and Z=1 in the RLC header.

[0336] S1104, the RLC layer of the first device puts the RLC PDU containing the PDCP data PDU into the transmission buffer.

[0337] S1105, if the sequence number of the RLC PDU containing the PDCP data PDU is not multiplexed as the sequence number of the PDCP control PDU or as the sequence number of the RLC control information, when a transmission opportunity is obtained, the RLC layer of the first device will send out the RLC PDU containing the PDCP data PDU.

[0338] Among them, the PDCP data PDU in RLC PDU can be a complete PDCP data PDU or a segmented PDCP data PDU.

[0339] S1106, Does the RLC layer of the first device receive the PDCP control PDU from the PDCP layer of the first device?

[0340] If the RLC layer of the first device receives a PDCP control PDU from the PDCP layer of the first device, the following step S1107 is executed; if the RLC layer of the first device does not receive a PDCP control PDU from the PDCP layer of the first device, the following step S1111 is executed.

[0341] S1107, when the RLC layer of the first device receives a PDCP control PDU from the PDCP layer of the first device, the RLC layer of the first device selects the sequence number of the first RLC PDU in the transmission buffer that has not yet been transmitted, contains an unreused sequence number, and contains a complete PDCP data PDU as the first sequence number.

[0342] S1108, the RLC layer of the first device modifies the W field of the RLC PDU containing PDCP data PDU whose sequence number is reused to 1.

[0343] S1109, the RLC layer of the first device constructs an RLC header based on the first sequence number, assembles the RLC header and PDCP control PDU into an RLC PDU, and sets D / C=1, W=1 and Z=0 in the RLC header.

[0344] S1110, the RLC layer of the first device sends out the RLC PDU containing the PDCP control PDU.

[0345] Among them, the PDCP control PDU in the RLC PDU can be a complete PDCP control PDU or a segmented PDCP control PDU.

[0346] S1111, Does the RLC layer of the first device generate RLC control information?

[0347] If RLC control information is generated at the RLC layer of the first device, proceed with step S1112 below; if RLC control information is not generated at the RLC layer of the first device, proceed with step S1116 below.

[0348] S1112, when the RLC layer of the first device generates RLC control information, the RLC layer of the first device selects the sequence number of the first RLC PDU in the transmission buffer that has not yet been transmitted, contains an unreused sequence number and contains a complete PDCP data PDU as the first sequence number.

[0349] S1113, the RLC layer of the first device modifies the W field of the RLC PDU containing PDCP data PDU whose sequence number is reused to 1.

[0350] S1114, the RLC layer of the first device constructs an RLC header based on the first sequence number, assembles the RLC header and RLC control information into an RLC PDU, and sets D / C=0, W=1 and Z=0 in the RLC header.

[0351] S1115, the RLC layer of the first device sends out the RLC PDU containing RLC control information.

[0352] The RLC control information in the RLC PDU can be complete RLC control information or segmented RLC control information.

[0353] S1116, if the RLC layer of the first device does not generate RLC control information, the RLC layer of the first device continues to receive PDCP data PDU or PDCP control PDU from the PDCP layer of the first device.

[0354] It should be noted that, Figure 11 This explanation exemplifies how to determine whether a PDCP control PDU has been received from the PDCP layer of the first device when the RLC layer of the first device has not received a PDCP data PDU from the PDCP layer of the first device, and how to determine whether RLC control information has been generated when the RLC layer of the first device has not received a PDCP control PDU from the PDCP layer of the first device. This explanation does not constitute a limitation on the embodiments of this application. In practical applications, there is no fixed order in which the RLC layer of the first device receives PDCP data PDUs from the PDCP layer of the first device, receives PDCP control PDUs from the PDCP layer of the first device, and generates RLC control information.

[0355] For example, Figure 12 This is a schematic diagram of the operation flow of the RLC layer of the second device provided in an embodiment of this application. The second device is the receiving end. Figure 12 As shown, the communication method may specifically include the following steps: S1201, the RLC layer of the second device receives an RLC PDU from the RLC layer of the first device, the data payload of which carries the y~z bytes of the original data.

[0356] S1202, the RLC layer of the second device determines whether the value of the W field of the RLC PDU is 0.

[0357] If the value of the W field of the RLC PDU is 0, proceed to step S1203 below; if the value of the W field of the RLC PDU is 1, proceed to step S1204 below.

[0358] S1203, when the W field of the RLC PDU is 0, the RLC layer of the second device uses the original standard protocol to process the RLC PDU.

[0359] The specific process of the RLC layer of the second device processing the RLC PDU using the original standard protocol can be described as follows: The RLC layer of the second device determines whether the sequence number of the RLC PDU is within the receive window. If the sequence number of the RLC PDU is outside the receive window, the RLC layer of the second device will discard the RLC PDU; if the sequence number of the RLC PDU is within the receive window, the RLC layer of the second device will put the RLC PDU into the receive buffer. Afterwards, the RLC layer of the second device updates several state variables, such as updating RX_Next_Highest. If all RLC SDU segments corresponding to a certain sequence number have been received, the RLC layer of the second device will reassemble all RLC SDU segments into a complete RLC SDU and deliver the complete RLC SDU to the PDCP layer of the second device. When the RLC layer of the second device receives an incomplete RLC SDU (i.e., there are missing segments), it starts a reassembly timer. If the reassembly timer expires and not all RLC SDU segments are received, the RLC layer of the second device updates relevant status variables, such as updating RX_Next, RX_Highest_Status, etc., and triggers an RLC status report if necessary.

[0360] S1204, when the W field of the RLC PDU is 1, the RLC layer of the second device determines whether the sequence number of the RLC PDU is within the receiving window.

[0361] If the RLC PDU sequence number is within the receiving window, proceed with step S1205 below; if the RLCPDU sequence number is outside the receiving window, proceed with step S1208 below.

[0362] S1205, if the sequence number of the RLC PDU is within the receiving window, and the Z field of the RLC PDU is 1, then the RLC layer of the second device determines whether the value of the first indicator variable DT(x) is 1.

[0363] If the value of the first indicator variable DT(x) is not 1, proceed to step S1206 below; and if the value of the first indicator variable DT(x) is 1, proceed to step S1208 below.

[0364] S1206, if the Z field of the RLC PDU is 0, then the RLC layer of the second device determines whether the value of the second indicator variable CT(x) is 1.

[0365] If the value of the second indicator variable CT(x) is not 1, proceed to step S1207 below; and if the value of the second indicator variable CT(x) is 1, proceed to step S1208 below.

[0366] S1207, the RLC layer of the second device determines whether it has received the y~z bytes corresponding to the RLC PDU.

[0367] If the y~z bytes corresponding to the RLC PDU have been received, proceed to step S1208 below; otherwise, if the y~z bytes corresponding to the RLC PDU have not been received, proceed to step S1209 below.

[0368] S1208, the RLC layer of the second device discards the RLC PDU.

[0369] S1209, if the y~z bytes corresponding to the RLC PDU have not been received, the RLC layer of the second device puts the RLC PDU into the receive buffer.

[0370] S1210, the RLC layer of the second device determines whether the sequence number x of the RLC PDU is greater than or equal to RX_Next_Highest.

[0371] If the sequence number x of the RLC PDU is greater than or equal to RX_Next_Highest, proceed with step S1211 below; if the sequence number x of the RLC PDU is less than RX_Next_Highest, proceed with step S1212 below.

[0372] S1211, if the sequence number x of the RLC PDU is greater than or equal to RX_Next_Highest, the RLC layer of the second device updates RX_Next_Highest=x+1.

[0373] S1212, if the sequence number x of the RLC PDU is less than RX_Next_Highest, the RLC layer of the second device determines whether all bytes of the original data with sequence number x have been received.

[0374] If all bytes of the original data with sequence number x have been received, proceed with step S1213 below; if not all bytes of the original data with sequence number x have been received, proceed with step S1214 below.

[0375] S1213, if all bytes of the original data with sequence number x have been received, the RLC layer of the second device assembles the RLC PDU with sequence number x to obtain an RLC PDU containing the complete original data.

[0376] S1214, if not all bytes of the original data with sequence number x have been received, the RLC layer of the second device continues to receive the bytes corresponding to the original data with sequence number x.

[0377] S1215, the RLC layer of the second device determines whether the value of the D / C field of the assembled RLC PDU is 0.

[0378] If the value of the D / C field of the assembled RLC PDU is 0, proceed to step S1216 below; if the value of the D / C field of the assembled RLC PDU is 1, proceed to step S1217 below.

[0379] S1216, when the value of the D / C field of the assembled RLC PDU is 0, the RLC layer of the second device sets the value of the second indicator variable CT(x) to 1, removes the RLC header of the assembled RLC PDU to obtain RLC control information, and processes the RLC control information in the RLC layer of the second device.

[0380] S1217, if the value of the D / C field of the assembled RLC PDU is 1, the RLC layer of the second device determines whether the value of the Z field of the assembled RLC PDU is 0.

[0381] If the Z field of the assembled RLC PDU is 0, proceed to step S1218 below; if the Z field of the assembled RLC PDU is 1, proceed to step S1219 below.

[0382] S1218, when the Z field of the assembled RLC PDU is 0, the RLC layer of the second device sets the value of the second indicator variable CT(x) to 1, removes the RLC header of the assembled RLC PDU to obtain the PDCP control PDU, and submits the PDCP control PDU to the PDCP layer of the second device.

[0383] When the RLC layer of the second device delivers the PDCP control PDU to the PDCP layer of the second device, it will not deliver the sequence number x corresponding to the PDCP control PDU to the PDCP layer of the second device.

[0384] S1219, when the Z field of the assembled RLC PDU is 1, the RLC layer of the second device sets the value of the first indicator variable DT(x) to 1, removes the RLC header of the assembled RLC PDU to obtain the PDCP data PDU, and submits the PDCP data PDU to the PDCP layer of the second device.

[0385] When the RLC layer of the second device delivers the PDCP data PDU to the PDCP layer of the second device, it will also deliver the sequence number x corresponding to the PDCP data PDU to the PDCP layer of the second device.

[0386] S1220, the RLC layer of the second device determines whether the value of the first indicator variable DT(x) is 1 and whether the value of the second indicator variable CT(x) is 1.

[0387] If the first indicator variable DT(x) is 1 and the second indicator variable CT(x) is also 1, then proceed with step S1221 below; if the first indicator variable DT(x) is not 1 and / or the second indicator variable CT(x) is not 1, then proceed with step S1222 below.

[0388] S1221, when the first indicator variable DT(x) is 1 and the second indicator variable CT(x) is also 1, the RLC layer of the second device updates RX_Next and RX_Highest_Status.

[0389] S1222, if the value of the first indicator variable DT(x) is not 1, and / or the value of the second indicator variable CT(x) is not 1, the RLC layer of the second device continues to receive data.

[0390] For example, Figure 13 This is a schematic diagram of the operation flow of the PDCP layer of the second device provided in an embodiment of this application. The second device is the receiving end. Figure 13 As shown, the communication method may specifically include the following steps: S1301, Does the PDCP layer of the second device receive PDCP data PDU from the RLC layer of the second device?

[0391] If a PDCP data PDU is received from the RLC layer of the second device, proceed to step S1302 below; if no PDCP data PDU is received from the RLC layer of the second device, proceed to step S1304 below.

[0392] S1302, when receiving PDCP data PDU from the RLC layer of the second device, the PDCP layer of the second device receives the sequence number corresponding to the PDCP data PDU from the RLC layer of the second device.

[0393] S1303, the PDCP layer of the second device adopts the original standard protocol and processes the PDCP data PDU based on the sequence number corresponding to the PDCP data PDU.

[0394] It should be noted that the PDCP layer of the second device adopts the original standard protocol. The specific process of processing the PDCP data PDU based on the sequence number corresponding to the PDCP data PDU can be referred to the description corresponding to S611 above. To avoid repetition, it will not be repeated here.

[0395] S1304, Does the PDCP layer of the second device receive the PDCP control PDU from the RLC layer of the second device?

[0396] If a PDCP control PDU is received from the RLC layer of the second device, the following step S1305 is executed; if no PDCP control PDU is received from the RLC layer of the second device, the following step S1306 is executed.

[0397] S1305, upon receiving a PDCP control PDU from the RLC layer of the second device, the PDCP layer of the second device removes the PDCP header of the PDCP control PDU, obtains PDCP control information, and processes the PDCP control information in the PDCP layer of the second device.

[0398] S1306, if no PDCP control PDU is received from the RLC layer of the second device, the PDCP layer of the second device continues to receive PDCP data PDU or PDCP control PDU from the RLC layer of the second device.

[0399] It should be noted that, Figure 13 This example illustrates how the determination of whether a PDCP control PDU from the RLC layer of the second device has been received is only made when the PDCP layer of the second device has not received a PDCP data PDU from the RLC layer of the second device. This does not constitute a limitation on the embodiments of this application. In practical applications, there is no fixed order in which the PDCP layer of the second device receives the PDCP data PDU and the PDCP control PDU from the RLC layer of the second device.

[0400] In this embodiment, the PDCP layer assigns a sequence number of 12 bits or 18 bits to each PDCP data PDU. For simplicity, Figure 14 and Figure 15 This example illustrates the concept by assigning a 4-bit sequence number to each PDCP data PDU at the PDCP layer. In this case, the window size for both the sending and receiving windows is 8.

[0401] The PDCP layer of the first device assigns a sequence number to the PDCP data PDU. Specifically, the PDCP layer associates the current TX_Next value with the COUNT value of the PDCP data PDU and calculates the sequence number RSN of the PDCP data PDU based on TX_Next: RSN = TX_Next mod 2. sn-FieldLength Furthermore, the PDCP layer of the first device does not assign sequence numbers to the PDCP control PDUs. Afterwards, the PDCP layer of the first device sends PDCP data PDUs and PDCP control PDUs to the RLC layer of the first device.

[0402] like Figure 14 As shown in (a), taking HFN=0 as an example, the PDCP layer of the first device sends PDCP data PDUs with RSN=0 to RSN=7 to the RLC layer of the first device, and the sequence number RSN corresponding to each PDCP data PDU is also sent to the RLC layer of the first device through the inter-layer interface. Furthermore, the PDCP layer of the first device also sends a PDCP control PDU to the RLC layer of the first device, and this PDCP control PDU has not been assigned a sequence number by the PDCP layer of the first device. However, the PDCP layer of the first device has not yet sent PDCP data PDUs with RSN=8 and beyond to the RLC layer of the first device.

[0403] After receiving the PDCP data PDU, the RLC layer of the first device constructs an RLC header based on the sequence number corresponding to the PDCP data PDU, assembles the RLC header and the PDCP data PDU into an RLC PDU, and sets D / C=1, W=0, and Z=1 in the RLC header. Then, the RLC layer of the first device places the RLC PDU containing the PDCP data PDU into the transmission buffer.

[0404] like Figure 14As shown in (b), the RLC layer of the first device has sent out RLC PDUs containing PDCP data PDUs with RSN=0 to RSN=3, but has not received an acknowledgment. In this case, after receiving the PDCP control PDU from the PDCP layer of the first device, the RLC layer of the first device selects the first unsent RLC PDU in the transmission buffer that contains an unmultiplexed sequence number and a complete PDCP data PDU, i.e., the RLC PDU containing the PDCP data PDU with RSN=4, and can then use RSN=4 as the first sequence number. Afterwards, the RLC layer of the first device constructs an RLC header based on the first sequence number, assembles the RLC header and the PDCP control PDU into an RLC PDU, and sets D / C=1, W=1, and Z=0 in the RLC header. At this time, the sequence number RSN of the RLC PDU containing the PDCP control PDU is 4. Furthermore, the RLC layer of the first device modifies the W field to 1 for the RLC PDU containing PDCP data PDU whose sequence number is reused, i.e., the RLC PDU containing PDCP data PDU with RSN=4.

[0405] When the RLC layer of the first device obtains a transmission opportunity, the RLC layer of the first device sends out the RLC PDU with RSN=4 and containing the PDCP control PDU, and the RLC PDU with RSN=4 and containing the PDCP data PDU respectively.

[0406] like Figure 15 As shown in (b), the RLC PDU containing PDCP data PDU and RSN=0 to RSN=7 is successfully received by the RLC layer of the second device. Therefore, the RLC layer of the second device removes the corresponding RLC header of the successfully received RLC PDU containing PDCP data PDU, obtains the PDCP data PDU, and submits the PDCP data PDU to the PDCP layer of the second device. The sequence number corresponding to the PDCP data PDU (such as RSN=0 to RSN=7) is also submitted to the PDCP layer of the second device.

[0407] If an RLC PDU with RSN=4 and containing a PDCP control PDU is lost or not correctly received during transmission, the transmission of the RLC PDU with RSN=4 and containing a PDCP control PDU fails. Figure 15 As shown in (a), the PDCP layer of the second device detects the absence of a reception gap based on SN continuity, thus not triggering the start of the t-Reordering timer. Therefore, in this embodiment, even if the PDCP control PDU is lost, no sequence number interval will be generated in the PDCP layer of the second device, thereby avoiding unnecessary PDCP reordering delay.

[0408] Furthermore, since RSN=4 and the RLC PDU containing PDCP data PDU is successfully transmitted, the RLC layer of the second device can set the value of the first indicator variable DT(4) to 1; however, since RSN=4 and the RLC PDU containing PDCP control PDU fails to be transmitted, the RLC layer of the second device cannot set the value of the second indicator variable CT(4) to 1. In this case, the RLC layer of the second device does not update the following status variables, such as RX_Next and RX_Highest_Status.

[0409] In other examples, taking RLC PDUs with RSN=0, 1, 2, 3, 4, 5, 7 and containing PDCP data PDUs as successfully received by the RLC layer of the second device, but RLC PDUs with RSN=6 and containing PDCP data PDUs failing to transmit as an example, the RLC layer of the second device finds an RLC PDU with RSN=4 and containing PDCP data PDUs, whose W field value is 1, and determines that RSN=4 is the multiplexed sequence number. The RLC layer of the second device generates a first indicator variable DT (4) and a second indicator variable CT (4) for RSN=4. Since the RLC PDU with RSN=4 and containing complete PDCP data PDUs has been successfully received by the RLC layer of the second device, the RLC layer of the second device sets the value of the first indicator variable DT (4) to 1. Afterwards, if the RLC layer of the second device receives an RLC PDU with RSN=4 and containing complete PDCP control PDUs, the RLC layer of the second device also sets the value of the second indicator variable CT (4) to 1. At this time, since the values ​​of the first indicator variable DT (4) and the second indicator variable CT (4) are both 1, the RLC layer of the second device updates the state variables using RSN=4, such as updating RX_Next=6.

[0410] In this scenario, the RLC layer of the second device removes the corresponding RLC header from the successfully received RLCPDU containing PDCP data PDUs to obtain the PDCP data PDUs. The PDCP data PDUs are then delivered to the PDCP layer of the second device, along with their corresponding sequence numbers (e.g., RSN=0, 1, 2, 3, 4, 5, 7). The PDCP layer of the second device converts the corresponding sequence numbers (RSN=0, 1, 2, 3, 4, 5, 7) into RCVD_COUNT values ​​and uses the RCVD_COUNT to perform decryption and integrity verification on the PDCP data PDUs.

[0411] Furthermore, for an RLC PDU with RSN=4 and containing a complete PDCP control PDU, the RLC layer of the second device removes its corresponding RLC header to obtain the PDCP control PDU, but the sequence number RSN=4 corresponding to the PDCP control PDU is not delivered to the PDCP layer of the second device. After receiving the PDCP control PDU from the RLC layer of the second device, the PDCP layer of the second device removes the PDCP header of the PDCP control PDU, obtains the PDCP control information, and processes the PDCP control information directly in the PDCP layer of the second device.

[0412] also, Figures 1 to 15 The flowcharts or scene diagrams shown are for illustrative purposes only and are not intended to limit the embodiments of this application to the examples illustrated. In fact, those skilled in the art can interpret the embodiments based on... Figures 1 to 15 The examples in the document can be transformed into equivalent ways to obtain more implementations.

[0413] The above text combined Figures 1 to 15 This document describes in detail the communication method provided in the embodiments of this application. The following will combine... Figure 16 and Figure 17 The device embodiments of this application are described in detail below. It should be understood that the communication device of this application embodiment can execute the various communication methods of the above-described embodiments of this application, that is, the specific working processes of the various products below can be referred to the corresponding processes in the above method embodiments.

[0414] In the embodiments described above, the first device may execute some or all of the steps in each embodiment; the second device may execute some or all of the steps in each embodiment. These steps or operations are merely examples, and the embodiments of this application may also perform other operations or variations thereof. Furthermore, the steps may be executed in different orders as presented in the embodiments, and it is not necessary to execute all the operations in the embodiments of this application. Moreover, the sequence number of each step does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0415] Figure 16 This is a schematic block diagram of a communication device provided in an embodiment of this application. Figure 16 As shown, the communication device 1600 may include a communication unit 1602. The communication unit 1602 can implement corresponding communication functions, which can be internal communication functions of the communication device 1600 or communication functions between the communication device 1600 and other devices. Optionally, the communication unit 1602 may also be referred to as a communication interface or transceiver unit. Optionally, the communication device 1600 may also include a processing unit 1601. The processing unit 1601 can implement corresponding processing functions.

[0416] Optionally, the communication device 1600 further includes a storage unit, which can be used to store instructions and / or data; the processing unit 1601 can read the instructions and / or data in the storage unit so that the communication device 1600 can implement the above method embodiments.

[0417] In one possible design, the communication device 1600 may correspond to the first device in the above method embodiments, or to a component (such as a circuit, chip, or chip system) configured in the first device. The communication device 1600 may be used to perform the steps or processes performed by the first device in any of the above method embodiments.

[0418] For example, the processing unit 1601 is used to: select a first sequence number based on a first data packet that has not yet been sent in the transmission buffer, the first data packet being used to carry service data, and the sequence number of the first data packet being assigned by the PDCP layer of the first device; the communication unit 1602 is used to: send a second data packet to the RLC layer of the second device based on the first sequence number, the second data packet being used to carry control information.

[0419] The above are merely examples; for detailed steps or procedures, please refer to the description of the above embodiments.

[0420] In another possible design, the communication device 1600 may correspond to the second device in the above method embodiments, or to a component (such as a circuit, chip, or chip system) configured in the second device. The communication device 1600 may be used to perform the steps or processes performed by the second device in any of the above method embodiments.

[0421] For example, the communication unit 1602 is used to: receive a second data packet from the RLC layer of the first device based on a first sequence number, the second data packet being used to carry control information; wherein, the first sequence number is selected by the RLC layer of the first device based on a first data packet that has not yet been sent in the transmission buffer, the first data packet being used to carry service data, and the sequence number of the first data packet being assigned by the PDCP layer of the first device.

[0422] The above are merely examples; for detailed steps or procedures, please refer to the description of the above embodiments.

[0423] Figure 17 This is a schematic diagram of another communication device provided in an embodiment of this application. The communication device 1700 may be a chip, chip system, or processor, etc., that implements the above-described method in a first or second device. The communication device 1700 can be used to implement the methods described in the above method embodiments; for details, please refer to the descriptions in the above method embodiments.

[0424] like Figure 17As shown, the communication device 1700 may include one or more processors 1701, which may also be referred to as processing units or processing modules, and can implement certain control functions. The processor 1701 can be a general-purpose processor or a dedicated processor, such as a baseband processor or a central processing unit. The baseband processor can be used to process communication protocols and communication data, while the central processing unit can be used to control the communication device 1700 (e.g., a base station, baseband chip, user, user chip), execute software programs, and process data from the software programs.

[0425] In an alternative design, the processor 1701 may also store instructions and / or data that can be executed by the processor 1701 to cause the communication device 1700 to perform the methods described in the above method embodiments.

[0426] In another alternative design, the communication device 1700 may include a communication interface 1702 for implementing receiving and transmitting functions. For example, the communication interface 1702 may be a transceiver circuit, interface, interface circuit, or transceiver. The transceiver circuit, interface, interface circuit, or transceiver for implementing receiving and transmitting functions may be separate or integrated. The aforementioned transceiver circuit, interface, interface circuit, or transceiver may be used for reading and writing code / data, or it may be used for transmitting or relaying signals.

[0427] Optionally, the communication device 1700 may include one or more memories 1703, which may store instructions that can be executed on the processor 1701, causing the communication device 1700 to perform the methods described in the above method embodiments. Optionally, the memories 1703 may also store data. Optionally, the processor 1701 may also store instructions and / or data. The processor 1701 and the memories 1703 may be provided separately or integrated together.

[0428] It should be understood that, in one possible design, the steps in the method embodiments provided in this application can be implemented by integrated logic circuits in the processor's hardware or by instructions in software form. The steps of the methods disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are not provided here.

[0429] In one implementation, the communication device 1700 may correspond to the first device in the above method embodiments and may be used to execute the various steps and / or processes executed by the first device in the above method embodiments. The processor 1701 may be used to execute instructions stored in the memory 1703, and when the processor 1701 executes the instructions stored in the memory, the processor 1701 is used to execute the various steps and / or processes of the above method embodiments corresponding to the first device.

[0430] In another implementation, the communication device 1700 may correspond to the second device in the above method embodiments and may be used to execute the various steps and / or processes executed by the second device in the above method embodiments. The processor 1701 may be used to execute instructions stored in the memory 1703, and when the processor 1701 executes the instructions stored in the memory, the processor 1701 is used to execute the various steps and / or processes of the above method embodiments corresponding to the second device.

[0431] It should be understood that the aforementioned processing device can be one or more chips. For example, the processing device can be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0432] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0433] According to the method provided in the embodiments of this application, this application also provides a chip system, which includes one or more processors for calling and executing instructions stored in memory, thereby causing the method described in the embodiments of this application to be executed. The chip system may be composed of chips or may include chips and other discrete devices.

[0434] The chip system may include input circuits or interfaces for transmitting information or data, and output circuits or interfaces for receiving information or data.

[0435] According to the method provided in the embodiments of this application, this application also provides a communication system, which includes a first device and a second device. The first device is used to execute the communication method on the first device side, and the second device is used to execute the communication method on the second device side.

[0436] According to the method provided in the embodiments of this application, this application also provides a computer program product, which includes: computer program code, which, when run on a computer, causes the computer to execute the various steps or processes executed by the first device or the second device in any of the above method embodiments.

[0437] According to the method provided in the embodiments of this application, this application also provides a computer-readable storage medium storing program code, which, when run on a computer, causes the computer to execute the various steps or processes executed by the first device or the second device in any of the above method embodiments.

[0438] The computer-readable storage medium may be the aforementioned volatile memory or non-volatile memory, or it may include both volatile memory and non-volatile memory.

[0439] In the embodiments of this application, the terms and English abbreviations are exemplary examples given for ease of description and should not be construed as limiting the application in any way. This application does not preclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.

[0440] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions shown in the embodiments of this application are generated.

[0441] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0442] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0443] In summary, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A communication method characterized by comprising: Applied to a first device, the method includes: The Radio Link Control (RLC) layer of the first device selects a first sequence number based on a first data packet that has not yet been transmitted in the transmission buffer. The first data packet is used to carry service data and includes a PDCP Data Protocol Data Unit (PDU). The sequence number of the first data packet is assigned by the Packet Data Convergence Protocol (PDCP) layer of the first device. The RLC layer of the first device sends a second data packet to the RLC layer of the second device based on the first sequence number. The second data packet is used to carry control information and includes PDCP control PDU or RLC control information generated by the RLC layer.

2. The method of claim 1, wherein, The first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

3. The method of claim 1, wherein, When selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry the control information.

4. The method according to any one of claims 1 to 3, characterized in that, The first data packet is the first data packet in the sending buffer that has not yet been sent and is used to carry the service data.

5. The method according to any one of claims 1 to 3, characterized in that, Both the first data packet and the second data packet include a first field, a second field, and a third field; The first field indicates the data packet type, the second field indicates the data type carried by the data packet, and the third field indicates whether the sequence number is reused by data packets carrying different data types.

6. The method according to claim 5, characterized in that, The first field in the first data packet takes a first value; when the control information carried by the second data packet comes from the PDCP layer of the first device, the first field in the second data packet takes a first value; when the control information carried by the second data packet comes from the RLC layer of the first device, the first field in the second data packet takes a second value, and the first value is different from the second value. The value of the second field in the first data packet is a third value, and the value of the second field in the second data packet is a fourth value, wherein the third value is different from the fourth value; The value of the third field in the second data packet is the fifth value; when the first sequence number is selected, the value of the third field in the first data packet is the sixth value, and the fifth value is different from the sixth value; after the first sequence number is selected, the value of the third field in the first data packet is the fifth value.

7. The method according to claim 1, characterized in that, The method further includes: The RLC layer of the first device receives a third data packet from the PDCP layer of the first device, and the sequence number corresponding to the third data packet; wherein, the third data packet does not include the sequence number corresponding to the third data packet, and the third data packet is used to carry the service data; The RLC layer of the first device constructs the first data packet based on the third data packet and the sequence number corresponding to the third data packet; The RLC layer of the first device places the first data packet into the transmission buffer; The RLC layer of the first device sequentially sends the first data packet in the transmission buffer to the RLC layer of the second device.

8. The method according to claim 7, characterized in that, The RLC layer of the first device receives the sequence number corresponding to the third data packet through the first interface, which is the inter-layer interface between the PDCP layer and the RLC layer of the first device.

9. The method according to claim 1, characterized in that, Before selecting the first serial number, the method further includes: The RLC layer of the first device receives a fourth data packet from the PDCP layer of the first device, and the PDCP layer of the first device does not assign a sequence number to the fourth data packet; And, based on the first sequence number, the RLC layer of the first device sends a second data packet to the RLC layer of the second device, including: The RLC layer of the first device constructs the second data packet based on the fourth data packet and the first sequence number; The RLC layer of the first device sends the second data packet to the RLC layer of the second device.

10. The method according to claim 9, characterized in that, The method further includes: The RLC layer of the first device receives first indication information from the PDCP layer of the first device; wherein the first indication information is used to indicate that the fourth data packet carries the control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device.

11. The method according to claim 1, characterized in that, Before selecting the first serial number, the method further includes: The RLC layer of the first device generates RLC control information; And, based on the first sequence number, the RLC layer of the first device sends a second data packet to the RLC layer of the second device, including: The RLC layer of the first device constructs the second data packet based on the RLC control information and the first sequence number; The RLC layer of the first device sends the second data packet to the RLC layer of the second device.

12. A communication method, characterized in that, Applied to a second device, the method includes: The RLC layer of the second device receives a second data packet from the RLC layer of the first device based on the first sequence number. The second data packet is used to carry control information and includes PDCP control PDU or RLC control information generated by the RLC layer. The first sequence number is selected by the RLC layer of the first device based on the first data packet that has not yet been sent in the transmission buffer. The first data packet is used to carry service data and includes PDCP data PDU. The sequence number of the first data packet is assigned by the PDCP layer of the first device.

13. The method according to claim 12, characterized in that, The first data packet includes segmentation indication information, which is used to indicate that the first data packet does not belong to a segmented data packet.

14. The method according to claim 12, characterized in that, When selecting the first sequence number, the sequence number of the first data packet is not reused by other data packets used to carry the control information.

15. The method according to any one of claims 12 to 14, characterized in that, The first data packet is the first data packet in the sending buffer that has not yet been sent and is used to carry the service data.

16. The method according to any one of claims 12 to 14, characterized in that, Both the first data packet and the second data packet include a first field, a second field, and a third field; The first field indicates the data packet type, the second field indicates the data type carried by the data packet, and the third field indicates whether the sequence number is reused by data packets carrying different data types.

17. The method according to claim 16, characterized in that, The first field in the first data packet takes a first value; when the control information carried by the second data packet comes from the PDCP layer of the first device, the first field in the second data packet takes a first value; when the control information carried by the second data packet comes from the RLC layer of the first device, the first field in the second data packet takes a second value, and the first value is different from the second value. The value of the second field in the first data packet is a third value, and the value of the second field in the second data packet is a fourth value, wherein the third value is different from the fourth value; The value of the third field in the second data packet is the fifth value; when the first sequence number is selected, the value of the third field in the first data packet is the sixth value, and the fifth value is different from the sixth value; after the first sequence number is selected, the value of the third field in the first data packet is the fifth value.

18. The method according to claim 12, characterized in that, The method further includes: The RLC layer of the second device receives the first data packet from the RLC layer of the first device; For the first data packet whose sequence number is reused, if the first data packet meets the first condition, the RLC layer of the second device processes the first data packet to obtain a third data packet and the sequence number corresponding to the third data packet. The third data packet does not include the sequence number corresponding to the third data packet. The RLC layer of the second device sets the value of the first indicator variable to the seventh value; wherein, when the value of the first indicator variable is the seventh value, it is used to instruct the RLC layer of the second device to receive all data packets including the first sequence number and carrying the service data; The RLC layer of the second device sends the third data packet and the sequence number corresponding to the third data packet to the PDCP layer of the second device; The first condition includes at least one of the following: the sequence number of the first data packet is within the receiving window; the value of the first indicator variable is not the seventh value when the RLC layer of the second device receives the first data packet; and the RLC layer of the second device has not received any bytes of the first data packet.

19. The method according to claim 18, characterized in that, The RLC layer of the second device sends the sequence number corresponding to the third data packet through the second interface, which is the inter-layer interface between the RLC layer and the PDCP layer of the second device.

20. The method according to claim 12, characterized in that, After the second device's RLC layer receives the second data packet from the first device's RLC layer based on the first sequence number, the process further includes: If the second data packet satisfies the second condition, the RLC layer of the second device processes the second data packet to obtain a fourth data packet and the first sequence number. The fourth data packet does not include the first sequence number, and the fourth data packet is a data packet from the PDCP layer of the first device. The RLC layer of the second device sets the value of the second indicator variable to the eighth value; wherein, when the value of the second indicator variable is the eighth value, it is used to instruct the RLC layer of the second device to receive all data packets including the first sequence number and carrying the control information; The RLC layer of the second device sends the fourth data packet to the PDCP layer of the second device; wherein the RLC layer of the second device does not carry the first sequence number when sending the fourth data packet; The second condition includes at least one of the following: the first sequence number is within the receiving window; the value of the second indicator variable is not the eighth value when the second data packet is received at the RLC layer of the second device; and the RLC layer of the second device has not received any bytes of the second data packet.

21. The method according to claim 20, characterized in that, The method further includes: The RLC layer of the second device sends a second indication information to the PDCP layer of the second device; wherein the second indication information is used to indicate that the fourth data packet carries the control information, and the control information carried by the fourth data packet comes from the PDCP layer of the first device.

22. The method according to claim 12, characterized in that, After the second device's RLC layer receives the second data packet from the first device's RLC layer based on the first sequence number, the process further includes: If the second data packet meets the second condition, the RLC layer of the second device processes the second data packet to obtain RLC control information; The RLC layer of the second device sets the value of the second indicator variable to the eighth value; wherein, when the value of the second indicator variable is the eighth value, it is used to instruct the RLC layer of the second device to receive all data packets including the first sequence number and carrying the control information; The RLC layer of the second device processes the RLC control information; The second condition includes at least one of the following: the first sequence number is within the receiving window; the value of the second indicator variable is not the eighth value when the second data packet is received at the RLC layer of the second device; and the RLC layer of the second device has not received any bytes of the second data packet.

23. The method according to any one of claims 18 to 22, characterized in that, The method further includes: When the first indicator variable takes the seventh value and the second indicator variable takes the eighth value, the RLC layer of the second device updates the target state variable; The target state variable includes a first state variable and / or a second state variable. The first state variable is used to indicate the lower boundary of the receiving window, and the second state variable is used to indicate the highest acknowledgment number in the generated RLC state report.

24. A communication device, characterized in that, The device includes at least one processor coupled to a memory storing a program or instructions, wherein the processor executes the program or instructions to cause the communication device to perform the communication method as described in any one of claims 1 to 11, or to perform the communication method as described in any one of claims 12 to 23.

25. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions that, when executed, implement the communication method as described in any one of claims 1 to 11, or implement the communication method as described in any one of claims 12 to 23.

26. A communication system, characterized in that, The communication system includes a first device and a second device, wherein the first device is used to perform the communication method as described in any one of claims 1 to 11, and the second device is used to perform the communication method as described in any one of claims 12 to 23.