WO2017000836A1 - 一种报文传输方法及装置 - Google Patents

一种报文传输方法及装置 Download PDF

Info

Publication number
WO2017000836A1
WO2017000836A1 PCT/CN2016/086947 CN2016086947W WO2017000836A1 WO 2017000836 A1 WO2017000836 A1 WO 2017000836A1 CN 2016086947 W CN2016086947 W CN 2016086947W WO 2017000836 A1 WO2017000836 A1 WO 2017000836A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
type
priority
packets
message
Prior art date
Application number
PCT/CN2016/086947
Other languages
English (en)
French (fr)
Inventor
张锦辉
黄一宏
魏启坤
符秋杰
Original Assignee
华为技术有限公司
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017000836A1 publication Critical patent/WO2017000836A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/24Systems for the transmission of television signals using pulse code modulation

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a message transmission method and apparatus.
  • the access network often uses a digital subscriber line (English: digital subscriber line, referred to as DSL) access technology.
  • DSL digital subscriber line
  • FEC Forward Error Correction
  • the DSL system In order to resist the interference of impulse noise, the DSL system generally uses Forward Error Correction (FEC) coding technology and interleaving technology to transmit messages, so that the access delay of the DSL system is about 15 ms.
  • FEC Forward Error Correction
  • interleaving technology to transmit messages, so that the access delay of the DSL system is about 15 ms.
  • the delay of more than 12ms is introduced by interleaving.
  • one method is to introduce no interleaving technology when transmitting packets.
  • the access network has no ability to resist interference from impulse noise, increase the error rate, and reduce the packet.
  • Transmission quality In order to reduce the access delay and ensure the transmission quality of the packet, the DSL access can be upgraded to a fiber to the home (FTTH) access method.
  • the method is very costly. High, the applicability of this method is also low in practical application scenarios. Therefore, there is an urgent need for a new message transmission method for reducing the access delay and ensuring the quality of message transmission.
  • Embodiments of the present invention provide a packet transmission method and apparatus, which solve the problem that the access delay cannot be reduced at present. At the same time, it also guarantees the problem of message transmission quality.
  • an embodiment of the present invention provides a packet transmission method, where the method includes:
  • the first type of the packet is processed in an interleaving manner, and the packets of the first type are processed in a non-interleaving manner, and the first type of the packet is first.
  • Priority the first priority is higher than the priority of other types of packets;
  • the processed various types of messages are sent to the receiver.
  • the processing of the packet of the type other than the packet of the first type is performed in a non-interleaved manner, and specifically includes:
  • the priority of the second type of packet is the second priority, performing forward error correction FEC encoding on the second type of packet, where the second priority is better than the first priority level;
  • the priority of the third type of packet is the third priority
  • the third type of packet is not processed, wherein the third priority is smaller than the second priority, and is smaller than the First priority.
  • the priority of the second type of packet is the second priority
  • the second type The message carries forward error correction FEC encoding, which specifically includes:
  • the priority of the second type of packet is the second priority, the second type of the packet is buffered
  • the N types of packets in the cache are used.
  • the processing is performed in an interleaving manner, and the second type of the packet except the N second type of packets in the buffer is FEC encoded.
  • the processing, where the first type of the packet is processed by using an interleaving manner specifically includes:
  • N are selected from the cache.
  • the second type of message is for interleaving at once.
  • the interleaved RTP packet includes at least Interlace identification field;
  • InterFlag field included in a packet header of the interleaved RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the sending, after the processing, the various types of packets are sent to the receiver including:
  • the sending, after the processing, the various types of the packets are sent to the receiver the method further includes:
  • the InterType and the Inter Parameter are sent to the receiver, where the InterType is used to indicate an interlace type used when performing interleaving processing on the RTP message, and the Inter Parameter is used to indicate a specific interleaving parameter.
  • an embodiment of the present invention provides a packet transmission method, where the method includes:
  • the packet is deinterleaved, and the priority of the first type of packet is a first priority, and the first priority is higher than other types.
  • Priority of the message
  • the type of the packet is the second type, performing forward error correction FEC decoding on the packet, where the priority of the second type of packet is a second priority, and the second priority is Better than the first priority;
  • the processed various types of messages are restored to the initial message.
  • the method further includes:
  • the packet of the third type is not processed, and the priority of the packet of the third type is the third priority, and the third priority is smaller than the third priority.
  • the second priority is less than the first priority.
  • the method further includes:
  • Error correction processing is performed on the second type of message after FEC decoding.
  • the first type of the packet is a real-time transport protocol (RTP) packet, and the RTP packet includes at least an interlace identifier field;
  • RTP real-time transport protocol
  • the interlace identifier field RTP packet includes at least a field for indicating that the current packet is interleaved, including:
  • InterFlag field included in a packet header of the RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the payload type of the RTP message includes at least a first field, where the first field is used to indicate that the current packet is interleaved.
  • the method further includes:
  • InterType is used to indicate an interlace type of the RTP message
  • Inter Parameter is used to indicate a specific interleaving parameter
  • the performing the deinterleaving process on the first type of the packet includes:
  • an embodiment of the present invention provides a transmitter, including:
  • a receiving unit configured to receive a data stream
  • a classifying unit configured to classify the packets in the data stream received by the receiving unit according to a preset rule, to obtain at least two types of packets
  • the processing unit is configured to process the first type of the message by using an interleaving manner, and the other type of the packet except the first type of the packet is processed in a non-interleaving manner, where the first type of the packet is processed.
  • the priority is the first priority, and the first priority is higher than the priority of other types of packets;
  • a sending unit configured to send, to the receiver, various types of messages processed by the processing unit.
  • the processing unit is configured to forward the second type of packet if the priority of the second type of packet is the second priority Error correction FEC coding, wherein the second priority is better than the first priority, and specifically, if the priority of the third type of message is the third If the priority is not processed, the third type of packet is not processed, and the third priority is smaller than the second priority and smaller than the first priority.
  • the transmitter further includes a storage unit
  • the storage unit is configured to cache the second type of packet if the priority of the second type of packet is the second priority
  • the transmitter further includes a determining unit
  • the determining unit is configured to determine whether the number of the first type of packets is less than a preset threshold
  • the processing unit is configured to perform forward error correction FEC encoding on the second type of packet in the storage unit, and if the first type is used, if the number of the first type of the packet is equal to the preset threshold. If the number of the packets is less than the preset threshold, and the difference between the preset threshold and the number of the first type of packets is N, N ⁇ 1, then N packets of the second type in the storage unit are received.
  • the processing is performed in an interleaving manner, and the second type of the packet except the N second type of packets in the storage unit is FEC encoded.
  • the processing unit is configured to: if the number of packets of the first type in the processing unit is less than the preset threshold, The difference between the preset threshold and the number of packets of the first type in the processing unit is N, and N packets of the second type are selected from the storage unit to perform interleaving immediately.
  • the first type of the packet is a real-time transport protocol (RTP) packet
  • the interleaved RTP packet includes at least an interlace identifier field
  • InterFlag field included in a packet header of the interleaved RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the sending unit is configured to send the interleaved RTP message to a receiver.
  • the sending unit is further configured to send the InterType and the Inter Parameter to the receiver, where the InterType is used to indicate an interlace type used when the RTP message is interleaved, and the Inter Parameter is used to indicate a specific interleaving parameter.
  • an embodiment of the present invention provides a receiver, including:
  • a receiving unit configured to receive a data stream, where the data stream includes at least two types of packets
  • a classifying unit configured to classify packets in the data stream received by the receiving unit, to obtain at least two types of packets
  • a processing unit configured to perform deinterleave processing on the packet if the type of the packet is the first type, where the priority of the first type of packet is a first priority, and the first priority The priority of the packet is higher than that of other types of packets, and if the type of the packet is the second type, the packet is subjected to forward error correction FEC decoding, where the second type of packet is The priority is the second priority, the second priority is better than the first priority, and is used to restore the processed various types of messages to the initial message.
  • the processing unit is further configured to: if the type of the packet is the third type, the third type of the packet is not processed, where the The priority of the three types of packets is the third priority, and the third priority is smaller than the second priority and smaller than the first priority.
  • the processing unit is further configured to perform error correction processing on the deinterleaved first type of packet, and also used to perform second decoding on the FEC. Types of messages are error-corrected.
  • the first type of the packet is a real-time transport protocol (RTP) packet, and the RTP packet includes at least an interlace identifier field;
  • RTP real-time transport protocol
  • InterFlag field included in a packet header of the RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the receiving unit is further configured to receive an InterType if the first type of packet is an RTP packet And Inter Parameter a field, the InterType is used to indicate an interleaving type of the RTP message, and the Inter Parameter is used to indicate a specific interleaving parameter.
  • the determining unit is configured to be used according to the InterType and the Inter Parameter field received by the receiving unit , determine the de-interlacing technique
  • the processing unit is specifically configured to perform deinterleaving processing on the RTP packet by using a deinterleaving technique determined by the determining unit.
  • An embodiment of the present invention provides a packet transmission method and apparatus.
  • the transmitter classifies the packets in the received data stream according to a preset rule to obtain at least two types of packets, and then obtains at least two types of packets.
  • the transmitter processes the first type of packets in an interleaving manner, and processes the packets of the first type other than the first type of packets in a non-interleaved manner, where the priority of the first type of packets is processed. Higher than the priority of other types of messages, finally, the transmitter sends the processed various types of messages to the receiver, so that the receiver adopts corresponding processing methods for the processed various types of messages. Process it.
  • the transmitter after receiving the data stream, the transmitter does not need to perform interleaving processing on all received data streams, but classifies the packets in the data stream according to a preset rule, and then reports to various types of reports.
  • the text is processed differently, in which the transmitter only interleaves the first type of packets with the highest priority in the data stream, so that the most important packets in the data stream are not lost, and the guarantee is guaranteed.
  • the transmission quality of the text can effectively reduce the delay caused by interleaving.
  • FIG. 1 is a schematic flowchart 1 of a packet transmission method according to an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of a message transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart 3 of a packet transmission method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram 1 of a transmitter according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram 2 of a transmitter according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram 1 of a receiver according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram 3 of a transmitter according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram 2 of a receiver according to an embodiment of the present invention.
  • the various techniques described in the present invention are applicable to message transmission in an access network of a DSL system, and are also applicable to message transmission in other networks where discrete packet loss is likely to occur.
  • the packet transmission method provided by the embodiment of the present invention includes:
  • the transmitter After receiving the data stream, the transmitter classifies the packets in the data stream according to a preset rule to obtain at least two types of packets.
  • the preset rule may be that the packet is classified according to the packet header of each packet in the data stream, where the packet header of each packet carries information indicating the packet type, or may be according to the data stream.
  • a field indicating the priority of the packet in each packet classifies the packet, which is not specifically limited in the embodiment of the present invention.
  • the preset rule is to classify the packet according to the service type (English: type of service, TOS) field of the IP packet, where the TOS field includes the priority subfield.
  • service type English: type of service, TOS
  • the preset rule may also be classified according to the Network Abstraction Layer (NAL) Type/Payload Type in the Real-time Transport Protocol (RTP) message payload specified in the standard RFC6184, wherein NAL Type/payload type It carries specific information indicating a video frame.
  • NAL Network Abstraction Layer
  • RTP Real-time Transport Protocol
  • the transmitter classifies the packets in the data stream according to a preset rule, and obtains at least two types of packets, so that the transmitter adopts different manners for different types of packets. Process it.
  • the determining of the packet type in the embodiment of the present invention may be determined by the transmitter according to actual needs.
  • the video when encoding a video, is encoded into a plurality of groups of pictures (English: group of pictures, GOP for short), and each GOP has a basic image frame (English: Intra-coded frame, Abbreviation: I-frame), Instantaneous decoding refresh (IDR) frame, Forward predictive coding frame (English: Predicted-frame, P-frame for short), Bidirectional predictive coding frame (English: Bi -predictive frame, abbreviated as: B-frame) and other different frame types.
  • I-frame Intra-coded frame
  • IDR Instantaneous decoding refresh
  • Forward predictive coding frame English: Predicted-frame, P-frame for short
  • Bidirectional predictive coding frame English: Bi -predictive frame, abbreviated as: B-frame
  • the I frame or the IDR frame is referred to, and most of the B frames are referred to the P frame when encoding and decoding, and the B frame may be referenced by other B frames, or may not be reference.
  • the decoding of the entire GOP is affected; if the P frame is lost, the B frame referring to the P frame is affected. Decoding; if a B frame is lost, it will affect the decoding of the B frame that references the B frame. If the B frame is not referenced, it only affects the decoding of the B frame.
  • the sender can analyze the payload of each message in the data stream, and classify the message into three types according to the payload of each message.
  • the transmitter may include an I frame, an IDR frame, or a video parameter set (English: video parameter set, abbreviated as: VPS), an image parameter set (English: picture parameter set, abbreviated as: PPS), a sequence parameter set (English) :sequence parameter set, abbreviated as: SPS), program association table (English: Program Association Table, PAT for short) or program association table (English: Program Map Table, PMT for short), the message is specified as a high importance message. Specify the P frame, the referenced B frame as the medium importance message, and specify the other content message as the low importance.
  • VPS video parameter set
  • PPS image parameter set
  • SPS sequence parameter set
  • SPS sequence parameter set
  • PAT Program Association Table
  • PMT Program Map Table
  • PAT and PMT can refer to the standard ISO-IEC 13818-1.
  • the transmitter specifies an I frame, an IDR frame, or a packet containing PAT, PMT, VPS, PPS, or SPS content as a high importance message, and designates the P frame as a medium importance message, and other content.
  • the message is specified as low importance.
  • the transmitter processes the first type of the packet in an interleaving manner, and performs processing in a non-interleaving manner on the packets of the type other than the first type of the packet.
  • the priority of the first type of packet is higher than the priority of other types of packets.
  • the processing of the message by the interleaving method can generally solve the interference of the impulse noise on the physical line, and recover the message affected by the pulse, thereby ensuring the transmission quality of the message.
  • the transmitter After classifying the packets in the data stream, the transmitter processes the packets with the highest priority in an interleaving manner. That is, the transmitter processes the packets of the first type in an interleaving manner.
  • the transmission quality of the packets which in turn reduces the impact on other types of packets due to the loss of such packets.
  • the transmitter in the embodiment of the present invention may use any existing interleaving technology to process the first type of packet, which is not limited in this embodiment of the present invention.
  • the transmitter may process the first type of packet by using a linear interleaving technique, and may also process the first type of packet by using a convolutional interleaving technique, or may use a pseudo-random interleaving technique for the first type of packet.
  • the message is processed.
  • the transmitter can perform the FEC encoding on the first type of the packet to protect the transmission quality of the first type of packet.
  • the transmitter interleaves the first type of message in its own processor.
  • the processor may be separately set up in the transmitter or integrated on a certain module in the transmitter.
  • the processor may be a central processing unit (English: central processing unit, CPU for short), or may be an application-specific integrated circuit (ASIC), or may be configured to implement the present invention.
  • One or more integrated circuits of an embodiment may be a central processing unit (English: central processing unit, CPU for short), or may be an application-specific integrated circuit (ASIC), or may be configured to implement the present invention.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the processor in the embodiment of the present invention is an interleaver.
  • N are selected from the cache.
  • the message is transmitted so that the processor of the transmitter immediately interleaves, wherein the buffer of the transmitter stores the second type of message, and the priority of the message is better than the priority of the first type of message.
  • the transmitter processes the packets of other types except the first type of packets in a non-interlaced manner.
  • the transmitter may perform FEC encoding on the second type of packet;
  • the priority of the packet of the type is the third priority.
  • the third priority is smaller than the second priority, and is smaller than the first priority.
  • the sender can not process the third type of packet.
  • the transmitter in the embodiment of the present invention may use any existing FEC encoding technology to process the second type of packet, which is not limited in this embodiment of the present invention.
  • the sender first buffers the packet of the second type, and then determines whether the number of the packets in the processor of the transmitter is less than a preset threshold.
  • the transmitter performs FEC encoding on the second type of packet in the buffer.
  • the transmitter reports the N second types of packets in the buffer.
  • the text is processed in an interleaving manner, and the second type of packets except the N second type of packets in the buffer are FEC encoded, which can further shorten the average delay.
  • the transmitter sends the processed various types of messages to the receiver.
  • the sender sends this type of message directly to the receiver.
  • the interleaved RTP packet includes at least an interlace identifier field, where the interlace identifier field carries an interlace identifier, where the interlace identifier is used to indicate that the current packet has been interleaved.
  • the receiver can determine that the received RTP message needs to be deinterleaved according to the interlace identifier field in the RTP message.
  • the interlace identifier field includes:
  • InterFlag field included in the header of the interleaved RTP packet, where InterFlag is used to indicate that the current packet is interleaved;
  • the first field is included in the payload type of the interleaved RTP packet, and the first field is used to indicate that the current packet is interleaved.
  • the name of the first field is not specifically limited in this embodiment of the present invention.
  • the transmitter sends the interleaved RTP message to the receiver, and the transmitter also sends the InterType and the Inter Parameter to the receiver through the signaling channel, so that the receiver determines the specific deinterleaving according to the two fields.
  • Technology and use a well-defined de-interlacing technique to restore RTP messages.
  • the InterType is used to indicate the type of interlace used by the transmitter to interleave RTP packets.
  • the Inter Parameter is used to indicate specific interleaving parameters.
  • the transmitter may use any existing protocol to send the InterType and Inter Parameter fields, which is not specifically limited in this embodiment of the present invention.
  • the transmitter uses the Real-time Transport Control Protocol (RTCP) to transmit the InterType and Inter Parameter fields
  • RTCP Real-time Transport Control Protocol
  • SIP Session Initiation Protocol
  • An embodiment of the present invention provides a packet transmission method. After receiving a data stream, the transmitter classifies the packets in the received data stream according to a preset rule to obtain at least two types of packets, and then sends the packet.
  • the first type of the packet is processed in an interleaving manner, and the packets of the first type are processed differently than the interleaved manner, where the first type of the packet is preferentially processed.
  • the level is higher than the priority of other types of messages.
  • the transmitter sends the processed various types of messages to the receiver, so that the receiver adopts corresponding processing for each type of processed message. The way to handle.
  • the transmitter after receiving the data stream, the transmitter does not need to perform interleaving processing on all received data streams, but classifies the packets in the data stream according to a preset rule, and then reports to various types of reports.
  • the text is processed differently, in which the transmitter only interleaves the first type of packets with the highest priority in the data stream, so that the most important packets in the data stream are not lost, and the guarantee is guaranteed.
  • the transmission quality of the text can effectively reduce the delay caused by interleaving.
  • the packet transmission method provided by the embodiment of the present invention includes:
  • the receiver classifies the packets in the data stream to obtain at least two types of packets.
  • the data stream received by the receiver is sent to the receiver by the transmitter.
  • the data stream in the embodiment of the present invention is sent after the transmitter processes the different types of packets in the data stream in different manners.
  • the receiver can obtain at least two types of packets by classifying the packets in the data stream, and then processing different types of packets by using different processing modes.
  • the receiver determines the type of the packet according to the format of the packet or the packet header, where the packet header carries a description of the processing mode used by the transmitter for the packet. Line processed information.
  • the receiver performs deinterleaving on the packet.
  • the priority of the first type of packet is the first priority, and the first priority is higher than the priority of other types of packets.
  • the receiver After receiving the data stream, the receiver classifies the packets in the data stream to obtain at least two types of packets, and the receiver processes each type of packet in a respective processing manner.
  • the type of the message in the embodiment of the present invention is substantially determined by the transmitter, and the processing manner in the embodiment of the present invention corresponds to the manner in which the transmitter processes each type of packet.
  • the receiver deinterleaves the packet.
  • the receiver in the embodiment of the present invention may use any existing de-interleaving technology to process the first type of packet, which is not limited in this embodiment of the present invention.
  • the receiver performs error correction processing on the deinterleaved first type of message.
  • each report of the RTP message received by the receiver includes at least an interlace identifier field, where the interlace identifier field carries an interlace identifier, and the interlace identifier is used to indicate that the current packet has been interleaved.
  • the receiver can determine, according to the interlace identifier field, that the received RTP packet needs to be deinterleaved.
  • the interlace identifier field includes:
  • InterFlag field included in the packet header of the RTP packet, where InterFlag is used to indicate that the current packet is interleaved;
  • InterFlag field contained in the payload of the RTP packet
  • the first field is included in the payload type of the RTP packet, and the first field is used to indicate that the current packet is interleaved.
  • the name of the first field is not specifically limited in this embodiment of the present invention.
  • the receiver also receives two fields, InterType and Inter Parameter, through the signaling channel, and the two fields respectively indicate the interleaving type of the RTP message (for example, regular interleaving, irregular interleaving, random interleaving, etc.), and specific interleaving. parameter.
  • InterType and Inter Parameter respectively indicate the interleaving type of the RTP message (for example, regular interleaving, irregular interleaving, random interleaving, etc.), and specific interleaving. parameter.
  • the receiver can determine the specific deinterleaving technology of the RTP message according to the two fields, so that The receiver uses the deinterleaving technique to deinterleave the RTP message.
  • the receiver performs FEC decoding on the packet.
  • the priority of the second type of packet is the second priority, and the second priority is better than the first priority.
  • the receiver After receiving the data stream, the receiver classifies the packets in the data stream to obtain at least two types of packets, and the receiver processes each type of packet in a respective processing manner.
  • the receiver performs FEC decoding on the packet.
  • the receiver in the embodiment of the present invention may use any existing FEC decoding technology to process the second type of packet, which is not specifically limited in this embodiment of the present invention.
  • the receiver performs error correction processing on the FEC-decoded second type of message.
  • execution order of S202 and S203 in the embodiment of the present invention may be that S202 is performed first, then S203 is performed, or S203 is executed first, then S202 is executed, and S202 and S203 are simultaneously executed. This example does not specifically limit this.
  • the receiver does not process the third type of packet, wherein the priority of the third type of packet is The third priority, the third priority is less than the second priority, and is less than the first priority.
  • the receiver restores the processed various types of packets to an initial packet.
  • the receiver After processing the various types of messages, the receiver performs a restoration process on each processed message, so that the receiver restores the received message to the initial message.
  • sequence restorer in the receiver restores the received message to the initial message.
  • the sequence restorer may be separately set up in the receiver or integrated on a certain processor in the receiver.
  • the receiver in the embodiment of the present invention restores the processed various types of packets to the initial packet by using any existing method for restoring the initial packet.
  • An embodiment of the present invention provides a packet transmission method. After receiving a data stream, the receiver classifies the packets in the received data stream to obtain at least two types of packets, and then, the receiver pairs Types of packets are processed in their respective processing manners. Finally, the receiver restores the processed packets of various types to the original packets.
  • the data stream received by the receiver includes at least two types of messages, and the data stream received by the receiver is the data stream processed by the transmitter, and the transmitter does not interleave all the data streams. Processing, but classifying the messages in the data stream according to the preset rules, and then Different types of packets are processed differently.
  • the transmitter only interleaves the first type of packets with the highest priority in the data stream. This ensures that the most important packets in the data stream are not processed. It will be lost, which can guarantee the transmission quality of the message and effectively reduce the delay caused by the interleaving.
  • the embodiment of the present invention uses video transmission as an example to illustrate the transmission method of the message shown in FIG. 1 and FIG.
  • the human eye Since the human eye has different pixel point/area sensitivity to different spaces, time, color, and brightness in the video, the importance of messages carrying different pixels/areas is different.
  • the decoding of the entire GOP is affected; if the P frame is lost, the B frame referring to the P frame is affected. Decoding; if a B frame is lost, it will affect the decoding of the B frame that references the B frame. If the B frame is not referenced, it only affects the decoding of the B frame.
  • the packet of the I frame and the IDR frame is the first type of the message (the high importance message), and the P frame and the referenced B frame are the second type of the message (the medium importance)
  • the message of the other content is a third type of message (a message of low importance) as an example to describe the message transmission method.
  • the message transmission method when transmitting a video data stream, includes the following steps:
  • the transmitter After receiving the video data stream, the transmitter classifies the packets in the video data stream according to a preset rule, and obtains three types of packets: the first type, the second type, and the third type.
  • the preset rule may be that the packet is classified according to the packet header of each packet in the video data stream, where the packet header of each packet carries type information indicating the packet type, and may also be a video according to the video.
  • a packet indicating a packet priority in each packet in the data stream is used to classify the packet, which is not specifically limited in this embodiment of the present invention.
  • the preset rule may be classified according to the NAL type/payload type in the RTP message payload specified in the standard RFC6184, wherein the NAL type/payload type carries specific information indicating the video frame.
  • the transmitter can analyze the payload of each packet to use the I frame and the IDR frame as the first type of message, and the P frame and the referenced B frame are The second type of message, the other content of the message is the third type of message.
  • the priority of the first type of packet is higher than the priority of the other type of packet, the priority of the second type of packet is superior to the priority of the first type of packet, and the third type of packet is preferred.
  • the priority of the message is lower than the priority of the first type of message. And lower than the priority of the second type of message.
  • the transmitter processes the first type of the packet in an interleaving manner, and performs processing in a non-interleaving manner on the packets of the type other than the first type of the packet.
  • the processing of the message by the interleaving method can generally solve the interference of the impulse noise on the physical line, and recover the message affected by the pulse, thereby ensuring the transmission quality of the message.
  • the transmitter After classifying the packets in the video data stream, the transmitter processes the packets of the I frame and the IDR frame in an interleaving manner, so as to ensure the transmission quality of the I frame and the IDR frame, and thus reduce the I frame.
  • the transmitter in the embodiment of the present invention may use any existing interleaving technology to process the first type of packet, which is not limited in this embodiment of the present invention.
  • the transmitter may process the first type of packet by using a linear interleaving technique, and may also process the first type of packet by using a convolutional interleaving technique, or may use a pseudo-random interleaving technique for the first type of packet.
  • the message is processed.
  • the transmitter can perform the FEC encoding on the first type of the packet to protect the transmission quality of the first type of packet.
  • the transmitter interleaves the first type of message in its own processor.
  • the slave cache The N packets are selected so that the processor of the transmitter immediately interleaves.
  • the buffer of the transmitter stores the second type of packets, and the priority of the packets is better than the priority of the packets of the first type. level.
  • the processor of the transmitter may be separately set up in the transmitter, or may be integrated on a certain module in the transmitter.
  • the processor may be a CPU or an ASIC, or it may be one or more integrated circuits configured to implement embodiments of the present invention.
  • the processor in the embodiment of the present invention may also be called an interleaver.
  • the transmitter processes the packets of other types except the first type of packets in a non-interlaced manner.
  • the transmitter performs FEC encoding on the second type of packet, and does not process the third type of packet.
  • the priority of the second type of packet is the second priority, the second priority is better than the first priority, the priority of the third type is the third priority, and the third priority is less than the first priority. Second priority, And less than the first priority.
  • the transmitter in the embodiment of the present invention may use any existing FEC encoding technology to process the second type of packet, which is not limited in this embodiment of the present invention.
  • the FEC encoding of the second type of the packet by the sending device includes: the sending device first buffering the second type of the packet, and then determining whether the number of the packets in the processor of the sending device is less than a preset threshold.
  • the transmitter performs FEC encoding on the second type of packet in the buffer.
  • the transmitter reports the N second types of packets in the buffer.
  • the text is processed in an interleaving manner, and the second type of packets except the N second type of packets in the buffer are FEC encoded, which can further shorten the average delay.
  • the manner in which the transmitter in the embodiment of the present invention processes the packets of the second type and the third type is not limited to the foregoing processing manner.
  • the transmitter sends the processed various types of messages to the receiver.
  • the transmitter sends the first type of message after the interleaving process, the FEC-encoded second type of message, and the unprocessed third type of message to the receiver.
  • the interleaved RTP packet includes at least an interlace identifier field, where the interlace identifier field carries an interlace identifier, where the interlace identifier is used to indicate that the current packet has been
  • the interleaving process is performed.
  • the receiver can determine that the received RTP message needs to be deinterleaved according to the interlace identifier field in the RTP message.
  • the interlace identifier field includes:
  • InterFlag field included in the header of the interleaved RTP packet, where InterFlag is used to indicate that the current packet is interleaved;
  • the first field is included in the payload type of the interleaved RTP packet, and the first field is used to indicate that the current packet is interleaved.
  • the name of the first field is not specifically limited in this embodiment of the present invention.
  • the transmitter sends the interleaved RTP message to the receiver, and the transmitter also sends the InterType and the Inter Parameter to the receiver through the signaling channel, so that the receiver according to the The two fields determine the specific de-interlacing technique and restore the RTP message using the determined de-interleaving technique.
  • the InterType is used to indicate the type of interlace used by the transmitter to interleave RTP packets.
  • the Inter Parameter is used to indicate specific interleaving parameters.
  • the transmitter may use any existing protocol to send the InterType and Inter Parameter fields, which is not specifically limited in this embodiment of the present invention.
  • the transmitter uses RTCP to transmit InterType and Inter Parameter fields, or the transmitter uses SIP to transmit InterType and Inter Parameter fields.
  • the receiver classifies the received packets in the data stream to obtain three types of packets.
  • the receiver passes the video data stream.
  • the packets in the class are classified, and three types of packets can be obtained, and the three types of packets are processed in different processing manners.
  • the receiver determines the type of the packet according to the format of the packet or the packet header, where the packet header carries a description of the processing manner used by the transmitter for the packet. Information processed.
  • the receiver classifies the packets in the data stream to obtain packets of the first type, the second type, and the third type.
  • the first type of message in the received data stream is a message that has been interleaved by the transmitter
  • the second type of message is a message that has been encoded by the transmitter FEC. Text.
  • the receiver performs deinterleaving processing on the received first type of packet.
  • the receiver After receiving the video data stream, the receiver classifies the packets in the video data stream to obtain three types of packets. After classifying the packets in the data stream, the receiver processes each type of message in its own processing mode.
  • the receiver performs deinterleaving on the received first type of packet, where the priority of the first type of packet is the first priority, and the first priority is higher than the priority of other types of the packet. level.
  • each packet of the RTP packet received by the receiver is received.
  • At least the interlace identifier field is included, where the interlace identifier field carries an interlace identifier, and the interlace identifier is used to indicate that the current packet has been interleaved, and the receiver can determine the received RTP report according to the interlace identifier field. The text needs to be deinterleaved.
  • the interlace identifier field includes:
  • InterFlag field included in the packet header of the RTP packet, where InterFlag is used to indicate that the current packet is interleaved;
  • InterFlag field contained in the payload of the RTP packet
  • the first field is included in the payload type of the RTP packet, and the first field is used to indicate that the current packet is interleaved.
  • the name of the first field is not specifically limited in this embodiment of the present invention.
  • the receiver also receives two fields, InterType and Inter Parameter, through the signaling channel, and the two fields respectively indicate the interleaving type of the RTP message (for example, regular interleaving, irregular interleaving, random interleaving, etc.), and specific interleaving. parameter.
  • InterType and Inter Parameter respectively indicate the interleaving type of the RTP message (for example, regular interleaving, irregular interleaving, random interleaving, etc.), and specific interleaving. parameter.
  • the receiver can determine the specific deinterleaving technique of the data stream according to the two fields, so that the receiver uses the deinterleaving technique to deinterleave the data stream.
  • the receiver performs FEC decoding on the received second type of packet.
  • the priority of the second type of packet is the second priority, and the second priority is better than the first priority.
  • the receiver in the embodiment of the present invention may use any existing FEC decoding technology to process the received second type of packet, which is not specifically limited in this embodiment of the present invention.
  • the receiver does not process the received third type of packet.
  • the priority of the third type of packet is the third priority, and the third priority is smaller than the second priority, and is smaller than the first priority.
  • execution sequence of S305, S306, and S307 in the embodiment of the present invention may be S305, S30, S307, S30, S305, S307, and S307.
  • the embodiment of the present invention does not specifically limit the S305, S306, and S307.
  • the receiver restores the processed various types of messages to an initial message.
  • the receiver After processing the various types of messages, the receiver performs a restoration process on each processed message, so that the receiver restores the received message to the initial message.
  • sequence restorer in the receiver restores the received message to the initial message.
  • sequence restorer can be set up separately in the receiver, or can be some in the receiver Integrated implementation on a single processor.
  • the receiver in the embodiment of the present invention restores the processed various types of packets to the initial packet by using any existing method for restoring the initial packet.
  • An embodiment of the present invention provides a packet transmission method. After receiving a data stream, the transmitter classifies the packets in the received data stream according to a preset rule to obtain at least two types of packets, and then sends the packet. The first type of the packet is processed in an interleaved manner, and the other type of the packet is processed in a non-interleaved manner. The first type of the packet has a higher priority. The priority of other types of packets. Finally, the transmitter sends the processed various types of packets to the receiver, so that the receiver processes the processed types of packets in respective processing manners. .
  • the transmitter after receiving the data stream, the transmitter does not need to perform FEC encoding and interleaving processing on all received data streams, but classifies the packets in the data stream according to a preset rule, and then Types of packets are processed differently.
  • the sender only interleaves the first type of packets with the highest priority in the data stream. This ensures that the most important packets in the data stream are not lost. It can not only ensure the transmission quality of the message, but also effectively reduce the delay caused by the interleaving.
  • an embodiment of the present invention provides a transmitter 1.
  • the transmitter 1 includes:
  • the receiving unit 10 is configured to receive a data stream.
  • the classification unit 11 is configured to classify the packets in the data stream received by the receiving unit 10 according to a preset rule to obtain at least two types of packets.
  • the preset rule may be that the packet is classified according to the packet header of each packet in the data stream received by the receiving unit 10, wherein the packet header of each packet carries type information indicating the packet type.
  • the packet may be classified according to a field indicating the priority of the packet in each packet in the data stream received by the receiving unit 10, which is not specifically limited in the embodiment of the present invention.
  • the preset rule is to classify according to the TOS field message of the IP packet, where the TOS field includes the priority subfield.
  • the processing unit 12 is configured to process the first type of packets in an interleaving manner, and process the packets of the first type other than the first type of packets in a non-interleaving manner.
  • the priority is the first priority, and the first priority is higher than the priority of other types of packets.
  • the processing unit 12 processes the packets with the highest priority in an interleaving manner, that is, the processing unit 12 processes the first type of packets in an interleaving manner. This can ensure the transmission quality of this type of packet, and thus reduce the impact on other types of packets due to the loss of such packets.
  • the processing unit 12 in the embodiment of the present invention may use any existing interleaving technology to process the first type of packet, which is not limited by the embodiment of the present invention.
  • the sending unit 13 is configured to send the various types of messages processed by the processing unit 12 to the receiver, so that the receiver adopts respective processing manners for the processed various types of messages. Process it.
  • the processing unit 12 is specifically configured to perform forward error correction FEC encoding on the second type of packet if the priority of the second type of packet is the second priority, where the The second priority is better than the first priority, and is specifically used to: if the priority of the third type of packet is the third priority, the third type of packet is not processed, where The third priority is smaller than the second priority and smaller than the first priority.
  • the processing unit 12 in the embodiment of the present invention may use any existing FEC encoding technology to process the second type of packet, which is not limited by the embodiment of the present invention.
  • processing unit 12 in the embodiment of the present invention processes other types of packets is not limited to the foregoing processing manners.
  • the transmitter 1 further includes a storage unit 14;
  • the storage unit 14 is configured to cache the second type of packet if the priority of the second type of packet is the second priority.
  • the transmitter 1 further includes a determining unit 15;
  • the determining unit 15 is configured to determine whether the number of packets of the first type is less than a preset threshold.
  • the processing unit 12 is configured to perform forward error correction FEC encoding on the second type of the packet in the storage unit 14 if the number of the first type of the packet is equal to the preset threshold, and If the number of the packets of the type is less than the preset threshold, and the difference between the preset threshold and the number of the first type of packets is NN ⁇ 1, the N packets of the second type in the storage unit are used.
  • the processing is performed in an interleaving manner, and is used to perform FEC encoding on the second type of packets except the N second type of packets in the storage unit 14.
  • the processing unit 12 processes the first type of message by using an interleaving manner.
  • the first type of packet may also be FEC modulated to protect the transmission quality of the first type of message.
  • processing unit 12 is specifically configured to: if the number of packets of the first type in the processing unit 12 is less than the preset threshold, and the preset threshold is The difference between the number of packets of the first type in the processing unit 12 is N, and N packets of the second type are selected from the storage unit 14 for interleaving.
  • the interleaved RTP packet includes at least an interlace identifier field;
  • InterFlag field included in a packet header of the interleaved RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the sending unit 13 is specifically configured to send the interleaved RTP message to the receiver.
  • the sending unit 13 is further configured to send an InterType and an Inter Parameter to the receiver, where the InterType is used to indicate an interlace type used when performing interleaving processing on the RTP message, where the Inter Parameter is used for Indicates specific interleaving parameters.
  • the transmitting unit 13 sends the interleaved RTP message to the receiver, and the sending unit 13 also sends the InterType and the Inter Parameter to the receiver through the signaling channel, so that the receiver determines the specific deinterleaving technology according to the two fields. And use the determined deinterleaving technique to restore the RTP message.
  • the sending unit 13 may use any existing protocol to send the InterType and Inter Parameter fields, which is not specifically limited in this embodiment of the present invention.
  • the transmitting unit 13 transmits the InterType and Inter Parameter fields by using RTCP, or the transmitter transmits the InterType and Inter Parameter fields by using SIP.
  • An embodiment of the present invention provides a transmitter, including a receiving unit, a classifying unit, a processing unit, and a sending unit.
  • the transmitter classifies the packets in the received data stream according to a preset rule to obtain at least two types of packets, and then the transmitter uses the first type of packets.
  • the processing is performed in a woven manner, and the packets of the first type are processed in a non-interleaved manner.
  • the priority of the first type of packets is higher than that of other types of packets.
  • the transmitter sends the processed various types of messages to the receiver, so that the receiver processes the processed various types of messages in respective processing manners.
  • the transmitter after receiving the data stream, the transmitter does not need to perform FEC encoding and interleaving processing on all received data streams, but classifies the packets in the data stream according to a preset rule, and then Types of packets are processed differently.
  • the sender only interleaves the first type of packets with the highest priority in the data stream. This ensures that the most important packets in the data stream are not lost. It can not only ensure the transmission quality of the message, but also effectively reduce the delay caused by the interleaving.
  • the embodiment of the present invention further provides a receiver 2, as shown in FIG. 6, the receiver 2 includes:
  • the receiving unit 20 is configured to receive a data stream, where the data stream includes at least two types of messages.
  • the data stream received by the receiving unit 20 is a data stream sent by the sender, and the packet in the data stream is a packet processed by the transmitter, and the data stream includes at least two types of packets.
  • the classification unit 21 is configured to classify the packets in the data stream received by the receiving unit 20 to obtain at least two types of packets.
  • the categorizing unit 21 After receiving the data stream, the categorizing unit 21 determines the type of the packet according to the format of the packet or the header of the packet, where the packet header carries a description of which processing mode the transmitter uses for the packet. Information processed.
  • the processing unit 22 is configured to perform deinterleave processing on the packet if the type of the packet is the first type, where the priority of the first type of packet is a first priority, the first The priority is higher than the priority of other types of packets, and if the type of the packet is the second type, the packet is subjected to forward error correction FEC decoding, where the second type of packet The priority is the second priority, the second priority is better than the first priority, and is used to restore the processed various types of messages to the initial message.
  • the type of the message in the embodiment of the present invention is substantially determined by the transmitter, and the processing manner in the embodiment of the present invention corresponds to the manner in which the transmitter processes each type of packet.
  • the processing unit 22 may perform deinterleave processing on the first type of packet by using any existing deinterleaving technology, and may use any existing FEC decoding technology to process the second type of packet.
  • the embodiment of the invention does not limit this.
  • processing unit 22 is further configured to: if the type of the packet is the third type, the third type of the packet is not processed, and the priority of the third type of the packet is a third priority, the third priority being less than the second priority and smaller than the first priority.
  • processing unit 22 is further configured to perform error correction processing on the deinterleaved first type of message, and also perform error correction on the second type of FEC decoded message. deal with.
  • the RTP packet includes at least an interlace identifier field;
  • InterFlag field included in a packet header of the RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the receiving unit 20 is further configured to: if the first type of the packet is an RTP packet, receive an InterType and an Inter Parameter field, where the InterType is used to indicate an interlace type of the RTP packet.
  • the Inter Parameter is used to indicate a specific interleaving parameter.
  • the receiving unit 20 also receives two fields, InterType and Inter Parameter, through the signaling channel, where the two fields respectively indicate an interleaving type (for example, regular interleaving, irregular interleaving, random interleaving, etc.), and specific interleaving parameters.
  • InterType and Inter Parameter for example, regular interleaving, irregular interleaving, random interleaving, etc.
  • processing unit 22 is specifically configured to determine a deinterleaving technique according to the InterType and the Inter Parameter field received by the receiving unit 20.
  • processing unit 22 is specifically configured to perform deinterleave processing on the RTP packet by using the deinterleaving technology.
  • An embodiment of the present invention provides a receiver, including a receiving unit, a classifying unit, and a processing unit. After receiving the data stream, the receiver classifies the packets in the received data stream to obtain at least two types of packets, and then the receiver processes each type of packet in a respective processing manner. Finally, the receiver restores the processed various types of messages to the original message.
  • the data stream received by the receiver includes at least two types of messages, and is connected.
  • the data stream received by the receiver is the data stream processed by the transmitter.
  • the transmitter does not interleave all the data streams, but classifies the packets in the data stream according to preset rules, and then Types of packets are processed differently.
  • the sender only interleaves the first type of packets with the highest priority in the data stream. This ensures that the most important packets in the data stream are not lost. It can not only ensure the transmission quality of the message, but also effectively reduce the delay caused by the interleaving.
  • an embodiment of the present invention further provides another transmitter.
  • the transmitter includes a communication interface 30, a processor 31, a memory 32, and a system bus 33. ,among them,
  • the communication interface 30, the processor 31, and the memory 32 are connected by the system bus 33 and communicate with each other.
  • Processor 31 may be a single core or multi-core central processor, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the memory 32 may be a random access memory (RAM: RAM) or a non-volatile memory (for example, at least one disk memory).
  • RAM random access memory
  • non-volatile memory for example, at least one disk memory
  • the communication interface 30 is configured to receive a data stream.
  • the processor 31 is configured to classify the packets in the data stream received by the communication interface 30 according to a preset rule to obtain at least two types of packets.
  • the processor 31 is configured to process the first type of packets in an interleaving manner, and process the packets of other types except the first type of packets by using a non-interleaving manner.
  • the priority of a type of packet is a first priority, and the first priority is higher than the priority of other types of packets.
  • the preset rule may be used to classify the packet according to the packet header of each packet in the data stream received by the communication interface 30, wherein the packet header of each packet carries type information indicating the packet type, and may also be The packet is classified according to a field indicating a packet priority in each packet in the data stream received by the communication interface 30, which is not specifically limited in the embodiment of the present invention.
  • the preset rule may be classified according to a TOS field message of an IP packet, where the TOS field includes a priority subfield.
  • the processor 31 After classifying the packets in the data stream, the processor 31 uses the highest priority class of packets.
  • the processing is performed in an interleaving manner, that is, the processor 31 processes the first type of packets in an interleaving manner, so as to ensure the transmission quality of the packets, and the other types of packets are lost due to the loss of the packets. The impact.
  • the processor 31 in the embodiment of the present invention may use any existing interleaving technology to process the first type of packet, which is not limited by the embodiment of the present invention.
  • the communication interface 30 is further configured to send the various types of packets processed by the processor 31 to the receiver, so that the receiver processes the processed various types of packets. They are processed in their respective processing methods.
  • the processor 31 is configured to perform forward error correction FEC encoding on the second type of packet if the priority of the second type of packet is the second priority, where the The second priority is better than the first priority, and is specifically used to: if the priority of the third type of packet is the third priority, the third type of packet is not processed, where The third priority is smaller than the second priority and smaller than the first priority.
  • the processor 31 in the embodiment of the present invention may use any existing FEC encoding technology to process the second type of packet, which is not limited in this embodiment of the present invention.
  • the memory 32 is configured to cache the second type of packet if the priority of the second type of packet is the second priority.
  • the processor 31 is configured to determine whether the number of packets of the first type is less than a preset threshold.
  • the processor 31 is configured to perform forward error correction FEC encoding on the second type of the packet in the memory 32, if the number of the first type of the packet is equal to the preset threshold, and If the number of packets of the first type is less than a preset threshold, and the difference between the preset threshold and the number of packets of the first type is N, N ⁇ 1, then N are second to the memory 32.
  • the type of the packet is processed in an interleaving manner, and is further used to perform FEC encoding on the second type of packet except the N second type of packets in the memory 32.
  • the processor 31 performs the FEC modulation on the first type of the packet to protect the transmission quality of the first type of packet.
  • the processor 31 is configured to: if the number of the first type of packets is smaller than the preset threshold, and the preset threshold is different from the first type, Number of messages The difference between the quantities is N, and N second type of messages are selected from the memory 32 for immediate interleaving.
  • the interleaved RTP packet includes at least an interlace identifier field;
  • InterFlag field included in a packet header of the interleaved RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the communication interface 30 is specifically configured to send the interleaved RTP message to a receiver.
  • the communication interface 30 is further configured to send the InterType and the Inter Parameter to the receiver through a signaling channel, where the InterType is used to indicate an interlace type used when performing interleaving processing on the RTP message, Inter Parameter is used to indicate specific interleaving parameters.
  • the communication interface 30 While the communication interface 30 transmits the interleaved RTP message to the receiver, the communication interface 30 also transmits the InterType and Inter Parameter to the receiver through the signaling channel, so that the receiver determines the specific deinterleaving technique according to the two fields. And deblocking the RTP message by using a determined deinterleaving technique.
  • the communication interface 30 can use any existing protocol to send the InterType and Inter Parameter fields, which is not specifically limited in this embodiment of the present invention.
  • the transmitter uses RTCP to transmit InterType and Inter Parameter fields, or the transmitter uses SIP to transmit InterType and Inter Parameter fields.
  • the embodiment of the present invention provides a transmitter, after receiving a data stream, the transmitter classifies the packets in the received data stream according to a preset rule to obtain at least two types of packets, and then the transmitter pair
  • the first type of the packet is processed in an interleaved manner, and the packets of the first type are processed in a non-interleaved manner.
  • the first type of the packet has a higher priority.
  • the transmitter sends the processed various types of messages to the receiver, so that the receiver uses the corresponding processing party for each type of processed message. Processing.
  • the transmitter after receiving the data stream, the transmitter does not perform FEC encoding and interleaving processing on all received data streams, but classifies the packets in the data stream according to a preset rule, and then Types of packets are processed differently.
  • the sender only interleaves the first type of packets with the highest priority in the data stream. This ensures that the most important packets in the data stream are not lost. It can not only ensure the transmission quality of the message, but also effectively reduce the delay caused by the interleaving.
  • an embodiment of the present invention further provides another receiver.
  • the receiver includes a communication interface 40, a processor 41, a memory 42, and a system bus 43. ,among them,
  • Communication interface 40, processor 41 and memory 42 are connected by system bus 43 and communicate with each other.
  • Processor 41 may be a single core or multi-core central processor, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the memory 42 may be a high speed RAM or a nonvolatile memory such as at least one disk memory.
  • the communication interface 40 is configured to receive a data stream, where the data stream includes at least two types of packets.
  • the data stream received by the communication interface 40 is a data stream sent by the transmitter, and the packet in the data stream is a packet processed by the transmitter, and the data stream includes at least two types of packets.
  • the processor 41 is configured to classify the packets in the data stream received by the communication interface 40 to obtain at least two types of packets.
  • the processor 41 is configured to perform deinterleave processing on the packet if the type of the packet is the first type, where the priority of the first type of packet is the first priority.
  • the first priority is higher than the priority of other types of packets, and if the type of the packet is the second type, the packet is subjected to forward error correction FEC decoding, where the The priority of the second type of message is the second priority, the second priority is better than the first priority, and is used to restore the processed various types of messages to the initial message.
  • the processor 41 After receiving the data stream, the processor 41 determines the type of the packet according to the format of the packet or the header of the packet.
  • the packet header carries the packet indicating which processing the transmitter uses for the packet. The way the information is processed.
  • the type of the message in the embodiment of the present invention is substantially determined by the transmitter, and the processing manner in the embodiment of the present invention corresponds to the manner in which the transmitter processes each type of packet.
  • the processor 41 is further configured to: if the type of the packet is the third type, the third type of the packet is not processed, and the priority of the third type of the packet is a third priority, the third priority being less than the second priority and smaller than the first priority.
  • the processor 41 can process the first type of the packet by using any existing de-interleaving technology, and can process the second type of the packet by using any existing FEC decoding technology. This is not limited.
  • processor 41 is further configured to perform error correction processing on the deinterleaved first type of message, and also perform error correction on the second type of FEC decoded message. deal with.
  • the RTP packet includes at least an interlace identifier field;
  • InterFlag field included in a packet header of the RTP packet, where the InterFlag is used to indicate that the current packet is interleaved;
  • the communication interface 40 is further configured to: if the first type of the packet is an RTP packet, receive an InterType and an Inter Parameter field, where the InterType is used to indicate an interlace type of the RTP packet.
  • the Inter Parameter is used to indicate a specific interleaving parameter.
  • the processor 41 is specifically configured to determine a deinterleaving technique according to the InterType and the Inter Parameter field received by the communication interface 40.
  • the processor 41 is specifically configured to perform deinterleaving processing on the RTP packet by using a determined deinterleaving technique.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Error Detection And Correction (AREA)

Abstract

本发明的实施例提供一种报文传输方法及装置,涉及通信技术领域,能够降低接入时延,保证报文传输质量。该方法包括:在接收到数据流后,按照预设规则,将所述数据流中的报文进行分类,得到至少两种类型的报文;对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;将处理后的各种类型的报文发送至接收机。

Description

一种报文传输方法及装置
本申请要求于2015年6月29日提交中国专利局、申请号为201510372581.6、发明名称为“一种报文传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种报文传输方法及装置。
背景技术
随着网络技术的日益发展,在当今互联网上传输的视频也越来越多,视频已经成为当前及未来网络流量的主要部分。随着人们需求的进一步提高,视频清晰度从标清、高清在向4K(4K分辨率)过渡,对带宽的需求从4Mbps、8Mbps向50Mbps、100Mbps发展,对网络时延的要求也越来越高。测试发现,承载4K视频需要端到端(英文:end to end,简称:E2E)时延小于25ms才能保证良好的播放体验,进而对接入网的时延要求要小于5ms。
现有网络中,接入网往往采用数字用户专线(英文:digital subscriber line,简称:DSL)接入技术。为了抵抗脉冲噪声的干扰,DSL系统普遍采用前向纠错(英文:forward error correction,简称:FEC)编码技术和交织技术来传输报文,这样使得DSL系统的接入时延大概为15ms。其中,在DSL系统的15ms接入时延中,12ms以上的时延由交织引入。
为了降低接入时延,一种方法是在报文传输时,不引入交织技术,但是,不引入交织技术导致接入网没有抗脉冲噪声的干扰的能力,增大错包率,降低报文的传输质量。为了降低接入时延,且保证报文的传输质量,还可以采用将DSL接入升级为光纤到户(英文:fiber to the home,简称:FTTH)接入的方法,但是,该方法成本很高,在实际应用场景中该方法的适用性也较低。因此,目前急需一种新的报文传输方法用于降低接入时延,同时还能保证报文传输质量。
发明内容
本发明的实施例提供一种报文传输方法及装置,解决了目前无法在降低接入时延的 同时还保证报文传输质量的问题。
为达到上述目的,本发明的实施例采用如下技术方案:
第一方面,本发明实施例提供一种报文传输方法,该方法包括:
在接收到数据流后,按照预设规则,将所述数据流中的报文进行分类,得到至少两种类型的报文;
对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
将处理后的各种类型的报文发送至接收机。
在第一方面的第一种可能实现方式中,所述对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,具体包括:
若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级;
若第三类型的报文的优先级为第三优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
结合第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,具体包括:
若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文;
判断第一类型的报文的数量是否小于预设阈值;
若第一类型的报文的数量等于预设阈值,则对缓存中的第二类型的报文进行前向纠错FEC编码;
若第一类型的报文的数量小于预设阈值,且所述预设阈值与所述第一类型的报文的数量的差为N,则对缓存中的N个第二类型的报文采用交织方式进行处理,并将缓存中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
在第一方面的第三种可能实现方式中,所述对第一类型的报文采用交织方式进行处理,具体包括:
若在预设时间周期内,第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为N,则从所述缓存中选取N个第二类型的报文,以便立刻进行交织。
结合前述第一方面或者第一方面的第一种可能实现方式至第一方面的第三种可能 实现方式中的任意一种可能实现方式,在第一方面的第四种可能实现方式中,若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
其中,所述交织标识字段包括:
所述交织后的RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述交织后的RTP报文的payload中包含的InterFlag字段;
或者,
所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
结合第一方面的第四种可能实现方式,在第一方面的第五种可能实现方式中,所述将处理后的各种类型的报文发送至接收机,包括:
将所述交织后的RTP报文发送至接收机。
结合第一方面的第五种可能实现方式,在第一方面的第六种可能实现方式中,所述将处理后的各种类型的报文发送至接收机,还包括:
将InterType和Inter Parameter发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
第二方面,本发明实施例提供一种报文传输方法,该方法包括:
在接收到数据流后,将所述数据流中的报文进行分类,得到至少两种类型的报文;
若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级;
将处理后的各种类型的报文还原为初始报文。
在第二方面的第一种可能实现方式中,所述方法还包括:
若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
在第二方面的第二种可能实现方式中,所述方法还包括:
对解交织后的第一类型的报文进行误码纠错处理;
对FEC解码后的第二类型的报文进行误码纠错处理。
结合前述第二方面或者第二方面的第一种可能实现方式至第二方面的第二种可能实现方式中的任意一种可能实现方式,在第二方面的第三种可能实现方式中,若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织标识字段;
其中,所述交织标识字段RTP报文至少包含用于表示当前报文被交织处理的字段,包括:
所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述RTP报文的payload中包含的InterFlag字段;
或者,
所述RTP报文的payload type至少包含第一字段,所述第一字段用于表示当前报文被交织处理。
结合第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式中,若所述第一类型的报文为RTP报文,则所述方法还包括:
接收InterType和Inter Parameter字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
结合第二方面的第四种可能实现方式,在第二方面的第五种可能实现方式中,所述对所述第一类型的报文进行解交织处理,具体包括:
根据所述InterType和所述Inter Parameter字段,确定解交织技术;
采用所述解交织技术,对所述RTP报文进行解交织处理。
第三方面,本发明实施例提供一种发送机,包括:
接收单元,用于接收数据流;
分类单元,用于按照预设规则,将所述接收单元接收到的数据流中的报文进行分类,得到至少两种类型的报文;
处理单元,用于对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
发送单元,用于将所述处理单元处理后的各种类型的报文发送至接收机。
在第三方面的第一种可能实现方式中,所述处理单元,具体用于若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级,以及具体用于若第三类型的报文的优先级为第三 优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
结合第三方面的第一种可能实现方式,在第三方面的第二种可能实现方式中,所述发送机还包括存储单元;
所述存储单元,用于若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文;
所述发送机还包括判断单元;
所述判断单元,用于判断第一类型的报文的数量是否小于预设阈值;
所述处理单元,用于若第一类型的报文的数量等于预设阈值,则对所述存储单元中的第二类型的报文进行前向纠错FEC编码,以及用于若第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为N,N≥1,则对所述存储单元中的N个第二类型的报文采用交织方式进行处理,并将所述存储单元中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
在第三方面的第三种可能实现方式中,所述处理单元,具体用于若在预设时间周期内,所述处理单元中第一类型的报文的数量小于所述预设阈值,且所述预设阈值与所述处理单元中第一类型的报文的数量的差为N,则从所述存储单元中选取N个第二类型的报文,以便立刻进行交织。
结合前述第三方面或者第三方面的第一种可能实现方式至第三方面的第三种可能实现方式中的任意一种可能实现方式,在第三方面的第四种可能实现方式中,若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
其中,所述交织标识字段包括:
所述交织后的RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述交织后的RTP报文的payload中包含的InterFlag字段;
或者,
所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
结合第三方面的第四种可能实现方式,在第三方面的第五种可能实现方式中,所述发送单元,具体用于将所述交织后的RTP报文发送至接收机。
结合第三方面的第五种可能实现方式,在第三方面的第六种可能实现方式中,所述 发送单元,还具体用于将InterType和Inter Parameter发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
第四方面,本发明实施例提供一种接收机,包括:
接收单元,用于接收数据流,所述数据流至少包括两种类型的报文;
分类单元,用于将所述接收单元接收到的数据流中的报文进行分类,得到至少两种类型的报文;
处理单元,用于若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级,以及用于若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级,以及用于将处理后的各种类型的报文还原为初始报文。
在第四方面的第一种可能实现方式中,所述处理单元,还用于若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
在第四方面的第二种可能实现方式中,所述处理单元,还用于对解交织后的第一类型的报文进行误码纠错处理,以及还用于对FEC解码后的第二类型的报文进行误码纠错处理。
结合前述第四方面或第四方面的第一种可能实现方式至第四方面的第二种可能实现方式中的任意一种可能实现方式,在第四方面的第三种可能实现方式中,若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织标识字段;
其中,所述织标识字段包括:
所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述RTP报文的payload中包含的InterFlag字段;
或者,
所述RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
结合第四方面的第三种可能实现方式,在第四方面的第四种可能实现方式中,所述接收单元,还用于若所述第一类型的报文为RTP报文,则接收InterType和Inter Parameter 字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
结合第四方面的第四种可能实现方式,在第四方面的第五种可能实现方式中,所述确定单元,具体用于根据所述接收单元接收到的所述InterType和所述Inter Parameter字段,确定解交织技术;
所述处理单元,具体用于采用所述确定单元确定的解交织技术,对所述RTP报文进行解交织处理。
本发明实施例提供一种报文传输方法及装置,发送机在接收到数据流后,按照预设规则将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,其中,第一类型的报文的优先级高于其他类型的报文的优先级,最后,发送机将处理后的各种类型的报文发送至接收机,以使得接收机对处理后的各种类型的报文采用各自相应的处理方式进行处理。
通过该方案,发送机在接收到数据流后,不需要对接收到的全部数据流进行交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,保证报文的传输质量,又能有效地降低由于交织造成的时延。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。
图1为本发明实施例的报文传输方法的流程示意图一;
图2为本发明实施例的报文传输方法的流程示意图二;
图3为本发明实施例的报文传输方法的流程示意图三;
图4为本发明实施例的发送机的结构示意图一;
图5为本发明实施例的发送机的结构示意图二;
图6为本发明实施例的接收机的结构示意图一;
图7为本发明实施例的发送机的结构示意图三;
图8为本发明实施例的接收机的结构示意图二。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透切理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。
本发明描述的各种技术适用于DSL系统的接入网中的报文传输,还适用于容易发生离散丢包的其他网络中的报文传输。
当从发送机的角度描述时,如图1所示,本发明实施例提供的报文传输方法包括:
S101、发送机在接收到数据流后,按照预设规则,将数据流中的报文进行分类,得到至少两种类型的报文。
其中,预设规则可以为根据数据流中各个报文的报文头对报文进行分类,其中,各个报文的报文头中携带有表示报文类型的信息,也可以为根据数据流中各个报文中的某一指示报文优先级的字段对报文进行分类,本发明实施例不做具体限定。
示例性的,预设规则为根据IP报文的服务类型(英文:type of service,简称:TOS)字段报文进行分类,其中,TOS字段中包括优先权子字段。
预设规则也可以为根据标准RFC6184中规定的实时传输协议(英文:Real-time Transport Protocol,简称:RTP)报文payload中的Network Abstraction Layer(NAL)Type/Payload Type来进行分类,其中,NAL type/payload type中 承载有表示视频帧的具体信息。
具体的,发送机在接收到数据流后,按照预设规则,将数据流中的报文进行分类,得到至少两种类型的报文,以便于发送机对不同类型的报文采取不同的方式进行处理。
其中,本发明实施例中报文类型的确定可以为发送机根据实际需求来确定。
示例性的,在对视频进行编码时,该视频会被编码成了若干个画面组(英文:group of pictures,简称:GOP),每个GOP中有基本图像帧(英文:Intra-coded frame,简称:I-frame)、解码立即刷新(英文:instantaneous decoding refresh,简称:IDR)帧、前向预测编码帧(英文:Predicted-frame,简称:P-frame)、双向预测编码帧(英文:Bi-predictive frame,简称:B-frame)等不同的帧类型。
其中,在对GOP中的其他帧进行编码解码时都要参考I帧或IDR帧,大部分B帧进行编码解码时要参考P帧,而B帧则可能被其他B帧参考,也可能不被参考。
这样,当视频在网络中传输时,如果I帧或IDR帧发生一个或多个报文的丢失,就会影响整个GOP的解码;如果P帧发生丢失,就会影响参考该P帧的B帧的解码;如果B帧发生丢失,就会影响参考该B帧的B帧的解码,如果该B帧没有被参考,则仅影响到该B帧的解码。
因此,若发送机接收到的数据流为视频流,则发送机可以分析该数据流中各个报文的payload,根据各个报文的payload将报文分为高中低三种类型。
具体的,发送机可以将I帧、IDR帧或者包含有视频参数集(英文:video parameter set,简称:VPS)、图像参数集(英文:picture parameter set,简称:PPS)、序列参数集(英文:sequence parameter set,简称:SPS)、节目关联表(英文:Program Association Table,简称:PAT)或者节目关联表(英文:Program Map Table,简称:PMT)内容的报文指定为高重要性报文,将P帧、被参考的B帧指定为中重要性的报文,将其他内容的报文指定为低重要性。
其中,PAT和PMT的相关信息可以参考标准ISO-IEC 13818-1。
或者,发送机将I帧、IDR帧或者包含有PAT、PMT、VPS、PPS或SPS内容的报文指定为高重要性报文,将P帧指定为中重要性的报文,将其他内容的报文指定为低重要性。
S102、发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理。
其中,第一类型的报文的优先级高于其他类型的报文的优先级。
采用交织方式处理报文一般能够解决脉冲噪声对物理线路的干扰,恢复受到脉冲影响的报文,进而保证报文的传输质量。
发送机在将数据流中的报文进行分类后,对优先级最高的一类报文采用交织方式进行处理,即发送机对第一类型的报文采用交织方式进行处理,这样能够保证这一类报文的传输质量,进而降低由于该类报文的丢失而对其他类型的报文造成的影响。
可选的,本发明实施例中的发送机可以采用任意一种现有的交织技术对第一类型的报文进行处理,本发明实施例对此不做限定。
示例性的,发送机可以采用线性交织技术对第一类型的报文进行处理,还可以采用卷积交织技术对第一类型的报文进行处理,还可以采用伪随机交织技术对第一类型的报文进行处理。
此外,发送机采用交织方式对第一类型的报文进行处理的同时,还可以对第一类型的报文进行FEC编码,以保护第一类型的报文的传输质量。
具体的,发送机在自身的处理器中对第一类型的报文进行交织处理。
其中,处理器可以为发送机中单独设立的,也可以为在发送机中的某一模块上集成实现的。该处理器可以是一个中央处理器(英文:central processing unit,简称:CPU),也可以是特定集成电路(英文:application-specific integrated circuit,简称:ASIC),还可以是被配置成实施本发明实施例的一个或多个集成电路。
优选的,本发明实施例中的处理器为交织器。
进一步地,若在预设时间周期内,发送机的处理器中报文的数量小于预设阈值,且预设阈值与处理器中报文的数量的差为N,则从缓存中选取N个报文,以便发送机的处理器立刻进行交织,其中,发送机的缓存中存储的是第二类型的报文,该报文的优先级次优于第一类型的报文的优先级。
发送机对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理。
具体的,若第二类型的报文的优先级为第二优先级,且第二优先级次优于第一优先级,则发送机可以对第二类型的报文进行FEC编码;若第三类型的报文的优先级为第三优先级,其中,第三优先级小于第二优先级,且小于第一优先级,则发送机可以对第三类型的报文不进行处理。
其中,本发明实施例中的发送机可以采用任意一种现有的FEC编码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
具体的,若第二类型的报文的优先级为第二优先级,则发送机先缓存第二类型的报文,然后判断发送机的处理器中报文的数量是否小于预设阈值。
若发送机的处理器中报文的数量等于预设阈值,发送机则对缓存中的第二类型的报文进行FEC编码。
若发送机的处理器中报文的数量小于预设阈值,且预设阈值与发送机的处理器中报文的数量的差为N,发送机则对缓存中的N个第二类型的报文采用交织方式进行处理,并将缓存中除N个第二类型的报文以外的第二类型的报文进行FEC编码,这样可以进一步缩短平均时延。
需要说明的是,本发明实施例中的发送机对其他类型的报文进行处理的方式并不局限于上述几种处理方式。
S103、发送机将处理后的各种类型的报文发送至接收机。
特殊的,如果发送机对某一种类型的报文不做处理,则发送机将这种类型的报文直接发送至接收机。
若第一类型的报文为RTP报文,则被发送机进行交织后的RTP报文至少包含交织标识字段,其中,交织标识字段携带交织标识,交织标识用于表示当前报文已经被交织处理,这样,接收机在接收到RTP报文后,根据RTP报文中的交织标识字段即可确定接收到的RTP报文需要解交织处理。
具体的,交织标识字段包括:
交织后的RTP报文的报文头中包含的InterFlag字段,其中InterFlag用于表示当前报文被交织处理;
或者,
交织后的RTP报文的payload中包含的InterFlag字段;
或者,
交织后的RTP报文的payload type中包含的第一字段,第一字段用于表示当前报文被交织处理,其中,第一字段的名称本发明实施例不作具体限定。
具体的,发送机将交织后的RTP报文发送至接收机的同时,发送机还将InterType和Inter Parameter通过信令通道发送至接收机,以使得接收机根据这两个字段确定具体的解交织技术,并采用确定好的解交织技术还原RTP报文。
其中,InterType用于表示发送机对RTP报文进行交织处理时采用的交织类型,Inter Parameter用于表示具体的交织参数。
需要说明的是,发送机可以采用现有的任意一种协议来发送InterType和Inter Parameter字段,本发明实施例对此并不做具体限定。
示例性的,发送机采用实时传输控制协议(英文:Real-time Transport Control Protocol,简称:RTCP)传输InterType和Inter Parameter字段,或者,发送机采用会话初始协议(英文:Session Initiation Protocol,简称:SIP)传输InterType和Inter Parameter字段。
本发明实施例提供一种报文传输方法,发送机在接收到数据流后,按照预设规则将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用不同于交织方式的方式进行处理,其中,第一类型的报文的优先级高于其他类型的报文的优先级,最后,发送机将处理后的各种类型的报文发送至接收机,以使得接收机对处理后的各种类型的报文采用各自相应的处理方式进行处理。
通过该方案,发送机在接收到数据流后,不需要对接收到的全部数据流进行交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,保证报文的传输质量,又能有效地降低由于交织造成的时延。
当从接收机的角度描述时,如图2所示,本发明实施例提供的报文传输方法包括:
S201、接收机在接收到数据流后,将数据流中的报文进行分类,得到至少两种类型的报文。
接收机接收到的数据流为发送机发送至接收机的,由于本发明实施例中的数据流是在发送机是对数据流中的不同类型的报文采用不同方式处理后发送的,因此,接收机接收到数据流后,通过将数据流中的报文进行分类,能够得到至少两种类型的报文,进而采用不同的处理方式对不同类型的报文进行处理。
可选的,接收机在接收到数据流之后,根据报文的格式或者报文头来确定报文的类型,其中,报文头中携带有表示发送机对该报文采用哪种处理方式进 行处理的信息。
S202、若报文的类型为第一类型,接收机则对报文进行解交织处理。
其中,第一类型的报文的优先级为第一优先级,第一优先级高于其他类型的报文的优先级。
在接收到数据流后,接收机将数据流中的报文进行分类,得到至少两种类型的报文后,接收机对每种类型的报文采用各自的处理方式进行处理。
可以理解的是,本发明实施例中的报文的类型实质上是由发送机确定的,本发明实施例中的处理方式与发送机对每种类型的报文的处理方式是相对应的。
具体的,若报文的类型为第一类型,接收机则对报文进行解交织处理。
需要说明的是,本发明实施例中的接收机可以采用任意一种现有的解交织技术对第一类型的报文进行处理,本发明实施例对此不做限定。
进一步地,接收机对解交织后的第一类型的报文进行误码纠错处理。
示例性的,若接收机接收到的第一类型的报文为RTP报文,且该RTP报文为发送机进行交织处理之后的报文,则接收机接收到的RTP报文的每个报文中至少包含交织标识字段,其中,交织标识字段携带交织标识,交织标识用于表示当前报文已经被交织处理,接收机根据该交织标识字段可以确定接收到的RTP报文需要解交织处理。
具体的,交织标识字段包括:
RTP报文的报文头中包含的InterFlag字段,其中,InterFlag用于表示当前报文被交织处理;
或者,
RTP报文的payload中包含的InterFlag字段;
或者,
RTP报文的payload type中包含的第一字段,第一字段用于表示当前报文被交织处理,其中,第一字段的名称本发明实施例不作具体限定。
相应的,接收机还通过信令通道接收到InterType和Inter Parameter两个字段,这两个字段分别说明RTP报文的交织类型(例如,规则交织、不规则交织、随机交织等)、具体的交织参数。
接收机根据这两个字段即可确定该RTP报文的具体的解交织技术,这样, 接收机使用该解交织技术对RTP报文进行解交织处理。
S203、若报文的类型为第二类型,接收机则对报文进行FEC解码。
其中,第二类型的报文的优先级为第二优先级,第二优先级次优于第一优先级。
在接收到数据流后,接收机将数据流中的报文进行分类,得到至少两种类型的报文后,接收机对每种类型的报文采用各自的处理方式进行处理。
具体的,若报文的类型为第二类型,接收机则对该报文进行FEC解码。
需要说明的是,本发明实施例中的接收机可以采用任意一种现有的FEC解码技术对第二类型的报文进行处理,本发明实施例对此不做具体限定。
进一步地,接收机对FEC解码后的第二类型的报文进行误码纠错处理。
需要说明的是,本发明实施例中的S202和S203的执行顺序可以为先执行S202,后执行S203,也可以为先执行S203,后执行S202,还可以为同时执行S202和S203,本发明实施例对此不作具体限定。
进一步地,若接收机接收到的数据流中的报文包含有第三类型的报文,则接收机对第三类型的报文不进行处理,其中,第三类型的报文的优先级为第三优先级,第三优先级小于第二优先级,且小于第一优先级。
S204、接收机将处理后的各种类型的报文还原为初始报文。
接收机在处理各种类型的报文后,对处理后的各个报文进行还原处理,以使得接收机将接收到的报文还原为初始报文。
具体的,接收机中的序列还原器将接收到的报文还原为初始报文。
其中,序列还原器可以为接收机中单独设立的,也可以为在接收机中的某一处理器上集成实现的。
本发明实施例中的接收机采用现有的任意一种还原初始报文的方法将处理后的各种类型的报文还原为初始报文。
本发明实施例提供一种报文传输方法,接收机在接收到数据流后,将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,接收机对每种类型的报文采用各自的处理方式进行处理,最后,接收机将处理后的各种类型的报文还原为初始报文。
通过该方案,接收机接收到的数据流中包含有至少两种类型的报文,而接收机接收到的数据流是通过发送机处理之后的数据流,发送机并没有对全部数据流进行交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对 各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,既能保证报文的传输质量,又能有效地降低由于交织造成的时延。
为了简单理解本发明,本发明实施例以视频传输为例说明图1和图2所示的报文的传输方法。
由于人眼对视频中不同空间、时间、色彩、亮度的像素点/区域敏感度不同,因此,承载不同像素点/区域的报文的重要程度不相同。另外,当视频在网络中传输时,如果I帧或IDR帧发生一个或多个报文的丢失,就会影响整个GOP的解码;如果P帧发生丢失,就会影响参考该P帧的B帧的解码;如果B帧发生丢失,就会影响参考该B帧的B帧的解码,如果该B帧没有被参考,则仅影响到该B帧的解码。
因此,本发明实施例以I帧、IDR帧的报文为第一类型的报文(高重要性报文),P帧、被参考的B帧为第二类型的报文(中重要性的报文),其他内容的报文为第三类型的报文(低重要性的报文)为例对报文传输方法进行说明。
如图3所示,在传输视频数据流时,本发明实施例提供的报文传输方法包括以下步骤:
S301、发送机在接收到视频数据流后,按照预设规则,将视频数据流中的报文进行分类,得到第一类型、第二类型和第三类型三种报文。
其中,预设规则可以为根据视频数据流中各个报文的报文头对报文进行分类,其中,各个报文的报文头中携带有表示报文类型的类型信息,也可以为根据视频数据流中各个报文中的某一指示报文优先级的字段对报文进行分类,本发明实施例不做具体限定。
示例性的,预设规则可以为根据标准RFC6184中规定的RTP报文payload中的NAL type/payload type来进行分类,其中,NAL type/payload type中承载有表示视频帧的具体信息。
具体的,发送机在接收到视频数据流后,可以通过分析各个报文的有效负载payload,将I帧、IDR帧的报文为第一类型的报文,P帧、被参考的B帧为第二类型的报文,其他内容的报文为第三类型的报文。其中,第一类型的报文的优先级高于其他类型的报文的优先级,第二类型的报文的优先级次优于第一类型的报文的优先级,第三类型的报文的优先级低于第一类型的报文的优先级, 且低于第二类型的报文的优先级。
S302、发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理。
采用交织方式处理报文一般能够解决脉冲噪声对物理线路的干扰,恢复收到脉冲影响的报文,进而保证报文的传输质量。
发送机在将视频数据流中的报文进行分类后,对I帧、IDR帧的报文采用交织方式进行处理,这样能够保证I帧、IDR帧的报文的传输质量,进而降低由于I帧、IDR帧的报文的丢失而对其他类型的报文造成的影响。
可选的,本发明实施例中的发送机可以采用任意一种现有的交织技术对第一类型的报文进行处理,本发明实施例对此不做限定。
示例性的,发送机可以采用线性交织技术对第一类型的报文进行处理,还可以采用卷积交织技术对第一类型的报文进行处理,还可以采用伪随机交织技术对第一类型的报文进行处理。
此外,发送机采用交织方式对第一类型的报文进行处理的同时,还可以对第一类型的报文进行FEC编码,以保护第一类型的报文的传输质量。
具体的,发送机在自身的处理器中对第一类型的报文进行交织处理。
进一步地,若在预设时间周期内,发送机的处理器中报文的数量小于预设阈值,且预设阈值与发送机的处理器中报文的数量的差为N,则从缓存中选取N个报文,以便发送机的处理器立刻进行交织,其中,发送机的缓存中存储的是第二类型的报文,该报文的优先级次优于第一类型的报文的优先级。
其中,发送机的处理器可以为发送机中单独设立的,也可以为在发送机中的某一模块上集成实现的。该处理器可以是一个CPU,也可以是ASIC,还可以是被配置成实施本发明实施例的一个或多个集成电路。
优选的,本发明实施例中的处理器也可以叫交织器。
发送机对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理。
具体的,发送机对第二类型的报文进行FEC编码,对第三类型的报文不进行处理。
其中,第二类型的报文的优先级为第二优先级,第二优先级次优于第一优先级,第三类型的报文的优先级为第三优先级,第三优先级小于第二优先级, 且小于第一优先级。
需要说明的是,本发明实施例中的发送机可以采用任意一种现有的FEC编码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
其中,发送机对第二类型的报文进行FEC编码具体包括:发送机先缓存第二类型的报文,然后判断发送机的处理器中报文的数量是否小于预设阈值。
若发送机的处理器中报文的数量等于预设阈值,发送机则对缓存中的第二类型的报文进行FEC编码。
若发送机的处理器中报文的数量小于预设阈值,且预设阈值与发送机的处理器中报文的数量的差为N,发送机则对缓存中的N个第二类型的报文采用交织方式进行处理,并将缓存中除N个第二类型的报文以外的第二类型的报文进行FEC编码,这样可以进一步缩短平均时延。
需要说明的是,本发明实施例中的发送机对第二类型和第三类型的报文进行处理的方式并不局限于上述处理方式。
S303、发送机将处理后的各种类型的报文发送至接收机。
发送机将交织处理之后的第一类型的报文、FEC编码后的第二类型的报文、未处理的第三类型的报文发送至接收机。
其中,若第一类型的报文为RTP报文,则被发送机进行交织后的RTP报文至少包含交织标识字段,其中,交织标识字段携带交织标识,交织标识用于表示当前报文已经被交织处理,这样,接收机在接收到RTP报文后,根据RTP报文中交织标识字段即可确定接收到的RTP报文需要解交织处理。
具体的,交织标识字段包括:
交织后的RTP报文的报文头中包含的InterFlag字段,其中InterFlag用于表示当前报文被交织处理;
或者,
交织后的RTP报文的payload中包含的InterFlag字段;
或者,
交织后的RTP报文的payload type中包含的第一字段,第一字段用于表示当前报文被交织处理,其中,第一字段的名称本发明实施例不作具体限定。
具体的,发送机将交织后的RTP报文发送至接收机的同时,发送机还将InterType和Inter Parameter通过信令通道发送至接收机,以使得接收机根据这 两个字段确定具体的解交织技术,并采用确定好的解交织技术还原RTP报文。
其中,InterType用于表示发送机对RTP报文进行交织处理时采用的交织类型,Inter Parameter用于表示具体的交织参数。
需要说明的是,发送机可以采用现有的任意一种协议来发送InterType和Inter Parameter字段,本发明实施例对此并不做具体限定。
示例性的,发送机采用RTCP传输InterType和Inter Parameter字段,或者,发送机采用SIP传输InterType和Inter Parameter字段。
S304、接收机将接收到的数据流中的报文进行分类,得到三种类型的报文。
由于接收机接收到的视频数据流是在发送机是对视频数据流中的三种类型的报文采用不同方式处理后发送的,因此,接收机接收到视频数据流后,通过将视频数据流中的报文进行分类,能够得到三种类型的报文,进而采用不同的处理方式对这三种类型的报文进行处理。
可选的,接收机在接收到数据流之后,根据报文的格式或者报文头来确定报文的类型,其中,报文头中携带有表示发送机对该报文采用哪种处理方式进行处理的信息。
具体的,接收机将数据流中的报文进行分类,得到第一类型、第二类型和第三类型的报文。
容易理解的是,对于接收机而言,接收到的数据流中的第一类型的报文为经过发送机交织处理后的报文,第二类型的报文为经过发送机FEC编码后的报文。
S305、接收机对接收到的第一类型的报文进行解交织处理。
在接收到视频数据流后,接收机将该视频数据流中的报文进行分类,得到三种类型的报文。在对数据流中的报文进行分类后,接收机对每种类型的报文采用各自的处理方式进行处理。
具体的,接收机对接收到的第一类型的报文进行解交织处理,其中,第一类型的报文的优先级为第一优先级,第一优先级高于其他类型的报文的优先级。
其中,若接收机接收到的第一类型的报文为RTP报文,且该RTP报文为发送机采用交织技术处理之后的报文,则接收机接收到的RTP报文的每个报文中至少包含交织标识字段,其中,交织标识字段携带交织标识,交织标识用于表示当前报文已经被交织处理,接收机根据该交织标识字段可以确定接收到的RTP报 文需要解交织处理。
具体的,交织标识字段包括:
RTP报文的报文头中包含的InterFlag字段,其中,InterFlag用于表示当前报文被交织处理;
或者,
RTP报文的payload中包含的InterFlag字段;
或者,
RTP报文的payload type中包含的第一字段,第一字段用于表示当前报文被交织处理,其中,第一字段的名称本发明实施例不作具体限定。
相应的,接收机还通过信令通道接收到InterType和Inter Parameter两个字段,这两个字段分别说明RTP报文的交织类型(例如,规则交织、不规则交织、随机交织等)、具体的交织参数。
接收机根据这两个字段即可确定该数据流的具体的解交织技术,这样,接收机使用该解交织技术对数据流进行解交织处理。
S306、接收机对接收到的第二类型的报文进行FEC解码。
其中,第二类型的报文的优先级为第二优先级,第二优先级次优于第一优先级。
本发明实施例中的接收机可以采用任意一种现有的FEC解码技术对接收到的第二类型的报文进行处理,本发明实施例对此不做具体限定。
S307、接收机对接收到的第三类型的报文不进行处理。
其中,第三类型的报文的优先级为第三优先级,第三优先级小于第二优先级,且小于第一优先级。
需要说明的是,本发明实施例中的S305、S306和S307的执行顺序可以为先执行S305,再执行S306,后执行S307,也可以为先执行S306,再执行S305,后执行S307,还可以为同时执行S305、S306和S307,本发明实施例对此不作具体限定。
S308、接收机将处理后的各种类型的报文还原为初始报文。
接收机在处理各种类型的报文后,对处理后的各个报文进行还原处理,以使得接收机将接收到的报文还原为初始报文。
具体的,接收机中的序列还原器将接收到的报文还原为初始报文。
其中,序列还原器可以为接收机中单独设立的,也可以为在接收机中的某 一处理器上集成实现的。
本发明实施例中的接收机采用现有的任意一种还原初始报文的方法将处理后的各种类型的报文还原为初始报文。
本发明实施例提供一种报文传输方法,发送机在接收到数据流后,按照预设规则将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,其中,第一类型的报文的优先级高于其他类型的报文的优先级,最后,发送机将处理后的各种类型的报文发送至接收机,以使得接收机对处理后的各种类型的报文采用各自相应的处理方式进行处理。
通过该方案,发送机在接收到数据流后,不需要对接收到的全部数据流进行FEC编码和交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,既能保证报文的传输质量,又能有效地降低由于交织造成的时延。
为了实现上述图1到图3中所示的方法,本发明实施例提供一种发送机1,如图4所示,该发送机1包括:
接收单元10,用于接收数据流。
分类单元11,用于按照预设规则,将所述接收单元10接收到的数据流中的报文进行分类,得到至少两种类型的报文。
其中,预设规则可以为根据接收单元10接收到的数据流中各个报文的报文头对报文进行分类,其中,各个报文的报文头中携带有表示报文类型的类型信息,也可以为根据接收单元10接收到的数据流中各个报文中的某一指示报文优先级的字段对报文进行分类,本发明实施例不做具体限定。
示例性的,预设规则为根据IP报文的TOS字段报文进行分类,其中,TOS字段中包括优先权子字段。
处理单元12,用于对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级。
处理单元12在分类单元11将数据流中的报文进行分类后,对优先级最高的一类报文采用交织方式进行处理,即处理单元12对第一类型的报文采用交织方式进行处理,这样能够保证这一类报文的传输质量,进而降低由于该类报文的丢失而对其他类型的报文造成的影响。
其中,本发明实施例中的处理单元12可以采用任意一种现有的交织技术对第一类型的报文进行处理,本发明实施例对此不做限定。
发送单元13,用于将所述处理单元12处理后的各种类型的报文发送至接收机,以使得所述接收机对所述处理后的各种类型的报文采用各自相应的处理方式进行处理。
进一步地,所述处理单元12,具体用于若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级,以及具体用于若第三类型的报文的优先级为第三优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
其中,本发明实施例中的处理单元12可以采用任意一种现有的FEC编码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
需要说明的是,本发明实施例中的处理单元12对其他类型的报文进行处理的方式并不局限于上述几种处理方式。
进一步地,如图5所示,所述发送机1还包括存储单元14;
所述存储单元14,用于若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文。
所述发送机1还包括判断单元15;
所述判断单元15,用于判断第一类型的报文的数量是否小于预设阈值。
所述处理单元12,用于若第一类型的报文的数量等于预设阈值,则对所述存储单元14中的第二类型的报文进行前向纠错FEC编码,以及用于若第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为NN≥1,则对所述存储单元中的N个第二类型的报文采用交织方式进行处理,并用于将所述存储单元14中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
进一步地,处理单元12采用交织方式对第一类型的报文进行处理的同时, 还可以对第一类型的报文进行FEC调制,以保护第一类型的报文的传输质量。
进一步地,所述处理单元12,具体用于若在预设时间周期内,所述处理单元12中第一类型的报文的数量小于所述预设阈值,且所述预设阈值与所述处理单元12中第一类型的报文的数量的差为N,则从所述存储单元14中选取N个第二类型的报文,以便进行交织。
进一步地,若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
其中,交织标识字段包括:
所述交织后的RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述交织后的RTP报文的payload中包含的InterFlag字段;
或者,
所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
进一步地,所述发送单元13,具体用于将所述交织后的RTP报文发送至接收机。
进一步地,所述发送单元13,还具体用于将InterType和Inter Parameter发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
发送单元13将交织后的RTP报文发送至接收机的同时,发送单元13还将InterType和Inter Parameter通过信令通道发送至接收机,以使得接收机根据这两个字段确定具体的解交织技术,并采用确定好的解交织技术还原RTP报文。
需要说明的是,发送单元13可以采用现有的任意一种协议来发送InterType和Inter Parameter字段,本发明实施例对此并不做具体限定。
示例性的,发送单元13采用RTCP传输InterType和Inter Parameter字段,或者,发送机采用SIP传输InterType和Inter Parameter字段。
本发明实施例提供一种发送机,包括接收单元、分类单元、处理单元和发送单元。发送机在接收到数据流后,按照预设规则将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,发送机对第一类型的报文采用交 织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式的方式进行处理,其中,第一类型的报文的优先级高于其他类型的报文的优先级,最后,发送机将处理后的各种类型的报文发送至接收机,以使得接收机对处理后的各种类型的报文采用各自相应的处理方式进行处理。
通过该方案,发送机在接收到数据流后,不需要对接收到的全部数据流进行FEC编码和交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,既能保证报文的传输质量,又能有效地降低由于交织造成的时延。
为了实现上述图1到图3中所示的方法,本发明实施例还提供一种接收机2,如图6所示,该接收机2包括:
接收单元20,用于接收数据流,所述数据流至少包括两种类型的报文。
接收单元20接收到的数据流为发送机发送的数据流,该数据流中的报文为经过发送机进行处理后的报文,该数据流中至少包括两种类型的报文。
分类单元21,用于将所述接收单元20接收到的数据流中的报文进行分类,得到至少两种类型的报文。
分类单元21在接收单元20接收到数据流之后,根据报文的格式或者报文头来确定报文的类型,其中,报文头中携带有表示发送机对该报文采用哪种处理方式进行处理的信息。
处理单元22,用于若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级,以及用于若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级,以及用于将处理后的各种类型的报文还原为初始报文。
可以理解的是,本发明实施例中的报文的类型实质上是由发送机确定的,本发明实施例中的处理方式与发送机对每种类型的报文的处理方式是相对应的。
所述处理单元22可以采用任意一种现有的解交织技术对第一类型的报文进行解交织处理,可以采用任意一种现有的FEC解码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
进一步地,所述处理单元22,还用于若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
进一步地,所述处理单元22,还用于对解交织后的第一类型的报文进行误码纠错处理,以及还用于对FEC解码后的第二类型的报文进行误码纠错处理。
进一步地,若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织标识字段;
其中,所述交织标识字段包括:
所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述RTP报文的payload中包含的InterFlag字段;
或者,
所述RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
进一步地,所述接收单元20,还用于若所述第一类型的报文为RTP报文,则接收InterType和Inter Parameter字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
接收单元20还通过信令通道接收到InterType和Inter Parameter两个字段,这两个字段分别说明交织类型(例如,规则交织、不规则交织、随机交织等)、具体的交织参数。
进一步地,所述处理单元22,具体用于根据所述接收单元20接收到的所述InterType和所述Inter Parameter字段,确定解交织技术。
进一步地,所述处理单元22,具体用于采用所述解交织技术,对所述RTP报文进行解交织处理。
本发明实施例提供一种接收机,包含接收单元、分类单元和处理单元。接收机在接收到数据流后,将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,接收机对每种类型的报文采用各自的处理方式进行处理,最后,接收机将处理后的各种类型的报文还原为初始报文。
通过该方案,接收机接收到的数据流中包含有至少两种类型的报文,而接 收机接收到的数据流是通过发送机处理之后的数据流,发送机并没有对全部数据流进行交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,既能保证报文的传输质量,又能有效地降低由于交织造成的时延。
为了实现上述图1到图3中所示的方法,本发明实施例还提供另一种发送机,如图7所示,该发送机包括通信接口30、处理器31、存储器32和系统总线33,其中,
通信接口30、处理器31和存储器32之间通过系统总线33连接并完成相互间的通信。
处理器31可能为单核或多核中央处理器,或者为特定集成电路,或者为被配置成实施本发明实施例的一个或多个集成电路。
存储器32可以为随机存储器(英文:random access memory,简称:RAM)存储器,也可以为非易失性存储器(英文:non-volatile memory),例如,至少一个磁盘存储器。
具体的,所述通信接口30,用于接收数据流。
具体的,所述处理器31,用于按照预设规则,将所述通信接口30接收到的数据流中的报文进行分类,得到至少两种类型的报文。
进一步地,所述处理器31,用于对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级。
预设规则可以为根据通信接口30接收到的数据流中各个报文的报文头对报文进行分类,其中,各个报文的报文头中携带有表示报文类型的类型信息,也可以为根据通信接口30接收到的数据流中各个报文中的某一指示报文优先级的字段对报文进行分类,本发明实施例不做具体限定。
示例性的,预设规则可以为根据IP报文的TOS字段报文进行分类,其中,TOS字段中包括优先权子字段。
处理器31在将数据流中的报文进行分类后,对优先级最高的一类报文采用 交织方式进行处理,即处理器31对第一类型的报文采用交织方式进行处理,这样能够保证这一类报文的传输质量,进而降低由于该类报文的丢失而对其他类型的报文造成的影响。
其中,本发明实施例中的处理器31可以采用任意一种现有的交织技术对第一类型的报文进行处理,本发明实施例对此不做限定。
具体的,所述通信接口30,还用于将所述处理器31处理后的各种类型的报文发送至接收机,以使得所述接收机对所述处理后的各种类型的报文采用各自相应的处理方式进行处理。
进一步地,所述处理器31,具体用于若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级,以及具体用于若第三类型的报文的优先级为第三优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
其中,本发明实施例中的处理器31可以采用任意一种现有的FEC编码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
需要说明的是,本发明实施例中的处理器31对其他类型的报文进行处理的方式并不局限于上述几种处理方式。
进一步地,所述存储器32,用于若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文。
进一步地,所述处理器31,用于判断第一类型的报文的数量是否小于预设阈值。
进一步地,所述处理器31,用于若第一类型的报文的数量等于预设阈值,则对所述存储器32中的第二类型的报文进行前向纠错FEC编码,以及用于若第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为N,N≥1,则对所述存储器32中的N个第二类型的报文采用交织方式进行处理,并还用于将所述存储器32中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
进一步地,处理器31采用交织方式对第一类型的报文进行处理的同时,还可以对第一类型的报文进行FEC调制,以保护第一类型的报文的传输质量。
进一步地,所述处理器31,具体用于若在预设时间周期内,所述第一类型的报文的数量小于所述预设阈值,且所述预设阈值与所述第一类型的报文的数 量的差为N,则从所述存储器32中选取N个第二类型的报文,以便立刻进行交织。
进一步地,若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
其中,所述交织标识字段包括:
所述交织后的RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述交织后的RTP报文的payload中包含的InterFlag字段;
或者,
所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
进一步地,所述通信接口30,具体用于将所述交织后的RTP报文发送至接收机。
进一步地,所述通信接口30,还具体用于将InterType和Inter Parameter通过信令通道发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
通信接口30将交织后的RTP报文发送至接收机的同时,通信接口30还将InterType和Inter Parameter通过信令通道发送至接收机,以使得接收机根据这两个字段确定具体的解交织技术,并采用确定好的解交织技术对RTP报文进行解交织处理。
需要说明的是,通信接口30可以采用现有的任意一种协议来发送InterType和Inter Parameter字段,本发明实施例对此并不做具体限定。
示例性的,发送机采用RTCP传输InterType和Inter Parameter字段,或者,发送机采用SIP传输InterType和Inter Parameter字段。
本发明实施例提供一种发送机,发送机在接收到数据流后,按照预设规则将接收到的数据流中的报文进行分类,得到至少两种类型的报文,然后,发送机对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式的方式进行处理,其中,第一类型的报文的优先级高于其他类型的报文的优先级,最后,发送机将处理后的各种类型的报文发送至接收机,以使得接收机对处理后的各种类型的报文采用各自相应的处理方 式进行处理。
通过该方案,发送机在接收到数据流后,并没有对接收到的全部数据流进行FEC编码和交织处理,而是根据预设规则将数据流中的报文进行了分类,然后对各种类型的报文进行了不同的处理,其中,发送机只对数据流中优先级最高的第一类型的报文进行了交织处理,这样,既能保证数据流中最重要的报文不会丢失,既能保证报文的传输质量,又能有效地降低由于交织造成的时延。
为了实现上述图1到图3中所示的方法,本发明实施例还提供另一种接收机,如图8所示,该接收机包括通信接口40、处理器41、存储器42和系统总线43,其中,
通信接口40、处理器41和存储器42之间通过系统总线43连接并完成相互间的通信。
处理器41可能为单核或多核中央处理器,或者为特定集成电路,或者为被配置成实施本发明实施例的一个或多个集成电路。
存储器42可以为高速RAM,也可以为非易失性存储器,例如,至少一个磁盘存储器。
具体的,所述通信接口40,用于接收数据流,所述数据流至少包括两种类型的报文。
通信接口40接收到的数据流为发送机发送的数据流,该数据流中的报文为经过发送机进行处理后的报文,该数据流中至少包括两种类型的报文。
具体的,所述处理器41,用于将所述通信接口40接收到的数据流中的报文进行分类,得到至少两种类型的报文。
进一步地,所述处理器41,用于若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级,以及用于若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级,以及用于将处理后的各种类型的报文还原为初始报文。
处理器41在通信接口40接收到数据流之后,根据报文的格式或者报文头来确定报文的类型,其中,报文头中携带有表示发送机对该报文采用哪种处理 方式进行处理的信息。
可以理解的是,本发明实施例中的报文的类型实质上是由发送机确定的,本发明实施例中的处理方式与发送机对每种类型的报文的处理方式是相对应的。
进一步地,所述处理器41,还用于若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
处理器41可以采用任意一种现有的解交织技术对第一类型的报文进行处理,可以采用任意一种现有的FEC解码技术对第二类型的报文进行处理,本发明实施例对此不做限定。
进一步地,所述处理器41,还用于对解交织后的第一类型的报文进行误码纠错处理,以及还用于对FEC解码后的第二类型的报文进行误码纠错处理。
进一步地,若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织标识字段;
其中,所述交织标识字段包括:
所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
或者,
所述RTP报文的payload中包含的InterFlag字段;
或者,
所述RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
进一步地,所述通信接口40,还用于若所述第一类型的报文为RTP报文,则接收InterType和Inter Parameter字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
进一步地,所述处理器41,具体用于根据所述通信接口40接收到的所述InterType和所述Inter Parameter字段,确定解交织技术。
进一步地,所述处理器41,具体用于采用确定的解交织技术,对所述RTP报文进行解交织处理。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模 块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (26)

  1. 一种报文传输方法,其特征在于,包括:
    在接收到数据流后,按照预设规则,将所述数据流中的报文进行分类,得到至少两种类型的报文;
    对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
    将处理后的各种类型的报文发送至接收机。
  2. 根据权利要求1所述的报文传输方法,其特征在于,所述对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,具体包括:
    若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级;
    若第三类型的报文的优先级为第三优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
  3. 根据权利要求2所述的报文传输方法,其特征在于,所述若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,具体包括:
    若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文;
    判断第一类型的报文的数量是否小于预设阈值;
    若第一类型的报文的数量等于预设阈值,则对缓存中的第二类型的报文进行前向纠错FEC编码;
    若第一类型的报文的数量小于预设阈值,且所述预设阈值与所述第一类型的报文的数量的差为N,N≥1,则对缓存中的N个第二类型的报文采用交织方式进行处理,并将缓存中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
  4. 根据权利要求1所述的报文传输方法,其特征在于,所述对第一类型的报文采用交织方式进行处理,具体包括:
    若在预设时间周期内,第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为N,则从缓存中选取N个第二类型的报文,以便立刻进行交织。
  5. 根据权利要求1-4任意一项所述的报文传输方法,其特征在于,
    若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
    其中,所述交织标识字段包括:
    所述交织后的RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
    或者,
    所述交织后的RTP报文的payload中包含的InterFlag字段;
    或者,
    所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
  6. 根据权利要求5所述的报文传输方法,其特征在于,所述将处理后的各种类型的报文发送至接收机,包括:
    将所述交织后的RTP报文发送至接收机。
  7. 根据权利要求6所述的报文传输方法,其特征在于,所述将处理后的各种类型的报文发送至接收机,还包括:
    将InterType和Inter Parameter发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
  8. 一种报文传输方法,其特征在于,包括:
    在接收到数据流后,将所述数据流中的报文进行分类,得到至少两种类型的报文;
    若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
    若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级;
    将处理后的各种类型的报文还原为初始报文。
  9. 根据权利要求8所述的报文传输方法,其特征在于,所述方法还包括:
    若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
  10. 根据权利要求8所述的报文传输方法,其特征在于,所述方法还包括:
    对解交织后的第一类型的报文进行误码纠错处理;
    对FEC解码后的第二类型的报文进行误码纠错处理。
  11. 根据权利要求8-10任意一项所述的报文传输方法,其特征在于,
    若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织 标识字段;
    其中,所述交织标识字段包括:
    所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
    或者,
    所述RTP报文的payload中包含的InterFlag字段;
    或者,
    所述RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
  12. 根据权利要求11所述的报文传输方法,其特征在于,若所述第一类型的报文为RTP报文,则所述方法还包括:
    接收InterType和Inter Parameter字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
  13. 根据权利要求12所述的报文传输方法,其特征在于,所述对所述报文进行解交织处理,具体包括:
    根据所述InterType和所述Inter Parameter字段,确定解交织技术;
    采用所述解交织技术,对所述RTP报文进行解交织处理。
  14. 一种发送机,其特征在于,包括:
    接收单元,用于接收数据流;
    分类单元,用于按照预设规则,将所述接收单元接收到的数据流中的报文进行分类,得到至少两种类型的报文;
    处理单元,用于对第一类型的报文采用交织方式进行处理,且对除第一类型的报文以外的其他类型的报文采用非交织方式进行处理,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级;
    发送单元,用于将所述处理单元处理后的各种类型的报文发送至接收机。
  15. 根据权利要求14所述的发送机,其特征在于,
    所述处理单元,具体用于若第二类型的报文的优先级为第二优先级,则对所述第二类型的报文进行前向纠错FEC编码,其中,所述第二优先级次优于所述第一优先级,以及具体用于若第三类型的报文的优先级为第三优先级,则对所述第三类型的报文不进行处理,其中,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
  16. 根据权利要求15所述的发送机,其特征在于,所述发送机还包括存储单元;
    所述存储单元,用于若第二类型的报文的优先级为第二优先级,则缓存所述第二类型的报文;
    所述发送机还包括判断单元;
    所述判断单元,用于判断第一类型的报文的数量是否小于预设阈值;
    所述处理单元,用于若第一类型的报文的数量等于预设阈值,则对所述存储单元中的第二类型的报文进行前向纠错FEC编码,以及用于若第一类型的报文的数量小于预设阈值,且所述预设阈值与第一类型的报文的数量的差为N,N≥1,则对所述存储单元中的N个第二类型的报文采用交织方式进行处理,并将所述存储单元中除所述N个第二类型的报文以外的第二类型的报文进行FEC编码。
  17. 根据权利要求14所述的发送机,其特征在于,
    所述处理单元,具体用于若在预设时间周期内,第一类型的报文的数量小于预设阈值,且所述预设阈值与所述第一类型的报文的数量的差为N,则从所述存储单元中选取N个第二类型的报文,以便立刻进行交织。
  18. 根据权利要求14-17任意一项所述的发送机,其特征在于,
    若所述第一类型的报文为实时传输协议RTP报文,则交织后的RTP报文至少包含交织标识字段;
    其中,所述交织标识字段包括:
    所述交织后的RTP报文的报文头中至少包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
    或者,
    所述交织后的RTP报文的payload中包含的InterFlag字段;
    或者,
    所述交织后的RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
  19. 根据权利要求18所述的发送机,其特征在于,
    所述发送单元,具体用于将所述交织后的RTP报文发送至接收机。
  20. 根据权利要求19所述的发送机,其特征在于,
    所述发送单元,还具体用于将InterType和Inter Parameter发送至接收机,所述InterType用于表示对所述RTP报文进行交织处理时采用的交织类型,所述Inter Parameter用于表示具体的交织参数。
  21. 一种接收机,其特征在于,包括:
    接收单元,用于接收数据流;
    分类单元,用于将所述接收单元接收到的数据流中的报文进行分类,得到至少两种类型的报文;
    处理单元,用于若报文的类型为第一类型,则对所述报文进行解交织处理,其中,所述第一类型的报文的优先级为第一优先级,所述第一优先级高于其他类型的报文的优先级,以及用于若报文的类型为第二类型,则对所述报文进行前向纠错FEC解码,其中,所述第二类型的报文的优先级为第二优先级,所述第二优先级次优于所述第一优先级,以及用于将处理后的各种类型的报文还原为初始报文。
  22. 根据权利要求21所述的接收机,其特征在于,
    所述处理单元,还用于若报文的类型为第三类型,则对所述第三类型的报文不进行处理,其中,所述第三类型的报文的优先级为第三优先级,所述第三优先级小于所述第二优先级,且小于所述第一优先级。
  23. 根据权利要求21所述的接收机,其特征在于,
    所述处理单元,还用于对解交织后的第一类型的报文进行误码纠错处理,以及还用于对FEC解码后的第二类型的报文进行误码纠错处理。
  24. 根据权利要求21-23任意一项所述的接收机,其特征在于,
    若所述第一类型的报文为实时传输协议RTP报文,则所述RTP报文至少包含交织标识字段;
    其中,所述交织标识字段包括:
    所述RTP报文的报文头中包含的InterFlag字段,所述InterFlag用于表示当前报文被交织处理;
    或者,
    所述RTP报文的payload中包含的InterFlag字段;
    或者,
    所述RTP报文的payload type中包含的第一字段,所述第一字段用于表示当前报文被交织处理。
  25. 根据权利要求24所述的接收机,其特征在于,
    所述接收单元,还用于若所述第一类型的报文为RTP报文,则接收InterType和Inter Parameter字段,所述InterType用于表示所述RTP报文的交织类型,所述Inter Parameter用于表示具体的交织参数。
  26. 根据权利要求25所述的接收机,其特征在于,
    所述处理单元,具体用于根据所述接收单元接收到的所述InterType和所述Inter Parameter字段,确定解交织技术,以及具体用于采用所述解交织技术,对所述RTP报文进行解交织处理。
PCT/CN2016/086947 2015-06-29 2016-06-23 一种报文传输方法及装置 WO2017000836A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510372581.6 2015-06-29
CN201510372581.6A CN106330713B (zh) 2015-06-29 2015-06-29 一种报文传输方法及装置

Publications (1)

Publication Number Publication Date
WO2017000836A1 true WO2017000836A1 (zh) 2017-01-05

Family

ID=57607723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086947 WO2017000836A1 (zh) 2015-06-29 2016-06-23 一种报文传输方法及装置

Country Status (2)

Country Link
CN (2) CN111541514B (zh)
WO (1) WO2017000836A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390738A (zh) * 2018-01-29 2018-08-10 全球能源互联网研究院有限公司 一种基于智能变电站时钟同步的数据传输方法与系统
CN109981481A (zh) * 2019-01-16 2019-07-05 北京左江科技股份有限公司 一种多现场保护的设计方法
CN112838992A (zh) * 2019-11-22 2021-05-25 华为技术有限公司 报文调度方法及网络设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174239A (zh) * 2017-12-04 2018-06-15 中国联合网络通信集团有限公司 一种视频传输方法及设备
CN110086574B (zh) * 2019-04-29 2020-09-29 京信通信系统(中国)有限公司 报文处理方法、装置、计算机设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166273A (zh) * 2006-10-16 2008-04-23 华为技术有限公司 实现视频数据传送的方法、装置及系统
CN101527607A (zh) * 2009-04-22 2009-09-09 四川虹微技术有限公司 一种dab信道解码装置
WO2009127961A1 (en) * 2008-04-16 2009-10-22 Nokia Corporation Decoding order recovery in session multiplexing
CN101729910A (zh) * 2008-10-15 2010-06-09 国家广播电影电视总局广播科学研究院 一种基于可分级比特流的数据传输方法和装置
CN101895742A (zh) * 2010-02-08 2010-11-24 北京韦加航通科技有限责任公司 将不相等错保护应用于单载波系统视频传输的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100574330C (zh) * 2005-08-09 2009-12-23 中兴通讯股份有限公司 无线链路层中非确认模式协议数据单元的发送和接收方法
CA2742416A1 (en) * 2008-10-30 2010-05-06 Nokia Corporation Method and apparatus for interleaving a data block
WO2015135120A1 (zh) * 2014-03-11 2015-09-17 华为技术有限公司 端到端的网络QoS控制系统、通信设备和端到端的网络QoS控制方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166273A (zh) * 2006-10-16 2008-04-23 华为技术有限公司 实现视频数据传送的方法、装置及系统
WO2009127961A1 (en) * 2008-04-16 2009-10-22 Nokia Corporation Decoding order recovery in session multiplexing
CN101729910A (zh) * 2008-10-15 2010-06-09 国家广播电影电视总局广播科学研究院 一种基于可分级比特流的数据传输方法和装置
CN101527607A (zh) * 2009-04-22 2009-09-09 四川虹微技术有限公司 一种dab信道解码装置
CN101895742A (zh) * 2010-02-08 2010-11-24 北京韦加航通科技有限责任公司 将不相等错保护应用于单载波系统视频传输的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390738A (zh) * 2018-01-29 2018-08-10 全球能源互联网研究院有限公司 一种基于智能变电站时钟同步的数据传输方法与系统
CN109981481A (zh) * 2019-01-16 2019-07-05 北京左江科技股份有限公司 一种多现场保护的设计方法
CN109981481B (zh) * 2019-01-16 2022-11-11 北京左江科技股份有限公司 一种多现场保护的设计方法
CN112838992A (zh) * 2019-11-22 2021-05-25 华为技术有限公司 报文调度方法及网络设备

Also Published As

Publication number Publication date
CN111541514B (zh) 2021-10-26
CN106330713A (zh) 2017-01-11
CN111541514A (zh) 2020-08-14
CN106330713B (zh) 2020-04-14

Similar Documents

Publication Publication Date Title
WO2017000836A1 (zh) 一种报文传输方法及装置
CN101568027B (zh) 转发视频数据的方法、装置和系统
US8699522B2 (en) System and method for low delay, interactive communication using multiple TCP connections and scalable coding
US12010016B2 (en) Data stream transmission method and device
CN101729228B (zh) 丢包抑制重传的方法、网络节点和系统
US8443097B2 (en) Queue management unit and method for streaming video packets in a wireless network
US10887151B2 (en) Method for digital video transmission adopting packaging forwarding strategies with path and content monitoring in heterogeneous networks using MMT protocol, method for reception and communication system
CN101166270A (zh) 多媒体视频通信方法及系统
Wu et al. Streaming high-definition real-time video to mobile devices with partially reliable transfer
CN102223218B (zh) 媒体报文重传抑制方法和设备
US7852853B1 (en) System and method for transmitting video information
AU2012225416B2 (en) Signaling number of active layers in video coding
US20190312920A1 (en) In-Band Quality Data
CN110876066A (zh) 一种自适应前向纠错方法、装置、介质和设备
CN108429921B (zh) 一种视频编解码方法及装置
CN109862400B (zh) 一种流媒体传输方法、装置及其系统
Fiandrotti et al. Traffic prioritization of H. 264/SVC video over 802.11 e ad hoc wireless networks
US8270307B2 (en) Network-adaptive preemptive repair in real-time video
CN111131840B (zh) 一种视频业务系统切换网络的方法及装置
EP2806589B1 (en) Method for providing streaming service
JP2005033556A (ja) データ送信装置、データ送信方法、データ受信装置、データ受信方法
WO2010054551A1 (zh) 视频流传输的方法、装置和系统
WO2008073881A2 (en) System and method for low-delay, interactive communication using multiple tcp connections and scalable coding
JP2005210160A (ja) 通信状態表示を有する映像受信端末
WO2022228037A1 (zh) 一种流媒体数据传输的方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817200

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16817200

Country of ref document: EP

Kind code of ref document: A1