Algorithm Search⌘K

Conceptintro

Cyclic prefix

Also called guard interval.

A copy of the end of each block placed in front of it, which turns linear convolution with the channel into circular convolution.

A cyclic prefix is a copy of the last NcpN_{cp} samples of a block of NN samples, sent just before the block. A channel with LL taps convolves the sent samples with its impulse response, a linear convolution that mixes each block with the end of the previous one. If Ncp≥L−1N_{cp} \ge L - 1 and the receiver drops the first NcpN_{cp} samples of each received block, the NN samples that remain are the circular convolution of the block with the taps. A DFT turns a circular convolution into a product, so each frequency bin sees one complex gain. This is what makes OFDM, discrete multitone, single-carrier frequency-domain equalization and SC-FDMA work. The price is NcpN_{cp} extra samples per block, which carry energy but no new data. The page uses jj for the imaginary unit and the unnormalized DFT H[k]=∑lh[l]e−j2πkl/NH[k] = \sum_l h[l] e^{-j 2\pi k l / N} for the channel gains.

In plain words

A channel with echoes makes each sample spill into the next few samples. When you send data in blocks, the end of one block spills into the start of the next one, and the start of each block lacks the echoes of its own end. The cyclic prefix fixes both problems. Before each block the sender repeats the last few samples of that block. The spill from the previous block lands on this copy, and the receiver throws the copy away. The echoes that the copy causes inside the block are exactly the echoes that the end of the block would cause if the block wrapped around. So the receiver sees the block as one turn of a loop, and the Fourier transform of a loop has no mixing between frequencies.

The idea

Let the block be x[0],…,x[N−1]x[0], \ldots, x[N-1] and the channel taps h[0],…,h[L−1]h[0], \ldots, h[L-1]. The sender transmits s=(x[N−Ncp],…,x[N−1],x[0],…,x[N−1])s = (x[N - N_{cp}], \ldots, x[N-1], x[0], \ldots, x[N-1]). The receiver gets r[i]=∑lh[l] s[i−l]r[i] = \sum_l h[l]\, s[i - l] plus noise and keeps y[n]=r[Ncp+n]y[n] = r[N_{cp} + n] for n=0,…,N−1n = 0, \ldots, N - 1.

Theorem (circular convolution). If Ncp≥L−1N_{cp} \ge L - 1, then y[n]=∑l=0L−1h[l] x[(n−l) mod N]y[n] = \sum_{l=0}^{L-1} h[l]\, x[(n - l) \bmod N] plus noise, and the DFT gives Y[k]=H[k]X[k]+W[k]Y[k] = H[k] X[k] + W[k] on every bin kk.

The reason is short. The sample y[n]y[n] uses s[Ncp+n−l]s[N_{cp} + n - l] for l=0,…,L−1l = 0, \ldots, L - 1. Its index is at least Ncp−(L−1)≥0N_{cp} - (L - 1) \ge 0, so it is inside the current block, and the prefix holds s[Ncp+m]=x[m mod N]s[N_{cp} + m] = x[m \bmod N] for m≥−Ncpm \ge -N_{cp}. The DFT step is the convolution theorem for circular convolution. The full proof is on the OFDM page.

Matrix view. Write the kept window as y=Cx+vy = C x + v. With the prefix, CC is the N×NN \times N circulant matrix whose first column is (h[0],…,h[L−1],0,…,0)(h[0], \ldots, h[L-1], 0, \ldots, 0). Every circulant matrix is diagonalized by the DFT: C=FHdiag⁡(H[0],…,H[N−1]) FC = F^H \operatorname{diag}(H[0], \ldots, H[N-1])\, F with the unitary FF. Without the prefix, CC is a lower triangular Toeplitz matrix plus a term from the previous block, and the DFT does not diagonalize it.

What the prefix costs. A block of NN data samples takes N+NcpN + N_{cp} sample times, so the rate drops by the factor N/(N+Ncp)N / (N + N_{cp}). The prefix also takes the fraction Ncp/(N+Ncp)N_{cp} / (N + N_{cp}) of the transmit energy, a loss of 10log⁡10((N+Ncp)/N)10 \log_{10}((N + N_{cp}) / N) dB in SNR per data symbol. To keep the loss small, NN must be large compared with the delay spread in samples; but a large NN makes the symbol long, and the channel must stay constant over it.

Timing slack. If the prefix is longer than the channel, the receiver may start its window up to δ=Ncp−(L−1)\delta = N_{cp} - (L - 1) samples early. The window is then still a circular convolution, shifted by δ\delta, and bin kk gets the extra phase e−j2πkδ/Ne^{-j 2\pi k \delta / N}, which a channel estimate absorbs. So the excess prefix gives slack in the symbol timing. The redundancy of the prefix also lets the receiver find the timing and the frequency offset without pilots, as in the van de Beek estimator.

Other ways to separate the blocks. The sender can send NcpN_{cp} zeros after each block instead of a copy (zero padding). The receiver then adds the last NcpN_{cp} received samples to the first ones, the step of the overlap-add method, and gets the same circular convolution. Zero padding sends no energy in the gap, but it adds the noise of the gap to the head of the block. Weinstein and Ebert in 1971 used an empty gap between blocks, which removes the interference between blocks but not the interference between subcarriers; the cyclic extension of Peled and Ruiz in 1980 removes both.

Examples

A four-sample block. Take N=4N = 4, Ncp=1N_{cp} = 1 and h=(1,0.5)h = (1, 0.5). The kept window is y=Cxy = C x with

C=[1000.50.510000.510000.51].C = \begin{bmatrix} 1 & 0 & 0 & 0.5 \\ 0.5 & 1 & 0 & 0 \\ 0 & 0.5 & 1 & 0 \\ 0 & 0 & 0.5 & 1 \end{bmatrix}.

The entry 0.50.5 in the top right corner comes from the prefix: y[0]=x[0]+0.5 x[−1]y[0] = x[0] + 0.5\, x[-1], and the prefix sample x[−1]x[-1] is a copy of x[3]x[3]. The eigenvalues of CC are H[k]=1+0.5 e−jπk/2H[k] = 1 + 0.5\, e^{-j\pi k/2}, that is 1.51.5, 1−0.5j1 - 0.5j, 0.50.5 and 1+0.5j1 + 0.5j, and the eigenvectors are the columns of FHF^H. Without the prefix the corner entry is the sample 0.50.5 times the last sample of the previous block, and for X=(1,−1,1,1)X = (1, -1, 1, 1) after a silent block the one-tap receiver returns (1−0.167j, −0.9−0.2j, 1−0.5j, 0.9−0.2j)(1 - 0.167j,\ -0.9 - 0.2j,\ 1 - 0.5j,\ 0.9 - 0.2j) instead of XX.

IEEE 802.11a. N=64N = 64 and Ncp=16N_{cp} = 16 at fs=20f_s = 20 MHz, so the prefix lasts 0.8 μ0.8\ \mus, the rate factor is 0.80.8, and the energy loss is 10log⁡10(80/64)=0.9710 \log_{10}(80/64) = 0.97 dB. Echoes up to 0.8 μ0.8\ \mus, about 240 m of extra path, cause no interference between blocks.

LTE with the normal prefix. N=2048N = 2048 at fs=30.72f_s = 30.72 MHz (15 kHz spacing), with Ncp=144N_{cp} = 144 on most symbols, so the prefix lasts 4.69 μ4.69\ \mus and the energy loss is 10log⁡10(2192/2048)=0.3010 \log_{10}(2192/2048) = 0.30 dB. The longer symbol makes the relative cost smaller than in 802.11a.

Where it is used

The cyclic prefix is part of almost every block transmission over a dispersive channel: OFDM in wireless LAN, LTE, 5G NR and digital broadcasting, discrete multitone on telephone lines, and single-carrier blocks with frequency-domain equalization or SC-FDMA. The length is chosen from the delay spread of the channel. In OFDM receivers, the prefix is also the basis of blind timing and frequency estimation, and of the timing slack that lets the window start early.

References

  1. A. Peled and A. Ruiz, Frequency domain data transmission using reduced computational complexity algorithms, IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP), 1980, pages 964 to 967 (the cyclic extension of each block)
  2. David Tse and Pramod Viswanath, Fundamentals of Wireless Communication, Cambridge University Press, 2005, Section 3.4.4 (the cyclic prefix converts the linear convolution into a circular one, and the DFT diagonalizes it)
  3. Andrea Goldsmith, Wireless Communications, Cambridge University Press, 2005, Chapter 12, Section 12.4.2 (the cyclic prefix)
  4. S. B. Weinstein and P. M. Ebert, Data transmission by frequency-division multiplexing using the discrete Fourier transform, IEEE Transactions on Communication Technology 19(5), 1971, pages 628 to 634 (the DFT system that the cyclic prefix later completed)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/4S5G9S/text.yaml