The IP datagram has a header and data two parts, the first part of the header is a fixed length of 20 bytes, is all the IP datagram must have. The header includes: total length, logo, MF, DF, offset.
The digital signal actually transmits the data stream, the general data flow includes the following three kinds:
ES streams: Also called basic streams, which contain continuous streams of video, audio, or data.
PES stream: Also known as the basic code stream of packaging, is the basic stream es stream according to the need to be divided into the length of the packet, and add the Baotou to form a packaged basic stream PES stream.
TS Stream: Also known as the transport Stream, is composed of a fixed length of 188 bytes of packets, containing a separate time base of one or more programs, suitable for more error-free environment.
A TS Stream (Transportstream) is a standard flow of information that is generated by the video, audio es stream, and secondary data multiplexing in the MPEG-2 system, called the MPEG-2 Transport stream, for actual transmission. The process of information lamination/separation is called system multiplexing/splitting, and according to the quality of the transmitted media, two kinds of compound information flows are defined in MPEG-2: Transport Stream (TS) and program flow (Ps:programstream)
The difference between TS Stream and PS flow is that the packet structure of TS flow is fixed length, and the packet structure of PS flow is variable length. This difference in structure between PS packet and TS package causes them to have different resistance to transmission error, so the application environment varies.
Because of the fixed-length packet structure, the receiver can detect the synchronization information in the bread after the transmission error has destroyed the synchronization information of a TS packet, thus recovering the synchronization and avoiding the loss of information.
PS Package due to the length of the change, once a PS packet synchronization information is lost, the receiver can not determine the next packet synchronization position, will cause the loss of steps, resulting in serious loss of information. Therefore, in the channel environment is very bad, transmission error is high, the general use of TS Code stream;
But in the channel environment is good, the transmission error is low, the general use of PS stream because TS Stream has a strong ability to resist transmission error, so currently in the transmission media transmission of the MPEG-2 stream is basically the use of TS Code stream packet