bki is an identifier of a sub-band allocated by the network side device to a terminal k, N represents a quantity of sub-bands, K represents a sub-band interval, ns is the identifier of the OFDM symbol, and nk is an ID of the terminal k.
In another implementation, the ID of the OFDM symbol and the ID of the sub-band are determined by using the following formula: bki=i·K+(c(8nt+ns)+nk)mod K,i=0,1, . . . ,└N/K┘?1, where
bki is an identifier of a sub-band allocated by the network side device to a terminal k, N represents a quantity of sub-bands, K represents a sub-band interval, ns is the identifier of the OFDM symbol, nk is an ID of the terminal k, nt is a slot number, and c(·) is a pseudo-random sequence whose initial value is a cell ID NIDcell.
An embodiment provides a terminal. The terminal has a function of implementing terminal behavior in the foregoing method design. The terminal may be a D2D (Device-to-Device, device-to-device) terminal, or may be a cellular terminal. The function of the terminal may be implemented by hardware, and the terminal includes a transceiver and a processor. The function of the terminal may alternatively be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the foregoing function. The module may be software and/or hardware.
According to an aspect, an embodiment provides a terminal, and the terminal includes: