Communication method based on bidirectional cross-layer timer cooperation, electronic device, storage medium and program product

By establishing a bidirectional timer coordination mechanism between the RLC layer and the PDCP layer, the problems of latency and memory waste caused by independent configuration of timers in the RLC and PDCP layers are solved, thereby reducing end-to-end transmission latency and achieving efficient utilization of storage resources.

CN122846372BActive Publication Date: 2026-11-24SHANGHAI CYGNUS SEMICON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611300482.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-24
Estimated Expiration
2046-08-26

AI Technical Summary

Technical Problem

In fifth-generation wireless mobile communication systems, the independent configuration and state isolation of timers in the RLC and PDCP layers lead to wasted latency and memory. Especially in UM mode, the lack of state synchronization mechanism between the RLC and PDCP layers results in prolonged end-to-end transmission latency and ineffective use of receiver storage resources.

Method used

By establishing a bidirectional timer timeout coordination mechanism between the RLC layer and the PDCP layer, when the timer started by either protocol layer due to missing data packets times out, it actively sends a boundary data packet identifier to the other protocol layer, enabling the other protocol layer to accurately locate the position of the next data packet to be processed and advance the processing flow in advance.

Benefits of technology

Significantly reduces end-to-end transmission latency, ensures a good user experience for real-time services, reduces unnecessary memory usage at the receiving end, and improves the utilization rate of storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122846372B_ABST
    Figure CN122846372B_ABST
Patent Text Reader

Abstract

This application provides a bidirectional cross-layer timer coordination communication method, electronic device, storage medium, and program product, relating to the field of communication technology. The method operates in unacknowledged mode at the Radio Link Control (RLC) layer. By establishing a bidirectional timer timeout coordination mechanism between the RLC layer and the Packet Data Convergence Protocol (PDCP) layer, when a timer started by either protocol layer expires due to missing data packets, it proactively sends a boundary data packet identifier to the other protocol layer. This allows the other protocol layer to accurately locate the position of the next data packet to be processed and advance the processing flow. On one hand, when the RLC layer timer expires, the PDCP layer can deliver buffered data deemed invalid by the RLC sliding window in advance, eliminating cross-layer invalid waiting delays and ensuring a better user experience for real-time services. On the other hand, when the PDCP layer timer expires, the RLC layer can release buffered data deemed invalid by the PDCP in advance, reducing invalid memory usage at the receiving end and improving storage device resource utilization.
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 bidirectional cross-layer timer coordination communication method, electronic device, storage medium, and program product. Background Technology

[0002] In fifth-generation wireless mobile communication systems, the processing efficiency of the user plane protocol stack at the receiving end directly affects the quality of service. For RadioLink Control (RLC) entities operating in Unacknowledged Mode (UM), after data packets are received from the air interface, they need to undergo segmentation and reassembly processing at the RLC layer before the complete data packets are delivered to the Packet Data Convergence Protocol (PDCP) layer. The PDCP layer is responsible for reordering the received data packets and delivering them to the upper-layer applications in ascending order. UM mode is typically used for real-time services that are sensitive to latency but can tolerate a small amount of packet loss, such as interactive application scenarios like 5G VoNR, real-time video conferencing, and cloud gaming. Unlike Acknowledged Mode (AM), UM mode does not provide an Automatic Repeat reQuest (ARQ) mechanism; lost data packets will not be retransmitted by the network. Therefore, the processing efficiency of the receiving end's protocol stack directly determines the end-to-end latency experience of the service and also places higher demands on the memory management efficiency of the receiving end.

[0003] In accordance with the protocol stack layering design principles established by the 3rd Generation Partnership Project (3GPP), the RLC layer and the PDCP layer are two adjacent sub-layers in the user plane protocol stack, each undertaking independent functional responsibilities. The two layers interact with each other through a standardized Service Access Point (SAP). In the UM mode protocol stack architecture defined by existing standard protocols, the RLC layer and the PDCP layer each maintain independent state variables and timers, and the state information between the two layers is isolated from each other.

[0004] However, since the RLC reassembly timer and the PDCP reordering timer are configured and managed independently by two layers, their timeout durations usually differ, and there is a lack of state synchronization mechanism between layers. This leads to two types of resource waste problems: First, latency waste. When the RLC layer's reassembly timer times out first, and the RLC layer has determined that the missing data segments within the receive window are unreachable and advances the receive state, the PDCP layer, unable to perceive the state change of the RLC layer, continues to wait for those data packets that have been determined to be unreachable by the lower layer until its own reordering timer times out before advancing the delivery window, resulting in an unnecessary increase in end-to-end transmission latency. Second, memory waste. When the PDCP layer's reordering timer times out first, and the PDCP layer has determined that some missing data packets are unreachable and advances the delivery window, the RLC layer, unable to perceive the state change of the PDCP layer, continues to cache those data segments that have been determined to be invalid by the upper layer until its own reassembly timer times out before releasing the corresponding memory, resulting in the invalid occupation of the receiver's storage resources. Summary of the Invention

[0005] The purpose of this application is to provide a bidirectional cross-layer timer coordination communication method, electronic device, storage medium, and program product to improve the problems of latency and memory waste caused by the independent configuration of timers in the RLC layer and PDCP layer and the isolation of inter-layer states in the prior art.

[0006] In a first aspect, embodiments of this application provide a bidirectional cross-layer timer coordination communication method, the method comprising: When the timer started by the first protocol layer due to the detection of missing data packets times out, the first protocol layer determines the boundary data packet identifier from the received data packets; The first protocol layer sends the boundary data packet identifier to the second protocol layer, wherein the first protocol layer is one of the RLC layer and the PDCP layer, and the second protocol layer is the other, and the RLC layer operates in unacknowledged mode; The second protocol layer determines the location of the next data packet to be processed based on the boundary data packet identifier, and continues to perform corresponding data processing based on the data packet location.

[0007] In the above implementation, a bidirectional timer timeout coordination mechanism is established between the RLC layer and the PDCP layer. When a timer started by either protocol layer due to missing data packets times out, it proactively sends a boundary data packet identifier to the other protocol layer. This allows the other protocol layer to accurately locate the position of the next data packet to be processed and advance the processing flow in advance. On the one hand, when the RLC layer timer times out, the PDCP layer can deliver cached data that has been determined to be invalid by the RLC sliding window in advance, eliminating cross-layer invalid waiting delays, significantly reducing end-to-end transmission latency, and ensuring the user experience of real-time services. On the other hand, when the PDCP layer timer times out, the RLC layer can release cached data that has been determined to be invalid by the PDCP in advance, reducing the invalid occupation of the receiving end memory and improving the utilization rate of storage device resources.

[0008] Secondly, embodiments of this application provide a bidirectional cross-layer timer coordination communication device, the device comprising: A boundary determination module is used to determine the boundary data packet identifier from the received data packets when the timer started by the first protocol layer due to the detection of missing data packets times out. A data sending module is used for the first protocol layer to send the boundary data packet identifier to the second protocol layer, wherein the first protocol layer is one of the RLC layer and the PDCP layer, and the second protocol layer is the other, and the RLC layer operates in unacknowledged mode; The data processing module is used by the second protocol layer to determine the position of the next data packet to be processed based on the boundary data packet identifier, and to continue to perform corresponding data processing based on the data packet position.

[0009] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method provided in the first aspect above are performed.

[0010] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.

[0011] Fifthly, embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, perform the steps of the method provided in the first aspect above.

[0012] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing embodiments of this application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0013] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 A flowchart illustrating a bidirectional cross-layer timer collaborative communication method provided in an embodiment of this application; Figure 2 A structural block diagram of a bidirectional cross-layer timer collaborative communication device provided in this application embodiment; Figure 3 This is a schematic diagram of the structure of an electronic device for performing a bidirectional cross-layer timer coordination communication method, as provided in an embodiment of this application. Detailed Implementation

[0015] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0016] It should be noted that the terms "system" and "network" in the embodiments of this invention can be used interchangeably. "Multiple" refers to two or more; therefore, in the embodiments of this invention, "multiple" can also be understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / ", unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.

[0017] It should also be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.

[0018] This application provides a bidirectional cross-layer timer coordination communication method. In scenarios where the RLC layer operates in unacknowledged mode, this method establishes a bidirectional timer timeout coordination mechanism between the RLC layer and the PDCP layer. When a timer started by either protocol layer due to missing data packets times out, it proactively sends a boundary data packet identifier to the other protocol layer. This allows the other protocol layer to accurately locate the next data packet to be processed and advance the processing flow. On one hand, when the RLC layer timer times out, the PDCP layer can deliver cached data deemed invalid by the RLC sliding window in advance, eliminating cross-layer invalid waiting delays, significantly reducing end-to-end transmission latency, and ensuring a better user experience for real-time services. On the other hand, when the PDCP layer timer times out, the RLC layer can release cached data deemed invalid by the PDCP in advance, reducing invalid memory usage at the receiving end and improving storage device resource utilization.

[0019] This communication method is applied to the receiving end of a wireless communication system, which can be a user terminal or a network-side base station. It aims to solve the problems of wasted latency and memory caused by state isolation between protocol layers.

[0020] The first protocol layer and the second protocol layer mentioned in this scheme refer to a pair of adjacent protocol layers that work together. The first protocol layer is one of the RLC layer and the PDCP layer, and the second protocol layer is the other. When the first protocol layer is the RLC layer, the second protocol layer is the PDCP layer; when the first protocol layer is the PDCP layer, the second protocol layer is the RLC layer.

[0021] The RLC layer operates in Unacknowledged Mode (UM). In UM mode, the user plane protocol stack does not provide an ARQ (Automatic Repeat Request) retransmission mechanism for the RLC layer. This means that any lost data packets detected at the RLC layer will not trigger a retransmission at the peer end. Data reliability assurance is entirely delegated to the HARQ (Hybrid Automatic Repeat Request) mechanism at the MAC layer, and HARQ itself strictly follows timing scheduling rules. In NR (New Radio) systems, downlink HARQ uses an asynchronous adaptive approach, while uplink HARQ is primarily synchronous. Regardless of the approach, each HARQ process is bound to a specific slot or subframe, and retransmissions occur at predefined timing offsets. This strict timing constraint ensures that air interface data segments arrive in a highly ordered manner at the receiving end. New transmissions and retransmissions are arranged sequentially according to the pre-configured scheduling timing. When the MAC layer delivers data blocks to the RLC layer in the HARQ process, the order is almost consistent with the transmission order initiated by the sending end. Data segments scheduled earlier are usually first, and data segments scheduled later are last. Significant out-of-order phenomena that span long time windows are extremely rare.

[0022] Based on the timing determinism of HARQ, when the reassembly timer expires, the final status (successful reception or failed abandonment) of all missing segments within the RLC layer's receive window has already been decided by the MAC layer. The RLC layer can accurately determine which data packets have been abandoned by the lower layer without additional waiting, thus enabling it to safely report the PDCP COUNT corresponding to the last complete and valid RLC SN as the boundary to the PDCP layer.

[0023] To facilitate understanding of the processing procedures of the RLC and PDCP layers, we will first briefly introduce the variables maintained by the RLC and PDCP layers, which will not be elaborated upon in subsequent implementation examples.

[0024] Several variables in the RLC layer: RX_Next_Reassembly, RX_Timer_Trigger, RX_Next_Highest.

[0025] RX_Next_Reassembly: Represents the reassembly boundary and records the first RLC SN waiting to be reassembled. That is, when the RLC receives the first data packet with a non-contiguous RLC SN, it starts the reassembly timer, and the recorded RX_Next_Reassembly is the next SN of the contiguous RLC SN. For example, if the RLC has already received data packets with SNs 0-9, and the next received data packet has an RLC SN of 20, then starting the reassembly timer will record RX_Next_Reassembly as 10.

[0026] RX_Timer_Trigger: Used to record the instantaneous value of the right boundary of the receive window when the reassembly timer starts. For example, if the RLC has already received data packets with SNs of 0-9, and the next received data packet has an RLC SN of 20, then when the reassembly timer starts, RX_Timer_Trigger will be recorded as 21.

[0027] RX_Next_Highest: This value records the next highest RLC SN received in the current receive window and defines the right boundary of the receive window. Whenever the RLC receives a new data packet, if the RLC SN of that data packet is greater than or equal to the current RX_Next_Highest, then RX_Next_Highest will be updated to that SN plus 1. If sequence number rollback is considered, it needs to be incremented modulowise.

[0028] The receive window for the RLC layer is defined as [RX_Next_Highest - UM_Window_size, RX_Next_Highest], where UM_Window_size is a fixed configuration value. RX_Next_Reassembly and RX_Timer_Trigger change dynamically within this receive window.

[0029] Several variables in the PDCP layer: RX_NEXT, RX_DELIV, RX_REORD.

[0030] RX_NEXT: This indicates the next expected PDCP COUNT value that has not yet been received within the receive delivery window, and actually defines the right boundary of the current receive delivery window.

[0031] RX_DELIV: Represents the receive delivery variable, indicating the next PDCPCOUNT value expected to be delivered to the upper-layer application. It is the left boundary of the receive delivery window. All packets with a COUNT less than RX_DELIV have been delivered to the upper layer or identified as lost and are no longer involved in waiting or reordering. With each delivered packet, RX_DELIV is updated to the next PDCP COUNT value, continuing to point to the next pending delivery position.

[0032] RX_REORD: Represents the reordering anchor point recorded when the reordering timer of the PDCP layer starts, that is, the instantaneous value of the right boundary of the receive delivery window when the reordering timer starts.

[0033] The effective receive window of the PDCP layer is defined as [RX_DELIV, RX_NEXT]. RX_DELIV moves forward continuously as data is delivered, and RX_NEXT moves forward synchronously as the window slides. When packet loss occurs, when the reordering timer is started, RX_REORD is assigned the current RX_NEXT value. At this time, RX_DELIV remains at the lost position, and RX_NEXT continues to receive new data and slides forward, forming a stepped state of [RX_DELIV, RX_REORD, RX_NEXT].

[0034] Please refer to Figure 1 , Figure 1 A flowchart of a bidirectional cross-layer timer coordination communication method provided in this application embodiment is included, the method comprising the following steps: Step S110: When the timer started by the first protocol layer due to the detection of missing data packets times out, the first protocol layer determines the boundary data packet identifier from the received data packets.

[0035] Among them, the boundary packet identifier refers to a boundary indication information determined by the first protocol layer during its timeout processing based on the status of the currently received data packets. It is used to characterize the location of the last valid data packet that the first protocol layer can currently confirm has been received.

[0036] The first protocol layer maintains a reordering timer (PDCP layer) or a reassembly timer (RLC layer) for waiting for lost data packets. When this timer expires, it indicates that the first protocol layer has failed to receive the expected missing data packet within a predetermined time period, triggering a timeout handling procedure. In the timeout handling procedure, the first protocol layer iterates through the received and buffered data packets within a set interval, determining a boundary data packet identifier based on the packet reception status. This determination process follows these principles: the first protocol layer does not directly use the lost data packet identifier as the boundary data packet identifier, but rather determines the first sequence number corresponding to the last data packet encountered during the traversal that has been confirmed as fully received and associated with a valid second sequence number. If the first protocol layer can determine a valid boundary data packet identifier from the currently received data packets, it executes subsequent transmission steps; if it cannot determine a valid identifier, it terminates the current coordination process and does not send any information to the second protocol layer to avoid misleading the second protocol layer's status update.

[0037] Step S120: The first protocol layer sends the boundary packet identifier to the second protocol layer.

[0038] The first protocol layer is one of the RLC layer and the PDCP layer, and the second protocol layer is the other.

[0039] Specifically, after successfully determining the boundary data packet identifier in the above steps, the first protocol layer sends the boundary data packet identifier to the second protocol layer through the inter-layer interface. The inter-layer interface is a predefined internal communication interface used to enable information exchange between different protocol layers. This sending action is triggered only in timeout scenarios. If the first protocol layer naturally stops waiting due to receiving new data normally, the sending of the boundary data packet identifier will not be executed. This ensures that under normal data reception scenarios, the interaction process between protocol layers is completely consistent with the standard protocol, without introducing any additional overhead.

[0040] Step S130: The second protocol layer determines the location of the next data packet to be processed based on the boundary data packet identifier, and continues to perform the corresponding data processing according to the data packet location.

[0041] The "next expected data packet position" mentioned here can refer to the position of the data packet that the second protocol layer determines to begin processing after updating its internally maintained state variables based on the received boundary data packet identifier. This position is used to guide the subsequent data delivery or buffer management operations of the second protocol layer.

[0042] Specifically, after receiving the boundary packet identifier sent by the first protocol layer, the second protocol layer parses the identifier and obtains the boundary indication information. Based on this, it determines the next processing position where its internally maintained state variables should be updated. The position of the next expected data packet is used to indicate from which data packet the second protocol layer should continue its data processing operations.

[0043] Through the above process, when the timer started by either the first or second protocol layer expires due to missing data packets, that protocol layer can proactively report its currently determined boundary data packet identifier to the other protocol layer. This allows the other protocol layer to quickly update its processing status based on the identifier, accurately locate the next data packet to be processed, and advance the processing flow in advance, without relying solely on its own timer to time out for state jumps. On the one hand, when the RLC layer timer expires, the PDCP layer can deliver cached data that has been deemed invalid by the RLC sliding window in advance, eliminating cross-layer invalid waiting delays, significantly reducing end-to-end transmission latency, and ensuring the user experience of real-time services. On the other hand, when the PDCP layer timer expires, the RLC layer can release cached data that has been deemed invalid by PDCP in advance, reducing invalid memory occupation at the receiving end and improving the utilization rate of storage device resources.

[0044] In some implementations, the first protocol layer is the PDCP layer and the second protocol layer is the RLC layer. In this case, the method addresses the problem of the RLC layer continuing to cache invalid data because it is unaware that the PDCP layer has updated its delivery window. In some other implementations, the first protocol layer is the RLC layer and the second protocol layer is the PDCP layer. In this case, the method addresses the problem of the PDCP layer continuing to wait ineffectively because it is unaware that the RLC layer has given up waiting for lost data. Both implementations follow the above-described implementation process; the difference lies in the specific generation method of the boundary packet identifier and the update rules of the state variables. These specific details will be described in detail in subsequent embodiments.

[0045] The following describes the process of constructing the mapping table involved in the communication between the RLC layer and the PDCP layer, including: each time the RLC layer sends a data packet to the PDCP layer, it carries the second sequence number corresponding to the data packet. If the data packet does not have a corresponding second sequence number, it carries a preset invalid value. After receiving the data packet, the PDCP layer determines the corresponding first sequence number and writes the correspondence between the second sequence number and the first sequence number into the corresponding mapping entry in the mapping table with the first sequence number as the index.

[0046] The mapping table is a shared data structure established between the PDCP and RLC layers. It stores the correspondence between the second sequence number of RLC layer data packets and the first sequence number of PDCP layer data packets, allowing either protocol layer to look up the corresponding sequence number on the other side when it knows the sequence number on one side. The table is maintained using the first sequence number as a unique index, with each first sequence number uniquely corresponding to one mapping entry. Because the second sequence number uses a finite number of bits for cyclic numbering, it suffers from periodic reuse and therefore cannot be used as a unique index. This table can be stored in a shared memory area at the receiving end (user terminal or network-side base station) for access by both protocol layers.

[0047] The second sequence number refers to the sequence number of the RLC layer data packet, denoted as RLC SN, which is used to identify the order of the RLC layer data packets in air interface transmission.

[0048] The first sequence number refers to the count of PDCP layer data packets, denoted as PDCP COUNT. It is used to identify the order of PDCP layer data packets in the service data stream and includes two parts: sequence number (SN) and superframe number (HFN).

[0049] The default invalid value is a special preset value used to indicate that the second sequence number is invalid or does not exist. This default invalid value does not point to any actual data packet and can be written as FFFF (hexadecimal).

[0050] A mapping entry is a record in the mapping table. This record is indexed by a first sequence number and contains a second sequence number and its corresponding first sequence number, forming a one-to-one association.

[0051] The mapping table construction process occurs synchronously during the data packet delivery from the RLC layer to the PDCP layer, and is constructed and maintained by the PDCP layer. Specifically, this construction process includes two stages: the delivery operation at the RLC layer and the write operation at the PDCP layer.

[0052] In the first phase, after each data packet is received and reassembled (if the SN is a preset invalid value, it is delivered directly), the RLC layer delivers the data packet to the PDCP layer, carrying the second sequence number corresponding to the data packet in the delivery signaling. The value of this second sequence number comes from the sequence number field carried in the RLC layer data segment received over the air interface. For data packets with a valid SN, before passing the reassembled data packet to the PDCP layer, the RLC layer first extracts the second sequence number from the corresponding RLC layer data segment, and then sends the second sequence number along with the data packet to the PDCP layer through the inter-layer interface.

[0053] It should be noted that some data packets received by the RLC layer may not carry a second sequence number. For example, when an RLC layer entity is configured to transmit data without a sequence number, or when certain special types of RLC layer service data units do not contain a sequence number field, the data packet will not have a corresponding second sequence number during air interface transmission. In this case, the RLC layer cannot extract a valid second sequence number. Therefore, when the data packet is delivered to the PDCP layer, the aforementioned preset invalid value is sent as the second sequence number to the PDCP layer. This preset invalid value is used to indicate to the PDCP layer that the current data packet does not have a valid second sequence number, thereby avoiding misjudgment during subsequent queries.

[0054] In the second phase, after receiving the data packet delivered by the RLC layer and its sequence number information through the inter-layer interface, the PDCP layer first parses the packet's packet aggregation protocol header to determine the first sequence number (i.e., PDCP COUNT) corresponding to the data packet, and then obtains the second sequence number carried in the delivery signaling. After obtaining the first and second sequence numbers, the PDCP layer adds a mapping entry for the first and second sequence numbers to the mapping table, using the first sequence number as an index. Using the first sequence number as an index can be understood as writing the mapping entries in ascending order of the first sequence number. If the second sequence number is a valid value (not a preset invalid value), the PDCP layer directly adds a mapping entry for both sequence numbers to the mapping table; if the second sequence number is a preset invalid value, the PDCP layer also adds a mapping entry, but because the second sequence number in this entry is a preset invalid value, it will not participate in the matching of valid sequence numbers in subsequent queries.

[0055] Through the construction of the above mapping relationship, the second sequence number of each RLC layer data packet in the mapping relationship table is associated with the first sequence number of the corresponding PDCP layer data packet. Since the table uses the first sequence number as a unique index, when the PDCP layer queries with the first sequence number, it can directly locate the corresponding mapping entry and obtain the second sequence number; when the RLC layer needs to query with the second sequence number, it can complete the query by traversing and matching within the current receiving window. Both query directions can be completed on the same mapping relationship table, thus achieving bidirectional sharing.

[0056] It should be noted that when a data packet delivered by the RLC layer does not have a valid second sequence number (i.e., carries a preset invalid value), since this preset invalid value is not unique (multiple data packets without sequence numbers may all carry the same preset invalid value), there will be multiple mapping entries in the mapping table with the preset invalid second sequence number. These entries will not participate in the determination of the valid second sequence number in subsequent boundary queries; that is, entries corresponding to preset invalid values ​​will not be included in the traversal scope or as valid query results. This approach ensures the accuracy of the mapping table and prevents invalid entries from misleading the protocol layer's state update decisions.

[0057] To better understand the construction process of the mapping table above, a specific example will be used below.

[0058] Suppose the RLC layer sequentially delivers three data packets to the PDCP layer. The first data packet carries a second sequence number of 0 in the air interface, and the RLC layer delivers the packet with this second sequence number 0. After receiving the data packet, the PDCP layer parses its packet aggregation protocol header, determines that the first sequence number is 0, and then adds a mapping entry for the second sequence number 0 in the mapping table, using the first sequence number 0 as an index. At this point, the correspondence between (0, 0) in this mapping entry is complete.

[0059] The second data packet itself does not carry a second sequence number in the air interface; it carries a preset invalid value FFFF when delivered by the RLC layer. After receiving it, the PDCP layer parses and determines that the first sequence number is 10, and then adds a mapping entry for the second sequence number FFFF to the mapping table using the first sequence number 10 as an index. At this point, a new mapping entry (10, FFFF) is added to the mapping table.

[0060] The third data packet carries a second sequence number of 5 in the air interface. When the RLC layer delivers the data packet, it carries the second sequence number 5. The PDCP layer parses and determines that the first sequence number is 50. Using the first sequence number 50 as an index, it adds a mapping entry for the second sequence number 5 in the mapping table, ultimately forming a mapping entry of (50, 5).

[0061] After the above processing, the mapping table contains three mapping entries: (0, 0), (10, FFFF), and (50, 5), all indexed by the first sequence number. Although the entry with the second sequence number FFFF has been created, it is not used as a valid entry in subsequent queries (because FFFF represents invalid). When the RLC layer or PDCP layer needs to query the mapping relationship, it only performs matching and traversal operations on entries with a valid second sequence number.

[0062] Using the above construction method, the mapping table is gradually established by the PDCP layer during the normal data delivery process from the RLC layer to the PDCP layer, without the need for additional signaling overhead or independent configuration procedures. This table is dynamically maintained using the first sequence number as an index as data packets are received by the PDCP layer. When a data packet is released or the buffer is cleared, the corresponding mapping entry can be synchronously marked as invalid or deleted to ensure that the number of mapping entries in the mapping table remains consistent with the current buffer state at the receiving end.

[0063] The communication methods between the two protocol layers are described below.

[0064] 1. The case where the first protocol layer is the PDCP layer and the second protocol layer is the RLC layer.

[0065] In a specific implementation where the first protocol layer is the PDCP layer and the second protocol layer is the RLC layer, the aforementioned bidirectional timer timeout coordination mechanism is specifically manifested as follows: When the reordering timer expires, the PDCP layer determines the boundary data packet identifier from the received data packets and sends it to the RLC layer, enabling the RLC layer to release invalid buffers in advance. Specifically, the boundary data packet identifier is determined as follows: The PDCP layer traverses the first sequence number within a set range in ascending order. During the traversal, it continuously records the first sequence number encountered that is associated with a valid second sequence number, using a candidate boundary identifier. An overwrite update strategy is employed; for example, if the current first sequence number is associated with a valid second sequence number in the mapping table during the traversal, the current first sequence number is updated to a candidate boundary identifier. After the traversal is completed, the final candidate boundary identifier is determined as the target first sequence number, and this target first sequence number is determined as the boundary data packet identifier. The mapping table includes the correspondence between the second sequence number of the data packet in the RLC layer and the first sequence number of the data packet in the PDCP layer. The set range is the interval formed by taking the receive-delivery boundary before the reordering timer timeout processing of the PDCP layer as the left endpoint and the receive-delivery boundary after the timeout processing as the right endpoint.

[0066] The mapping table is a shared data structure established between the PDCP layer and the RLC layer. As described in the previous embodiment, it uses the first sequence number as a unique index to store the correspondence between the first sequence number and the second sequence number, so that when any protocol layer knows the sequence number on one side, it can query the corresponding sequence number on the other side through the table.

[0067] The target first sequence number refers to the first sequence number determined by the PDCP layer after traversing the data packets within the set range, which is intended to serve as boundary indication information.

[0068] In scenarios where the PDCP layer reordering timer times out, the PDCP layer does not aimlessly traverse all buffered data packets. Instead, it precisely determines the boundary data packet identifier based on a specific defined range. This defined range is closely related to the reordering timer's processing and is specifically defined as follows: The left endpoint is the old receive / delivery boundary (denoted as RX_DELIV_old) recorded before the PDCP layer's reordering timer timeout, and the right endpoint is the new receive / delivery boundary (denoted as RX_DELIV_new) obtained after the PDCP layer completes the delivery window advancement according to the standard protocol after the reordering timer times out. This range can also be a right-closed range, such as (RX_DELIV_old, RX_DELIV_new). It should be noted that the receive / delivery variable (RX_DELIV) is a key state variable maintained internally by the PDCP layer, and its value is determined by the PDCP layer's... COUNT (first sequence number) indicates the location of the next data packet expected to be delivered to the upper-layer application. All data packets with a first sequence number less than this variable have been logically skipped (either delivered or determined to be lost). The reason for using a left-open interval is that the left endpoint RX_DELIV_old itself represents the location of a missing or invalid data packet and is not included in the traversal range, thus having no practical boundary reference significance. Of course, using a left-closed interval for traversal will not substantially affect the traversal result.

[0069] Specifically, during the process of waiting for lost data packets at the PDCP layer, the PDCP layer maintains a reordering timer. This timer is activated when a discontinuity in the first sequence number is detected, and waits for the missing data packets. When the reordering timer times out, it indicates that the PDCP layer has failed to receive the expected missing data packets within a predetermined time period, at which point the collaborative process of this embodiment is triggered.

[0070] The PDCP layer first performs the boundary packet identifier determination operation. Specifically, the PDCP layer traverses all packets within a defined range and obtains the first sequence number corresponding to each packet. During the traversal, the PDCP layer filters the received first sequence numbers according to preset rules: within this defined range, the PDCP layer traverses the packet reception status corresponding to each sequence number in ascending order of the first sequence number (PDCP COUNT). For the currently traversed sequence number, the PDCP layer first checks whether the packet has been correctly received and stored in the reordering buffer; if it is confirmed that it has been received, it further queries the mapping table to verify whether the sequence number is associated with a valid second sequence number (RLC SN). It is important to emphasize that the mapping table stores the bidirectional correspondence between the second sequence number of the RLC layer packet and the first sequence number of the PDCP layer packet, but the mapping entry is only considered valid if the RLC layer delivers the packet with a valid RLC SN (not a preset invalid value, such as FFFF); otherwise, the entry is not adopted during the boundary filtering process. During the traversal, the PDCP layer continuously uses an "overwrite update" strategy to record sequence numbers that meet the conditions. Whenever a sequence number that has been received and is associated with a valid RLC SN in the mapping table is encountered, the candidate boundary identifier is updated to the value of that sequence number, and the traversal continues. Since the traversal direction is ascending, after the entire set interval has been traversed, the candidate boundary identifier stores the target first sequence number with the largest value within that range that meets the valid mapping conditions.

[0071] If the PDCP layer fails to find any first sequence number associated with a valid second sequence number in the mapping table during the entire traversal process, it cannot determine a valid boundary packet identifier. In this case, the current coordination process is terminated, and no information is sent to the RLC layer.

[0072] The PDCP layer determines the first sequence number of the target as the boundary packet identifier for this timeout feedback, and then sends the identifier to the RLC layer through the inter-layer interface. This sending action is only triggered when the reordering timer times out; if the PDCP layer stops the timer naturally due to receiving the missing data packet normally, this sending operation is not performed.

[0073] For example, suppose that at a certain moment, the PDCP layer's receive delivery variable is stuck at the first sequence number 100 (i.e., RX_DELIV=100), but COUNT=100 has not yet arrived, while subsequent COUNT=101 and 102 have already been received. According to standard protocol behavior, when the PDCP layer detects the absence of COUNT=100, it starts a reordering timer. Within the window of this PDCP reordering timer, the PDCP layer successively receives COUNT=103 and 104, but COUNT=100 remains missing. When the reordering timer expires, the PDCP layer first records the receive delivery boundary RX_DELIV_old=100 before the timeout processing. Then, it triggers the standard timeout processing procedure, advancing the delivery window according to the standard protocol: since COUNT=101, 102, 103, and 104 have all been received, COUNT=100 is determined to be unreachable, and the delivery window jumps directly from 100 to 105 (i.e., RX_DELIV_new=105). At this point, the new boundary points to the next expected COUNT=105. Thus, the set range is determined to be (100, 105), which includes a total of four sequence numbers: COUNT=101, 102, 103, and 104.

[0074] Subsequently, the PDCP layer traverses each COUNT value within this interval in ascending order. Assume that after querying the receive buffer and mapping table, the following states are obtained: COUNT=101 has been received, and the corresponding valid RLC SN in the mapping table is 20, so the candidate boundary identifier is updated to 101; COUNT=102 has been received, but the corresponding entry in the mapping table is a preset invalid value FFFF (indicating that the data packet did not carry a valid RLC SN when delivered by the RLC layer), therefore, although this COUNT has been received, it does not meet the condition of "associating with a valid SN," and the candidate boundary identifier is not updated, with the local variable remaining at 101; COUNT=103 has been received, and the corresponding valid RLC SN in the mapping table is 22, so the candidate boundary identifier is updated to 103; COUNT=104 has been received, and the corresponding valid RLC SN in the mapping table is 25, so the candidate boundary identifier is updated to 104. After the traversal is complete, the final value of the candidate boundary identifier is 104, which is the maximum first sequence number within the set range that satisfies all conditions (received and associated with a valid RLC SN), i.e., the target first sequence number. The PDCP layer then determines COUNT=104 as the boundary packet identifier and sends it to the RLC layer through the inter-layer interface.

[0075] In this way, when the PDCP layer determines that some data no longer needs to be waited for due to timeout, it can promptly transmit this information to the RLC layer through the boundary packet identifier. This allows the RLC layer to release the buffer that was determined to be invalid by PDCP in advance without waiting for its own reassembly timer to expire, thereby effectively saving the memory resources of the receiving end.

[0076] After receiving the boundary packet identifier from the PDCP layer through the inter-layer interface at the RLC layer, the target second sequence number corresponding to the boundary packet identifier can be determined through the mapping table. Then, the validity of the target second sequence number is verified. After successful verification, the position of the next expected data packet to be processed is determined based on the target second sequence number, and the buffered data packets within the interval formed by the receive reassembly boundary as the left boundary and the target second sequence number as the right boundary are released. At the same time, the filtering boundary is determined based on the position of the next expected data packet to be processed determined by the target second sequence number, and the data sent by the subsequent network is filtered in real time.

[0077] Here, the target second sequence number refers to the corresponding RLC layer sequence number retrieved by the RLC layer through the mapping table using the received boundary data packet identifier as an index, and can be denoted as BOUNDARY_SN.

[0078] For the RLC layer, the position of the next packet to be processed refers to the position of the first RLC SN that has not yet been fully received, which is found by traversing backwards from the target second sequence number in the order of second sequence number updates. This position serves as a filtering boundary to pre-filter subsequently arriving packets. It should be noted that if RLC SN rollback is not considered, the update order can be ascending. However, if RLC SN rollback is considered, the update order can be understood as the order in which the second sequence number changes according to its finite representation length. For example, if the second sequence number representation length is 0-63, and the target second sequence number is 62, then the update order of the second sequence number would be 62, 63, 0, 1, ...

[0079] Upon receiving the target second sequence number, the RLC layer determines that all cached data within the range of RX_Next_Reassembly and the target second sequence number has been deemed invalid and can be released. All data packets with a second sequence number greater than or equal to the target second sequence number remain within the valid waiting range. Simultaneously, the RLC layer determines a filtering boundary based on the position of the next expected data packet determined by the target second sequence number. Subsequent data packets with an RLC SN to the left of this filtering boundary are considered invalid, late-arriving data and are discarded.

[0080] During implementation, after receiving the boundary packet identifier from the PDCP layer through the inter-layer interface, the RLC layer first parses it to obtain the target first sequence number indicated by the boundary packet identifier. The RLC layer then uses this target first sequence number as an index to query the mapping table, finds the second sequence number that corresponds to the target first sequence number in the mapping table, and determines this second sequence number as the target second sequence number, denoted as BOUNDARY_SN.

[0081] After obtaining the BOUNDARY_SN, the RLC layer verifies its validity. The core purpose of this verification step is to utilize the RLC layer's own window boundaries for validity checking, preventing state jumps beyond the current valid reception range due to outdated feedback, mapping anomalies, or extreme out-of-order scenarios. Specifically, after obtaining the BOUNDARY_SN from the mapping table, the RLC layer first checks if the value is a preset invalid value (e.g., FFFF). If it is invalid, it indicates an abnormal mapping table entry or that the boundary cannot correspond to a valid RLC layer data packet. In this case, the RLC layer should terminate the current coordination process and not respond to the PDCP layer's feedback to avoid subsequent operations based on invalid data. Based on this, the RLC layer further compares the BOUNDARY_SN with its currently maintained RX_Next_Reassembly and RX_Next_Highest values, verifying whether the BOUNDARY_SN is within the range [RX_Next_Reassembly, RX_Next_Highest]. This condition is set because RX_Next_Reassembly represents the next RLC SN position that the RLC layer is currently expecting to deliver in order to the PDCP layer. All sequence numbers smaller than this value are considered to have been processed or skipped. If BOUNDARY_SN is to the left of RX_Next_Reassembly, it indicates that the boundary issued by the PDCP layer points to an outdated data packet position. This feedback either comes from an earlier timer timeout event or is due to out-of-order delivery of old information overwriting the new state at the inter-layer interface. In this case, the RLC layer must ignore this feedback to ensure that the receive reassembly boundary does not roll back.

[0082] Once the above verification is passed, the BOUNDARY_SN is considered a trusted target second sequence number, and the RLC layer can then initiate the subsequent cache release and filter boundary setting process accordingly.

[0083] After successful verification, the RLC layer calculates the position of the next data packet to be processed based on the BOUNDARY_SN, which serves as the filtering boundary. The specific calculation method is as follows: the RLC layer starts with the BOUNDARY_SN and traverses the reassembly buffer in the order of the second sequence number update, checking whether the data segment corresponding to each SN has been completely received. When it encounters the first RLC SN that has not been completely received (or has not arrived at all), it stops traversing and determines the position of that SN as the position of the next data packet to be processed, i.e., the filtering boundary. This "searching for the first gap backward" method is used because the BOUNDARY_SN only represents the RLC SN corresponding to the last valid packet confirmed by the PDCP layer. After the BOUNDARY_SN, within the current receiving window, there may be several consecutive SNs that have been completely received and delivered to the PDCP layer. Although the buffers corresponding to these SNs have been released during delivery, their positions should still be included in the filtering range to avoid subsequent duplicate data with the same SN being incorrectly written into the buffer. By advancing the filtering boundary to the first gap position, it can be ensured that all SNs located to the left of this boundary (including those deemed invalid by PDCP and those that are valid but have been fully delivered) are uniformly blocked, maximizing the coverage of early filtering. It should be noted that the receive reassembly boundary (RX_Next_Reassembly) of the RLC layer itself is not updated due to this collaborative feedback; it continues to advance normally in subsequent data reception according to the standard protocol rules. The filtering boundary is an independently set early discard threshold used to intercept late-arriving data that has been deemed invalid by the PDCP layer.

[0084] After determining the filtering boundary, the RLC layer immediately performs a buffer release operation: releasing all buffered data packets within the interval defined by the receive reassembly boundary (RX_Next_Reassembly) as the left boundary and the target second sequence number (BOUNDARY_SN) as the right boundary. In this embodiment, the interval involved is usually defined as a left-closed, right-open interval (RX_Next_Reassembly, BOUNDARY_SN), that is, the interval includes the sequence number corresponding to the left endpoint but does not include the sequence number corresponding to the right endpoint. The reason for this design is that the data packet indicated by the left endpoint (the current receive reassembly boundary) may not have been fully received, but it belongs to the range that has been confirmed by the PDCP layer through timeout feedback as no longer needing to wait, so it should be included in the release scope; while the data packet corresponding to the right endpoint (target second sequence number) itself, since it is a data packet confirmed by the PDCP layer through the mapping table and associated with a valid RLC SN, it must have been fully received by the RLC layer and delivered to the PDCP layer, and the corresponding buffer has been released at the time of delivery, so it does not need to be included in the traversal scope of this release operation. BOUNDARY_SN serves only as the right boundary marker of the release interval. All data segments located to the left of this boundary that have not yet been released are cleaned up in this operation. Based on the above interval definition, when the RLC layer performs a specific release operation, it will traverse its reassembly buffer, search for all segments with second sequence numbers that are not yet assembled within this interval, as well as complete SDUs that have been assembled but not yet delivered, and return the memory resources they occupy.

[0085] For example, suppose at a certain moment, the RLC layer currently maintains RX_Next_Reassembly=10, meaning the RLC layer is currently expecting a data packet with the second sequence number 10. At the next moment, the RLC layer receives a boundary data packet identifier 104 from the PDCP layer through the inter-layer interface. After querying the mapping table, it obtains the corresponding target second sequence number as BOUNDARY_SN=25. The RLC layer traverses backwards from SN=25 to find the first incompletely received SN: assuming SN=26 and 27 have also been completely received, and SN=28 has not yet arrived, the RLC layer determines the position of the next expected data packet to be processed as SN=28, i.e., the filtering boundary = 28. According to this implementation, the RLC layer determines that the interval to be released is [10, 25), which includes all unreleased buffered data containing SNs 10, 11, 12, ..., 24. Subsequently, the RLC layer traverses the reassembled buffer area to find the data segment corresponding to the aforementioned SNs. Assuming the current cache status is as follows: SN=10 has not been fully received (only partial segments), SN=11 has been fully received and assembled (but has not yet been delivered and still occupies the cache), SN=12 is missing (no segments), SN=13 has been fully received, SN=14 has only partial segments, and data in the intervals corresponding to SN=15 to 24 is missing (no segments). The RLC layer will release all cached data (including partial segments and assembled but not delivered complete SDUs) corresponding to SN=10 to 24 and release the memory they occupy. The filter boundary (SN=28) and the SNs thereafter are still within the effective waiting range, and the data segments that arrive afterward will normally enter the reassembly process.

[0086] Through the above-mentioned interval-based release operation, the RLC layer can accurately release a large amount of cached data that has been determined by the PDCP layer to be unnecessary to wait for, based on the boundary information fed back by the PDCP layer. This significantly reduces memory usage and ensures the consistency of states between protocol layers, laying the foundation for efficient data processing in the future.

[0087] Based on the above embodiments, after the RLC layer determines the location of the next data packet to be processed, the RLC layer determines the locally maintained filtering boundary according to the location of the next data packet to be processed. If a data packet located to the left of the filtering boundary is subsequently received, the data packet is discarded.

[0088] Specifically, the RLC layer sets the position of the next packet to be processed, determined by the target's second sequence number, as a locally maintained filtering boundary (also known as a drop boundary or low watermark). This filtering boundary is established based on the following considerations: it marks a lower limit of the current protocol stack's receive window. All packets with RLC SNs to the left of this boundary have been confirmed as logically invalid by the PDCP layer through timeout feedback, and the RLC layer has already cleared all their corresponding old data segments during the buffer release operation. Based on this, during the subsequent continuous reception of air interface data segments from the MAC layer, the RLC layer extracts the SN value of each newly arrived RLC packet and compares it with the currently effective filtering boundary before writing it into the reassembly buffer. If the SN value is detected to be less than the current filtering boundary (i.e., to the left of the boundary), the RLC layer determines the packet as a "late packet." Even if the data segment successfully arrives at this time, it cannot be accepted by the upper layer because the PDCP layer's delivery window has advanced. Continuing to buffer or reassemble this packet not only does not help with data delivery but also occupies valuable buffer resources and may cause confusion in subsequent processing logic. Therefore, the RLC layer directly discards such packets, meaning it does not allocate any buffer space for them, does not write them to the reassembly queue, and does not trigger any updates to state variables. It can record a statistical message (such as incrementing the drop counter) to facilitate network performance monitoring and anomaly troubleshooting.

[0089] Through this early discard mechanism based on filtering boundaries, the RLC layer can effectively isolate the interference of invalid data outside the reorganization cache, avoiding the waste of resources caused by unnecessary cache allocation and reorganization attempts, while also reducing unnecessary processor load.

[0090] It is worth noting that this filtering boundary, after initial setting, dynamically adjusts as the RLC layer continues to receive and process data normally. When the RLC layer's receive reassembly boundary (RX_Next_Reassembly) advances sequentially due to the normal receipt of new data, and the advanced RX_Next_Reassembly exceeds the current filtering boundary, the filtering boundary is also updated synchronously to the latest RX_Next_Reassembly value, ensuring that the filtering boundary never lags behind the actual reassembly processing progress. If RX_Next_Reassembly has not yet advanced to the filtering boundary, the filtering boundary remains unchanged, continuing to play its role in intercepting invalid data in advance. Furthermore, if the RLC layer receives new cross-layer feedback again, the filtering boundary will be recalculated and updated according to the new target second sequence number.

[0091] For example, after receiving feedback from the PDCP layer and verifying its validity, the RLC layer iterates backwards from BOUNDARY_SN=25 to find the first incompletely received RLC SN. Assuming SNs 25, 26, and 27 have been completely received and delivered, and SN=28 has not yet arrived, the RLC layer determines the next expected data packet location to be processed as SN=28, i.e., the filtering boundary = 28. At this time, the RLC layer's receive reassembly boundary (RX_Next_Reassembly) remains at 10 and has not changed. The RLC layer continues to receive subsequent air interface data segments from the MAC layer. Suppose that after several milliseconds, due to data retransmission, a data segment with SN=12 arrives at the RLC layer. The RLC layer extracts the RLC SN value of this data packet as 12 and compares it with the current filtering boundary 28. Since 12 < 28, it determines that this data packet is expired data that has been skipped, and the RLC layer immediately discards the data segment without writing it into the reassembly buffer. If a subsequent data segment with RLC SN=30 arrives, since 30 ≥ 28, it is determined that the data packet is located to the right of the filtering boundary and falls within the currently valid waiting range. The RLC layer writes it normally into the reassembly cache and processes it according to the standard reassembly procedure. Through this filtering mechanism, RLC SNs such as 12, 15, 26, and 27, which might otherwise be incorrectly written to the cache due to lateness, are intercepted in advance, ensuring that the reassembly cache only retains data with RLC SN ≥ 28 that is valid for the upper layer, thus guaranteeing efficient utilization of storage resources.

[0092] The following details the process of the PDCP layer sending notification messages to the RLC layer and the data processing of the RLC layer.

[0093] When the t-Reordering timer in the PDCP layer times out, a one-way coordination process from the PDCP layer to the RLC layer is triggered. The core purpose of this process is to proactively inform the RLC layer which data has been determined by the PDCP layer to be no longer needed by using the latest status information obtained by the PDCP layer during the timeout process, thereby prompting the RLC layer to release invalid cache in advance and avoid the problem of invalid memory resource occupation.

[0094] After the PDCP layer's reordering timer times out, the PDCP layer first performs the reordering window update operation according to the standard protocol's procedure, that is, iterates through all PDCP COUNT values ​​within the current reordering window and updates the RX_DELIV variable to advance the delivery window. Before timeout processing, the PDCP layer records the current receive-delivery boundary as RX_DELIV_old, and after timeout processing, it records the updated receive-delivery boundary as RX_DELIV_new. The two constitute a left-open interval (RX_DELIV_old, RX_DELIV_new), which serves as the traversal range for subsequent cooperative feedback boundaries. Based on this standard procedure, this scheme adds a step for generating cooperative feedback information, as follows: The PDCP layer first initializes a variable locally, denoted as PDCP_FEEDBACK_COUNT, to record feedback boundaries, and sets it to a preset invalid value, such as 0xFFFF (all Fs in hexadecimal). This invalid value is used to indicate that no valid mapping relationship has been encountered, and serves as the basis for determining whether to issue feedback in subsequent processing.

[0095] Subsequently, the PDCP layer traverses each PDCP COUNT within the defined range (i.e., (RX_DELIV_old, RX_DELIV_new)) in ascending order (i.e., the order in which COUNT values ​​increase). For the currently traversed COUNT value, the PDCP layer queries the locally maintained shared mapping table to check if the COUNT is associated with a valid RLC SN. Here, "valid RLC SN" means that the SN is not a preset invalid value (such as FFFF). If the current COUNT is associated with a valid RLC SN, the PDCP layer updates PDCP_FEEDBACK_COUNT to the current COUNT value; if the current COUNT is not associated with a valid RLC SN, or the associated RLC SN is invalid, the current value of PDCP_FEEDBACK_COUNT remains unchanged, and the traversal continues to the next COUNT.

[0096] It is important to emphasize that the update strategy of PDCP_FEEDBACK_COUNT is continuous overwriting. That is, each time a valid COUNT is encountered, it is assigned to PDCP_FEEDBACK_COUNT, rather than stopping after the first one is encountered. This "take the last valid COUNT" design ensures that after the traversal is complete, PDCP_FEEDBACK_COUNT stores the maximum COUNT value associated with all valid RLC SNs corresponding to the received data in the window. The reason for choosing the maximum value rather than the minimum value is that after this value is sent to the RLC layer as a feedback boundary, the RLC layer can release all cached data for all RLC SNs to the left of this boundary, thereby maximizing the reclamation of memory resources.

[0097] After the entire configuration range has been traversed, the PDCP entity checks the value of PDCP_FEEDBACK_COUNT: if the value is still the initial invalid value (0xFFFF), it means that there is no COUNT associated with a valid RLC SN in the configuration range. At this time, the PDCP layer does not need to send any coordination information to the RLC layer, and the process ends; if the value has been updated to a valid COUNT value, the PDCP layer sends the PDCP_FEEDBACK_COUNT to the RLC layer through the inter-layer interface.

[0098] Furthermore, in some implementations, the PDCP entity can record the feedback value sent locally while sending PDCP_FEEDBACK_COUNT, to prevent abnormal behavior caused by interface transmission delays or duplicate sending. Simultaneously, if the PDCP reordering timer is stopped before its timeout due to normal reception of new data (i.e., no timeout occurs), the PDCP entity does not execute the aforementioned collaborative feedback generation process, nor does it send any feedback information, thereby ensuring no interference to the RLC layer under normal packet reception scenarios.

[0099] When the RLC layer receives the PDCP_FEEDBACK_COUNT from the PDCP layer via the inter-layer interface, it initiates its local collaborative processing flow. First, the RLC layer uses this COUNT value to query the shared mapping table to obtain its corresponding RLC SN. Since the mapping table records the bidirectional correspondence between each received RLC SN and its associated PDCP COUNT, the RLC layer can quickly and accurately find the RLC SN that matches the feedback COUNT and records this SN as BOUNDARY_SN. If the query result shows that the COUNT is not yet associated with any valid RLC SN (e.g., because the mapping table has not yet established a corresponding entry), the RLC layer can ignore this feedback or record an exception log and end the processing to prevent erroneous operations due to data inconsistency.

[0100] After successfully obtaining BOUNDARY_SN, the RLC layer first verifies its validity. Specifically, the RLC layer first checks if the value is a preset invalid value (e.g., FFFF). If it is invalid, it indicates that the mapping table entry is abnormal or the boundary cannot correspond to a valid RLC layer data packet. In this case, the RLC layer terminates the current coordination process and does not perform any subsequent operations. Otherwise, the RLC layer further compares BOUNDARY_SN with its currently maintained RX_Next_Reassembly and RX_Next_Highest to verify whether BOUNDARY_SN is within the range [RX_Next_Reassembly, RX_Next_Highest]. If BOUNDARY_SN is to the left of RX_Next_Reassembly, it indicates that the feedback points to an outdated data packet position, and the RLC layer ignores the feedback. If BOUNDARY_SN is greater than RX_Next_Highest, it indicates that the feedback jumps to a future position where no data has yet arrived, and it is also not adopted. Only after all the above verifications pass can the BOUNDARY_SN be considered a trusted target second sequence number, and the RLC layer can then initiate the subsequent cache release and filter boundary setting process.

[0101] After successful verification, the RLC layer performs the following cooperative operations: (1) Memory release operation. The RLC layer traverses its currently maintained reassembly cache area ([RX_Next_Reassembly, BOUNDARY_SN)) to find all unassembled segments and assembled but not yet delivered complete SDUs within this range. For these cached data, the RLC layer immediately releases the corresponding memory space. In specific implementations, data structures such as linked lists or red-black trees can be used to efficiently manage cached segments. During the release operation, only the node state needs to be updated and the memory pool returned, without clearing each byte individually, thereby improving processing efficiency. Through this operation, the RLC layer can promptly clear data that the PDCP layer no longer needs, avoiding long-term invalid memory occupation.

[0102] (2) Filtering Operation: The RLC layer searches backward from the second sequence number of the target to find the first incompletely received RLC SN, determines the position of the next data packet to be processed, and uses this as the filtering boundary. After receiving subsequent data packets, the RLC SN of the data packet is compared with the filtering boundary. If the RLC SN is to the left of the filtering boundary, based on the PDCP layer's timeout skipping decision and the no-retransmission characteristic of RLC UM mode, it is determined that the data segment has no value for reassembly and delivery, and is directly discarded without allocating buffer space or participating in the reassembly process. Through this operation, the RLC layer can complete the pre-filtering of invalid data before the data enters the reassembly buffer, avoiding subsequent invalid memory allocation and reassembly calculation overhead.

[0103] In some implementations, after completing the above-mentioned collaborative processing, the RLC layer can selectively reply with an acknowledgment (ACK) to the PDCP layer to inform it that the feedback has been successfully processed. This acknowledgment mechanism enhances the reliability of collaboration between the two layers, especially in scenarios with high load or large interface latency, effectively preventing the PDCP layer from repeatedly sending the same feedback due to not receiving the processing result.

[0104] The following is a specific example: The network side is set to use the conventional strategy of scheduling in ascending order of PDCP COUNT, and the receiver's RLC layer reassembly timer (t-Reassembly) is configured to 100ms, and the PDCP layer reordering timer (t-Reordering) is configured to 50ms.

[0105] The mapping relationship between RLC SN and PDCP COUNT is shown below:

[0106] 1) The RLC layer receives RLC SN0 and RLC SN5 sequentially. Upon receiving RLC SN5, it determines that SN1, SN2, SN3, and SN4 are lost and starts the reassembly timer (t-Reassembly). At the same time, the RLC layer delivers RLC SN0 and RLC SN5 to the PDCP sequentially, carrying their respective RLC SNs (0 and 5 respectively) for the PDCP layer to create a mapping relationship. At this time, RX_Timer_Trigger=6, RX_Next_Reassembly=1, and RX_Next_Highest=6 are recorded. 2) After the PDCP layer receives these two data packets from the RLC layer, it parses out that RLC SN0 corresponds to COUNT0 and RLC SN5 corresponds to COUNT50, with COUNT1-49 missing in between. It also starts a reordering timer (t-Reordering) and enters a waiting state, expecting to receive the missing COUNT value within 50ms. 3) Within the 50ms time window of the PDCP reordering timer, the RLC layer successively received the following data segments from the air interface, specifically: First, a data segment without RLC SN (i.e., SN=FFFF) is received and delivered to PDCP. PDCP resolves the segment and sets PDCP COUNT=10. Subsequently, a data segment with RLC SN=1 is received and delivered to PDCP. PDCP resolves the data and sets its PDCP COUNT=25. At this point, RX_Next_Reassembly is updated to 2. Subsequently, another data segment without RLC SN (SN=FFFF) was received and delivered to PDCP. PDCP resolved that its PDCP COUNT=35.

[0107] Subsequently, a data segment with RLC SN=6 was received and delivered to PDCP. PDCP resolved the segment and found that PDCP COUNT=51. Finally, the data segment with RLC SN=7 was received and delivered to PDCP. PDCP resolved it and found that PDCP COUNT=53. After the RLC layer reassembles the above data segments one by one, it delivers them to the PDCP layer in sequence. The RLC and PDCP will synchronously create the corresponding mapping relationship in the mapping relationship table.

[0108] At this point, the RLC layer's reassembly buffer has fully received RLC SNs 0, 1, 5, 6, and 7, but SNs 2, 3, and 4 are still missing. Therefore, the RLC reassembly timer continues to run, waiting for the 100ms timeout or the arrival of the missing data segment. It should be noted that in real-world scenarios, SNs 2, 3, and 4 may have received partial segments (e.g., only the first segment was received, and subsequent segments are missing). These partial segments also occupy reassembly buffer space and fall under the scope of subsequent coordinated release.

[0109] 4) At 50ms, the PDCP reordering timer times out. The PDCP layer has not yet received all the data between COUNT=1 and 49 (in fact, only 10, 25, and 35 have been received), thus triggering the timeout processing procedure. The PDCP layer first records the receive delivery boundary before the timeout processing as RX_DELIV_old=1 (at this time, RX_DELIV is still at 1 and has not yet advanced). Then, it performs standard timeout processing, advancing the delivery window according to the standard protocol: since COUNT=50 and 51 have been received, and COUNT=52 is missing, the delivery window advances to 52 (i.e., RX_DELIV_new=52). At this time, the new boundary points to the next expected COUNT=52. Thus, the traversal range of the cooperative feedback is determined to be the left-open interval (RX_DELIV_old, RX_DELIV_new), i.e., (1, 52). According to this scheme, after performing the standard window update, the PDCP layer starts the calculation process of the cooperative feedback boundary: PDCP initializes the local variable PDCP_FEEDBACK_COUNT to 0xFFFF (an invalid value), and then iterates through all received COUNT values ​​within the left-open interval in incrementing order of COUNT. The specific iteration process is as follows: When iterating to COUNT=10, the mapping table is checked and its associated SN=FFFF (invalid). Therefore, PDCP_FEEDBACK_COUNT is not updated and the current value 0xFFFF is kept. When iterating to COUNT=25, the mapping table is queried and it is found that its associated RLC SN=1 (valid), so PDCP_FEEDBACK_COUNT is updated to 25; When iterating to COUNT=35, the mapping table is checked and its associated SN=FFFF (invalid), so it is not updated and remains at 25. When iterating to COUNT=50, the mapping table is queried and it is found that its associated RLC SN=5 (valid), so PDCP_FEEDBACK_COUNT is updated to 50.

[0110] When iterating to COUNT=51, the mapping table is queried and its associated RLC SN=6 (valid), so PDCP_FEEDBACK_COUNT is updated to 51.

[0111] After the iteration is complete, the final value of PDCP_FEEDBACK_COUNT is 51 (a valid value, not 0xFFFF). The PDCP layer then sends this value to the RLC layer through the inter-layer interface.

[0112] 5) Upon receiving PDCP_FEEDBACK_COUNT=51 from the PDCP layer, the RLC layer immediately initiates the collaborative processing procedure. First, the RLC queries its local shared mapping table to confirm that the RLC SN corresponding to COUNT=51 is 6, and records this value as BOUNDARY_SN=6. At this time, the current reassembly state of the RLC layer is: RX_Next_Reassembly=2 (because RLC SNs 0 and 1 have been fully received, the next expected reassembly SN is 2), RX_Next_Highest=8 (updated after receiving SNs 6 and 7 during the period), and the reassembly timer is running (timeout is 100ms, only 50ms have passed so far). The RLC layer then performs validity verification on BOUNDARY_SN=6: first, it checks that the value is not the preset invalid value FFFF, and then verifies whether it is within the interval [RX_Next_Reassembly, RX_Next_Highest], i.e., 2≤6≤8. If the verification condition is met, BOUNDARY_SN=6 is confirmed as a trustworthy target second sequence number.

[0113] 6) The RLC layer performs the following operations: Memory release: Traverse the reorganized cache area, i.e., [2,6), and search for cached data within this range. Upon searching, it is found that there may be partial segments in the cache with SN=2, 3, and 4 (e.g., the first segment has been reached but subsequent segments are missing). The RLC layer releases all the memory corresponding to these data segments and returns it to the memory pool.

[0114] Filtering: The RLC layer iterates backward from BOUNDARY_SN=6 to find the first incompletely received RLCSN: SN=6 has been completely received and delivered (buffer released), SN=7 has been completely received and delivered (buffer released), and SN=8 has not yet arrived. Therefore, the next data packet to be processed is determined to be at SN=8, i.e., the filtering boundary = 8. During subsequent data packet reception, if a data packet carrying an RLC SN falls to the left of the filtering boundary (i.e., RLC SN<8), based on the PDCP layer's timeout skipping decision and the no-retransmission characteristic of RLC UM mode, it is determined that the data segment has no reassembly and delivery value and is directly discarded without entering the reassembly buffer. Through this early filtering mechanism, data determined by the PDCP sublayer to be unnecessary to wait for is intercepted in real time during subsequent reception, avoiding unnecessary buffer allocation and reassembly calculation overhead.

[0115] Therefore, in the PDCP reordering timer timeout scenario, this solution actively generates and sends PDCP_FEEDBACK_COUNT through the PDCP layer, triggering the RLC layer to perform a coordinated operation of cache release and early filtering. Through this coordination, the RLC layer releases potential memory usage 50ms in advance, including data caches that have been determined to be invalid by the PDCP layer and pre-allocated resources corresponding to late data that need to be filtered later, significantly reducing the invalid usage of memory resources.

[0116] 2. The case where the first protocol layer is the RLC layer and the second protocol layer is the PDCP layer.

[0117] In the method for determining the boundary packet identifier, the RLC layer can traverse the second sequence number of the fully received packets within a preset processing interval. During the traversal, it continuously records the second sequence number encountered that corresponds to a fully received data segment and has a valid mapping in the mapping table, using the candidate boundary second sequence number. An overwrite update strategy is employed; for example, if the current second sequence number is valid and the data segment has been fully received during the traversal, the current second sequence number is updated to a candidate boundary sequence number. After the traversal is complete, the final candidate boundary sequence number is determined as the target second sequence number, and then the target first sequence number corresponding to the target second sequence number is determined through the mapping table. The RLC layer determines this target first sequence number as the boundary packet identifier, where the information stored in the mapping table is as described in the previous embodiment.

[0118] It should be noted that in UM mode, there is no ARQ retransmission mechanism on the user plane, and HARQ scheduling strictly follows the timing mechanism. User plane data arrives in almost exactly the correct order within the timer range. This underlying transmission characteristic is an important physical basis for the success of this scheme: precisely because data arrival in UM mode has strong timing determinism, after the RLC layer reassembly timer expires, the probability of incompletely received data segments within the traversed interval arriving later is extremely low. Therefore, this determination result can be safely synchronized to the PDCP layer as a reliable basis for advancing the delivery window.

[0119] While waiting for lost data packets at the RLC layer, the RLC layer maintains a reassembly timer. This timer is activated when a discontinuity in the second sequence number is detected, and waits for the missing data segment. When the reassembly timer times out, it indicates that the RLC layer has failed to receive the expected missing data segment within a predetermined time period, at which point the cooperative process of this embodiment is triggered.

[0120] The RLC layer first determines the traversal range, i.e., the preset processing interval. The preset processing interval can be determined based on the receive-reassembly boundary of the RLC layer and the right boundary of the receive window recorded when the reassembly timer of the RLC layer starts.

[0121] In some implementations, the preset processing interval is a left-open and right-open interval, with its left endpoint being the receive reassembly boundary RX_Next_Reassembly of the RLC layer. To reduce the packet loss rate, its right endpoint can be RX_Timer_Trigger minus 1. Since RX_Timer_Trigger indicates the largest received SN recorded when the reassembly timer starts plus 1, the largest received SN itself is not considered here, i.e., (RX_Next_Reassembly, RX_Timer_Trigger-1).

[0122] In other implementations, its right endpoint is the timer trigger anchor point RX_Timer_Trigger recorded when the RLC layer reassembly timer starts. The left endpoint of this interval is the receive reassembly boundary currently maintained by the RLC layer (RX_Next_Reassembly), and the right endpoint is the right boundary of the receive window recorded when the reassembly timer starts (RX_Timer_Trigger). The interval type is left-open and right-open, denoted as (RX_Next_Reassembly, RX_Timer_Trigger). In other words, the RLC layer will start from RX_Next_Reassembly and continue until it reaches RX_Timer_Trigger (excluding the trigger point itself), sequentially checking the receive status of the data packets corresponding to each second sequence number within this range.

[0123] Since RLC SNs in actual systems are usually numbered cyclically with a finite length (e.g., 6 bits for RLC SNs 0 to 63, 12 bits for RLC SNs 0 to 4095), the term "last" must be understood based on the cyclic increment order. That is, starting from the left end of the interval, the SN values ​​are incremented one by one (and then wrap around to 0 after reaching the maximum value) until the right end of the interval is reached. During this traversal, the last valid SN recorded is the last complete received data packet in sequence within that interval.

[0124] In the specific implementation, after the reassembly timer expires, the RLC layer first determines the aforementioned preset processing interval, and then initializes a local variable (e.g., RLC_FEEDBACK_SN) to a preset invalid value (such as 0xFFFF) to dynamically record the sequence numbers that meet the conditions during the traversal. Subsequently, starting from the left endpoint RX_Next_Reassembly of the interval, the RLC layer checks each RLC SN in the interval one by one in a cyclically increasing order. For each sequence number currently traversed, the RLC layer first determines whether the data packet corresponding to the SN has been completely received in the reassembly buffer. "Complete reception" means that all RLC segments corresponding to the SN have arrived and been reassembled to form a complete RLC Service Data Unit (SDU), which can be delivered to the upper layer at any time. If the SN has not been completely received (including complete loss, only partial reception of segments, or incomplete reassembly), it is skipped directly without any record. If the SN has been confirmed as completely received, the RLC layer further verifies the validity of the SN: that is, it queries the locally maintained shared mapping table to confirm whether the SN is associated with a valid PDCPCOUNT (first sequence number). It's important to note that the mapping table records the bidirectional correspondence between RLC SNs and PDCP COUNTs. However, a mapping entry is only considered valid if the RLC layer initially sent the data packet to the PDCP layer with a valid RLC SN (i.e., a non-preset invalid value, such as not FFFF). Otherwise, even if the data packet has been completely received, the SN cannot be used as a boundary reference because it cannot establish a valid association in the mapping table. During the traversal, whenever an RLC SN that satisfies both complete reception and valid mapping is encountered, the RLC layer updates the local variable RLC_FEEDBACK_SN to the value of that SN and continues traversing. If the current SN does not meet the conditions, the local variable remains unchanged. Since the traversal direction strictly follows a cyclic increment order, after the entire preset interval has been traversed, the local variable RLC_FEEDBACK_SN stores the last completely received and valid second sequence number in the interval, i.e., the target second sequence number.

[0125] After the traversal is complete, the RLC layer determines whether a valid target second sequence number exists based on the current value of RLC_FEEDBACK_SN. If RLC_FEEDBACK_SN has been updated to a valid RLC SN value (not the initial invalid value), it indicates that a target second sequence number meeting the conditions has been found. The RLC layer uses this target second sequence number as an index to query the mapping table to obtain its corresponding target first sequence number (PDCP COUNT), and uses this COUNT value as the boundary packet identifier, reporting it to the PDCP layer through the inter-layer interface. If RLC_FEEDBACK_SN is still the initial invalid value (0xFFFF), it indicates that there is no second sequence number within the entire preset processing interval that satisfies both complete reception and valid mapping. At this time, the RLC layer determines that there is no valid boundary information to report, terminates this coordination process, and does not send any feedback to the PDCP layer.

[0126] For example, assuming the RLC SN range is 0-63, the current RLC layer receives the reassembly boundary RX_Next_Reassembly=60, and the reassembly timer records RX_Timer_Trigger=3 at startup, then the preset processing interval is a left-open, right-open cyclic interval (60, 2), which includes SNs 61, 62, 63, 0, and 1, but excludes SN=2. Starting from SN=61, the RLC layer checks the reception status and mapping validity of each SN in a cyclically increasing order. After querying the reassembly buffer and mapping table, the following statuses are obtained: SN=61 has been fully received and the mapping is valid, recorded as 61; SN=62 has been fully received and the mapping is valid, updated to 62; SN=63 is missing, skipped, and kept at 62; SN=0 has been fully received and the mapping is valid, updated to 0; SN=1 has been fully received and the mapping is valid, updated to 1. After the traversal, the local variable finally stores a value of 1, which is the second sequence number that is both fully received and has a valid mapping in the cyclic order within that interval. The RLC layer determines SN=1 as the target's second sequence number, then queries the mapping table to obtain its corresponding PDCP COUNT=100, and then reports COUNT=100 as the boundary packet identifier to the PDCP layer.

[0127] In this way, when the RLC layer determines that some data packets cannot be received completely due to the reassembly timer timeout, it can promptly report this information to the PDCP layer through the boundary data packet identifier. This allows the PDCP layer to advance the delivery window and deliver the received data in advance without waiting for its own reordering timer to time out, thereby effectively reducing end-to-end transmission latency.

[0128] Based on the above embodiments, after receiving the boundary data packet identifier sent by the RLC layer, the PDCP layer can first verify the validity of the target first sequence number. After the verification is successful, the next data packet to be processed is determined according to the target first sequence number, the receive delivery variable is updated to the data packet position, and the data packet delivery operation is performed.

[0129] The receiving delivery variable is RX_DELIV mentioned above.

[0130] After the PDCP layer receives the boundary data packet identifier transmitted by the RLC layer via the inter-layer interface, it parses the identifier to obtain a target first sequence number, denoted as RLC_FEEDBACK_COUNT. Next, validity verification is performed on the target first sequence number to ensure that the feedback information is legitimate and time-sensitive within the context of the current PDCP reception window. The core logic of this verification lies in comparing RLC_FEEDBACK_COUNT with RX_DELIV and RX_NEXT maintained by the PDCP layer itself to determine whether it falls within the current valid reception interval [RX_DELIV, RX_NEXT). The purpose of setting this interval check is as follows: if RLC_FEEDBACK_COUNT is smaller than RX_DELIV, it indicates that the data packet pointed to by this feedback has already been delivered or skipped by the PDCP layer, constituting outdated information; adopting such information will cause the delivery window to roll back abnormally, breaking the monotonicity of state variables. The reason why this check must be set is that the following scenario exists: in the coordination process in the PDCP-to-RLC direction, the PDCP layer's reordering timer expires first and sends feedback to the RLC layer, and the RLC layer releases part of its cache and sets a filtering boundary accordingly, but the RLC layer's reassembly timer does not stop as a result and continues to run until it expires. When the RLC layer's reassembly timer finally expires, it will report an RLC_FEEDBACK_COUNT to the PDCP layer again, but at this time the PDCP layer's delivery window may have advanced significantly, and the reported COUNT value may already fall on the left side of the current RX_DELIV; if the PDCP layer adopts it directly without verification, it will cause the delivery window to roll back abnormally. If RLC_FEEDBACK_COUNT is greater than or equal to RX_NEXT, it indicates that this feedback points to a future sequence number position that has not yet been observed by the PDCP layer over the air interface, and the RLC layer cannot receive data packets that have not yet been scheduled over the air interface at the lower layer. This feedback is either generated due to an abnormality in the mapping table or reported prematurely due to timing disorder of the cross-layer interface; forcibly adopting it at this time will cause the PDCP layer to blindly skip a large number of data packets that may still be in normal transmission, resulting in irreversible data loss. Therefore, only when RLC_FEEDBACK_COUNT satisfies the condition RX_DELIV ≤ RLC_FEEDBACK_COUNT < RX_NEXT is the boundary data packet identifier deemed valid and the verification passes.

[0131] After successful verification, the PDCP layer determines the position of the next expected data packet based on RLC_FEEDBACK_COUNT. This position is equal to the value of RLC_FEEDBACK_COUNT plus one; that is, the PDCP layer updates the receive delivery variable (RX_DELIV) to this position. This update means that all data packets with a COUNT value less than or equal to RLC_FEEDBACK_COUNT that have not been received have been confirmed by the RLC layer as unlikely to be received completely. Combined with the no-retransmission characteristic of UM mode, the PDCP layer no longer needs to maintain a waiting state for these data packets. The next data packet worth expecting delivery should start from the position RLC_FEEDBACK_COUNT+1.

[0132] Subsequently, the PDCP layer performs packet delivery operations: for packets with a COUNT value less than or equal to RLC_FEEDBACK_COUNT that have already been received, they are directly delivered to the upper layer sequentially. Based on this, the updated RX_DELIV is used to search for consecutively received packets to the right and deliver them to the upper layer until the first missing packet is encountered, at which point the traversal stops, and RX_DELIV is updated to the missing position. Through this delivery operation, subsequent packets that were originally blocked in the buffer due to waiting for lost packets are released early and delivered to the upper layer, effectively reducing the overall latency from packet reception to delivery.

[0133] In this way, after receiving the boundary packet identifier from the RLC layer, the PDCP layer updates the receive delivery variables and then delivers the received packets in the buffer to the upper layer in advance. This mechanism makes full use of the receive window state information maintained by the RLC layer when the reordering timer expires, allowing the PDCP layer to advance the delivery progress without relying solely on the expiration of its own reordering timer, fundamentally eliminating the invalid waiting delay caused by cross-layer state isolation.

[0134] Based on the above embodiments, after updating the receive delivery variables, the PDCP layer stops the reordering timer if the updated receive delivery variables meet the set conditions.

[0135] The PDCP layer obtains the reordering anchor variable, RX_REORD, recorded when the reordering timer starts. Internally, the timer and the reordering anchor variable are stored in association; that is, each running reordering timer has its corresponding reordering anchor variable value.

[0136] The PDCP layer compares the updated RX_DELIV value with the aforementioned RX_REORD to determine if a preset condition is met. Specifically, the preset condition is whether the updated RX_DELIV is greater than or equal to RX_REORD. If the updated RX_DELIV is greater than or equal to RX_REORD, it indicates that the data packets preceding RX_REORD have been processed by the PDCP layer. Therefore, the reordering timer has lost its meaning and the PDCP layer immediately stops the reordering timer prematurely, releasing the system resources occupied by the timer and preventing the timer from continuing to count invalidally.

[0137] If the updated RX_DELIV is less than RX_REORD, it indicates that the missing data packet that triggered the timer is still within the valid waiting range. That is, the first sequence number of the missing data packet is still within the receive delivery window, and the PDCP layer has not yet skipped the missing data packet. The reordering timer still has a reasonable basis to continue running. Therefore, the current running state of the timer is retained without any intervention, and the timer continues to count down until it times out or the waited data packet is received and stops naturally.

[0138] It should be noted that the setting condition can also be expressed as whether the updated RX_DELIV has surpassed RX_REORD, that is, whether the position pointed to by the window has been advanced to after RX_REORD.

[0139] To better understand the above process, a specific example will be used to illustrate it below.

[0140] For example, the PDCP layer receives PDCP COUNTs sequentially within the current period: 0, 3, 4, 5, 100, 101, 102, 103. When the PDCP layer receives COUNT=3, it starts a reordering timer. This timer was started when the PDCP layer expected COUNT=1 after receiving COUNT=0, but actually received COUNT=3, and its RX_REORD=4. At some point after starting the reordering timer, the PDCP layer receives a boundary data packet sent by the RLC with the identifier COUNT=100. Following the method described in the previous embodiment, the PDCP layer determines that the target first sequence number is 100 and valid, and then updates RX_DELIV to 101 (i.e., 100 plus 1). PDCP will perform delivery operations on data packets that have been received but not yet delivered within the range of COUNT≤100. Then it will check whether the data packet corresponding to 101 has been received. If it has been received, it will perform delivery, continue to update RX_DELIV to 102, deliver 102, update RX_DELIV to 103, deliver 103, update RX_DELIV to 104, and if it finds that 104 has not been received, it will wait for 104.

[0141] At this point, RX_DELIV has been updated to 104, and the PDCP layer checks its currently running reordering timer. RX_REORD=4; since 104 is greater than 4, the set condition is met, indicating that the missing data packet that triggered the reordering timer is now to the left of the updated RX_DELIV. The PDCP layer determines that it no longer needs to wait, and the reordering timer no longer needs to run. The PDCP layer immediately stops the timer.

[0142] In this way, after the PDCP layer receives the boundary packet identifier from the RLC layer and completes the update of the receive delivery variables, it can automatically determine whether the reordering timer needs to be stopped in advance, thus avoiding the waste of time caused by the timer continuing to count down ineffectively.

[0143] The following details the process of the RLC layer sending notification messages to the PDCP layer and the data processing of the PDCP layer.

[0144] When the reassembly timer (t-Reassembly) of the RLC layer times out, a one-way coordination process from the RLC layer to the PDCP layer is triggered. The core purpose of this process is to proactively inform the PDCP layer which data is unlikely to arrive again by utilizing the latest reception status information obtained by the RLC layer during the reassembly timeout handling. This prompts the PDCP layer to advance its delivery window, submit the received data to the upper layer as soon as possible, and may terminate the reordering timer early, thus avoiding unnecessary increases in end-to-end latency.

[0145] After the reassembly timer in the RLC layer times out, the RLC layer first determines two key state variables: RX_Next_Reassembly and RX_Timer_Trigger. These two variables together define an open interval (RX_Next_Reassembly, RX_Timer_Trigger-1), which represents the range of all RLC SNs whose reception status needs to be checked from the current reception reassembly boundary to the timer trigger boundary. This range includes both successfully received SNs and missing SNs.

[0146] Based on the standard RLC process, this solution adds a step for generating collaborative feedback information, as follows: Optionally, before updating the state variables, the RLC layer first initializes a variable locally, denoted as RLC_FEEDBACK_COUNT, to record the feedback boundary, and sets it to a preset invalid value, such as 0xFFFF. This invalid value is used to indicate that no fully received SN has been encountered within the specified interval, and serves as the basis for determining whether to report feedback in subsequent processing.

[0147] Subsequently, after the RLC reassembly timer expires, the RLC layer iterates through each RLC SN within the interval (RX_Next_Reassembly, RX_Timer_Trigger-1). During the iteration, for each RLC SN currently being checked, the RLC layer determines whether the data segment corresponding to that SN has been completely received and reassembled. For each RLC SN determined to have been completely received, the RLC layer queries the locally maintained shared mapping table to obtain the PDCP COUNT value corresponding to that SN, and updates RLC_FEEDBACK_COUNT to that COUNT value; if the current SN has not been completely received, the current value of RLC_FEEDBACK_COUNT remains unchanged, and the iteration continues to the next SN.

[0148] Similar to the feedback generation strategy in the PDCP direction, this scheme also adopts a continuous coverage update method in the RLC direction. That is, whenever a fully received SN is encountered during the traversal, RLC_FEEDBACK_COUNT is updated to the COUNT corresponding to that SN, instead of only assigning a value when the first fully received SN is encountered and then stopping. This design of taking the COUNT corresponding to the last fully received SN in the interval ensures that the reported feedback boundary can be pushed back as far as possible, so that the PDCP layer can skip more COUNT values ​​at once, minimizing the data delivery latency of PDCP.

[0149] After the entire interval has been traversed, the RLC layer determines whether the value of RLC_FEEDBACK_COUNT is valid: if the value is still the initial invalid value (0xFFFF), it means that there is no fully received RLC SN in the specified interval (i.e., all SNs in the interval are either missing or have not been reassembled). In this case, the RLC layer does not need to report any coordination information to the PDCP layer, and the process ends; if the value has been updated to a valid COUNT value, the RLC layer reports the RLC_FEEDBACK_COUNT to the PDCP layer through the inter-layer interface.

[0150] Furthermore, if the RLC reassembly timer is stopped before the timeout occurs because all missing data has been received normally (i.e., no timeout occurs), the RLC layer will not execute the above-mentioned collaborative feedback generation process, nor will it report any feedback information, thereby ensuring that no interference is caused to the PDCP layer under normal packet reception scenarios.

[0151] When the PDCP layer receives the RLC_FEEDBACK_COUNT reported by the RLC layer through the inter-layer interface, it initiates a local coordination processing procedure. The core objective of this procedure is to utilize the boundary information fed back by the RLC layer to quickly confirm which COUNT values can no longer arrive, thereby advancing the delivery window in advance and submitting the received data to upper layers.

[0152] First, the PDCP layer parses the received RLC_FEEDBACK_COUNT value and confirms that it is a valid COUNT (non-0xFFFF). According to the semantics of this feedback value, the PDCP layer can determine that: when the RLC layer reassembly timer expires, the COUNT value corresponding to the last completely received RLC SN within the specified interval is this feedback value, and all data with a COUNT value smaller than this feedback value that has not yet been received by the PDCP layer can no longer arrive via the air interface, since the RLC layer has skipped the corresponding SN, combined with the characteristic of no retransmission in UM mode. Therefore, the PDCP layer regards this feedback value as a confirmation boundary for data unreachability.

[0153] Next, the PDCP layer verifies whether the RLC_FEEDBACK_COUNT is valid, and initiates the update procedure of the delivery window after the verification passes. Specifically, the PDCP layer first performs validity verification on the RLC_FEEDBACK_COUNT: it compares the RLC_FEEDBACK_COUNT with the RX_DELIV and RX_NEXT maintained by itself, and determines whether it falls within the current valid reception interval [RX_DELIV, RX_NEXT). If the RLC_FEEDBACK_COUNT is less than RX_DELIV, it indicates that this feedback is outdated information, and the PDCP layer ignores this feedback; if the RLC_FEEDBACK_COUNT is greater than or equal to RX_NEXT, it indicates that this feedback points to a future position, and is also not adopted. Only when the RLC_FEEDBACK_COUNT satisfies RX_DELIV ≤ RLC_FEEDBACK_COUNT < RX_NEXT, the verification is passed. After the verification passes, the PDCP layer initiates the update procedure of the delivery window: the PDCP layer directly updates RX_DELIV to the position of RLC_FEEDBACK_COUNT + 1. For data packets with a COUNT value less than or equal to RLC_FEEDBACK_COUNT that have been received, they are directly delivered to the upper layer in sequence; at the same time, it continues to use the updated RX_DELIV to search for continuously received data packets to the right and deliver them to the upper layer, until it encounters the first missing data packet and then stops.

[0154] After updating the delivery window, the PDCP layer also needs to determine whether the currently running PDCP reordering timer (t-Reordering) can be terminated early. For specific details, please refer to the relevant descriptions in the preceding embodiments.

[0155] In some implementations, after completing the aforementioned collaborative processing, the PDCP layer can selectively reply with an acknowledgment (ACK) to the RLC layer, informing it that the feedback has been successfully processed and the delivery window has been updated. This acknowledgment mechanism enhances the reliability of collaboration between the two layers, especially in scenarios with high load or significant interface latency, effectively preventing the RLC layer from repeatedly reporting the same feedback due to not receiving the processing result.

[0156] Furthermore, to prevent scenarios where RLC_FEEDBACK_COUNT cannot be correctly mapped to PDCP COUNT due to missing or abnormal mapping table entries, this solution also includes a safety rollback mechanism: if the feedback value received by the PDCP layer cannot find a corresponding valid entry in the mapping table, or if the feedback value is less than the current RX_DELIV (i.e., outdated), the PDCP layer can directly ignore this feedback, maintain the original state, and record an exception log for subsequent analysis. This mechanism ensures that the collaborative process will not negatively impact the normal operation of the standard protocol stack under extreme abnormal conditions.

[0157] In the above implementation process, in the scenario of RLC reassembly timer timeout, the RLC layer actively generates and reports RLC_FEEDBACK_COUNT, triggering the PDCP layer to perform a series of coordinated operations such as delivery window advancement, orderly data delivery, and early stopping of the reordering timer. This can effectively solve the problem of invalid increase in end-to-end latency caused by inter-layer state isolation without changing the standard air interface protocol, enabling the PDCP layer to deliver data to the upper layer tens or even hundreds of milliseconds earlier, significantly improving the user experience of relevant latency-sensitive services.

[0158] The following is a specific example: The current system uses the following timer configuration: the RLC layer reassembly timer (t-Reassembly) is configured with a duration of 50ms, and the PDCP layer reordering timer (t-Reordering) is configured with a duration of 100ms. Under this configuration, the system receiver sequentially receives a series of data packets with specific mapping relationships from the air interface. The detailed mapping relationship is shown in the table below:

[0159] 1) The RLC layer receives SN0 and SN4 in sequence. Upon receiving SN4, it determines that SN1, SN2, and SN3 are lost and starts the reassembly timer (t-Reassembly). At the same time, the RLC layer delivers SN0 and SN4 to the PDCP in sequence, carrying their respective RLC SNs (0 and 4 respectively) for the PDCP layer to update the shared mapping table. At this time, RX_Timer_Trigger=5 and RX_Next_Reassembly=1. 2) After the PDCP layer receives these two data packets from the RLC layer, it parses out that RLC SN0 corresponds to PDCP COUNT0, RLC SN4 corresponds to PDCP COUNT9, and COUNT1-8 are missing in between. It also starts the reordering timer (t-Reordering) at the same time. At this time, it records RX_REORD=10 and enters the waiting state, expecting to receive the missing COUNT value in between within 100ms.

[0160] 3) Within the 50ms time window of the RLC's reassembly timer, the RLC layer successively receives the following data segments from the air interface, specifically: First, a data segment without RLC SN (i.e., SN=FFFF) is received and delivered to PDCP. PDCP parses it and sets PDCP COUNT=1. PDCP then receives the data packet with COUNT=1 and delivers it to the upper layer, updating RX_DELIV to 2. Subsequently, a data segment without RLC SN (i.e., SN=FFFF) was received and delivered to PDCP. PDCP resolved that PDCPCOUNT=3. Next, a data segment with RLC SN=2 is received and delivered to PDCP. PDCP resolves it and sets PDCP COUNT=5; RX_DELIV remains at 2. Next, a data segment without RLC SN (i.e., SN=FFFF) is received and delivered to PDCP. PDCP resolves the segment and sets PDCPCOUNT=6; RX_DELIV remains at 2. Next, a data segment without RLC SN (i.e., SN=FFFF) is received and delivered to PDCP. PDCP resolves the segment and sets PDCPCOUNT=8; RX_DELIV remains at 2.

[0161] After the RLC layer reassembles the above data segments one by one, it delivers them to the PDCP layer in sequence. The RLC and PDCP will update the mapping table synchronously.

[0162] At this point, the RLC layer's reassembly buffer has received RLC SNs 0, 2, and 4 completely, but SNs 1 and 3 are still missing. Since the missing data segments have not all arrived within the 50ms timeout period, the RLC reassembly timer is about to expire and trigger the coordination process. The PDCP reordering buffer currently buffers packets with COUNT=3, 5, 6, 8, and 9. Because SN 2 is missing, PDCP is still waiting for SN 2 to arrive.

[0163] 4) At 50ms, the RLC's reassembly timer times out, thus triggering the timeout handling process. At this time, the two key state variables of the RLC layer are: RX_Next_Reassembly=1 and RX_Timer_Trigger=5.

[0164] 5) According to this scheme, before executing the standard timeout processing, the RLC layer first starts the calculation process of the collaborative feedback boundary. The RLC layer initializes the local variable RLC_FEEDBACK_COUNT to 0xFFFF (invalid value), and then traverses each RLCSN in the interval (RX_Next_Reassembly, RX_Timer_Trigger-1), that is, the interval (1,4) (corresponding to SN=2, 3).

[0165] The specific traversal and update process is as follows: Check SN=2: Query the reassembly cache to confirm that the data segment corresponding to this SN has been fully received and successfully reassembled, obtain its corresponding PDCP COUNT=5, and update RLC_FEEDBACK_COUNT to 5; Checking SN=3: Querying the reassembled cache, it was found that the data segment corresponding to this SN had also never arrived (there were no segments in the cache), which was determined to be an incomplete reception, and RLC_FEEDBACK_COUNT remained unchanged at the current value of 5.

[0166] After the traversal is complete, the final value of RLC_FEEDBACK_COUNT is 5 (a valid value, not 0xFFFF). The RLC layer then reports this value to the PDCP layer through the inter-layer interface.

[0167] 6) Upon receiving RLC_FEEDBACK_COUNT=5 from the RLC layer, the PDCP layer immediately initiates the collaborative processing procedure. First, the PDCP layer verifies the validity of RLC_FEEDBACK_COUNT=5: Given RX_DELIV=2, RX_NEXT=10, and RLC_FEEDBACK_COUNT=5 satisfying 2≤5<10, the verification passes. Based on its semantics, the PDCP layer determines that among all COUNT values ​​prior to COUNT=5, besides the already received COUNT=3, COUNT=2 and 4 have been identified as unreachable by the RLC layer. Considering the no-retransmission characteristic of UM mode, they cannot be received via the air interface.

[0168] At this point, the current delivery state of the PDCP layer is: RX_DELIV=2, and COUNT=3, 5, 6, 8, 9 have been received and stored in the reordering buffer. The PDCP layer performs the following delivery window update operation based on the feedback boundary: First, the PDCP layer directly updates RX_DELIV to the position RLC_FEEDBACK_COUNT+1=6, indicating that any unreceived data packets with COUNT≤5 do not need to wait any longer. Then, starting from the position RX_DELIV=2, the PDCP layer checks the completely received data packets within the interval: COUNT=2 is missing (determined unreachable, skipped); COUNT=3 has been received and delivered to the upper layer; COUNT=4 is missing (determined unreachable, skipped); COUNT=5 has been received and delivered to the upper layer. At this point, the data packets within the range of COUNT≤5 have been processed.

[0169] Next, the PDCP layer continues to traverse to the right from the position of the updated RX_DELIV=6 to find the consecutive received data packets: if COUNT=6 has been received, it is delivered to the upper layer and RX_DELIV is updated to 7; if COUNT=7 is missing, delivery stops.

[0170] At this point, RX_DELIV=7, and the PDCP layer returns to the waiting state, waiting for the data packet with COUNT=7.

[0171] 7) After completing the delivery window update, the PDCP layer determines whether the currently running PDCP reordering timer can be terminated early. In this example, after the update, RX_DELIV=7, while RX_REORD=10. Since 7≤10, the timer stop condition is not met. Therefore, the reordering timer continues to run until a missing data packet is received or it times out.

[0172] Through this collaboration, the PDCP layer, which would normally have needed to wait approximately 50ms (until its own 100ms reordering timer expired) to confirm that the missing intermediate data was unreachable and complete delivery, could immediately confirm that the missing data packets such as COUNT=2 and 4 no longer needed to wait after receiving the feedback boundary reported by the RLC layer after the 50ms timeout. It could then directly advance the delivery window and complete the delivery of the received data such as COUNT=3, 5, and 6, completing the delivery approximately 50ms earlier overall, significantly reducing end-to-end transmission latency.

[0173] Please refer to the above method embodiments. Figure 2 , Figure 2 This is a structural block diagram of a bidirectional cross-layer timer coordination communication device 200 provided in an embodiment of this application. The device 200 may be a module, program segment, or code on an electronic device. It should be understood that the device 200 corresponds to the above method embodiment and is capable of executing the various steps involved in the method embodiment. The specific functions of the device 200 can be found in the description above. To avoid repetition, detailed descriptions are appropriately omitted here.

[0174] Optionally, the device 200 includes: The boundary determination module 210 is used to determine the boundary data packet identifier from the received data packets by the first protocol layer when the timer started by the first protocol layer due to the detection of missing data packets times out. Data sending module 220 is used to send the boundary data packet identifier to the second protocol layer through the first protocol layer, wherein the first protocol layer is one of the RLC layer and the PDCP layer, and the second protocol layer is the other, and the RLC layer operates in unacknowledged mode; The data processing module 230 is used to determine the position of the next data packet to be processed based on the boundary data packet identifier through the second protocol layer, and to continue to perform corresponding data processing based on the data packet position.

[0175] Optionally, the first protocol layer is the PDCP layer, the second protocol layer is the RLC layer, and the boundary determination module 210 is used to traverse the first sequence number in ascending order within a set range through the PDCP layer. During the traversal, if the current first sequence number is associated with a valid second sequence number in the mapping table, the current first sequence number is updated to a candidate boundary identifier. The mapping table includes the correspondence between the second sequence number of the data packet in the RLC layer and the first sequence number of the data packet in the PDCP layer. The set range is the interval formed by taking the receive-delivery boundary before the reordering timer timeout processing of the PDCP layer as the left endpoint and the receive-delivery boundary after the timeout processing as the right endpoint. After the traversal is completed, the final candidate boundary identifier is determined as the target first sequence number, and the target first sequence number is the boundary data packet identifier.

[0176] Optionally, the data processing module 230 is configured to determine the target second sequence number corresponding to the boundary data packet identifier through the mapping relationship table via the RLC layer; verify the validity of the target second sequence number; and after successful verification, determine the position of the next data packet to be processed based on the target second sequence number through the RLC layer, and release the cached data packets within the interval formed by the reassembly boundary as the left boundary and the target second sequence number as the right boundary.

[0177] Optionally, the data processing module 230 is further configured to determine a locally maintained filtering boundary based on the position of the next data packet to be processed; and to discard the data packet if a data packet located to the left of the filtering boundary is subsequently received.

[0178] Optionally, the first protocol layer is the RLC layer, the second protocol layer is the PDCP layer, and the boundary determination module 210 is used to traverse the second sequence number within a preset processing interval through the RLC layer. During the traversal, if the current second sequence number is valid and the data segment has been completely received, the current second sequence number is updated to a candidate boundary sequence number. After the traversal, the final candidate boundary sequence number is determined as the target second sequence number. The target first sequence number corresponding to the target second sequence number is determined through a mapping table, which includes the correspondence between the second sequence number of the data packet in the RLC layer and the first sequence number of the data packet in the PDCP layer. The target first sequence number is determined as the boundary data packet identifier.

[0179] Optionally, the preset processing interval is a left-open and right-open interval, with the left endpoint being the receive reassembly boundary RX_Next_Reassembly of the RLC layer and the right endpoint being RX_Timer_Trigger decremented by one when the RLC layer reassembly timer starts.

[0180] Optionally, the data processing module 230 is used to verify the validity of the target first sequence number through the PDCP layer; after the verification is successful, the next data packet to be processed is determined according to the target first sequence number, the receive delivery variable is updated to the position, and the data packet delivery operation is performed.

[0181] Optionally, the data processing module 230 is further configured to stop the reordering timer if the updated receive delivery variable RX_DELIV is greater than the reordering anchor variable RX_REORD recorded when the reordering timer of the PDCP layer is started.

[0182] Optionally, the device 200 further includes: The mapping table construction module is used to send the second sequence number of the RLC layer corresponding to the data packet each time the RLC layer sends a data packet to the PDCP layer. If the data packet does not have a corresponding second sequence number, a preset invalid value is sent. After the PDCP layer receives the data packet, it determines the corresponding first sequence number and writes the mapping relationship between the second sequence number and the first sequence number into the corresponding mapping entry in the mapping relationship table.

[0183] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0184] Please refer to Figure 3 , Figure 3 This is a schematic diagram of an electronic device for performing a bidirectional cross-layer timer coordination communication method, provided in an embodiment of this application. The electronic device may include: at least one processor 310, such as a CPU; at least one communication interface 320; at least one memory 330; and at least one communication bus 340. The communication bus 340 is used to implement communication between these components. In this embodiment, the communication interface 320 is used for signaling or data communication with other node devices. The memory 330 may be a high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 330 may also be at least one storage device located remotely from the aforementioned processor. The memory 330 stores computer-readable instructions, which, when executed by the processor 310, cause the electronic device to perform the aforementioned method process.

[0185] Understandable. Figure 3 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 3 The more or fewer components shown, or having the same Figure 3 The different configurations shown. Figure 3 The components shown can be implemented using hardware, software, or a combination thereof.

[0186] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it performs the method process executed by the electronic device in the above method embodiments.

[0187] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can perform the methods provided in the above-described method embodiments.

[0188] In summary, this application provides a bidirectional cross-layer timer coordination communication method, apparatus, electronic device, storage medium, and program product. This method establishes a bidirectional timer timeout coordination mechanism between the RLC layer and the PDCP layer. When a timer started by either protocol layer due to a missing data packet times out, it proactively sends a boundary data packet identifier to the other protocol layer. This allows the other protocol layer to accurately locate the next data packet to be processed and advance the processing flow. On one hand, when the PDCP layer reassembles the timer at the RLC layer and times out, it can deliver buffered data deemed invalid by the RLC layer's sliding window in advance. It can also determine whether the reordering timer can be terminated early based on the updated receive delivery variables, eliminating cross-layer invalid waiting delays and significantly reducing end-to-end transmission latency, thus ensuring a better user experience for real-time services. On the other hand, when the RLC layer reorders the timer at the PDCP layer and times out, it can release buffered data deemed invalid by the PDCP layer in advance, reducing invalid memory usage at the receiving end and improving storage resource utilization efficiency.

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

[0190] Furthermore, the units described as separate components may or may not be physically separate. 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 the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0191] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0192] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0193] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A bidirectional cross-layer timer collaborative communication method, characterized in that, The method includes: When the timer started by the first protocol layer due to the detection of missing data packets times out, the first protocol layer determines the boundary data packet identifier from the received data packets; The first protocol layer sends the boundary data packet identifier to the second protocol layer, wherein the first protocol layer is one of the Radio Link Control (RLC) layer and the Packet Data Convergence Protocol (PDCP) layer, and the second protocol layer is the other, and the RLC layer operates in unacknowledged mode; The second protocol layer determines the location of the next data packet to be processed based on the boundary data packet identifier, and continues to perform corresponding data processing based on the data packet location; When the first protocol layer is the PDCP layer and the second protocol layer is the RLC layer, the first protocol layer determines the boundary packet identifier from the received data packets, including: The PDCP layer traverses the first sequence number within a set range in ascending order. During the traversal, if the current first sequence number is associated with a valid second sequence number in the mapping table, the current first sequence number is updated to a candidate boundary identifier. The set range is an interval formed by taking the receive / delivery boundary before the reordering timer timeout processing of the PDCP layer as the left endpoint and the receive / delivery boundary after the timeout processing as the right endpoint. After the traversal is completed, the final candidate boundary identifier is determined as the target first sequence number, which is the boundary data packet identifier. When the first protocol layer is the RLC layer and the second protocol layer is the PDCP layer, the first protocol layer determines the boundary packet identifier from the received data packets, including: The RLC layer traverses the second sequence number within a preset processing interval. During the traversal, if the current second sequence number is valid and the data segment has been completely received, the current second sequence number is updated to a candidate boundary sequence number. The preset processing interval is a left-open and right-open interval, with its left endpoint being the RLC layer's receive reassembly boundary RX_Next_Reassembly, and its right endpoint being the timer trigger anchor point RX_Timer_Trigger recorded when the RLC layer's reassembly timer starts, decremented by one. After the traversal is completed, the final candidate boundary sequence number is determined as the target second sequence number. The RLC layer determines the target first sequence number corresponding to the target second sequence number through a mapping table. The RLC layer determines the target first sequence number as the boundary data packet identifier. The mapping table includes the correspondence between the second sequence number of the data packet in the RLC layer and the first sequence number of the data packet in the PDCP layer. The mapping table is dynamically constructed by the PDCP layer during the process of delivering data packets from the RLC layer to the PDCP layer.

2. The method according to claim 1, characterized in that, When the first protocol layer is the PDCP layer and the second protocol layer is the RLC layer, the second protocol layer determines the location of the next data packet to be processed based on the boundary data packet identifier, and continues to perform corresponding data processing based on the data packet location, including: The RLC layer determines the target second sequence number corresponding to the boundary data packet identifier through the mapping table; The RLC layer verifies the validity of the target second sequence number; After successful verification, the RLC layer determines the location of the next data packet to be processed based on the target second sequence number, and releases the cached data packets within the interval formed by the reassembly boundary as the left boundary and the target second sequence number as the right boundary.

3. The method according to claim 2, characterized in that, After the RLC layer determines the location of the next data packet to be processed based on the target second sequence number, the following is also included: The RLC layer determines the locally maintained filtering boundary based on the location of the next packet to be processed; If the RLC layer subsequently receives a data packet with a second sequence number located to the left of the filtering boundary, it shall discard the data packet.

4. The method according to claim 1, characterized in that, When the first protocol layer is the RLC layer and the second protocol layer is the PDCP layer, the second protocol layer determines the location of the next data packet to be processed based on the boundary data packet identifier, and continues to perform corresponding data processing based on the data packet location, including: The PDCP layer verifies the validity of the target first sequence number; After successful verification, the PDCP layer determines the location of the next data packet to be processed based on the target first sequence number, updates the receive delivery variable to the data packet location, and performs the data packet delivery operation.

5. The method according to claim 4, characterized in that, After updating the received delivery variable to the data packet location, the process also includes: If the updated receive delivery variable RX_DELIV is greater than or equal to the reordering anchor variable RX_REORD recorded when the reordering timer of the PDCP layer is started, the reordering timer is stopped.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Each time the RLC layer sends a data packet to the PDCP layer, it sends the second sequence number of the RLC layer corresponding to the data packet. If the data packet does not have a corresponding second sequence number, a preset invalid value is sent. After receiving the data packet, the PDCP layer determines the corresponding first sequence number and writes the mapping relationship between the second sequence number and the first sequence number into the corresponding mapping entry in the mapping relationship table.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the method as described in any one of claims 1-6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it performs the method as described in any one of claims 1-6.

9. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Data transmission method, device, equipment, medium and product

    CN122054220A