Field Guide · term

Also known as: frame sync, framing, sync-word detection

Frame synchronization is the step that locates the boundaries of each frame in a demodulated symbol stream by detecting a known sync word (a fixed marker sequence the transmitter inserts), so the decoder knows where fields, headers, and payload begin.1 Bit- and symbol-timing recovery tell a receiver when each symbol occurs; frame sync tells it which symbol starts the frame. Without it a perfectly demodulated bit stream is an unaligned blur — the right bits with no map — because the receiver has no idea which bit is bit zero.

…noise… SYNC WORD header payload CRC frame boundary
Detecting the fixed sync word marks the frame boundary; every field after it is then read at a known offset.

How it works

The transmitter prefixes each frame (or periodically inserts) a fixed bit or symbol pattern — the sync word, also called a unique word or frame-alignment word — chosen to be unlikely to occur in random data. The receiver slides a correlator along the incoming stream, comparing each candidate window against the known pattern. When the correlation peaks above a threshold, the frame boundary is declared at that position. A good sync word has a sharp autocorrelation peak and low sidelobes so the peak is unambiguous even under noise and a few bit errors; short optimal sequences such as Barker codes are used for exactly this property.

Two design knobs govern the detector:

  • Threshold / Hamming distance — matching is rarely exact under noise, so the detector allows up to a set number of mismatched bits. Too tight and it misses real frames (missed detection); too loose and random data triggers it (false alarm). The sync word’s length and distance properties set how far these can be pushed apart.
  • Acquisition vs tracking — on first lock the receiver searches every bit position (“hunt” state); once synced it need only check the expected position each frame (“lock” state), which is cheaper and rejects spurious matches elsewhere in the stream. Many systems require several consecutive confirmations before declaring lock and several misses before dropping it, giving a flywheel that rides through brief dropouts.

A related subtlety is phase ambiguity: PSK demodulators can lock with an arbitrary constellation rotation, so the recovered bits may be inverted or rotated. The sync word resolves this too — the pattern only correlates in the correct rotation, and differential decoding or testing all rotations recovers the right one.

In practice

Frame synchronization is one layer of a synchronization stack that must be established in order. Carrier and symbol timing recovery come first (you cannot match a pattern until you have clean symbols); frame sync aligns the frame; and higher layers may then perform block or superframe synchronization for interleaving and encryption that span multiple frames. Design choices trade robustness against overhead:

  • Sync-word length — longer words have a lower false-alarm probability and tolerate more bit errors, but every bit spent on sync is a bit not spent on payload, so systems pick a length matched to their expected error rate.
  • Placement — a single sync at the head of a burst suits packet systems; continuous streams (digital voice) insert sync periodically so a late-tuning receiver can still acquire mid-stream, a feature P25 and DMR rely on for fast channel changes.
  • Distributed vs contiguous — some formats spread sync symbols through the frame rather than bunching them, which spreads the detection energy and can survive a localized fade better.

Relevance to SDR

Essentially every digital radio protocol carries a frame sync. P25 uses a 48-bit frame sync at the head of each frame; DMR embeds 24-bit sync patterns that also distinguish voice from data and base from mobile; NXDN, TETRA, POCSAG (its unique word), and packet formats like AX.25 (flag bytes) all rely on marker detection to align. A decoder’s first job after demodulation and clock recovery is to find these markers. GopherTrunk’s protocol decoders depend directly on frame synchronization: locating the P25/DMR/NXDN sync pattern is what lets the control-channel and voice-frame parsers align to the bit fields they read, and losing sync is the event that sends the decoder back into its hunt state.

Sources

  1. Frame synchronization — Wikipedia, on sync words and frame-boundary detection in digital communication. 

See also