A communication method, comprising: sending, by user equipment, radio frequency, RF, bandwidth capability information to a network device, wherein the RF bandwidth capability information is used to indicate a maximum bandwidth supported by at least one RF module of the user equipment; sending, by the user equipment, RF retuning capability information to the network device, wherein the RF retuning capability information is used to indicate a time required by the user equipment to retune an RF center frequency location; receiving, by the user equipment, bandwidth part, BP, configuration information from the network device, wherein the BP configuration information comprises information that is used to indicate a size and a location of a BP in a component carrier, CC;determining, by the user equipment, a BP group information based on the RF bandwidth capability information, the BP configuration information, and the RF center frequency location at which the user equipment currently works, wherein the BP group information is used to indicate at least one BP group, one of the at least one BP group comprises at least one BP, the at least one BP group comprises a first BP group, the first BP group comprises a first BP, and when the first BP group further comprises a second BP, a guard interval of RF retuning that is required when the user equipment is switched from the first BP to the second BP is 0 symbols; sending, by the user equipment, the determined BP group information to the network device; wherein the user equipment and the network device set the guard interval based on the BP group information; and wherein the combined bandwidth of the BPs in the BP group is a bandwidth jointly spanned by all BPs in the BP group and the combined bandwidth of the BP group is less than or equal to the maximum bandwidth. sending, by user equipment, radio frequency, RF, bandwidth capability information to a network device, wherein the RF bandwidth capability information is used to indicate a maximum bandwidth supported by at least one RF module of the user equipment; sending, by the user equipment, RF retuning capability information to the network device, wherein the RF retuning capability information is used to indicate a time required by the user equipment to retune an RF center frequency location; receiving, by the user equipment, bandwidth part, BP, configuration information from the network device, wherein the BP configuration information comprises information that is used to indicate a size and a location of a BP in a component carrier, CC;determining, by the user equipment, a BP group information based on the RF bandwidth capability information, the BP configuration information, and the RF center frequency location at which the user equipment currently works, wherein the BP group information is used to indicate at least one BP group, one of the at least one BP group comprises at least one BP, the at least one BP group comprises a first BP group, the first BP group comprises a first BP, and when the first BP group further comprises a second BP, a guard interval of RF retuning that is required when the user equipment is switched from the first BP to the second BP is 0 symbols; sending, by the user equipment, the determined BP group information to the network device; wherein the user equipment and the network device set the guard interval based on the BP group information; and wherein the combined bandwidth of the BPs in the BP group is a bandwidth jointly spanned by all BPs in the BP group and the combined bandwidth of the BP group is less than or equal to the maximum bandwidth.