A communication method, wherein the method comprises: determining, by a terminal device, a downlink bandwidth resource configuration, wherein: a downlink bandwidth comprises resource blocks, RBs, which are grouped into resource block groups, RBGs, and precoding resource block groups, PRGs, wherein RBGs are used for resource allocation and PRGs are groups of RBs to which a same precoding is applied; in the downlink bandwidth resource configuration, a total number of RBs in the downlink bandwidth is within one of a plurality of predetermined integer ranges; in the downlink bandwidth resource configuration, a number of RBs per RBG is a predetermined first integer value associated with the one of the plurality of predetermined integer ranges, wherein at least two of the plurality of predetermined integer ranges are associated with different first integer values; and in the downlink bandwidth resource configuration, a number of RBs per PRG is a predetermined second integer value associated with all of the plurality of predetermined integer ranges, wherein the second integer value is a common divisor of the first integer values associated with the plurality of predetermined integer ranges; determining, by the terminal device, that a quantity of resource blocks comprised in a first resource block group is the first integer value of the downlink bandwidth resource configuration, and determining, by the terminal device, that a quantity of resource blocks comprised in a precoding resource block group is the second integer value of the downlink bandwidth resource configuration; receiving, by the terminal device, downlink control information, wherein the downlink control information comprises downlink resource allocation information, and the downlink resource allocation information indicates the first resource block group and indicates that the first resource block group is occupied by downlink data; and receiving, by the terminal device, a demodulation reference signal and the downlink data, wherein same precoding is performed on the demodulation reference signal and the downlink data in each precoding resource block group occupied by the downlink data. determining, by a terminal device, a downlink bandwidth resource configuration, wherein: a downlink bandwidth comprises resource blocks, RBs, which are grouped into resource block groups, RBGs, and precoding resource block groups, PRGs, wherein RBGs are used for resource allocation and PRGs are groups of RBs to which a same precoding is applied; in the downlink bandwidth resource configuration, a total number of RBs in the downlink bandwidth is within one of a plurality of predetermined integer ranges; in the downlink bandwidth resource configuration, a number of RBs per RBG is a predetermined first integer value associated with the one of the plurality of predetermined integer ranges, wherein at least two of the plurality of predetermined integer ranges are associated with different first integer values; and in the downlink bandwidth resource configuration, a number of RBs per PRG is a predetermined second integer value associated with all of the plurality of predetermined integer ranges, wherein the second integer value is a common divisor of the first integer values associated with the plurality of predetermined integer ranges; a downlink bandwidth comprises resource blocks, RBs, which are grouped into resource block groups, RBGs, and precoding resource block groups, PRGs, wherein RBGs are used for resource allocation and PRGs are groups of RBs to which a same precoding is applied; in the downlink bandwidth resource configuration, a total number of RBs in the downlink bandwidth is within one of a plurality of predetermined integer ranges; in the downlink bandwidth resource configuration, a number of RBs per RBG is a predetermined first integer value associated with the one of the plurality of predetermined integer ranges, wherein at least two of the plurality of predetermined integer ranges are associated with different first integer values; and in the downlink bandwidth resource configuration, a number of RBs per PRG is a predetermined second integer value associated with all of the plurality of predetermined integer ranges, wherein the second integer value is a common divisor of the first integer values associated with the plurality of predetermined integer ranges; determining, by the terminal device, that a quantity of resource blocks comprised in a first resource block group is the first integer value of the downlink bandwidth resource configuration, and determining, by the terminal device, that a quantity of resource blocks comprised in a precoding resource block group is the second integer value of the downlink bandwidth resource configuration; receiving, by the terminal device, downlink control information, wherein the downlink control information comprises downlink resource allocation information, and the downlink resource allocation information indicates the first resource block group and indicates that the first resource block group is occupied by downlink data; and receiving, by the terminal device, a demodulation reference signal and the downlink data, wherein same precoding is performed on the demodulation reference signal and the downlink data in each precoding resource block group occupied by the downlink data.