Movatterモバイル変換


[0]ホーム

URL:


CN106941697A - A kind of method and apparatus for sending, receiving timestamp information - Google Patents

A kind of method and apparatus for sending, receiving timestamp information
Download PDF

Info

Publication number
CN106941697A
CN106941697ACN201610005600.6ACN201610005600ACN106941697ACN 106941697 ACN106941697 ACN 106941697ACN 201610005600 ACN201610005600 ACN 201610005600ACN 106941697 ACN106941697 ACN 106941697A
Authority
CN
China
Prior art keywords
information
time stamp
same
timestamp
stamp information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201610005600.6A
Other languages
Chinese (zh)
Inventor
武见
贺保国
刘鑫
马德宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE CorpfiledCriticalZTE Corp
Priority to CN201610005600.6ApriorityCriticalpatent/CN106941697A/en
Priority to PCT/CN2016/110874prioritypatent/WO2017118273A1/en
Publication of CN106941697ApublicationCriticalpatent/CN106941697A/en
Withdrawnlegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种发送、接收时间戳信息的方法和装置,其中,该方法包括:在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送时间戳信息。本发明通过比较相邻两次时间戳信息是否相同,在相同的次数达到预设次数的情况下,采用零比特位发送下一个相同的时间戳信息,该方法采用零比特位发送时间戳,压缩时间更快,处理速度明显提升,解决了现有技术在压缩时,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低。

The invention discloses a method and device for sending and receiving time stamp information, wherein the method includes: when the time stamp information of the current data packet is the same as the time stamp information of the previous data packet, judging that the time stamp information is the same Whether the number of times reaches the preset number of times; when the number of times of the same time stamp information reaches the preset number of times, when receiving the same time stamp information as the time stamp information of the previous data packet again, use zero bits to send the time stamp information. In the present invention, by comparing whether the two adjacent time stamp information are the same, when the same number of times reaches the preset number of times, the next same time stamp information is sent using zero bits. This method uses zero bits to send time stamps, compressing The time is faster and the processing speed is significantly improved. It solves the problem that TS_STRIDE can only be 0 when compressing in the existing technology, and in the case of the same Timestamp in the two packets before and after, only the original value can be sent, and the compression efficiency is low.

Description

Translated fromChinese
一种发送、接收时间戳信息的方法和装置A method and device for sending and receiving timestamp information

技术领域technical field

本发明涉及移动通讯领域,特别是涉及一种发送、接收时间戳信息的方法和装置。The invention relates to the field of mobile communication, in particular to a method and device for sending and receiving time stamp information.

背景技术Background technique

为了充分利用带宽,引入了ROHC(RObust Header Compression,信头压缩协议),即对业务报文中的协议头进行压缩的技术,其中对于涉及语音视频业务的协议,有profile4可以压缩IP协议头,有profile2可以压缩IP/UDP协议头,profile1可以压缩IP/UDP/RTP协议头,对于RTP协议(Real-time Transport Protocol,实时传输协议)类型的报文profile1压缩效率最高。每种profile下有各自维护的IR、FO、SO压缩状态,压缩效率从低到高,每种profile下各自维护的压缩模式,不同的压缩模式根据不同回迁方式保证头压缩的鲁棒性,其中U模式周期回迁,R模式是根据终端的反馈进行回迁,O模式是既可以根据反馈进行回迁也可以周期回迁。In order to make full use of the bandwidth, ROHC (RObust Header Compression) is introduced, which is a technology for compressing the protocol headers in service packets. For protocols involving voice and video services, there is profile4 that can compress the IP protocol headers. Profile2 can compress the IP/UDP protocol header, profile1 can compress the IP/UDP/RTP protocol header, and profile1 has the highest compression efficiency for RTP protocol (Real-time Transport Protocol, real-time transport protocol) type packets. Each profile has its own maintained IR, FO, SO compression status, compression efficiency from low to high, each profile maintains its own compression mode, different compression modes ensure the robustness of header compression according to different recall methods, among which In U mode, periodic retrieval is performed, in R mode, retrieval is performed based on feedback from the terminal, and in O mode, retrieval can be performed based on feedback or periodic retrieval.

现有技术中,Profile1下对于Timestamp的主要压缩算法思想如下:两个连续的RTP包头的时间戳(Timestamp)域之间通常不是任意增加的,相反每次增加的是个定值(TS_STRIDE)的整数倍。例如:在语音流中,语音的采样频率通常为8kHz,而一帧数据中包含20ms的语音数据,通常一个语音帧放在一个RTP包中传输,这种情况下RTP包中Timestamp域的增长量通常为N*160(l60=8000*0.02),N为正整数,N的引入主要是因为语音通话过程中,有一段时间称为静默期存在,这段时间内没有语音存在,因此Timestamp的增长量为160的整数倍。In the prior art, the main idea of the compression algorithm for Timestamp under Profile1 is as follows: the time stamp (Timestamp) fields of two consecutive RTP headers are usually not increased arbitrarily, on the contrary, each increase is an integer with a fixed value (TS_STRIDE) times. For example: in the voice stream, the voice sampling frequency is usually 8kHz, and a frame of data contains 20ms of voice data, usually a voice frame is transmitted in one RTP packet, in this case the increase in the Timestamp field in the RTP packet Usually N*160 (l60=8000*0.02), N is a positive integer, the introduction of N is mainly because there is a period of silence during the voice call, during which there is no voice, so Timestamp increases The amount is an integer multiple of 160.

Timestamp的值可以通过如下公式表示:Timestamp=TS_SCALED*TS_STRIDE+TS_OFFSET;现有协议中要求TS_STRIDE不为0,因为计算TS_SCALED需要Timestamp除以TS_STRIDE,计算TS_OFFSET需要Timestamp模上TS_STRIDE。The value of Timestamp can be expressed by the following formula: Timestamp=TS_SCALED*TS_STRIDE+TS_OFFSET; the existing protocol requires that TS_STRIDE is not 0, because calculating TS_SCALED requires dividing Timestamp by TS_STRIDE, and calculating TS_OFFSET requires Timestamp modulo TS_STRIDE.

如果压缩端和解压端相互协商好TS_STRIDE和TS_OFFSET的值,则压缩端每次只需要发送TS_SCALED的值即可,而发送TS_SCALED的开销远小于发送TS,从而实现了压缩。If the compression end and the decompression end negotiate the values of TS_STRIDE and TS_OFFSET, the compression end only needs to send the value of TS_SCALED each time, and the overhead of sending TS_SCALED is much less than sending TS, thus achieving compression.

对于profile1下的语音视频业务,RTP协议包里的时间戳Timestamp,动态字段影响压缩效率,对于语音业务编码速率固定后Timestamp一般都是按固定步长增加,而对于视频业务来是Timestamp主要用于和语音统一,所以对于大视频来说经常会有一个画面很多相同的Timestamp报文,但是RTP报文里的SN还是加1增加的。而对于Timestamp的压缩方式,在RFC3095和RFC4815里没有明确给出当Timestamp不变时的处理方式,只要求TS_STRIDE必须非零,所以按照协议我们只能把这种方式按照跳变理解,跳变的时候就要求Timestamp必须原值发送,大大降低了Timestamp的压缩效率。For the voice and video services under profile1, the timestamp Timestamp in the RTP protocol packet, the dynamic field affects the compression efficiency. For the voice service, the Timestamp generally increases by a fixed step after the encoding rate is fixed. For the video service, the Timestamp is mainly used It is unified with voice, so for large videos, there are often many identical Timestamp packets in one screen, but the SN in the RTP packet is still increased by 1. As for the compression method of Timestamp, in RFC3095 and RFC4815, there is no clear way to deal with Timestamp when it does not change. It only requires that TS_STRIDE must be non-zero, so according to the agreement, we can only understand this method as jumping, jumping Timestamp is required to be sent in its original value, which greatly reduces the compression efficiency of Timestamp.

发明内容Contents of the invention

本发明提供一种发送、接收时间戳信息的方法和装置,用以解决现有技术在压缩时,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低的问题。The present invention provides a method and device for sending and receiving timestamp information, which is used to solve the problem that TS_STRIDE can only be 0 when compressing in the prior art. The problem of low efficiency.

为解决上述技术问题,一方面,本发明提供一种发送时间戳信息的方法,包括:在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。In order to solve the above technical problems, on the one hand, the present invention provides a method for sending timestamp information, including: when the timestamp information of the current data packet is the same as the timestamp information of the previous data packet, judging that the timestamp information is the same Whether the number of times reaches the preset number of times; in the case that the number of times of the same time stamp information reaches the preset number of times, when receiving the same time stamp information as the time stamp information of the previous data packet again, the zero bit is used to send the said Timestamp information.

进一步,判断时间戳信息相同的次数是否达到预设次数之前,还包括:判 断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。Further, before judging whether the number of times that the time stamp information is the same reaches the preset number of times, it also includes: judging whether the time stamp information of the current data packet is the same as the time stamp information of the previous data packet; When the time stamp information of the last data packet is the same, maintain the fixed value of the compression end to zero, and send the message of maintaining the fixed value of zero to the decompression end, so that the decompression end and the compression end have the same fixed value.

另一方面,本发明提供一种接收时间戳信息的方法,包括:判断解压得到相同的时间戳信息的次数是否达到预设解压次数;在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。On the other hand, the present invention provides a method for receiving timestamp information, including: judging whether the number of decompression to obtain the same timestamp information reaches the preset number of times of decompression; when the number of times of obtaining the same timestamp information reaches the preset decompression In the case of times, the maintenance time offset is equal to the timestamp information.

进一步,判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还包括:接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;解压端根据所述维护信息修改本地的定值。Further, before judging whether the number of decompression to obtain the same time stamp information reaches the preset number of decompression times, it also includes: receiving maintenance information from the compression end, wherein the maintenance information is information with a maintenance value of zero; the decompression end according to the Maintenance messages modify local settings.

另一方面,本发明还提供一种发送时间戳信息的装置,包括:第一判断模块,用于在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;发送模块,用于在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。On the other hand, the present invention also provides a device for sending timestamp information, including: a first judging module for judging the time when the timestamp information of the current data packet is the same as the timestamp information of the previous data packet. Whether the number of times of the same stamp information reaches the preset number of times; the sending module is used to receive the same time stamp information as the time stamp information of the previous data packet when the time stamp information of the same time stamp information reaches the preset number of times , using zero bits to send the timestamp information.

进一步,还包括:第二判断模块,用于判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;执行模块,用于在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过所述发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。Further, it also includes: a second judging module, used to judge whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; When the time stamp information of the last data packet is the same, maintain the fixed value of the compression end to zero, and send the message of maintaining the fixed value of zero to the decompression end through the sending module, so that the decompression end and the compression end have the same fixed value.

另一方面,本发明提供一种接收时间戳信息的装置,包括:第三判断模块,用于判断解压得到相同的时间戳信息的次数是否达到预设解压次数;维护模块,用于在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。On the other hand, the present invention provides a device for receiving time stamp information, including: a third judging module, used to judge whether the number of decompression to obtain the same time stamp information reaches the preset number of times of decompression; a maintenance module, used to obtain the same time stamp information When the number of times of the time stamp information reaches the preset number of decompression times, the maintenance time offset is equal to the time stamp information.

进一步,还包括:接收模块,用于接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;修改模块,用于根据所述维护信息修改本 地的定值。Further, it also includes: a receiving module, configured to receive maintenance information from the compressor, wherein the maintenance information is information that maintains a fixed value of zero; a modifying module, configured to modify a local fixed value according to the maintenance information.

又一方面,本发明提供一种压缩系统,包括:上述的发送时间戳信息的装置和上述的接收时间戳信息的装置。In yet another aspect, the present invention provides a compression system, including: the above-mentioned device for sending timestamp information and the above-mentioned device for receiving timestamp information.

本发明通过比较相邻两次时间戳信息是否相同,在相同的次数达到预设次数的情况下,采用零比特位发送下一个相同的时间戳信息,该方法采用零比特位发送时间戳,压缩时间更快,处理速度明显提升,解决了现有技术在压缩时,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低。In the present invention, by comparing whether the two adjacent time stamp information are the same, when the same number of times reaches the preset number of times, the next same time stamp information is sent using zero bits. This method uses zero bits to send time stamps, compressing The time is faster and the processing speed is significantly improved. It solves the problem that TS_STRIDE can only be 0 when compressing in the existing technology, and when the two packets of Timestamp before and after are the same, only the original value can be sent, and the compression efficiency is low.

附图说明Description of drawings

图1是本发明实施例中发送时间戳信息的方法的流程图;FIG. 1 is a flowchart of a method for sending timestamp information in an embodiment of the present invention;

图2是本发明实施例中接收时间戳信息的方法的流程图;FIG. 2 is a flowchart of a method for receiving timestamp information in an embodiment of the present invention;

图3是本发明实施例中发送时间戳信息的装置的结构示意图;FIG. 3 is a schematic structural diagram of a device for sending timestamp information in an embodiment of the present invention;

图4是本发明实施例中发送时间戳信息的装置的优选结构示意图;FIG. 4 is a schematic diagram of a preferred structure of a device for sending timestamp information in an embodiment of the present invention;

图5是本发明实施例中接收时间戳信息的装置的结构示意图;FIG. 5 is a schematic structural diagram of a device for receiving timestamp information in an embodiment of the present invention;

图6是本发明实施例中接收时间戳信息的装置的优选结构示意图;FIG. 6 is a schematic diagram of a preferred structure of a device for receiving timestamp information in an embodiment of the present invention;

图7是本发明优选实施例中实施方式一的压缩端工作流程图;Fig. 7 is a working flow chart of the compression end of Embodiment 1 in the preferred embodiment of the present invention;

图8是本发明优选实施例中实施方式二的压缩端工作流程图。Fig. 8 is a working flow chart of the compression end in the second embodiment of the preferred embodiment of the present invention.

具体实施方式detailed description

为了解决现有技术在压缩时,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低的问题,本发明提供了一种发送、接收时间戳信息的方法和装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem that TS_STRIDE can only be 0 when compressing in the prior art, and when the two Timestamps before and after are the same, only the original value can be sent and the compression efficiency is low, the present invention provides a sending and receiving timestamp The information method and device will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例提供一种发送时间戳信息的方法,该方法的流程如图1所示,包括步骤S102至S104:An embodiment of the present invention provides a method for sending timestamp information, the flow of the method is shown in Figure 1, including steps S102 to S104:

S102,在当前数据包的时间戳信息(Timestamp)与上一数据包的时间戳 信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;S102, in the case that the timestamp information (Timestamp) of the current packet is identical to the timestamp information of the previous packet, determine whether the number of times that the timestamp information is identical reaches the preset number of times;

S104,在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送时间戳信息。S104, when the number of times of the same time stamp information reaches the preset number of times, when the same time stamp information as the time stamp information of the previous data packet is received again, send the time stamp information with zero bits.

本发明实施例通过比较相邻两次时间戳信息是否相同,在相同的次数达到预设次数的情况下,采用零比特位发送下一个相同的时间戳信息,该方法采用零比特位发送时间戳,压缩时间更快,处理速度明显提升,解决了现有技术在压缩时,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低。In the embodiment of the present invention, by comparing whether the two adjacent time stamp information are the same, when the same number of times reaches the preset number of times, the next identical time stamp information is sent using zero bits. This method uses zero bits to send time stamps , the compression time is faster, and the processing speed is significantly improved. It solves the problem that when compressing in the prior art, TS_STRIDE can only be 0, and when the Timestamp of the two packets before and after is the same, only the original value can be sent, and the compression efficiency is low.

实现的过程中,在判断时间戳信息相同的次数是否达到预设次数之前,还可以预先判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;如果当前数据包的时间戳信息与上一数据包的时间戳信息相同,则维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。如果当前数据包的时间戳信息与上一数据包的时间戳信息不相同,则正常发送即可。In the process of implementation, before judging whether the number of times of the same timestamp information reaches the preset number of times, it can also be pre-judged whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; if the timestamp of the current data packet If the information is the same as the time stamp information of the previous data packet, then maintain the fixed value of the compression end to be zero, and send the message of maintaining the fixed value to zero to the decompression end, so that the decompression end and the compression end have the same fixed value. If the timestamp information of the current data packet is different from the timestamp information of the previous data packet, it can be sent normally.

本发明实施例还提供一种接收时间戳信息的方法,应用于解压端,其流程如图2所示,包括步骤S202至S204:The embodiment of the present invention also provides a method for receiving time stamp information, which is applied to the decompression terminal, and its process is shown in Figure 2, including steps S202 to S204:

S202,判断解压得到相同的时间戳信息的次数是否达到预设解压次数;S202, judging whether the number of times of decompressing and obtaining the same time stamp information reaches the preset number of times of decompression;

S204,在得到相同的时间戳信息的次数达到预设解压次数的情况下,维护时间偏移量等于时间戳信息。S204, when the number of times of obtaining the same time stamp information reaches the preset number of times of decompression, maintain the time offset equal to the time stamp information.

本发明实施例是对于解压端的操作,解压端的预设解压次数应与压缩端的收到相同时间戳信息的预设次数相同,这样才能够保证两侧收发进度一致。The embodiment of the present invention is for the operation of the decompression terminal. The preset decompression times of the decompression terminal should be the same as the preset times of receiving the same time stamp information of the compression terminal, so as to ensure that the sending and receiving progress of both sides is consistent.

在判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还可以接收来自压缩端的维护信息,其中,维护信息为压缩端发送的维护定值为零的信息;解压端根据维护信息修改本地的定值。Before judging whether the number of decompression to obtain the same time stamp information reaches the preset number of decompression times, maintenance information from the compression end can also be received, wherein the maintenance information is information sent by the compression end with a maintenance setting value of zero; the decompression end according to the maintenance information Modify local settings.

本发明实施例还提供一种发送时间戳信息的装置,该装置的结构示意如图3所示,包括:第一判断模块10,用于在当前数据包的时间戳信息与上一数据 包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;发送模块20,与第一判断模块10耦合,用于在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送时间戳信息。The embodiment of the present invention also provides a device for sending timestamp information. The structure of the device is shown in FIG. In the case of the same time stamp information, it is judged whether the number of times that the time stamp information is the same reaches the preset number of times; the sending module 20 is coupled with the first judgment module 10, and is used for when the times of the same time stamp information reaches the preset number of times, When receiving the same time stamp information as the time stamp information of the previous data packet again, the time stamp information is sent with zero bits.

上述装置还可以如图4所示,进一步包括:第二判断模块30,用于判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;执行模块40,与第二判断模块30和第一判断模块10耦合,用于在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。The above-mentioned device can also be shown in Figure 4, further comprising: a second judging module 30, used to judge whether the time stamp information of the current data packet is the same as the time stamp information of the previous data packet; 30 is coupled with the first judging module 10, and is used to maintain the fixed value of the compression end at zero when the time stamp information of the current data packet is the same as the time stamp information of the previous data packet, and send the maintenance data to the decompression end through the sending module. Information that is set to zero, so that the decompression end and the compression end have the same set value.

本发明实施例还提供一种接收时间戳信息的装置,与上述发送时间戳信息的装置交互,其结构示意如图5所示,包括:第三判断模块50,用于判断解压得到相同的时间戳信息的次数是否达到预设解压次数;维护模块60,与第三判断模块50耦合,用于在得到相同的时间戳信息的次数达到预设解压次数的情况下,维护时间偏移量等于时间戳信息。The embodiment of the present invention also provides a device for receiving time stamp information, which interacts with the above-mentioned device for sending time stamp information. Whether the number of stamp information reaches the preset number of times of decompression; the maintenance module 60 is coupled with the third judging module 50, and is used to maintain the time offset equal to the time when the number of times of obtaining the same time stamp information reaches the preset number of times of decompression Click on the information.

上述装置还可以如图6所示,进一步包括:接收模块70,用于接收来自压缩端的维护信息,其中,维护信息为维护定值为零的信息;修改模块80,与接收模块70和第三判断模块50耦合,用于根据维护信息修改本地的定值。The above device can also be shown in FIG. 6, further comprising: a receiving module 70, configured to receive maintenance information from the compression end, wherein the maintenance information is information whose maintenance value is zero; a modification module 80, which is connected with the receiving module 70 and the third The judging module 50 is coupled to modify the local fixed value according to the maintenance information.

本发明实施例还提供一种压缩系统,其包括上述的发送时间戳信息的装置和接收时间戳信息的装置。本领域技术人员根据上述记载,可以知晓如何实现该压缩系统,此处不再赘述。An embodiment of the present invention also provides a compression system, which includes the above-mentioned device for sending timestamp information and the device for receiving timestamp information. Those skilled in the art can know how to implement the compression system according to the above-mentioned records, and details will not be repeated here.

优选实施例preferred embodiment

本发明实施例针对profile1下头压缩模式进行的改进,目的是为了提高语音视频压缩效率。The embodiment of the present invention improves the compression mode of the header under profile1, and the purpose is to improve the audio and video compression efficiency.

当RTP报文连续出现相同Timestamp值的时候,为了提高压缩效率,也可通过相邻Timestamp值来维护此时的TS_STRIDE(定值)和TS_OFFSET(偏移量),但此时的TS_STRIDE=0,TS_OFFSET=Timestamp,而TS_SCALED (扩展值)我们默认为跟sequence number(SN)变化是一样的,因此连续报文的Timestamp一直不变,所以本发明实施例可以采用0bit发送Timestamp,从而大大提高了视频业务的压缩效率。When RTP packets have the same Timestamp value continuously, in order to improve the compression efficiency, the TS_STRIDE (fixed value) and TS_OFFSET (offset) at this time can also be maintained by adjacent Timestamp values, but at this time TS_STRIDE=0, TS_OFFSET=Timestamp, and TS_SCALED (extended value) is the same as the change of sequence number (SN) by default, so the Timestamp of continuous messages remains unchanged, so the embodiment of the present invention can use 0bit to send Timestamp, thereby greatly improving the video frequency. Business compression efficiency.

压缩端维护Timestamp、TS_STRIDE和TS_OFFSET对应关系,维护好TS_SCALED和sequence number的对应关系;当TS_STRIDE不为0的时候,我们通过公式“Timestamp=TS_SCALED*TS_STRIDE+TS_OFFSET”里的TS_SCALED和sequence number的关系以及TS_OFFSET对Timestamp进行压缩解压缩。当TS_STRIDE为0的时候我们用上面公式中的TS_OFFSET对Timestamp进行压缩解压缩。下面通过具体实例进行详细说明。The compression side maintains the corresponding relationship between Timestamp, TS_STRIDE and TS_OFFSET, and maintains the corresponding relationship between TS_SCALED and sequence number; when TS_STRIDE is not 0, we pass the relationship between TS_SCALED and sequence number in the formula "Timestamp=TS_SCALED*TS_STRIDE+TS_OFFSET" and TS_OFFSET compresses and decompresses Timestamp. When TS_STRIDE is 0, we use TS_OFFSET in the above formula to compress and decompress Timestamp. The following describes in detail through specific examples.

实施方式一Implementation Mode 1

本实施方式通过携带3类型的扩展头实现,可以适用于U/O模式,因为U/O模式下压缩端可以认为解压端自动维护好上下文里的TS_STRIDE和TS_OFFSET的关系,只通过发送原始Timestamp来维护TS_STRIDE和TS_OFFSET的关系。下面分别通过压缩端和解压端两个方面来具体描述流程,压缩端工作流程如图7所示,步骤如下:This embodiment is implemented by carrying 3 types of extension headers, which can be applied to U/O mode, because in U/O mode, the compression end can think that the decompression end automatically maintains the relationship between TS_STRIDE and TS_OFFSET in the context, and only sends the original Timestamp to Maintain the relationship between TS_STRIDE and TS_OFFSET. The following describes the process in detail through the two aspects of the compression end and the decompression end. The workflow of the compression end is shown in Figure 7, and the steps are as follows:

步骤1:step 1:

压缩端:来了一包Timestamp值与上一包Timestamp值相同;用3类型的扩展头携带Timestamp,同时维护压缩端NEW_TS_STRIDE=0。Compression side: The Timestamp value of the incoming packet is the same as that of the previous packet; use 3 types of extension headers to carry the Timestamp, and maintain NEW_TS_STRIDE=0 at the compression side.

解压端:收到也做同样的处理,解压缩3类型的扩展头携带的Timestamp,跟上次的值相同,同时维护解压缩端的NEW_TS_STRIDE=0。Decompression end: Do the same processing when receiving, decompress the Timestamp carried by the 3 types of extension headers, which is the same as the last value, and maintain NEW_TS_STRIDE=0 at the decompression end.

步骤2:Step 2:

压缩端:当连续来了3包(这个次数可根据经验值维护,是一个预设次数)相同Timestamp,维护TS_STRIDE=NEW_TS_STRIDE=0。Compression side: when 3 packets come in a row (this number can be maintained according to the experience value, it is a preset number) with the same Timestamp, maintain TS_STRIDE=NEW_TS_STRIDE=0.

解压端:当连续解压得到3包相同的Timestamp,维护TS_STRIDE=NEW_TS_STRIDE=0;并维护TS_OFFSET=Timestamp。Decompression end: when continuous decompression obtains 3 packets of the same Timestamp, maintain TS_STRIDE=NEW_TS_STRIDE=0; and maintain TS_OFFSET=Timestamp.

步骤3:Step 3:

压缩端:当收到第4包Timestamp值相同的时候,压缩端可以零bit位发送Timestamp。Compression side: When receiving the fourth packet with the same Timestamp value, the compression side can send Timestamp with zero bits.

解压端:当收到第4包零bit位压缩报文时,解压缩Timestamp=TS_OFFSET。Decompression end: When receiving the fourth packet of zero-bit compressed message, decompress Timestamp=TS_OFFSET.

实施方式二Implementation mode two

本实施方式通过状态回迁发初始化上下文的压缩包实现,可以适用于O/R模式,通过状态回迁,发送带有Timestamp和TS_STRIDE的初始化上下文的报文来维护TS_STRIDE和TS_OFFSET的关系。下面分别通过压缩端和解压端两个方面来具体描述流程,压缩端工作流程如图8所示,步骤如下:This implementation mode is implemented by sending the compressed package of the initialization context through state reversion, which can be applied to the O/R mode, and maintains the relationship between TS_STRIDE and TS_OFFSET by sending a message with the initialization context of Timestamp and TS_STRIDE through state reversion. The following describes the process in detail through the two aspects of the compression end and the decompression end. The workflow of the compression end is shown in Figure 8, and the steps are as follows:

步骤1:step 1:

压缩端:来了一包Timestamp值与上一包Timestamp值相同;用IR或者IR-DYN报文携带Timestamp和TS_STRIDE.这里Timestamp就是实际值,TS_STRIDE为0。Compression side: The Timestamp value of a packet is the same as that of the previous packet; use IR or IR-DYN packets to carry Timestamp and TS_STRIDE. Here, Timestamp is the actual value, and TS_STRIDE is 0.

解压端:收到也做同样的处理,解压缩IR或者IR-DYN报文携带Timestamp和TS_STRIDE,维护TS_STRIDE=0。Decompression end: do the same processing when receiving, decompress the IR or IR-DYN message carrying Timestamp and TS_STRIDE, and maintain TS_STRIDE=0.

步骤2:Step 2:

压缩端:O/R模式下,当收到解压端反馈后,维护TS_STRIDE=0。Compressor: In O/R mode, after receiving feedback from the decompressor, maintain TS_STRIDE=0.

解压端:O/R模式下,直接维护TS_STRIDE=0,TS_OFFSET=Timestamp。Decompression end: In O/R mode, directly maintain TS_STRIDE=0, TS_OFFSET=Timestamp.

步骤3:Step 3:

压缩端:当收到第4包Timestamp值相同的时候,压缩端可以零bit位发送Timestamp。Compression side: When receiving the fourth packet with the same Timestamp value, the compression side can send Timestamp with zero bits.

解压端:当收到第4包零bit位压缩报文时,解压缩Timestamp=TS_OFFSET。Decompression end: When receiving the fourth packet of zero-bit compressed message, decompress Timestamp=TS_OFFSET.

上述实施例与TS_STRIDE不为0的情况是有区别的,不为0的时候要求TS_SCALED和RTP报文里的sequence number变化量相同才能零bit位发送,然而,本发明实施例只要Timestamp值不变都可以零bit位发送,通过使用本 发明实施例,在鲁棒性头压缩功能使能后,尤其对于高清视频业务,出现连续视频包中用相同Timestamp值,可以大大提高大视频业务的鲁棒性头压缩的压缩效率。The above embodiment is different from the case where TS_STRIDE is not 0. When it is not 0, the sequence number in TS_SCALED and the RTP message must have the same amount of change to send zero bits. However, in the embodiment of the present invention, as long as the Timestamp value remains unchanged All can be sent with zero bits. By using the embodiment of the present invention, after the robust header compression function is enabled, especially for high-definition video services, the same Timestamp value is used in continuous video packets, which can greatly improve the robustness of large video services. Compression efficiency of sex header compression.

尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.

Claims (9)

Translated fromChinese
1.一种发送时间戳信息的方法,其特征在于,包括:1. A method for sending timestamp information, comprising:在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;In the case that the timestamp information of the current data packet is identical to the timestamp information of the previous data packet, it is judged whether the number of times that the timestamp information is identical reaches a preset number of times;在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。When the number of times that the time stamp information is identical reaches the preset number of times, when the time stamp information that is the same as the time stamp information of the previous data packet is received again, the time stamp information is sent with zero bits.2.如权利要求1所述的方法,其特征在于,判断时间戳信息相同的次数是否达到预设次数之前,还包括:2. The method according to claim 1, characterized in that before judging whether the number of times that the timestamp information is the same reaches the preset number of times, it also includes:判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;Determine whether the timestamp information of the current packet is the same as the timestamp information of the previous packet;在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。In the case where the timestamp information of the current data packet is identical to the timestamp information of the previous data packet, maintain the fixed value of the compression end to be zero, and send information to the decompression end to maintain the fixed value of zero, so that the decompression The setting value of the end and the compression end are the same.3.一种接收时间戳信息的方法,其特征在于,包括:3. A method for receiving timestamp information, comprising:判断解压得到相同的时间戳信息的次数是否达到预设解压次数;Determine whether the number of decompression to obtain the same timestamp information reaches the preset number of decompression times;在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。When the number of times of obtaining the same time stamp information reaches the preset number of times of decompression, the maintenance time offset is equal to the time stamp information.4.如权利要求3所述的方法,其特征在于,判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还包括:4. The method according to claim 3, wherein, before judging whether the number of decompression to obtain the same timestamp information reaches the preset number of times of decompression, it also includes:接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;receiving maintenance information from the compression end, wherein the maintenance information is information with a maintenance setting value of zero;解压端根据所述维护信息修改本地的定值。The decompression end modifies the local fixed value according to the maintenance information.5.一种发送时间戳信息的装置,其特征在于,包括:5. A device for sending timestamp information, comprising:第一判断模块,用于在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;The first judging module is used to determine whether the number of times that the time stamp information is the same reaches a preset number of times when the time stamp information of the current data packet is the same as the time stamp information of the previous data packet;发送模块,用于在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。The sending module is used to send the timestamp information with zero bits when the same timestamp information as the timestamp information of the previous data packet is received again when the number of times the same timestamp information reaches the preset number of times .6.如权利要求5所述的装置,其特征在于,还包括:6. The device of claim 5, further comprising:第二判断模块,用于判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;The second judging module is used to judge whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet;执行模块,用于在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过所述发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。An execution module, configured to maintain the fixed value of the compression end at zero when the time stamp information of the current data packet is the same as the time stamp information of the previous data packet, and send a maintenance message to the decompression end through the sending module. Information that is set to zero, so that the decompression end and the compression end have the same set value.7.一种接收时间戳信息的装置,其特征在于,包括:7. A device for receiving timestamp information, comprising:第三判断模块,用于判断解压得到相同的时间戳信息的次数是否达到预设解压次数;The third judging module is used to judge whether the number of decompression to obtain the same timestamp information reaches the preset number of decompression times;维护模块,用于在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。A maintenance module, configured to maintain a time offset equal to the time stamp information when the number of times of obtaining the same time stamp information reaches the preset number of times of decompression.8.如权利要求7所述的装置,其特征在于,还包括:8. The device of claim 7, further comprising:接收模块,用于接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;A receiving module, configured to receive maintenance information from the compression end, wherein the maintenance information is information with a maintenance setting value of zero;修改模块,用于根据所述维护信息修改本地的定值。A modifying module, configured to modify a local fixed value according to the maintenance information.9.一种压缩系统,其特征在于,包括:9. A compression system, characterized in that it comprises:权利要求5或6所述的发送时间戳信息的装置,和权利要求7或8所述的接收时间戳信息的装置。The device for sending time stamp information according to claim 5 or 6, and the device for receiving time stamp information according to claim 7 or 8.
CN201610005600.6A2016-01-042016-01-04A kind of method and apparatus for sending, receiving timestamp informationWithdrawnCN106941697A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201610005600.6ACN106941697A (en)2016-01-042016-01-04A kind of method and apparatus for sending, receiving timestamp information
PCT/CN2016/110874WO2017118273A1 (en)2016-01-042016-12-19Method and device for transmitting and receiving timestamp information

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610005600.6ACN106941697A (en)2016-01-042016-01-04A kind of method and apparatus for sending, receiving timestamp information

Publications (1)

Publication NumberPublication Date
CN106941697Atrue CN106941697A (en)2017-07-11

Family

ID=59273253

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610005600.6AWithdrawnCN106941697A (en)2016-01-042016-01-04A kind of method and apparatus for sending, receiving timestamp information

Country Status (2)

CountryLink
CN (1)CN106941697A (en)
WO (1)WO2017118273A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118055165A (en)*2024-04-162024-05-17上海移芯通信科技股份有限公司Timestamp information processing method, device, computer equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114189487B (en)*2021-11-092024-05-14广东宜通联云智能信息有限公司RTP-based data reordering method, system, equipment and medium
CN114040030B (en)*2021-11-182023-11-24深圳智慧林网络科技有限公司 A data compression method, device, equipment and medium based on preset rules

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1417957A (en)*2000-11-062003-05-14松下电器产业株式会社Header compressing method and device and program
CN101366261A (en)*2006-01-062009-02-11高通股份有限公司 Method and apparatus for enhancing robust header compression performance when silent suppression is encountered
CN101674315A (en)*2009-10-202010-03-17中兴通讯股份有限公司Method and device for compressing and decompressing timestamp
EP2490398A1 (en)*2000-03-092012-08-22Qualcomm IncorporatedA technique for compressing a header field in a data packet
CN103812846A (en)*2012-11-142014-05-21重庆重邮信科通信技术有限公司Header compression method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020191691A1 (en)*2001-05-102002-12-19Holborow Clive EricPayload header suppression including removal of fields that vary in known patterns
CN104394117A (en)*2014-03-102015-03-04贵阳朗玛信息技术股份有限公司RTP packet transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2490398A1 (en)*2000-03-092012-08-22Qualcomm IncorporatedA technique for compressing a header field in a data packet
CN1417957A (en)*2000-11-062003-05-14松下电器产业株式会社Header compressing method and device and program
CN101366261A (en)*2006-01-062009-02-11高通股份有限公司 Method and apparatus for enhancing robust header compression performance when silent suppression is encountered
CN101674315A (en)*2009-10-202010-03-17中兴通讯股份有限公司Method and device for compressing and decompressing timestamp
CN103812846A (en)*2012-11-142014-05-21重庆重邮信科通信技术有限公司Header compression method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118055165A (en)*2024-04-162024-05-17上海移芯通信科技股份有限公司Timestamp information processing method, device, computer equipment and storage medium

Also Published As

Publication numberPublication date
WO2017118273A1 (en)2017-07-13

Similar Documents

PublicationPublication DateTitle
KR100820630B1 (en) How data packets are handled
CN102484643B (en)Backward robustness header decompression will receiver
JP5134115B2 (en) Method and apparatus for improving ROHC performance during silent suppression
US8045585B2 (en)Method and apparatus providing media aggregation in a packet-switched network
CN100454920C (en) Extended header compression
US9392082B2 (en)Communication interface and method for robust header compression of data flows
US20070211724A1 (en)Communication station and method providing flexible compression of data packets
JP2004208292A (en) Control traffic compression method
CN103825869A (en)Compression and decompression method for Ethernet message header, and compression and decompression device thereof
CN100433841C (en)Robustness header compression/decompression method for MIPv6
JP4856251B2 (en) Header suppression in wireless communication networks
CN107172662A (en)A kind of communication means and device
Tömösközi et al.Performance evaluation and comparison of RObust Header Compression (ROHC) ROHCv1 and ROHCv2 for multimedia delivery
Abualhaj et al.Effective Voice Frame Pruning Method to Increase VoIP Call Capacity.
CN106941697A (en)A kind of method and apparatus for sending, receiving timestamp information
JP5307207B2 (en) Efficient encoding of out-of-order data packets in the network
WO2014029311A1 (en)Multimedia quality monitoring method and device
CN101119300A (en) Method and device for limiting bandwidth
Tömösközi et al.Performance evaluation of network header compression schemes for UDP, RTP and TCP
US10225310B2 (en)Transmission processing methods and apparatuses of data packet
CN103428181A (en)UDP message transmission optimizing method applied to IP over DVB
CN102726024B (en) RTP media data receiving and sending method and device, processing system
US20060133372A1 (en)Apparatus and method for multiplexing packet in mobile communication network
CN101415003B (en)Method, apparatus and communication system for transmission of compression message
US20150063103A1 (en)Bandwidth-dependent compressor for robust header compression and method of use thereof

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
WW01Invention patent application withdrawn after publication

Application publication date:20170711

WW01Invention patent application withdrawn after publication

[8]ページ先頭

©2009-2025 Movatter.jp