CA2165604C - Synchronization and error detection in a packetized data stream - Google Patents

Synchronization and error detection in a packetized data stream Download PDF

Info

Publication number
CA2165604C
CA2165604C CA002165604A CA2165604A CA2165604C CA 2165604 C CA2165604 C CA 2165604C CA 002165604 A CA002165604 A CA 002165604A CA 2165604 A CA2165604 A CA 2165604A CA 2165604 C CA2165604 C CA 2165604C
Authority
CA
Canada
Prior art keywords
parity
packet
data stream
information bits
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CA002165604A
Other languages
French (fr)
Other versions
CA2165604A1 (en
Inventor
Chris Heegard
Andrew J. King
Sydney Lovely
Thomas J. Kolze
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Arris Technology Inc
Original Assignee
General Instrument Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=23429465&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CA2165604(C) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by General Instrument Corp filed Critical General Instrument Corp
Publication of CA2165604A1 publication Critical patent/CA2165604A1/en
Application granted granted Critical
Publication of CA2165604C publication Critical patent/CA2165604C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/89Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/33Synchronisation based on error coding or decoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0057Block codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/048Speed or phase control by synchronisation signals using the properties of error detecting or error correcting codes, e.g. parity as synchronisation signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Abstract

A method and apparatus are provided for achieving synchronization and detecting errors in a data stream such as an MPEG-2 transport packet stream. In an MPEG embodiment, the MPEG sync word is removed and replaced with a parity code that is used at the decoder for both synchronization and error detection. A syndrome calculator in the decoder can be implemented using a unique one bit in, one bit out FIR filter. Codewords used to generate the parity code can be provided by a linear block code that is a dual of a shortened cyclic code.

Description

zls5so~.
The present invention relates to a method and apparatus for achieving synchronization and detecting errors in a data stream, and more particularly to a method and apparatus for synchronization and error detection of an MPEG
encoded data stream or the like.
The Motion Picture Experts Group (MPEG) has proposed a standard for the transport of digital data. The MPEG-2 standard is widely known and recognized as a video and audio compression specification, and has been sanctioned by the International Standards Organization (ISO) in document ISO 13818. The MPEG-2 specification also contains a systems "layer" that provides a transmission medium independent coding technique to build bitstreams containing one or more MPEG
programs. The MPEG coding technique uses a formal grammar ("syntax") and a set of semantic rules for the construction of bitstreams to be transmitted.
The syntax and semantic rules include provisions for multiplexing, clock recovery, synchronization, and error resiliency.
The MPEG transport stream is specifically designed for transmission in conditions that can generate data errors. MPEG transport packets each have a fixed length of 188 bytes. Many programs, each with different components, may be combined in a zso~so~.
transport stream. Examples of services that can be provided using the MPEG format are television services broadcast over terrestrial, cable television or satellite networks as well as interactive telephony-based services. The primary mode of data transmission in MPEG broadcast applications will be the MPEG-2 transport stream.
The syntax and semantics of the MPEG-2 transport stream are defined, in the MPEG-2 Systems Committee draft, ISO/IEC JTC1/SC29/WG11/N0601, November, 1993.
Multiplexing according to the MPEG-2 standard is accomplished by packaging raw elementary streams such as coded video and audio into packetized elementary stream (PES) packets which are then inserted into transport packets. As noted above, each transport packet is fixed at 188 bytes in length. The first byte is a synchronization byte having a unique eight-bit pattern, e.g., 01000111.
The sync byte is used to locate the beginning of each transport packet.
The sync byte is followed by a three-byte prefix containing a transport packet error indicator, payload unit start indicator, transport priority bit, packet identifier (PID), transport scrambling control, adaptation field control and a continuity counter. Use of the sync byte and three prefix bytes leave up to 184 bytes in the transport packet for the actual data to be communicated, referred to as the "payload." An optional 21fi~604 adaptation field may follow the prefix, to carry both MPEG related and private information of relevance to a given transport stream or the elementary stream carried within a given transport packet. Whenever an adaptation field is present, the number of bytes in the payload will be reduced by the number of bytes used by the adaptation field.
Further details of the MPEG-2 transport specification can be found in A. J. Wasilewski, "MPEG-2 Systems Specification: Blueprint for Network Interoperability," Communications Technoloav, February, 1994, pp. 30-44.
In the MPEG standard, the synchronization byte at the beginning of each transport packet is used merely to acquire synchronization at the decoder.
The decoder searches a received serial bitstream formed from successive transport packets to locate a match with the unique synchronization byte. The MPEG synchronization byte (01000111) was chosen due to its excellent aperiodic autocorrelation properties and because it is not easily emulated by PID values from the low end of the range. Upon finding a first synchronization byte, a typical decoder will initially assume it is a valid synchronization byte and subsequently determine if another such byte is received after the next 187 bytes of the serial bitstream have passed. After two or more successive synchronization bytes are located where expected, it is assumed that ~~s~~o~
synchronization has been achieved, and that the data between the synchronization bytes comprises the prefix, adaptation field (if present) and payload of a transport packet. The payload data is processed in a conventional manner to recover the transmitted information.
It would be advantageous to provide a method and apparatus for utilizing the information bearing capacity of a synchronization byte in a transport stream such as an MPEG-2 transport stream. More particularly, it would be advantageous to provide an error detection capability in addition to the packet alignment information supplied by the synchronization byte. It would be still further advantageous to provide a simplified decoder for processing error detection information provided by the sync byte in order to identify those transport packets containing errors.
The present invention provides a method and apparatus having the aforementioned advantages in which parity checksums are used instead of sync bytes in successive transport packets. Linear block codes (LBCs) are generated for which the parity check equations can be implemented in a single finite impulse response (FIR) filter. By implementing the parity check equations in a single FIR filter, the cost and complexity of the decoder used for synchronization and error detection can be greatly reduced.

~1~~60~-In accordance with the present invention, a method is provided for achieving synchronization and detecting errors in a data stream carrying 5 successive packets of k information bits and r synchronization bits. The synchronization bits of each packet comprise a predefined, searchable pattern. At least one synchronization pattern is located in the data stream to enable the boundaries for the k information bits of successive packets to be determined. In one embodiment, the synchronization pattern in each packet is replaced with an r-bit parity code derived from a counterpart set of k information bits in the data stream, thereby generating a modified data stream. The modified data stream is communicated to a decoder.
At least one of the parity codes is located in the modified data stream at the decoder to achieve synchronization. This enables the boundaries for the k information bits of successive packets to be determined. Once synchronization has been achieved, the parity codes are compared to checksums obtained from their counterpart k information bits at the decoder to determine when the information bits in a received packet contain an error.
The data stream can comprise an MPEG compatible data stream, e.g., an MPEG-2 data stream or a similarly formatted data stream. The parity codes 21s5so~.
can be scaled such that when decoded at the decoder, they will match MPEG synchronization patterns. In an MPEG-2 embodiment, the number of information bits (prefix, adaptation field and payload) in a packet is k=1496. In a preferred MPEG implementation, the synchronization pattern for each packet precedes the k information bits of that packet, whereas the counterpart set of k information bits for each parity code comprises the k information bits immediately preceding the parity code. The parity code can be generated from a linear block code comprising a dual of a shortened cyclic code.
Communication apparatus in accordance with the present invention enables a receiver to robustly obtain synchronization and detect errors in a data stream carrying successive packets of k information bits and an r-bit parity code. The parity code of each packet comprises a predefined pattern of bits detectable at the receiver by searching for the pattern. The parity code also functions as a checksum for information bits carried in the data stream. The apparatus comprises means for inserting the parity codes in the packets prior to communication to the receiver. Each of the parity codes is derived from a counterpart set of k information bits in the data stream. Means are provided for communicating the data stream to the receiver after insertion of the parity codes. At least one parity code is located in the data stream 2~ 6560~-at the receiver to achieve synchronization. This enables the boundaries for the k information bits of successive packets to be determined. In accordance with the invention, the receiver also includes means for comparing the parity codes to checksums obtained from their counterpart k information bits to determine when the information bits in a packet contain an error.
The data stream into which the parity codes are inserted can comprise, for example, an MPEG
compatible data stream in which successive transport packets each commence with a synchronization pattern followed by the k information bits. In such an instance, the apparatus can further comprise means for replacing the synchronization patterns with the parity codes to provide a modified data stream for communication to the receiver. In an illustrated embodiment, each parity code that is substituted for the synchronization pattern is derived from the k information bits of the preceding packet. Thus, whereas the synchronization pattern for each transport packet is at the beginning of the packet and is followed by the k information bits carried by that packet, the parity code that is substituted for the synchronization pattern is derived from the previous k information bits, which are carried by the preceding packet.
The parity codes can be scaled at the encoder so that when decoded at the receiver, they will 2165644.
match an MPEG synchronization pattern. The receiver can further comprise means for reconstructing the data stream from the modified data stream by replacing the parity codes with the synchronization patterns, after the parity codes have been used to obtain synchronization and detect errors. In the illustrated embodiment, a parity check matrix is provided at the receiver for generating a predefined synchronization pattern from valid parity codes.
The predefined synchronization pattern can comprise, for example, a standard MPEG synchronization pattern.
The present invention also provides a decoder for a packetized digital data stream. The data stream contains successive packets, each having k information bits and an r-bit parity code. The parity code of each packet is derived from k bits of information carried by the data stream. The decoder includes means for searching the data stream during a signal acquisition phase to locate a parity code contained therein. Means are provided for establishing a synchronization condition based on one or more parity codes located by the searching means. A checksum derived from the k information bits of each packet is compared to the parity code for those k information bits during a tracking phase. Means are provided for signaling an error in the k information bits for a packet when the 21~~~04-checksum for those bits does not match the parity code therefor.
The decoder can further comprise means for monitoring the parity codes during the tracking phase. Means responsive to the monitoring means are provided for switching from the tracking phase to the acquisition phase after a predetermined plurality of r-bit patterns considered by the monitoring means to be parity codes are found to be invalid.
Where the data stream is encoded in an MPEG
compatible format, the decoder can further comprise means for replacing the parity code in each packet with an MPEG synchronization pattern after the parity code has served its purpose for acquisition and error detection. The parity code can be derived from the k information bits of the immediately preceding packet, whereas each synchronization pattern comprises the first r bits in a packet and is followed by the k information bits for that packet. In an illustrated embodiment, the parity codes are generated from a linear block code comprising a dual of a shortened cyclic code.
The invention also provides apparatus for calculating syndromes for linear block coded codewords. The apparatus comprises a finite impulse response filter having an input for receiving a serial bitstream of codeword data, each codeword containing k information bits and r parity bits, ,~ m6~so~.
said filter having an output for providing a serial bitstream of syndromes. The syndromes comprise a fixed linear combination of a current bit of said codeword data input to said filter and the k 5 previous bits of said codeword data. The filter has an impulse response h''+1 (x) , where h k+1 ( x) = a ( X ) X k+lb ( x) 9' (X) ' g(x) is a recursive generator polynomial of degree r, and 10 a(x) and b(x) are polynomials chosen such that the polynomial h''+~(x) will be of degree k, have a non-zero constant term ho=1, and have a non-zero f final term hk=1.
The linear block code used to generate the codewords for which the syndromes are calculated can comprise a dual of a shortened cyclic code. Means can be provided at the output of the filter for detecting a synchronization pattern in the serial bitstream of syndromes.

~~s~so~.

In the drawings, Figure 1 is a diagrammatic illustration of a packet stream, modified packet stream and reconstructed packet stream in accordance with the present invention;
Figure 2 is a diagrammatic illustration of a parity check matrix in accordance with the present invention;
Figure 3 is a block diagram of an encoder in accordance with the present invention:
Figure 4 is a timing diagram illustrating the reset and control signals used in the encoder of Figure 3;
Figure 5 is a block diagram of a decoder in accordance with the present invention;
Figure 6 is a block diagram illustrating the decoder of Figure 5 in greater detail:
Figure 7 is a diagrammatic illustration showing the function of the syndrome calculator in accordance with the present invention; and Figure 8 is a block diagram illustrating a one bit in, one bit out finite impulse response (FIR) filter used as a syndrome calculator with a shift register used for signal acquisition and synchronization purposes coupled to the output thereof.

~165fi0~

The present invention will be described herein primarily in connection with the communication of data in accordance with the MPEG-2 transport syntax.
However, it should be appreciated that the references to the MPEG-2 standard are for purposes of illustration only, and that the invention is also applicable to other transport schemes in which the transport packets include synchronization bits and information bits.
An MPEG encoded data stream consists of a continuous stream of packets each containing 188 bytes. The data stream is transmitted in serial fashion, most significant bit (MSB) first. The first byte of a packet is specified to be a sync word having a value 01000111 (0x47 in hexadecimal notation). The sync word is intended for use by a decoder to achieve alignment to packet boundaries.
The present invention incorporates an additional layer of processing to utilize the information bearing capacity of the sync word. In addition to the packet alignment information supplied by this word, additional error detection capability is realized in accordance with the present invention by replacing the sync word with a parity checksum. The processing necessary to accomplish this is performed at the transcoder and constitutes the outer most layer of encoding.

~16560~-In the illustrated MPEG embodiment, the parity checksum is computed over the adjacent 187 bytes which constitute the information bits (as distinguished from the sync bits) of the immediately preceding MPEG packet. By replacing the sync word in one MPEG packet with a parity checksum for the information bits of the preceding MPEG packet, it is possible to simultaneously obtain packet synchronization and error detection of the information in the preceding packet. The decoder computes a sliding checksum on the serial data stream, using the detection of a valid codeword in place of a correlator function to detect the start of a packet. Once a locked alignment condition is established, the absence of a valid codeword at the expected location will indicate an errored packet condition. The error flag of the packet can then be set to indicate an errored data condition to the data processor. As the data is passed out of the decoder, the normal sync word can be reinserted in place of the checksum to provide a standard (e. g., MPEG) data stream.
Figure 1 illustrates the modification of a transport packet stream in accordance with the present invention. A packet stream 10, such as an MPEG packet stream, is formed from successive packets 12 each having r sync bits 14 followed by k information bits 16. In the MPEG format, the sync bits 14 comprise an eight-bit byte (r=8) followed by 187 eight-bit information bytes 16 (k=1496).
In order to enable both synchronization and error detection in accordance with the present invention, the sync bits 18 from a following packet are replaced with parity bits 20 to form a modified packet stream. The parity code 20 is an r bit checksum derived from the information bytes 16 of the preceding packet 12. Thus, whereas packet 12 comprises sync byte 14 followed by information bytes 16, the parity code 20 in the modified packet stream is in the position of the sync byte 18 of the next packet in the stream. This enables the parity code to verify the integrity of the preceding 15 information bytes 16 as well as to obtain packet synchronization.
After the modified packet stream has been acquired and error detection has been completed at the decoder, the original packet stream can be 20 reconstructed as illustrated at the bottom of Figure 1. In order to do this, the parity codes are replaced with the original synchronization bytes (e.g., the MPEG sync word 01000111) so that the packet stream will appear in its original form to subsequent decoder processes.
Figure 2 illustrates a parity check matrix generally designated 24 which can be used by the decoder to identify a valid codeword. The code is designed such that when a valid codeword is 21b~~0~
multiplied against the parity check matrix, a positive match is indicated when the calculated product produces a 0x47 (hexadecimal) result. This enables the utilization of conventional MPEG
5 hardware to identify and synchronize to the standard MPEG sync word. The parity check calculation constitutes a preprocessing step which immediately precedes the conventional hardware.
The parity check matrix 24 is arranged such 10 that it contains eight identical column structures 26. The replicated column structure (designated C) contains 1,497 bits of data for an MPEG embodiment.
Proceeding from the left-most column in Figure 2, the 1497-bit column C is duplicated in subsequent 15 columns of the matrix, shifted down by one bit position in a circular fashion. In this way, the bit positions unoccupied by the column data are filled with zeros, as designated by reference numeral 28 at the top of the matrix and reference numeral 30 at the bottom thereof. An example of the contents of the 1497-bit columns 26 that can be used to form the parity check matrix 24 is illustrated in Table 1. All entries in the table are in hexadecimal format, except for the last entry which is a single binary one. The upper left entry in the table represents the top bit of the column C, and the lower right entry represents the bottom bit of the column.

z~~~so~.

[ bOf3 857f 97a5 Oddbeba0 caa358c1 2da9 a7ee 67b2 1039 2627 5688 a47cOSc7 78b361e7 Oaff 2f4a lbb7 d741 9546 b182 Sb534fdc cf642072 4c4e adll 48f8 ObBe f166 c3ce l5feSe94 376fae83 2a8d 6304 b6a6 9fb9 9ec8 40e4 989dSa22 91f0171d e2cd 879c 2bfc bd28 6edf Sd06 SSlac609 6d4d3f73 3d90 81c9 313a b445 23e0 2e3b c59bOf38 57f97a50 ddbe ba0c aa35 8c12 da9a 7ee6 7b210392 6275688a 47c0 Sc77 Sb36 1 0 1e70 affl f4a1 bb7d7419 546b1825 b534 fdcc f642 0724 c4ea dil4 8f a'bl]

In interpreting the matrix, let:
R - received MPEG-2 packet, with 187 bytes followed by the checksum byte, for a total of 1504 bits - row vector of length 1504 bits - [first bit of packet, ... most recent received bit] .
Then, S - RP, where S - row vector of length 8 bits.
A valid received codeword is indicated when S - [0100 0111] - 0x47.

~1~~60~.

By examination of the parity check matrix set forth in Table 1, it can be seen that each bit of the computed checksum can be derived from an FIR
structure, consisting of 1497 taps. The same FIR
structure can be used to compute all eight parity bits since each column of the parity check matrix is offset by one bit position, but otherwise identical.
The decoder implementation can therefore consist of a single 1497 tap FIR, computing each parity bit in a serial fashion. This result is computed over a binary field, and consequently all additions represent exclusive-OR operations and each tap coefficient is either a one or a zero.
Such an FIR implementation of the decoder is desirable so that errors introduced by either the communication channel or any soft upset mechanism do not propagate indefinitely. This structure will guarantee that error conditions flush out within the space of a packet.
Figure 3 is a block diagram illustrating an encoder useful in accordance with the present invention. When the invention is used in connection with, e.g., digital cable television services, the encoder will be implemented in a transcoder at the cable television headend. The data stream to be encoded (1504 bits per packet in an MPEG
implementation) is input via terminal 40. A
modified packet structure 70 produced by the encoder of Figure 3 is illustrated in Figure 4. The 2~65~04-modified packet (in an MPEG implementation) comprises 188 bytes of data. Of these, portion 72 comprises 1496 bits of information data (187 bytes) and portion 74 comprises the eight bits of parity data inserted by the encoder of Figure 3. A reset signal 76 is input to the encoder via terminal 44.
A control signal 78 is input to the encoder via terminal 42. In response to the control signal, the information bits 72 will be output from the encoder via multiplexes 68 without modification. The encoder computes the parity bits 74 and inserts them into the modified packet in response to the control signal 78 going high. At this point, selector 68 will output the parity bits from exclusive-OR gate 64 instead of the synchronization byte carried in the original packet input via terminal 40. Selector 48 is actuated by the control signal to provide the proper eight bits of the input data packet to the FIR filter, which is implemented using components 50, 52, 54 and 62. Each of these components is reset at the packet boundaries by the reset signal input via terminal 44.
The encoder of Figure 3 implements a systematic linear block code (LBC), in which the information bits 72 of the packet are processed to produce an eight-bit checksum. The checksum 74 is appended to the end of the information bits 72, as illustrated in Figure 4.

A..., 21fi5fi0~-The core function 1/g(x) of the encoder, the delay buffer 52 and the polynomial function b(x) are identical to the FIR function implemented in the decoder, discussed below in connection with Figures 5-8. Since packet alignment is already known, the delay buffer 52 can be replaced by a shift register which stores the first seven bits of a 187-byte data word. After 1497 bits have been passed through the core function 50, these seven bits can then be shifted into the polynomial function 54, providing a correct output which is then summed with the bits shifted out of block 50. These combined bits are then passed through box 62, which implements the polynomial function g(x) to form an eight-bit result.
The eight-bit result out of block 62 can be scaled by an offset value input via terminal 66 to an exclusive-OR gate 64. If the offset value is set to 0x67 (hexadecimal), which exclusively ORs each respective bit output from block 62, a 0x47 (hexadecimal) result will be produced by the decoder when a valid codeword is detected. This result is the same as the MPEG codeword (01000111) which simplifies the decoder hardware by enabling the use of MPEG compatible components. If no offset were added by the encoder, then the decoder would be required to detect eight successive zeros, which has relatively poor autocorrelation characteristics and would increase the mean time required to achieve synchronization. The final computed eight-bit result output from exclusive-OR gate 64 represents the checksum and is appended to the end of the 187-byte (1496 bit) information word 72 via selector 68.
Figure 5 is a block diagram of an efficient structure that can be utilized to decode the data stream output by the encoder of Figure 3. The decoder structure provided by the present invention results in a drastic reduction in hardware requirements over a conventional FIR structure.
This is accomplished with an eight-tap infinite impulse response (IIR) feedback shift register (which generates a pseudo random sequence of maximal length), concatenated with an eight-tap FIR
structure. The combined structure is implemented to realize a response equivalent to a 1497-tap FIR
filter. The hardware implementation still requires the use of a 1497-bit delay buffer, but this is still much more economical to implement (e. g., with a random access memory based structure) compared to any shift register based approach. Power consumption is also greatly reduced since only a small number of circuit nodes will toggle over any clock period.
The decoder input bitstream is applied to the IIR filter 82 via input terminal 80. The function provided by the IIR filter is described as 1/g(x).
The output bits are subsequently processed by an FIR

2m~s o~-function containing a single tap at the input to a 1497-bit buffer 84. At the output of the buffer 84, an additional eight taps are described by the function b(x), illustrated as block 86. The output of this composite filter produces the desired 1497 tap FIR response and is input via exclusive-OR 88 to a sync processor 90, which attempts to identify the sync word. The output of the IIR filter is fed forward via line 96 as the other input to exclusive-OR 88. Upon identifying the sync word, sync processor 90 will output a packet start signal designating the commencement of successive packets in the input bitstream.
During acquisition, sync processor 90 functions in a mode that is similar to a standard MPEG sync detector. A shift register is used to store the most recent eight bits output from the filter structure, and these bits are examined for an occurrence of the 0x47 (hexadecimal) sync word.
Once packet alignment has been established by the acquisition state machine, sync processor 90 will continue to attempt to locate the sync word at the expected time. If the sync word is absent, an error flag bit will be set in the delayed packet data stream. If any input bit originated from an errored block as identified by an error correcting code, e.g., a Reed-Solomon (R/S) code, an error latch will be set that causes the decoder to set the error flag of any packets that are output containing errored '~16~60~

bits. This error latch will reset itself at the start of the next packet boundary. Reed-Solomon and other error detection codes and their implementation are well known in the art.
If the error flag of the current packet was previously set by the transcoder due to any errors, such as satellite transmission errors, the contents of the error flag will remain high at the output of the decoder.
The decoder input bitstream is reconstructed at the output of the delay buffer 84 by processing the delayed data by the generator polynomial g(x) as indicated at box 92. This is the inverse of the IIR
filter function 1/g(x). The data must be taken from the output of the packet delay buffer, so that detected data errors can be used to set the error flag corresponding to the packet in which they occurred.
As noted above, in an MPEG implementation it is advantageous to replace the parity code 74 inserted at the encoder with the standard MPEG
synchronization byte once the parity code has achieved its purpose of acquiring synchronization and detecting errors. The sync byte is reinserted, together with any necessary error flags, in the recovered data stream by sync byte and error flag insertion circuit 94. This circuit is responsive to a control signal from sync processor 90 which identifies the packet boundary at which the sync zls~6a~

byte is to be reinserted. The reconstructed packet stream is output from circuit 94 ("data out").
Figure 6 is a more detailed block diagram of the decoder filter shift registers. The IIR filter 82 comprises a sequence of one-bit delays (Z-1) 100 and exclusive-OR gates 102. The polynomial function b(x) provided by box 86 is implemented using a plurality of one-bit delays 104 and exclusive-OR
gates 106. Similarly, the generator polynomial g(x) provided by block 92 is implemented using one-bit delays 108 and exclusive-OR gates 110. The remaining.components illustrated in Figure 6 are the counterparts of the same components illustrated in Figure 5. Figure 6 also illustrates a terminal 96 for inputting the supplemental (e. g., R/S) error information to the sync byte and error flag insertion circuit 94.
Figures 7 and 8 are useful in describing the theory behind the decoder of the present invention, and more particularly the simplified FIR filter design used at the decoder for calculating syndromes (i.e., the parity bits) from the transport packets.
In the following discussion, each transport packet is considered to be a linear block coded codeword ci.
A binary linear block code (LBC) C c ~ with parameters (n, k) consists of a k dimensional subspace of the set of binary n-tuples ~. Such a ~16500~-space can be described by a set of k basis vectors placed in a k x n generator matrix 91, ~ 9~ ,2 . . . g~ ,~
9a, ~ 92,2 . . . g2,~
G=
9x,1 9x,2 - - ' 9xr~
Given a generator matrix, a (linear) encoder can be constructed via matrix multiplication c=mG
1~x whPrP m E a 2 i c a hi nary 1~-i-~ir~l o Tf tho f; rod- 1~
columns of G is the identity matrix, we say that G
represents a systematic encoder. Note that a given LBC C has many generator matrices (and encoders).
An alternate description of a code C is given by a set of r = n - k linearly independent parity-check equations that can be expressed in terms of a parity-check matrix H, a r x n binary matrix. A
binary vector of length n is a codeword if and only if ~l,i ~2,1 "' hti hi,~ J~,2 ~Cb. G . - . . , G,-1 ~ . . . _ gyp, p, . . . , 0 h,,n ~a,» ... h,-,"
or cH~=U.
Again, a given ZBC C has many parity-check matrices.

~.,.,.

The space spanned by the rows of a given parity-check matrix H for a code C form an (n, r) LBC called the dual code. This code is described by c1={a~~ ~a.c=OfaraI~cEc~_ A coset of a LBC is obtained via solutions to the equation c1-!~ = S
where S is a fixed binary vector of length r.
To encode onto a coset of a LBC, a constant vector can be added c=mG+a where ~~ = S. For a systematic encoder, the constant vector a can always be chosen to be zero in its first k coordinates (thus a constant is added to the parity checks only).
Given a binary polynomial g(x) = 1 + g1 x + g2x2 + . . . + 9r-, x'-~ + xr.
of degree r, the power series =f(xy=~fx~
9~x) f~o is defined by the relationship 21fi56 ~4 g (x) f (x) =1.
Note that the power series f(x) forms a periodic sequence, that is f~X) _ ~P~X~ ~Xip~
1~D
__ f P~X
1 - X~ ' where P is the (fundamental)period of f(x) and _ -1 fr'(X) - ~~ f Xj represents the truncated power series with P terms. It is well known that the maximum period ~ ~ 2r - 1 is achieved if and only if g(x) is a primitive polynomial; in this case, f(x) is said to be a maximal length, pseudo-random (PN) sequence.
Closely associated with the power series f(x) is the difference equation r y = ~ y 9rYi-r I~1 m _ ~ fw_r, r~o which describes a linear, time-invariant, casual, finite state system with input sequence w~, output sequence y~ and impulse response f~.
Similarly, a rational function (i.e., ratio of polynomials) a(xy 9~x~ ~xy fao is defined by the polynomial equation g (x) a (x) =a (x) .
The power series e(x) implies the difference equation degree( a) r Yj _ ~ am ~-m - ~ 9t ]~-r rr~o r=~
m _ ~ ~stw~_r.
r~o If f(x) - 1/g(x) and m - 0 is any non-negative integer then the delayed power series (ej - fj+m) atx) x l for some a(x) of degree less than r (a(x) is easily determined from the polynomial equation g(x)e(x) -a(x)). Similarly, for the non-negative integer n_>0 the truncated power series (a polynomial) (hj - 0, j > k) ~+1 ~x~ - ~ ~tm~ - ~x~ _ Xxti ~~X~
i_o ~(X~

r~"~~...
2165604.

for some b(x) of degree less than r (b(x) is easily determined from the polynomial equation g(x)hk+1(x)=a(x)-xk+1b(x)). The difference equation, in this case, de~eetal degeetby r Y = ~ are ~-m - ~ ~r iN-~k+, y-t - ~ 9rY-r rrr o r~o r=~
k _ ~ hrw_r.
r=o corresponds to a sliding window or finite impulse response (FIR) system. Note that this filter can be implemented (using the first difference equation) with a number of terms that has terms rather than ~~~+~~Xy~~ terms (where ~~'~~ is the Hamming weight of the polynomial). This is very important in implementing the single bit in, single bit out decoder FIR filter (syndrome calculator) of the present invention since the polynomials a(x), b(x), g(x) are small degree (8 or less) and the degree of hk+1(x) is large.
In implementing the present invention, it is desired to generate LBCs for which the parity check equations can be implemented by a single FIR filter.
Let hk+1(x) be a polynomial of degree k with non-zero constant term (h~ = hk = 1). Then ... ... ... f~ p 0 ... 0 0 hk . ... ... h~ ~ 0 ... 0 0 0 ... hx ... hr-1 hr-2 hr-~ ...
defines an FIR-parity-check LBC. With such an FIR-parity-check LBC, codewords, Ci(x), that are concatenated together W(X~ - ~, ~i(X~X,~' i.aD
can be synchronized by passing w(x) though the FIR
filter with response hk+1(x)~
~~X~ = hx+i~X~t,',(X~ _ ~(Yr~X~ +~'~X~~~
r=o where each yi(x) has degree less than k. This is illustrated in Figure 7, in which the ci terms define successive codewords, each having n bits comprising k information bits and r parity bits. The codewords form a packet stream 120 with each packet comprising message bits mi and parity bits pi.
After processing by the syndrome calculator 122, a data stream 124 results in which each packet comprises the desired synchronization word s, and the terms yi, which are ignored.
The syndrome sequence S(x) has the constant polynomial s(x) (a polynomial of degree less than r 21656Q~.
that determines which coset of the LBC is. used) periodically embedded at the end of each n-block (in the absence of channel errors). Thus by correlating the syndrome sequence S(x) with the constant polynomial s(x), synchronization can be established and maintained. By using a systematic encoder, the data is recovered directly from the concatenated sequence w(x). Furthermore, once synchronization has been established, the syndrome can be used to detect errors in the data whenever the fixed polynomial s(x) fails to appear at the anticipated time. Finally, by using an FIR parity check, the syndrome former is self synchronizing (i.e., the initial conditions of the syndrome are resolved automatically) and has limited error propagation (the effect of an error is limited to the length of the FIR window, K + 1 bits).
To choose the response hk+1(x), a recursive solution is required. Once a recursion polynomial g(x) is selected, a suitable a(x) and b(x) are determined so that ~+1 ~X) _ ~X) _ xx~i b~X) g(x) with hk+1(x) having a non-zero constant term and degree k, with the first (ho) and last (hk) terms being 1 (h0=hk=1). Once g(x) is specified, only certain choices of a(x) and b(x) will work.
Figure 8 is a block diagram illustrating the components of the syndrome calculator and the 216~60~

synchronization detection. It is important to note that the effects of the initial conditions in the recursive portion of the circuit 122 (i.e., the feedback block 130 that implements the 1/g(x) function) have a finite effect on the output. This is a direct consequence of the fact that the polynomial f(x)=a(x)-xK+lb(x) is divisible by g(x) and that the operations that implement these functions operate on the output of the recursive part of the circuit. For example, if the initial conditions are non-zero in the 1/g(x) circuit, and the input at terminal 126 is constantly zero, then the output of the recursive portion 130 is the pseudo random (PN) sequence generated by 1/g(x).
However, within n steps, the output of the syndrome calculator will constantly produce zero at the output. This property also ensures that the effects of channel errors on the output of the syndrome will be restricted to the k + 1 span of the impulse response of the syndrome function.
As can be seen in Figure 8, the syndrome calculator 122 implements the function hk+1(x) described above. The a(x) polynomial 134 and b(x) polynomial 138 are added in exclusive-OR gate 140 to provide the actual syndromes. The input to the polynomial 138 is delayed by delay element 132.
The output of the syndrome filter is shifted into a register 150 of length r, where a match to the desired sync pattern s(x) is made in comparator 152. The resultant sync signal is then used to establish and maintain synchronization as well as to detect the presence o~ errors.

..,M
216~604-Finally, a systematic encoder must be implemented. A simple two pass encoder can be implemented as follows. First, take the k bit message, followed by r zeros, and pass the resulting n bits through a syndrome calculator, producing an n bit output. Throw out the first k outputs and retain the last r bits. These r bits are then passed through a filter with response g(x)/a(x) (this method assumes k > r). The r bits produced from this last filtering summed with a constant r bits (that determines s(x)) determine the parity bits that are to be transmitted. Note that there are simplifications that can be applied here. First, only the first r-1 message bits are needed for the "b(x)" polynomial, there is no need to build a buffer of length k+1 (as required at the receiver).
A common class of (n, k) ZBCs used for error detection in a large variety of transmission and storage systems are the cyclic redundancy check (CRC) codes. These codes are best described in terms of polynomial codewords ~tx~ E~2IX~ (the set of binary polynomials of degree < n) and a generator polynomial g(x) of degree r=n-k. The code C = ~ c(xy ~ l~Lxl I ~(x) = m(x~9(X~, mtx) E ~ I~1 is all polynomial multiples of the generator polynomial g(x) of degree less than n. A CRC code can be described as an intersection of the ideal generated by g(x) in the ring of polynomials 1E2~X~.

,., 216~604-a =< g(x) > n~'2[x], < g(x) ~ .{ c(x) E ~'2[xl ( c(x) = m(x)9(x), m(x) E ~2Ix1 }-Given the generator g(x), of degree r, and the block length n for a CRC, one can always find polynomials h(x), of degree k=n-r and f(x) of degree n such that g(x)h(x)=f(x) and then ~ _ { c(x) ~ ~2[x] I c(x)ti(x) = o madulo t(x) ~.
C forms an ideal in the quotient ring ~2~X]l < f(X~ >
If one can solve g(x)h(x)=xn-1 (i.e., f(x)=xn-1) then the CRC is a cyclic code. In this case, the dual code is also a cyclic code with generator xkh(x_1) ~1=< xk~x-' ) ~ ~~~xl and thus the dual of a cyclic code is a cyclic code.
However, for most choices of block length n, it is not possible to solve g(x)h(x)=f(x) with f(x)=xn-1.
For example, if g(x) is a primitive polynomial (or the product of a primitive polynomial with x-1, a common form of the generator used in many CRC
codes), then the block length n must be divisible by 2r-1 (2r-1-1). For such other values of n, the code C is in fact a shortened cyclic code since one can always find an integer m ~' n such that g(x) divides xm -1 and the code C is obtained by shortening the (m, m-r ) code d ~~X ~ ~ ~2 ~x~ to the ( n, n-r ) code ~ _< g(x) ~ n~2[x] .

For a shortened cyclic code, m > n, the polynomial xkh(x-1) does not generate the dual code and in fact the dual code is not the intersection with any ideal in ~2~x~. Thus the dual of a shortened cyclic code is not a shortened cyclic code.
As an example, consider the primitive polynomial g(x)=1+x+x3 of degree r=3 and the block lengths n=6,7,8. In the following Table 2, the dimension of the code k is given as well as f(x)=a(x)=xk+1b(x)=g(x)h(x) and the value of the smallest cyclic code length m.
n k a(x) b(x) f(x) h(x) m 6 3 1 1 +x2 1 +x+x~+xs 1 +x3 7 +x 7 4 1 x2 1 + x7 1 + x + x2 7 + x4 8 5 1+x x2 1+x3+x8 1+x3 14 g(x) = 1 + x + x3, n = 6,7,8 Notice that only in the case n=7 is the code a cyclic code which has a dual that is itself a cyclic code. In the other two cases, n=6,8 the codes are shorted cyclic codes which have duals that are not shortened cyclic codes.
In connection with the present invention, it has been realized that for reasons of simplifying the syndrome calculation, the dual of a shortened cyclic code offers distinct advantages over the 216~60~

usual CRC technique of using a shortened cyclic code. Thus for example, once g(x) and n have been fixed, the codewords of a CRC would be the set ~cac =< 9~X~ ~ ~'2(X~ while the illustrated implementation of the present invention uses the set _ (< Xkh(X-~) y fllF~~X~)1. Note that ~Fm-a-c~cRe unless the code is a cyclic code (i.e., g(x) divides xn-1). The choice of FIR-p-c means that the simple syndrome calculation procedure described previously will apply. This would not be possible in general with CcRC.
In an MPEG implementation as illustrated in Figures 3-6, the packets are 188 bytes (n=1504 bits) long with 187 bytes (k=1496 bits) of data and 1 byte (r=8 bits) of sync word. (Note that 28-1=255 does not divide n=1504). The illustrated embodiment uses the space for the 1 byte sync word to accomplish both synchronization and additional error detection, above that provided by other error detection layers in the transmission system, such as Reed Solomon encoding. This is accomplished via an FIR-parity-check based linear block code, as described above.
The parameters of one possible code are (n=1504, k=1496) where:
g(x~ =1 + x + x~ + ~ + x8;
a(x) =1;
b(x) =1 + x + X3 + x7, 216560~-which is based on a primitive polynomial g(x) of degree 8 (i.e., it produces a PN-sequence of length 255), a constant a(x) and a b(x) with 4 terms.
The system uses a coset of the FIR-parity-check LBC. The sequence chosen s(x)=1+x+x2+x6 (0x47 in Hex) has good auto-correlation properties and is, advantageously, the same as the conventional MPEG
sync word. This result is achieved by adding the offset '~X)= 1 +X+X'~+X5+X6 (px67 in Hex) to the parity check byte at the transmitter.
It should now be appreciated that the present invention provides a method and apparatus for achieving synchronization and detecting errors in a packetized data stream. Although the invention has particular applicability to the synchronization and error detection in an MPEG transport packet scheme, it is not limited to use with the MPEG format. The invention also provides a unique and economical decoder, in which syndrome calculation is accomplished using a one bit input, one bit output FIR filter. An advantageous class of codes which can be used to generate the parity bits used for the checksum in accordance with the present invention is the class of linear block codes which are duals of shortened cyclic codes.
The inclusion of a parity checksum encoding layer affords a substantial improvement in the error detection capabillity of the transmission system. A
conventional error correction layer (such as a Reed-Solomon layer) alone will detect errored data approximately 85$ of the time, whereas the checksum of the present invention alone will provide a '~1!~5604-detection rate of 99.6%. Combining both detection mechanisms will yield an overall detection rate of 99.94%. This is an important consideration when the system relies on the concealment of errors when operating in high noise environments.
An additional advantage of this encoding scheme is an improvement in the reliability with which packet synchronization is accomoplished. The standard sync word approach is vulnerable to repetitive data patterns within the packets which might be falsely acquired as the sync word location.
A large measure of this data dependence is removed in the method and apparatus of the present invention by encoding the data itself to provide the synchronization information.
Although the invention has been described in connection with various specific embodiments, it should be understood and appreciated that numerous adaptations may be made thereto without departing from the spirit and scope of the invention, as set forth in the claims. For example, the following additional sets of parity check polynomials (or others) could be used in connection with (n=1504, k=1496) codes:

Selected 'Parity Check Polynomials for (n = 1504, k = 1496) codes 9(X) =1+XZ+X3+X4+X8 a(x) =1+X+x2+x3+x4+x6, b(x) =1+x+x2+x3+xs+x' 8(X) =1+X+x3+X4+X5+x6+x~, b(x) =1+x2+x3+x6+x~
g'(X) =1+X3+X5+X6+X$
a(X) =1+X+x2+X3+X4+x5, b(X) =1+X+x2-f.x3.f. x5+x6+x~
a(x) = 1+x2+x3+x'~+x6, b(x) =x' a(x) =1+x+XZ+X3+X4+X5+X6, b(X) =1+x2+x3+X4+X5+Xf a(X)=1+X2+X3+XS+X', b(X)=1+X+XZ+x3+x4+x5+x6-Ex7 9(X) = 1 +x+x2+x5+X6 +x~ +xe a(x) = 1, b(x) =x+x2+x4+x' a(x) =1+x+xz+x3+xs+xs+x', b(x) =1+x+x3+x4+XS+x6+x' a(x) =1+x4+x5+x6+x', b(x) =x' g(X) =1+XZ+X5+X6+x8 a(x) =1+x4+xs+x', b(x) =x' a(x)=1+X+x2+x3+x4+X5+x6+x', b(x)=1+XZ+x4+x5+x;
9(x) = 1 +X+x5 +X6 +x$
a(X) = 1, b(X) = 1 +X+x3+X' a(x) =1+x+x2+x3+x4+xs+x6, b(x) =x' a(x) =1+x+xz+x3+x6+x', b(x) =1+x+x2+x3+x4+x5+x6+x~

~.~ 65604 g(X) =1+X2+X3+X~+X$
a(x) =1, b(x) =x+x2+x3+x~+xs+x6+x'' a(x) = 1 +x4 +x6 +x', b(x) = x.
a(x) =1+x+XZ+x3+X4+xs+xb+x7, b(x) =1+x+x4+xs+x6+x~
g(X) =1+X2+X3+x5+X8 8(X)=1, b(X)=X+X3+x4+x5+X7 a(x) =1+x2+x3+x4+xs+x~, b(x) =X+x2+X3+X4+xs+x~+x~
a(x) =1+X+x2+x4+xs+x6+x'', b(x) =x2+x3+x4+xs+x6+x' _____ a ~'f .) - 1 + x + xz + x3. +.x4 + xs + x6 + x~ , b ( x ) = 1 + x2/+ x~
+ xs + x' 9(X) =1+x+x2+x3+x4+x6+x8 a(x) =1+x+x2+x3+x4+xs, b(x) =X~
a(x) = 1+x+x2+x3+x4+XS+x~, b(x) = 1+X+x2+x4+XS+x7 g(x) = 1 +x+xs +x'' +x$
$(X) =1~ b(X) =I+X+x2+X3+xs+X6+x7 a(X) -1+x+X3+XS+X6+x~, b(x) =1+X+xz+X3+X;+x5+~(6-fx7 g(x) =].+X3+X5+X~+X$
a(x) 1+X+x2+x3+X4i b(x) =1+X+XZ+x3+X4+x5+X6-t-x7 a(X) =1+X+x2+x3+x4+xs+X~, b(x) =X+xz+x3+xs+x6+x7 a(x) = 1+x+xz+xa+xs+xs+x~. b(x) =x~
a(x) = 1+x+x2+x4+xs+xs+xy b(x) =1+x+xz+xa+xs+x7 r~ ' _ 216~604-g(x) =1+x+x2+x~+x$
8(X) =1+X+XZ+X4+x5+X6+X', b(X) =X~
a(X) =1+x+X2+X3+X4+XS+X6+X7, b(X) =I+X+XZ+X4+X6+X' g(X) =i+x2+x3+X6+X8 a(x) = 1, b(x) = 1 +x+x3+x~
a(x) =1+X+x3+xs+x~, b(x) =1+X+XZ+x3+x4+X5+X6+X7 g(x) =i+X+xZ+x3+X6+X7+x8 a(x) = 1, b(x) = 1 +x+xz +x3 +x' a(x) =i+X3+x5+xe~ b(X) =x~
a(x) =Z+x+XZ+x3+x4+X6+xl, b(x) =i+X+XZ+X4+XS+X5+X, g(X) -i+XZ+X4+X5+X6+X~+X8 a(X) =1. b(x) =xz+x3+x4+x5+x6+x' a(X) =i+x2+X3+XS+x6+x7, b(x) =i+XZ+x3+X4+XS+xs+x' 9(x) =1+X4+XS+X6+X8 a(X) -i+X-L. x4+XS+x%, b(X) =1+Y+X2+X3+X4+X6 yX7 a(X) -i+XZ+X~+X5+X6+X7, b(X) =X+X3+X4+X5+X6+x7

Claims (24)

THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE
PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS:
1. A method for achieving synchronization and detecting errors in a data stream carrying successive packets of k information bits and r synchronization bits, the synchronization bits of each packet comprising a predefined searchable pattern, comprising the steps of:
locating at least one synchronization pattern in said data stream to enable the boundaries for the k information bits of successive packets to be determined;
replacing the synchronization pattern in each packet with an r-bit parity code derived from a counterpart set of k information bits in said data stream, thereby generating a modified data stream;
communicating said modified data stream to a decoder;
locating at least one of said parity codes in said modified data stream at said decoder to achieve synchronization, thereby enabling the boundaries for the k information bits of successive packets to be determined; and comparing said parity codes to checksums obtained from their counterpart k information bits at said decoder to determine when the information bits in a packet contain an error.
2. A method in accordance with claim 1 wherein said data stream is an MPEG compatible data stream.
3. A method in accordance with claim 2 comprising the further step of scaling said parity codes such that when decoded at said decoder, they will match MPEG synchronization patterns.
4. A method in accordance with claim 2 wherein k=1496.
5. A method in accordance with claim 1 wherein:
the synchronization pattern for each packet precedes the k information bits of that packet; and the counterpart set of k information bits for each parity code comprises the k information bits immediately preceding the parity code.
6. A method in accordance with claim 1 wherein said parity code is generated from a linear block code comprising a dual of a shortened cyclic code.
7. Communication apparatus for enabling a receiver to robustly obtain synchronization and detect errors in a data stream carrying successive packets of k information bits and an r-bit parity code, the parity code of each packet comprising a predefined pattern of bits detectable at said receiver by searching for said pattern and functioning as a checksum for information bits carried in said data stream, said apparatus comprising:
means for inserting the parity codes in said packets prior to communication to said receiver, each of said parity codes being derived from a counterpart set of k information bits in said data stream;
means for communicating said data stream to said receiver after insertion of said parity codes;
means for locating at least one parity code in said data stream at said receiver to achieve synchronization, thereby enabling the boundaries for the k information bits of successive packets to be determined; and means at said receiver for comparing said parity codes to checksums obtained from their counterpart k information bits to determine when the information bits in a packet contain an error.
8. Apparatus in accordance with claim 7 wherein said data stream contains synchronization patterns prior to insertion of said parity codes, said apparatus further comprising:
means for replacing said synchronization patterns with said parity codes to provide a modified data stream for communication to said receiver.
9. Apparatus in accordance with claim 8 wherein:

each packet commences with one of said synchronization patterns, with the k information bits for the packet following the synchronization pattern for that packet; and each synchronization pattern is replaced with a parity code derived from the k information bits of the preceding packet.
10. Apparatus in accordance with claim 9 wherein said data stream is an MPEG compatible data stream.
11. Apparatus in accordance with claim 10 further comprising:
means for scaling said parity codes such that when decoded at said receiver, they will match an MPEG synchronization pattern.
12. Apparatus in accordance with claim 8, further comprising:
means at said receiver for reconstructing said data stream from said modified data stream by replacing said parity codes with said synchronization patterns.
13. Apparatus in accordance with claim 7 further comprising:
a parity check matrix at said receiver for generating a predefined synchronization pattern from valid parity codes.
14. Apparatus in accordance with claim 13 wherein said predefined synchronization pattern is a standard MPEG synchronization pattern.
15. A decoder for a packetized digital data stream in which successive packets each contain k information bits and an r-bit parity code, the parity code of each packet being derived from k bits of information carried by said data stream, comprising:
means for searching said data stream during a signal acquisition phase to locate a parity code contained therein;
means for establishing a synchronization condition based on one or more parity codes located by said searching means;
means for comparing a checksum derived from the k information bits of each packet to the parity code for those k information bits during a tracking phase; and means for signalling an error in the k information bits for a packet when the checksum for those bits does not match the parity code therefor.
16. A decoder in accordance with claim 15 further comprising:
means for monitoring said parity codes during said tracking phase; and means responsive to said monitoring means for switching from said tracking phase to said acquisition phase after a predetermined plurality of r-bit patterns considered by said monitoring means to be parity codes are found to be invalid.
17. A decoder in accordance with claim 16 wherein said data stream is encoded in an MPEG
compatible format, said decoder further comprising:
means for replacing the parity code in each packet with an MPEG synchronization pattern.
18. A decoder in accordance with claim 17 wherein:
each parity code is derived from the k information bits of the immediately preceding packet; and each synchronization pattern comprises the first r bits in a packet and is followed by the k information bits for that packet.
19. A decoder in accordance with claim 15 wherein:
each parity code is derived from the k information bits of the immediately preceding packet.
20. A decoder in accordance with claim 15 wherein said parity codes are generated from a linear block code comprising a dual of a shortened cyclic code.
21. A decoder in accordance with claim 15 wherein said data stream is encoded in an MPEG
compatible format, said decoder further comprising:
means for replacing the parity code in each packet with an MPEG synchronization pattern.
22. Apparatus for calculating syndromes for linear block coded codewords, comprising:

a finite impulse response filter having an input for receiving a serial bit stream of codeword data, each codeword containing k information bits and r parity bits, said filter having an output for providing a serial bit stream of syndromes, said syndromes comprising a fixed linear combination of a current bit of said codeword data input to said filter and the k previous bits of said codeword data;
wherein said filter has an impulse response hk+1(x), where:

g(x)is a recursive generator polynomial of degree r, and a(x) and b(x) are polynomials chosen such that the polynomial hk+1(x) will be of degree k, have a non-zero constant term ho=l, and have a non-zero final term hk=1.
23. Apparatus in accordance with claim 22 wherein said linear block code is a dual of a shortened cyclic code.
24. Apparatus in accordance with claim 22 further comprising:
means coupled to the output of said filter for detecting a synchronization pattern in the serial bit stream of syndromes.
CA002165604A 1994-12-23 1995-12-19 Synchronization and error detection in a packetized data stream Expired - Fee Related CA2165604C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/363,252 US5703887A (en) 1994-12-23 1994-12-23 Synchronization and error detection in a packetized data stream
US08/363,252 1994-12-23

Publications (2)

Publication Number Publication Date
CA2165604A1 CA2165604A1 (en) 1996-06-24
CA2165604C true CA2165604C (en) 2002-04-09

Family

ID=23429465

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002165604A Expired - Fee Related CA2165604C (en) 1994-12-23 1995-12-19 Synchronization and error detection in a packetized data stream

Country Status (5)

Country Link
US (1) US5703887A (en)
JP (1) JPH08256336A (en)
KR (1) KR100376822B1 (en)
CA (1) CA2165604C (en)
MX (1) MX9505284A (en)

Families Citing this family (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5847779A (en) * 1994-06-15 1998-12-08 Rca Thomson Licensing Corporation Synchronizing a packetized digital datastream to an output processor in a television signal processing system
DE19529982A1 (en) * 1995-08-16 1997-02-20 Bosch Gmbh Robert Synchronization procedure
JPH09116541A (en) * 1995-10-16 1997-05-02 Toshiba Corp Communication controller
DE19614701A1 (en) * 1996-04-15 1997-10-16 Bosch Gmbh Robert Method for the transmission of coded data
KR0180501B1 (en) * 1996-06-25 1999-05-01 김주용 Mpeg-2 transfort streem packet detecting apparatus and method
US6154468A (en) * 1996-10-24 2000-11-28 Philips Electronics North America Corporation Fast sync-byte search scheme for packet framing
US6026508A (en) * 1997-04-22 2000-02-15 International Business Machines Corporation Storage sub-system compression and dataflow chip offering excellent data integrity
US6026506A (en) * 1997-09-26 2000-02-15 International Business Machines Corporation Concealing errors in transport stream data
US5956102A (en) * 1997-11-04 1999-09-21 Hitachi America Ltd. Methods and apparatus for the efficient implementation of signal synchronization and cyclic redundancy checks in communication systems
US6243846B1 (en) * 1997-12-12 2001-06-05 3Com Corporation Forward error correction system for packet based data and real time media, using cross-wise parity calculation
US5870412A (en) * 1997-12-12 1999-02-09 3Com Corporation Forward error correction system for packet based real time media
US6170075B1 (en) 1997-12-18 2001-01-02 3Com Corporation Data and real-time media communication over a lossy network
US6145109A (en) * 1997-12-12 2000-11-07 3Com Corporation Forward error correction system for packet based real time media
ATE218778T1 (en) 1997-12-12 2002-06-15 3Com Corp A FORWARD ERROR CORRECTION SYSTEM FOR REAL-TIME PACKET-BASED MEDIA
US6173011B1 (en) * 1998-05-28 2001-01-09 Glenayre Electronics, Inc. Forward-backward channel interpolator
US6434146B1 (en) * 1998-12-04 2002-08-13 Koninklijke Philips Electronics N.V. Use of sequencing information in a local header that allows proper synchronization of packets to subsidiary interfaces within the post-processing environment of an mpeg-2 packet demultiplexing architecture
US6430159B1 (en) 1998-12-23 2002-08-06 Cisco Systems Canada Co. Forward error correction at MPEG-2 transport stream layer
US6366970B1 (en) * 1999-04-01 2002-04-02 Ravisent Technologies, Inc. Optimal handling and manipulation of high-speed streaming media in a computing device
JP2001025010A (en) * 1999-07-09 2001-01-26 Mitsubishi Electric Corp Multi-media information communication equipment and method therefor
AU6863200A (en) * 1999-09-08 2001-04-10 Mellanox Technologies Ltd. Data integrity verification in a switching network
US6601210B1 (en) 1999-09-08 2003-07-29 Mellanox Technologies, Ltd Data integrity verification in a switching network
US6763390B1 (en) 2000-01-24 2004-07-13 Ati Technologies, Inc. Method and system for receiving and framing packetized data
US7366961B1 (en) 2000-01-24 2008-04-29 Ati Technologies, Inc. Method and system for handling errors
US6988238B1 (en) * 2000-01-24 2006-01-17 Ati Technologies, Inc. Method and system for handling errors and a system for receiving packet stream data
US6999424B1 (en) 2000-01-24 2006-02-14 Ati Technologies, Inc. Method for displaying data
US6885680B1 (en) 2000-01-24 2005-04-26 Ati International Srl Method for synchronizing to a data stream
US6778533B1 (en) 2000-01-24 2004-08-17 Ati Technologies, Inc. Method and system for accessing packetized elementary stream data
US6804266B1 (en) 2000-01-24 2004-10-12 Ati Technologies, Inc. Method and apparatus for handling private data from transport stream packets
US8284845B1 (en) 2000-01-24 2012-10-09 Ati Technologies Ulc Method and system for handling data
US6785336B1 (en) 2000-01-24 2004-08-31 Ati Technologies, Inc. Method and system for retrieving adaptation field data associated with a transport packet
JP4903967B2 (en) * 2000-04-14 2012-03-28 シーメンス アクチエンゲゼルシヤフト Data stream channel decoding method, channel decoding apparatus, computer-readable storage medium, and computer program
US6674805B1 (en) 2000-05-02 2004-01-06 Ati Technologies, Inc. System for controlling a clock signal for synchronizing a counter to a received value and method thereof
US7113546B1 (en) 2000-05-02 2006-09-26 Ati Technologies, Inc. System for handling compressed video data and method thereof
US6725388B1 (en) * 2000-06-13 2004-04-20 Intel Corporation Method and system for performing link synchronization between two clock domains by inserting command signals into a data stream transmitted between the two clock domains
US7168069B1 (en) 2000-07-12 2007-01-23 Stmicroelectronics, Inc. Dynamic generation of multimedia code for image processing
US6718507B1 (en) * 2000-09-12 2004-04-06 At&T Corp. System and method for representing compressed information
US6763492B1 (en) * 2000-09-26 2004-07-13 Qualcomm Incorporated Method and apparatus for encoding of linear block codes
US7095945B1 (en) 2000-11-06 2006-08-22 Ati Technologies, Inc. System for digital time shifting and method thereof
US6971058B2 (en) * 2000-12-29 2005-11-29 Nortel Networks Limited Method and apparatus for finding variable length data patterns within a data stream
JP3593039B2 (en) * 2001-01-22 2004-11-24 松下電器産業株式会社 Error and synchronization detection apparatus and method
US7227949B2 (en) 2002-01-31 2007-06-05 Texas Instruments Incorporated Separate self-synchronizing packet-based scrambler having replay variation
US6920592B2 (en) * 2002-08-12 2005-07-19 Broadcom Corporation System, method, and apparatus for detecting and recovering from false synchronization
WO2004019547A1 (en) * 2002-08-22 2004-03-04 Thomson Licensing S.A. Fast synchronization in smart cards
FR2846179B1 (en) 2002-10-21 2005-02-04 Medialive ADAPTIVE AND PROGRESSIVE STRIP OF AUDIO STREAMS
FR2849980B1 (en) * 2003-01-15 2005-04-08 Medialive METHOD FOR THE DISTRIBUTION OF VIDEO SEQUENCES, DECODER AND SYSTEM FOR THE IMPLEMENTATION OF THIS PRODUCT
US7031284B2 (en) * 2003-03-03 2006-04-18 Interdigital Technology Corporation Wireless communication method and apparatus for optimizing multi-user detection
FR2853786B1 (en) * 2003-04-11 2005-08-05 Medialive METHOD AND EQUIPMENT FOR DISTRIBUTING DIGITAL VIDEO PRODUCTS WITH A RESTRICTION OF CERTAIN AT LEAST REPRESENTATION AND REPRODUCTION RIGHTS
US20040218623A1 (en) * 2003-05-01 2004-11-04 Dror Goldenberg Hardware calculation of encapsulated IP, TCP and UDP checksums by a switch fabric channel adapter
WO2004114675A1 (en) * 2003-06-18 2004-12-29 Thomson Licensing S.A. Method and apparatus for error detection of compressed video in a digital media receiver
US7652999B2 (en) * 2003-06-18 2010-01-26 Thomson Licensing Method and apparatus for processing null packets in a digital media receiver
US7613991B1 (en) 2003-08-19 2009-11-03 Altera Corporation Method and apparatus for concurrent calculation of cyclic redundancy checks
US7320101B1 (en) * 2003-08-19 2008-01-15 Altera Corporation Fast parallel calculation of cyclic redundancy checks
CN1681033A (en) * 2004-04-06 2005-10-12 皇家飞利浦电子股份有限公司 Fault correcting mechanism for CD player
US20070195822A1 (en) * 2006-02-21 2007-08-23 Mediatek Inc. Method and system for locating packet boundaries
JP5298621B2 (en) * 2007-12-21 2013-09-25 ソニー株式会社 Transmitting apparatus and method, receiving apparatus and method
WO2012011722A2 (en) * 2010-07-19 2012-01-26 엘지전자 주식회사 Method for transmitting/receiving media and device for transmitting/receiving using same
US9214964B1 (en) 2012-09-24 2015-12-15 Marvell International Ltd. Systems and methods for configuring product codes for error correction in a hard disk drive
US10389764B2 (en) 2016-10-18 2019-08-20 At&T Intellectual Property I, L.P. Network data source time management for data streaming processing system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BE656364A (en) * 1963-11-29
GB2094041B (en) * 1981-03-03 1985-08-21 Sangamo Weston Data receivers incorporating error code detection and decoding
US5367544A (en) * 1989-05-04 1994-11-22 Northern Telecom Limited Data stream frame synchronisation
US5280484A (en) * 1989-07-08 1994-01-18 Alcatel N.V. Time-division multiplex communication system with a synchronizing circuit at the receiving end which responds to the coding of words inserted in the transmitted information
JPH04211547A (en) * 1990-03-20 1992-08-03 Fujitsu Ltd Synchronous circuit
US5131012A (en) * 1990-09-18 1992-07-14 At&T Bell Laboratories Synchronization for cylic redundancy check based, broadband communications network
US5267249A (en) * 1991-05-09 1993-11-30 Codex Corporation Device and method for asynchronous cyclic redundancy checking for digital receivers

Also Published As

Publication number Publication date
JPH08256336A (en) 1996-10-01
KR100376822B1 (en) 2003-06-11
CA2165604A1 (en) 1996-06-24
US5703887A (en) 1997-12-30
KR960028573A (en) 1996-07-22
MX9505284A (en) 1997-01-31

Similar Documents

Publication Publication Date Title
CA2165604C (en) Synchronization and error detection in a packetized data stream
US6415398B1 (en) Coding system and decoding system
US7472317B2 (en) Coding system and decoding system
CA2249540C (en) Coding system and decoding system
WO2002015410A2 (en) Low latency data encoder
AU2001283271A1 (en) Low latency data encoder
JPH10126389A (en) Coder and decoder
KR20040018241A (en) Signal coding

Legal Events

Date Code Title Description
EEER Examination request
MKLA Lapsed
MKLA Lapsed

Effective date: 20111219