A reference signal transmission method, comprising: obtaining, by a transmitting device, configuration information of a reference signal for a first port of the transmitting device, wherein the configuration information is used to indicate a location of a resource occupied by the reference signal corresponding to the first port; the configuration information comprises: in time domain, a location of a first time symbol; and in frequency domain, a location of each subcarrier that is in a subcarrier group within a specified bandwidth range and that is corresponding to the first time symbol, and a location of a subcarrier that is within the bandwidth range and that is corresponding to each of time symbols, in a time period occupied by the resource, except the first time symbol; the subcarrier group comprises a plurality of subcarriers; the bandwidth range is configured by the transmitting device; and the bandwidth range comprises a plurality of subcarriers; and sending, by the transmitting device on the resource indicated by the configuration information, the reference signal corresponding to the first port, characterized in that the obtaining, by a transmitting device, a location of a first time symbol comprises: obtaining, by the transmitting device, a port number I of the first port, and determining, based on a stored correspondence between a port number and a location of a time symbol, the location of the first time symbol corresponding to the port number of the first port; or determining, by the transmitting device, the location of the first time symbol based on any one or a combination of the following: the port number I of the first port, a timeslot number Slot_ID of the resource, a cell number Cell_ID of the transmitting device, and a receiving device number UE_ID. obtaining, by a transmitting device, configuration information of a reference signal for a first port of the transmitting device, wherein the configuration information is used to indicate a location of a resource occupied by the reference signal corresponding to the first port; the configuration information comprises: in time domain, a location of a first time symbol; and in frequency domain, a location of each subcarrier that is in a subcarrier group within a specified bandwidth range and that is corresponding to the first time symbol, and a location of a subcarrier that is within the bandwidth range and that is corresponding to each of time symbols, in a time period occupied by the resource, except the first time symbol; the subcarrier group comprises a plurality of subcarriers; the bandwidth range is configured by the transmitting device; and the bandwidth range comprises a plurality of subcarriers; and sending, by the transmitting device on the resource indicated by the configuration information, the reference signal corresponding to the first port, characterized in that the obtaining, by a transmitting device, a location of a first time symbol comprises: obtaining, by the transmitting device, a port number I of the first port, and determining, based on a stored correspondence between a port number and a location of a time symbol, the location of the first time symbol corresponding to the port number of the first port; or determining, by the transmitting device, the location of the first time symbol based on any one or a combination of the following: the port number I of the first port, a timeslot number Slot_ID of the resource, a cell number Cell_ID of the transmitting device, and a receiving device number UE_ID. obtaining, by the transmitting device, a port number I of the first port, and determining, based on a stored correspondence between a port number and a location of a time symbol, the location of the first time symbol corresponding to the port number of the first port; or determining, by the transmitting device, the location of the first time symbol based on any one or a combination of the following: the port number I of the first port, a timeslot number Slot_ID of the resource, a cell number Cell_ID of the transmitting device, and a receiving device number UE_ID.