Communication method and communication device

By updating the state variable at the receiving end according to the count value of discarded data, the problem of packet loss caused by discarded data at the sending end is solved, and the performance and reliability of communication transmission are improved.

CN118784165APending Publication Date: 2024-10-15HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310417379.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In communication technology, when the receiving end processes the PDCP protocol data unit, the sending end may discard the data, causing a state variable update problem that cannot be effectively solved by existing technologies, resulting in data packet loss and transmission performance degradation.

Method used

By determining the count value of discarded data at the receiving end and updating the state variable based on the count value, it avoids directly updating based on the count value greater than the discarded data, thereby avoiding packet loss. Specific methods include pretending to receive data or configuring empty data packets, updating state variables, and ensuring smooth transmission of data packets.

Benefits of technology

It effectively avoids data packet loss due to status variable updates, improves transmission performance and reliability, and ensures data packet integrity and delay performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784165A_ABST
    Figure CN118784165A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and a communication device. The communication method comprises: a first device determining first information, the first information comprising a count value of first data, the first data being discarded data; the first device updates the state variable according to a first count value, wherein the first count value is the count value of the first data. Compared with the prior art, after the first device determines the count value of the discarded data, the state variable is updated directly according to the count value larger than the count value of the discarded data, so that the first device possibly does not receive data before the discarded data, and after the state variable is updated, even if the first device receives the data before the discarded data, the data before the discarded data cannot be received. According to the method, the first device performs state variable updating according to the count value of the discarded data, so that the problem of data packet loss caused by the fact that the first device still discards the discarded data is solved, and packet loss is effectively avoided.
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 more specifically, to a communication method and a communication device. Background Art

[0002] In existing technology, the receiving end receives a Packet Data Convergence Protocol (PDCP) Protocol Data Unit (PDU). This PDU includes a sequence number (SN). Based on the received SN, the receiving end further calculates the hyperframe number (HFN) of the PDCP PDU, obtaining a count value for the PDCP PDU. The receiving end determines whether to discard the PDCP PDU based on the obtained count value. If the receiving end decides not to discard the data, it can update its state variables based on the count value.

[0003] In some cases, the sender may discard data, and there is currently no effective method for the receiver to update state variables in such situations. Summary of the Invention

[0004] This application provides a communication method and a communication device that can avoid data packet loss due to PDCP entity state variable updates, thereby improving transmission performance.

[0005] In a first aspect, a communication method is provided. The method can be executed by the terminal device itself, or by a chip, circuit, or module in the terminal device, and this application does not limit this. Alternatively, the method can be executed by the network device itself, or by a chip, circuit, or module in the network device, and this application does not limit this. Unless otherwise specified, this application will describe the method as a first device.

[0006] The methods include:

[0007] The first device determines first information, which includes information about the count value of first data, where the first data is discarded data; the first device updates the state variable based on the first count value, where the first count value is the count value of the first data.

[0008] According to the method provided in this application, a first device determines a count value of first data and updates a state variable based on the first count value. Here, the first count value is the count value of the first data, and the first data is discarded data. It is understood that by determining the count value of the discarded data and updating the state variable based on that count value, the first device effectively avoids the problem of data packet loss caused by directly updating the state variable based on a count value greater than the discarded data, compared to existing technologies.

[0009] In conjunction with the first aspect, in some possible implementations, the first data is considered to have been received by the first device.

[0010] Based on the above technical solution, the first data is discarded data, but it is considered to have been received by the first device. The first device determines that the first data is discarded data and treats it as if it has been received.

[0011] It should be understood that in some specific implementations, the first device may pretend to have received the first data and update the state variables; or, the first device may configure an empty data packet at the position corresponding to the discarded data and update the state variables.

[0012] In conjunction with the first aspect, in some possible implementations, if the first condition is met, the first data is considered to have been received by the first device. The first condition includes a first state variable being less than or equal to a first count value, whereby the first state variable indicates the count value of the first data that the first device is waiting to deliver.

[0013] Based on the above technical solution, if the first state variable is less than or equal to the first count value, the first data will be considered to have been received by the first device.

[0014] In conjunction with the first aspect, in some possible implementations, the first information includes a count value of at least one data, the at least one data includes first data, and each of the at least one data is discarded data.

[0015] Based on the above technical solution, the first information includes a count value of at least one data, which may include one or more data, each of the at least one data being discarded data, and the at least one data including the first data. The first count value is the smallest count value among the at least one data.

[0016] It should be understood that, generally speaking, one data point can correspond to one count value.

[0017] In conjunction with the first aspect, in some possible implementations, the first data is considered to have already been received by the first device and stored in the cache.

[0018] In conjunction with the first aspect, in some possible implementations, the first information also includes information about a first quantity, which is used to indicate the number of data items to be discarded.

[0019] In conjunction with the first aspect, in some possible implementations, the first device updates the state variable based on the first count value, including:

[0020] If the first count value is greater than or equal to the second state variable, the first device updates the second state variable to: the sum of the first count value and the first quantity, or the first device updates the second state variable to: the sum of the first count value and 1;

[0021] And / or,

[0022] If the first count value equals the first state variable, the first device submits at least one third data, the third data including data received and stored in the buffer by the first device, and the count value corresponding to the third data is greater than or equal to the first state variable.

[0023] And / or,

[0024] If the first count value is equal to the first state variable, the first device updates the first state variable to the fourth count value, which is greater than the first state variable. The first state variable is used to indicate the count value of the first data that the first device is waiting to submit, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the first quantity is used to indicate the number of data to be discarded.

[0025] Based on the above technical solution, when the first device updates the state variable according to the first count value, if the first count value is greater than or equal to the count value of the second state variable used to indicate the next data that the first device expects to receive, the first device updates the second state variable to the sum of the first count value and the first quantity. When at least one data includes multiple (two or more) data, the first device only needs to update the second state variable once. Alternatively, the first device updates the second state variable to the sum of the first count value and 1. The first device needs to determine the relationship between the count value and the second state variable for each of the at least one data, and further determine whether to update the second state variable.

[0026] When the first count value equals the first state variable, the first device submits at least one third data to the upper layer. When multiple (two or more) third data are submitted, the count values ​​of the third data are consecutive, and the count value corresponding to the third data is greater than or equal to the first state variable.

[0027] In a first aspect, in some possible implementations, the first device updates the state variable based on the first count value, further comprising: if the reordering timer is running and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer. And / or, if the reordering timer is not running and the first state variable is less than the second state variable, the first device starts the reordering timer. Wherein, the first state variable indicates the count value of the first data the first device is waiting to submit, the second state variable indicates the count value of the next data the first device expects to receive, and the third state variable indicates that the count value of the data that triggered the reordering timer is incremented by 1.

[0028] In one possible implementation, the first device acquires the serial number SN or the first count value of the first data.

[0029] Based on the above technical solution, the first device can also acquire the serial number SN or the first count value of the first data. Specifically, the first device can determine the first count value based on the acquired serial number SN of the first data.

[0030] In one aspect, in some possible implementations, when the first device obtains the serial number SN of the first data, the method further includes: the first device determining a first count value based on the serial number SN of the first data and a first state variable, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

[0031] Based on the above technical solution, when the first device obtains the serial number SN of the first data, the first device determines the first count value according to the serial number SN of the first data and the first state variable.

[0032] Specifically, the first device can deduce the superframe number HFN based on the sequence number SN of the first data, and determine the first count value based on the sequence number SN and the superframe number HFN.

[0033] In a first aspect, in some possible implementations, where the first information includes a count value of at least one data, the method further includes: the first device acquiring information of any one or more of the following for at least one data: a start serial number SN, an end serial number SN, a start count value, an end count value, and a first quantity, wherein the first quantity is the number of discarded data in the first data set.

[0034] Based on the above technical solution, when the first information determined by the first device includes a count value of at least one data, the first device may also acquire information such as the start sequence number SN, the end sequence number SN, the start count value, the end count value, and the first quantity of at least one data. Based on one or more of the above information, the first device can further determine a count value related to at least one data. The related count value may be the start count value, the end count value, or any one or more count values ​​of at least one data.

[0035] In one aspect, in some possible implementations, the first device determines the initial count value of at least one data based on the initial sequence number SN and a first state variable; and / or, the first device determines the count value of at least one of the at least one data based on the initial count value of at least one data and a first quantity, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

[0036] Secondly, a communication method is provided, which can be executed by the terminal device itself, or by a chip, circuit or module in the terminal device, and this application does not limit this; or, the method can be executed by the network device itself, or by a chip, circuit or module in the network device, and this application does not limit this; unless it causes ambiguity in the context, this application will describe it as a first device.

[0037] The methods include:

[0038] The first device determines first information, which includes a count value of at least one data, each of which is discarded data.

[0039] If the second condition is met, the first device performs one or more of the following:

[0040] The first device submits at least one data whose received count value is greater than or equal to the second count value plus 1;

[0041] The first device updates the first state variable to a third count value, which is greater than the second count value;

[0042] If the reordering timer is running, and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer;

[0043] If the reordering timer is not running, and the first state variable is less than the second state variable, the first device starts the reordering timer.

[0044] The second condition is as follows: the first state variable is equal to the first count value, the first count value is the count value of the first data, the first data is the data with the smallest count value among at least one data, the second count value is the count value of the second data, the second data is the data with the largest count value among at least one data, the first state variable is used to indicate the count value of the first data that the first device is waiting to deliver, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the third state variable is used to indicate that the count value of the data that triggers the reordering timer is incremented by 1.

[0045] According to the method provided in this application, a first device determines first information, which includes a count value of at least one piece of data, each of which is discarded data. The first device further updates a state variable based on the first count value and a first state variable in the at least one piece of data. Specifically, when the first device determines that the first state variable equals the first count value, the first device submits at least one piece of data whose received count value is greater than or equal to a second count value plus 1, where the second count value is the largest among the count values ​​of the at least one piece of data. The first device then submits the at least one piece of data whose received count value is greater than or equal to the second count value plus 1 to the upper layer, and the count values ​​of the at least one piece of data submitted to the upper layer by the first device are consecutive. Furthermore, when the first device determines that the first state variable equals the first count value, the first device can update the first state variable to a third count value, where the third count value is greater than the second count value, and the third count value is the count value of the first data packet that the first device has not submitted to the upper layer and is greater than the second count value. According to the technical solution provided in this application, when the first device determines that the first state variable equals the first count value, the first device further determines the update of the state variable, thereby avoiding data packet loss and improving transmission performance.

[0046] In conjunction with the second aspect, in some possible implementations, when the second state variable is less than the second count value, the method further includes: the first device updating the second state variable to: the second count value incremented by 1.

[0047] In conjunction with the second aspect, in some possible implementations, after the first device determines the first information, the method further includes: satisfying a third condition, and the first device ignoring the first information. The third condition includes: the first state variable is greater than the second count value.

[0048] Based on the above technical solution, after the first device determines the first information, when the first state variable is greater than the second count value, the first device ignores the first information, that is, the first device may not perform the state variable update that satisfies the second condition.

[0049] In conjunction with the second aspect, in some possible implementations, the method further includes: the first device acquiring information of at least one data item, including any one or more of the following:

[0050] Start serial number SN, end serial number SN, start count value, end count value, first quantity,

[0051] The first quantity is the number of discarded data in at least one data set.

[0052] Based on the above technical solution, before determining the first information, the first device may also acquire one or more of the following: a start sequence number SN, an end sequence number SN, a start count value, an end count value, and a first quantity. The first device can determine the count value of at least one data based on the acquired at least one piece of information.

[0053] In conjunction with the second aspect, in some possible implementations, when the first device obtains the serial number SN of the first data, the method further includes: the first device determining a first count value based on the serial number SN of the first data and a first state variable, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

[0054] Based on the above technical solution, when the first device obtains the serial number SN of the first data in at least one data, the first device determines the count value of the first data, i.e., the first count value, according to the serial number SN of the first data and the first state variable.

[0055] In conjunction with the second aspect, in some possible implementations, the method further includes: the first device determining a starting count value for at least one data item based on a starting sequence number SN and a first state variable; and / or, the first device determining a ending count value for at least one data item based on a ending sequence number SN and the first state variable; and / or, the first device determining a ending count value for at least one data item based on a first count value and a first quantity. The first state variable is used to indicate the count value of the first data item the first device is waiting to submit.

[0056] Thirdly, an apparatus is provided, comprising: a processing unit configured to determine first information, the first information including information about a count value of first data, wherein the first data is discarded data; the processing unit further configured to update a state variable based on the first count value, wherein the first count value is the count value of the first data.

[0057] In conjunction with the third aspect, in some possible implementations, the first data is considered to have been received by the first device.

[0058] In conjunction with the third aspect, in some possible implementations, if the first condition is met, the first data is considered to have been received by the first device. The first condition includes a first state variable being less than or equal to a first count value, whereby the first state variable indicates the count value of the first data that the first device is waiting to deliver.

[0059] In conjunction with the third aspect, in some possible implementations, the first information includes a count value of at least one data, the at least one data includes first data, and each of the at least one data is discarded data.

[0060] In conjunction with the third aspect, in some possible implementations, the first data is considered to have already been received by the first device and stored in the cache.

[0061] In conjunction with the third aspect, in some possible implementations, the first information also includes information about a first quantity, which is used to indicate the number of data items to be discarded.

[0062] In conjunction with the third aspect, in some possible implementations, the processing unit, used to update the state variables based on the first count value, includes:

[0063] If the first count value is greater than or equal to the second state variable, the processing unit is further configured to update the second state variable to: the sum of the first count value and the first quantity; or, the processing unit is further configured to update the second state variable to: the sum of the first count value and 1.

[0064] and / or,

[0065] If the first count value equals the first state variable, the processing unit is further configured to submit at least one third data, the third data including data received and stored in the buffer by the first device, and the count value corresponding to the third data being greater than or equal to the first state variable.

[0066] and / or,

[0067] If the first count value equals the first state variable, the processing unit further updates the first state variable to a fourth count value, where the fourth count value is greater than the first state variable.

[0068] The first state variable is used to indicate the count value of the first data that the first device is waiting to submit, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the first quantity is used to indicate the number of data to be discarded.

[0069] In conjunction with the third aspect, in some possible implementations, the processing unit, used to update the state variable based on the first count value, further includes: if the reordering timer is running and the first state variable is greater than or equal to the third state variable, the processing unit is further used to stop the reordering timer. And / or, if the reordering timer is not running and the first state variable is less than the second state variable, the processing unit is further used to start the reordering timer. Wherein, the first state variable is used to indicate the count value of the first data that the first device is waiting to submit, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the third state variable is used to indicate that the count value of the data that triggered the reordering timer is incremented by 1.

[0070] In conjunction with the third aspect, in some possible implementations, the receiving unit is used to obtain the sequence number SN or the first count value of the first data.

[0071] In conjunction with the third aspect, in some possible implementations, in the case of the receiving unit acquiring the sequence number SN of the first data, the processing unit is further configured to determine a first count value based on the sequence number SN of the first data and a first state variable, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to deliver.

[0072] In conjunction with the third aspect, in some possible implementations, where the first information includes a count value of at least one data, the receiving unit is further configured to acquire information of at least one data, including any one or more of the following: start sequence number SN, end sequence number SN, start count value, end count value, and first quantity, wherein the first quantity is the number of data in the first data set.

[0073] In conjunction with the third aspect, in some possible implementations, the processing unit is further configured to determine the initial count value of at least one data based on the initial sequence number SN and the first state variable; and / or, the processing unit is further configured to determine the count value of at least one of the at least one data based on the initial count value of at least one data and the first quantity, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

[0074] Fourthly, a communication device is provided, comprising: a processing unit for determining first information, the first information including a count value of at least one data, each of the at least one data being discarded data.

[0075] If the second condition is met, the first device performs one or more of the following:

[0076] The processing unit is also used to submit at least one piece of data whose received count value is greater than or equal to the second count value plus 1;

[0077] The processing unit is also used to update the first state variable to a third count value, wherein the third count value is greater than the second count value;

[0078] If the reordering timer is running, and the first state variable is greater than or equal to the third state variable, the processing unit is also used to stop the reordering timer;

[0079] If the reordering timer is not running, and the first state variable is less than the second state variable, the processing unit is also used to start the reordering timer.

[0080] The second condition is as follows: the first state variable is equal to the first count value, the first count value is the count value of the first data, the first data is the data with the smallest count value among at least one data, the second count value is the count value of the second data, the second data is the data with the largest count value among at least one data, the first state variable is used to indicate the count value of the first data that the first device is waiting to deliver, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the third state variable is used to indicate that the count value of the data that triggers the reordering timer is incremented by 1.

[0081] In conjunction with the fourth aspect, in some possible implementations, when the second state variable is less than the second count value, the processing unit is also used to update the second state variable to: the second count value plus 1.

[0082] In conjunction with the fourth aspect, in some possible implementations, after the first device determines the first information and satisfies the third condition, the processing unit is further configured to ignore the first information. The third condition includes: the first state variable is greater than the second count value.

[0083] In conjunction with the fourth aspect, in some possible implementations, the method further includes: a processing unit, also configured to acquire information of at least one of the following:

[0084] Start serial number SN, end serial number SN, start count value, end count value, first quantity,

[0085] The first quantity is the number of discarded data in at least one data set.

[0086] In conjunction with the fourth aspect, in some possible implementations, where the transceiver unit is also used to obtain the sequence number SN of the first data, the processing unit is also used to determine a first count value based on the sequence number SN of the first data and a first state variable, wherein the first state variable is used to indicate the count value of the first data that the first device is waiting to deliver.

[0087] In conjunction with the fourth aspect, in some possible implementations, where the transceiver unit is also configured to acquire a start sequence number SN for at least one data item, the processing unit is further configured to determine a start count value for at least one data item based on the start sequence number SN and a first state variable. And / or, the processing unit is further configured to determine a stop count value for at least one data item based on a stop sequence number SN and the first state variable. And / or, the processing unit is further configured to determine a stop count value for at least one data item based on a first count value and a first quantity. Wherein, the first state variable is used to indicate the count value of the first data item that the first device is waiting to deliver.

[0088] Fifthly, a communication device is provided, which may be a terminal device or a network device, or a component (e.g., a chip or circuit) of a terminal device or a network device. The communication device includes a processor for retrieving and running a computer program from memory, causing the communication device to perform the method in any possible implementation of the first or second aspect described above.

[0089] Optionally, the processor may be one or more.

[0090] Optionally, the communication device may further include one or more memories, which may be integrated with the processor or may be disposed separately from the processor.

[0091] Optionally, the communication device also includes a transmitter and a receiver. When the communication device is a terminal device or a network device, the transmitter and receiver may be radio frequency modules, etc. When the communication device is a component (e.g., a chip or circuit) of a terminal device or a network device, the transmitter and receiver may be output / input circuits or interfaces, etc.

[0092] In a sixth aspect, a communication method is provided, including the method in any possible implementation of the first aspect above, and the method in any possible implementation of the second aspect above.

[0093] In a seventh aspect, a communication system is provided, including a network device and a terminal device, wherein the terminal device is used to execute the method in any possible implementation of the first aspect, and the network device is used to execute the method in any possible implementation of the second aspect.

[0094] Eighthly, a communication system is provided, including a network device, a first terminal device, and a second terminal device, wherein the first terminal device can be used to execute the method in any possible implementation of the first aspect, and the second terminal device can be used to execute the method in any possible implementation of the second aspect, wherein the first terminal device and the second terminal device are different.

[0095] In a ninth aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program or code, which, when executed on a computer, causes the computer to perform the method in any possible implementation of the first or second aspect described above.

[0096] In a tenth aspect, a chip is provided, comprising at least one processor coupled to a memory for storing a computer program, the processor for calling and running the computer program from the memory, such that a device having the chip system mounted performs the method in any possible implementation of the first or second aspect described above.

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

[0098] Ninthly, a computer program product is provided, the computer program product comprising: computer program code, which, when executed by a device, causes the device to perform the method in any possible implementation of the first or second aspect described above. Attached Figure Description

[0099] Figure 1 This is a schematic diagram of a communication system applicable to an embodiment of this application.

[0100] Figure 2 This is a schematic diagram of another network architecture applicable to the embodiments of this application.

[0101] Figure 3 This is another network architecture diagram used in the embodiments of this application.

[0102] Figure 4 This is a schematic diagram of a GOP structure applicable to an embodiment of this application.

[0103] Figure 5 This is a schematic diagram of a protocol stack provided in an embodiment of this application.

[0104] Figure 6 This is a schematic diagram illustrating the relationship between PDUs and SDUs of various protocol layers provided in an embodiment of this application.

[0105] Figure 7 This is a schematic diagram of a PDCP PDU provided in an embodiment of this application.

[0106] Figure 8 This is a schematic diagram of a COUNT provided in an embodiment of this application.

[0107] Figure 9This is a schematic block diagram of a communication method provided in an embodiment of this application.

[0108] Figure 10 This is a schematic diagram of a packet loss scenario provided in an embodiment of this application.

[0109] Figure 11 This is a schematic block diagram of another communication method provided in the embodiments of this application.

[0110] Figure 12 This is a schematic block diagram of another communication method provided in the embodiments of this application.

[0111] Figure 13 This is a schematic block diagram of a communication device provided in an embodiment of this application.

[0112] Figure 14 This is a schematic block diagram of another communication device provided in the embodiments of this application.

[0113] Figure 15 This is a schematic block diagram of another communication device provided in the embodiments of this application. Detailed Implementation

[0114] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0115] The technical solutions of this application embodiment can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) system, 5th Generation (5G) system or New Radio (NR) system, 6th Generation (6G) system or future communication systems, etc.

[0116] The terminal device involved in this application embodiment is a device with wireless transceiver capabilities. It can be a fixed device or a mobile device, and can refer to user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user equipment. The terminal device can also be a cellular phone, cordless phone, Session Initiation Protocol (SIP) phone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA), handheld device with wireless communication capabilities, computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in a 5G network, or terminal device in a future evolved Public Land Mobile Network (PLMN), etc. The terminal device can also be a handheld device (e.g., mobile phone), wearable device, vehicle-mounted device, or a wireless device (e.g., communication module, modem, or chip system, etc.) built into the above devices. Terminal devices are used to connect people, things, and machines, and can be widely used in various scenarios, including but not limited to the following: cellular communication, device-to-device (D2D) communication, vehicle-to-everything (V2X) communication, machine-to-machine / machine-type communications (M2M / MTC) communication, Internet of Things (IoT), virtual reality (VR), augmented reality (AR), industrial control, self-driving, remote medical care, smart grid, smart furniture, smart office, smart wearables, smart transportation, smart city, drones, robots, and other scenarios. This application's embodiments do not limit these applications.

[0117] The network device in this application embodiment can be a device for communicating with a terminal device. This network device can be a base station (BTS) in a Global System for Mobile communication (GSM) or Code Division Multiple Access (CDMA) system, a base station (NodeB, NB) in a Wideband Code Division Multiple Access (WCDMA) system, an evolved NodeB (eNB or eNodeB) in an LTE system, a radio controller in a Cloud Radio Access Network (CRAN) scenario, or a relay station, access point, vehicle-mounted device, wearable device, or a network device in a future 5G network or a future evolved PLMN network. For example, the network device can include access network equipment and / or core network equipment. The access network equipment is a device with wireless transceiver capabilities used to communicate with the terminal device. Access network equipment includes, but is not limited to, base stations (BTS, Node B, eNodeB / eNB, or gNodeB / gNB), transmission reception points (TRPs), 3GPP-evolved base stations, access nodes, wireless relay nodes, and wireless backhaul nodes in the aforementioned communication systems. The base stations can be macro base stations, micro base stations, pico base stations, small cells, relay stations, etc. Multiple base stations can support networks using the same access technology mentioned above, or networks using different access technologies mentioned above. A base station can include one or more co-located or non-co-located transmission and reception points. Network equipment can also be a radio controller, centralized unit (CU), and / or distributed unit (DU) in a cloud radio access network (CRAN) scenario. Network equipment can also be a server, wearable device, or vehicle-mounted equipment, etc. For example, network equipment in V2X technology can be a roadside unit (RSU). This application does not specifically limit this.

[0118] In this embodiment, the terminal device or network device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Furthermore, this embodiment does not specifically limit the specific structure of the execution entity of the method provided in this embodiment, as long as it can communicate according to the method provided in this embodiment by running a program that records the code of the method provided in this embodiment. For example, the execution entity of the method provided in this embodiment can be a terminal device or a network device, or a functional module, chip, or circuit in the terminal device or network device that can call and execute a program.

[0119] The technical solution of this application will be further described in detail below with reference to the accompanying drawings.

[0120] Figure 1 This is a schematic diagram of a communication system applicable to an embodiment of this application. For example... Figure 1 As shown, terminal device 130 can access a wireless network to obtain services from an external network (e.g., the Internet) or communicate with other devices, such as other terminal devices. This wireless network includes a radio access network (RAN) device 110 and / or a core network (CN) device 120. The RAN device 110 connects terminal device 130 to the wireless network, and the CN device 120 manages the terminal device and provides a gateway for communication with the external network.

[0121] It should be understood that Figure 1 The number of devices in the communication system shown is for illustrative purposes only. This application embodiment is not limited to this. In actual applications, the communication system may include more terminal devices 130, more RAN devices 110, and other devices.

[0122] It should also be understood that the technical solutions in the embodiments of this application also apply when terminal device 130 communicates with other terminal devices (e.g., terminal device 130').

[0123] Figure 2This is a schematic diagram of yet another network architecture to which embodiments of this application apply. For example... Figure 2 As shown, the network architecture includes CN (Network Address Translation) equipment, RAN (Radio Address Translation) equipment, and terminal equipment. The RAN equipment includes baseband and radio frequency (RF) devices. The baseband device can be implemented by a single node or multiple nodes. The RF device can be implemented independently from the baseband device, integrated into the baseband device, or partially integrated with the baseband device. For example, in an LTE communication system, the RAN equipment (eNB) includes baseband and RF devices. The RF device can be deployed remotely relative to the baseband device; for example, a remote radio unit (RRU) is a remote radio unit deployed relative to the BBU.

[0124] Communication between RAN devices and terminal devices follows a certain protocol layer structure. For example, the control plane protocol layer structure may include the functions of protocol layers such as radio resource control (RRC), packet data convergence protocol (PDCP), radio link control (RLC), media access control (MAC), and physical layer. The user plane protocol layer structure may include the functions of protocol layers such as PDCP, RLC, MAC, and physical layer. In one possible implementation, a service data adaptation protocol (SDAP) layer may also be included above the PDCP layer.

[0125] RAN equipment can implement protocol layer functions such as RRC, PDCP, RLC, and MAC by a single node, or by multiple nodes. For example, in one evolution architecture, RAN equipment may include CUs (Control Units) and DUs (Distributed Units), with multiple DUs centrally controlled by a single CU. Figure 2 As shown, CU and DU can be divided according to the protocol layer of the wireless network. For example, the functions of the PDCP layer and above are set in the CU, and the functions of the protocol layers below PDCP, such as the RLC layer and MAC layer, are set in the DU.

[0126] This layered protocol division is merely an example; it can also be applied to other protocol layers. For instance, at the RLC layer, functions of the RLC layer and above could be placed in the CU, while functions of lower-level protocol layers could be placed in the DU. Alternatively, it could be done within a specific protocol layer, for example, placing some functions of the RLC layer and functions of higher-level protocol layers in the CU, while placing the remaining functions of the RLC layer and functions of lower-level protocol layers in the DU. Furthermore, it can be divided 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.

[0127] Furthermore, the radio frequency device can be integrated independently, not in the DU, or integrated into the DU, or partially remote and partially integrated into the DU; there are no restrictions on this.

[0128] Figure 3 This is a schematic diagram of yet another network architecture to which embodiments of this application apply. Relative to... Figure 2 The network architecture shown is Figure 3 In addition, the control plane (CP) and user plane (UP) of the CU can be separated and implemented as different entities, namely the control plane (CP) CU entity (i.e., CU-CP entity) and the user plane (UP) CU entity (i.e., CU-UP entity).

[0129] In the above network architecture, signaling generated by the CU can be sent to the terminal device via the DU, or signaling generated by the terminal device can be sent to the CU via the DU. The DU can directly encapsulate the signaling through the protocol layer and transmit it to the terminal device or CU without parsing it. In the following embodiments, if such signaling transmission between the DU and the terminal device is involved, the DU's sending or receiving of signaling includes this scenario. For example, signaling from the RRC or PDCP layer will eventually be processed into PHY layer signaling and sent to the terminal device, or it may be transformed from received PHY layer signaling. In this architecture, the RRC or PDCP layer signaling can also be considered as being sent by the DU, or being sent by the DU and the radio frequency loader.

[0130] The above Figure 1 , Figure 2 or Figure 3The illustrated network architecture is applicable to various radio access technology (RAT) communication systems, such as LTE communication systems, 5G (or new radio, NR) communication systems, or transitional systems between LTE and 5G communication systems (also known as 4.5G communication systems), and of course, future communication systems. The network architecture and service scenarios described in this application are for the purpose of more clearly illustrating the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will understand that with the evolution of communication network architectures and the emergence of new service scenarios, the technical solutions provided in this application are also applicable to similar technical problems. For example, this invention can be applied to vehicle-to-everything (V2X) scenarios.

[0131] The apparatus in the following embodiments of this application, depending on the function it performs, may be located in a terminal device or a network device. When the above CU-DU structure is adopted, the network device may be a CU node, a DU node, or a RAN device including CU nodes and DU nodes, and this application does not specifically limit this.

[0132] It should be understood that the above Figures 1 to 3 The network architecture shown is merely an example of this application and does not limit the embodiments described herein. In particular, the embodiments described herein can also be applied to other network architectures, such as not distinguishing between base stations and core networks, i.e., the base station and core network can belong to the same network device, and the communication between this network device and terminal devices; or, the communication between terminal devices, etc.

[0133] To better understand the embodiments of this application, the terms used in this application will be briefly explained before the embodiments are described. It is understood that these explanations are intended to make the embodiments of this application easier to understand and should not be regarded as limiting the scope of protection claimed by the embodiments of this application.

[0134] 1. Extended Reality (XR):

[0135] XR can refer to various environments that combine reality and virtuality, generated by computing technology and wearable devices, as well as human-computer interaction. It mainly includes virtual reality (VR), augmented reality (AR), and mixed reality (MR) technologies for virtual-real interaction. To enhance the human-virtual world interaction experience, XR services have strict requirements on bandwidth and latency.

[0136] For example, during downlink transmission, the server's encoder generates data content at a fixed frequency (e.g., 60Hz or 120Hz) and transmits it to the XR terminal via the core network and RAN. For example, during uplink transmission, the XR terminal can capture images of the current scene using its built-in camera and continuously upload them to the server at a specific frequency (e.g., 60Hz or 120Hz).

[0137] For example, XR services typically generate data periodically at a certain frame rate. For instance, the business model for downlink XR services is roughly as follows: AR / VR and cloud gaming / CG. AR / VR frame rate can be 60fps, meaning 60 frames of video are generated per second, approximately one frame every 16.66ms. AR / VR frame rate can also be 120fps, meaning 120 frames of video are generated per second, approximately one frame every 8.33ms. CG frame rate can be either 60fps or 120fps, meaning either 60 frames of video are generated per second or 120 frames per second. For example, the latency requirements for XR services might be 10ms, 30ms, etc.

[0138] Optionally, in actual transmission systems, jitter can occur due to data encoding delays, network transmission delays, and other factors. For example, jitter can be considered to follow a truncated Gaussian distribution, with the truncation range approximately in the range of [-4, 4] ms.

[0139] For example, in XR video services, images can be encoded using GOP encoding and / or slice encoding. For example, with slice encoding, a video frame may contain one Islice and one or more Pslices. For example, with GOP encoding, a GOP may contain one I-frame, or a GOP may contain one I-frame and one or more P-frames. Optionally, a GOP may also include B-frames. Exemplarily, an I-frame is an intra-coded frame (also called an intra-frame coded frame, key frame, important frame, etc.), and it serves as a reference frame for P-frames and / or B-frames, possessing independent encoding and decoding capabilities. Exemplarily, a P-frame is a forward-predictive frame (also called a forward-predictive coded frame, forward reference frame, dependent frame, non-key frame, etc.). Decoding a P-frame requires referencing the nearest preceding I-frame or P-frame; a P-frame can be a reference frame for subsequent P-frames and / or B-frames. For example, a B-frame is a bi-directional interpolated prediction frame, also known as a dependent frame or non-key frame. Decoding a B-frame requires reference to the nearest preceding I-frame or P-frame, as well as the nearest following P-frame. For example, an I-frame represents a complete image, while a P-frame records changes relative to the I-frame. Without an I-frame, a P-frame cannot be decoded, therefore, I-frames have higher transmission priority than P-frames. If an I-frame fails to transmit (e.g., it fails to transmit successfully even after meeting its latency requirements), subsequent video frames that depend on that I-frame (e.g., P-frames) will not be correctly decoded at the receiving end. Figure 4 This is a schematic diagram of the structure of the GOP provided in an embodiment of this application. For example... Figure 4 As shown, a GOP sequence (e.g., GOP#1 or GOP#2) includes one I-frame and multiple P-frames.

[0140] For example, a data burst can also be called a data burst, which is a set of PDUs generated and sent by the application in a short period of time.

[0141] For example, a PDU set may include one or more PDUs carrying the payload of one unit of information generated at the application level (e.g., A PDU Set is composed of one or more PDUs carrying the payload of one unit of information generated at the application level (e.g., an eframe or video slice for XRM Services, as used in TR 26.926

[27] )). For example, a PDU set may contain a frame or a slice.

[0142] For example, in some implementations, the application layer needs all PDUs in a PDU set to use the corresponding information unit; or, the application layer needs all PDUs in the PDU set to obtain (decode) or use the corresponding information unit. For example, in other implementations, the application layer can still recover all or part of the information unit when some PDUs are missing.

[0143] Optionally, a data burst may include at least one PDU set.

[0144] For example, data burst 1 may be associated with one or more data bursts that depend on data burst 1. If data burst 1 is discarded, the one or more data bursts may not be decoded. Similarly, PDU set 1 may be associated with one or more PDU sets that depend on PDU set 1. If PDU set 1 is discarded, the one or more PDU sets may not be decoded.

[0145] 2. New Radio (NR) Protocol Architecture:

[0146] The NR protocol architecture involved in the embodiments of this application can be divided into a user plane protocol stack and a control plane protocol stack. The following will combine... Figure 5 Describe the two protocol stacks mentioned above in detail. Figure 5 The description is based on the interaction between terminal devices and base stations. Figure 5 (a) shows the user plane protocol stack. Figure 5 (b) shows the control plane protocol stack.

[0147] User plane protocol stack: The suite of protocols used for user data transmission. For example... Figure 5 As shown in a), the user plane protocol stack can include five layers: PHY layer, MAC layer, RLC layer, PDCP layer and SDAP layer.

[0148] Control plane protocol stack architecture: This refers to the suite of protocols used for system control signaling transmission. For example... Figure 5 As shown in b), the control plane protocol stack may include the non-access-stratum (NAS), RRC, PDCP, RLC, MAC, and PHY layers.

[0149] For example, the PHY layer can handle one or more of the following physical layer functions: encoding / decoding, modulation / demodulation, multi-antenna mapping, and others. The MAC layer can handle one or more of the following: Hybrid Automatic Repeat Request (HARQ), uplink scheduling, downlink scheduling, etc. The RLC layer can handle one or more of the following: segmentation, reassembly, and retransmission processing, etc. The PDCP layer can handle one or more of the following: header compression / decompression, security (encryption, integrity protection), retransmission, and in-order delivery, etc. The RRC layer can handle one or more of the following: broadcasting, paging, RRC connection management, radio bearer control, mobility management, terminal device measurement reporting, and control functions, etc. The NAS layer can handle one or more of the following: authentication, mobility management, and security control functions, etc.

[0150] For the user plane protocol stack, the NR protocol stack has an additional SDAP layer compared to the Long Term Evolution (LTE) protocol stack. For the control plane protocol stack, the NR protocol stack is similar to the LTE protocol stack.

[0151] Optionally, in this embodiment, each layer in the protocol stack can also be replaced with an entity. For example, the PDCP layer can be replaced with a PDCP entity, and the SDAP layer can be replaced with an SDAP entity. This is explained uniformly here and will not be repeated later.

[0152] 3. PDU and SDU (service data unit):

[0153] In each protocol layer (e.g., any one or more of SDAP, RRC, PDCP, RLC, MAC), the SDU of layer N corresponds to the PDU of the layer above. In other words, the PDU of this layer is the SDU of the layer below, and the SDU of this layer is the PDU of the layer above.

[0154] The following will combine Figure 6 The relationship between PDU and SDU is described in detail using the interaction between terminal equipment and base station as an example.

[0155] Figure 6 This is a schematic diagram illustrating the relationship between PDUs and SDUs of various protocol layers provided in the embodiments of this application. For example... Figure 6 As shown, for the sending end, after the RRC layer generates the signaling to be transmitted (e.g., RRC message or RRC PDU), or after the SDAP layer obtains the data to be transmitted, it can submit it to the corresponding PDCP layer. For ease of description, we will refer to the signaling as / instead of data. For data received from the RRC layer or SDAP layer (e.g., PDCP SDU), the PDCP layer may process it or not to obtain the PDCP PDU, and then submit the PDCP PDU to the RLC layer corresponding to that PDCP layer. For data received from the PDCP layer (e.g., RLC SDU), the RLC layer may process it or not to obtain the RLC PDU, and then submit the RLC PDU to the corresponding MAC layer. For data received from the RLC layer (e.g., MAC SDU), the MAC layer may process it or not to obtain the MAC PDU, and then submit the MAC PDU to the PHY layer. The PHY layer may process it or not, and the PHY layer will perform air interface transmission.

[0156] Accordingly, for the receiving end, after the PHY layer receives data (e.g., a transport block (TB)), it will deliver the data to the MAC layer. For data received from the PHY layer (e.g., a TB or a MAC PDU), the MAC layer may process it or not to obtain a MAC SDU, and then deliver the MAC SDU to the corresponding RLC layer. For data received from the MAC layer (e.g., an RLC PDU), the RLC layer may process it or not to obtain an RLC SDU, and then deliver the RLC SDU to the corresponding PDCP layer. For data received from the RLC layer (e.g., a PDCP PDU), the PDCP layer may process it or not to obtain a PDCP SDU, and then deliver the PDCP SDU to the RRC layer or SDAP layer. For data received from the PDCP layer (e.g., an RRC message or RRC...), the PDCP layer will handle the data receiving from the PDCP layer. PDU, also known as signaling, is the data that the RRC layer decodes or ASN.1 decodes to determine the meaning of the received data. Alternatively, for data received from the PDCP layer (e.g., SDAPPDU), the SDAP layer may process it or not to obtain an SDAP SDU, and then deliver the SDAP PDU to the upper layer (e.g., the application layer).

[0157] For the transmission and reception of data (or signaling), the data may undergo corresponding encapsulation / processing at each layer, or it may be transparently transmitted. For example, for the sending end, the data received by a certain layer from the upper layer is called SDU, and the data that the layer delivers to the lower layer is called PDU. For that layer, the data received from the upper layer and the data delivered to the lower layer may be the same (e.g., transparently transmitted) or different (e.g., the data received from the upper layer is encapsulated / processed by the layer to obtain the data delivered to the lower layer). For example, the data received by the PDCP layer from the upper layer is called PDCP SDU, and the data sent by the PDCP layer to the lower layer is called PDCP PDU; the data received by the RLC layer from the upper layer is called RLC SDU, and the data sent by the RLC layer to the lower layer is called RLC PDU; the data received by the MAC layer from the upper layer is called MAC SDU, and the data sent by the MAC layer to the lower layer is called MAC PDU or TB. For example, from the receiving end's perspective, the data received by a layer from the layer below it is called a PDU, and the data that this layer passes to the layer above it is called an SDU. For this layer, the data received from the layer below and the data passed to the layer above may be the same (e.g., transparent transmission) or they may be different (e.g., the data received from the layer below is processed by this layer to obtain the data passed to the layer above). For example, the data received by the PDCP layer from the layer below it is called a PDCP PDU, and the data sent by the PDCP layer to the layer above it is called a PDCP SDU; the data received by the RLC layer from the layer below it is called an RLC PDU, and the data sent by the RLC layer to the layer above it is called an RLC SDU; the data received by the MAC layer from the layer below it is called a MAC PDU or TB, and the data sent by the MAC layer to the layer above it is called a MAC SDU.

[0158] In this application's embodiments, the terms "upper layer" and "lower layer" are relative concepts. For example, taking the RLC layer as an example, the RLC layer can be the lower layer of the RRC layer, but the RLC layer can be the upper layer of the MAC layer. As another example, the lower layer of the PDCP layer may include any one or more of the following: PHY layer, MAC layer, and RLC layer. Similarly, the upper layer of the PDCP layer may include any one or more of the following: RRC layer, SDAP layer, and application layer.

[0159] Figure 7 This is a schematic diagram of the PDCP PDU provided in an embodiment of this application. Wherein, Figure 7 (a) shows the PDCP data PDU format of the signaling radio bearer (SRB). Figure 7 (b) shows the PDCP data PDU format of a 12-bit PDCPSN. Figure 7(c) shows the PDCP data PDU format of the data radiobearer (DRB) of the 18-bit PDCP SN.

[0160] For the sending end, the PDCP layer may process the data (e.g., PDCP SDU) received from the SDAP layer or RRC layer, either by performing certain processing (e.g., header compression, encryption, integrity protection, adding a PDCP PDU header, or without processing) to obtain the PDCP PDU.

[0161] A PDCP PDU may include at least one of the following information (or fields): SN, reserved bit R, PDU type, data, and message authentication code for integrity (MAC-I).

[0162] For example, the SN field can be used to indicate the SN of a PDCP PDU or PDCP SDU. For example, the number of bits (or the number of bits occupied) in the SN field can be 12 bits or 18 bits.

[0163] For example, the R field is reserved bits.

[0164] For example, the PDU type field can be used to indicate whether the PDCP PDU is a PDCP data PDU or a PDCP control PDU. For example, the PDU type can be represented as D / C. For example, the number of bits (or, the number of bits occupied) in the PDCP type field can be 1 bit.

[0165] For example, a data field may include any one or more of the following: PDCP service data unit (SDU), compressed PDCP SDU, and uncompressed PDCP SDU. For example, data can be represented as "Data". For example, a data field can be represented as a "Data field". It should be noted that the data in the data field may or may not be encrypted. For example, any one or more of PDCP SDU, compressed PDCP SDU, and uncompressed PDCP SDU may include: user plane data, and / or control plane data. For example, the number of bits (or the number of bits occupied) in a data field may be variable. For example, the number of bits (or the number of bits occupied) in a data field may be X bytes, or 8 times Y bits, where X and / or Y can be positive integers.

[0166] For example, the MAC-I field can be used for integrity protection. For example, the number of bits (or the number of bits occupied) of the MAC-I field can be 32 bits.

[0167] For the PDCP layer, PDUs can be divided into two categories: data PDUs and control PDUs. PDCP data PDUs can carry control plane data and / or user plane data. PDCP control PDUs mainly carry one or more of the following: robust header compression (ROHC) feedback, Ethernet header compression (EHC) feedback, and PDCP status reports.

[0168] 4. PDCP operation:

[0169] COUNT can be used for one or more of the following functions: integrity protection and integrity verification, encryption and decryption, header compression and decompression, in-order delivery, and duplicate discarding. For example, the sender uses COUNT to encrypt a data packet and then sends the encrypted packet to the receiver, which needs to decrypt the packet based on the COUNT. It should be understood that, generally, one PDCP PDU is associated with one COUNT. For example, COUNT is 32 bits. Figure 8 As shown, COUNT can include two parts: a high-order hyperframe number (HFN) and a low-order PDCP sequence number (SN). The number of bits in the PDCP SN is configured by the upper layer (e.g., the RRC layer) or the network device, and the number of bits in the HFN varies with the number of bits in the PDCP SN. For example, the PDCP SN can be 12 bits or 18 bits, and correspondingly, the number of bits in the HFN can be (32 - PDCP SN size) bits, where PDCP SN size is the number of bits in the PDCP SN. For instance, if the PDCP SN size is 12 bits, then the number of bits in the HFN is (32 - 12), or 20 bits.

[0170] To avoid overhead, the PDCP PDU does not contain the complete COUNT, but only the lower bits of the COUNT (i.e., SN).

[0171] For example, RCVD_HFN: the HFN of the received PDCP data PDU calculated by the receiving PDCP entity;

[0172] For example, RCVD_SN: the PDCP SN of the received PDCP data PDU, included in the PDU header;

[0173] For example, RCVD_COUNT: The count value of the received PDCP data PDU, COUNT = [RCVD_HFN, RCVD_SN].

[0174] For example, the reordering window can include / replace with: the receive window, or the PDCP window, or the PDCP receive window.

[0175] For example, RX_DELIV is a state variable that indicates the COUNT value of the first PDCP SDU that has not been submitted to the upper layer but is still waiting. For example, the initial value of RX_DELIV can be 0. For example, RX_DELIV can also be understood as the lower bound of the reordering window.

[0176] For example, RX_NEXT indicates the COUNT value of the next PDCP SDU expected to be received. For example, the initial value of RX_NEXT is 0.

[0177] For example, RX_REORD indicates the COUNT value following the COUNT value associated with the PDCP data PDU that triggered t-Reordering.

[0178] For example, t-Reordering is used to detect the loss of PDCP data PDUs. For instance, if t-Reordering is running, it should not be started again. It is understood that a receiving PDCP entity cannot start multiple t-Reordering operations simultaneously; or, at a given time, a receiving PDCP entity will only run one t-Reordering operation. Optionally, the duration of t-Reordering is configured by the RRC layer or the network device.

[0179] 4.1 Operations after receiving a PDCP data PDU:

[0180] After receiving PDCP data PDU, the receiving end (e.g., the PDCP receiving entity) needs to calculate the HFN to obtain the COUNT. For example, the methods for the receiving end to calculate the HFN may include any one or more of the following:

[0181]

[0182] For example, the reordering window size is 2. (X-1) X represents the number of bits corresponding to SN. For example, RX_DELIV indicates the COUNT of the first PDCP SDU that has not been submitted to the upper layer but is still waiting. For example, the initial value of RX_DELIV is 0. In addition, ">=" means greater than or equal to.

[0183] The receiving end (e.g., the receiving PDCP entity) determines the COUNT of the PDCP data PDU based on the calculated PDCP HFN and PDCP SN of the PDCP data PDU, which can be called RCVD_COUNT.

[0184] For example, after the receiving end (e.g., the receiving PDCP entity) determines the COUNT of the PDCP data PDU, it may perform one or more of the following:

[0185]

[0186] If, after the above judgment, the received PDCP data PDU with COUNT = RCVD_COUNT is not discarded, the receiving end (e.g., receiving a PDCP entity) can perform one or more of the following actions:

[0187]

[0188] For example, based on the above description of operations (1) to (5), it can be seen that storing the received PDCP PDU in the buffer at the receiving end in operation (1) has an impact on the in-order delivery and / or RX_DELIV update in operation (3).

[0189] 4.2 Operations related to t-Reordering timeouts:

[0190] If t-Reordering times out, the receiver (e.g., receiving a PDCP entity) may perform one or more of the following:

[0191]

[0192] For example, after receiving a PDCP PDU, the receiving end first determines the COUNT of the PDCP PDU. Based on the COUNT, it determines whether to discard the PDCP PDU. If the receiving end determines not to discard the PDCP PDU, it further performs a reordering process based on the relationship between the PDCP PDU COUNT and state variables (e.g., RX_NEXT and / or RX_DELIV). This reordering process may include updating state variables and / or delivering data.

[0193] It should be noted that for PDCP-related content, please refer to 3GPP TS 38.323: "NR; Packet Data Convergence Protocol (PDCP) protocol specification", which will not be repeated here.

[0194] From the sender's perspective, in some situations, the sender may discard some (or a specific) data. For example, if some data has not been fully transmitted or has not been transmitted after meeting its latency requirements, the sender may discard this data, meaning the sender will not continue sending it. Another example is network congestion, where the sender may discard some data. In such cases, according to the techniques described earlier, the receiver's PDCP window (or RX_DELIV) may be stuck for a period of time due to the discarded data until the t-Reordering timeout, at which point the PDCP window will not move. This could increase the latency of the PDCP layer delivering data to the upper layers.

[0195] For example, latency requirements can consider one or more of the following: packet delay budget (PDB), PDU set delay budget (PSDB), timers associated with discarded data, etc.

[0196] If the sender discards data, the receiver may need to continue waiting for data that was discarded, for example in the following scenarios:

[0197] Scenario 1: In the event of network congestion, the sender discards data #1 (e.g., unimportant data), while data preceding data #1 (e.g., data #2, e.g., important data) is not discarded and may not have exceeded / met its latency requirements. The receiver needs to continue receiving (or wait for) the data preceding data #1.

[0198] For example, regarding communication between network devices and terminal devices, network congestion can be indicated by the network device to the terminal device, determined by the terminal device / network device itself, or reported by the terminal device to the network device; this application does not limit this. Similarly, regarding communication between terminal devices, network congestion can be indicated by the terminal device to the terminal device, determined by the terminal device itself, indicated by the network device to the terminal device, or reported by the terminal device to the network device; this application does not specifically limit this.

[0199] Scenario 2: When a data packet exceeds / reaches its latency requirement, assuming different data packets correspond to different discard timers, if data #1 exceeds the latency requirement, the sender discards data #1. Data preceding data #1 (e.g., data #2) does not exceed the latency requirement and is not discarded; the receiver needs to continue receiving (or wait for) the data preceding data #1.

[0200] For scenarios 1 and 2 above, if the sending end determines to discard data, the receiving end may need to continue receiving (or wait for) data before the data was discarded. The communication method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings. In this embodiment, a first device is used as the receiving end to illustrate the method.

[0201] Figure 9 This is a schematic flowchart illustrating a communication method provided in an embodiment of this application, such as... Figure 9 As shown:

[0202] 901, The first device receives information about discarded data.

[0203] In one possible implementation, the first device can receive information about the discarded data from the transmitter, which can be sent to the first device via a PDCP control PDU.

[0204] 902, the first device updates RX_DELIV to the first value.

[0205] The first value can be equal to the maximum COUNT+1 of the data to be discarded, or the first value can be greater than the maximum COUNT+1 of the data to be discarded.

[0206] As an example, suppose the discarded data includes data #1, data #2, and data #3, with a COUNT of 3 for data #1, a COUNT of 4 for data #2, and a COUNT of 5 for data #3. The maximum COUNT for the discarded data is 5. Therefore, the first device will update RX_DELIV to 5+1, i.e., update RX_DELIV to 6.

[0207] As another example, suppose the discarded data only includes data #1, and the COUNT of data #1 is 9. Then the first device will update RX_DELIV to 9+1, that is, update RX_DELIV to 10.

[0208] It should be understood that the first device updates RX_DELIV to the first value, and even if the first device later receives data before the first value, it will discard the data because the COUNT of the received data is less than RX_DELIV.

[0209] As an example, suppose the first device updates RX_DELIV to 8 based on information about discarded data. However, the first device did not receive data with COUNT equal to 4 before receiving this information. Later, when the first device receives data with COUNT equal to 4, it will still discard that data.

[0210] As another example, such as Figure 10 As shown, the first device is a receiver (RX), and the second device is a transmitter (TX). The first device's RX_DELIV corresponds to the COUNT (e.g., 2) of data #2, and RX_NEXT corresponds to the COUNT (e.g., 4) of data #4. The first device receives information about discarded data sent by the second device, which includes data #4 and data #5. Figure 9 In the method shown, the first device directly updates RX_DELIV to the COUNT (e.g., 6) of data #6. Subsequently, if the first device receives data #2, it will still discard that data #2.

[0211] according to Figure 9 The method shown involves the first device receiving information about discarded data and immediately updating RX_DELIV to a value greater than or equal to the largest COUNT+1 among the discarded data. For data prior to the smallest COUNT among the discarded data, even if the first device receives the corresponding data later, it will still discard that data, leading to packet loss.

[0212] In response to the above Figure 9 To address the existing technical problems, this application provides a communication method that can solve the problem of data packet loss caused by the first device updating state variables when the first device receives information about discarded data.

[0213] Figure 11 This is a flowchart illustrating another communication method provided in the embodiments of this application.

[0214] 1101, the first device determines the first information.

[0215] For example, in this application, determination may include / be replaced by: obtaining, or receiving.

[0216] Optionally, the first information may include: information about the count value of the first data.

[0217] For example, the first data includes / is: discarded data, or, data discarded by the second device.

[0218] For example, the first device is a receiver and the second device is a transmitter. Alternatively, the first device can be a terminal device and the second device can be a network device. Or, for example, the first device can be a network device and the second device can be a terminal device. Or, for example, the first device can be a terminal device and the second device can be a terminal device.

[0219] As an example, the second device may discard the first data due to network congestion, or the second device may discard the first data because the first data exceeds / reaches its latency requirement, or the second device may discard the first data for other reasons, which are not specifically limited in this application.

[0220] For example, in this application, the data may include / be replaced with: PDCP PDU, or PDCP data PDU, or PDCPSDU.

[0221] For example, the count value of the first data can also be called the first count value, or the first COUNT, or other names, which are not specifically limited in this application.

[0222] For example, the first data is associated with the first PDCP entity and / or the first RB.

[0223] Optionally, prior to step 1101, this application further includes: 1100, the first device acquires second information.

[0224] For example, in this application, obtaining may include / be replaced by receiving.

[0225] For example, the acquisition of second information by the first device may include any one or more of the following: the PDCP layer of the first device acquires the second information; or, the PDCP layer of the first device receives / acquires the second information from a lower layer (e.g., the RLC layer); or, the first device acquires the second information from the second device, and correspondingly, the second device sends the second information to the first device.

[0226] Optionally, the second information may include: information about the SN of the first data, or information about the first count value.

[0227] For example, in this application, the SN may include / be replaced with: PDCP SN. For instance, the SN of the first data may include / be replaced with: the PDCP SN of the first data.

[0228] Optionally, the first device determining the first information may include: the first device determining a first count value based on any one or more of the first data's SN, a first state variable (or the SN of the first state variable), and a first parameter.

[0229] For example, the SN of the first state variable may include / be replaced with: the SN part of the first state variable.

[0230] Optionally, the first state variable is used to indicate the count value of the first data waiting to be delivered, or the count value of the first data that has not been delivered and is waiting to be delivered, or the count value of the first data waiting to be received, or the count value of the first data that has not been received and is waiting to be received, or the count value of the first data that has not been received and is waiting to be delivered. For example, the first state variable may include RX_DELIV. For example, the first state variable is RX_DELIV. For example, RX_DELIV may indicate the COUNT of the first PDCP PDU that has not been delivered to the upper layer and is waiting. For example, RX_DELIV may be understood as the lower bound of the reordering window. For example, the reordering window may also include / be replaced by: a receive window, or a PDCP window, or a PDCP receive window.

[0231] Optionally, the first parameter can be the reordering window size (or 2). (X-1) For example, X represents the number of bits in SN.

[0232] For example, the upper layer may include: SDAP layer, or RRC layer.

[0233] For example, one or more of the first state variable, the first parameter, and X are associated with the first PDCP entity and / or the first RB.

[0234] For example, the first device determines the HFN of the first data based on one or more of the following:

[0235] (1) If the SN of the first data is less than (SN of the first state variable - the first parameter), then the HFN of the first data is equal to the HFN of the first state variable + 1.

[0236] (2) If the SN of the first data is greater than or equal to (SN of the first state variable + first parameter), or if the SN of the first data is greater than or equal to (SN of the first state variable - first parameter) and the SN of the first data is greater than or equal to (SN of the first state variable + first parameter), then the HFN of the first data is equal to the HFN of the first state variable - 1.

[0237] (3) If the SN of the first data is greater than or equal to (SN of the first state variable - the first parameter) and / or the SN of the first data is less than or equal to (SN of the first state variable + the first parameter), then the HFN of the first data is equal to the HFN of the first state variable.

[0238] For example, the first device obtains a first count value based on the SN and HFN of the first data.

[0239] For example, if the first device obtains the first count value, the first device can directly determine the first information.

[0240] Optionally, the first information may include: information about the count value of at least one data.

[0241] For example, the count value of at least one data may include / be replaced by one or more of the following: the starting count value of at least one data, the ending count value of at least one data, and the count value of one or more data contained in at least one data.

[0242] For example, at least one piece of data may include / be replaced by: a first data set. For example, at least one piece of data includes / is: discarded data, or, data discarded by a second device. For example, each piece of data in at least one piece of data is discarded data.

[0243] For example, at least one data may include a first data. Optionally, the first data may be any one of the at least one data. For example, the first data may be the data with the smallest count value among the at least one data; or, the first data may be the data with the largest count value among the at least one data; or, the first data may be the data with the middle count value among the at least one data. This application does not specifically limit this.

[0244] Optionally, the count values ​​of each data point in at least one dataset can be continuous or discontinuous, without restriction.

[0245] For example, at least one piece of data is associated with the first PDCP entity and / or the first RB.

[0246] Optionally, the second information may include: information of at least one or more of the following for at least one data: start SN, end SN, start count value, end count value, first quantity, SN of one or more included data, and count value of one or more included data.

[0247] Optionally, the starting SN of at least one data point can be: the SN of the data point with the smallest count value among at least one data point, or the SN of the data point with the smallest SN among at least one data point. It should be noted that the starting SN of at least one data point is not necessarily the SN of the data point with the smallest SN among at least one data point, or the starting SN of at least one data point is not necessarily less than or equal to the SN of each data point among at least one data point.

[0248] Optionally, the terminating SN of at least one data point can be: the SN of the data point with the largest count value among at least one data point, or the SN of the data point with the largest SN among at least one data point. It should be noted that the terminating SN of at least one data point is not necessarily the SN of the data point with the largest SN among at least one data point, or the terminating SN of at least one data point is not necessarily greater than or equal to the SN of each data point among at least one data point.

[0249] Optionally, the starting count value for at least one data point can be the count value of the data point with the smallest count value among at least one data point.

[0250] Optionally, the termination count value of at least one data point can be: the count value of the data point with the largest count value among at least one data point.

[0251] For example, "containing one or more data" can include / be replaced with: containing some or all of the data.

[0252] For example, the first quantity is the number of data in at least one data set.

[0253] As an example, at least one data item includes data #1, data #2, and data #3. The initial count of at least one data item is 3. Assuming the number of bits in the SN is 12, the count value of data #1 is 4095, and the HFN and SN of data #1 are 0 and 4095 respectively; the count value of data #2 is 4096, and the HFN and SN of data #1 are 1 and 0 respectively; the count value of data #3 is 4097, and the HFN and SN of data #3 are 1 and 1 respectively. Therefore, the initial count value of at least one data item is 4095, the final count value is 4097, the initial SN of at least one data item is 1, and the final SN is 0.

[0254] As an example, at least one data item includes data #1, data #2, and data #3. The initial count of at least one data item is 3. Assuming the count values ​​of data #1, data #2, and data #3 are 6, 8, and 9 respectively, the initial count value of at least one data item is 6, and the final count value is 9. For example, assuming the serial numbers (SNs) of data #1, data #2, and data #3 are 1, 2, and 3 respectively, the initial SN of at least one data item is 1, and the final SN is 3.

[0255] In one possible implementation, after the first device acquires the second information, the first device can determine the count value of at least one data.

[0256] Optionally, the first device determining the first information may include: the first device determining the starting count value of at least one data based on any one or more of the following: the starting SN of at least one data, the first state variable (or the SN of the first state variable), and the first parameter.

[0257] Optionally, the first device determining the first information may include: the first device determining the termination count value of at least one data based on any one or more of the termination SN of at least one data, a first state variable (or the SN of the first state variable), and a first parameter.

[0258] Optionally, the first device determining the first information may include: the first device determining the count value of one or more data contained in at least one data based on any one or more of the SN of one or more data contained in at least one data, a first state variable (or the SN of the first state variable), and a first parameter.

[0259] As another example, assuming the first device acquires a starting SN and a first quantity of at least one data, the first device can determine the starting count value of at least one data based on any one or more of the starting SN, a first state variable (or the SN of the first state variable), and a first parameter. And based on the starting count value and the first quantity of at least one data, the first device can determine the count value (e.g., the termination count value) of any one or more data (or, other parts or all of the data) within the at least one data.

[0260] For example, at least one data includes data #1, data #2, and data #3. The first quantity of at least one data is 3. Assume that the first device obtains the initial SN (e.g., 4095) and the first quantity (e.g., 3) of at least one data. Assume that the first device determines the initial count value of at least one data to be 4095 based on any one or more of the initial SN (e.g., 4095), the first state variable (or the SN of the first state variable), and the first parameter. Then, the first device determines the count values ​​of other data (e.g., the other two data) to be 4096 (e.g., 4095+1) and 4097 (e.g., 4095+2, or 4096+1) based on the initial count value (e.g., 4095) and the first quantity (e.g., 3).

[0261] 1102, the first device updates the state variable based on the first count value or the count value of at least one data or the count value of one or more data among at least one data.

[0262] For example, after the first device determines the first information, it updates the state variable based on the first count value or the count value of at least one data included in the first information or the count value of one or more data among at least one data.

[0263] For example, state variable updates can include / be replaced by: reordering, or reordering process, or PDCP window update.

[0264] Optionally, this application also includes: 1103, the first device regards the first data or at least one data as having been received by the first device.

[0265] Optionally, "considered to have been received by the first device" can include / be replaced with: considered to have been received by the first device and stored in the cache.

[0266] For example, step 1103 can be before, after, or simultaneously with step 1102; this application does not limit this.

[0267] In one possible implementation, the first device determines first information, the first device regards the first data or at least one data as having been received by the first device, and updates the state variable based on the first count value or the count value of at least one data or the count value of one or more of the at least one data.

[0268] Optionally, if the first condition is met, the first device executes step 1103.

[0269] Optionally, if the first condition is met, the first device executes step 1102.

[0270] For example, the first condition may include: the first state variable is less than or equal to the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data).

[0271] For example, any count value of at least one data may include / be replaced by: a count value of at least one data (e.g., one of them, or any one), or a count value of one of at least one data (e.g., one of them, or any one).

[0272] As an example, assume the first state variable is 3 and the count value of data #1 is 6. The first device determines that the first information includes the count value of data #1, and data #1 is discarded data. The first state variable is less than the count value of data #1: 3 < 6, so the first device considers data #1 to have been received. The first device updates the state variable based on the count value of data #1.

[0273] As an example, assume the first state variable is 3, and the count value of data #1 is 6. The first device determines that the first information includes the count value of data #1, and data #1 is discarded data. The first state variable is less than the count value of data #1: 3 < 6, and the first device updates the state variable based on the count value of data #1.

[0274] Optionally, the first device updates the state variable based on the first count value or the count value of at least one data or the count value of one or more of the at least one data, which may include / be replaced by any one or more of operation A, operation B, operation C, operation D, and operation E.

[0275] Operation A: If the first count value (or the start count value of at least one data point, or the end count value of at least one data point, or any count value of at least one data point) is greater than or equal to the second state variable, the first device updates the second state variable to: the sum of the first count value (or the start count value of at least one data point, or the end count value of at least one data point, or any count value of at least one data point) and 1. Alternatively, if the first count value (or the start count value of at least one data point, or the end count value of at least one data point, or any count value of at least one data point) is greater than or equal to the second state variable, the first device updates the second state variable to: the sum of the first count value (or the start count value of at least one data point) and a first quantity.

[0276] Optionally, a second state variable is used to indicate the count value of the next data expected to be received. For example, the second state variable may include RX_NEXT. For instance, the second state variable is RX_NEXT. For example, RX_NEXT may indicate the COUNT of the next expected PDCP PDU. For instance, RX_NEXT can be understood as the count value of the data with the largest received / considered received count value plus 1.

[0277] As an example, suppose the first count value is 6 and the second state variable is 3. If the first count value is greater than the second state variable, then the first device will update the second state variable to 6+1, that is, update the second state variable to 7.

[0278] In one possible implementation, the first information includes a count value of at least one data point. If the count values ​​of all at least one data point are greater than or equal to the second state variable, or if the initial count value of at least one data point is greater than or equal to the second state variable, the first device can update the second state variable based on the count value of each of the at least one data point. For example, if the first quantity is 3, the first device may perform 3 updates to the second state variable.

[0279] For example, suppose the second state variable is RX_NEXT, and RX_NEXT is 2. The first information determined by the first device includes a count value for at least one data. The at least one data includes data #1, data #2, and data #3. The COUNT of data #1 is 3, the COUNT of data #2 is 4, and the COUNT of data #3 is 5. The first device updates the second state variable according to the COUNT of each data. If the COUNT of data #1 is 3 and 3 > 2, RX_NEXT is updated to the COUNT + 1 of data #1, i.e., RX_NEXT is updated to 4; if the COUNT of data #2 is 4 and 4 = 4, RX_NEXT is updated to the COUNT + 1 of data #2, i.e., RX_NEXT is updated to 5; if the COUNT of data #3 is 5 and 5 = 5, RX_NEXT is updated to the COUNT + 1 of data #3, i.e., RX_NEXT is updated to 6.

[0280] In another possible implementation, the first information includes a count value of at least one data point. If the count values ​​of at least one data point are all greater than or equal to the second state variable, or if the starting count value of at least one data point is greater than or equal to the second state variable, or if the ending count value of at least one data point is greater than or equal to the second state variable, the first device can update the second state variable based on the starting or ending count value of the at least one data point. For example, if the first quantity is 3, the first device may perform one update of the second state variable.

[0281] For example, suppose the second state variable is RX_NEXT, and RX_NEXT is 2. The first information determined by the first device includes a count value for at least one data. The at least one data includes data #1, data #2, and data #3. The first quantity = 3. The COUNT of data #1 is 3, the COUNT of data #2 is 4, and the COUNT of data #3 is 5. The first device updates the second state variable based on the starting count value (e.g., 3) or the ending count value (e.g., 5) of the at least one data. For example, if the starting count value of the at least one data is 3, and 3 > 2, RX_NEXT is updated to the starting count value (COUNT of data #1) + 3, or RX_NEXT is updated to the ending count value (COUNT of data #3) + 1, i.e., RX_NEXT is updated to 6. For example, if the termination count in at least one data is 5 and 5 > 2, update RX_NEXT to the start count value (COUNT of data #1) + 3 in at least one data, or update RX_NEXT to the termination count value (COUNT of data #3) + 1 in at least one data, i.e., update RX_NEXT to 6.

[0282] Optionally, the first information may also include information about the first quantity.

[0283] For example, the first data is the data with the smallest count value among at least one data. If the first count value is greater than or equal to the second state variable, the first device can directly update the second state variable based on the first count value and the first quantity, without having to update the second state variable based on the COUNT of each data in the at least one data.

[0284] Operation B: If the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data) is equal to the first state variable, the first device submits at least one third data.

[0285] For example, submission may include / be replaced by: submission to the upper layer or the upper layer of the first device.

[0286] For example, the third data may include any one or more of the following: data received by the first device or the PDCP layer of the first device, data not submitted by the first device or the PDCP layer of the first device, and data present / stored in the receive buffer of the first device or the PDCP layer of the first device.

[0287] For example, the count value corresponding to the third data is greater than or equal to the first state variable.

[0288] For example, the count values ​​of at least one third data point can be consecutive.

[0289] For example, at least one third data may not include: discarded data, or data that is considered to have been received by the first device.

[0290] For example, the count value of at least one third data can be continuous except for discarded data (or data that is considered to have been received by the first device).

[0291] For example, at least one third data may include any one or more of the following: data that has been received but not yet submitted, with a count value greater than or equal to the first state variable; data present / stored in the receive buffer of the first device or the PDCP layer of the first device, with a count value greater than or equal to the first state variable; data continuously received (or considered received) / continuously stored (or considered stored) after the first state variable; data with a count value greater than or equal to the first state variable that is continuously received (or considered received) / orderly stored (or considered stored); data continuously received (or considered received) / continuously stored (or considered stored) starting from the first state variable. Data that is considered to be stored; data that is continuously received (or considered to be received) / continuously stored (or considered to be stored) after the first state variable, excluding discarded data (or data considered to have been received by the first device); data that is continuously received (or considered to be received) / orderly stored (or considered to be stored) with a count value greater than or equal to the first state variable, excluding discarded data (or data considered to have been received by the first device); and data that is continuously received (or considered to be received) / continuously stored (or considered to be stored) starting from the first state variable, excluding discarded data (or data considered to have been received by the first device).

[0292] It should be noted that "continuously received data" does not imply that the first device receives the data sequentially; it merely indicates that the COUNT values ​​of the received data are continuous. Optionally, continuously received data refers to data with continuous count values, and does not mean that the first device or its PDCP layer receives the data continuously.

[0293] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. If the first count value equals the first state variable, the first device can submit data #5 and data #6 to the upper layer.

[0294] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. The count of data considered to have been received by the first device is 7. If the first count value equals the first state variable, the first device can submit data #5, data #6, and data #7 to the upper layer.

[0295] In one possible implementation, after the first device submits at least one third piece of data, the first device may also update the first state variable to a fourth count value.

[0296] Operation E: If the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data) is equal to the first state variable, the first device updates the first state variable to the fourth count value.

[0297] Optionally, the fourth count value is greater than the first state variable.

[0298] Optionally, the first device may not receive the data corresponding to the fourth count value.

[0299] Optionally, the data corresponding to the fourth count value does not include / is not: discarded data, or data that is considered to have been received by the first device.

[0300] For example, the fact that the first device has not received the data corresponding to the fourth count value may include / be replaced by any one or more of the following: the data corresponding to the fourth count value has not yet been delivered to the upper layer, or the data corresponding to the fourth count value is not present / not stored in the receiving buffer of the first device or the PDCP layer of the first device.

[0301] For example, the data corresponding to the fourth count value may include / be replaced with the PDCP SDU or PDCP PDU corresponding to the fourth count value.

[0302] Optionally, the data corresponding to the fourth count value is the first unreceived data whose count value is greater than the first state variable. Alternatively, the data corresponding to the fourth count value is the first unreceived data, excluding discarded data (or data considered to have been received by the first device), whose count value is greater than the first state variable.

[0303] For example, the first unreceived data with a count value greater than the first state variable may include / be replaced by any one or more of the following: the first data with a count value greater than the first state variable that has not yet been delivered to the upper layer, or the first data with a count value greater than the first state variable that does not exist / is not stored in the receive buffer of the first device or the PDCP layer of the first device.

[0304] For example, the first unreceived data with a count value greater than the first state variable, excluding discarded data (or data considered to have been received by the first device), may include / be replaced by any one or more of the following: the first data with a count value greater than the first state variable, excluding discarded data (or data considered to have been received by the first device), that has not yet been delivered to the upper layer; the first data with a count value greater than the first state variable, excluding discarded data (or data considered to have been received by the first device), that does not exist / is not stored in the receive buffer of the first device or the PDCP layer of the first device.

[0305] For example, the first device updates the first state variable to the COUNT of the first data (e.g., PDCP SDU) that has not yet been delivered to the upper layer, and the COUNT of the first data is greater than the first state variable. For example, the first device updates the first state variable to the first hole after the first state variable. For example, the first device updates the first state variable to the first hole after the first state variable, excluding discarded data (or data considered to have been received by the first device).

[0306] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. If the first count value equals the first state variable, the first device submits data #5 and data #6 to the upper layer. The first device determines that the count of the first PDCP SDU that has not been submitted to the upper layer is 7, and the first device updates the first state variable RX_DELIV from 4 to 7.

[0307] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. The count of data considered to have been received by the first device is 7. If the first count value equals the first state variable, the first device submits data #5, data #6, and data #7 to the upper layer. The first device updates the first state variable RX_DELIV from 4 to 9.

[0308] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 7. The count of data considered to have been received by the first device is 8. If the first count value equals the first state variable, the first device submits data #5, data #6, and data #7 to the upper layer. The first device updates the first state variable RX_DELIV from 4 to 9.

[0309] Operation C: When the reordering timer is running and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer.

[0310] For example, when the reordering timer is running, it can include / replace with: if the reordering timer is running.

[0311] For example, stopping can include: stopping and resetting.

[0312] For example, a reordering timer is used to detect data loss. An example reordering timer could be t-Reordering.

[0313] For example, a third state variable is used to indicate that the count of the data that triggered the reordering timer has been incremented by 1. For instance, the third state variable could be RX_REORD.

[0314] As an example, suppose the first state variable = 4 and the third state variable = 2, which means that the first device has already received or no longer needs to receive data before the first state variable. The first device stops the reordering timer.

[0315] In one possible implementation, the first device determines that the first state variable is greater than or equal to the third state variable, and then the first device stops and resets the reordering timer.

[0316] As an example, suppose the first state variable = 4, the third state variable = 2, the first state variable is greater than the third state variable, and the first device stops the reordering timer.

[0317] Operation D: When the reordering timer is not running and the first state variable is less than the second state variable, the first device starts the reordering timer, and / or the first device updates the third state variable to the second state variable.

[0318] For example, when the reordering timer is not running, it can include / replace with: if the reordering timer is not running.

[0319] As an example, when the reordering timer is not running, suppose the first state variable = 4 and the second state variable = 7, indicating that the first device has received data with a count value of 6. The first device has not received data before the data with a count value of 6, or it can be said that there is a gap. The first device starts the reordering timer.

[0320] As another example, the first device starts a reordering timer based on the fact that the first state variable is less than the second state variable. The first device can also update the third state variable RX_REORD to RX_NEXT. For example, the first device updates RX_REORD to 7.

[0321] It should be understood that the above lists the possible operations that the first device may perform to update the state variables based on the first count value. The order of operations A, B, C, D, and E is not limited; the first device may execute one or more of operations A, B, C, D, and E without specific limitation in this application. For example, operation B may precede operation E. For example, operation E may precede operation C. For example, operation C may precede operation D. For example, operation A may precede operation D. For example, the first device may update the state variables based on the relationship between one or more of the first count value (or the start count value of at least one data point, or the end count value of at least one data point, or any count value of at least one data point), the first state variable, the second state variable, and the third state variable.

[0322] For example, at least one piece of data includes three pieces of data. The first device can perform step 1102 once, or the first device can perform step 1102 three times.

[0323] According to the above Figure 11 The method shown involves a first device determining a count value for first data and updating state variables based on that count value. Since the first data is discarded data, the first device updates the state variables based on the count value of the discarded data. This provides a method for state updates that effectively avoids the problem of the receiving end's PDCP window (or RX_DELIV) getting stuck due to discarded data, reduces the latency of the PDCP layer submitting data to the upper layer, effectively avoids data packet loss, and thus improves transmission reliability.

[0324] Figure 12 This is a schematic block diagram of another communication method provided in the embodiments of this application.

[0325] 1201, The first device determines the first information.

[0326] Optionally, the first information may include information about the count value of at least one data.

[0327] For example, at least one piece of data includes / is: discarded data, or data discarded by a second device.

[0328] For example, at least one piece of data includes one or more pieces of data.

[0329] As an example, at least one piece of data may be dropped by the second device due to network congestion, or at least one piece of data may be dropped by the second device due to timeout / meeting its latency requirements, or the second device may drop data for other reasons, which are not specifically limited in this application.

[0330] It should be understood that the content related to step 1201 can be referred to the above. Figure 11 (For example, the content related to step 1101) will not be repeated here.

[0331] Optionally, prior to step 1201, this application further includes: 1200, the first device acquires second information.

[0332] Optionally, the second information may include: information of at least one or more of the following for at least one data: start SN, end SN, start count value, end count value, first quantity, SN of one or more included data, and count value of one or more included data.

[0333] Optionally, the count values ​​for each data point in at least one dataset can be consecutive.

[0334] It should be understood that the content related to step 1200 can be referenced above. Figure 11 (For example, the content related to steps 1101 and / or 1100) will not be repeated here.

[0335] Optionally, the first device determining the first information may include: the first device determining the starting count value of at least one data based on any one or more of the following: the starting SN of at least one data, the first state variable (or the SN of the first state variable), and the first parameter.

[0336] Optionally, the first device determining the first information may include: the first device determining the termination count value of at least one data based on any one or more of the termination SN of at least one data, a first state variable (or the SN of the first state variable), and a first parameter.

[0337] Optionally, the first device determining the first information may include: the first device determining the count value of one or more data contained in at least one data based on any one or more of the SN of one or more data contained in at least one data, a first state variable (or the SN of the first state variable), and a first parameter.

[0338] Optionally, in step 1202, the first device updates the state variable based on the count value of at least one data, or the count value of one or more data among at least one data.

[0339] For example, after the first device determines the first information, it updates the state variable based on the count value of at least one data included in the first information, or the count value of one or more data in at least one data.

[0340] Optionally, if the second condition is met, the first device executes step 1202.

[0341] For example, the second condition may include: the first state variable is equal to (or greater than or equal to) the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data).

[0342] For example, satisfying the second condition may include / replace: when the first state variable is equal to (or greater than or equal to) the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data), or until the first state variable is equal to (or greater than or equal to) the first count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data).

[0343] Optionally, the first count value is the count value of the first data. For example, the first data is the data with the smallest count value among at least one data. For example, the first count value is the starting count value of at least one data.

[0344] As an example, assume the first state variable is 3, and at least one piece of data includes data #1 and data #2, where the count value of data #1 is 3 and the count value of data #2 is 4. The first device determines that the first information includes the count values ​​of data #1 and data #2, and that data #1 and data #2 are discarded data. The first state variable is equal to the count value of data #1: 3 = 3. The first device updates the state variable based on the count values ​​of data #1 and / or data #2.

[0345] Optionally, the second data first device updates the state variable based on the count value of at least one data, or the count value of one or more of the at least one data, which may include / be replaced by any one or more of operation A', operation B', operation C', and operation D'.

[0346] Operation A': The first device submits at least one data whose received count value is greater than or equal to the second count value plus 1.

[0347] Optionally, the second count value is the count value of the second data. For example, the second data is the data with the largest count value among at least one data. For example, the second count value is the termination count value of at least one data.

[0348] For example, the first device submits at least one piece of data whose received count value is greater than or equal to the second count value plus 1, which may include any one or more of the following: data received by the first device or the PDCP layer of the first device, data not submitted by the first device or the PDCP layer of the first device, and data present / stored in the receive buffer of the first device or the PDCP layer of the first device.

[0349] For example, the count values ​​of at least one data that has been received and whose count value is greater than or equal to the second count value plus 1 can be consecutive.

[0350] For example, the first device submitting at least one piece of data whose received count value is greater than or equal to the second count value plus 1 may include / be replaced by: the first device submitting at least one piece of fourth data whose received count value is greater than or equal to the second count value plus 1.

[0351] For example, the fourth data may include any one or more of the following: data received by the first device or the PDCP layer of the first device, data not submitted by the first device or the PDCP layer of the first device, and data present / stored in the receive buffer of the first device or the PDCP layer of the first device.

[0352] For example, the count value corresponding to the fourth data is greater than or equal to the second count value plus 1.

[0353] For example, the count value of at least one fourth data point can be consecutive.

[0354] For example, at least one fourth data may include any one or more of the following: data that has been received but not submitted and has a count value greater than or equal to the second count value plus 1; data that exists / stores in the receive buffer of the first device or the PDCP layer of the first device and has a count value greater than or equal to the second count value plus 1; data that is continuously received / continuously stored after the second count value plus 1; data that is continuously received / in sequenced with a count value greater than or equal to the second count value plus 1; data that is continuously received / continuously stored starting from the second count value plus 1.

[0355] It should be noted that "continuously received data" does not imply that the first device receives the data sequentially; it merely indicates that the COUNT values ​​of the received data are continuous. Optionally, continuously received data refers to data with continuous count values, and does not mean that the first device or its PDCP layer receives the data continuously.

[0356] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. If the first count value equals the first state variable, the first device can submit data #5 and data #6 to the upper layer.

[0357] It should be understood that the above operation A' and the above Figure 11 The operation B in step 1102 is similar; please refer to the above for details. Figure 11To avoid redundancy, examples will not be provided here.

[0358] In one possible implementation, after the first device submits at least one piece of data in which the received count value is greater than or equal to the second count value plus 1, the first device may also update the first state variable to the third count value.

[0359] Operation B': The first device updates the first state variable to the third count value.

[0360] Optionally, the third count value is greater than the first state variable.

[0361] Optionally, the third count value is greater than the second count value.

[0362] Optionally, the first device may not receive the data corresponding to the third count value.

[0363] Optionally, the data corresponding to the third count value does not include / is not: discarded data.

[0364] For example, the fact that the first device has not received the data corresponding to the third count value may include / be replaced by any one or more of the following: the data corresponding to the third count value has not yet been delivered to the upper layer, or the data corresponding to the third count value does not exist / is not stored in the receive buffer of the first device or the PDCP layer of the first device.

[0365] For example, the data corresponding to the third count value may include / be replaced with the PDCP SDU or PDCP PDU corresponding to the third count value.

[0366] Optionally, the data corresponding to the third count value is the first unreceived data whose count value is greater than the first state variable (or the second count value). Alternatively, the data corresponding to the third count value is the first unreceived data, excluding discarded data, whose count value is greater than the first state variable (or the second count value).

[0367] For example, the first unreceived data whose count value is greater than the first state variable (or the second count value) may include / be replaced by any one or more of the following: the first data whose count value is greater than the first state variable (or the second count value) that has not yet been delivered to the upper layer, or the first data whose count value is greater than the first state variable (or the second count value) that does not exist / is not stored in the receive buffer of the first device or the PDCP layer of the first device.

[0368] For example, the first unreceived data, excluding discarded data, whose count value is greater than the first state variable (or the second count value) may include / be replaced by any one or more of the following: the first data, excluding discarded data, whose count value is greater than the first state variable (or the second count value) and has not yet been delivered to the upper layer; or the first data, excluding discarded data, whose count value is greater than the first state variable (or the second count value) and does not exist / is not stored in the receive buffer of the first device or the PDCP layer of the first device.

[0369] For example, the first device updates the first state variable to the COUNT of the first data (e.g., PDCP SDU) that has not yet been delivered to the upper layer, and the COUNT of the first data is greater than the first state variable (or the second count value). For example, the first device updates the first state variable to the first hole after the first state variable (or the second count value). For example, the first device updates the first state variable to the first hole after the first state variable (or the second count value), excluding discarded data.

[0370] As an example, assume the first state variable = 4, and the data received and stored by the first device includes data #5, data #6, and data #7. The count of data #5 is 5, the count of data #6 is 6, and the count of data #7 is 8. If the first count value equals the first state variable, the first device submits data #5 and data #6 to the upper layer. The first device determines that the count of the first PDCP SDU that has not been submitted to the upper layer is 7, and the first device updates the first state variable RX_DELIV from 4 to 7.

[0371] It should be understood that the above operation B' is related to the above... Figure 11 The operation E in step 1102 is similar; please refer to the above for details. Figure 11 To avoid redundancy, examples will not be provided here.

[0372] Operation C': When the reordering timer is running and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer.

[0373] Operation D': When the reordering timer is not running and the first state variable is less than the second state variable, the first device starts the reordering timer, and / or the first device updates the third state variable to the second state variable.

[0374] It should be understood that the above operations C' and D' are related to... Figure 11 Operations C and D in step 1102 shown are similar; please refer to [link / reference] for details. Figure 11 To avoid redundancy, the examples in the text will not be repeated here.

[0375] It should be understood that the above examples provide specific examples of how the first device can update state variables when the second condition is met. The operations A', B', C', and D' are not limited in their sequential relationship; the first device can execute one or more of operations A', B', C', and D', and this application does not impose specific limitations in this regard. For example, operation A' precedes operation B'. For example, operation B' precedes operation C'. For example, operation C' precedes operation D'.

[0376] It should be understood that after step 1201, the method may further include:

[0377] Optionally, this application may also include: 1203, the first device updates the second state variable to the second count value plus 1.

[0378] For example, if the second count value (or the start count value of at least one data or the end count value of at least one data or any count value of at least one data) is greater than or equal to the second state variable, the first device executes step 1203.

[0379] As an example, assume the second state variable is RX_NEXT, and RX_NEXT is 3. The first device determines the count value of at least one data included in the first information. The at least one data includes data #1, data #2, and data #3. The COUNT of data #1 is 3, the COUNT of data #2 is 4, and the COUNT of data #3 is 5. The second count value of at least one data is 5, and 5 > 3, so the first device updates RX_NEXT to the COUNT + 1 of data #3, that is, RX_NEXT is updated to 6.

[0380] It should be understood that the above Figure 12 The steps 1203 and 1202 shown are not logically distinct, meaning that this application does not limit the order of steps 1203 and 1202.

[0381] For example, step 1203 can be performed before step 1202, or step 1203 can be performed after step 1202, or step 1203 can be performed simultaneously with step 1202.

[0382] It should also be understood that step 1203 is not limited to the condition that the second condition is met, and the first device may also perform step 1203. This application does not make any specific limitation on this.

[0383] Optionally, only one of steps 1202 and 1203 may be performed, or both may be performed; this application does not limit this. For example, the first device may perform only step 1202, only step 1203, or both steps 1202 and 1203 may be performed.

[0384] Optionally, once the first device determines the first information and the third condition is met, the first device may ignore the first information.

[0385] For example, the third condition may include a first state variable being greater than a second count value (or the start count value of at least one data point, or the end count value of at least one data point, or any count value of at least one data point).

[0386] For example, the first device may ignore the first information, which may include / be replaced by: the first device may ignore the second information, and the first device may not perform step 1202 and / or step 1203.

[0387] For example, when the first device determines first information, which includes a count value of at least one data, and the first device determines that a second count value is less than a first state variable, the first device ignores the first information.

[0388] In one possible implementation, after the first device determines the first information, it determines that the third condition is not met. In this case, the first device does not need to execute (or does not execute) the above steps 1202 and 1203, and the first device can simply ignore the first information.

[0389] In one possible implementation, after the first device determines the first information, it determines that the third condition is met, and then the first device may / may execute the above steps 1202 and / or 1203.

[0390] according to Figure 12 The method shown allows the first device to update its state variables when the second condition is met. This provides a state update method that effectively avoids the problem of the receiver's PDCP window (or RX_DELIV) getting stuck due to dropped data, reduces the latency of the PDCP layer submitting data to the upper layer, effectively avoids data packet loss, and thus improves transmission reliability.

[0391] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0392] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, 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, "a plurality of" means two or more.

[0393] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0394] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.

[0395] It should be understood that in this application, "at least one (item)" means one or more. "More than one" means two or more. "At least two (items)" means two or three or more. "And / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b and / or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple. Both "...when" and "if" indicate that a corresponding action will be taken under certain objective circumstances. They are not time limits, nor do they require a judgment action to be taken when the action is taken, nor do they imply any other limitations.

[0396] It should be understood that existing technologies may change as technical solutions evolve, and the technical solutions provided in this application are not limited to the existing technologies provided.

[0397] It should be noted that different embodiments or some steps (e.g., any one or more steps) in different embodiments of this application can be combined with each other to form new embodiments. It should also be noted that the scope of this application is not limited to including optional steps in a certain embodiment, mandatory steps in a certain embodiment, or both optional and mandatory steps in a certain embodiment.

[0398] It should be noted that, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions between different embodiments are consistent and can be referenced in each other.

[0399] It should be noted that the order of the steps in the embodiments of this application is not limited by this application.

[0400] It should be noted that the order in which different conditions are judged in the embodiments of this application is not limited by this application.

[0401] It should be noted that the terms "after" and "time" in this application do not strictly limit the specific point in time.

[0402] It should be noted that the nouns and terms used in this application are merely examples and may be other names, which are not limited in this application.

[0403] The above text combined Figures 9 to 12 The communication method embodiments of this application are described in detail below, and will be combined with... Figure 13 and Figure 15 This application describes in detail the communication device-side embodiments. It should be understood that the descriptions of the device embodiments correspond to the descriptions of the method embodiments; therefore, any parts not described in detail can be found in the preceding method embodiments.

[0404] Figure 13 This is a schematic block diagram of the communication device 1300 provided in an embodiment of this application. Figure 13 As shown, the device 1300 may include a transceiver unit 1310 and a processing unit 1320. The transceiver unit 1310 can communicate with the outside world, and the processing unit 1320 is used for data processing. The transceiver unit 1310 may also be referred to as a communication interface or transceiver unit.

[0405] In one possible design, the device 1300 can implement the steps or processes corresponding to those performed by the first device in the above method embodiments, wherein the processing unit 1320 is used to perform processing-related operations of the first device in the above method embodiments, and the transceiver unit 1310 is used to perform transceiver-related operations of the first device in the above method embodiments.

[0406] It should be understood that the device 1300 here is embodied in the form of a functional unit. The term "unit" here can refer to an application-specific integrated circuit (ASIC), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor, etc.) and memory for executing one or more software or firmware programs, integrated logic circuitry, and / or other suitable components supporting the described functions. In an alternative example, those skilled in the art will understand that the device 1300 may specifically be the transmitting end in the above embodiments, and may be used to execute the various processes and / or steps corresponding to the transmitting end in the above method embodiments; or, the device 1300 may specifically be the receiving end in the above embodiments, and may be used to execute the various processes and / or steps corresponding to the receiving end in the above method embodiments. To avoid repetition, further details are omitted here.

[0407] The devices 1300 in each of the above-described schemes have the function of implementing the corresponding steps performed by the transmitting end in the above-described methods, or the devices 1300 in each of the above-described schemes have the function of implementing the corresponding steps performed by the receiving end in the above-described methods. The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions; for example, the transceiver unit can be replaced by a transceiver (e.g., the transmitting unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can be replaced by a receiver), and other units, such as processing units, can be replaced by processors, respectively executing the transceiver operations and related processing operations in each method embodiment.

[0408] Furthermore, the aforementioned transceiver unit can also be a transceiver circuit (e.g., it may include a receiving circuit and a transmitting circuit), and the processing unit can be a processing circuit. In embodiments of this application, Figure 13 The device mentioned can be the receiving end or transmitting end in the foregoing embodiments, or it can be a chip or a chip system, such as a system on a chip (SoC). The transceiver unit can be an input / output circuit or a communication interface. The processing unit is a processor, microprocessor, or integrated circuit integrated on the chip. No limitations are imposed here.

[0409] Figure 14 This is a schematic block diagram of the communication device 2000 provided in an embodiment of this application. Figure 14 As shown, the device 2000 includes a processor 2010 and a transceiver 2020. The processor 2010 and the transceiver 2020 communicate with each other through an internal connection path. The processor 2010 is used to execute instructions to control the transceiver 2020 to transmit and / or receive signals.

[0410] Optionally, the device 2000 may further include a memory 2030, which communicates with the processor 2010 and the transceiver 2020 via an internal connection path. The memory 2030 is used to store instructions, and the processor 2010 can execute the instructions stored in the memory 2030.

[0411] In one possible implementation, the apparatus 2000 is used to implement the various processes and steps corresponding to the first apparatus in the above method embodiments.

[0412] It should be understood that the device 2000 can specifically be the transmitting end or receiving end in the above embodiments, or it can be a chip or chip system. Correspondingly, the transceiver 2020 can be the transceiver circuit of the chip, which is not limited here. Specifically, the device 2000 can be used to execute the various steps and / or processes corresponding to the transmitting end or receiving end in the above method embodiments.

[0413] Optionally, the memory 2030 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 2010 may be used to execute instructions stored in the memory, and when the processor 2010 executes instructions stored in the memory, the processor 2010 is used to perform the various steps and / or processes of the method embodiments corresponding to the sending end or receiving end described above.

[0414] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or 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 omitted here.

[0415] It should be noted that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The processor in the embodiments of this application can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located 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; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.

[0416] 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.

[0417] Figure 15 This is a schematic block diagram of the chip system 3000 provided in an embodiment of this application. Figure 15 As shown, the chip system 3000 (or processing system) includes logic circuitry 3010 and input / output interface 3020.

[0418] The logic circuit 3010 can be a processing circuit in the chip system 3000. The logic circuit 3010 can be coupled to a memory unit, calling instructions from the memory unit, enabling the chip system 3000 to implement the methods and functions of the embodiments of this application. The input / output interface 3020 can be an input / output circuit in the chip system 3000, outputting processed information from the chip system 3000, or inputting data or signaling information to be processed into the chip system 3000 for processing.

[0419] As one approach, the chip system 3000 is used to implement the operations performed by the first device in the various method embodiments described above.

[0420] For example, logic circuit 3010 is used to implement the processing-related operations performed by the first device in the above method embodiment, such as... Figure 11 The first device in the illustrated embodiment performs processing-related operations; the input / output interface 3020 is used to implement the sending and / or receiving-related operations performed by the first device in the above method embodiment, such as... Figure 11 The first device in the illustrated embodiment performs transmission and / or reception-related operations.

[0421] This application also provides a computer-readable storage medium storing computer instructions for implementing the methods executed by a terminal device or a network device in the above-described method embodiments.

[0422] This application also provides a computer program product comprising instructions that, when executed by a computer, implement the methods performed by a terminal device or network device in the above-described method embodiments.

[0423] This application also provides a communication system, which includes the terminal device and network device described in the above embodiments.

[0424] The explanations and beneficial effects of the relevant contents in any of the devices provided above can be found in the corresponding method embodiments provided above, and will not be repeated here.

[0425] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0426] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0427] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0428] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0429] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0430] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or other device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.

[0431] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication method, characterized in that: include: The first device determines first information, wherein the first information includes information of a count value of first data, and the first data is discarded data; The first device updates a state variable according to a first count value, where the first count value is a count value of the first data.

2. The method according to claim 1, characterized in that: The first data is deemed to have been received by the first device.

3. The method according to claim 2, characterized in that If a first condition is met, the first data is deemed to have been received by the first device. The first condition includes that a first state variable is less than or equal to the first count value, and the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

4. The method according to any one of claims 1 to 3, characterized in that The first information includes a count value of at least one data, the at least one data includes the first data, and each data in the at least one data is discarded data.

5. The method according to any one of claims 2 to 4, characterized in that The first data is considered to have been received by the first device and stored in a cache.

6. The method according to any one of claims 1 to 5, characterized in that The first information also includes information of a first quantity, where the first quantity is used to indicate the number of the discarded data.

7. The method according to any one of claims 1 to 6, characterized in that The first device updates a state variable according to the first count value, including: If the first count value is greater than or equal to a second state variable, the first device updates the second state variable to: the sum of the first count value and the first quantity, or the first device updates the second state variable to: the sum of the first count value and 1; and / or, If the first count value is equal to the first state variable, the first device submits at least one third data, the third data includes data received by the first device and stored in the cache, and the count value corresponding to the third data is greater than or equal to the first state variable, and / or, If the first count value is equal to the first state variable, the first device updates the first state variable to a fourth count value, the fourth count value being greater than the first state variable, The first state variable is used to indicate the count value of the first data that the first device is waiting to deliver, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the first number is used to indicate the number of discarded data.

8. The method according to any one of claims 1 to 7, characterized in that The first device updates the state variable according to the first count value, and further includes: If the reordering timer is running, and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer; and / or, If the reordering timer is not running, and the first state variable is less than the second state variable, the first device starts the reordering timer, Among them, the first state variable is used to indicate the count value of the first data that the first device is waiting to deliver, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the third state variable is used to indicate the count value of the data that triggers the reordering timer plus 1.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The first device obtains the serial number SN of the first data or the first count value.

10. The method according to claim 9, characterized in that In a case where the first device obtains a sequence number SN of the first data, the method further includes: The first device determines the first count value according to a sequence number SN of the first data and a first state variable, where the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

11. The method according to any one of claims 4 to 10, characterized in that In the case where the first information includes a count value of the at least one data, the method further includes: The first device obtains any one or more of the following information of the at least one data: The starting sequence number SN, the ending sequence number SN, the starting count value, the ending count value, the first quantity, The first number is the number of discarded data in the at least one data.

12. The method according to claim 11, characterized in that The method further comprises: The first device determines a starting count value of the at least one data according to the starting sequence number SN and the first state variable; and / or, The first device determines a count value of at least one of the at least one data according to the starting count value of the at least one data and the first number, The first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

13. A communication method, characterized in that: include: The first device determines first information, wherein the first information includes a count value of at least one data, each data of the at least one data is discarded data; When the second condition is met, the first device performs any one or more of the following: The first device delivers at least one data having a received count value greater than or equal to the second count value plus 1; The first device updates the first state variable to a third count value, the third count value being greater than the second count value; If the reordering timer is running, and the first state variable is greater than or equal to the third state variable, the first device stops the reordering timer; If the reordering timer is not running, and the first state variable is less than the second state variable, the first device starts the reordering timer, Among them, the second condition is: the first state variable is equal to the first count value, the first count value is the count value of the first data, the first data is the data with the smallest count value among the at least one data, the second count value is the count value of the second data, the second data is the data with the largest count value among the at least one data, the first state variable is used to indicate the count value of the first data that the first device is waiting to submit, the second state variable is used to indicate the count value of the next data that the first device expects to receive, and the third state variable is used to indicate the count value of the data that triggers the reordering timer plus 1.

14. The method according to claim 13, characterized in that In the case where the second state variable is less than the second count value, the method further comprises: The first device updates the second state variable to: the second count value plus 1.

15. The method according to claim 13 or 14, characterized in that After the first device determines the first information, the method further includes: If the third condition is met, the first device ignores the first information; The third condition includes: the first state variable is greater than the second count value.

16. The method according to any one of claims 13 to 15, characterized in that The method further comprises: The first device obtains any one or more of the following information of the at least one data: The starting sequence number SN, the ending sequence number SN, the starting count value, the ending count value, the first quantity, The first number is the number of discarded data in the at least one data.

17. The method according to any one of claims 13 to 16, characterized in that In a case where the first device obtains a sequence number SN of the first data, the method further includes: The first device determines the first count value according to a sequence number SN of the first data and a first state variable, where the first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

18. The method according to claim 16 or 17, characterized in that The method further comprises: The first device determines a starting count value of the at least one data according to the starting sequence number SN and the first state variable; and / or, The first device determines a termination count value of the at least one data according to the termination sequence number SN and the first state variable; and / or, The first device determines a termination count value of the at least one data according to the first count value and the first number, The first state variable is used to indicate the count value of the first data that the first device is waiting to submit.

19. A communication device, characterized in that: The method comprises a module or a unit for executing the method according to any one of claims 1 to 12, or comprises a module or a unit for executing the method according to any one of claims 13 to 18.

20. A communication device, characterized in that: The device includes a processor, the processor is coupled to a memory, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 12, or the processor executes the method according to any one of claims 13 to 18.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 12, or the computer is caused to execute the method according to any one of claims 13 to 18.

Citation Information

Cited By

  • Communication method and communication apparatus

    EP4693981A1

  • Communication method and communication apparatus

    WO2024208024A1