A communication method and apparatus, which can improve the sequence capacity and the sequence configuration efficiency. The method comprises: a network device sending first information, wherein the first information indicates P candidate maximum round-trip delays and Q candidate maximum
Doppler frequency shifts, the P candidate maximum round-trip delays and the Q candidate maximum
Doppler frequency shifts correspond to P×Q sequence sets, a sequence in the sequence sets is a cubic polynomial exponential sequence, a cubic term coefficient and a quadratic term coefficient of the cubic polynomial exponential sequence are associated, and P and Q are positive integers; a terminal device sending a first sequence, wherein the first sequence belongs to a first sequence set among the P×Q sequence sets, the first sequence set corresponds to a first maximum round-trip
delay and a first maximum
Doppler frequency shift, the first maximum round-trip
delay is one of the P candidate maximum round-trip delays, and the first maximum Doppler
frequency shift is one of the Q candidate maximum Doppler frequency shifts; and the network device receiving the first sequence, and determining a round-trip
delay and / or a Doppler
frequency shift of the terminal device on the basis of the first sequence.