Algorithm Search⌘K

Problemcore

Frame synchronization

Also called frame sync, frame alignment.

Find where each frame or packet begins in the stream of received symbols, usually by searching for a known sync word or preamble, with few false alarms and few misses.

Frame synchronization is the problem of finding where each frame, packet or burst begins in a stream of received symbols. After symbol timing recovery the receiver has one value per symbol, but it does not know which value is the first symbol of a frame, so it cannot split the stream into headers, payloads and code words. The usual solution is to insert a known pattern, a sync word inside a continuous stream or a preamble before a burst, and to search for it. The preamble correlation detector correlates with the pattern and compares with a threshold. Massey's rule is the optimum search for a sync word in random binary data. For OFDM, the Schmidl and Cox method uses a preamble with two equal halves. The pattern itself is chosen for a sharp autocorrelation, as the Barker codes are.

In plain words

Data arrive as a long row of symbols with no marks between the messages. To read a message, the receiver must know where it starts. So the sender puts a known short pattern at the start of each message. The receiver looks for the pattern in what it receives. Noise can hide the pattern, and random data can look like it by chance. A good method finds the pattern where it is, and seldom finds it where it is not. A good pattern looks very different from any shifted copy of itself.

Definition

Input. A sequence of received values y0,y1,…y_0, y_1, \ldots, one per symbol after the matched filter and symbol timing, and a known sync word s0,…,sL−1s_0, \ldots, s_{L-1}. In the model of Massey, a window of NN values holds the sync word at an unknown start μ\mu, equally likely in {0,…,N−1}\{0, \ldots, N-1\}, and the other values are independent random data. Each value is yi=h di+niy_i = h\,d_i + n_i, with did_i the sync or data symbol, hh a gain and nin_i noise, as on the AWGN channel.

Output. The start μ^\hat\mu. In the threshold form, the output is a decision at each start, frame or no frame.

Measures. The probability of a wrong start P(μ^≠μ)P(\hat\mu \ne \mu) in the window form. In the threshold form, the false alarm probability per start on noise or data and the miss probability. In continuous links, the mean time to acquire and the mean time to lose a correct lock.

Variants

  • Embedded sync word or preamble. A sync word between frames of a continuous stream is surrounded by data on both sides. A preamble starts a burst after silence or noise.
  • Window or threshold. If exactly one sync word is known to lie in a window, the receiver picks the best position. If not, it compares each position with a threshold.
  • Soft or hard decisions. The search uses the real received values or only their signs.
  • Coherent or noncoherent. With an unknown carrier phase the search uses the magnitude of a complex correlation. With a frequency offset it may use differential products.
  • Periodic sync. When the sync word repeats every FF symbols, the receiver can combine several frames and confirm a lock over several periods.

Examples

A threshold set for a false alarm rate (theorem). For a preamble of length L=13L = 13 on white circular Gaussian noise, the normalized correlation ρ\rho at one start passes λ\lambda with probability (1−λ)12(1 - \lambda)^{12}, whatever the noise level. A false alarm rate of 10−310^{-3} per start needs λ=0.4377\lambda = 0.4377, and 10−610^{-6} needs λ=0.6838\lambda = 0.6838.

Data that look like the sync word (theorem for one group, estimate for a frame). With hard decisions and random equiprobable binary data, a fixed group of LL data symbols equals the sync word with probability 2−L2^{-L}. For L=13L = 13 this is 1.22×10−41.22 \times 10^{-4}. In a frame of 1000 symbols there are about 1000 such groups, so the chance of at least one exact match in the data is about 0.110.11. This is why a receiver confirms a lock over several frames.

The pattern matters (theorem). The aperiodic autocorrelation of a word of LL ones at shift kk is L−kL - k, so a shifted copy that partly overlaps itself gives almost the full peak. For the Barker word of length 13 every shift gives 0 or 1.

Optimum against correlation (measurement). For Barker 13 in a window of 64 random BPSK symbols at Es/N0=0E_s/N_0 = 0 dB, Massey's rule chose the wrong start in 3.6%3.6\% of 2000 trials, and plain correlation in 15.9%15.9\%.

Known algorithms

Algorithm Setting Note
Preamble correlation detection preamble or sync word, threshold normalized correlation; constant false alarm rate on noise
Massey optimum frame synchronization sync word in random data, window maximum likelihood with a ln⁡cosh⁡\ln\cosh correction; needs the SNR
Hard-decision sync word search sync word, threshold accepts up to ee disagreements in sign; picking the fewest disagreements in a window is the optimum hard-decision rule
Schmidl and Cox OFDM preamble with two equal halves autocorrelation of the received signal; tolerates a frequency offset
Van de Beek estimator OFDM cyclic prefix finds the symbol start from the repeated prefix, without a preamble

Continuous receivers wrap the search in a state machine: a search state, a check state that waits for the sync word one frame later, and a lock state that leaves only after several missed sync words.

AlgorithmTimeSpacePropertiesCode
Massey optimum frame synchronizationO(N L) worstO(1) extradeterministicneeds snrsoft decision1 language
Preamble correlation detectionO(N L) worstO(1) extracarrier phase invariantdeterministicgain invariantonline1 language
Schmidl-Cox synchronizationO(D + N log N + G N) worstO(N) extradata aideddeterministictiming and frequency1 language

Bounds

  • Optimum rule (theorem). In Massey's model, the maximum likelihood rule minimizes P(μ^≠μ)P(\hat\mu \ne \mu) among all rules, so its error probability is a lower bound for every method in that model.
  • False alarms on noise (theorem). For the normalized correlation, the false alarm probability per start is (1−λ)L−1(1 - \lambda)^{L-1} on white circular Gaussian noise. Over KK starts, the union bound gives at most K(1−λ)L−1K(1 - \lambda)^{L-1}.
  • False sync in data (theorem). With hard decisions, a tolerance of ee disagreements and random data, a group of data symbols is accepted with probability 2−L∑i=0e(Li)2^{-L}\sum_{i=0}^{e}\binom{L}{i}.
  • Length of the sync word (heuristic). For a fixed false alarm rate and SNR, the miss probability falls with LL, at the cost of LL symbols of overhead per frame.

Reductions

  • To multiple hypothesis testing. Each start is a hypothesis. With equally likely starts, the minimum error rule is the maximum likelihood rule, which gives Massey's rule for binary data on the AWGN channel.
  • To matched filtering. For a preamble after noise, the likelihood ratio of the preamble against noise at one start is a function of the correlation, so the search is a cross-correlation with the pattern followed by a threshold.
  • From symbol timing. Frame synchronization assumes symbol timing is known. Run at several samples per symbol, a preamble correlation also gives the symbol timing, which joins the two problems.

Applications

  • Space telemetry. CCSDS links mark each transfer frame with an attached sync marker, the 32-bit word 1ACFFC1D in hexadecimal.
  • Wi-Fi and other packet radios. IEEE 802.11 bursts start with short and long training fields, which the receiver uses to detect the packet and find its start.
  • Cellular systems. GSM bursts carry a training sequence in the middle, and LTE cells send primary synchronization signals built from Zadoff-Chu sequences.
  • Wired links. An Ethernet frame starts with a preamble of alternating bits and a start frame delimiter.
  • Framing of coded data. Decoders of block codes and interleavers need the frame start to align code words.

References

  1. James L. Massey, Optimum frame synchronization, IEEE Transactions on Communications 20(2), 1972, pages 115 to 119, the model of a sync word in random binary data and the maximum likelihood rule
  2. Robert A. Scholtz, Frame synchronization techniques, IEEE Transactions on Communications 28(8), 1980, pages 1204 to 1213, the survey of frame sync methods: sync word search, error probabilities, sync word design and the search and lock strategies
  3. G. L. Lui and H. H. Tan, Frame synchronization for Gaussian channels, IEEE Transactions on Communications 35(8), 1987, pages 818 to 829, optimum and approximate frame sync rules on Gaussian channels and their error probabilities
  4. R. H. Barker, Group synchronizing of binary digital systems, in Communication Theory, Butterworths, 1953, binary sync groups with small off-peak agreement

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)
WritingW2 basic
  • a contract.yaml