RESOURCE ALLOCATION METHOD AND COMMUNICATION APPARATUS

Information

  • Patent Application
  • 20240023099
  • Publication Number
    20240023099
  • Date Filed
    August 31, 2023
    8 months ago
  • Date Published
    January 18, 2024
    3 months ago
Abstract
A resource allocation method includes sending, by a first device, resource allocation information to a second device. The resource allocation information indicates a first virtual resource unit (VRU). The first VRU includes a plurality of contiguous subcarriers in a frequency domain. The resource allocation method also includes mapping, by the first device, the first VRU to a first physical resource unit (PRU) based on a mapping relationship. The resource allocation method further includes transmitting data on the first PRU. A plurality of subcarriers included in the first PRU are noncontiguous in the frequency domain.
Description
TECHNICAL FIELD

This application relates to the field of mobile communication technologies, and in particular, to a resource allocation method and a communication apparatus.


BACKGROUND

Transmit power of a device is limited by both a maximum power and a maximum power spectral density. That is, the transmit power of the device cannot exceed the maximum power or the maximum power spectral density. To enable the transmit power of the device to be higher, a corresponding transmit bandwidth may be expanded, that is, subcarriers allocated to the device become more discrete in frequency domain, that is, a quantity of subcarriers in each MHz is reduced.


However, resource units (RUs) of different sizes may correspond to a plurality of discrete subcarrier combinations, and therefore more RUs or RU combinations need to be defined. In addition, to indicate more types of discrete RUs or discrete RU combinations, an existing method for allocating an RU formed by contiguous subcarriers needs to be changed, and implementation is complex for a transmit end.


SUMMARY

This application provides a resource allocation method and a communication apparatus, so that a device can support higher transmit power.


According to a first aspect, a resource allocation method is provided. The method may be performed by a first communication apparatus. The first communication apparatus may be a communication device or a communication apparatus that can support the communication device in implementing a function for the method, for example, a chip system. The following uses an example in which the communication device may be a transmit end and the transmit end is a first device, for example, an access point (AP) for description. The method includes:


A first device sends resource allocation information to a second device, where the resource allocation information indicates a first virtual resource unit (VRU), and the first VRU includes a plurality of contiguous subcarriers in frequency domain; and the first device maps the first VRU to a first physical resource unit (PRU) based on a mapping relationship between a VRU and a PRU, and transmits data on the first PRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain.


In this solution, the first device may notify the second device that an RU allocated by the first device to the second device is a VRU, the first device sends data on a discrete PRU to which a contiguous VRU is mapped. Because the contiguous VRU is mapped to the discrete PRU, it is equivalent to reducing a quantity of subcarriers in each MHz, so that the first device can support higher transmit power.


According to a second aspect, a resource allocation method is provided. The method may be performed by a second communication apparatus. The second communication apparatus may be a communication device or a communication apparatus that can support the communication device in implementing a function for the method, for example, a chip system. The following uses an example in which the communication device may be a transmit end and the transmit end is a second device, for example, a station (STA) for description. The method includes:


A second device receives resource allocation information from a first device, where the resource allocation information indicates a first VRU, and the first VRU includes a plurality of contiguous subcarriers in frequency domain;

    • the second device determines, based on a mapping relationship between a VRU and a PRU, a first PRU corresponding to the first VRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain; and
    • the second device receives data from the first device on the first PRU.


Corresponding to the solution provided in the first aspect, the resource allocation information sent by the first device to the second device indicates that the first VRU is allocated to the second device, and the second device may receive the data from the first device on the first PRU to which the first VRU is mapped, or certainly may send data to the first device on the first PRU. Because the plurality of subcarriers included in the first PRU are noncontiguous in frequency domain, it is equivalent to reducing a quantity of subcarriers in each MHz, so that the second device can support higher transmit power.


In a possible implementation of the first aspect or the second aspect, the first device maps the first VRU to the first PRU based on an interleaving matrix, where the interleaving matrix satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the interleaving matrix, Nom is a column quantity of the interleaving matrix, k is a sequence number of a subcarrier that is input into the interleaving matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaving matrix.


This solution provides a mapping manner in which the first VRU is mapped to the first PRU, that is, is implemented by using the interleaving matrix (which may also be referred to as an interleaver). In other words, row-column transformation is performed, by using the interleaving matrix, on sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located, and sequence numbers obtained by performing row-column transformation on the plurality of subcarriers are output. For example, interleaving is implemented in a row-in-column-out manner.


According to a third aspect, a resource mapping method is provided. The method may be performed by a third communication apparatus. The third communication apparatus may be a communication device or a communication apparatus that can support the communication device in implementing a function for the method, for example, a chip system. An example in which the communication device may be an interleaver is used below for description. The method includes:

    • mapping a sequence number of a subcarrier of a first VRU to a sequence number of a subcarrier of a first PRU based on an interleaving matrix, where the first VRU includes a plurality of contiguous subcarriers in frequency domain, and a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain; and
    • outputting the sequence number of the subcarrier of the first PRU.


In a possible implementation of the first aspect, the second aspect, or the third aspect, a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on the interleaving matrix satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the interleaving matrix, Nom is a column quantity of the interleaving matrix, k is a sequence number of a subcarrier that is input into the interleaving matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaving matrix.


This solution provides a mapping manner in which the first VRU is mapped to the first PRU, that is, is implemented by using the interleaving matrix (which may also be referred to as an interleaver). In other words, row-column transformation is performed, by using the interleaving matrix, on sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located, and sequence numbers obtained by performing row-column transformation on the plurality of subcarriers are output. For example, interleaving is implemented in a row-in-column-out manner.


In a possible implementation of the first aspect, the second aspect, or the third aspect, any adjacent subcarriers included in the first PRU are noncontiguous in frequency domain. In this solution, the any adjacent subcarriers included in the first PRU are noncontiguous in frequency domain. In other words, the subcarriers included in the first PRU are more discrete, so that the first device supports higher transmit power.


In a possible implementation of the first aspect, the second aspect, or the third aspect, before a sequence number of each subcarrier included in the interleaving matrix is output, an original row index sequence of the interleaving matrix is changed to a target row index sequence; and

    • the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, and the target row index sequence is {1, 5, 3, 7, 2, 6, 4, 8} or {1, 6, 3, 8, 4, 7, 2, 5}; or
    • the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and the target row index sequence is {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16}, or {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9}.


This solution provides a possible implementation in which the any adjacent subcarrier included in the first PRU are noncontiguous in frequency domain. In some embodiments, before the sequence number of each subcarrier included in the interleaving matrix is output, row change is performed on the interleaving matrix. In other words, the original row index sequence of the interleaving matrix is changed to the target row index sequence, and then sequence numbers in the interleaving matrix are output by column.


In a possible implementation of the first aspect, the second aspect, or the third aspect, that the first device maps the first VRU to the first PRU includes:


The first device sequentially inputs, into rows of the interleaving matrix according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located, and outputs sequence numbers of the subcarriers in the interleaving matrix according to a column direction of the interleaving matrix, where the first order is an ascending order, or the first order is a descending order.


This solution provides an interleaving manner of the interleaving matrix, that is, a row-in-column-out manner. Certainly, the manner may also be a column-in-row-out manner. This is not limited in this application. In addition, an input order of the sequence number of the subcarrier is not limited in this application, and is more flexible.


In a possible implementation of the first aspect, the second aspect, or the third aspect, a row quantity of the interleaving matrix is predefined, and a column quantity of the interleaving matrix is a quantity of subcarriers that are to be input by the first device divided by the row quantity of the interleaving matrix; or

    • a row quantity of the interleaving matrix is predefined, and a column quantity of the interleaving matrix is a rounded-up result obtained by dividing a quantity of subcarriers that are to be input by the first device by the row quantity of the interleaving matrix.


In this solution, a row quantity of the interleaving matrix may be predefined, which is simpler. Certainly, a column quantity of the interleaving matrix may be predefined, or a row quantity or a column quantity of the interleaving matrix may be negotiated or predefined by the first device and the second device. This is not limited in this application.


In a possible implementation of the first aspect, the second aspect, or the third aspect, in the plurality of subcarriers included in the first frequency-domain resource, subcarriers that are input into the interleaving matrix are first-type subcarriers, or subcarriers that are input into the interleaving matrix are first-type subcarriers and a second-type subcarrier, the first-type subcarrier is used to carry data, and the second-type subcarrier includes one or more of a null subcarrier, a direct current subcarrier, a guard subcarrier, and a pilot subcarrier; and

    • sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of the first-type subcarriers in the plurality of subcarriers included in the first frequency-domain resource;
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number; or
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, the first preset sequence number is located at a preset location of the interleaving matrix, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number.


This solution provides a plurality of mapping manners of the plurality of subcarriers included in the first frequency-domain resource in which the first VRU is located. For example, the second-type subcarrier may not participate in mapping, that is, only the first-type subcarriers included in the first frequency-domain resource are mapped. Certainly, all the first-type subcarriers included in the first frequency-domain resource may participate in mapping, or some first-type resources included in the first frequency-domain resource may participate in mapping. This is not limited in this application. In this way, content of the interleaving matrix may be less, thereby improving interleaving efficiency.


In a possible implementation of the first aspect or the second aspect, the second-type subcarrier is a pilot subcarrier, and the pilot subcarrier is a maximum pilot subcarrier set of a 26-tone RU in the first frequency-domain resource.


A pilot subcarrier set of a 26-tone RU in any 20 MHz also includes pilot subcarriers of a 52-tone RU and a 106-tone RU in 20 MHz. Therefore, the pilot subcarrier is the maximum pilot subcarrier set of the 26-tone RU in the first frequency-domain resource, so that all RUs in an interleaving range (the first frequency-domain resource) can satisfy that pilot locations after mapping can remain unchanged regardless of which pilot subcarriers are selected.


In a possible implementation of the first aspect, the second aspect, or the third aspect, a quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than a quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix; and

    • the sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of subcarriers that are in the first frequency-domain resource and that are to be input into the interleaving matrix and a sequence number of a padding subcarrier, the sequence number of the padding subcarrier is located in a preset location of the interleaving matrix, each sequence number of the padding subcarrier is a second preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the second preset sequence number.


In this solution, if the quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than the quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix, the interleaving matrix may be padded with the second preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the second preset sequence number. In this way, a mapping location of each subcarrier in the first VRU is not affected.


In a possible implementation of the first aspect, the second aspect, or the third aspect, a quantity of the plurality of subcarriers included in the first frequency-domain resource is determined based on a maximum bandwidth supported by the first device.


In this solution, the quantity of the plurality of subcarriers included in the first frequency-domain resource is determined based on the maximum bandwidth supported by the first device, to ensure that an allocated VRU can be scheduled within a supported maximum bandwidth range.


In a possible implementation of the first aspect, the second aspect, or the third aspect, the first device maps the first VRU to the first PRU based on a mapping relationship between a sequence number of each subcarrier included in the first VRU and a sequence number of each subcarrier included in the first PRU. A specific implementation of mapping the first VRU to the first PRU is not limited in this application. For example, the first VRU may be mapped to the first PRU based on the mapping relationship between the sequence number of each subcarrier included in the first VRU and the sequence number of each subcarrier included in the first PRU, which is more flexible.


In a possible implementation of the first aspect, the second aspect, or the third aspect, the sequence numbers of the subcarriers included in the first frequency-domain resource start from 0 or 1;

    • the sequence numbers of the subcarriers included in the first frequency-domain resource are subcarrier numbers in actual frequency bands corresponding to the subcarriers; or
    • the sequence numbers of the subcarriers included in the first frequency-domain resource are preset sequence numbers plus a preset offset value.


In this application, a purpose of mapping the VRU to the PRU is to make the subcarriers more discrete, and both the VRU and the PRU may be indicated by using the sequence numbers of the subcarriers. Therefore, a subcarrier sequence number sequence corresponding to the first frequency-domain resource may be mapped. The sequence number of each subcarrier may be a subcarrier number of the subcarrier in a corresponding actual frequency band, or may be self-defined. A specific implementation form of the sequence number of the subcarrier is not limited in this embodiment of this application.


In a possible implementation of the first aspect, the second aspect, or the third aspect, the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, and the sequence numbers of the subcarriers corresponding to the first PRU are located in the first set;

    • the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a second set, and there is no intersection between the first set and the second set; or the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a plurality of second sets, and there is no intersection between the plurality of second sets.


Ranges in which the VRU and the PRU participate in mapping are not limited in this application. In other words, the first VRU and the first PRU may be in a same frequency-domain location range, or may be in different frequency-domain location ranges. In addition, in this embodiment of this application, whether a frequency range in which the PRU participates in mapping is contiguous is not limited. In other words, the frequency-domain range in which the PRU participates in mapping may be contiguous, or may be discrete, provided that a size of the frequency range in which the PRU participates in mapping is the same as a size of a frequency range in which the VRU participates in mapping.


According to a fourth aspect, a communication apparatus is provided. For example, the communication apparatus is the foregoing first device or an apparatus disposed in the first device. The communication apparatus may be configured to perform the method according to any one of the first aspect or the possible implementations of the first aspect. In some embodiments, the communication apparatus may include modules configured to perform the method according to any one of the first aspect or the possible implementations of the first aspect, for example, include a processing module and a transceiver module that are coupled to each other. For example, the communication apparatus is the foregoing first device.


The transceiver module is configured to send resource allocation information to a second device, where the resource allocation information indicates a first virtual resource unit VRU, and the first VRU includes a plurality of contiguous subcarriers in frequency domain.


The processing module is configured to map the first VRU to a first physical resource unit PRU based on a mapping relationship between a VRU and a PRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain.


The transceiver module is further configured to transmit data on the first PRU.


According to a fifth aspect, a communication apparatus is provided. For example, the communication apparatus is the foregoing first device or an apparatus disposed in the first device. The communication apparatus may be configured to perform the method according to any one of the second aspect or the possible implementations of the second aspect. In some embodiments, the communication apparatus may include modules configured to perform the method according to any one of the second aspect or the possible implementations of the second aspect, for example, include a processing module and a transceiver module that are coupled to each other. For example, the communication apparatus is the foregoing second device.


The transceiver module is configured to receive resource allocation information from a first device, where the resource allocation information indicates a first virtual resource unit VRU, and the first VRU includes a plurality of contiguous subcarriers in frequency domain.


The processing module is configured to determine, based on a mapping relationship between a VRU and a physical resource unit PRU, a first PRU corresponding to the first VRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain


The transceiver module is configured to receive data from the first device on the first PRU.


According to a sixth aspect, a communication apparatus is provided. For example, the communication apparatus is the foregoing first device or an apparatus disposed in the first device. The communication apparatus may be configured to perform the method according to any one of the second aspect or the possible implementations of the second aspect. In some embodiments, the communication apparatus may include modules configured to perform the method according to any one of the second aspect or the possible implementations of the second aspect, for example, include a processing module and a transceiver module that are coupled to each other. For example, the communication apparatus is the foregoing second device.


The processing module is configured to map a sequence number of a subcarrier of a first VRU to a sequence number of a subcarrier of a first PRU based on an interleaving matrix, where the first VRU includes a plurality of contiguous subcarriers in frequency domain, and a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain.


The transceiver module is configured to output the sequence number of the subcarrier of the first PRU.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, a sequence number k of a subcarrier of the first VRU is mapped to a sequence number i of a subcarrier of the first PRU based on the interleaving matrix, and the interleaving matrix satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the interleaving matrix, Nom is a column quantity of the interleaving matrix, k is a sequence number of a subcarrier that is input into the interleaving matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaving matrix.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, any adjacent subcarriers included in the first PRU are noncontiguous in frequency domain


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, before a sequence number of each subcarrier included in the interleaving matrix is output, an original row index sequence of the interleaving matrix is changed to a target row index sequence; and the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, and the target row index sequence is {1, 5, 3, 7, 2, 6, 4, 8} or {1, 6, 3, 8, 4, 7, 2, 5}; or the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and the target row index sequence is {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16}, or {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9}.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, that the communication apparatus maps the first VRU to the first PRU includes:

    • sequentially inputting, into rows of the interleaving matrix according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located, and outputting sequence numbers of the subcarriers in the interleaving matrix according to a column direction of the interleaving matrix, where the first order is an ascending order, or the first order is a descending order.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, in the plurality of subcarriers included in the first frequency-domain resource, subcarriers that are input into the interleaving matrix are first-type subcarriers, or subcarriers that are input into the interleaving matrix are first-type subcarriers and a second-type subcarrier, the first-type subcarrier is used to carry data, and the second-type subcarrier includes one or more of a null subcarrier, a direct current subcarrier, a guard subcarrier, and a pilot subcarrier; and

    • sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of the first-type subcarriers in the plurality of subcarriers included in the first frequency-domain resource;
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number; or
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, the first preset sequence number is located at a preset location of the interleaving matrix, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, the second-type subcarrier is a pilot subcarrier, and the pilot subcarrier is a maximum pilot subcarrier set of a 26-tone RU in the first frequency-domain resource.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, a quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than a quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix; and

    • the sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of subcarriers that are in the first frequency-domain resource and that are to be input into the interleaving matrix and a sequence number of a padding subcarrier, the sequence number of the padding subcarrier is located in a preset location of the interleaving matrix, each sequence number of the padding subcarrier is a second preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the second preset sequence number.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, a quantity of the plurality of subcarriers included in the first frequency-domain resource is determined based on a maximum bandwidth supported by the first device.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, the first VRU is mapped to the first PRU based on a mapping relationship between a sequence number of each subcarrier included in the first VRU and a sequence number of each subcarrier included in the first PRU.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, the sequence numbers of the subcarriers included in the first frequency-domain resource start from 0 or 1;

    • the sequence numbers of the subcarriers included in the first frequency-domain resource are subcarrier numbers in actual frequency bands corresponding to the subcarriers; or
    • the sequence numbers of the subcarriers included in the first frequency-domain resource are preset sequence numbers plus a preset offset value.


In a possible implementation of the fourth aspect, the fifth aspect, or the sixth aspect, the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, and the sequence numbers of the subcarriers corresponding to the first PRU are located in the first set;

    • the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a second set, and there is no intersection between the first set and the second set, or a part of sequence numbers in the first set are the same as those in the second set are the same; or
    • the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a plurality of second sets, there is no intersection between the plurality of second sets, and there is no intersection between the first set and the plurality of second sets, or there is an intersection between the first set and a part of the plurality of second sets.


According to a seventh aspect, an embodiment of this application provides a communication apparatus. The communication apparatus may be the communication apparatus in any one of the fourth aspect to the sixth aspect in the foregoing embodiments, or may be a chip disposed in the communication apparatus in any one of the fourth aspect to the sixth aspect. The communication apparatus includes a communication interface and a processor, and optionally, further includes a memory. The memory is configured to store a computer program, instructions, or data. The processor is coupled to the memory and the communication interface. When the processor reads the computer program, the instructions, or the data, the communication apparatus performs the method performed by the first device, the second device, or the interleaver in the method embodiment in any one of the first aspect to the third aspect.


It should be understood that the communication interface may be implemented by using an antenna, a feeder, a codec, and the like in the communication apparatus. Alternatively, if the communication apparatus is a chip disposed in the first device, the second device, or the interleaver, the communication interface may be an input/output interface of the chip, for example, an input/output pin. The communication apparatus may further include a transceiver, configured to perform communication between the communication apparatus and another device. For example, when the communication apparatus is the first device, the another device is the second device, when the communication apparatus is the second device, the another device is the first device, or when the communication apparatus is the interleaver, the another device is the first device and/or the second device.


According to an eighth aspect, an embodiment of this application provides a chip system. The chip system includes a processor, and may further include a memory, configured to implement the method performed by the communication apparatus in any one of the fourth aspect to the seventh aspect. In a possible implementation, the chip system further includes the memory, configured to store program instructions and/or data. The chip system may include a chip, or may include a chip and another discrete component.


According to a ninth aspect, an embodiment of this application provides a communication system. The communication system includes the communication apparatuses according to the fourth aspect and the fifth aspect.


According to a tenth aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run, the method performed by the first device in the foregoing aspects is implemented, or the method performed by the second device in the foregoing aspects is implemented, or the method performed by the interleaver in the foregoing aspect is implemented.


According to an eleventh aspect, a computer program product is provided. The computer program product includes computer program code. When the computer program code is run, the method performed by the first device in the foregoing aspects is implemented, the method performed by the second device in the foregoing aspects is implemented, or the method performed by the interleaver in the foregoing aspect is implemented.


For beneficial effects of the seventh aspect to the eleventh aspect and the implementations thereof, refer to the descriptions of the beneficial effects of the method according to the first aspect to the third aspect and the implementations thereof.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 shows a network architecture of a wireless local area network to which an embodiment of this application is applicable;



FIG. 2 is a schematic diagram of a tone plan and RU distribution of 20 MHz;



FIG. 3 is a schematic diagram of a tone plan and RU distribution of 40 MHz;



FIG. 4 is a schematic diagram of a tone plan and RU distribution of 80 MHz;



FIG. 5 is a schematic diagram of a plurality of contiguous RUs corresponding to a discrete 26-tone RU;



FIG. 6 is a schematic diagram of a plurality of contiguous RUs corresponding to a discrete 996-tone RU;



FIG. 7 is a schematic diagram of distribution of a 26-tone RU with discrete subcarriers;



FIG. 8 is a schematic diagram of distribution of a 52-tone RU with discrete subcarriers;



FIG. 9 is a schematic flowchart of a resource allocation method according to an embodiment of this application;



FIG. 10 is a schematic diagram of a mapping range between a VRU and a PRU according to an embodiment of this application;



FIG. 11 is a schematic diagram of a mapping manner from a VRU to a PRU according to an embodiment of this application;



FIG. 12 is a schematic diagram in which all 242 subcarriers in 20 MHz participate in mapping according to an embodiment of this application;



FIG. 13 is a schematic diagram in which a second-type subcarrier does not participate in mapping according to an embodiment of this application;



FIG. 14 is another schematic diagram in which a second-type subcarrier does not participate in mapping according to an embodiment of this application;



FIG. 15 is still another schematic diagram in which a second-type subcarrier does not participate in mapping according to an embodiment of this application;



FIG. 16 is a schematic diagram of mapping a VRU of 20 MHz in 80 MHz to a PRU according to an embodiment of this application;



FIG. 17 is another schematic diagram of mapping a VRU of 20 MHz in 80 MHz to a PRU according to an embodiment of this application;



FIG. 18 is a schematic diagram of a location of a pilot subcarrier in 80 MHz;



FIG. 19 is a schematic diagram of a row change of an interleaving matrix according to an embodiment of this application;



FIG. 20 is a schematic diagram of a correspondence between an original row index sequence and a target row index sequence according to an embodiment of this application;



FIG. 21 is another schematic diagram of a correspondence between an original row index sequence and a target row index sequence according to an embodiment of this application;



FIG. 22 is still another schematic diagram of a correspondence between an original row index sequence and a target row index sequence according to an embodiment of this application;



FIG. 23 is a schematic diagram of a structure of a communication apparatus according to an embodiment of this application; and



FIG. 24 is a schematic diagram of another structure of a communication apparatus according to an embodiment of this application.





DESCRIPTION OF EMBODIMENTS

To make objectives, technical solution, and advantages of embodiments of this application clearer, the following further describes embodiments of this application in detail with reference to the accompanying drawings.


Embodiments of this application may be applied to a wireless local area network (WLAN) scenario, and may be applied to an IEEE 802.11 system standard, for example, 802.11a/b/g, 802.11n, 802.11ac, 802.11ax, or a next-generation standard, for example, 802.11be, or a further next-generation standard. Alternatively, embodiments of this application may be applied to a wireless local area network system, for example, an internet of things (IoT) network or a vehicle-to-everything (V2X) network. It is clear that embodiments of this application are also applicable to another possible communication system, for example, an LTE system, an LTE frequency division duplex (frequency division duplex, FDD) system, an LTE time division duplex (TDD) system, a universal mobile telecommunications system (UMTS), a worldwide interoperability for microwave access (WiMAX) communication system, and a future 5G communication system.


The following uses an example in which embodiments of this application are applicable to a WLAN scenario. It should be understood that the WLAN develops from the 802.11a/g standard, and goes through 802.11n, 802.11ac, 802.11ax, and 802.11be that is currently being discussed. 802.11n can also be referred to as high throughput (HT), 802.11ac can also be referred to as very high throughput (VHT), 802.11ax can also be referred to as high efficiency (HE) or Wi-Fi 6, and 802.11be can also be referred to as extremely high throughput (EHT) or Wi-Fi 7. Standards before HT, such as 802.11a/b/g, are collectively referred to as non-high throughput (Non-HT).



FIG. 1 is a schematic diagram of a network architecture of a WLAN to which an embodiment of this application is applicable. In FIG. 1, that the WLAN includes one wireless access point (AP) and two stations (STA) is used as an example. A STA associated with an AP can receive a radio frame sent by the AP, and can also send a radio frame to the AP. In addition, embodiments of this application are also applicable to communication between APs. For example, the APs may communicate with each other by using a distributed system (DS). Embodiments of this application are also applicable to communication between STAs. It should be understood that quantities of APs and STAs in FIG. 1 are merely an example There may be more or less APs and STAs.


The STA in this embodiment of this application may be a user terminal, a user apparatus, an access apparatus, a subscriber station, a subscriber unit, a mobile station, a user agent, a user device, or another device that has a wireless communication function. The user terminal may be a device having a wireless communication function, for example, a handheld device, a vehicle-mounted device, a wearable device, a computing device, and another processing device connected to a wireless modem. The user terminal may alternatively be user equipment (UE), a mobile station (MS), a terminal, terminal equipment, a portable communication device, a handheld device, a portable computing device, an entertainment device, a game device or system, a global positioning system device, or any other suitable device in various forms configured to perform network communication via wireless media. For example, the STA may be a router, a switch, a bridge, or the like. Herein, for ease of description, the devices mentioned above are collectively referred to as a station or a STA.


The AP and the STA in embodiments of this application may be an AP and a STA that are applicable to an IEEE 802.11 system standard. The AP is an apparatus that is deployed in a wireless communication network and that provides a wireless communication function for a STA associated with the AP. The AP may be used as a center of the communication system, and is usually a network-side product that supports MAC and PHY in the 802.11 system standard, for example, may be a communication device such as a base station, a router, a gateway, a repeater, a communication server, a switch, or a bridge. The base station may include a macro base station, a micro base station, a relay station, or the like in various forms. Herein, for ease of description, the devices mentioned above are collectively referred to as an AP. The STA is usually a terminal product that supports media access control (MAC) and a physical layer (PHY) of the 802.11 system standard, for example, a mobile phone or a notebook computer.


The AP communicates with the STA. The AP may allocate a resource to the STA. The STA receives and sends data on the allocated resource. For example, an orthogonal frequency division multiple access (OFDMA) technology or a multi-user multiple-input multiple-output (MU-MIMO) technology may be used for wireless communication between the AP and the STA. It should be understood that a resource actually occupied by the STA for data transmission is a PRU, but a resource allocated by the AP to the STA may be a PRU or a virtual resource unit VRU. The VRU is a virtual RU, and is relative to the PRU. If the resource allocated by the AP to the STA may be the VRU, after receiving the VRU, the STA may convert the VRU into the PRU, and then send data on the PRU.


In OFDMA and MU-MIMO technologies, a spectrum bandwidth is divided into several resource units (RU) according to a WLAN protocol. For example, bandwidth configurations supported by the 802.11ax protocol include 20 MHz, 40 MHz, 80 MHz, 160 MHz, and 80+80 MHz. For example, in addition to the bandwidth configurations supported by the 802.11ax protocol, a bandwidth configuration supported by the 802.11be protocol may further include 320 MHz. A difference between 160 MHz and 80+80 MHz lies in that the former is a contiguous frequency band, and two 80 MHz segments of the latter may be separated. 160 MHz formed by 80+80 MHz is noncontiguous. The IEEE 802.11ax protocol specifies that a spectral bandwidth of 20 MHz, 40 MHz, 80 MHz, or 160 MHz may be divided into a plurality of types of RUs including a 26-tone RU, a 52-tone RU, a 106-tone RU, a 242-tone RU (a largest RU in a 20 MHz bandwidth), a 484-tone RU (a largest RU in a 40 MHz bandwidth), a 996-tone RU (a largest RU in an 80 MHz bandwidth), and a 2*996-tone RU (a largest RU in a 160 MHz bandwidth). Each RU includes contiguous subcarriers. For example, the 26-tone RU is an RU including 26 contiguous subcarriers. In the following, the 26-tone RU is denoted as a 26-tone RU, the 52-tone RU is denoted as a 52-tone RU, and so on. In addition to the 26-tone RU, the 52-tone RU, and the like that are used to transmit data, the entire bandwidth further include another subcarrier, for example, one or more of a guard subcarrier, a null subcarrier, a direct current (DC) subcarrier, and a pilot subcarrier. For ease of description, in this specification, the subcarrier used to transmit data is referred to as a first-type subcarrier, and the another subcarrier is uniformly referred to as a second-type subcarrier.



FIG. 2 is a schematic diagram of a tone plan and RU distribution of 20 MHz. As shown in FIG. 2, when a bandwidth is 20 MHz, the entire bandwidth may include an entire 242-tone RU, or may include any combination of a 26-tone RU, a 52-tone RU, and a 106-tone RU. For example, the 20 MHz may include eight 26-tone RUs, four 52-tone RUs, or two 106-tone RUs. It can be learned from FIG. 2 that a bandwidth of one 242-tone RU is approximately 20 MHz, a bandwidth of one 106-tone RU is approximately 8 MHz, a bandwidth of one 52-tone RU is approximately 4 MHz, and a bandwidth of one 26-tone RU is approximately 2 MHz. It should be noted that the entire bandwidth further includes one or more of some guard subcarriers, null subcarriers, direct current subcarriers, and pilot subcarriers. For example, the 20 MHz shown in FIG. 2 further includes a guard subcarrier, a null subcarrier, and a direct current subcarrier.


When a bandwidth is 40 MHz, the entire bandwidth is approximately equivalent to replication of two tone plans of 20 MHz, and may include an entire 484-tone RU or any combination of a 26-tone RU, a 52-tone RU, a 106-tone RU, and a 242-tone RU, as shown in FIG. 3. In FIG. 3, “5 DC” represents five direct current subcarriers. Similar to the 20 MHz, the 40 MHz also includes one or more of some guard subcarriers, null subcarriers, and direct current subcarriers. It should be understood that a bandwidth of the 484-tone RU is approximately 40 MHz.


When a bandwidth is 80 MHz, the entire bandwidth includes a resource unit in a unit of four 242-tone RUs. The entire bandwidth may include an entire 996-tone RU or any combination of a 26-tone RU, a 52-tone RU, a 106-tone RU, a 242-tone RU, and a 484-tone RU, as shown in FIG. 4. 484L and 484R in FIG. 4 represent a left half part and a right half part of the 484-tone RU, respectively including 242 subcarriers, which is another schematic diagram of “484+5 DC” in FIG. 3. In FIG. 4, “5 DC” represents five direct current subcarriers, and “23 DC” represents 23 direct current subcarriers. Similar to the 20 MHz, the 80 MHz also includes one or more of some guard subcarriers, null subcarriers, and direct current subcarriers. It should be understood that a bandwidth of the 996-tone RU is approximately 80 MHz.


It should be noted that when a bandwidth is 160 MHz, the entire bandwidth may be considered as replication of two tone plans of 80 MHz. The entire bandwidth may include an entire 2*996-tone RU, or may include any combination of a 26-tone RU, a 52-tone RU, a 106-tone RU, a 242-tone RU, a 484-tone RU, and a 996-tone RU. Similarly, when a bandwidth is 320 MHz, the entire bandwidth may be considered as replication of four tone plans of 80 MHz, and the entire bandwidth may include a resource unit in a unit of four 996-tone RUs. For simplicity, tone plans and RU distribution of 160 MHz and 320 MHz are not separately shown.


In the foregoing tone plans, the 242-tone RU is used as a unit. An RU on the left of each of FIG. 4 to FIG. 6 corresponds to a lowest frequency, and an RU on the right of each of FIG. 4 to FIG. 6 corresponds to a highest frequency. From left to right, 242-tone RUs may be numbered: 1st 2nd, . . . , and 16th. It should be noted that a maximum of 16 242-tone RUs are in a one-to-one correspondence with 16 20 MHz channels in ascending order of frequencies.


A plurality of contiguous or noncontiguous RUs may be allocated to one or more users, to improve RU allocation flexibility and/or frequency utilization. In this specification, a plurality of contiguous or noncontiguous RUs are referred to as a multi-RU. It should be understood that the multi-RU are RUs including a plurality of RUs. In some embodiments, the multi-RU may be denoted as a multi-RU, or may be denoted as an MRU. It should be noted that, in this specification, the multi-RU is uniformly denoted as an MRU.


For example, the 802.11be protocol further introduces a plurality of MRUs, for example, a 52+26-tone RU including one 52-tone RU and one 26-tone RU, a 106+26-tone RU including one 106-tone RU and one 26-tone RU, a 484+242-tone RU including one 484-tone RU and one 242-tone RU, a 996+484-tone RU including one 996-tone RU and one 484-tone RU, a 242+484+996-tone RU including one 242-tone RU, one 484-tone RU, and one 996-tone RU, a 2*996+484-tone RU including two 996-tone RUs and one 484-tone RU, a 3*996-tone RU including three 996-tone RUs, a 3*996+484-tone RU including three 996-tone RUs and one 484-tone RU, and the like.


Before the method provided in this application is described, the technical concepts in this application are described first.


1. Contiguous RU (CRU)


In this specification, the contiguous RU is an RU including a plurality of contiguous subcarriers, or the contiguous RU is an RU including two contiguous subcarrier groups. A plurality of subcarriers included in each contiguous subcarrier group are contiguous, and only one or more of a guard subcarrier, a null subcarrier, or a direct current subcarrier is spaced between the two subcarrier groups. An RU supported in 802.11ax may be understood as the contiguous RU. The contiguous RU may also be referred to as a regular RU. Certainly, the contiguous RU may alternatively have another name A specific name of the contiguous RU is not limited in this embodiment of this application.


In this embodiment of this application, a contiguous RU including K subcarriers is referred to as a contiguous K-tone RU. For example, a contiguous 26-tone RU is a contiguous RU including 26 subcarriers. In other words, a concept of the contiguous K-tone RU is the same as a concept of a K-tone RU in the existing 802.11ax standard.


It should be understood that a plurality of subcarriers of the contiguous RU may be contiguous, or the contiguous RU may include two contiguous subcarrier groups, and the two contiguous subcarrier groups are noncontiguous. For example, a 26-tone RU including a group of 13 contiguous subcarriers and another group of 13 contiguous subcarriers is the contiguous RU. Similarly, a 996-tone RU including a group of 484 contiguous subcarriers and another group of 484 contiguous subcarriers is the contiguous RU. Such RU may also be referred to as a special contiguous RU or a generalized contiguous RU. The contiguous RU in this application also includes the special contiguous RU or the generalized contiguous RU.


2. Discrete RU (DRU)


Compared with the contiguous RU, an RU that includes a plurality of subcarrier groups that are discrete in frequency domain may be referred to as the discrete RU. In other words, the discrete RU includes a plurality of subcarrier groups, and any two subcarrier groups are discrete in frequency domain. One subcarrier group includes one subcarrier, or one subcarrier group includes at least two contiguous subcarriers. That is, one subcarrier group includes one subcarrier or includes a plurality of contiguous subcarriers. The discrete RU may also be referred to as a distributed RU (DRU). Certainly, in another embodiment, the discrete RU may also have another name. The name of the discrete RU is not limited in this application. A quantity of subcarrier groups included in one discrete RU in this application is greater than or equal to 2.


In this embodiment of this application, a discrete RU including K subcarriers may be referred to as a discrete K-tone RU. For example, a discrete 26-tone RU is a discrete RU including 26 subcarriers. For a value of K, refer to a value of K used for the contiguous RU. Certainly, the value of K may be different from the value of K used for the contiguous RU. For example, when a bandwidth is 20 MHz, the 20 MHz may include one or a combination of a discrete 26-tone RU, a discrete 52-tone RU, a discrete 106-tone RU, and a discrete 242-tone RU.


In this application, one discrete RU and another discrete RU may form a discrete MRU, and the discrete MRU can be allocated to one or more stations. For example, the discrete 242-tone RU and the discrete 484-tone RU may form a discrete 484+242-tone RU.


It should be noted that the special contiguous RU or the generalized contiguous RU mentioned above do not belong to the discrete RU in this embodiment of this application. For example, in the foregoing example, the 26-tone RU including the group of 13 contiguous subcarriers and the another group of 13 contiguous subcarriers is not the discrete RU defined in this application, but the special contiguous RU.


In some examples, quantities of subcarriers included in any two of the plurality of subcarrier groups included in the discrete RU may be the same or may be different. For example, a quantity of subcarriers in each subcarrier group may be 1. For another example, quantities of subcarriers in some subcarrier groups are 1, and quantities of subcarriers in the other subcarrier groups are 2. In other words, one discrete RU may include four subcarrier groups, and quantities of subcarriers in the four subcarrier groups may be 1, 1, 2, and 2 sequentially.


In some examples, when a quantity of subcarrier groups included in the discrete RU is greater than or equal to 3, in a plurality of discrete subcarrier groups included in the discrete RU, quantities of subcarriers between every two adjacent subcarrier groups may be the same or may be different. The every two adjacent subcarrier groups are two adjacent subcarrier groups of one discrete RU.


For example, for a discrete RU including three discrete subcarrier groups (denoted as a subcarrier group #1, a subcarrier group #2, and a subcarrier group #3), the subcarrier group #1 and the subcarrier group #2 are adjacent, and the subcarrier group #2 and the subcarrier group #3 are adjacent, that is, a frequency of a subcarrier included in the subcarrier group #1 is less than a frequency of a subcarrier included in the subcarrier group #2, and the frequency of the subcarrier included in the subcarrier group #2 is less than a frequency of a subcarrier included in the subcarrier group #3. In addition, a subcarrier with a maximum frequency in the subcarrier group #1 and a subcarrier with a minimum frequency in the subcarrier group #2 are noncontiguous in frequency (or frequency domain), that is, there is an interval of K1 (K1≥1) subcarriers between the two, or there are K1 subcarriers between the two. A subcarrier with a maximum frequency in the subcarrier group #2 and a subcarrier with a minimum frequency in the subcarrier group #3 are noncontiguous in frequency (or frequency domain), that is, there is an interval of K2 (K2≥1) subcarriers between the two, or there are K2 subcarriers between the two. K1 may be equal to K2, or may not be equal to K2.


For another example, for a discrete RU including four discrete subcarrier groups (denoted as a subcarrier group #1, a subcarrier group #2, a subcarrier group #3, and a subcarrier group #4), the subcarrier group #1 and the subcarrier group #2 are adjacent, the subcarrier group #2 and the subcarrier group #3 are adjacent, and the subcarrier group #3 and the subcarrier group #4 are adjacent. In addition, a subcarrier with a maximum frequency in the subcarrier group #1 and a subcarrier with a minimum frequency in the subcarrier group #2 are spaced by K1 (K1≥1) subcarriers, a subcarrier with a maximum frequency in the subcarrier group #2 and a subcarrier with a minimum frequency in the subcarrier group #3 are spaced by K2 (K2≥1) subcarriers, and a subcarrier with a maximum frequency in the subcarrier group #3 and a subcarrier with a minimum frequency in the subcarrier group #4 are spaced by K3 (K3≥1) subcarriers. K1, K2, and K3 may be equal. Alternatively, any two of the three may be equal or may be unequal.


For example, refer to FIG. 5. A plurality of contiguous RUs corresponding to a discrete 26-tone RU shown in FIG. 5 are a first contiguous 26-tone RU (a contiguous RU #1) in first 20 MHz and a first contiguous 26-tone RU (a contiguous RU #2) in second 20 MHz. In this application, the discrete RU is a discrete RU corresponding to the contiguous RU #1 and the contiguous RU #2, the discrete RU is a discrete RU that has a mapping relationship with the contiguous RU #1 and the contiguous RU #2, or the contiguous RU #1 and the contiguous RU #2 are contiguous RUs occupied by the discrete RU.


For another example, refer to FIG. 6. A plurality of contiguous RUs corresponding to a discrete 996-tone RU shown in FIG. 6 are two contiguous 996-tone RUs shown in the figure.


The Federal Communications Commission has issued a regulation on the 6 GHz spectrum, which defines an indoor low power (LPI) communication mode. This communication mode limits a maximum transmit power and a maximum frequency spectral density. For an AP, it is specified that a maximum transmit power of the AP is 36 dBm (decibel-milliwatts), and a maximum power spectral density is 5 dBm/MHz (decibel-milliwatts/megahertz). For a STA, it is specified that a maximum transmit power of the STA is 24 dBm, and a maximum power spectral density is −1 dBm/MHz.


Transmit power of a device is limited by both a maximum power and a maximum power spectral density. That is, the transmit power of the device cannot exceed the maximum power or the maximum power spectral density. That is, the transmit power per MHz cannot exceed a given value. For example, Table 1 shows a correspondence between a maximum power sent by a device and a bandwidth in an LPI scenario.











TABLE 1






Maximum transmit
Maximum transmit


Bandwidth
power of an AP
power of a STA







20 MHz
18 dBm
12 dBm


40 MHz
21 dBm
15 dBm


80 MHz
24 dBm
18 dBm


160 MHz 
27 dBm
21 dBm


320 MHz 
30 dBm
24 dBm









It should be understood that, 20 MHz in Table 1 is used as an example, 18 dBm-5 dBm=13 dB, and 13 dB=10{circumflex over ( )}1.3=19.95, which is approximately equal to 20 MHz. It can be learned that a maximum power in a transmit bandwidth is approximately equal to a value obtained when the maximum transmit power is reached in each MHz. When a power spectral density is limited, a corresponding transmit bandwidth may be expanded to enable the device to support higher transmit power. It can be learned from tone plans and RU distribution in FIG. 2 to FIG. 4 that all subcarriers in a bandwidth are contiguous, that is, RUs in FIG. 2 to FIG. 4 are contiguous RUs. Compared with the discrete RU, each subcarrier included in the contiguous RU corresponds to a smaller bandwidth, and therefore the maximum transmit power of the device cannot be increased by using the transmit bandwidth. For example, the 20 MHz includes two subcarriers that belong to the 20 MHz and a plurality of subcarriers that belong to another RU. Compared with 20 MHz including 10 contiguous subcarriers, although a quantity of subcarriers allocated to the device is not increased, the subcarriers allocated to the device become more discrete in frequency domain, so that a quantity of subcarriers in each MHz is reduced. From a perspective of the subcarrier, it is equivalent to broadening a bandwidth corresponding to each subcarrier. Therefore, the device can support higher transmit power.


For example, FIG. 7 is a schematic diagram of distribution of a 26-tone RU with discrete subcarriers. In FIG. 7, 80 MHz is used as an example. The 26-tone RU includes 24 data subcarriers and two pilot subcarriers. The 24 data subcarriers may be designed in a form of two non-adjacent data subcarriers, as shown in FIG. 7.


For another example, FIG. 8 is a schematic diagram of distribution of a 52-tone RU with discrete subcarriers. In FIG. 8, 80 MHz is used as an example. The 52-tone RU includes 48 data subcarriers and four pilot subcarriers. The 48 data subcarriers may be designed in a form of two non-adjacent data subcarriers, as shown in FIG. 8. It should be noted that the discrete distribution (discrete design) manners of the data subcarriers in FIG. 7 and FIG. 8 are merely examples. Discrete distribution of the data subcarrier is not limited in this embodiment of this application.


It can be seen from FIG. 7 and FIG. 8 that, because the data subcarriers on the RU are discretely distributed, a quantity of subcarriers in each MHz is reduced. From a perspective of the subcarrier, it is equivalent to broadening a bandwidth corresponding to each subcarrier. Therefore, each subcarrier may support higher transmit power. However, in the manner shown in FIG. 7 or FIG. 8, more RUs or RU combinations need to be defined, for example, RUs or RU combinations formed by various discrete subcarriers. In addition, to indicate more types of RUs or MRUs (including the RUs or RU combinations formed by the various discrete subcarriers), an existing method for allocating an RU formed by contiguous subcarriers needs to be changed, and implementation is complex for a transmit end. In addition, in a possible case, for example, there may be an intersection between some predefined discrete subcarrier sets, and then a discrete RU (for example, an x-tone RU) is allocated, and another discrete RU (for example, a y-tone RU) cannot be used for sending. For another example, if preamble puncturing occurs, the predefined RU cannot be used, and RU utilization is low.


In view of this, this application provides a resource allocation method. The method is essentially to provide a mapping manner from a VRU to a PRU. In the mapping manner, a contiguous VRU may be mapped to a discrete PRU. Based on this mapping manner, a transmit end may notify a receive end that an RU allocated to the receive end is a VRU, but the transmit end sends data on the discrete PRU to which the contiguous VRU is mapped. Because the contiguous VRU is mapped to the discrete PRU, it is equivalent to reducing a quantity of subcarriers in each MHz, so that the transmit end can support higher transmit power.


It should be noted that, in this embodiment of this application, a subcarrier that needs to be discrete is a subcarrier (also referred to as a data subcarrier in this specification) used to carry data. For any RU, distribution of another subcarrier included in the RU, for example, a pilot subcarrier, is not limited. For example, a conventional design or another possible design may be used for distribution of the pilot subcarrier.


The technical solutions provided in embodiments of this application are described below in detail with reference to the accompanying drawings. In the following description, an example in which the transmit end is a first device and the receive end is a second device is used to describe how the first device indicates an allocated resource to the second device. The first device may be an AP, and the second device may be a STA or an AP, or the first device may be a STA, and the second device may also be a STA. For ease of description, in the following, an example in which the first device is an AP and the second device is a STA is used. FIG. 9 is a schematic flowchart of a resource allocation method according to an embodiment of this application. The procedure is described as follows.


S901: The AP sends resource allocation information to the STA, and correspondingly the STA receives the resource allocation information from the AP, where the resource allocation information indicates a first VRU, and the first VRU is a contiguous RU.


S902: The AP maps the first VRU to a first PRU based on a mapping relationship between a VRU and a PRU.


S903: The AP sends data on the first PRU, and the STA receives the data on the first PRU.


Generally, a resource allocated by the AP to the STA is the contiguous RU. To enable the AP to obtain higher transmit power, in this application, the contiguous RU may be mapped to a discrete RU, and the AP sends data to the STA on the discrete RU, so that the AP can obtain higher transmit power. It should be understood that the AP sends the data to the STA on the discrete RU, and the STA receives the data from the AP on the discrete RU, or may send data to the AP on the discrete RU. That is, the STA does not receive or send data on the contiguous RU allocated by the AP to the STA. It may be considered that the contiguous RU allocated by the AP to the STA is a VRU, and the discrete RU is a PRU. It may be considered that this embodiment of this application essentially provides a solution in which the VRU is mapped to the PRU. In this way, the transmit end may use a resource allocation manner in which a bandwidth is divided into several resource units, and there is no need to define a plurality of distributed RUs or care about how to select and allocate the distributed RU, so that maximum transmit power of a device can be increased.


In this embodiment of this application, the AP may continue to use a current RU allocation manner, that is, a resource is allocated by using a resource unit allocation subfield (RU Allocation subfield). Generally, the AP allocates a resource to the STA by using the resource unit allocation subfield, and the STA considers that the allocated resource is a physical resource. For example, the AP sends resource allocation information to the STA, where the resource allocation information is carried in a resource unit allocation subfield, and indicates an RU allocated by the AP to the STA. However, in this embodiment of this application, the resource allocated to the STA by using the resource unit allocation subfield is not a resource actually used by the AP to send the data. Therefore, when allocating the resource to the STA, the AP notifies the STA that the resource allocated by the AP to the STA is a VRU. For example, the AP may send resource allocation information to the STA, where the resource allocation information indicates that the RU allocated by the AP to the STA is the first VRU. For example, the resource allocation information may be carried in a resource allocation subfield. For example, the resource allocation information may be a reserved bit sequence of the resource allocation subfield. Alternatively, the resource allocation information may be carried in a signaling field (SIG) included in a physical layer protocol data unit (PPDU), for example, some bits in a universal signaling field (U-SIG) or in an extremely high throughput signaling field (EHT-SIG), for example, a reserved bit such as a validate bit.


Before sending the data to the STA, the AP needs to map the VRU to the PRU, to send the data on the PRU. It should be understood that the AP may allocate a VRU to one STA, or may simultaneously allocate VRUs to a plurality of STAs. For example, the AP allocates a first VRU to a STA 1, and allocates a second VRU to a STA 2. In this case, the AP may simultaneously map the first VRU and the second VRU. For example, the AP maps frequency-domain resources on which the first VRU and the second VRU are located. For ease of description, the following uses an example in which the AP maps a first frequency-domain resource on which the first VRU is located. It should be understood that the first frequency-domain resource may further include one or more other VRUs. It should be noted that the AP may allocate VRUs to some STAs, and may also allocate PRUs to the other STAs. For example, the AP allocates a first VRU to a first STA, and allocates a second PRU to a second STA. The first VRU and the second PRU are located on the first frequency-domain resource. A solution in which the VRU is mapped to the PRU provided in this embodiment of this application may be applied to downlink transmission (that is, transmission from the AP to the STA), or may be applied to uplink transmission (that is, transmission from the STA to the AP). The solution in which the VRU is mapped to the PRU may be used in combination with the solution in which the AP allocates any resource to the STA by using the resource unit allocation subfield.


In this embodiment of this application, a purpose of mapping the VRU to the PRU is to make subcarriers more discrete, and both the VRU and the PRU may be indicated by using sequence numbers of the subcarriers. For details, refer to the following Appendix 1 to Appendix 5. Therefore, in this embodiment of this application, a subcarrier sequence number sequence corresponding to the first frequency-domain resource may be mapped, that is, the subcarrier sequence number sequence (a source subcarrier sequence number sequence) is mapped to another subcarrier sequence number sequence (a target subcarrier sequence number sequence). That is, sequence numbers in the source carrier sequence number sequence are mapped to corresponding elements in the target subcarrier sequence number sequence one by one.


A sequence number of each subcarrier may be a subcarrier number of the subcarrier in a corresponding actual frequency band, or may be self-defined. A specific implementation form of the sequence number of the subcarrier is not limited in this embodiment of this application.


For example, the sequence number of the subcarrier may be the subcarrier number of the subcarrier in the corresponding actual frequency band. For example, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are sequentially −500 to −259, sequence numbers of 242 subcarriers corresponding to second 20 MHz are sequentially −253 to ˜12, sequence numbers of 242 subcarriers corresponding to third 20 MHz are 12 to 253, and sequence numbers of 242 subcarriers corresponding to fourth 20 MHz are sequentially 259 to 500.


For example, the sequence number of the subcarrier may be numbered from 0 or 1. For example, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are 0 to 241, or 1 to 242.


For example, the sequence number of the subcarrier is a preset sequence number plus a preset offset value. For example, the preset sequence number may be numbered from 0 or 1, and the preset offset value may be determined based on the subcarrier number of the subcarrier in the corresponding actual frequency band. For example, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz may be calculated based on preset sequence numbers and a preset offset value. Assuming that the preset sequence number is 1, the preset offset value may be −501.


It should be noted that ranges in which the VRU and the PRU participate in mapping are not limited in this embodiment of this application. In other words, the first VRU and the first PRU may be in a same frequency-domain location range, or may be in different frequency-domain location ranges. In addition, in this embodiment of this application, whether a frequency range in which the PRU participates in mapping is contiguous is not limited. In other words, the frequency-domain range in which the PRU participates in mapping may be contiguous, or may be discrete, provided that a size of the frequency range in which the PRU participates in mapping is the same as a size of a frequency range in which the VRU participates in mapping.


It may also be considered that a set in which the source subcarrier sequence number sequence is located and a set in which the target subcarrier sequence number sequence is located are not limited in this embodiment of this application. For example, a sequence number in the subcarrier sequence number sequence corresponding to the first frequency-domain resource may be mapped to another sequence number in a same set. For example, if the source subcarrier sequence number sequence is located in a first set, the target subcarrier sequence number sequence is also located in the first set. Alternatively, a sequence number in the subcarrier sequence number sequence corresponding to the first frequency-domain resource may be mapped to another sequence number in another set. For example, if the source subcarrier sequence number sequence is located in a first set, the target subcarrier sequence number sequence is also located in a second set, and there is no intersection between the first set and the second set. For another example, if the source subcarrier sequence number sequence is located in a first set, the target subcarrier sequence number sequence is located also in a second set, and some sequence numbers in the second set are the same as those in the first set. Similarly, whether the target subcarrier sequence number sequence is contiguous is not limited in this embodiment of this application. In other words, sequence numbers included in the target subcarrier sequence number sequence may be located in different sets. For example, if the source subcarrier sequence number sequence is located in a first set, the target subcarrier sequence number sequence may be located in a plurality of second sets, there is no intersection between the plurality of second sets, and there is no intersection between the first set and the plurality of second sets, or there is an intersection between the first set and some second sets in the plurality of second sets.


For example, FIG. 10 is a schematic diagram of frequency ranges in which the VRU and the PRU participate in mapping. The source subcarrier sequence number sequence may correspond to first 20 MHz in the 80 MHz, and the target subcarrier sequence number sequence may also correspond to the first 20 MHz in the 80 MHz; the source subcarrier sequence number sequence may correspond to first 20 MHz in the 80 MHz, and the target subcarrier sequence number sequence may correspond to third 20 MHz in the 80 MHz, to represent the first frequency-domain resource; or the source subcarrier sequence number sequence may correspond to first 20 MHz in the 80 MHz, and the target subcarrier sequence number sequence may correspond to some frequencies in second 20 MHz in the 80 MHz, some frequencies in third 20 MHz in the 80 MHz, and some frequencies in fourth 20 MHz in the 80 MHz.


In other words, if the source subcarrier sequence number sequence is located in {−500, . . . , −259}, the target subcarrier sequence number sequence may be located in {−500, −259}; if the source subcarrier sequence number sequence is located in {−500, . . . , −259}, the target subcarrier sequence number sequence may be located in {−253, . . . , −12}; or if the source subcarrier sequence number sequence is located in {−500, . . . , −259}, the target subcarrier sequence number sequence may be located in {−253, . . . , −106}, {50, . . . , 88}, and {270, . . . , 326}.


The following uses an example in which the first VRU and the first PRU participate in mapping in a same frequency range, to describe several possible mapping manners in which the VRU is mapped to the PRU.


Mapping manner 1: In this embodiment of this application, the VRU may be mapped to the PRU by using an interleaving matrix.


A row quantity of the interleaving matrix may be predefined, and a column quantity of the interleaving matrix is an integer obtained by dividing a quantity of subcarriers to be input by the AP by the row quantity of the interleaving matrix. That is, if a value obtained by dividing the quantity of subcarriers to be input by the AP by the row quantity of the interleaving matrix is a decimal, the column quantity of the interleaving matrix is a rounded-up value obtained by dividing the quantity of subcarriers to be input by the AP by the row quantity of the interleaving matrix. Alternatively, a column quantity of the interleaving matrix may be predefined, and a row quantity of the interleaving matrix is an integer obtained by dividing a quantity of subcarriers to be input by the AP by the column quantity of the interleaving matrix. That is, if a value obtained by dividing the quantity of subcarriers to be input by the AP by the column quantity of the interleaving matrix is a decimal, the row quantity of the interleaving matrix is a rounded-up value obtained by dividing the quantity of subcarriers to be input by the AP by the column quantity of the interleaving matrix. It should be noted that a specific implementation of the row quantity and the column quantity of the interleaving matrix is not limited in this embodiment of this application. For example, both the row quantity and the column quantity of the interleaving matrix may be predefined, or the row quantity and the column quantity of the interleaving matrix may be negotiated by the AP and the STA.


In other words, row-column transformation is performed, by using the interleaving matrix, on sequence numbers of a plurality of subcarriers, and sequence numbers obtained by performing row-column transformation on the plurality of subcarriers are output. That is, a sequence number of a subcarrier of the first VRU is mapped to a sequence number of a subcarrier of the first PRU based on the interleaving matrix. FIG. 11 shows a mapping manner from a VRU to a PRU. In FIG. 11, an example in which a row quantity of the interleaving matrix is N and a column quantity is M is used. In FIG. 11, an example in which sequence numbers of subcarriers are input into the interleaving matrix by row and output from the interleaving matrix by column is used. That is, the AP may sequentially input, according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource into rows of an interleaver (the interleaving matrix), and outputs sequence numbers of the subcarriers included the interleaving matrix according to a column direction of the interleaving matrix. Alternatively, the AP may sequentially input, according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource into columns of an interleaver (the interleaving matrix), and outputs sequence numbers of the subcarriers included the interleaving matrix according to a row direction of the interleaving matrix. For ease of description, the following uses an example in which sequence numbers of subcarriers are input into the interleaving matrix by row and output from the interleaving matrix by column.


For example, a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on the interleaving matrix satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the interleaving matrix, Nom is a column quantity of the interleaving matrix, k is a sequence number of a subcarrier that is input into the interleaving matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaving matrix.


The first order is an ascending order, the first order is a descending order, or the first order is an order obtained through resorting in ascending order or in descending order according to a preset rule. For example, there are n subcarriers in total, sequence numbers (that is, n sequence numbers) of the n subcarriers are sorted in ascending order, and the first order is an order obtained by shifting m sequence numbers selected from the n sequence numbers before a minimum sequence number. For example, a sequence number sequence of a subcarrier is 123456, and a first order is 345612. The following uses an example in which the first order is an ascending order.


For example, FIG. 12 shows mapping from a VRU to a PRU in 20 MHz. The 20 MHz in FIG. 12 may be, for example, any 20 MHz in 40 MHz, 80 MHz, or 160 MHz. A number in each rectangle in FIG. 12 indicates a quantity of subcarriers. In FIG. 12, that 242 subcarriers included in the 20 MHz participate in mapping and a row quantity of the interleaving matrix is 2 is used as an example. It can be learned from FIG. 12 that most subcarriers represented by a same shadow part are not adjacent. According to various embodiments, a plurality of contiguous subcarriers included in the 20 MHz should become discrete after mapping. In other words, although subcarriers in each VRU are contiguous in the VRU, the subcarriers become discrete after mapping. In this mapping manner, the VRU formed by the contiguous subcarriers may be mapped to a PRU formed by the discrete subcarriers, which is equivalent to broadening a bandwidth corresponding to each subcarrier. Therefore, although the AP still uses a current RU allocation manner to allocate a resource to the STA, the AP may also obtain higher transmit power. In addition, for the AP, the current RU allocation manner is still used, and there is no need to define a plurality of distributed RUs and care about how to select and allocate the distributed RU.


All the 242 subcarriers (that is, all subcarriers) in the 20 MHz (the first frequency-domain resource) shown in FIG. 12 participate in mapping. That is, both first-type subcarriers and a second-type subcarrier that are included in the first frequency-domain resource participate in mapping. It should be understood that this embodiment of this application is intended to discrete the first-type subcarriers. Therefore, in some embodiments, the second-type subcarrier may not participate in mapping, that is, only the first-type subcarriers included in the first frequency-domain resource are mapped. Certainly, all the first-type subcarriers included in the first frequency-domain resource may participate in mapping, or some first-type resources included in the first frequency-domain resource may participate in mapping. This is not limited in this embodiment of this application. In this way, content of the interleaving matrix may be less, thereby improving interleaving efficiency. The following describes several mapping manners in which the second-type subcarrier does not participate in mapping.


Example 1: A Sequence Number of the Second-Type Subcarrier is not Input into an Interleaving Matrix


FIG. 13 is a schematic diagram in which the second-type subcarrier does not participate in mapping. For example, a sequence number sequence obtained in ascending order of sequence numbers of subcarriers included in the first frequency-domain resource is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and sequence numbers of the second-type subcarrier are 5 and 6. Because the second-type subcarrier does not participate in mapping, when the first frequency-domain resource is mapped, {1, 2, 3, 4, 7, 8, 9, 10} may be input into the interleaving matrix. It is assumed that a row quantity of the interleaving matrix is 2, and a column quantity is 4 (that is, N=2, M=4). In this case, elements in a first row of the interleaving matrix are sequentially {1, 2, 3, 4}, and elements in a second row are sequentially {7, 8, 9, 10}. Sequence numbers of subcarriers obtained through output by column are {1, 7, 2, 8, 3, 9, 4, 10}. That is, subcarriers whose sequence numbers are {1, 2, 3, 4, 7, 8, 9, 10} in the VRU are in a one-to-one correspondence with subcarriers whose sequence numbers are {1, 7, 2, 8, 3, 9, 4, 10} in the PRU. Because subcarriers whose sequence numbers are 5 and 6 do not participate in mapping, sequence numbers of the subcarriers whose sequence numbers are 5 and 6 in the PRU are still 5 and 6.


For example, sequence numbers of 242 subcarriers corresponding to first 20 MHz in MHz are −500 to −259, there are 18 pilot subcarriers in the first 20 MHz in 80 MHz, and sequence numbers of the pilot subcarriers are: sequence numbers in {−238, −224, −212, −198, −184, −170, −158, −144, −130, −116, −104, −90, −78, −64, −50, −36, −24, −10} plus an offset value (that is, −256), that is, {−494, −480, −468, −454, −440, −426, −414, −400, −386, −372, −360, −346, −334, −320, −306, −292, −280, −266}.


During mapping of the first 20 MHz in the 80 MHz, it may be determined that the 18 pilot subcarriers do not participate in mapping. That is, the 18 pilot subcarriers are not input into the interleaving matrix, and a quantity of subcarriers participating in mapping is 242−18=224 subcarriers. In this case, an 8*28 matrix may be designed as the interleaving matrix. In this case, subcarriers participating in mapping are input into the interleaving matrix, as shown in Table 2. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 2 shows only some subcarrier sequence numbers.


Sequence numbers of rows are sequentially output in a column output direction, to obtain subcarrier sequence numbers after mapping. It can be learned that contiguous subcarrier sequence numbers may be discrete by using the interleaving matrix. That is, elements in a subcarrier sequence number set {−500, −499, . . . , −259} of the VRU are in a one-to-one correspondence with elements in the following sequences: {−500, −470, −439, −409, −379, −349, −318, −288, −499, . . . , −289, −259}.


Example 2: Both sequence numbers of the first-type subcarriers and a sequence number of the second-type subcarrier that are included in the first time-frequency resource are input into an interleaving matrix, but after processing by the interleaving matrix, the sequence numbers of the first-type subcarriers in the interleaving matrix are output, and the sequence number of the second-type subcarrier is not output. That is, the sequence numbers of the subcarriers output from the interleaving matrix do not include the sequence number of the second-type subcarrier. To distinguish which sequence numbers are output and which sequence numbers are not output, the sequence number of the second-type subcarrier may be uniformly defined as a first preset sequence number, for example, “*”.


In some embodiments, in a sequence number sequence obtained based on the sequence numbers of the plurality of subcarriers included in the first time-frequency resource that are sorted according to the first order, the sequence number of the second-type subcarrier may be replaced with “*”, and then the obtained sequence number sequence is sequentially input into rows of the interleaving matrix. In other words, it may be considered that after the sequence numbers of the plurality of subcarriers included in the first time-frequency resource are input into the interleaving matrix by row according to the first order, the sequence number of the second-type subcarrier that does not participate in mapping in the interleaving matrix is replaced with “*”.


For example, FIG. 14 shows another example in which the second-type subcarrier does not participate in mapping. For example, the foregoing example is still used, that is, a row quantity of the interleaving matrix is 2, and a column quantity is 4. A sequence number sequence obtained in ascending order of sequence numbers of subcarriers included in the first frequency-domain resource is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and sequence numbers of the second-type subcarrier are 5 and 6. Because the second-type subcarrier participates in mapping, but the sequence number of the second-type subcarrier is not output after being processed by the interleaving matrix, the sequence number of the second-type subcarrier may be defined as “*”. When the first frequency-domain resource is mapped, {1, 2, 3, 4, *, *, 7, 8, 9, 10} may be input into the interleaving matrix. That is, elements in a first row of the interleaving matrix are sequentially {1, 2, 3, 4, *}, and elements in a second row are sequentially {7, 8, 9, 10, *}. Because the sequence number of “*” is not output, sequence numbers of subcarriers obtained through output by column are {1, 7, 2, 8, 3, 9, 4, 10}. That is, subcarriers whose sequence numbers are {1, 2, 3, 4, 7, 8, 9, 10} in the VRU are in a one-to-one correspondence with subcarriers whose sequence numbers are {1, 7, 2, 8, 3, 9, 4, 10} in the PRU. Sequence numbers of the subcarriers whose sequence numbers are 5 and 6 in the PRU are still 5 and 6.


In some other embodiments, in a sequence number sequence obtained based on the sequence numbers of the plurality of subcarriers included in the first time-frequency resource that are sorted according to the first order, the sequence number of the second-type subcarrier may be replaced with “*”. However, the sequence number of the second-type subcarrier is input into a preset location of the interleaving matrix, and the sequence numbers of the first-type subcarriers are sequentially input, according to the first order, into locations other than the location occupied by the sequence number of the second-type subcarrier in rows of the interleaving matrix. For example, it may be specified that the sequence number of * is sequentially input into a last column of each row of the interleaving matrix, the sequence number of * is sequentially input into a first column of each row of the interleaving matrix, or the sequence number of * is sequentially input into a location obtained according to a preset rule in the interleaving matrix. A specific location of the sequence number of the second-type subcarrier in the interleaving matrix is not limited in this embodiment of this application.


For example, FIG. 15 shows still another example in which the second-type subcarrier does not participate in mapping. The foregoing example is still used, that is, a row quantity of the interleaving matrix is 2, and a column quantity is 4. A sequence number sequence obtained in ascending order of sequence numbers of subcarriers included in the first frequency-domain resource is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and sequence numbers of the second-type subcarrier are 5 and 6. Because the second-type subcarrier participates in mapping, but the sequence number of the second-type subcarrier is not output after being processed by the interleaving matrix, the sequence number of the second-type subcarrier may be defined as “*”. It may be specified that the sequence number of * may be sequentially input into a last column of each row of the interleaving matrix. When the first frequency-domain resource is mapped, {1, 2, 3, 4, *, *, 7, 8, 9, 10} is input into the interleaving matrix. That is, elements in a first row of the interleaving matrix are sequentially {1, 2, 3, 4, *}, and elements in a second row are sequentially {7, 8, 9, 10, *}. Because the sequence number of “*” is not output, sequence numbers of subcarriers obtained through output by column are {1, 7, 2, 8, 3, 9, 4, 10}. That is, subcarriers whose sequence numbers are {1, 2, 3, 4, 7, 8, 9, 10} in the VRU are in a one-to-one correspondence with subcarriers whose sequence numbers are {1, 7, 2, 8, 3, 9, 4, 10} in the PRU. Sequence numbers of the subcarriers whose sequence numbers are 5 and 6 in the PRU are still 5 and 6.


For example, FIG. 16 shows an example in which a VRU of 20 MHz in 80 MHz is mapped to a PRU. In FIG. 15, an example in which a row quantity of the interleaving matrix is 2 and some first-type subcarriers participate in mapping is used, that is, the second-type subcarrier does not participate in mapping, and some first-type subcarriers participate in mapping. The second-type subcarrier that does not participate in mapping is a null subcarrier, that is, the second-type subcarrier that does not participate in mapping includes one null subcarrier on a left side and a right side of a 26-tone RU adjacent to a 106-tone RU, one null subcarrier on a left side of a first 26-tone RU, and one null subcarrier on a right side of the 106-tone RU. First-type subcarriers that do not participate in mapping are all subcarriers included in the 26-tone RU adjacent to the 106-tone RU. It can be learned from FIG. 16 that a quantity of subcarriers participating in mapping is 242-2-2−26=212, that is, content of the interleaving matrix is less, thereby improving interleaving efficiency.



FIG. 17 shows another example in which a VRU of 20 MHz in 80 MHz is mapped to a PRU. A difference between FIG. 17 and FIG. 16 lies in that, in FIG. 17, that a row quantity of the interleaving matrix is 4 is used as an example. It should be understood that 106-1 and 106-2 in FIG. 17 show two parts of 106 subcarriers.


It should be noted that, in FIG. 16 and FIG. 17, that the second-type subcarrier that does not participate in mapping is the null subcarrier is used as an example. Which type of subcarrier of the second-type subcarrier is not limited in this embodiment of this application. For example, the second-type subcarrier may also be a direct current subcarrier, may be a pilot subcarrier, or may be at least one of a null subcarrier, a direct current subcarrier, a guard subcarrier, or a pilot subcarrier.


For example, sequence numbers of 242 subcarriers corresponding to first 20 MHz in MHz are −500 to −259, there are 18 pilot subcarriers in the first 20 MHz in 80 MHz, and sequence numbers of the pilot subcarriers are: sequence numbers in {−238, −224, −212, −198, −184, −170, −158, −144, −130, −116, −104, −90, −78, −64, −50, −36, −24, −10} plus an offset value (that is, −256), that is, {−494, −480, −468, −454, −440, −426, −414, −400, −386, −372, −360, −346, −334, −320, −306, −292, −280, −266}.


During mapping of the first 20 MHz in the 80 MHz, it may be determined that the 18 pilot subcarriers do not participate in mapping. For example, sequence numbers of the 18 pilot subcarriers are input into the interleaving matrix, but the sequence numbers of the 18 pilot subcarriers are not output during output. In this case, the interleaving matrix may be designed as an 8*32 matrix, and subcarriers participating in mapping are input into the interleaving matrix, as shown in Table 3. Gray parts in Table 3 are sequence numbers of pilot subcarriers. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 3 shows only some subcarrier sequence numbers.


Sequence numbers in the interleaving matrix are output by column, that is, a subcarrier sequence number set of the VRU is {−500, −499, . . . , and −259}-{−494, −480, −468, −454, −440, −426, −414, −400, −386, −372, −360, −346, −334, −320, −306, −292, −280, −266}, and is in a one-to-one correspondence with elements in the following sequences: {−500, −436, −404, −340, . . . , −277}.


It should be understood that, for the pilot subcarrier, quantities of locations of the pilot subcarriers on different RUs are different. For example, FIG. 18 shows locations of pilot subcarriers in 80 MHz. It can be learned from FIG. 18 that a pilot subcarrier set of a 26-tone RU in any 20 MHz also includes pilot subcarriers of a 52-tone RU and a 106-tone RU in 20 MHz. To enable all RUs in an interleaving range (the first frequency-domain resource) can satisfy that pilot locations after mapping can remain unchanged regardless of which pilot subcarriers are selected. In this embodiment of this application, a maximum pilot set in the interleaving range may be set as a pilot subcarrier set that does not participate in mapping. For example, the pilot subcarrier that does not participate in mapping is a maximum pilot subcarrier set in the 26-tone RU in the first frequency-domain resource. In this way, mapping of the 26-tone RU, the 52-tone RU, or the 106-tone RU may be randomly selected in the range of 20 MHz, and original locations of the pilot subcarriers in the VRU and the PRU are not changed.


It should be noted that if a quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than a quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix, for example, a sequence number sequence obtained in ascending order of sequence numbers of subcarriers included in the first frequency-domain resource is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, and the interleaving matrix is a matrix with two rows and six columns, the AP may input the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource and a sequence number of a padding subcarrier into the interleaving matrix. The sequence number of the padding subcarrier is not output after being processed by interleaving matrix, that is, the padding subcarrier does not participate in mapping. To distinguish the padding subcarrier from the first-type subcarrier and the second-type subcarrier, the sequence number of the padding subcarrier may be a second preset sequence number, for example, “#”. In this case, it may be specified that the sequence number of the second-type subcarrier is input into a preset location of the interleaving matrix, and remaining sequence numbers of subcarriers that are in the first frequency-domain resource and that need to be input into the interleaving matrix are sequentially input, according to the first order, into locations other than the location occupied by the padding subcarrier in rows of the interleaving matrix. For example, it may be specified that some rows (or columns) fixed in the interleaving matrix are sequentially input into the interleaving matrix from a first column (or a first row), or it may be specified that some rows (or columns) fixed in the interleaving matrix are sequentially input into the interleaving matrix from a last column (or a last row). A specific location of the sequence number of the padding subcarrier in the interleaving matrix is not limited in this embodiment of this application.


It should be noted that, in the foregoing example, the first frequency-domain resource is 20 MHz, that is, a mapping granularity (interleaving granularity) of the RU is 242 subcarriers. It should be understood that a size of the mapping granularity may be determined based on a maximum bandwidth supported by the device, that is, a quantity of subcarriers that are in the first frequency-domain resource and that are input into the interleaving matrix is determined based on the maximum bandwidth supported by the device. For example, if the bandwidth supported by the device is greater than a PPDU bandwidth, various mapping granularities, such as 20 MHz, 40 MHz, and 80 MHz, may be supported in the PPDU bandwidth. If the bandwidth supported by the device is less than a PPDU bandwidth, the PPDU bandwidth needs to be ensured within the bandwidth supported by the device. For example, if the bandwidth supported by the device is 80 MHz, and a VRU allocated to the device is a 996-tone RU, scheduling cannot be performed in a mapping range of 160 MHz. In other words, if a VRU of 80 MHz is mapped to 160 MHz, an allocated resource cannot be scheduled.


In the foregoing mapping manner 1, that is, after the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource are input into the rows of the interleaving matrix according to the first order, sequence numbers of the plurality of subcarriers participating in mapping in the interleaving matrix are directly output in a column direction, and subcarriers in some RUs may not be more discrete. For example, in FIG. 17, after the 106-tone RU is mapped, there are still two contiguous adjacent subcarriers.


Therefore, in some embodiments, before the sequence numbers of the plurality of subcarriers participating in mapping of the interleaving matrix are output in the column direction, a row change operation may be performed on the rows of the interleaving matrix. For example, a shift operation performed on some rows in the interleaving matrix is essentially changing a row index sequence of the interleaving matrix. The example in FIG. 17 is still used. For example, a row index sequence {1, 2, 3, 4} of the interleaving matrix in FIG. 17 may be changed to {1, 3, 2, 4}, as shown in FIG. 19. It can be learned from FIG. 19 that, compared with a left diagram in FIG. 19, subcarriers included in the 106-tone RU are more discrete in a right diagram in FIG. 19. In other words, any two adjacent subcarriers included in the first PRU are noncontiguous in frequency domain. It should be understood that, that the any two adjacent subcarriers included in the first PRU are noncontiguous in frequency domain means that every two subcarriers are noncontiguous. The subcarriers included in the PRU herein include the first-type subcarrier and the second-type subcarrier.


In the foregoing embodiment, a discrete design is performed by using a single subcarrier as a granularity, that is, every two subcarriers are noncontiguous. In another implementation, a discrete granularity may also be a subcarrier group. One subcarrier group includes two or more subcarriers, every two subcarrier groups are noncontiguous, and subcarriers in the subcarrier group are contiguous.


In an example, a matrix may be constructed according to an original row index sequence of the interleaving matrix. An element in the matrix is each original row index. Operations are performed on the matrix for a plurality of times, to change the original row index sequence to a target row index sequence. The following provides two possible change manners.


Change manner 1: A first matrix is constructed according to the original row index sequence of the interleaving matrix, where a row quantity of the first matrix is 1, and a column quantity of the first matrix is greater than or equal to a row index quantity of the interleaving matrix. For example, the row index quantity of the interleaving matrix is N. If N is an odd number, the column quantity of the first matrix may be N+1. If N is an even number, the column quantity of the first matrix may be N. For example, if N=8, the row quantity of the first matrix is 1, the column quantity of the first matrix is 8, and an element in the first matrix is a row index. That is, the first matrix may be:
























1
2
3
4
5
6
7
8










Transformation operations are performed on the first matrix for a plurality of times until the first matrix becomes a target matrix with N rows and one column. In this case, row indexes in the target matrix are output in a row-first-column-later order, to obtain the target row index sequence.


For example, each transformation operation is performed to first divide, by column, a matrix obtained in a previous change into a first submatrix and a second submatrix, and then to move the second submatrix to a row added to the first submatrix, to form a new matrix. Then,
























1
2
3
4
5
6
7
8










After row change for the first time, the first matrix may be changed to:




















1
2
3
4



5
6
7
8










After row change for the second time, the first matrix may be changed to:


















1
2



5
6



3
4



7
8










After row change for the third time, the first matrix may be changed to:














1


5


3


7


2


6


4


8









Based on the change manner 1, the original row index sequence changes from {1, 2, 3, 4, 5, 6, 7, 8} to the target row index sequence {1, 5, 3, 7, 2, 6, 4, 8}. That is, when row-column transformation is performed by using the interleaving matrix, when output is performed by column, the output may not be performed according to an order of the original row index sequence, but may be performed according to an order of the target row index sequence. For example, when the sequence numbers of the plurality of subcarriers participating in mapping of the interleaving matrix are output according to the column direction, a first row of a first column is output first, then a fifth row of the first column is output, and then a third row of the first column is output, . . . , until all rows of the first column are output, and then sequence numbers of a second column are output until a sequence number of an eighth row of a last column is output.


In this manner, the subcarriers may be more discrete, as shown in FIG. 20. FIG. 20 shows a correspondence between the original row index sequence and the target row index sequence. In FIG. 20, a row quantity of the interleaving matrix is 8. When the first frequency-domain resource is mapped, the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource are sequentially input into the interleaving matrix according to the first order, to obtain a left diagram shown in FIG. 19. Before the sequence numbers of the subcarriers in the interleaving matrix are output in a column direction, a left diagram in FIG. 20 is changed by row, to obtain a right diagram in FIG. 20. Then, the sequence numbers of the subcarriers in the interleaving matrix are output in the column direction. It can be learned from FIG. 19 that, before the sequence numbers of the subcarriers in the interleaving matrix are output, a row transformation operation is performed on the interleaving matrix, so that the subcarriers can be more discrete.


It should be understood that N=8 (an even number) is used as an example in the foregoing. When N is an odd number, an element in an (N+1)th column may be a predefined sequence number, for example, *.


Similarly, if N=16, an original sequence number sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and a target row index sequence {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16} is obtained in the first change manner.


It should be noted that FIG. 20 shows the change of the row index, but it does not mean that the interleaving matrix has only one column, that is, each row in FIG. 20 corresponds to a plurality of columns of the interleaving matrix. In this manner, the example in Table 2 is still used. When the sequence numbers of the plurality of subcarriers participating in mapping of the interleaving matrix are output according to the column direction, a first row of a first column is output first, then a fifth row of the first column is output, and then a third row of the first column is output, . . . , until all rows of the first column are output, and then sequence numbers of a second column are output until a sequence number of an eighth row of a last column is output.


For example, the example in Table 2 is still used, that is, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are −500 to −259, and sequence numbers of 18 pilot subcarriers in the first 20 MHz in 80 MHz are not input into the interleaving matrix. Therefore, before the sequence numbers in Table 2 are output, row index transformation may be performed on the Table 2, to obtain Table 4. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 4 shows only some subcarrier sequence numbers.


Sequence numbers of rows are sequentially output in a column output direction, to obtain subcarrier sequence numbers after mapping. That is, a subcarrier sequence number set {-500, −499, . . . , −259} of the VRU is in a one-to-one correspondence with elements in the following sequences: {−500, −379, −439, −318, −470, −349, −409, −288, . . . , −380, −259}.


For another example, the example in Table 3 is still used, that is, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are −500 to −259, and sequence numbers of 18 pilot subcarriers in the first 20 MHz in 80 MHz are input into the interleaving matrix. Therefore, before the sequence numbers in Table 3 are output, row index transformation may be performed on the Table 3, to obtain Table 5. Gray parts in Table 5 are sequence numbers of pilot subcarriers. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 5 shows only some subcarrier sequence numbers.


Sequence numbers of rows are sequentially output in a column output direction, to obtain subcarrier sequence numbers after mapping. That is, a subcarrier sequence number set {-500, −499, . . . , −259} of the VRU is in a one-to-one correspondence with elements in the following sequences: {−500, −436, −308, −340, −404, −276, . . . , −373, −245}.


Change manner 2: A second matrix is constructed according to the original row index sequence of the interleaving matrix, where a row quantity of the second matrix is greater than or equal to 2, and row indexes in the original row index sequence in the second matrix are in ascending order starting from a first row and a first column, and row indexes corresponding to rows may be alternately output from the first column of the second matrix in ascending order of columns until a last column, and then in descending order of columns, to obtain the target row index sequence.


For example, a row quantity of the second matrix is 2. If the original row index sequence is {1, 2, . . . , N}, row indexes in the original row index sequence may be sequentially input into the second matrix in a row-first-column-later order. If N is an odd number, a last row index may be represented by *. When a transformation operation is performed on the original row index sequence, row indexes corresponding to rows may be alternately output from a first column of the second matrix in ascending order of columns, and then in descending order of columns, to obtain the target row index sequence.


For example, FIG. 21 shows an example of outputting a row index sequence. A solid line in FIG. 21 indicates that row indexes corresponding to a first row and a second row are alternately output in ascending order of columns, and a dashed line in FIG. 21 indicates that row indexes corresponding to the first row and the second row are alternately output in descending order of columns.


For example, if N=8, a row quantity of the second matrix is 2, a column quantity is 4, and the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, that is, the first matrix may be:




















1
2
3
4



5
6
7
8










According to the mapping manner of the row index sequence in FIG. 21, a target row index sequence {1, 6, 3, 8, 4, 7, 2, 5} is output.


In this manner, the subcarriers may also be more discrete, as shown in FIG. 22. FIG. 22 shows a correspondence between the original row index sequence and the target row index sequence. In FIG. 22, a row quantity of the interleaving matrix is 8. When the first frequency-domain resource is mapped, the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource are sequentially input into the interleaving matrix according to the first order, to obtain a left diagram shown in FIG. 22. Before sequence numbers of the subcarriers in the interleaving matrix are output in a column direction, a left diagram in FIG. 22 is changed by row, to obtain a right diagram in FIG. 22. Then, the sequence numbers of the subcarriers in the interleaving matrix are output in the column direction. It can be learned from FIG. 22 that, before the sequence numbers of the subcarriers in the interleaving matrix are output, a row transformation operation is performed on the interleaving matrix, so that the subcarriers can be more discrete.


Similarly, if N=16, an original sequence number sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16}, and a target row index sequence {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9} is obtained in the second change manner.


For example, the example in Table 2 is still used, that is, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are −500 to −259, and sequence numbers of 18 pilot subcarriers in the first 20 MHz in 80 MHz are not input into the interleaving matrix. Therefore, before the sequence numbers in Table 2 are output, row index transformation may be performed on the Table 2, to obtain Table 6. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 6 shows only some subcarrier sequence numbers.


Sequence numbers of rows are sequentially output in a column output direction, to obtain subcarrier sequence numbers after mapping. That is, a subcarrier sequence number set {-500, −499, . . . , −259} of the VRU is in a one-to-one correspondence with elements in the following sequences: {−500, −349, −439, −288, −409, −318, −470, −379, . . . , −441, −350}.


For another example, the example in Table 3 is still used, that is, sequence numbers of 242 subcarriers corresponding to first 20 MHz in 80 MHz are −500 to −259, and sequence numbers of 18 pilot subcarriers in the first 20 MHz in 80 MHz are input into the interleaving matrix. Therefore, before the sequence numbers in Table 3 are output, row index transformation may be performed on the Table 3, to obtain Table 7. Gray parts in Table 7 are sequence numbers of pilot subcarriers. It should be understood that all blank parts in the table are corresponding to subcarrier sequence numbers. For brevity, Table 7 shows only some subcarrier sequence numbers.


Sequence numbers of rows are sequentially output in a column output direction, to obtain subcarrier sequence numbers after mapping. That is, a subcarrier sequence number set {-500, −499, . . . , −259} of the VRU is in a one-to-one correspondence with elements in the following sequences: {−500, −340, −436, −276, −404, −308, −468, −372, . . . , −437, −341}.


It should be noted that the foregoing two transformation methods of the row index may be applied to any size of row transformation of the interleaving matrix from the VRU to the PRU. For example, an interleaving matrix with a fixed row quantity, for example, 4 rows, 8 rows, or 16 rows, may also be an interleaving matrix with a fixed column quantity. Because a minimum RU is an RU of 26 subcarriers, a column quantity of the interleaving matrix may be 26 (without considering the subcarrier, the column quantity may even be 24), and a row quantity may be determined based on a total input size, and then discreteness is performed through row transformation. In conclusion, an example of eight rows in this embodiment is merely an example, and may be actually an interleaver with a fixed row quantity, an interleaver with a fixed column quantity, an interleaver with a variable row and column quantity, or the like.


Mapping manner 2: The mapping relationship between the VRU and the PRU is a mapping relationship table between a sequence number of each subcarrier included in the VRU and a sequence number of each subcarrier included in the PRU. That is, the AP may map a first frequency-domain resource based on the mapping relationship table. For example, a subcarrier 1 in the VRU corresponds to a subcarrier 5 in the PRU, and a subcarrier 2 in the VRU corresponds to a subcarrier 8 in the PRU. In this mapping manner, the STA can determine a location of each subcarrier in the PRU in a corresponding first frequency-domain resource only by searching the mapping relationship table, which is simple.


For example, the mapping relationship table may be the foregoing Table 2 to Table 7. In a broad sense, the mapping relationship table may be considered as sequence number sequences obtained through outputting by column in Table 2 to Table 7.


It should be noted that a specific implementation form of the mapping relationship between the VRU and the PRU is not limited in this embodiment of this application. For example, the mapping relationship may be the foregoing interleaving matrix (also considered as a mapping matrix), or may be the foregoing mapping relationship table. In some embodiments, the mapping relationship between the VRU and the PRU may also be a mapping formula, for example,







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the matrix, NCOL is a column quantity of the matrix, k is a sequence number of a subcarrier that is input into the matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the matrix.


An embodiment of this application further provides a resource mapping method. The resource mapping method may be implemented by a communication apparatus, for example, an interleaver or a chip disposed in the interleaver.


In an example, the interleaver may be configured to map a sequence number of a subcarrier of the first VRU to a sequence number of a subcarrier of the first PRU based on the interleaving matrix. For example, a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on the interleaver satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




NROW is a row quantity of the interleaver, NCOL is a column quantity of the interleaver, k is a sequence number of a subcarrier that is input into the interleaver, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaver. For specific implementation of the interleaver, refer to the implementation of the interleaving matrix in the foregoing method embodiment. Details are not described herein again. In addition, for a specific implementation in which the interleaver maps the VRU to the PRU, refer to related content in the mapping manner 1 and the mapping manner 2. Details are not described herein again.


It should be noted that an interleaving level of the interleaver is not limited in this embodiment of this application. For example, directly outputting the sequence numbers of the plurality of subcarriers in a row-in-column-out manner may be considered as first-level interleaving, and outputting the sequence numbers of the plurality of subcarriers in a row-in-column-out manner as shown in the foregoing change manner 1 or change manner 2 may be considered as second-level interleaving.


The resource allocation method provided in this embodiment of this application is essentially a mapping manner from a VRU to a PRU. In the mapping manner, a contiguous VRU may be mapped to a discrete PRU. Based on this mapping manner, a transmit end may notify a receive end that an RU allocated to the receive end is a VRU, but the transmit end sends data on the discrete PRU to which the contiguous VRU is mapped. Because the contiguous VRU is mapped to the discrete PRU, it is equivalent to reducing a quantity of subcarriers in each MHz, so that the transmit end can support higher transmit power. In addition, the transmit end may use a resource allocation manner in which a bandwidth is divided into several resource units, and there is no need to define a plurality of distributed RUs or care about how to select and allocate the distributed RU, so that maximum transmit power of a device can be increased.


In the foregoing embodiments provided in this application, the methods provided in embodiments of this application are separately described from a perspective of interaction between the first device and the second device. To implement functions in the foregoing methods provided in embodiments of this application, the first device and the second device may include a hardware structure and/or a software module, and implement the foregoing functions in a form of the hardware structure, the software module, or a combination of the hardware structure and the software module. Whether a function in the foregoing functions is performed by using the hardware structure, the software module, or the combination of the hardware structure and the software module depends on particular applications and design constraints of the technical solutions.


The following describes, with reference to the accompanying drawings, a communication apparatus for implementing the foregoing method in embodiments of this application. Therefore, all the foregoing content may be used in the following embodiments. Repeated content is not described again.



FIG. 23 is a schematic block diagram of a communication apparatus 2300 according to an embodiment of this application. The communication apparatus 2300 may correspondingly implement functions or steps implemented by the first device or the second device in the foregoing method embodiments. The communication apparatus may include a processing module 2310 and a transceiver module 2320. Optionally, the communication apparatus may further include a storage unit. The storage unit may be configured to store instructions (code or a program) and/or data. The processing module 2310 and the transceiver module 2320 may be coupled to the storage unit. For example, the processing module 2310 may read the instructions (code or program) and/or data in the storage unit, to implement a corresponding method. The foregoing units may be independently disposed, or may be partially or completely integrated.


In some possible implementations, the communication apparatus 2300 can correspondingly implement behavior and functions of the first device in the method embodiment. For example, the communication apparatus 2300 may be an AP, or may be a component (for example, a chip or a circuit) used in the AP. The transceiver module 2320 may be configured to perform all receiving or sending operations performed by the first device in the embodiment shown in FIG. 9, for example, S901 and S903 in the embodiment shown in FIG. 9, and/or another process used to support the technology described in this specification. The processing module 2310 is configured to perform all operations other than the receiving or sending operations performed by the first device in the embodiment shown in FIG. 9, for example, S902 in the embodiment shown in FIG. 9, and/or another process used to support the technology described in this specification.


For example, the transceiver module 2320 is configured to send resource allocation information to a second device, where the resource allocation information indicates a first virtual resource unit VRU, and the first VRU includes a plurality of contiguous subcarriers in frequency domain; the processing module 2310 is configured to map the first VRU to a first physical resource unit PRU based on a mapping relationship between a VRU and a PRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain; and the transceiver module 2320 is further configured to transmit data on the first PRU.


In some possible implementations, the communication apparatus 2300 can correspondingly implement behavior and functions of the second device in the method embodiment. For example, the communication apparatus 2300 may be a STA or an AP, or may be a component (for example, a chip or a circuit) used in the STA or the AP. The transceiver module 2320 may be configured to perform all receiving or sending operations performed by the second device in the embodiment shown in FIG. 9, for example, S901 and S903 in the embodiment shown in FIG. 9, and/or another process used to support the technology described in this specification. The processing module 2310 is configured to perform operations other than the receiving or sending operation performed by the second device in the embodiment shown in FIG. 9, for example, S902 in the embodiment shown in FIG. 9, and/or another process used to support the technology described in this specification.


For example, the transceiver module 2320 is configured to receive resource allocation information from a first device, where the resource allocation information indicates a first VRU, and the first VRU includes a plurality of contiguous subcarriers in frequency domain; the processing module 2310 is configured to determine, based on a mapping relationship between a VRU and a physical resource unit PRU, a first PRU corresponding to the first VRU, where a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain; and the transceiver module 2320 is configured to receive data from the first device on the first PRU.


In some possible implementations, the communication apparatus 2300 can correspondingly implement behavior and functions of the interleaver in the method embodiment. For example, the communication apparatus 2300 may be an interleaver, or may be a component (for example, a chip or a circuit) used in the interleaver. The transceiver module 2320 may be configured to perform all receiving or sending operations performed by the interleaver in this embodiment of this application. The processing module 2310 is configured to perform all operations other than the receiving or sending operations performed by the interleaver in this embodiment of this application.


For example, the processing module 2310 is configured to map a sequence number of a subcarrier of a first VRU to a sequence number of a subcarrier of a first PRU based on an interleaving matrix, where the first VRU includes a plurality of contiguous subcarriers in frequency domain, and a plurality of subcarriers included in the first PRU are noncontiguous in frequency domain; and the transceiver module 2320 is configured to output the sequence number of the subcarrier of the first PRU.


In a possible implementation of the communication apparatus 2300, a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on the interleaving matrix satisfies the following formula:







i
=



N

R

O

W


·

(

k


mod



N

C

O

L



)


+



k

N
COL






,




where


NROW is a row quantity of the interleaving matrix, NCOL is a column quantity of the interleaving matrix, k is a sequence number of a subcarrier that is input into the interleaving matrix, and i is a sequence number obtained by interleaving a subcarrier whose sequence number is k by using the interleaving matrix.


In a possible implementation of the communication apparatus 2300, any adjacent subcarriers included in the first PRU are noncontiguous in frequency domain.


In a possible implementation of the communication apparatus 2300, before a sequence number of each subcarrier included in the interleaving matrix is output, an original row index sequence of the interleaving matrix is changed to a target row index sequence; and

    • the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, and the target row index sequence is {1, 5, 3, 7, 2, 6, 4, 8} or {1, 6, 3, 8, 4, 7, 2, 5}; or
    • the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and the target row index sequence is {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16}, or {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9}.


In a possible implementation of the communication apparatus 2300, that the communication apparatus 2300 maps the first VRU to the first PRU includes:

    • sequentially inputting, into rows of the interleaving matrix according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located, and outputting sequence numbers of the subcarriers in the interleaving matrix according to a column direction of the interleaving matrix, where the first order is an ascending order, or the first order is a descending order.


In a possible implementation of the communication apparatus 2300, in the plurality of subcarriers included in the first frequency-domain resource, subcarriers that are input into the interleaving matrix are first-type subcarriers, or subcarriers that are input into the interleaving matrix are first-type subcarriers and a second-type subcarrier, the first-type subcarrier is used to carry data, and the second-type subcarrier includes one or more of a null subcarrier, a direct current subcarrier, a guard subcarrier, and a pilot subcarrier; and

    • sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of the first-type subcarriers in the plurality of subcarriers included in the first frequency-domain resource;
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number; or
    • sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, the first preset sequence number is located at a preset location of the interleaving matrix, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the first preset sequence number.


In a possible implementation of the communication apparatus 2300, the second-type subcarrier is a pilot subcarrier, and the pilot subcarrier is a maximum pilot subcarrier set of a 26-tone RU in the first frequency-domain resource.


In a possible implementation of the communication apparatus 2300, a quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than a quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix; and

    • the sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of subcarriers that are in the first frequency-domain resource and that are to be input into the interleaving matrix and a sequence number of a padding subcarrier, the sequence number of the padding subcarrier is located in a preset location of the interleaving matrix, each sequence number of the padding subcarrier is a second preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not include the second preset sequence number.


In a possible implementation of the communication apparatus 2300, a quantity of the plurality of subcarriers included in the first frequency-domain resource is determined based on a maximum bandwidth supported by the first device.


In a possible implementation of the communication apparatus 2300, the first VRU is mapped to the first PRU based on a mapping relationship between a sequence number of each subcarrier included in the first VRU and a sequence number of each subcarrier included in the first PRU.


In a possible implementation of the communication apparatus 2300, the sequence numbers of the subcarriers included in the first frequency-domain resource start from 0 or 1;

    • the sequence numbers of the subcarriers included in the first frequency-domain resource are subcarrier numbers in actual frequency bands corresponding to the subcarriers; or
    • the sequence numbers of the subcarriers included in the first frequency-domain resource are preset sequence numbers plus a preset offset value.


In a possible implementation of the communication apparatus 2300, the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, and the sequence numbers of the subcarriers corresponding to the first PRU are located in the first set;

    • the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a second set, and there is no intersection between the first set and the second set, or a part of sequence numbers in the first set are the same as those in the second set are the same; or
    • the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a plurality of second sets, there is no intersection between the plurality of second sets, and there is no intersection between the first set and the plurality of second sets, or there is an intersection between the first set and a part of the plurality of second sets.


It should be understood that in this embodiment of this application, the processing module 2310 may be implemented by a processor or a processor-related circuit component, and the transceiver module 2320 may be implemented by a transceiver, a transceiver-related circuit component, or a communication interface.



FIG. 24 shows a communication apparatus 2400 according to an embodiment of this application. The communication apparatus 2400 may be an AP, a STA, or an interleaver, and can implement functions of the first device, the second device, or the interleaver in the methods provided in embodiments of this application. Alternatively, the communication apparatus 2400 may be an apparatus that can support the first device to implement a corresponding function in the methods provided in embodiments of this application, an apparatus that can support the second device to implement a corresponding function in the methods provided in embodiments of this application, or an apparatus that can support the interleaver to implement a corresponding function in the methods provided in embodiments of this application. The communication apparatus 2400 may be a chip or a chip system. In this embodiment of this application, the chip system may include a chip, or may include a chip and another discrete component.


In hardware implementation, the transceiver module 2320 may be a transceiver 2410.


The communication apparatus 2400 includes at least one processor 2420, configured to implement or support the communication apparatus 2400 to implement functions of the first device or the second device in the methods provided in embodiments of this application, for example, generating the foregoing PPDU. The communication apparatus 2400 may further include at least one memory 2430, configured to store program instructions and/or data. The memory 2430 is coupled to the processor 2420. The coupling in this embodiment of this application may be an indirect coupling or a communication connection between apparatuses, units, or modules in an electrical form, a mechanical form, or another form, and is used for information exchange between the apparatuses, the units, or the modules. The processor 2420 may collaborate with the memory 2430. The processor 2420 may execute the program instructions and/or the data stored in the memory 2430, to enable the communication apparatus 2400 to implement a corresponding method. At least one of the at least one memory may be located in the processor.


The communication apparatus 2400 may further include the transceiver 2410, configured to communicate with another device by using a transmission medium, so that an apparatus in the communication apparatus 2400 may communicate with the another device. For example, when the communication apparatus is a terminal, the another device is a network device. Alternatively, when the communication apparatus is a network device, the another device is a terminal. The processor 2420 may send and receive data by using the transceiver 2410. The transceiver 2410 may be a transceiver. The communication apparatus 2400 may further include a radio frequency unit. The radio frequency unit may be independent of the communication apparatus 2400, or may be integrated into the communication apparatus 2400. Certainly, the transceiver 2410 may further include an antenna, for example, a remote antenna independent of the communication apparatus 2400, or an antenna integrated into the communication apparatus 2400.


A specific connection medium between the transceiver 2410, the processor 2420, and the memory 2430 is not limited in this embodiment of this application. In this embodiment of this application, the memory 2430, the processor 2420, and the transceiver 2410 are connected through a bus 2440 in FIG. 24. The bus is represented by using a thick line in FIG. 24. A manner of connection between other components is merely an example for description, and imposes no limitation. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of expression, the bus is indicated by only a bold line in FIG. 24, which does not mean that only one bus or one type of bus exists.


In embodiments of this application, the processor 2420 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logical block diagrams disclosed in embodiments of this application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed with reference to embodiments of this application may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module.


In embodiments of this application, the memory 2430 may be a nonvolatile memory, a hard disk drive (HDD) or a solid-state drive (SSD), or may be a volatile memory, for example, a random access memory (RAM). The memory is any other medium that can carry or store expected program code in a form of an instruction or a data structure and that can be accessed by a computer, but is not limited thereto. The memory in embodiments of this application may alternatively be a circuit or any other apparatus that can implement a storage function, and is configured to store the program instructions and/or the data.


It should be noted that the communication apparatus in the foregoing embodiments may be a terminal, a circuit, a chip used in the terminal, or another combined component, component, or the like that has a function of the terminal. When the communication apparatus is the terminal, the transceiver module may be a transceiver, and may include an antenna, a radio frequency circuit, and the like. The processing module may be a processor, for example, a central processing module (CPU). When the communication apparatus is a component having a function of the terminal, the transceiver module may be a radio frequency unit, and the processing module may be a processor. When the communication apparatus is the chip or a chip system, the transceiver module may be an input/output interface of the chip or the chip system, and the processing module may be a processor of the chip or the chip system.


As a possible product form, the AP or the STA described in this embodiment of this application may further be implemented by using the following components: one or more field programmable gate arrays (FPGAs), a programmable logic device (PLD), a controller, a state machine, gate logic, a discrete hardware component, any other suitable circuit, or any combination of circuits that can perform various functions described in this application.


The first device in embodiments of this application may be an AP or a STA. The second device may be an AP or a STA. It should be understood that the APs in various product forms have any function of the AP in the foregoing method embodiments. Details are not described herein again. The STAs in various forms have any function of the STA in the foregoing method embodiments. Details are not described herein again.


An embodiment of this application further provides a communication system. The communication system includes a second device and a first device, or may further include more first devices and second devices. For example, the communication system includes a second device and a first device that are configured to implement related functions in FIG. 9.


The first device is configured to implement functions related to the first device in FIG. 9. The second device is configured to implement functions related to the second device in FIG. 9. For example, the second device may perform S902 and S903 in the embodiment shown in FIG. 9, and the first device may perform S901 and S902 in the embodiment shown in FIG. 9.


An embodiment of this application further provides a computer-readable storage medium, including instructions. When the instructions are run on a computer, the computer is enabled to perform the method performed by the first device or the second device in FIG. 9.


An embodiment of this application further provides a computer program product, including computer program code. When the computer program code is run on a computer, the computer is enabled to perform the method performed by the first device or the second device in FIG. 9.


An embodiment of this application provides a chip system. The chip system includes a processor, may further include a memory, and is configured to implement the function of the first device or the second device in the foregoing methods. The chip system may include a chip, or may include a chip and another discrete component.


An embodiment of this application further provides a communication apparatus, including a processor and an interface. The processor is configured to perform the resource allocation method or the resource mapping method in any one of the foregoing method embodiments.


It should be understood that the communication apparatus may be a chip. The processor may be implemented by hardware, or may be implemented by software. When the processor is implemented by the hardware, the processor may be a logic circuit, an integrated circuit, or the like. When the processor is implemented by the software, the processor may be a general-purpose processor. The general-purpose processor is implemented by reading software code stored in a memory. The memory may be integrated into the processor, or may be located outside the processor and exist independently.


It should be understood that the terms “system” and “network” may be used interchangeably in embodiments of this application. “At least one” means one or more, and “a plurality of” means two or more. The term “and/or” describes an association relationship between associated objects, and represents that three relationships may exist. For example, A and/or B may represent the following cases: Only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character “/” generally indicates an “or” relationship between the associated objects. “At least one of the following items (pieces)” or a similar expression thereof refers to any combination of these items, including any combination of singular items (pieces) or plural items (pieces). For example, at least one of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular or plural.


In addition, unless otherwise stated, ordinal numbers such as “first” and “second” in embodiments of this application are for distinguishing between a plurality of objects, but are not intended to limit an order, a time sequence, priorities, or importance of the plurality of objects. For example, first information and second information are merely used to distinguish between different indication information, and do not indicate different priorities, importance, or the like of the two types of information.


It should be understood that sequence numbers of the foregoing processes do not mean execution sequences in various embodiments of this application. The execution sequences of the processes should be determined according to functions and internal logic of the processes, and should not be construed as any limitation on the implementation processes of embodiments of this application.


In addition, the term “for example” in embodiments of this application is used to represent an example or a description. Any embodiment or implementation solution described as an “example” in embodiments of this application should not be explained as being more preferred than another embodiment or implementation solution. That is, using the word “example” is intended to describe a concept in a specific manner.


All or some of the methods in embodiments of this application may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement embodiments, all or a part of embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedure or functions according to embodiments of the present disclosure are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, a network device, user equipment, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by the computer, or a data storage device such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a digital video disc (DVD)), a semiconductor medium (for example, an SSD), or the like.


The foregoing descriptions are merely example implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.









APPENDIX 1







Data and pilot subcarrier indices for RUs in a 20 MHz EHT PPDU (Data


and pilot subcarrier indices for RUs in a 20 MHz EHT PPDU)









RU index and subcarrier sequence number range


RU type
(RU index and subcarrier range)















26-tone RU
RU 1
RU 2
RU 3
RU 4
RU 5



[−121:−96]
[−95:−70]
[−68:−43]
[−42:−17]
[−16:−4,







4:16]



RU 6
RU 7
RU 8
RU 9



[17:42]
[43:68]
[70:95]
[96:121]


52-tone RU
RU 1
RU 2
RU 3
RU 4



[−121:−70]
[−68:−17]
[17:68]
[70:121]


106-tone RU
RU 1

RU 2



[−122:−17]

[17:122]









242-tone RU
RU 1




[−122:−2, 2:122]
















APPENDIX 2







Data and pilot subcarrier indices for RUs in a 40 MHz EHT PPDU (Data


and pilot subcarrier indices for RUs in a 40 MHZ EHT PPDU)








RU type
RU index and subcarrier sequence number range (RU index and subcarrier range)















26-tone RU
RU 1
RU 2
RU 3
RU 4
RU 5



[−243:−218]
[−217:−192]
[−189:−164]
[−163:−138]
[−136:−111]



RU 6
RU 7
RU 8
RU 9



[−109:−84]
[−83:−58]
[−55:−30]
[−29:−4]



RU 10
RU 11
RU 12
RU 13
RU 14



[4:29]
[30:55]
[58:83]
[84:109]
[111:136]



RU 15
RU 16
RU 17
RU 18



[138:163]
[164:189]
[192:217]
[218:243]


52-tone RU
RU 1
RU 2
RU 3
RU 4



[−243:−192]
[−189:−138]
[−109:−58]
[−55:−4]



RU 5
RU 6
RU 7
RU 8



[4:55]
[58:109]
[138:189]
[192:243]


106-tone RU
RU 1
RU 2
RU 3
RU 4



[−243:−138]
[−109:−4]
[4:109]
[138:243]










242-tone RU
RU 1
RU 2




[−244:−3]
[3:244]









484-tone RU
RU 1




[−244:−3, 3:244]
















APPENDIX 3







Data and pilot subcarrier indices for RUs in an 80 MHz EHT PPDU


(Data and pilot subcarrier indices for RUs in an 80 MHz EHT PPDU)








RU type
RU index and subcarrier sequence number range (RU index and subcarrier range)















26-tone
RU 1
RU 2
RU 3
RU 4
RU 5


RU
[−499:−474]
[−473:−448]
[−445:−420]
[−419:−394]
[−392:−367]



RU 6
RU 7
RU 8
RU 9



[−365:−340]
[−339:−314]
[−311:−286]
[−285:−260]



RU 10
RU 11
RU 12
RU 13
RU 14



[−252:−227]
[−226:−201]
[−198:−173]
[−172:−147]
[−145:−120]



RU 15
RU 16
RU 17
RU 18
RU 19



[−118:−93]
[−92:−67]
[−64:−39]
[−38:−13]
[not defined]



RU 20
RU 21
RU 22
RU 23
RU 24



[13:38]
[39:64]
[67:92]
[93:118]
[120:145]



RU 25
RU 26
RU 27
RU 28



[147:172]
[173:198]
[201:226]
[227:252]



RU 29
RU 30
RU 31
RU 32
RU 33



[260:285]
[286:311]
[314:339]
[340:365]
[367:392]



RU 34
RU 35
RU 36
RU 37



[394:419]
[420:445]
[448:473]
[474:499]


52-tone
RU 1
RU 2
RU3
RU 4


RU
[−499:−448]
[−445:−394]
[−365:−314]
[−311:−260]



RU 5
RU 6
RU 7
RU 8



[−252:−201]
[−198:−147]
[−118:−67]
[−64:−13]



RU 9
RU 10
RU 11
RU 12



[13:64]
[67:118]
[147:198]
[201:252]



RU 13
RU 14
RU 15
RU 16



[260:311]
[314:365]
[394:445]
[448:499]


106-tone
RU 1
RU 2
RU 3
RU 4


RU
[−499:−394]
[−365:−260]
[−252:− 147]
[−118:−13]



RU 5
RU 6
RU 7
RU 8



[13:118]
[147:252]
[260:365]
[394:499]


242-tone
RU 1
RU 2
RU 3
RU 4


RU
[−500:−259]
[−253:−12]
[12:253]
[259:500]


484-tone
RU 1
RU 2


RU
[−500:−259,
[12:253,



−253:−12]
259:500]


996-tone
RU 1


RU
[−500:−3,



3:500]
















APPENDIX 4







Data and pilot subcarrier indices for RUs in a 160 MHz EHT PPDU


(Data and pilot subcarrier indices for RUs in a 160 MHz EHT PPDU)








RU type
RU index and subcarrier sequence number range (RU index and subcarrier range)















26-tone RU
RU 1
RU 2
RU 3
RU 4
RU 5



[−1011:−986]
[−985:−960]
[−957:−932]
[−931:−906]
[−904:−879]



RU 6
RU 7
RU 8
RU 9



[−877:−852]
[−851:−826]
[−823:−798]
[−797:−772]



RU 10
RU 11
RU 12
RU 13
RU 14



[−764:−739]
[−738:−713]
[−710:−685]
[−684:−659]
[−657:−632]



RU 15
RU 16
RU 17
RU 18
RU 19



[−630:−605]
[−604:−579]
[−576:−551]
[−550:−525]
[not defined]



RU 20
RU 21
RU 22
RU 23
RU 24



[−499:−474]
[−473:−448]
[−445:−420]
[−419:−394]
[−392:−367]



RU 25
RU 26
RU 27
RU 28



[−365:−340]
[−339:−314]
[−311:−286]
[−285:−260]



RU 29
RU 30
RU 31
RU 32
RU 33



[−252:−227]
[−226:−201]
[−198:−173]
[−172:−147]
[−145:−120]



RU 34
RU 35
RU 36
RU 37



[−118:−93]
[−92:−67]
[−64:−39]
[−38:−13]



RU 38
RU 39
RU 40
RU 41
RU 42



[13:38]
[39:64]
[67:92]
[93:118]
[120:145]



RU 43
RU 44
RU 45
RU 46



[147:172]
[173:198]
[201:226]
[227:252]



RU 47
RU 48
RU 49
RU 50
RU 51



[260:285]
[286:311]
[314:339]
[340:365]
[367:392]



RU 52
RU 53
RU 54
RU 55
RU 56



[394:419]
[420:445]
[448:473]
[474:499]
[not defined]



RU 57
RU 58
RU 59
RU 60
RU 61



[525:550]
[551:576]
[579:604]
[605:630]
[632:657]



RU 62
RU 63
RU 64
RU 65



[659:684]
[685:710]
[713:738]
[739:764]



RU 66
RU 67
RU 68
RU 69
RU 70



[772:797]
[798:823]
[826:851]
[852:877]
[879:904]



RU 71
RU 72
RU 73
RU 74



[906:931]
[932:957]
[960:985]
[986:1011]


52-tone
RU 1
RU 2
RU 3
RU 4


RU
[−1011:−960]
[−957:−906]
[−877:−826]
[−823:−772]



RU 5
RU 6
RU 7
RU 8



[−764:−713]
[−710:−659]
[−630:−579]
[−576:−525]



RU 9
RU 10
RU 11
RU 12



[−499:−448]
[−445:−394]
[−365:−314]
[−311:−260]



RU 13
RU 14
RU 15
RU 16



[−252:−201]
[−198:−147]
[−118:−67]
[−64:−13]



RU 17
RU 18
RU 19
RU 20



[13:64]
[67:118]
[147:198]
[201:252]



RU 21
RU 22
RU 23
RU 24



[260:311]
[314:365]
[394:445]
[448:499]



RU 25
RU 26
RU 27
RU 28



[525:576]
[579:630]
[659:710]
[713:764]



RU 29
RU 30
RU 31
RU 32



[772:823]
[826:877]
[906:957]
[960:1011]


106-tone
RU 1
RU 2
RU 3
RU 4


RU
[−1011:−906]
[−877:−772]
[−764:−659]
[−630:−525]



RU 5
RU 6
RU 7
RU 8



[−499:− 394]
[−365:−260]
[−252:−147]
[−118:−13]



RU 9
RU 10
RU 11
RU 12



[13:118]
[147:252]
[260:365]
[394:499]



RU 13
RU 14
RU 15
RU 16



[525:630]
[659:764]
[772:877]
[906:1011]


242-tone
RU 1
RU 2
RU 3
RU 4


RU
[−1012:−771]
[−765:−524]
[−500:−259]
[−253:−12]



RU 5
RU 6
RU 7
RU 8



[12:253]
[259:500]
[524:765]
[771:1012]


484-tone
RU 1
RU 2
RU 3
RU 4


RU
[−1012:−771,
[−500:−259,
[12:253,
[524:765,



−765:−524]
−253:−12]
259:500]
771:1012]


996-tone
RU 1
RU 2


RU
[−1012:−515,
[12:509,



−509:−12]
515:1012]


2x996-tone
RU 1


RU
[−1012:−515,



−509:−12,



12:509,



515:1012]
















APPENDIX 5







Data and pilot subcarrier indices for RUs in a 320 MHz EHT PPDU


(Data and pilot subcarrier indices for RUs in a 320 MHz EHT PPDU)








RU type
RU index and subcarrier sequence number range (RU index and subcarrier range)















26-tone
RU 1
RU 2
RU 3
RU 4
RU 5


RU
[−2035:−2010]
[−2009:−1984]
[−1981:−1956]
[−1955:−1930]
[−1928:−1903]



RU 6
RU 7
RU 8
RU 9



[−1901:−1876]
[−1875:−1850]
[−1847:−1822]
[−1821:−1796]



RU 10
RU 11
RU 12
RU 13
RU 14



[−1788:−1763]
[−1762:−1737]
[−1734:−1709]
[−1708:−1683]
[−1681:−1656]



RU 15
RU 16
RU 17
RU 18
RU 19



[−1654:−1629]
[−1628:−1603]
[−1600:−1575]
[−1574:−1549]
[not defined]



RU 20
RU 21
RU 22
RU 23
RU 24



[−1523:−1498]
[−1497:−1472]
[−1469:−1444]
[−1443:−1418]
[−1416:−1391]



RU 25
RU 26
RU 27
RU 28



[−1389:−1364]
[−1363:−1338]
[−1335:−1310]
[−1309:−1284]



RU 29
RU 30
RU 31
RU 32
RU 33



[−1276:−1251]
[−1250:−1225]
[−1222:−1197]
[−1196:−1171]
[−1169:−1144]



RU 34
RU 35
RU 36
RU 37



[−1142:−1117]
[−1116:−1091]
[−1088:−1063]
[−1062:−1037]



RU 38
RU 39
RU 40
RU 41
RU 42



[−1011:−986]
[−985:−960]
[−957:−932]
[−931:−906]
[−904:−879]



RU 43
RU 44
RU 45
RU 46



[−877:−852]
[−851:−826]
[−823:−798]
[−797:−772]



RU 47
RU 48
RU 49
RU 50
RU 51



[−764:−739]
[−738:−713]
[−710:−685]
[−684:−659]
[−657:−632]



RU 52
RU 53
RU 54
RU 55
RU 56



[−630:−605]
[−604:−579]
[−576:−551]
[−550:−525]
[not defined]



RU 57
RU 58
RU 59
RU 60
RU 61



[−499:−474]
[−473:−448]
[−445:−420]
[−419:−394]
[−392:−367]



RU 62
RU 63
RU 64
RU 65



[−365:−340]
[−339:−314]
[−311:−286]
[−285:−260]



RU 66
RU 67
RU 68
RU 69
RU 70



[−252:−227]
[−226:−201]
[−198:−173]
[−172:−147]
[−145:−120]



RU 71
RU 72
RU 73
RU 74



[−118:−93]
[−92:−67]
[−64:−39]
[−38:−13]



RU 75
RU 76
RU 77
RU 78
RU 79



[13:38]
[39:64]
[67:92]
[93:118]
[120:145]



RU 80
RU 81
RU 82
RU 83



[147:172]
[173:198]
[201:226]
[227:252]



RU 84
RU 85
RU 86
RU 87
RU 88



[260:285]
[286:311]
[314:339]
[340:365]
[367:392]



RU 89
RU 90
RU 91
RU 92
RU 93



[394:419]
[420:445]
[448:473]
[474:499]
[not defined]



RU 94
RU 95
RU 96
RU 97
RU 98



[525:550]
[551:576]
[579:604]
[605:630]
[632:657]


26-tone
RU 99
RU 100
RU 101
RU 102


RU
[659:684]
[685:710]
[713:738]
[739:764]



RU 103
RU 104
RU 105
RU 106
RU 107



[772:797]
[798:823]
[826:851]
[852:877]
[879:904]



RU 108
RU 109
RU 110
RU 111



[906:931]
[932:957]
[960:985]
[986:1011]



RU 112
RU 113
RU 114
RU 115
RU 116



[1037:1062]
[1063:1088]
[1091:1116]
[1117:1142]
[1144:1169]



RU 117
RU 118
RU 119
RU 120



[1171:1196]
[1197:1222]
[1225:1250]
[1251:1276]



RU 121
RU 122
RU 123
RU 124
RU 125



[1284:1309]
[1310:1335]
[1338:1363]
[1364:1389]
[1391:1416]



RU 126
RU 127
RU 128
RU 129
RU 130



[1418:1443]
[1444:1469]
[1472:1497]
[1498:1523]
[not defined]



RU 131
RU 132
RU 133
RU 134
RU 135



[1549:1574]
[1575:1600]
[1603:1628]
[1629:1654]
[1656:1681]



RU 136
RU 137
RU 138
RU 139



[1683:1708]
[1709:1734]
[1737:1762]
[1763:1788]



RU 140
RU 141
RU 142
RU 143
RU 144



[1796:1821]
[1822:1847]
[1850:1875]
[1876:1901]
[1903:1928]



RU 145
RU 146
RU 147
RU 148



[1930:1955]
[1956:1981]
[1984:2009]
[2010:2035]


52-tone
RU 1
RU 2
RU 3
RU 4


RU
[−2035:−1984]
[−1981:−1930]
[−1901:−1850]
[−1847:−1796]



RU 5
RU 6
RU 7
[−1600:−1549]



[−1788:−1737]
[−1734:−1683]
[−1654:−1603]
RU 8



RU 9
RU 10
RU 11
|[−1335:−1284]



[−1523:−1472]
[−1469:−1418]
[−1389:−1338]
RU 12



RU 13
RU 14
RU 15
RU 16



[−1276:−1225]
[−1222:−1171]
[−1142:−1091]
[−1088:−1037]



RU 17
RU 18
RU 19
RU 20



[−1011:−960]
[−957:−906]
[−877:−826]
[−823:−772]



RU 21
RU 22
RU 23
RU 24



[−764:−713]
[−710:−659]
[−630:−579]
[−576:−525]



RU 25
RU 26
RU 27
RU 28



[−499:−448]
[−445:−394]
[−365:−314]
[−311:−260]



RU 29
RU 30
RU 31
RU 32



[−252:−201]
[−198:−147]
[−118:−67]
[−64:−13]



RU 33
RU 34
RU 35
RU 36



[13:64]
[67:118]
[147:198]
[201:252]



RU 37
RU 38
RU 39
RU 40



[260:311]
[314:365]
[394:445]
[448:499]


52-tone
RU 41
RU 42
RU 43
RU 44


RU
[525:576]
[579:630]
[659:710]
[713:764]



RU 45
RU 46
RU 47
RU 48



[772:823]
[826:877]
[906:957]
[960:1011]



RU 49
RU 50
RU 51
RU 52



[1037:1088]
[1091:1142]
[1171:1222]
[1225:1276]



RU 53
RU 54
RU 55
RU 56



[1284:1335]
[1338:1389]
[1418:1469]
[1472:1523]



RU 57
RU 58
RU 59
RU 60



[1549:1600]
[1603:1654]
[1683:1734]
[1737:1788]



RU 61
RU 62
RU 63
RU 64



[1796:1847]
[1850:1901]
[1930:1981]
[1984:2035]


106-tone
RU 1
RU 2
RU 3
RU 4


RU
[−2035:−1930]
[−1901:−1796]
[−1788:−1683]
[−1654:−1549]



RU 5
RU 6
RU 7
RU 8



[−1523:−1418]
[−1389:−1284]
[−1276:−1171]
[−1142:−1037]



RU 9
RU 10
RU 11
RU 12



[−1011:−906]
[−877:−772]
[−764:−659]
[−630:−525]



RU 13
RU 14
RU 15
RU 16



[−499:−394]
[−365:−260]
[−252:−147]
[−118:−13]



RU 17
RU 18
RU 19
RU 20



[13:118]
[147:252]
[260:365]
[394:499]



RU 21
RU 22
RU 23
RU 24



[525:630]
[659:764]
[772:877]
[906:1011]



RU 25
RU 26
RU 27
RU 28



[1037:1142]
[1171:1276]
[1284:1389]
[1418:1523]



RU 29
RU 30
RU 31
RU 32



[1549:1654]
[1683:1788]
[1796:1901]
[1930:2035]


242-tone
RU 1
RU 2
RU 3
RU 4


RU
[−2036:−1795]
[−1789:−1548]
[−1524:−1283]
[−1277:−1036]



RU 5
RU 6
RU 7
RU 8



[−1012:−771]
[−765:−524]
[−500:−259]
[−253:−12]



RU 9
RU 10
RU 11
RU 12



[12:253]
[259:500]
[524:765]
[771:1012]



RU 13
RU 14
RU 15
RU 16



[1036:1277]
[1283:1524]
[1548:1789]
[1795:2036]











484-tone
RU 1
RU 2
RU 3
RU 4


RU
[−2036:−1795,
[−1524:−1283,
[−1012:−771,
[−500:−259,



−1789:−1548]
−1277:−1036]
−765:−524]
−253:−12]



RU 5
RU 6
RU 7
RU 8



[12:253,
[524:765,
[1036:1277,
[1548:1789,



259:500]
771:1012]
1283:1524]
1795:2036]


996-tone
RU 1
RU 2
RU 3
RU 4


RU
[−2036:−1539,
[−1012:−515,
[12:509,
[1036:1533,



−1533:−1036]
−509:−12]
515:1012]
1539:2036]


2x996-
RU 1
RU 2


tone RU
[−2036:−1539,
[12:509,



−1533:−1036,
515:1012,



−1012:−515,
1036:1533,



−509:−12]
1539:2036]


4x996-
RU 1


tone RU
[−2036:−1539,



−1533:−1036,



−1012:−515,



−509:−12,



12:509,



515:1012,



1036:1533,



1539:2036]








Claims
  • 1. A resource allocation method, comprising: sending, by a first device, resource allocation information to a second device, wherein the resource allocation information indicates a first virtual resource unit (VRU), and the first VRU comprises a plurality of contiguous subcarriers in a frequency domain; andmapping, by the first device, the first VRU to a first physical resource unit (PRU) based on a mapping relationship; andtransmitting data on the first PRU, wherein a plurality of subcarriers comprised included in the first PRU are noncontiguous in the frequency domain.
  • 2. A resource allocation method, comprising: receiving, by a second device, resource allocation information from a first device, wherein the resource allocation information indicates a first virtual resource unit (VRU), and the first VRU comprises a plurality of contiguous subcarriers in a frequency domain;determining, by the second device based on a mapping relationship, a first unit (PRU) corresponding to the first VRU, wherein a plurality of subcarriers included in the first PRU are noncontiguous in the frequency domain; andreceiving, by the second device, data from the first device on the first PRU.
  • 3. The resource allocation method according to claim 1, wherein a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on an interleaving matrix satisfies the following formula:
  • 4. The resource allocation method according to claim 1, wherein any adjacent subcarriers included in the first PRU are noncontiguous in the frequency domain.
  • 5. The resource allocation method according to claim 3, wherein before a sequence number of each subcarrier included in the interleaving matrix is output, an original row index sequence of the interleaving matrix is changed to a target row index sequence; and the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, and the target row index sequence is {1, 5, 3, 7, 2, 6, 4, 8} or {1, 6, 3, 8, 4, 7, 2, 5}; orthe original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and the target row index sequence is {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16}, or {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9}.
  • 6. The resource allocation method according to claim 3, wherein the mapping, by the first device, the first VRU to the first PRU comprises: sequentially inputting, by the first device into rows of the interleaving matrix according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU located; andoutputting sequence numbers of the subcarriers in the interleaving matrix according to a column direction of the interleaving matrix,wherein the first order is an ascending order, or the first order is a descending order.
  • 7. The resource allocation method according to claim 6, wherein in the plurality of subcarriers included in the first frequency-domain resource, subcarriers that are input into the interleaving matrix are first-type subcarriers, or subcarriers that are input into the interleaving matrix are first-type subcarriers and a second-type subcarrier, the first-type subcarrier is used to carry data, and the second-type subcarrier comprises one or more of a null subcarrier, a direct current subcarrier, a guard subcarrier, or a pilot subcarrier; and sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of the first-type subcarriers in the plurality of subcarriers included in the first frequency-domain resource;sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not comprise the first preset sequence number; orsequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, the first preset sequence number is located at a preset location of the interleaving matrix, and the sequence numbers of the subcarriers output from the interleaving matrix do not comprise the first preset sequence number.
  • 8. The resource allocation method according to claim 7, wherein the second-type subcarrier is a pilot subcarrier, and the pilot subcarrier is a maximum pilot subcarrier set of a 26-tone resource unit (RU) the first frequency-domain resource.
  • 9. The resource allocation method according to claim 6, wherein a quantity of the subcarriers that are input into the interleaving matrix and that are in the plurality of subcarriers included in the first frequency-domain resource is less than a quantity of subcarriers that are input into the interleaving matrix and that are supported by the interleaving matrix; and the sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of subcarriers that are in the first frequency-domain resource and that are to be input into the interleaving matrix and a sequence number of a padding subcarrier, the sequence number of the padding subcarrier is located in a preset location of the interleaving matrix, each sequence number of the padding subcarrier is a second preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix are exclusive of the second preset sequence number.
  • 10. The resource allocation method according to claim 6, wherein a quantity of the plurality of subcarriers included in the first frequency-domain resource is determined based on a maximum bandwidth supported by the first device.
  • 11. The resource allocation method according to claim 1, wherein the mapping relationship based upon which the first VRU is mapped to the first PRU is a mapping relationship between a sequence number of each subcarrier included in the first VRU and a sequence number of each subcarrier included in the first PRU.
  • 12. The resource allocation method according to claim 6, wherein the sequence numbers of the subcarriers included in the first frequency-domain resource start from 0 or 1; the sequence numbers of the subcarriers included in the first frequency-domain resource are subcarrier numbers in actual frequency bands corresponding to the subcarriers; orthe sequence numbers of the subcarriers included in the first frequency-domain resource are preset sequence numbers plus a preset offset value.
  • 13. The resource allocation method according to claim 11, wherein the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, and the sequence numbers of the subcarriers corresponding to the first PRU are located in the first set; the sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a second set, and there is no intersection between the first set and the second set, or a part of sequence numbers in the first set are the same as those in the second set are the same; orthe sequence numbers of the subcarriers corresponding to the first VRU are located in a first set, the sequence numbers of the subcarriers corresponding to the first PRU are located in a plurality of second sets, there is no intersection between the plurality of second sets, and there is no intersection between the first set and the plurality of second sets, or there is an intersection between the first set and a part of the plurality of second sets.
  • 14. A communication apparatus, comprising: a processor; anda memory having instructions stored thereon that, when executed by the processor, cause the communication apparatus to:send resource allocation information to a second device, wherein the resource allocation information indicates a first virtual resource unit (VRU), and the first VRU comprises a plurality of contiguous subcarriers in a frequency domain;map the first VRU to a first physical resource unit (PRU) based on a mapping relationship, wherein a plurality of subcarriers included in the first PRU are noncontiguous in the frequency domain; andtransmit data on the first PRU.
  • 15. The communication apparatus according to claim 14, wherein a sequence number i of a subcarrier of the first PRU mapped from a subcarrier with a sequence number k of the first VRU based on an interleaving matrix satisfies the following formula:
  • 16. The communication apparatus according to claim 14, wherein any adjacent subcarriers included in the first PRU are noncontiguous in the frequency domain.
  • 17. The communication apparatus according to claim 15, wherein before a sequence number of each subcarrier included in the interleaving matrix is output, an original row index sequence of the interleaving matrix is changed to a target row index sequence; and the original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8}, and the target row index sequence is {1, 5, 3, 7, 2, 6, 4, 8} or {1, 6, 3, 8, 4, 7, 2, 5}; orthe original row index sequence is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}, and the target row index sequence is {1, 9, 5, 13, 3, 11, 7, 15, 2, 10, 6, 14, 4, 12, 8, 16}, or {1, 10, 3, 12, 5, 14, 7, 16, 8, 15, 6, 13, 4, 11, 2, 9}.
  • 18. The communication apparatus according to claim 15, wherein the communication apparatus maps the first VRU to the first PRU by: sequentially inputting, into rows of the interleaving matrix according to a first order, sequence numbers of a plurality of subcarriers included in a first frequency-domain resource in which the first VRU is located; andoutputting sequence numbers of the subcarriers in the interleaving matrix according to a column direction of the interleaving matrix,wherein the first order is an ascending order, or the first order is a descending order.
  • 19. The communication apparatus according to claim 18, wherein in the plurality of subcarriers included in the first frequency-domain resource, subcarriers that are input into the interleaving matrix are first-type subcarriers, or subcarriers that are input into the interleaving matrix are first-type subcarriers and a second-type subcarrier, the first-type subcarrier is used to carry data, and the second-type subcarrier comprises one or more of a null subcarrier, a direct current subcarrier, a guard subcarrier, or a pilot subcarrier; and sequence numbers of the subcarriers that are input into the interleaving matrix are sequence numbers of the first-type subcarriers in the plurality of subcarriers included in the first frequency-domain resource;sequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, and the sequence numbers of the subcarriers output from the interleaving matrix do not comprise the first preset sequence number; orsequence numbers of the subcarriers that are input into the interleaving matrix are the sequence numbers of the plurality of subcarriers included in the first frequency-domain resource, each sequence number of the second-type subcarrier in the plurality of subcarriers is a first preset sequence number, a sequence number of the first preset sequence number is located at a preset location of the interleaving matrix, and the sequence numbers of the subcarriers output from the interleaving matrix do not comprise the first preset sequence number.
  • 20. The communication apparatus according to claim 19, wherein the second-type subcarrier is a pilot subcarrier, and the pilot subcarrier is a maximum pilot subcarrier set of a 26-tone resource unit (RU) the first frequency-domain resource.
Priority Claims (1)
Number Date Country Kind
202110247423.3 Mar 2021 CN national
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2022/078501, filed on Feb. 28, 2022, which claims priority to Chinese Patent Application No. 202110247423.3, filed on Mar. 5, 2021. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.

Continuations (1)
Number Date Country
Parent PCT/CN2022/078501 Feb 2022 US
Child 18459118 US