In computer networks, a syncword, sync character, sync sequence or preamble is used to synchronize a data transmission by indicating the end of header information and the start of data. The syncword is a known sequence of data used to identify the start of a frame, and is also called reference signal or midamble in wireless communications.
Prefix codes allow unambiguous identification of synchronization sequences and may serve as self-synchronizing code.
In an audio receiver receiving a bit stream of data, an example of a syncword is 0x0B77 for an AC-3 encoded stream. The Bisync protocol of the 1960s used a minimum of two ASCII "SYN" characters (0x16…0x16) to achieve character synchronization in an undifferentiated bit stream, then other special characters to synchronize to the beginning of a frame of characters.
The syncwords can be seen as a kind of delimiter. Various techniques are used to avoid delimiter collision, or—
I cried all night for Sonny
'Til my eyes were dry
'Til the oceans overflowed
And the Red Sea turned blue
I cried all night for Sonny
I heard he was crying, too
I cried all night for Sonny
We shook hands and said goodbye
His face was etched with sorrow
His heart without a hue
I cried all night for Sonny
I heard he was crying, too
When you try and love two people
You can't love either one
'Cause after a while you'll have to choose
Or else love self denial
I stayed all night with Sonny
Like there'd never be another day
Go on and sleep 'til sunset
And I'll watch over you
I cried all night for Sonny