WO2017118273A1 - 发送、接收时间戳信息的方法和装置 - Google Patents

发送、接收时间戳信息的方法和装置 Download PDF

Info

Publication number
WO2017118273A1
WO2017118273A1 PCT/CN2016/110874 CN2016110874W WO2017118273A1 WO 2017118273 A1 WO2017118273 A1 WO 2017118273A1 CN 2016110874 W CN2016110874 W CN 2016110874W WO 2017118273 A1 WO2017118273 A1 WO 2017118273A1
Authority
WO
WIPO (PCT)
Prior art keywords
timestamp information
information
same
timestamp
data packet
Prior art date
Application number
PCT/CN2016/110874
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 WO2017118273A1 publication Critical patent/WO2017118273A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Definitions

  • the present disclosure relates to the field of mobile communications, and in particular, to a method and apparatus for transmitting and receiving timestamp information.
  • ROHC RObust Header Compression
  • profile4 can compress the IP protocol header
  • profile2 can compress the IP/UDP protocol header
  • profile1 can compress the IP/UDP/RTP protocol header
  • RTP protocol Real-time Transport Protocol, real-time transmission
  • the protocol profile 1 of the protocol type has the highest compression efficiency.
  • Each profile has its own IR, FO, and SO compression states.
  • the compression efficiency is from low to high.
  • the compression mode maintained by each profile is different.
  • the different compression modes ensure the robustness of the header compression according to different relocation modes.
  • the U mode cycle is relocated, and the R mode is based on the feedback of the terminal.
  • the O mode can be moved back according to feedback or periodically.
  • the main compression algorithm for Timestamp under Profile1 is as follows: the timestamp (Timestamp) fields of two consecutive RTP headers are usually not arbitrarily increased, but each time an increment is an integer multiple of a fixed value (TS_STRIDE). .
  • the sampling frequency of speech is usually 8 kHz, and one frame of data contains 20 ms of speech data.
  • one speech frame is transmitted in an RTP packet.
  • the amount of Timestamp domain in the RTP packet increases.
  • N is a positive integer.
  • the introduction of N is mainly because during the voice call, there is a period of time called the silent period. There is no voice during this time, so the growth of Timestamp the amount Is an integer multiple of 160.
  • the compression end and the decompression end mutually negotiate the values of TS_STRIDE and TS_OFFSET, the compression end only needs to send the value of TS_SCALED at a time, and the overhead of transmitting the TS_SCALED is much smaller than that of the transmission TS, thereby realizing compression.
  • Timestamp in the RTP protocol packet affects the compression efficiency.
  • the timestamp is generally increased by a fixed step size for the voice service coding rate fixed, and the Timestamp is mainly used for the video service. It is unified with voice, so for large videos, there will always be a lot of the same Timestamp messages, but the SN in the RTP message is increased by one.
  • the processing method when Timestamp is unchanged is not explicitly given in RFC3095 and RFC4815. Only TS_STRIDE must be non-zero. Therefore, according to the protocol, we can only understand this method according to the transition, and jump. Timestamp is required to send the original value, which greatly reduces the compression efficiency of Timestamp.
  • the present disclosure provides a method and apparatus for transmitting and receiving timestamp information, which can improve compression efficiency.
  • the disclosure provides a method for sending timestamp information, including: determining whether the timestamp information is the same as the preset timestamp information when the timestamp information of the current data packet is the same as the timestamp information of the previous data packet. Number of times; when the same number of times of timestamp information reaches the preset number of times, when the same timestamp information as the timestamp information of the previous data packet is received again, the zero bit is transmitted.
  • the timestamp information is the same as the preset timestamp information when the timestamp information of the current data packet is the same as the timestamp information of the previous data packet.
  • the method before determining whether the timestamp information is the same number of times, the method further includes: determining whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; When the timestamp information is the same as the timestamp information of the previous data packet, the fixed value of the maintenance compression end is zero, and the information that the maintenance fixed value is zero is sent to the decompression end, so that the decompression end and the compression end are fixed. the same.
  • the present disclosure provides a method for receiving timestamp information, including: determining whether the number of times the decompression obtains the same timestamp information reaches a preset number of decompressions; and the number of times the same timestamp information is obtained reaches the preset decompression In the case of the number of times, the maintenance time offset is equal to the timestamp information.
  • the method further includes: receiving maintenance information from the compression end, wherein the maintenance information is information for maintaining a fixed value; the decompression end is according to The maintenance information modifies the local settings.
  • the present disclosure further provides an apparatus for sending timestamp information, including: a first determining module, configured to determine a time when a timestamp information of a current data packet is the same as a timestamp information of a previous data packet. Whether the number of times the stamp information is the same as the preset number of times; the sending module is set to, when the timestamp information is the same number of times as the preset number of times, when the same timestamp information as the timestamp information of the previous data packet is received again The timestamp information is transmitted with zero bits.
  • the device for sending the timestamp information further includes: a second determining module, configured to determine whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; and the executing module is configured to be in the If the timestamp information of the current data packet is the same as the timestamp information of the previous data packet, the fixed value of the maintenance compression end is zero, and the information that the maintenance fixed value is zero is sent to the decompression end by the sending module. Make the decompression end and the compression end the same value.
  • the present disclosure provides an apparatus for receiving timestamp information, including: a third determining module, Set to determine whether the number of times the decompression obtains the same timestamp information reaches the preset number of decompressions; the maintenance module sets the maintenance time offset to be equal to the number of times the same timestamp information is obtained. Timestamp information.
  • the apparatus for receiving the timestamp information further includes: a receiving module, configured to receive maintenance information from the compression end, wherein the maintenance information is information that maintains a fixed value; the modifying module is configured to be configured according to the Maintenance information modifies local settings.
  • the present disclosure provides a compression system including: the apparatus for transmitting timestamp information and the apparatus for receiving timestamp information.
  • the present disclosure also provides a non-transitory storage medium storing computer executable instructions arranged to perform the above-described method of transmitting timestamp information and/or a method of receiving timestamp information.
  • the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the above method of transmitting time stamp information and/or a method of receiving time stamp information.
  • the present disclosure also provides an electronic device comprising at least one processor and a memory communicatively coupled to the at least one processor, the memory for storing instructions executable by the at least one processor, the instructions being The at least one processor, when executed, causes the at least one processor to perform the method of transmitting timestamp information and/or the method of receiving timestamp information.
  • the present disclosure provides a compression system including the above-described electronic device, at least one processor of the electronic device performing the above-described method of transmitting timestamp information and a method of receiving timestamp information.
  • the method and apparatus for transmitting and receiving timestamp information of the present disclosure use a zero bit to transmit a timestamp, which has a fast compression time and a fast processing speed.
  • FIG. 1 is a flowchart of a method of transmitting timestamp information in an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method of receiving timestamp information in an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of an apparatus for transmitting timestamp information in an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an apparatus for transmitting timestamp information according to another embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an apparatus for receiving timestamp information in an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an apparatus for receiving timestamp information according to another embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a workflow of a compression end in an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a working process of a compression end in another embodiment of the present disclosure.
  • FIG. 9 is a hardware structural diagram of an electronic device according to an embodiment of the present disclosure.
  • TS_STRIDE can only be 0, and in the case of the same two packets of Timestamp, the original value can only be sent, and the compression efficiency is low.
  • An embodiment of the present disclosure provides a method for sending timestamp information, where the method, as shown in FIG. 1, includes steps S102 to S104:
  • Timestamp information (Timestamp) of the current data packet is the same as the timestamp information of the previous data packet, determine whether the timestamp information is the same number of times as the preset number of times;
  • Embodiments of the present disclosure achieve the same number of times by comparing whether two adjacent timestamp information are the same
  • the next timestamp information is transmitted using zero bits.
  • the method uses zero bits to transmit the timestamp, the compression time is faster, and the processing speed is significantly improved.
  • the timestamp information of the current data packet before determining whether the timestamp information has reached the preset number of times, it is also possible to pre-determine whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; if the current data packet has a timestamp The information is the same as the timestamp information of the previous data packet, and the fixed value of the maintenance compression terminal is zero, and the information that the maintenance fixed value is zero is sent to the decompression end, so that the decompression end and the compression end have the same value. If the timestamp information of the current data packet is different from the timestamp information of the previous data packet, the normal transmission may be performed.
  • the embodiment of the present disclosure further provides a method for receiving timestamp information, which is applied to a decompression end. As shown in FIG. 2, the method includes steps S202 to S204:
  • the maintenance time offset is equal to the timestamp information.
  • the embodiment of the present disclosure is for the operation of the decompression end, and the preset decompression frequency of the decompression end should be the same as the preset number of times of receiving the same time stamp information by the compression end, so as to ensure the consistency of the transmission and reception progress on both sides.
  • the maintenance information may be received from the compression end before the number of times the decompression obtains the same timestamp information reaches the preset decompression frequency, wherein the maintenance information is information that the maintenance end sends zero value; the decompression end is based on the maintenance information. Modify the local settings.
  • An embodiment of the present disclosure further provides an apparatus for transmitting timestamp information.
  • the apparatus includes: a first determining module 10 configured to set timestamp information of a current data packet and timestamp information of a previous data packet. In the same case, it is determined whether the timestamp information is the same number of times as the preset number of times; and the sending module 20 is coupled with the first determining module 10, and is set to be in the case that the timestamp information is the same number of times to reach the preset number of times, When receiving the same timestamp information as the timestamp information of the previous packet, The zero bit sends the timestamp information.
  • the apparatus further includes: a second determining module 30, configured to determine whether the timestamp information of the current data packet is the same as the timestamp information of the previous data packet; and the executing module 40, and the second The determining module 30 is coupled to the first determining module 10, and is configured to maintain the fixed value of the compressed end to be zero when the timestamp information of the current data packet is the same as the timestamp information of the previous data packet, and send the demodulating end to the decompressing end through the sending module. Send a message with a fixed value of zero so that the decompressed end is the same as the fixed end.
  • Embodiments of the present disclosure also provide an apparatus for receiving timestamp information, interacting with the apparatus for transmitting timestamp information described above.
  • the device includes: a third determining module 50, configured to determine whether the number of times the decompression obtains the same timestamp information reaches a preset number of times of decompression; and the maintenance module 60 is coupled to the third determining module 50, and is configured to be When the number of times of obtaining the same timestamp information reaches the preset number of decompressions, the maintenance time offset is equal to the timestamp information.
  • the apparatus further includes: a receiving module 70 configured to receive maintenance information from the compression end, wherein the maintenance information is information for maintaining a fixed value; the modifying module 80, and the receiving module 70
  • the third determining module 50 is coupled to be configured to modify the local fixed value according to the maintenance information.
  • Embodiments of the present disclosure also provide a compression system including the above-described apparatus for transmitting timestamp information and means for receiving timestamp information.
  • the profile1 compression mode is improved to improve voice and video compression efficiency.
  • TS_STRIDE set value
  • TS_OFFSET extended value
  • the compression side maintains the correspondence between Timestamp, TS_STRIDE and TS_OFFSET, and maintains the correspondence between TS_SCALED and sequence number.
  • TS_STRIDE When TS_STRIDE is 0, we compress and decompress Timestamp with TS_OFFSET in the above formula. The following is a detailed description by way of specific examples.
  • This embodiment is implemented by carrying a type 3 extension header, which can be applied to the 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, only by sending the original Timestamp. Maintain the relationship between TS_STRIDE and TS_OFFSET.
  • the following describes the process through the compression side and the decompression end respectively.
  • the working process of the compression end is shown in Figure 7. The steps are as follows:
  • step 1
  • the Compressor When the Timestamp value of the 4th packet is received, the Compressor can send Timestamp with zero bits.
  • the compression packet implementation of the initialization context is sent by the state back-up, and can be applied to the O/R mode.
  • the message with the initialization context of Timestamp and TS_STRIDE is sent by state transition to maintain the relationship between TS_STRIDE and TS_OFFSET.
  • the compression end workflow is shown in Figure 8. The steps are as follows:
  • step 1
  • a packet of Timestamp value is the same as the previous packet Timestamp value; the Timestamp and TS_STRIDE are carried by IR or IR-DYN message.
  • Timestamp is the actual value, TS_STRIDE is 0.
  • the Compressor When the Timestamp value of the 4th packet is received, the Compressor can send Timestamp with zero bits.
  • the above embodiment is different from the case where TS_STRIDE is not 0, and is not required when it is 0.
  • the sequence number of the TS_SCALED and the RTP message varies by zero to transmit zero bit.
  • the embodiment of the present disclosure can transmit zero bit as long as the Timestamp value is unchanged, and the robust header compression function is used by using the embodiment of the present disclosure. After being enabled, especially for high-definition video services, the same Timestamp value in continuous video packets can greatly improve the compression efficiency of robust header compression for large video services.
  • the present disclosure also provides a non-transitory storage medium storing computer executable instructions arranged to perform the above-described method of transmitting timestamp information and/or a method of receiving timestamp information.
  • the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the above method of transmitting time stamp information and/or a method of receiving time stamp information.
  • FIG. 9 is a hardware structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device includes at least one processor 91 and a memory 93 communicatively coupled to the at least one processor 91.
  • the memory 93 is configured to store At least one processor 91 executes instructions that, when executed by the at least one processor 91, cause the at least one processor 91 to perform the method of transmitting timestamp information and/or the method of receiving timestamp information as described above.
  • the logic instructions in the memory 93 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in various embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM). RandomAccess Memory), a variety of media that can store program code, such as a disk or a disc, or a transient storage medium.
  • the present disclosure provides a compression system including the above-described electronic device, at least one processor of the electronic device performing the above-described method of transmitting timestamp information and a method of receiving timestamp information.
  • the method and apparatus for transmitting and receiving timestamp information of the present disclosure use a zero bit to transmit a timestamp, which has a fast compression time and a fast processing speed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本公开公开了一种发送、接收时间戳信息的方法和装置,其中,发送时间戳信息的方法包括:在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送时间戳信息。所述接收时间戳信息的方法包括:判断解压得到相同的时间戳信息的次数是否达到预设解压次数;以及在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于相邻时间戳差值0。

Description

发送、接收时间戳信息的方法和装置 技术领域
本公开涉及移动通讯领域,特别是涉及一种发送、接收时间戳信息的方法和装置。
背景技术
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模式是既可以根据反馈进行回迁也可以周期回迁。
相关技术中,Profile1下对于Timestamp的主要压缩算法思想如下:两个连续的RTP包头的时间戳(Timestamp)域之间通常不是任意增加的,相反每次增加的是个定值(TS_STRIDE)的整数倍。例如:在语音流中,语音的采样频率通常为8kHz,而一帧数据中包含20ms的语音数据,通常一个语音帧放在一个RTP包中传输,这种情况下RTP包中Timestamp域的增长量通常为N*160(160=8000*0.02),N为正整数,N的引入主要是因为语音通话过程中,有一段时间称为静默期存在,这段时间内没有语音存在,因此Timestamp的增长量 为160的整数倍。
Timestamp的值可以通过如下公式表示:Timestamp=TS_SCALED*TS_STRIDE+TS_OFFSET;现有协议中要求TS_STRIDE不为0,因为计算TS_SCALED需要Timestamp除以TS_STRIDE,计算TS_OFFSET需要Timestamp模上TS_STRIDE。
如果压缩端和解压端相互协商好TS_STRIDE和TS_OFFSET的值,则压缩端每次只需要发送TS_SCALED的值即可,而发送TS_SCALED的开销远小于发送TS,从而实现了压缩。
对于profile1下的语音视频业务,RTP协议包里的时间戳Timestamp,动态字段影响压缩效率,对于语音业务编码速率固定后Timestamp一般都是按固定步长增加,而对于视频业务来是Timestamp主要用于和语音统一,所以对于大视频来说经常会有一个画面很多相同的Timestamp报文,但是RTP报文里的SN还是加1增加的。而对于Timestamp的压缩方式,在RFC3095和RFC4815里没有明确给出当Timestamp不变时的处理方式,只要求TS_STRIDE必须非零,所以按照协议我们只能把这种方式按照跳变理解,跳变的时候就要求Timestamp必须原值发送,大大降低了Timestamp的压缩效率。
发明内容
本公开提供一种发送、接收时间戳信息的方法和装置,可以提高压缩效率。
一方面,本公开提供一种发送时间戳信息的方法,包括:在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送 所述时间戳信息。
可选地,判断时间戳信息相同的次数是否达到预设次数之前,所述方法还包括:判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。
另一方面,本公开提供一种接收时间戳信息的方法,包括:判断解压得到相同的时间戳信息的次数是否达到预设解压次数;在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。
可选地,判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还包括:接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;解压端根据所述维护信息修改本地的定值。
另一方面,本公开还提供一种发送时间戳信息的装置,包括:第一判断模块,设置为在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;发送模块,设置为在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。
可选地,所述发送时间戳信息的装置还包括:第二判断模块,设置为判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;执行模块,设置为在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过所述发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。
另一方面,本公开提供一种接收时间戳信息的装置,包括:第三判断模块, 设置为判断解压得到相同的时间戳信息的次数是否达到预设解压次数;维护模块,设置为在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于时间戳信息。
可选地,所述接收时间戳信息的装置还包括:接收模块,设置为接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;修改模块,设置为根据所述维护信息修改本地的定值。
又一方面,本公开提供一种压缩系统,包括:上述的发送时间戳信息的装置和接收时间戳信息的装置。
本公开还提供了一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
本公开还提供了一种电子设备,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
本公开提供一种压缩系统,包括上述的电子设备,所述电子设备的至少一个处理器执行上述的发送时间戳信息的方法和接收时间戳信息的方法。
本公开的发送、接收时间戳信息的方法和装置采用零比特位发送时间戳,压缩时间快,处理速度快。
附图说明
图1是本公开实施例中发送时间戳信息的方法的流程图;
图2是本公开实施例中接收时间戳信息的方法的流程图;
图3是本公开实施例中发送时间戳信息的装置的结构示意图;
图4是本公开另一实施例中发送时间戳信息的装置的结构示意图;
图5是本公开实施例中接收时间戳信息的装置的结构示意图;
图6是本公开另一实施例中接收时间戳信息的装置的结构示意图;
图7是本公开的一个实施例中的压缩端工作流程示意图;
图8是本公开的另一个实施例中的压缩端工作流程示意图;
图9是本公开实施例提供的电子设备的硬件结构图。
具体实施方式
相关技术中,TS_STRIDE只能为0,且在前后两包Timestamp一样的情况下,只能原值发送,压缩效率较低。下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,在不冲突的情况下,以下实施例和实施例中的特征可以相互组合。
本公开实施例提供一种发送时间戳信息的方法,该方法,如图1所示,包括步骤S102至S104:
S102,在当前数据包的时间戳信息(Timestamp)与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;
S104,在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送时间戳信息。
本公开实施例通过比较相邻两次时间戳信息是否相同,在相同的次数达到 预设次数的情况下,采用零比特位发送下一个相同的时间戳信息,该方法采用零比特位发送时间戳,压缩时间更快,处理速度明显提升。
实现的过程中,在判断时间戳信息相同的次数是否达到预设次数之前,还可以预先判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;如果当前数据包的时间戳信息与上一数据包的时间戳信息相同,则维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。如果当前数据包的时间戳信息与上一数据包的时间戳信息不相同,则正常发送即可。
本公开实施例还提供一种接收时间戳信息的方法,应用于解压端,如图2所示,所述方法包括步骤S202至S204:
S202,判断解压得到相同的时间戳信息的次数是否达到预设解压次数;
S204,在得到相同的时间戳信息的次数达到预设解压次数的情况下,维护时间偏移量等于时间戳信息。
本公开实施例是对于解压端的操作,解压端的预设解压次数应与压缩端的收到相同时间戳信息的预设次数相同,这样才能够保证两侧收发进度一致。
在判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还可以接收来自压缩端的维护信息,其中,维护信息为压缩端发送的维护定值为零的信息;解压端根据维护信息修改本地的定值。
本公开实施例还提供一种发送时间戳信息的装置,如图3所示,该装置包括:第一判断模块10,设置为在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;以及发送模块20,与第一判断模块10耦合,设置为在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用 零比特位发送时间戳信息。
可选地,如图4所示,该装置还包括:第二判断模块30,设置为判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;执行模块40,与第二判断模块30和第一判断模块10耦合,设置为在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。
本公开实施例还提供一种接收时间戳信息的装置,与上述发送时间戳信息的装置交互。如图5所示,该装置包括:第三判断模块50,设置为判断解压得到相同的时间戳信息的次数是否达到预设解压次数;维护模块60,与第三判断模块50耦合,设置为在得到相同的时间戳信息的次数达到预设解压次数的情况下,维护时间偏移量等于时间戳信息。
可选地,如图6所示,该装置还包括:接收模块70,设置为接收来自压缩端的维护信息,其中,维护信息为维护定值为零的信息;修改模块80,与接收模块70和第三判断模块50耦合,设置为根据维护信息修改本地的定值。
本公开实施例还提供一种压缩系统,其包括上述的发送时间戳信息的装置和接收时间戳信息的装置。在一个实施例中,根据本公开的发送时间戳信息的方法和接收时间戳信息的方法,对profile1下头压缩模式进行的改进,以提高语音视频压缩效率。
当RTP报文连续出现相同Timestamp值的时候,为了提高压缩效率,也可通过相邻Timestamp值来维护此时的TS_STRIDE(定值)和TS_OFFSET(偏移量),但此时的TS_STRIDE=0,TS_OFFSET=Timestamp,而TS_SCALED(扩展值)我们默认为跟sequence number(SN)变化是一样的,因此连续报文的Timestamp一直不变,所以本公开实施例可以采用0bit发送Timestamp,从而大大提高了视 频业务的压缩效率。
压缩端维护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进行压缩解压缩。下面通过具体实例进行详细说明。
实施方式一
本实施方式通过携带3类型的扩展头实现,可以适用于U/O模式,因为U/O模式下压缩端可以认为解压端自动维护好上下文里的TS_STRIDE和TS_OFFSET的关系,只通过发送原始Timestamp来维护TS_STRIDE和TS_OFFSET的关系。下面分别通过压缩端和解压端两个方面来具体描述流程,压缩端工作流程如图7所示,步骤如下:
步骤1:
压缩端:来了一包Timestamp值与上一包Timestamp值相同;用3类型的扩展头携带Timestamp,同时维护压缩端NEW_TS_STRIDE=0。
解压端:收到也做同样的处理,解压缩3类型的扩展头携带的Timestamp,跟上次的值相同,同时维护解压缩端的NEW_TS_STRIDE=0。
步骤2:
压缩端:当连续来了3包(这个次数可根据经验值维护,是一个预设次数)相同Timestamp,维护TS_STRIDE=NEW_TS_STRIDE=0。
解压端:当连续解压得到3包相同的Timestamp,维护TS_STRIDE=NEW_TS_STRIDE=0;并维护TS_OFFSET=Timestamp。
步骤3:
压缩端:当收到第4包Timestamp值相同的时候,压缩端可以零bit位发送Timestamp。
解压端:当收到第4包零bit位压缩报文时,解压缩Timestamp=TS_OFFSET。
实施方式二
本实施方式通过状态回迁发初始化上下文的压缩包实现,可以适用于O/R模式,通过状态回迁,发送带有Timestamp和TS_STRIDE的初始化上下文的报文来维护TS_STRIDE和TS_OFFSET的关系。下面分别通过压缩端和解压端两个方面来具体描述流程,压缩端工作流程如图8所示,步骤如下:
步骤1:
压缩端:来了一包Timestamp值与上一包Timestamp值相同;用IR或者IR-DYN报文携带Timestamp和TS_STRIDE.这里Timestamp就是实际值,TS_STRIDE为0。
解压端:收到也做同样的处理,解压缩IR或者IR-DYN报文携带Timestamp和TS_STRIDE,维护TS_STRIDE=0。
步骤2:
压缩端:O/R模式下,当收到解压端反馈后,维护TS_STRIDE=0。
解压端:O/R模式下,直接维护TS_STRIDE=0,TS_OFFSET=Timestamp。
步骤3:
压缩端:当收到第4包Timestamp值相同的时候,压缩端可以零bit位发送Timestamp。
解压端:当收到第4包零bit位压缩报文时,解压缩Timestamp=TS_OFFSET。
上述实施例与TS_STRIDE不为0的情况是有区别的,不为0的时候要求 TS_SCALED和RTP报文里的sequence number变化量相同才能零bit位发送,然而,本公开实施例只要Timestamp值不变都可以零bit位发送,通过使用本公开实施例,在鲁棒性头压缩功能使能后,尤其对于高清视频业务,出现连续视频包中用相同Timestamp值,可以大大提高大视频业务的鲁棒性头压缩的压缩效率。
本公开还提供了一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
本公开还提供了一种电子设备。图9是本公开实施例提供的电子设备的硬件结构图,电子设备包括至少一个处理器91和与所述至少一个处理器91通信连接的存储器93,所述存储器93用于存储可被所述至少一个处理器91执行的指令,所述指令被所述至少一个处理器91执行时,使所述至少一个处理器91执行上述的发送时间戳信息的方法和/或接收时间戳信息的方法。
此外,上述的存储器93中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM, RandomAccess Memory)、磁碟或者光盘等各种可以存储程序代码的介质,也可以是暂态存储介质。
本公开提供一种压缩系统,包括上述的电子设备,所述电子设备的至少一个处理器执行上述的发送时间戳信息的方法和接收时间戳信息的方法。
工业实用性
本公开的发送、接收时间戳信息的方法和装置采用零比特位发送时间戳,压缩时间快,处理速度快。

Claims (12)

  1. 一种发送时间戳信息的方法,包括:
    在当前数据包的时间戳信息与上一数据包的时间戳信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;以及
    在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。
  2. 如权利要求1所述的方法,其中,判断时间戳信息相同的次数是否达到预设次数之前,还包括:
    判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;
    在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同,其中所述定值为当前数据包和上一数据包的时间戳差值。
  3. 一种接收时间戳信息的方法,包括:
    判断解压得到相同的时间戳信息的次数是否达到预设解压次数;以及
    在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于相邻时间戳差值0。
  4. 如权利要求3所述的方法,其中,判断解压得到相同的时间戳信息的次数是否达到预设解压次数之前,还包括:
    接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;
    解压端根据所述维护信息修改本地的定值。
  5. 一种发送时间戳信息的装置,包括:
    第一判断模块,设置为在当前数据包的时间戳信息与上一数据包的时间戳 信息相同的情况下,判断时间戳信息相同的次数是否达到预设次数;以及
    发送模块,设置为在时间戳信息相同的次数达到预设次数的情况下,在再次收到与上一数据包的时间戳信息相同的时间戳信息时,采用零比特位发送所述时间戳信息。
  6. 如权利要求5所述的装置,还包括:
    第二判断模块,设置为判断当前数据包的时间戳信息是否与上一数据包的时间戳信息相同;
    执行模块,设置为在所述当前数据包的时间戳信息与所述上一数据包的时间戳信息相同的情况下,维护压缩端的定值为零,并通过所述发送模块向解压端发送维护定值为零的信息,以使解压端与压缩端的定值相同。
  7. 一种接收时间戳信息的装置,包括:
    第三判断模块,设置为判断解压得到相同的时间戳信息的次数是否达到预设解压次数;以及
    维护模块,设置为在得到相同的时间戳信息的次数达到所述预设解压次数的情况下,维护时间偏移量等于相邻时间戳差值0。
  8. 如权利要求7所述的装置,还包括:
    接收模块,设置为接收来自压缩端的维护信息,其中,所述维护信息为维护定值为零的信息;
    修改模块,设置为根据所述维护信息修改本地的定值。
  9. 一种压缩系统,包括:
    权利要求5或6所述的发送时间戳信息的装置,和权利要求7或8所述的接收时间戳信息的装置。
  10. 一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行 指令设置为执行权利要求1-4任一项所述的方法。
  11. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-4任一项所述的方法。
  12. 一种电子设备,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行权利要求1-4任一项所述的方法。
PCT/CN2016/110874 2016-01-04 2016-12-19 发送、接收时间戳信息的方法和装置 WO2017118273A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610005600.6A CN106941697A (zh) 2016-01-04 2016-01-04 一种发送、接收时间戳信息的方法和装置
CN201610005600.6 2016-01-04

Publications (1)

Publication Number Publication Date
WO2017118273A1 true WO2017118273A1 (zh) 2017-07-13

Family

ID=59273253

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110874 WO2017118273A1 (zh) 2016-01-04 2016-12-19 发送、接收时间戳信息的方法和装置

Country Status (2)

Country Link
CN (1) CN106941697A (zh)
WO (1) WO2017118273A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040030A (zh) * 2021-11-18 2022-02-11 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质
CN114189487A (zh) * 2021-11-09 2022-03-15 宜通世纪物联网研究院(广州)有限公司 一种基于rtp的数据重排序方法、系统、设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118055165B (zh) * 2024-04-16 2024-06-18 上海移芯通信科技股份有限公司 时间戳信息处理方法、装置、计算机设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002093865A2 (en) * 2001-05-10 2002-11-21 General Instrument Corporation Payload header suppression including removal of fields that vary in known patterns
CN1417957A (zh) * 2000-11-06 2003-05-14 松下电器产业株式会社 标题压缩方法和装置以及程序
CN101674315A (zh) * 2009-10-20 2010-03-17 中兴通讯股份有限公司 一种时间戳压缩、解压缩的方法及装置
CN104394117A (zh) * 2014-03-10 2015-03-04 贵阳朗玛信息技术股份有限公司 Rtp包的传输方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6680955B1 (en) * 1999-08-20 2004-01-20 Nokia Networks Oy Technique for compressing a header field in a data packet
US7907609B2 (en) * 2006-01-06 2011-03-15 Qualcomm, Incorporated Method and apparatus for enhancing RoHC performance when encountering silence suppression
CN103812846A (zh) * 2012-11-14 2014-05-21 重庆重邮信科通信技术有限公司 一种头压缩方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417957A (zh) * 2000-11-06 2003-05-14 松下电器产业株式会社 标题压缩方法和装置以及程序
WO2002093865A2 (en) * 2001-05-10 2002-11-21 General Instrument Corporation Payload header suppression including removal of fields that vary in known patterns
CN101674315A (zh) * 2009-10-20 2010-03-17 中兴通讯股份有限公司 一种时间戳压缩、解压缩的方法及装置
CN104394117A (zh) * 2014-03-10 2015-03-04 贵阳朗玛信息技术股份有限公司 Rtp包的传输方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189487A (zh) * 2021-11-09 2022-03-15 宜通世纪物联网研究院(广州)有限公司 一种基于rtp的数据重排序方法、系统、设备及介质
CN114189487B (zh) * 2021-11-09 2024-05-14 广东宜通联云智能信息有限公司 一种基于rtp的数据重排序方法、系统、设备及介质
CN114040030A (zh) * 2021-11-18 2022-02-11 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质
CN114040030B (zh) * 2021-11-18 2023-11-24 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质

Also Published As

Publication number Publication date
CN106941697A (zh) 2017-07-11

Similar Documents

Publication Publication Date Title
US9055034B2 (en) Backward looking robust header compression receiver
EP2472813B1 (en) Method and device for user datagram protocol packet compression and decompression
JP2013243690A (ja) サイレント抑圧時のrohcパフォーマンスを向上させる方法と装置
US10320520B2 (en) Communication device, system and method
US10299163B2 (en) Enhancement on header compression
JP2003008644A (ja) パケット送受信装置及びパケット伝送方法
WO2017118273A1 (zh) 发送、接收时间戳信息的方法和装置
US20150071307A1 (en) Communication interface and method for robust header compression of data flows
CN107645746B (zh) 一种上下文更新方法、系统及设备
WO2017092389A1 (zh) 报文处理方法及装置
US10171634B2 (en) State transition method and apparatus based on ROHC, and storage medium
WO2016101453A1 (zh) 一种压缩时间戳的方法和装置
US9924000B2 (en) Communication packet header data compression
WO2018165599A1 (en) Systems and methods for segmentation and reassembly of data frames in 802.11 wireless local area networsks
Tömösközi et al. Performance evaluation and comparison of RObust Header Compression (ROHC) ROHCv1 and ROHCv2 for multimedia delivery
CN104394117A (zh) Rtp包的传输方法及装置
WO2014029311A1 (zh) 多媒体质量的监控方法和设备
CN104320810B (zh) 一种头压缩方法、装置及解压缩方法、装置
JP4875076B2 (ja) ネットワーク内の順序がズレたデータパケットの効率的な符号化
EP2190163B1 (en) A method for repairing the window-based least significant bits decoding in the robust header compression
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
CN108574684B (zh) 一种解压缩的方法和装置
TWI692947B (zh) 在傳輸裝置和其對應的傳輸裝置中進行壓縮操作之模式轉換的方法、及傳輸裝置
WO2012103722A1 (zh) Rtp媒体数据的接收、发送方法及装置、处理系统

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

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

Country of ref document: EP

Kind code of ref document: A1