In a current wireless communication module, a receiver address/traffic identifier (RA/TID) queue is not flow-based, and one queue may contain multiple types of traffic streams, wherein each traffic stream may have different reliability and latency requirements. For example, a plurality of media access control protocol data units (MPDUs) included within a physical layer protocol data unit (PPDU) may comprise file transfer traffic streams and live video traffic streams. The current transmission rate of the MPDUs is fixed with PPDU, wherein the higher transmission rate usually means higher throughput and lower reliability (i.e. higher packer error rate), and the lower transmission rate usually means lower throughput and higher reliability. In addition, the transmission rate adaptation is quasi-static during a transmission opportunity (TXOP) or during a long period, so if the transmission rate is controlled to be lower to increase the reliability, the long-term throughput is degraded.
In addition, in a receiver side, a reordering procedure is performed before pushing the packets to applications, that is the corrupted former packets may gate the later packets. Therefore, if the data transmission has higher packet error rates, the receiver needs to buffer many packets and waits the packet retransmission of the former loss packets.
It is therefore an objective of the present invention to provide a control method of a wireless communication module, which can determine a transmission rate setting of each PPDU according to information of the MPDUs, to solve the above-mentioned problems.
According to one embodiment of the present invention, a control method of a wireless communication module includes the steps of: obtaining a plurality of media access control protocol data units (MPDUs), wherein each MPDU comprises a packet mark or a transmission descriptor with a packet mark; aggregating the plurality of MPDUs to generate a physical layer protocol data unit (PPDU); and determining a final transmission rate setting according to statistics of the packet marks of the plurality of MPDUs, wherein the final transmission rate setting is used for a wireless transmission of the PPDU.
According to one embodiment of the present invention, a wireless communication module of an electronic device is configured to perform the steps of: obtaining a plurality of media access control protocol data units (MPDUs), wherein each MPDU comprises a packet mark or a transmission descriptor with a packet mark; aggregating the plurality of MPDUs to generate a physical layer protocol data unit (PPDU); and determining a final transmission rate setting according to statistics of the packet marks of the plurality of MPDUs, wherein the final transmission rate setting is used for a wireless transmission of the PPDU.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the following description and claims to refer to particular system components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . ”. The terms “couple” and “couples” are intended to mean either an indirect or a direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
It is noted that the above using the first packet mark and the second packet mark to represent the reliability requirements is for illustrative, not a limitation of the present invention. In other embodiments, the reliability requirement can be classified into more than two degrees, and each degree corresponds to one packet mark. Specifically, if the MSDU belongs to a first degree of reliability requirement, the wireless communication module 114 adds a first packet mark into the MSDU; if the MSDU belongs to a second degree of reliability requirement, the wireless communication module 114 adds a second packet mark into the MSDU; if the MSDU belongs to a third degree of reliability requirement, the wireless communication module 114 adds a third packet mark into the MSDU, and so on.
The wireless communication module 114 can add the packet mark into any suitable location of MSDU.
In Step 204, the wireless communication module 114 performs sequence number (SN) and packet number (PN) assignment for the each MPDU, and MDPUs are generated according to the MSDUs, wherein one MPDU may comprise one or more MSDUs. In Step 206, an encryption operation is performed on the MPDUs. In Step 208, a MAC layer circuit within the wireless communication module 114 aggregates a plurality of MPDUs to generate a PPDU. It is noted that Steps 204-208 are known by a person skilled in the art, so the detailed operations of MPDU generation and PPDU generation are omitted here.
In Step 210, the wireless communication module 114 determines a transmission rate setting of the PPDU according to at least a plurality packet marks of the MSDUs/MPDUs within the PPDU. In one embodiment, if the MPDU comprises two or more MSDUs, one of the packet marks of the MSDUs serves as the packet mark of the MPDU.
Then, the MPDU aggregation module 410 provides the first transmission rate setting R1, the statistics of packet marks of the MPDUs, and any other parameters that may affect the packet latency/reliability, to the mark-aware transmission rate adjustment module 420. In one embodiment, the mark-aware transmission rate adjustment module may obtain an air status from the MPDU aggregation module 410 or other circuit module, wherein the air status may include but not limited to a load of current overlapping basic service set (OBSS), a transmission power of the wireless communication module 114, and/or an expected receiver gain of a peer device.
The mark-aware transmission rate adjustment module 420 generates a second transmission rate setting R2 according to the statistics of the packet marks of the MPDUs, and at least a portion of the first transmission rate setting R1, the air status and the mark-aware transmission rate table 404. Specifically, the statistics of the packet marks of the MPDUs may comprise, but not limited to, a distribution of values of the packet marks of the MPDUs, a count of MPDUs with packet mark indicating lower reliability requirement, a total bytes of MPDUs with packet mark indicating lower reliability requirement, a count of MPDUs with packet mark indicating higher reliability requirement, a total bytes of MPDUs with packet mark indicating higher reliability requirement, a ratio between the count of MPDUs with packet mark indicating higher reliability requirement and the count of MPDUs with packet mark indicating lower reliability requirement, a ratio between the total bytes of MPDUs with packet mark indicating higher reliability requirement and the total bytes of MPDUs with packet mark indicating lower reliability requirement, etc. In one embodiment, if the count of MPDUs with packet mark indicating higher reliability requirement is greater than a threshold value, or the total bytes of MPDUs with packet mark indicating higher reliability requirement is greater than a threshold value, or the ratio of the count of MPDUs with packet mark indicating higher reliability requirement to the count of MPDUs with packet mark indicating lower reliability requirement is greater than a threshold value, or the ratio of the total bytes of MPDUs with packet mark indicating higher reliability requirement to the total bytes of MPDUs with packet mark indicating lower reliability requirement is greater than a threshold value, the mark-aware transmission rate adjustment module 420 determines that the PPDU including these MPDUs should have higher reliability and lower packet error rate, so the second transmission rate setting R2 is determined to be more reliable than the first transmission rate setting; otherwise, the second transmission rate setting R2 is determined to be equal to the first transmission rate setting. In one embodiment, the mark-aware transmission rate table 404 can record any suitable transmission rate settings and corresponding packet error rates, wherein the transmission rate settings are parameters that may influence the packet error rates. In this embodiment, the mark-aware transmission rate table 404 records a plurality of MCS indexes and corresponding packet error rates, for example, MCS index “7” corresponds to packet peer rate “10%”, MCS index “6” corresponds to packet peer rate “8%”, MCS index “5” corresponds to packet peer rate “6%”, and so on, and the mark-aware transmission rate adjustment module 420 can determine the suitable packet error rate according to the statistics of the packet marks of the MPDUs, and determine the second transmission rate setting R2 (e.g., MCS index) according to the suitable packet error rate.
Then, the mark-aware transmission rate adjustment module 420 sends the second transmission rate setting R2 to the MPDU aggregation module 410, and the MPDU aggregation module 410 determines a final transmission rate setting according to at least the second transmission rate setting R2. In one embodiment, the MPDU aggregation module 410 may directly use the second transmission rate setting R2 as the final transmission rate setting. In another embodiment, the MPDU aggregation module 410 may generate the final transmission rate setting according both the first transmission rate setting R1 and the second transmission rate setting R2. Then, the MPDU aggregation module 410 generates the PPDU and the associated final transmission rate information to the transmission module 430, for the transmission module 430 provides the PPDU and the associated final transmission rate information to the following stage of the wireless communication module 114.
Then, the MPDU aggregation module 510 provides the first transmission rate setting R1, the statistics of packet marks of the MPDUs, and any other parameters that may affect the packet latency/reliability, to the mark-aware transmission rate adjustment module 520. In one embodiment, the mark-aware transmission rate adjustment module may obtain an air status from the MPDU aggregation module 510 or other circuit module, wherein the air status may include but not limited to a load of current OBSS, a transmission power of the wireless communication module 114, and/or an expected receiver gain of a peer device.
The mark-aware transmission rate adjustment module 520 generates a second transmission rate setting according to the statistics of the packet marks of the MPDUs, and at least a portion of the first transmission rate setting R1, the air status and the mark-aware transmission rate table 504, wherein the examples of the statistics of the packet marks of the MPDUs and the determination of the second transmission rate setting can refer to the embodiments shown in
Then, the mark-aware transmission rate adjustment module 520 determines a final transmission rate setting according to at least the second transmission rate setting. In one embodiment, the mark-aware transmission rate adjustment module 520 may directly use the second transmission rate setting as the final transmission rate setting. In another embodiment, the mark-aware transmission rate adjustment module 520 may generate the final transmission rate according both the first transmission rate setting R1 and the second transmission rate setting. Then, the mark-aware transmission rate adjustment module 520 generates the PPDU and the associated final transmission rate information to the following stage of the wireless communication module 114.
It is noted that the circuit arrangements shown in
In light of above, in the control method of the present invention, by adding packet mark into the transmission descriptor of each MSDU/MPDU or a field of MSDU/MPDU to indicate its reliability requirement, when the MPDU aggregation is performed to generate a PPDU, the statistics of the packet marks of the MPDUs included in the PPDU can be analyzed to determine a suitable final transmission rate setting, for the wireless transmission of the PPDU. In addition, the control method shown in
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 63/383,105, filed on Nov. 10, 2022. The content of the application is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
63383105 | Nov 2022 | US |