The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent the work is described in this background session, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.
In wireless communication, reorder operation is performed for in-sequence delivery. In a Universal Mobile Telecommunications System (UMTS) or long-term evolution (LTE) technology example, user equipment can receive out-of-order data units for example due to a handover and reestablishment. According to the UMTS or LTE technology, the user equipment uses a protocol stack having multiple protocol layers to process the data units. One of the protocol layers, such as a packet data convergence protocol (PDCP) layer, reorders the data units to be in-sequence according to sequence numbers, and then sends the in-sequence data units to an upper protocol layer.
Aspects of the disclosure provide a method for reordering. The method includes receiving, by a terminal device, a stream of data units from a wireless network. The data units have respective sequence numbers. Further, the method includes reordering at a protocol layer in a protocol stack, the data units for a next process according to the sequence numbers, determining a dependency relationship of a data unit to one or more missing data units that have sequence numbers prior to the data unit, and advancing, out of order of the sequence numbers, the data unit to the next process when the data unit is independent of the one or more missing data units.
To determine the dependency relationship of the data unit to the one or more missing data units that have the sequence numbers prior to the data unit, in an embodiment, the method includes determining, at a packet data convergence protocol (PDCP) layer in a protocol stack (e.g., a long term evolution (LTE) protocol stack, universal mobile telecommunications system (UMTS) protocol stack, etc.), the dependency relationship of the data unit to the one or more missing data units that have the sequence numbers prior to the data unit. In an example, the sequence numbers are PDCP sequence numbers in the PDCP layer, the method includes extracting, at the PDCP layer, a transmission control protocol (TCP) sequence number for a TCP session in the data unit, and determining whether the TCP sequence number is in sequence in the TCP session. Further, the method includes advancing, out of order of the PDCP sequence numbers, the data unit to the next process when the TCP sequence number is in sequence in the TCP session.
In another embodiment, to determine the dependency relationship of the data unit to the one or more missing data units that have the sequence numbers prior to the data unit, the method includes determining, at a data link layer in a Wi-Fi protocol stack, the dependency relationship of the data unit to the one or more missing data units that have the sequence numbers prior to the data unit.
In an example, the method includes determining that the data unit is an independent data unit when the data unit belongs to at least one of an address resolution protocol (ARP), an internet control message protocol (ICMP), a domain name system (DNS) protocol. In another example, the method includes determining that the data unit is independent of the one or more missing data units when the data unit belongs to a packet flow that uses a higher level protocol to control an in-sequence delivery. For example, the method includes determining that the data unit is independent of the one or more missing data units when body of the data unit belong to one of a transmission control protocol (TCP), user datagram protocol (UDP), and dynamic host configuration protocol (DHCP) that use additional higher level information, such as session sequence numbers, position information, a combination of multiple fields of higher level protocol, and the like to control the in-sequence delivery.
Aspects of the disclosure provide an apparatus that includes a receiver circuit and a processing circuit. The receiver circuit is configured to receive a wireless signal from a wireless network and generate a stream of data units in response to the wireless signal. The data units have respective sequence numbers. The processing circuit is configured to reorder, at a protocol layer in a protocol stack, the data units for a next process according to the sequence numbers, determine, a dependency relationship of a data unit to one or more missing data units that have sequence numbers prior to the data unit and advance, out of order of the sequence numbers, the data unit to the next process when the data unit is independent of the one or more missing data units.
Aspects of the disclosure provide another apparatus that includes a receiver circuit, a memory and one or more processors. The receiver circuit is configured to receive a wireless signal from a wireless network and generate a stream of data units in response to the wireless signal. The data units have respective sequence numbers. The memory is configured to store program instructions of a protocol stack for data unit processing. The one or more processors are configured to execute the program instructions to reorder, at a protocol layer in the protocol stack, the data units for a next process according to the sequence numbers, determine, a dependency relationship of a data unit to one or more missing data units that have sequence numbers prior to the data unit, and advance, out of order of the sequence numbers, the data unit to the next process when the data unit is independent of the one or more missing data units.
Various embodiments of this disclosure that are proposed as examples will be described in detail with reference to the following figures, wherein like numerals reference like elements, and wherein:
The network 105 can include any suitable wireless communication service provider network, such as a mobile service provider network, a Wi-Fi service provider network, and the like. In an embodiment, the network 105 includes a mobile service provider network 101 that can be implemented using any suitable mobile communication technology, such as third generation (3G) mobile network technology, fourth generation (4G) mobile network technology, fifth generation (5G) mobile network technology, global system for mobile communication (GSM), long-term evolution (LTE), Universal Mobile Telecommunications System (UMTS) and the like. The mobile service provider network 101 may include a plurality of nodes, such as interface nodes 102, core nodes 103, and the like that are coupled together by any suitable network technology, such as wired, wireless, fiber optical network, and the like.
In an example, the interface nodes 102, such as base transceiver stations, Node Bs, evolved Node Bs, and the like, include hardware components and software components configured to enable wireless communications between the interface nodes and electronic devices, such as the electronic device 110, and the like that has subscribed services provided by the mobile service provider network 101. Further, in the example, the core nodes 103 include hardware components and software components to form a backbone to manage and control the services provided by the mobile service provider network 101.
In another embodiment, the network 105 includes a wireless local area network (WLAN) 106 that can be implemented using any suitable wireless standard, such as various IEEE 802.11 standards. For example, the WLAN 106 can include a plurality of WLAN devices 107, switches (not shown), a management server (not shown) and the like coupled together. The WLAN devices can be access points (APs), stations (STAs), etc. In an example, the WLAN devices 107 include hardware components and software components configured to enable wireless communications between the WLAN devices 107 and electronic devices, such as the electronic device 110, and the like that have joined the WLAN 106.
It is noted that the network 105 can include other suitable components (not shown) that are implemented using any suitable network technology, such wired, wireless, a cellular communication technology, a local area network (LAN), a WLAN, a fiber optical network, a wide area network (WAN), a peer-to-peer network, the Internet, and the like.
The electronic device 110 can be any suitable electronic device that performs wireless communication with the network 105. In an example, the electronic device 110 is a terminal device (user equipment) used by an end-user for mobile telecommunication, such as a cell phone, a smart phone, a tablet computer, an Internet of Things (IoT) device and the like. The electronic device 110 may include a transceiver circuit 120 and a processing circuit 130 coupled together as shown in
The transceiver circuit 120 is configured to receive and transmit wireless signals. In an example, the transceiver circuit 120 may include a transmitting circuit (not shown) and a receiving circuit (not shown) coupled to an antenna (not shown). The transmitting circuit can be a transmitter and the receiving circuit can be a receiver. The receiving circuit may be configured to generate electrical signals in response to captured electromagnetic waves by the antenna, process the electrical signals to extract binary streams from the electrical signals, and provide the binary streams, in the form of data units to the processing circuit 130. In an example, the transmitting circuit may be configured to receive data units, such as management frames, data frames, and the like from for example the processing circuit 130, generate radio frequency (RF) signals to carry the data units, and emit electromagnetic waves in the air via the antenna to transmit wireless signals that carry the data units.
It is noted that in an example, the transceiver circuit 120 is configured to receive and transmit wireless signals according to a suitable Wi-Fi standard, such as IEEE 802.11 standards. In another example, the transceiver circuit 120 is configured to receive and transmit wireless signals according to a suitable mobile communication technology, such as 3G mobile network technology, 4G mobile network technology, 5G mobile network technology, GSM, LTE, and the like. In another example, the transceiver circuit 120 includes a first portion configured to receive and transmit wireless signals according to a suitable Wi-Fi standard, and a second portion configured to receive and transmit wireless signals according to a suitable mobile communication technology.
In an embodiment, the transceiver circuit 120 is configured to support dual downlink paths. In an example, the transceiver circuit 120 includes two receiving circuits configured to receive wireless signals that carry data units from, for example two eNBs in a LTE network simultaneously. In another example, the transceiver circuit 120 includes a first receiving circuit configured to receive wireless signals that carry data units from for example an eNB in an LTE network, and a second receiving circuit configured to receive wireless signals that carry data units from for example an WLAN device in WLAN 106. The first receiving circuit and the second receiving circuit can operate simultaneously to receive wireless signals that carry the data units.
The processing circuit 130 may be configured to perform various processing in baseband. The processing circuit 130 can be implemented using any suitable technology. In an embodiment, the processing circuit 130 is implemented using pure circuits. In another embodiment, the processing circuit 130 is implemented using one or more processors (not shown) and memory circuit (not shown). The memory circuit may be configured to store data and software instructions. The one or more processors may be configured to execute software instructions to perform various operations.
According to an aspect of the disclosure, the processing circuit 130 may be configured to process received data units according to a protocol stack 140 that has multiple protocol layers. In an example, an upper protocol layer may require in-sequence delivery from a lower protocol layer. One of the protocol layers, such as an L(N) protocol layer 150 in the
In an example, the network 105 sends a plurality of data units with respective sequence numbers to the electronic device 110 according to suitable wireless communication protocols. In an example, the sequence numbers are in an increasing order. In an embodiment, a WLAN device 107 in the WLAN 106 forms the plurality of data units with respective sequence numbers, such as layer 2 sequence numbers, and sends the plurality of data units to the electronic device 110. In another embodiment, one or more nodes in the mobile service provider network 101 form the plurality of data units with respective sequence numbers, such as sequence numbers in a packet data convergence protocol (PDCP) layer, and send the plurality of data units to the electronic device 110.
It is noted that at different protocol layers, data units can be referred to using other suitable terms. For example, a data unit is referred to as a frame in a data link layer of a seven-layer open systems interconnection model (OSI model). In another example, each of data units can be a service data unit (SDU), a media access control (MAC) SDU (MSDU), an aggregated MSDU (A-MSDU), a MAC protocol data unit (MPDU), or an aggregated MPDU (A-MPDU). In an embodiment, a data unit received by the L(N) protocol layer 150 from a lower protocol layer are called MPDU (or A-MPDU) while the data unit output of the L(N) protocol layer 150 to the upper L(N+1) protocol layer 160 is referred to by MSDU (or A-MSDU).
According to an aspect of the disclosure, due to various reasons, such as weak connectivity, data unit loss and re-transmission, handover and re-establishment, dual paths, and the like, the electronic device 110 can receive the plurality of the data units out of order of the sequence number. In the
The processing circuit 130 may receive the data units from the transceiver 120, and process the data units according to the protocol stack 140. In the
In an example, when the L(N) protocol layer 150 receives a specific data unit, the L(N) protocol layer 150 may determine whether the specific data unit is in-sequence according to the sequence number. When the specific data unit is in-sequence according to the sequence number, the specific data unit may be delivered for the next process, for example to the L(N+1) protocol layer 160. When the specific data unit is not in-sequence according to the sequence number, the L(N) protocol layer 150 may determine whether the specific data unit is independent of the one or more missing data units that have sequence numbers prior to the specific data unit. When the specific data unit is independent of the one or more missing data units, the specific data unit may be delivered for the next process, for example to the L(N+1) protocol layer 160.
Specifically, in the
When the L(N) protocol layer 150 receives the data unit with S3 and determines that the data unit with S3 is independent of the missing data unit with S1, thus the L(N) protocol layer 150 may process and deliver the data unit with S3 to the L(N+1) layer 160 without waiting for the reception of the data unit with S1. The L(N) protocol layer 150 can receive and process the data units with S4 and S5 similarly. Further, when the L(N) protocol layer 150 receives the data unit with S1, the L(N) protocol layer 150 can process the data unit with S1 and the data unit with S2, and deliver the data units with S1 and S2 to the upper L(N+1) layer 160. Thus, the L(N) protocol layer 150 may deliver the data units to the L(N+1) protocol layer 160 in the order of S3-S4-S5-S1-S2.
In a related example, data units are delivered to the next process in the order of the sequence numbers, thus the data units with the sequence numbers S3, S4, and S5 are buffered and wait for the data unit with S1 to be received. Comparing to the related example, the electronic device 110 can process data units, such as the data units with the sequence numbers S3, S4 and S5, with reduced delay.
According to an aspect of the disclosure, the L(N) protocol layer 150 can use any suitable technique to determine whether a data unit is independent of one or more missing data units. In an example, the L(N) protocol layer 150 determines whether the data unit belongs to a protocol that uses individual data unit for messaging, thus the data unit is an independent data unit that is independent of other data units. The protocol that uses individual data unit for messaging can be address resolution protocol (ARP), Internet control message protocol (ICMP), domain name system (DNS) protocol and the like.
In another example, the L(N) protocol layer 150 determines whether the body of the data unit belongs to a higher level protocol, such as a transmission control protocol (TCP), user datagram protocol (UDP), dynamic host configuration protocol (DHCP) and the like that uses a higher level reordering technique. When the body of the data unit belongs to a higher level protocol that uses the higher level reordering technique, the L(N) protocol layer 150 determines that the data unit is independent of the one or more missing data units. In an example, the TCP can reorder based on session sequence numbers. The additional session sequence numbers can be used to control the in-sequence delivery by session. For example, the L(N) protocol layer 150 extracts higher level information from body of the data unit, such as session sequence numbers, and uses the higher level information to assist reordering. In another example, data units of UDP can include position information in data units at an application level to assist in-sequence delivery. In another example, data units of DHCP can be reordered based on a combination of multiple fields of the DHCP protocol.
According to an aspect of the disclosure, the Wi-Fi protocol stack 240 may include a plurality of protocol layers, such as a data link layer (layer 2 in open systems interconnection model) 250, a network layer (layer 3 in open systems interconnection model) 260, and the like. It is noted that the Wi-Fi protocol stack 240 may include other suitable layers that are not shown in
The Wi-Fi protocol stack 240 may process a received data unit from a lower protocol layer, such as the data link layer 250, to the upper protocol layers. The data link layer 250 may be configured to provide layer 2 services, such as regulation of access to wireless media, flow control, error control and the like. In an embodiment, each of the data units can be an SDU, an MSDU, an A-MSDU, an MPDU, or an A-MPDU. In an embodiment, a data unit received by the data link layer 250 from a physical layer is called MPDU (or A-MPDU) while the data unit output of the data link layer 250 to the network layer 260 is referred to by MSDU (or A-MSDU).
According to an aspect of the disclosure, one of the operations performed in the data link layer 250 is a reorder operation that reorders the data units according to layer 2 sequence numbers. According to an aspect of the disclosure, the data link layer 250 is configured to advance a specific data unit out of order of the sequence numbers to a next process (e.g., a next operation in the data link layer 250, or a next operation in the network layer 260) when the specific data unit is independent of one or more missing data units.
Specifically, in an embodiment, a WLAN device (e.g., an access point device) may form data units with layer 2 sequence numbers, and transmit the data units with the layer 2 sequence numbers to the electronic device 110. In an example, the WLAN device forms five data units with sequence numbers S1-S5 and sends the data units to the electronic device 110. In an example, S1 is a positive integer, S2 is larger than S1 by one, S3 is larger than S2 by one, S4 is larger than S3 by one, and S5 is larger than S4 by one. Initially, the data units are transmitted following the sequence numbers S1-S2-S3-S4-S5. However, the data unit with S1 is lost in the initial transmission, and is referred to as a missing data unit. Thus, the electronic device 110 receives the data units in the order of S2-S3-S4-S5. In an example, when the data unit loss is detected, the WLAN device re-transmits the data unit with the original layer 2 sequence number S1.
In the embodiment, the data link layer 250 may be configured to reorder the data units according to the layer 2 sequence numbers. In an example, the data link layer 250 uses a reorder buffer 270 having a reordering window to reorder the data units. For example, the reorder buffer 270 is configured to buffer data units that are out of order, and the reordering window is configured to track sequence numbers of the buffered data units. In an example, the reordering window includes slots sequentially corresponding to the sequence numbers. The reordering window may have a header (H) that points to the slot with the smallest sequence number in the reordering window and a tail (T) that points to the slot with the largest sequence number in the reordering window. The slot pointed by the header (header slot) may correspond to a next expected layer 2 sequence number. The slot pointed by the tail (tail slot) may correspond to the largest layer 2 sequence number from the received data units at the data link layer 250.
In an example, the slots in the reordering window have three states, such as an empty state (E), a buffered state (B), a delivered state (D), and the three states are used to keep track of data unit reordering process. When a slot has an empty state, a data unit with a sequence number corresponding to the slot has not been received, and the data unit is referred to as a missing data unit. When a slot has a buffered state, a data unit with a sequence number corresponding to the slot is received and buffered in the reorder buffer. When a slot has a delivered state, a data unit with a sequence number corresponding to the slot is received and delivered to the next process, such as the network layer 260.
In an example, when the data link layer 250 receives a data unit, the data unit is buffered in the reorder buffer 270, and the reordering window is updated accordingly. In an example, when the data unit has a sequence number that is larger than the header slot, but smaller than the tail slot, the slot in the reordering window that corresponds to the sequence number is updated with the buffered state (B).
When the data unit has the sequence number of the header slot, the data unit can be delivered to the next process, and the header slot of the reordering window can be updated for example to the next slot. It is noted that when the new header slot is in the buffered state, a buffered data unit with a sequence number corresponding to the new header slot can be delivered to the network layer, and the header slot can be updated again until the new header slot has an empty state.
When the data unit has a sequence number larger than the tail slot, a new slot correspond to the sequence number is updated to the buffered state (B) and the tail is updated to point to the new slot.
Specifically, in an example, the data units with sequence numbers S3, S4 and S5 are independent of the data unit with S1, and the data unit with the sequence number S2 is not independent of the data unit with S1. In an example, the data unit with S3 belongs to a protocol, such as ARP, ICMP, DNS protocol and the like that uses an individual data unit for messaging. Further in the example, the body of the data units with S4 and S5 belong to TCP that uses for example TCP session sequence numbers to ensure in-sequence delivery.
During operation, in the
When the data link layer 250 receives the data unit with S3, the data link layer 250 may determine that the data unit with S3 belongs to a protocol, such as ARP, ICMP, DNS protocol and the like that uses an individual data unit for messaging, and thus the data unit with S3 is independent of the missing data unit. Then the data link layer 250 may deliver the data unit with S3 to a next process, such as the network layer 260 without waiting for the reception of the missing data unit. Then, the slot corresponding to S3 may be updated to the delivered state, and the tail of the reordering window may point to the slot corresponding to S3.
Similarly, when the data link layer 250 receives the data unit with S4, the data link layer 250 may determines that the body of the data unit with S4 belongs to TCP that uses TCP session sequence numbers to ensure in-sequence delivery, thus the data unit with S4 is independent of the missing data unit. Then, the data link layer 250 may deliver the data unit with S4 to a next process, such as the network layer 260 without waiting for the reception of the missing data unit. Then, the slot corresponding to S4 may be updated to the delivered state, and the tail of the reordering window may point to the slot corresponding to S4.
Similarly, when the data link layer 250 receives the data unit with S5, the data link layer 250 may determine that the body of the data unit with S5 belongs to TCP that uses TCP session sequence numbers to ensure in-sequence delivery, thus the data unit with S5 is independent of the missing data unit. Then, the data link layer 250 may deliver the data unit with the S5 to a next process, such as the network layer 260 without waiting for the reception of the missing data unit. Then, the slot corresponding to S5 may be updated to the delivered state, and the tail of the reordering window may point to the slot corresponding to S5.
In the
At S310, a data unit may be received at the protocol layer. In an example, the transceiver circuit 120 generates electrical signals in response to captured electromagnetic waves by the antenna, process the electrical signals to extract binary streams from the electrical signals, and provide the binary streams, in the form of a data unit to the processing circuit 130. The data link layer 250 then receives the data unit.
At S320, the protocol layer may determine whether the data unit is in sequence. In an example, when the data unit has the sequence number of the header slot for the reordering window, the data unit is in sequence. For example, when the data unit has the sequence number S1, the data unit is in sequence. When the data unit has larger sequence number than the header slot, the data unit is not in sequence. When the data unit is in sequence, the process may proceed to S330; otherwise, the process may proceed to S360.
At S330, the data unit may be delivered to a next process. In an example, the data link layer 250 may deliver the data unit for next processes, and deliver the processed data unit to the network layer 260. In another example, the data link layer 250 may deliver the data unit to the network layer 260. In an example, when the data link layer 250 receives the data unit with the sequence number S1, the data unit is delivered to the next process and the network layer 260.
At S340, buffered data units with consecutive sequence numbers may be delivered to the next process. In an example, when the reordering window has no other missing data unit, the data link layer 250 may deliver the buffered data units in the reordering window to the next process. In the example, when the reordering window has more missing data units, the data link layer 250 may deliver, for example sequentially, the buffered data units with sequence numbers prior to a next missing data unit to next processes. The processed data units can be delivered to the network layer 260. In the
At S350, the reordering window may be updated. In an example, when the reordering window has no missing data unit, the header is updated to point a slot corresponding to a next expected sequence number (e.g., the smallest sequence number that has not been received). In the example, when the reordering window has more missing data units, the header is updated to point to the slot for the next missing data unit.
At S360, the data unit may be stored in a buffer. In the
At S370, the protocol layer may determine whether the data unit is independent of one or more missing data units having sequence numbers that are prior to the data unit. For example, when the data unit belongs to a protocol, such as ARP, ICMP, DNS protocol and the like that uses individual data unit for messaging, the data unit is independent of the one or more missing data units. In another example, when the body of the data units belongs to a protocol, such as TCP, that uses for example high level sequence numbers, such as session sequence numbers, to ensure in-sequence delivery, the data unit is considered independent of the one or more missing data units. When the data unit is independent of the one or more missing data units, the process proceeds to S380, otherwise, the process returns to S310 to receive another data unit.
At S380, the data unit may be delivered to the next process and the reordering window may be updated. In an example, the data link layer 250 delivers the data unit to the next process, and the slot corresponding to the data unit is updated to be delivered. The process returns to S310 to receive another data unit.
According to an aspect of the disclosure, the LTE protocol stack 440 may include a plurality of protocol layers, such as a radio link control (RLC) layer 441, a PDCP layer 450, an Internet protocol (IP) layer 460 (e.g., equivalent to layer 3 in open systems interconnection model), and the like. It is noted that the LTE protocol stack 440 may include other suitable layers that are not shown in
The LTE protocol stack 440 may process a received data unit from a lower protocol layer to the upper protocol layers. The PDCP layer 450 may be configured to perform header compression/decompression of IP data, transfer of data (user plane or control plane), maintenance of PDCP sequence numbers, ciphering/deciphering of user plane data and control plane data, integrity protection and integrity verification of control plane data. In an embodiment, each of the data units can be an SDU, an MSDU, an A-MSDU, an MPDU, or an A-MPDU. In an embodiment, a data unit received by the PDCP layer 450 from RLC 441 is called MPDU (or A-MPDU) while the data unit output of PDCP layer 450 to the IP 460 is referred to by MSDU (or A-MSDU).
Specifically, in the
Specifically, in an embodiment, one or more nodes in the mobile service provider network 101 form data units with PDCP sequence numbers, and transmit the data units with the PDCP sequence numbers to the electronic device 110. In an example, five data units with PDCP sequence numbers S1-S5 are formed and sent to the electronic device 110. In an example, S1 is a positive integer, S2 is larger than S1 by one, S3 is larger than S2 by one, S4 is larger than S3 by one, and S5 is larger than S4 by one. Initially, the data units are transmitted following the PDCP sequence numbers S1-S2-S3-S4-S5. However, the data unit having sequence number S1 is lost in the initial transmission, and is referred to as a missing data unit. Thus, the electronic device 110 receives the data units in the order S2-S3-S4-S5. In an example, when the data unit loss is detected, the mobile service provider network 101 re-transmits the data unit with the original PDCP sequence number S1.
In the embodiment, the PDCP layer 450 is configured to reorder the data units according to the PDCP sequence numbers. In an example, the PDCP layer 450 uses a reorder buffer 470 having a reordering window to reorder data units. For example, the reorder buffer 470 is configured to buffer data units that are out of order, and the reordering window is configured to track sequence numbers of the buffered data units. In an example, the reordering window includes slots corresponding to PDCP sequence numbers. The reordering window has a header (H) that points to the slot with the smallest sequence number in the reordering window and a tail (T) that points to the slot with the largest sequence number in the reordering window. The slot pointed by the header (header slot) corresponds to a next expected PDCP sequence numbers. The slot pointed by the tail (tail slot) corresponds to the largest PDCP sequence number from the received data units.
The slots in the reordering window may have three states, such as an empty state (E), a buffered state (B), a delivered state (D), and the three states may be used to keep track of data unit reordering process. When a slot has an empty state, a data unit with a sequence number corresponding to the slot has not been received, and the data unit can be referred to as a missing data unit. When a slot has a buffered state, a data unit with a sequence number corresponding to the slot is received and buffered in the reorder buffer. When a slot has a delivered state, a data unit with a sequence number corresponding to the slot is received and delivered to the next process, such as the IP layer 460.
In an example, when the PDCP layer 450 receives a data unit, the data unit is buffered in the reorder buffer 470, and the reordering window is updated accordingly. In an example, when the data unit has a PDCP sequence number that is larger than the header slot, but smaller than the tail slot, the slot in the reordering window that corresponds to the sequence number is updated with the buffered state (B).
When the data unit has the sequence number of the header slot, the data unit is delivered to the next process, and the header slot of the reordering window is updated for example to the next slot. It is noted that, in an example, when the new header slot is in the buffered state, a buffered data unit with a sequence number corresponding to the new header slot is delivered to the upper layer, and the header slot is updated again until the new header slot has an empty state.
When the data unit has a PDCP sequence number larger than the tail slot, in an example, a new slot corresponding to the PDCP sequence number is updated to the buffered state (B) and the tail is updated to point to the new slot.
Specifically, in an example, the data units with PDCP sequence numbers S3, S4 and S5 are independent of the data unit with S1, and the data unit with S2 is not independent of the data unit with S1. In an example, the bodies of the data units with S1-S5 belong to TCP that uses for example TCP session sequence numbers to ensure in-sequence delivery. For example, the bodies of the data units with S1 and S2 belong to a first TCP session (TCP#1), the body of the data unit with S3 belongs to a second TCP session (TCP#2), and the bodies of the data units with S4 and S5 belong to a third TCP session (TCP#3). Thus, data units in different TCP sessions are independent of each other.
In an embodiment, the PDCP layer 450 extracts higher level protocol information, and uses the higher level protocol information for reordering. In the
During operation, in the
When the PDCP layer 450 receives the data unit with S3, the PDCP layer 450 may determine that the data unit with the PDCP sequence number S3 is independent of the missing data unit. For example, the PDCP layer 450 may extract the TCP session (e.g., TCP#2), and TCP session sequence number from the data unit with S3. In the example, the TCP session sequence number matches the next expected TCP session sequence number in the TCP session tracker 480 for TCP#2, thus the data unit with S3 is independent of the missing data unit. Then, the PDCP layer 450 may deliver the data unit with S3 to a next process, such as the IP layer 460 without waiting for the reception of the missing data unit. Then, the slot corresponding to S3 is updated to the delivered state, and the tail of the reordering window points to the slot corresponding to S3. The TCP session tracker 480 may also update the next expected TCP session sequence number for TCP#2.
Similarly, when the PDCP layer 450 receives the data unit with S4, the PDCP layer 450 may determine that the data unit with S4 is independent of the missing data unit. For example, the PDCP layer 450 may extract the TCP session (e.g., TCP#3), and TCP session sequence number from the data unit with S4. In the example, the TCP session sequence number matches the next expected TCP session sequence number in the TCP session tracker 480 for TCP#3, thus the data unit with S4 is independent of the missing data unit. Then, the PDCP layer 450 may deliver the data unit with the sequence number S4 to a next process, such as the IP layer 460 without waiting for the reception of the missing data unit. Then, the slot corresponding to S4 is updated to the delivered state, and the tail of the reordering window points to the slot corresponding to S4. The TCP session tracker 480 may also update the next expected TCP session sequence number for TCP#3.
Similarly, when the PDCP layer 450 receives the data unit with S5, the PDCP layer 450 may determine that the data unit with S5 is independent of the missing data unit. For example, the PDCP layer 450 may extract the TCP session (e.g., TCP#3), and TCP session sequence number from the data unit with S5. In the example, the TCP session sequence number matches the next expected TCP sequence number in the TCP session tracker 480 for TCP#3, thus the data unit with S5 is independent of the missing data unit. Then, the PDCP layer 450 may deliver the data unit with S5 to a next process, such as the IP layer 460 without waiting for the reception of the missing data unit. Then, the slot corresponding to S5 is updated to the delivered state, and the tail of the reordering window points to the slot corresponding to S5. The TCP session tracker 480 also updates the next expected TCP session sequence number for TCP#3.
In the
At S510, a data unit is received at the protocol layer. In an example, the transceiver circuit 120 generates electrical signals in response to captured electromagnetic waves by the antenna, process the electrical signals to extract binary streams from the electrical signals, and provide the binary streams, in the form of a data unit to the processing circuit 130. The data unit is processed by the MAC layer and the RLC layer 441 in an example. The RLC layer 441 provides the processed data unit to the PDCP layer 450. The PDCP layer 450 then receives the data unit.
At S520, the protocol layer may determine whether the data unit is in sequence. In an example, when the data unit has the PDCP sequence number of the header slot of the reordering window, the data unit is in sequence. When the data unit has larger PDCP sequence number than the header slot, the data unit is not in sequence. When the data unit is in sequence, the process proceeds to S530; otherwise, the process proceeds to S560.
At S530, the data unit is delivered to a next process. In an example, the PDCP layer 450 delivers the processed data unit to the IP layer 460. In the
At S540, buffered data units with consecutive PDCP sequence numbers are delivered to the next process. In an example, when the reordering window has no other missing data unit, the PDCP layer 450 delivers the buffered data units in the reordering window to the next process. In the example, when the reordering window has more missing data units, the PDCP layer 450 delivers, for example sequentially, the buffered data units with sequence numbers prior to a next missing data unit to the next process. In the
At S550, the reordering window is updated. In an example, when the reordering window has no missing data units, the header is updated to point a slot corresponding to a next expected PDCP sequence number. In the example, when the reordering window has more missing data units, the header is updated to point to the slot for the next missing data unit. In an embodiment, the TCP session track 480 is updated based on the TCP information in the delivered data units.
At S560, the data unit is stored in a buffer. In the
At S570, the protocol layer may determine whether the data unit is independent of one or more missing data units having PDCP sequence numbers that are prior to the data unit. For example, the PDCP layer 450 extracts the TCP session, and TCP session sequence number from data unit. When the TCP session sequence number matches the next expected TCP session sequence number in the TCP session tracker 480 for the TCP session, thus the data unit is independent of the one or more missing data units. When the data unit is independent of the one or more missing data units, the process proceeds to S580; otherwise, the process returns to S510 to receive another data unit.
At S580, the data unit is delivered to the next process and the reordering window is updated. In an example, the PDCP 450 delivers the data unit to next process, for example the IP layer 460, and the slot corresponding to the data unit is updated to be the delivered state.
At S590, the TCP session track 480 is updated accordingly. For example, the next expected TCP sequence number for the TCP session is updated. The process returns to S510 to receive another data unit.
When implemented in hardware, the hardware may comprise one or more of discrete components, an integrated circuit, an application-specific integrated circuit (ASIC), etc.
While aspects of the present disclosure have been described in conjunction with the specific embodiments thereof that are proposed as examples, alternatives, modifications, and variations to the examples may be made. Accordingly, embodiments as set forth herein are intended to be illustrative and not limiting. There are changes that may be made without departing from the scope of the claims set forth below.
This present disclosure claims the benefit of U.S. Provisional Application No. 62/288,486, “PDCP Reordering Enhancement for TCP Sessions” filed on Jan. 29, 2016, and U.S. Provisional Application No. 62/372,338, “WiFi RX Reorder Buffer Enhancement” filed on Aug. 9, 2016, which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
62288486 | Jan 2016 | US | |
62372338 | Aug 2016 | US |