WO2010105527A1 - Compressed real-time protocol optimization method and apparatus - Google Patents

Compressed real-time protocol optimization method and apparatus Download PDF

Info

Publication number
WO2010105527A1
WO2010105527A1 PCT/CN2010/070900 CN2010070900W WO2010105527A1 WO 2010105527 A1 WO2010105527 A1 WO 2010105527A1 CN 2010070900 W CN2010070900 W CN 2010070900W WO 2010105527 A1 WO2010105527 A1 WO 2010105527A1
Authority
WO
WIPO (PCT)
Prior art keywords
available bandwidth
upper layer
link
module
message
Prior art date
Application number
PCT/CN2010/070900
Other languages
French (fr)
Chinese (zh)
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 WO2010105527A1 publication Critical patent/WO2010105527A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Definitions

  • the present application claims priority to Chinese Patent Application No. 200910128856. 6, entitled “Optimization Method and Apparatus for Compressing Real-Time Protocols” on March 19, 2009, the entire contents of which are incorporated herein by reference.
  • TECHNICAL FIELD The present invention relates to an information processing method, and in particular, to an optimization method and apparatus for compressing a real-time protocol.
  • RTP Real-time Transport Protocol
  • the 12-byte RTP header is too expensive for a load of only 20 bytes.
  • some applications typically use a custom protocol, which reduces RTP-related functionality.
  • IP / UDP / RTP header is small, such as compressed real time protocol (CRTP, Compressed Real-time Transport Protocol) 0 shown in FIG. 1, the compressed RTP header may be directed to the end of the application (HEADER), or a combination of IP, UDP, and RTP for Link-by-Link applications. Compressing a 40-byte combo header together is more practical than compressing a 12-byte RTP header, since the result size in both cases is about 2-4 bytes. At the same time, because of the low latency and loss rate, the Link-by-Link application is compressed and performs better. CRTP compresses the IP/UDP/RTP header of most packets to 2 bytes without sending the User Datagram Protocol (UDP) checksum, and compresses to 4 when with checksum. Bytes.
  • UDP User Datagram Protocol
  • CRTP is a point-to-point compression algorithm commonly used on E1 links.
  • the CRTP algorithm can compress IP/UDP/RTP headers of 36 bytes to 6-9 bytes, greatly improving link utilization.
  • the compression side constructs a FULL HEADER message at compression start.
  • the FULL HEADER message contains a compressed identifier (CID, Compress identification) and a complete IP/UDP/RTP header field, which is passed to the decompressed end for decompression.
  • End construct context (CONTEXT) entry After the decompression end establishes the CID-IP/UDP/RTP mapping relationship, the compression end subsequently sends a packet containing only the CID to save bandwidth.
  • CID compressed identifier
  • CONTEXT End construct context
  • the decompression end recovers the IP/UDP/RTP header field according to the CID lookup table.
  • the decompression end checks the validity and continuity of the CID at the same time. If the CID is found to be lost, it indicates that a transmission error has occurred on the line.
  • the decompression end constructs a context state message and sends it to the compression end to request the compression end to re-request. Send a FULL HEADER message to reconstruct the CID-IP/UDP/RTP mapping entry. In the case of a normal link, this mechanism can do a good job of error retransmission.
  • the context state message request synchronization is initiated to the compressed end.
  • the compressed end After receiving the context state packet, the compressed end sends multiple FULL HEAD packets on multiple links.
  • the FULL HEAD message has a total of 32 bytes of IP/UDP/RTP headers than the Compress head that is usually transmitted.
  • the occupied bandwidth is large, which will cause a new round of congestion and an avalanche effect of transmission deterioration. Reduce transmission efficiency.
  • An object of the embodiments of the present invention is to provide an optimization method and apparatus for compressing a real-time protocol, which can avoid an avalanche effect in which transmission degradation occurs on a decompression side packet loss under network congestion.
  • An embodiment of the present invention provides an optimization method for compressing a real-time protocol, where the method includes: detecting an available bandwidth of a link; and notifying an upper-layer central processor, prohibiting a response context status report, if the available bandwidth is less than or equal to a preset ratio Text.
  • the embodiment of the present invention further provides a compression end device, the device comprising: a detection module, configured to detect a link available bandwidth; a comparison module, configured to compare whether the available bandwidth is less than or equal to a preset ratio; and a response module, And determining, according to the comparison result of the comparison module, whether to respond to the context status message, and when the comparison result of the comparison module is that the available bandwidth is less than or equal to the preset ratio, notifying the upper layer central processor, so that the upper layer The central processor notifies the underlying network processor that it is prohibited to respond to context status messages.
  • Figure 1 is a schematic diagram of the RTP packet format before and after compression.
  • Figure 2A is a schematic diagram of the operation between the compressed end and the compressed end of the CRPT under normal conditions.
  • 2B is a schematic diagram of the operation between the compressed end and the compressed end of the CRPT under congestion transmission.
  • FIG. 3 is a flow chart of an embodiment of an optimization method of a compressed real-time protocol in accordance with the present invention.
  • FIG. 4 is a flow chart of another embodiment of an optimization method of a compressed real-time protocol in accordance with the present invention.
  • Figure 5 is a block diagram showing an embodiment of a compression end device in accordance with the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
  • Embodiment 1 The illustrative embodiments of the present invention and the description thereof are intended to explain the present invention, but are not intended to limit the invention.
  • an embodiment of the present invention provides an optimization method for compressing a real-time protocol. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
  • the method includes the following steps performed by the compression end after traffic congestion occurs:
  • Step S301 Detect the available bandwidth of the link.
  • the timing of detecting the available bandwidth of the link can be realized by the number of bytes sent by the link at each predetermined time;
  • step S301 can be performed periodically or periodically.
  • Step S302 When the available bandwidth is less than or equal to a preset ratio, the context state message is not responded.
  • the preset ratio can be 20% of the entire bandwidth.
  • the upper CPU can be notified to prohibit the response to the context status message.
  • the method further includes: receiving a context state message sent by the decompressing end, where the context state message is used to instruct the compressed end to send a complete header message.
  • this embodiment may further include:
  • the FULL HEADER packet includes the CID and the complete IP/UDP/RTP header field. After receiving the FULL HEADER packet, the decompressor can re-establish the CID-IP/UDP/RTP mapping according to the FULL HEADER packet. relationship.
  • the above response context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying network processor (NP, Network processor), and allows response to the context state message.
  • NP Network processor
  • the upper CPU will The flag bit is set to allow the status of the message state message to be acknowledged, and the underlying NP is notified by this flag bit.
  • the avalanche effect of congestion caused by the original protocol algorithm can be effectively alleviated, and the bandwidth can be fully utilized to improve transmission efficiency.
  • an embodiment of the present invention provides another method for optimizing a compressed real-time protocol. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
  • the method includes the following steps performed by the compression end after traffic congestion occurs:
  • Step S401 Detecting the available bandwidth of the link, and the specific method is similar to step S301;
  • step S401 may be performed periodically or periodically.
  • Step S402 determining whether the available bandwidth is less than or equal to a preset ratio, if it is greater than the preset ratio, step S403 is performed; if it is less than or equal to the preset ratio, step S405 is performed;
  • the preset ratio can be set to 20%
  • Step S403 Responding to a context state message
  • the response to the context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying NP, and allows the response to the context state message, for example, the upper layer CPU sets the flag bit to allow the status of the response context state message, and The underlying NP is notified by this flag bit;
  • Step S404 Construct a FULL HEADER message to be sent to the decompressing end device, and end the process;
  • the FULL HEADER packet includes the CID and the complete IP/UDP/RTP header field. After receiving the FULL HEADER packet, the decompressor can re-establish the CID-IP/UDP/RTP mapping according to the FULL HEADER packet. relationship.
  • Step S405 Not responding to the context state message
  • the non-response context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying network processor NP, and sets a prohibition response to the context state message, for example, the upper layer CPU sets the flag bit to prohibit the response context state report.
  • the status of the text, and the underlying NP is notified by this flag bit;
  • Step S406 Adjust the traffic of the packet to adapt the traffic of the packet to the available bandwidth environment.
  • the traffic control can be implemented by slowing down the traffic source end.
  • the method further includes: receiving a context state message sent by the decompressing end, where the context state message is used to instruct the compressed end to send a complete header message.
  • This embodiment can effectively alleviate the original association when traffic congestion occurs on a narrowband link to which the CRTP compression protocol is applied.
  • the avalanche effect caused by the congestion caused by the algorithm is further controlled, the flow rate is further controlled, the bandwidth is more fully utilized, and the transmission efficiency is improved.
  • an embodiment of the present invention provides a compression end device that optimizes a compressed real-time protocol.
  • the compression end device 500 includes:
  • a detecting module 501 configured to detect a link available bandwidth
  • the comparing module 502 is configured to compare whether the available bandwidth is less than or equal to a preset ratio
  • the preset ratio can be set to 20% according to the actual usage of the bandwidth
  • the response module 503 is configured to determine, according to the comparison result of the comparison module 502, whether to respond to the context state message; if the comparison result is that the available bandwidth is greater than a preset ratio, the response module 503 notifies the upper CPU, so that the upper CPU notifies the underlying NP. And responding to the context state message; if the comparison result is that the available bandwidth is less than or equal to the preset ratio, the response module 503 notifies the upper layer CPU, so that the upper layer CPU notifies the underlying NP, and prohibits the response to the context state message.
  • the upper layer CPU may notify the underlying NP by setting the preset flag bit to allow the status of the context state message or the state of the response context message.
  • the compression end device 500 may further include:
  • the complete header packet module 504 is configured to send a FULL HEAD message to the decompression end device when the response module 503 determines to respond to the context status message;
  • the flow control module 505 is configured to control the traffic when the response module 503 determines that the context state message is not to be responded, and adjust the traffic of the packet to adapt the traffic of the packet to the available bandwidth. Further, the flow control module 505 can regulate the flow by reducing the flow rate of the flow source.
  • the avalanche effect of congestion caused by the original protocol algorithm can be effectively alleviated, and the bandwidth can be fully utilized to improve transmission efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a compressed real-time protocol optimization method. The method includes: detecting the available bandwidth of a link; if the available bandwidth is less than or equal to a preset proportion, notifying an upper layer central processor, and forbidding it to respond to a context state message. Furthermore, the present invention also provides a compression end apparatus, and the apparatus includes: a detecting module used for detecting the available bandwidth of a link; a comparison module used for comparing whether the available bandwidth is less than or equal to a preset proportion; and a response module used for determining, according to the comparison result from the comparison module, whether to respond to a context state message, and when the comparison result from the comparison module is that the available bandwidth is less than or equal to the preset proportion, for notifying an upper layer central processor, so that the said upper layer central processor notifies a bottom layer network processor, and forbids the bottom layer network processor to respond to the context state message. On the narrowband link using Compressed Real-Time Protocol (CRTP), if congestion occurs, the application of the present invention can effectively ease the avalanche effect due to the congestion aggravation caused by the original protocol algorithm, the bandwidth can be used more completely and the transmission efficiency can be improved.

Description

压缩实时协议的优化方法和装置  Optimization method and device for compressing real-time protocol
本申请要求于 2009年 03月 19日提交中国专利局、 申请号为 200910128856. 6、 发 明名称为 "压缩实时协议的优化方法和装置"的中国专利申请的优先权, 其全部内容通 过引用结合在本申请中。 技术领域 本发明涉及一种信息处理方法, 尤其涉及一种压缩实时协议的优化方法和装置。 背景技术 随着实时传输协议(RTP, Real-time Transport Protocol)成为正式的 Internet标 准, 人们对于利用 RTP实现不同的网络音视频应用程序间互操作的兴趣也日益增长。然 而在使用低速链路如 14. 4Kb/s或 28. 8Kb/s拨号时, 12字节的 RTP头对于仅有 20字节 的负载而言开销实在太大。 为了减少头占用的字节, 一些应用通常使用自定义的协议, 而这样削减了 RTP相关的功能。  The present application claims priority to Chinese Patent Application No. 200910128856. 6, entitled "Optimization Method and Apparatus for Compressing Real-Time Protocols" on March 19, 2009, the entire contents of which are incorporated herein by reference. In this application. TECHNICAL FIELD The present invention relates to an information processing method, and in particular, to an optimization method and apparatus for compressing a real-time protocol. BACKGROUND OF THE INVENTION With the Real-time Transport Protocol (RTP) becoming the official Internet standard, there is an increasing interest in using RTP to implement interoperability between different network audio and video applications. However, when using low-speed links such as 14. 4Kb/s or 28.8Kb/s, the 12-byte RTP header is too expensive for a load of only 20 bytes. To reduce the number of bytes occupied by the header, some applications typically use a custom protocol, which reduces RTP-related functionality.
也可通过压缩技术来令 IP/UDP/RTP包头变小,如压缩实时协议(CRTP, Compressed Real-time Transport Protocol )0如图 1所示,压缩可以针对于在端到端应用中的 RTP 头 (HEADER), 或者针对 Link-by-Link应用中的 IP, UDP, RTP的组合头。 将 40字节 的组合头一起进行压缩比仅压缩 12字节的 RTP头更具实际效果, 因为两种情况下的结 果大小均为约 2-4字节。 同时, 由于延迟和丢失率都很低, 对 Link-by-Link应用进行 压缩, 性能也更好。 CRTP在不发送用户数据报协议(UDP, User Datagram Protocol ) 校验和的情况下, 将大多数包的 IP/UDP/RTP头压缩到 2个字节, 在带校验和时则压缩 到 4个字节。 May also be make by compression IP / UDP / RTP header is small, such as compressed real time protocol (CRTP, Compressed Real-time Transport Protocol) 0 shown in FIG. 1, the compressed RTP header may be directed to the end of the application (HEADER), or a combination of IP, UDP, and RTP for Link-by-Link applications. Compressing a 40-byte combo header together is more practical than compressing a 12-byte RTP header, since the result size in both cases is about 2-4 bytes. At the same time, because of the low latency and loss rate, the Link-by-Link application is compressed and performs better. CRTP compresses the IP/UDP/RTP header of most packets to 2 bytes without sending the User Datagram Protocol (UDP) checksum, and compresses to 4 when with checksum. Bytes.
CRTP是在 E1链路上常用的点到点压缩算法, CRTP算法可以把 IP/UDP/RTP共 36字 节的报文头压缩到 6-9字节, 大大提高链路利用率。 如图 2a所示, 压缩启动时压缩方 构造 FULL HEADER 报文, 该 FULL HEADER 报文包含压缩标识 ( CID, Compress identification)和完整的 IP/UDP/RTP头部字段, 传递给解压端以供解压端构造上下 文(CONTEXT)表项。解压端建立起 CID-IP/UDP/RTP的映射关系后, 压缩端后续发送仅 包含 CID的报文来节省带宽。 解压端根据 CID来查表恢复出 IP/UDP/RTP头部字段。 解 压端同时检查 CID的有效性和连续性, 如果发现 CID丢失, 则表示线路上发生了传输错 误, 解压端会构造上下文状态 (context state )报文发给压缩端, 来要求压缩端重新 发送完整头 (FULL HEADER)报文以便重建 CID-IP/UDP/RTP的映射表项。 在链路正常的 情况下, 这种机制可以很好的做到错误重传。 CRTP is a point-to-point compression algorithm commonly used on E1 links. The CRTP algorithm can compress IP/UDP/RTP headers of 36 bytes to 6-9 bytes, greatly improving link utilization. As shown in Figure 2a, the compression side constructs a FULL HEADER message at compression start. The FULL HEADER message contains a compressed identifier (CID, Compress identification) and a complete IP/UDP/RTP header field, which is passed to the decompressed end for decompression. End construct context (CONTEXT) entry. After the decompression end establishes the CID-IP/UDP/RTP mapping relationship, the compression end subsequently sends a packet containing only the CID to save bandwidth. The decompression end recovers the IP/UDP/RTP header field according to the CID lookup table. The decompression end checks the validity and continuity of the CID at the same time. If the CID is found to be lost, it indicates that a transmission error has occurred on the line. The decompression end constructs a context state message and sends it to the compression end to request the compression end to re-request. Send a FULL HEADER message to reconstruct the CID-IP/UDP/RTP mapping entry. In the case of a normal link, this mechanism can do a good job of error retransmission.
但是如图 2b 所示, 在网络拥塞下, 如果解压端侧发现丢包, 则会向压缩端发起 context state报文请求同步。 压缩端收到 context state报文后会在多条链路上并发 发出多条 FULL HEAD报文。 而 FULL HEAD报文比通常传输的压缩头 (Compress head) 多出 IP/UDP/RTP包头共计 32字节, 占用带宽较大, 会造成一轮新的拥塞, 产生传输恶 化的雪崩效应, 从而大大降低传输效率。 发明内容  However, as shown in Figure 2b, if the packet is found to be lost on the decompressed end, the context state message request synchronization is initiated to the compressed end. After receiving the context state packet, the compressed end sends multiple FULL HEAD packets on multiple links. The FULL HEAD message has a total of 32 bytes of IP/UDP/RTP headers than the Compress head that is usually transmitted. The occupied bandwidth is large, which will cause a new round of congestion and an avalanche effect of transmission deterioration. Reduce transmission efficiency. Summary of the invention
本发明实施例的目的在于提供一种压缩实时协议的优化方法和装置,能够避免在网 络拥塞下解压侧数据包丢失产生传输恶化的雪崩效应。  An object of the embodiments of the present invention is to provide an optimization method and apparatus for compressing a real-time protocol, which can avoid an avalanche effect in which transmission degradation occurs on a decompression side packet loss under network congestion.
本发明实施例的目的在于提供一种压缩实时协议的优化方法, 该方法包括: 检测链 路可用带宽; 若可用带宽小于或等于预先设定比例时, 通知上层中央处理器, 禁止响应 上下文状态报文。  An embodiment of the present invention provides an optimization method for compressing a real-time protocol, where the method includes: detecting an available bandwidth of a link; and notifying an upper-layer central processor, prohibiting a response context status report, if the available bandwidth is less than or equal to a preset ratio Text.
本发明实施例还提供一种压缩端装置, 该装置包括: 检测模块, 用于检测链路可用 带宽; 比较模块,用于比较所述可用带宽是否小于或等于预先设定比例; 以及响应模块, 用于根据比较模块的比较结果, 确定是否响应上下文状态报文, 当所述比较模块的比较 结果为可用带宽小于或等于所述预先设定比例时, 通知上层中央处理器, 以使所述上层 中央处理器通知底层网络处理器, 禁止响应上下文状态报文。  The embodiment of the present invention further provides a compression end device, the device comprising: a detection module, configured to detect a link available bandwidth; a comparison module, configured to compare whether the available bandwidth is less than or equal to a preset ratio; and a response module, And determining, according to the comparison result of the comparison module, whether to respond to the context status message, and when the comparison result of the comparison module is that the available bandwidth is less than or equal to the preset ratio, notifying the upper layer central processor, so that the upper layer The central processor notifies the underlying network processor that it is prohibited to respond to context status messages.
在应用 CRTP压缩协议的窄带链路上, 如果发生流量拥塞, 应用本发明可以有效缓 解原协议算法导致的拥塞加剧的雪崩效应, 更充分的利用带宽, 提高传输效率。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 并不构 成对本发明的限定。 在附图中:  On the narrowband link using the CRTP compression protocol, if traffic congestion occurs, the present invention can effectively alleviate the avalanche effect caused by the original protocol algorithm, and more fully utilize the bandwidth to improve the transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the claims In the drawing:
图 1为 RTP数据包格式在压缩前后的示意图。  Figure 1 is a schematic diagram of the RTP packet format before and after compression.
图 2A为正常情况下 CRPT的压缩端和被压缩端之间的操作示意图。  Figure 2A is a schematic diagram of the operation between the compressed end and the compressed end of the CRPT under normal conditions.
图 2B为拥塞传输下 CRPT的压缩端和被压缩端之间的操作示意图。  2B is a schematic diagram of the operation between the compressed end and the compressed end of the CRPT under congestion transmission.
图 3为根据本发明的压缩实时协议的优化方法一实施例的流程图。  3 is a flow chart of an embodiment of an optimization method of a compressed real-time protocol in accordance with the present invention.
图 4为根据本发明的压缩实时协议的优化方法另一实施例的流程图。 图 5为根据本发明的压缩端装置的一实施例的结构示意图。 具体实施方式 为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合实施例和附图, 对本发明实施例做进一步详细说明。在此, 本发明的示意性实施例及其说明用于解释本 发明, 但并不作为对本发明的限定。 实施例一 4 is a flow chart of another embodiment of an optimization method of a compressed real-time protocol in accordance with the present invention. Figure 5 is a block diagram showing an embodiment of a compression end device in accordance with the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clearly, the embodiments of the present invention are further described in detail below with reference to the embodiments and drawings. The illustrative embodiments of the present invention and the description thereof are intended to explain the present invention, but are not intended to limit the invention. Embodiment 1
参照图 3, 本发明实施例提供一种压缩实时协议的优化方法。 以下参照附图对本发 明实施例进行详细说明。  Referring to FIG. 3, an embodiment of the present invention provides an optimization method for compressing a real-time protocol. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
该方法包括当发生流量拥塞后, 由压缩端执行以下步骤:  The method includes the following steps performed by the compression end after traffic congestion occurs:
步骤 S301 : 检测链路可用带宽。  Step S301: Detect the available bandwidth of the link.
例如, 在预定时刻 TO读取链路发送报文字节数 ByteJO , 在下一预定时刻 T1读取 链路发送报文字节数 Byte_Tl,从而得到实际带宽 Band= (Byte_Tl-Byte_TO) / (T1-T0), 如此通过各预定时刻的链路发送报文字节数可以实现定时检测链路可用带宽;  For example, at the predetermined time TO, the number of bytes of the link transmission message is ByteJO, and the number of bytes of the link transmission message Byte_Tl is read at the next predetermined time T1, thereby obtaining the actual bandwidth Band=(Byte_Tl-Byte_TO) / (T1- T0), the timing of detecting the available bandwidth of the link can be realized by the number of bytes sent by the link at each predetermined time;
可选地, 上述步骤 S301可以为定时执行或周期执行。  Optionally, the foregoing step S301 can be performed periodically or periodically.
步骤 S302 : 当所述可用带宽小于或等于预先设定比例时, 不响应 context state 报文。  Step S302: When the available bandwidth is less than or equal to a preset ratio, the context state message is not responded.
例如, 预先设定比例可以为整个带宽的 20%, 当可用带宽小于整个带宽的 20%时, 可以通知上层 CPU, 禁止响应上下文状态报文。  For example, the preset ratio can be 20% of the entire bandwidth. When the available bandwidth is less than 20% of the entire bandwidth, the upper CPU can be notified to prohibit the response to the context status message.
可选地, 在上述步骤 S301之前进一步包括, 接收解压端发送的 context state报 文, 所述 context state报文用于指示压缩端发送完整头报文。  Optionally, before the step S301, the method further includes: receiving a context state message sent by the decompressing end, where the context state message is used to instruct the compressed end to send a complete header message.
可选地, 本实施例可以进一步包括:  Optionally, this embodiment may further include:
当所述可用带宽大于所述预先设定比例时, 响应 context state报文, 并向解压端 发送 FULL HEADER报文。  And when the available bandwidth is greater than the preset ratio, responding to the context state message, and sending a FULL HEADER message to the decompressing end.
上述 FULL HEADER报文中包含 CID和完整的 IP/UDP/RTP头部字段, 解压端收到该 FULL HEADER报文后, 可以根据该 FULL HEADER报文重新建立起 CID-IP/UDP/RTP的映射 关系。  The FULL HEADER packet includes the CID and the complete IP/UDP/RTP header field. After receiving the FULL HEADER packet, the decompressor can re-establish the CID-IP/UDP/RTP mapping according to the FULL HEADER packet. relationship.
上述响应 context state报文具体可以为: 通知上层 CPU, 上层 CPU通知底层网络 处理器(NP, Network processor ) , 允许响应 context state报文。 例如, 上层 CPU将 标记位设置为允许响应 context state报文的状态, 并通过此标记位通知底层 NP。本实 施例可以在应用 CRTP压缩协议的窄带链路上发生流量拥塞时, 有效缓解原协议算法导 致的拥塞加剧的雪崩效应, 更充分的利用带宽, 提高传输效率。 实施例二 The above response context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying network processor (NP, Network processor), and allows response to the context state message. For example, the upper CPU will The flag bit is set to allow the status of the message state message to be acknowledged, and the underlying NP is notified by this flag bit. In this embodiment, when traffic congestion occurs on a narrowband link to which the CRTP compression protocol is applied, the avalanche effect of congestion caused by the original protocol algorithm can be effectively alleviated, and the bandwidth can be fully utilized to improve transmission efficiency. Embodiment 2
参照图 4, 本发明实施例提供另一种压缩实时协议的优化方法。 以下参照附图对本 发明实施例进行详细说明。  Referring to FIG. 4, an embodiment of the present invention provides another method for optimizing a compressed real-time protocol. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
该方法包括当发生流量拥塞后, 由压缩端执行以下步骤:  The method includes the following steps performed by the compression end after traffic congestion occurs:
步骤 S401 : 检测链路可用带宽, 具体方法与步骤 S301相似;  Step S401: Detecting the available bandwidth of the link, and the specific method is similar to step S301;
可选地, 上述步骤 S401可以为定时执行或周期执行。  Optionally, the foregoing step S401 may be performed periodically or periodically.
步骤 S402: 判断所述可用带宽是否小于或等于预设比例,若大于预设比例, 则执行 步骤 S403; 若小于或等于预设比例, 则执行步骤 S405;  Step S402: determining whether the available bandwidth is less than or equal to a preset ratio, if it is greater than the preset ratio, step S403 is performed; if it is less than or equal to the preset ratio, step S405 is performed;
例如, 根据带宽使用的实际情况, 可以将预设比例设置为 20%;  For example, depending on the actual usage of the bandwidth, the preset ratio can be set to 20%;
步骤 S403: 响应 context state报文;  Step S403: Responding to a context state message;
在该步骤中, 响应 context state报文具体可以为: 通知上层 CPU, 上层 CPU通知 底层 NP,允许响应 context state报文,例如,上层 CPU将标记位设置为允许响应 context state报文的状态, 并通过此标记位通知底层 NP;  In this step, the response to the context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying NP, and allows the response to the context state message, for example, the upper layer CPU sets the flag bit to allow the status of the response context state message, and The underlying NP is notified by this flag bit;
步骤 S404: 构造 FULL HEADER报文发送给解压端装置, 并结束流程;  Step S404: Construct a FULL HEADER message to be sent to the decompressing end device, and end the process;
上述 FULL HEADER报文中包含 CID和完整的 IP/UDP/RTP头部字段, 解压端收到该 FULL HEADER报文后, 可以根据该 FULL HEADER报文重新建立起 CID-IP/UDP/RTP的映射 关系。  The FULL HEADER packet includes the CID and the complete IP/UDP/RTP header field. After receiving the FULL HEADER packet, the decompressor can re-establish the CID-IP/UDP/RTP mapping according to the FULL HEADER packet. relationship.
步骤 S405: 不响应 context state报文;  Step S405: Not responding to the context state message;
在该步骤中, 不响应 context state报文具体可以为: 通知上层 CPU, 上层 CPU通 知底层网络处理器 NP, 设置禁止响应 context state报文, 例如, 上层 CPU将标记位设 置为禁止响应 context state报文的状态, 并通过此标记位通知底层 NP;  In this step, the non-response context state message may be: notify the upper layer CPU, the upper layer CPU notifies the underlying network processor NP, and sets a prohibition response to the context state message, for example, the upper layer CPU sets the flag bit to prohibit the response context state report. The status of the text, and the underlying NP is notified by this flag bit;
步骤 S406: 调节报文的流量,使报文的流量适应所述可用带宽环境, 其中可以通过 使流量源端降速来实现流量控制。  Step S406: Adjust the traffic of the packet to adapt the traffic of the packet to the available bandwidth environment. The traffic control can be implemented by slowing down the traffic source end.
可选地, 在上述步骤 S401之前进一步包括, 接收解压端发送的 context state报 文, 所述 context state报文用于指示压缩端发送完整头报文。  Optionally, before the step S401, the method further includes: receiving a context state message sent by the decompressing end, where the context state message is used to instruct the compressed end to send a complete header message.
本实施例可以在应用 CRTP压缩协议的窄带链路上发生流量拥塞时, 有效缓解原协 议算法导致的拥塞加剧的雪崩效应同时, 进一步控制流量速度, 更充分的利用带宽, 提 高传输效率。 This embodiment can effectively alleviate the original association when traffic congestion occurs on a narrowband link to which the CRTP compression protocol is applied. At the same time, the avalanche effect caused by the congestion caused by the algorithm is further controlled, the flow rate is further controlled, the bandwidth is more fully utilized, and the transmission efficiency is improved.
实施例三  Embodiment 3
参照图 5, 本发明实施例提供一种优化压缩实时协议的压缩端装置。 下面参照附图 对本发明实施例进行详细说明。  Referring to FIG. 5, an embodiment of the present invention provides a compression end device that optimizes a compressed real-time protocol. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
该压缩端装置 500包括:  The compression end device 500 includes:
检测模块 501, 用于检测链路可用带宽;  a detecting module 501, configured to detect a link available bandwidth;
比较模块 502, 用于比较所述可用带宽是否小于或等于预先设定比例;  The comparing module 502 is configured to compare whether the available bandwidth is less than or equal to a preset ratio;
例如, 可以根据带宽使用的实际情况, 将预设比例设置为 20%;  For example, the preset ratio can be set to 20% according to the actual usage of the bandwidth;
响应模块 503, 用于根据比较模块 502的比较结果, 确定是否响应 context state 报文; 若比较结果为可用带宽大于预先设定比例, 则响应模块 503通知上层 CPU, 以使 上层 CPU用通知底层 NP, 响应 context state报文; 若比较结果为可用带宽小于或等于 预先设定比例, 则响应模块 503通知上层 CPU, 以使上层 CPU通知底层 NP, 禁止响应 context state报文。  The response module 503 is configured to determine, according to the comparison result of the comparison module 502, whether to respond to the context state message; if the comparison result is that the available bandwidth is greater than a preset ratio, the response module 503 notifies the upper CPU, so that the upper CPU notifies the underlying NP. And responding to the context state message; if the comparison result is that the available bandwidth is less than or equal to the preset ratio, the response module 503 notifies the upper layer CPU, so that the upper layer CPU notifies the underlying NP, and prohibits the response to the context state message.
上述上层 CPU可以通过将预设的标记位设置为允许响应 context state报文的状态 或禁止响应 context state报文的状态来通知底层 NP。  The upper layer CPU may notify the underlying NP by setting the preset flag bit to allow the status of the context state message or the state of the response context message.
在其他实施例中, 该压缩端装置 500还可以包括:  In other embodiments, the compression end device 500 may further include:
完整头报文模块 504, 用于当响应模块 503确定响应上下文状态报文时向解压端装 置发送 FULL HEAD报文;  The complete header packet module 504 is configured to send a FULL HEAD message to the decompression end device when the response module 503 determines to respond to the context status message;
流量控制模块 505, 用于当响应模块 503确定不响应上下文状态报文时控制流量, 调节报文的流量, 以使报文的流量适应所述可用带宽。进一步地, 流量控制模块 505可 以通过降低流量源端的流量速度来调节流量。  The flow control module 505 is configured to control the traffic when the response module 503 determines that the context state message is not to be responded, and adjust the traffic of the packet to adapt the traffic of the packet to the available bandwidth. Further, the flow control module 505 can regulate the flow by reducing the flow rate of the flow source.
本实施例可以在应用 CRTP压缩协议的窄带链路上发生流量拥塞时, 有效缓解原协 议算法导致的拥塞加剧的雪崩效应, 更充分的利用带宽, 提高传输效率。  In this embodiment, when traffic congestion occurs on a narrowband link to which the CRTP compression protocol is applied, the avalanche effect of congestion caused by the original protocol algorithm can be effectively alleviated, and the bandwidth can be fully utilized to improve transmission efficiency.
以上所述的具体实施例, 对本发明的目的、技术方案和有益效果进行了进一步详细 说明, 所应理解的是, 以上所述仅为本发明的具体实施例而已, 并不用于限定本发明的 保护范围, 凡在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应 包含在本发明的保护范围之内。  The above described specific embodiments of the present invention are further described in detail, and are intended to be illustrative of the embodiments of the present invention. The scope of the protection, any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权利要求 Rights request
1. 一种压缩实时协议的优化方法, 该方法包括:  1. An optimization method for compressing a real-time protocol, the method comprising:
检测链路可用带宽;  Detect the available bandwidth of the link;
若所述可用带宽小于或等于预先设定比例时, 通知上层中央处理器, 禁止响应上下 文状态报文。  If the available bandwidth is less than or equal to a preset ratio, the upper layer central processor is notified to prohibit the response to the context message.
2.根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 接收解压端发送的 上下文状态报文。  The method according to claim 1, wherein the method further comprises: receiving a context status message sent by the decompressing end.
3. 根据权利要求 1所述的方法, 其特征在于, 所述预先设定比例为 20%。  3. The method according to claim 1, wherein the predetermined ratio is 20%.
4. 根据权利要求 1所述的方法, 其特征在于, 所述方法进一步包括: 若所述可用 带宽大于所述预先设定比例时, 通知上层中央处理器, 允许响应上下文状态报文。  The method according to claim 1, wherein the method further comprises: if the available bandwidth is greater than the preset ratio, notifying the upper layer central processor to allow response to the context status message.
5. 根据权利要求 4所述的方法, 其特征在于, 所述方法进一步包括: 若所述可用 带宽大于预先设定比例时, 向解压端发送完整头报文。  The method according to claim 4, wherein the method further comprises: if the available bandwidth is greater than a preset ratio, sending a complete header message to the decompressing end.
6. 根据权利要求 1所述的方法, 其特征在于, 所述方法进一步包括: 当所述可用 带宽小于或等于所述预先设定比例时, 调节流量, 使流量适应所述可用带宽。  The method according to claim 1, wherein the method further comprises: adjusting the traffic to adapt the traffic to the available bandwidth when the available bandwidth is less than or equal to the predetermined ratio.
7. 根据权利要求 6所述的方法, 其特征在于, 所述调节流量包括: 降低流量源端 的流量速度。  7. The method according to claim 6, wherein the adjusting the flow rate comprises: reducing a flow rate of the flow source end.
8.根据权利要求 1所述的方法, 其他特征在于, 所述检测链路可用带宽为: 在第一 预定时刻 TO读取链路发送的第一报文字节数 ByteJO, 在第二预定时刻 T1读取链路发 送的第二报文字节数 Byte_Tl, 所述可用带宽为 (Byte_Tl-Byte_T0) / (T1-T0)。 The method according to claim 1, wherein the detection link available bandwidth is: reading the first packet byte number ByteJO sent by the link at the first predetermined time TO, at the second predetermined time T1 reads the second packet byte number Byte_T1 sent by the link, and the available bandwidth is (Byt e _Tl-B y te_T0) / (T1-T0).
9. 一种压缩端装置, 该装置包括:  9. A compression end device, the device comprising:
检测模块, 用于检测链路可用带宽;  a detecting module, configured to detect a bandwidth available to the link;
比较模块, 用于比较所述可用带宽是否小于或等于预先设定比例; 以及  a comparison module, configured to compare whether the available bandwidth is less than or equal to a preset ratio;
响应模块, 用于根据所述比较模块的比较结果, 确定是否响应上下文状态报文, 当 所述比较模块的比较结果为所述可用带宽小于或等于所述预先设定比例时,通知上层中 央处理器, 以使所述上层中央处理器通知底层网络处理器, 禁止响应上下文状态报文。  The response module is configured to determine, according to the comparison result of the comparison module, whether to respond to the context status message, and notify the upper layer central processing when the comparison result of the comparison module is that the available bandwidth is less than or equal to the preset ratio So that the upper layer central processor notifies the underlying network processor to disable response to the context status message.
10. 根据权利要求 9所述的装置, 其特征在于, 所述响应模块还用于当所述比较模 块的比较结果为所述可用带宽大于所述预先设定比例时, 通知所述上层中央处理器, 以 使所述上层中央处理器通知底层网络处理器, 响应上下文状态报文。  The device according to claim 9, wherein the response module is further configured to notify the upper layer central processing when the comparison result of the comparison module is that the available bandwidth is greater than the preset ratio So that the upper layer central processor notifies the underlying network processor to respond to the context status message.
11.根据权利要求 9所述的装置, 其特征在于, 所述装置还包括:  The device according to claim 9, wherein the device further comprises:
流量控制模块, 用于当响应模块确定禁止响应上下文状态报文时控制流量, 调节报 文的流量, 以使所述报文的流量适应所述可用带宽。 a flow control module, configured to control traffic when the response module determines that the response to the context status message is prohibited, and adjusts the report The traffic of the text is such that the traffic of the message adapts to the available bandwidth.
12.根据权利要求 10所述的装置, 其特征在于, 所述装置还包括:  The device according to claim 10, wherein the device further comprises:
完整头报文模块,用于响应模块确定响应上下文状态报文时向解压端发送完整头报 文。  The complete header packet module is configured to send a complete header message to the decompressed end when the response module determines to respond to the context status message.
PCT/CN2010/070900 2009-03-17 2010-03-07 Compressed real-time protocol optimization method and apparatus WO2010105527A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910128856.6 2009-03-17
CN 200910128856 CN101494526A (en) 2009-03-17 2009-03-17 Optimizing method and apparatus for compression real time protocol

Publications (1)

Publication Number Publication Date
WO2010105527A1 true WO2010105527A1 (en) 2010-09-23

Family

ID=40924950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070900 WO2010105527A1 (en) 2009-03-17 2010-03-07 Compressed real-time protocol optimization method and apparatus

Country Status (2)

Country Link
CN (1) CN101494526A (en)
WO (1) WO2010105527A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494526A (en) * 2009-03-17 2009-07-29 华为技术有限公司 Optimizing method and apparatus for compression real time protocol
CN110022364B (en) * 2019-04-04 2022-05-24 密信(北京)数字科技有限公司 File downloading method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159677A (en) * 2007-10-25 2008-04-09 华为技术有限公司 Packet transmission method and network node device
CN101179561A (en) * 2006-11-06 2008-05-14 华为技术有限公司 Method for user facility to attach to network and system thereof
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
WO2008088262A1 (en) * 2007-01-18 2008-07-24 Telefonaktiebolaget Lm Ericsson (Publ) Dividing rtcp bandwidth between compound and non- compound rtcp packets
CN101494526A (en) * 2009-03-17 2009-07-29 华为技术有限公司 Optimizing method and apparatus for compression real time protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179561A (en) * 2006-11-06 2008-05-14 华为技术有限公司 Method for user facility to attach to network and system thereof
WO2008088262A1 (en) * 2007-01-18 2008-07-24 Telefonaktiebolaget Lm Ericsson (Publ) Dividing rtcp bandwidth between compound and non- compound rtcp packets
CN101159677A (en) * 2007-10-25 2008-04-09 华为技术有限公司 Packet transmission method and network node device
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
CN101494526A (en) * 2009-03-17 2009-07-29 华为技术有限公司 Optimizing method and apparatus for compression real time protocol

Also Published As

Publication number Publication date
CN101494526A (en) 2009-07-29

Similar Documents

Publication Publication Date Title
WO2011000200A1 (en) Effective streaming media transmission method
WO2021042783A1 (en) Video image display method and apparatus, electronic device and storage medium
US20090154496A1 (en) Communication apparatus and program therefor, and data frame transmission control method
JP2014509483A (en) Mechanisms to improve the performance of transmission control protocols in wireless networks
WO2005117395A1 (en) Method for processing the data of the user surface
WO2012129922A1 (en) Packet handling method, forwarding device and system
WO2010121410A1 (en) Communication method and apparatus for header compression adopting arq mechanism
US11785120B2 (en) Data transmission method and related apparatus
JP5060572B2 (en) Data communication apparatus and method
TWM315862U (en) Wireless transmit/receive unit
US20190245948A1 (en) Data Transmission Method and Apparatus
CN101257456A (en) Method and apparatus for enhancing compressing message forwarding performance
WO2011143968A1 (en) Method and system for notifying congestion control information
WO2010105527A1 (en) Compressed real-time protocol optimization method and apparatus
JP4244159B2 (en) Reception device, communication system, and program
CN109587733A (en) Low-consumption wireless communication transmission method
Sidelnikov et al. Fragmentation/aggregation scheme for throughput enhancement of IEEE 802.11 n WLAN
WO2018145481A1 (en) Method and device for transmitting packet
WO2009087774A1 (en) Network card and information processor
WO2017143538A1 (en) Voice data transmission method and apparatus
CN107548105B (en) Data transmission confirmation method based on UDP (user Datagram protocol) and base station
WO2020154872A1 (en) Transmission control protocol acceleration method and apparatus
WO2014100973A1 (en) Video processing method, device and system
JP2009147569A (en) Frame transmission device and frame reception device
CN104639214A (en) Memory optimization implementation method and device

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: 10753094

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: 10753094

Country of ref document: EP

Kind code of ref document: A1