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 , one per symbol after the matched filter and symbol timing, and a known sync word . In the model of Massey, a window of values holds the sync word at an unknown start , equally likely in , and the other values are independent random data. Each value is , with the sync or data symbol, a gain and noise, as on the AWGN channel.
Output. The start . In the threshold form, the output is a decision at each start, frame or no frame.
Measures. The probability of a wrong start 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 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 on white circular Gaussian noise, the normalized correlation at one start passes with probability , whatever the noise level. A false alarm rate of per start needs , and needs .
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 data symbols equals the sync word with probability . For this is . 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 . This is why a receiver confirms a lock over several frames.
The pattern matters (theorem). The aperiodic autocorrelation of a word of ones at shift is , 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 dB, Massey's rule chose the wrong start in of 2000 trials, and plain correlation in .
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 correction; needs the SNR |
| Hard-decision sync word search | sync word, threshold | accepts up to 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.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Massey optimum frame synchronization | O(N L) worst | O(1) extra | deterministicneeds snrsoft decision | 1 language |
| Preamble correlation detection | O(N L) worst | O(1) extra | carrier phase invariantdeterministicgain invariantonline | 1 language |
| Schmidl-Cox synchronization | O(D + N log N + G N) worst | O(N) extra | data aideddeterministictiming and frequency | 1 language |
Bounds
- Optimum rule (theorem). In Massey's model, the maximum likelihood rule minimizes 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 on white circular Gaussian noise. Over starts, the union bound gives at most .
- False sync in data (theorem). With hard decisions, a tolerance of disagreements and random data, a group of data symbols is accepted with probability .
- Length of the sync word (heuristic). For a fixed false alarm rate and SNR, the miss probability falls with , at the cost of 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
- 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
- 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
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag VX3AMN Edit this page History Report an error Markdown