Movatterモバイル変換


[0]ホーム

URL:


CN118055165A - Timestamp information processing method, device, computer equipment and storage medium - Google Patents

Timestamp information processing method, device, computer equipment and storage medium
Download PDF

Info

Publication number
CN118055165A
CN118055165ACN202410451709.7ACN202410451709ACN118055165ACN 118055165 ACN118055165 ACN 118055165ACN 202410451709 ACN202410451709 ACN 202410451709ACN 118055165 ACN118055165 ACN 118055165A
Authority
CN
China
Prior art keywords
timestamp
data packet
value
current data
packet
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.)
Granted
Application number
CN202410451709.7A
Other languages
Chinese (zh)
Other versions
CN118055165B (en
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.)
Shanghai Mobile Core Communication Technology Co ltd
Original Assignee
Shanghai Mobile Core Communication Technology Co ltd
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 Shanghai Mobile Core Communication Technology Co ltdfiledCriticalShanghai Mobile Core Communication Technology Co ltd
Priority to CN202410451709.7ApriorityCriticalpatent/CN118055165B/en
Publication of CN118055165ApublicationCriticalpatent/CN118055165A/en
Application grantedgrantedCritical
Publication of CN118055165BpublicationCriticalpatent/CN118055165B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to the technical field of network communication, and further discloses a timestamp information processing method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a current data packet through a compression end; determining a type of a current data packet, wherein the type of the current data packet comprises: silence packets and voice packets; when the current data packet is a silent data packet, the compression end is controlled to send a compressed time stamp un-scaled value to the decompression end, and the decompression end is controlled to decompress the compressed time stamp un-scaled value; when the current data packet is a voice data packet, the compression end is controlled to send a first initialization packet to the decompression end according to first time stamp information carried by the current data packet and second time stamp information carried by the previous data packet; and the control decompression end initializes the first timestamp information according to the first timestamp information and the first initialization packet. The invention reduces byte overhead in the initialization process and improves the compression efficiency of the compression end.

Description

Timestamp information processing method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for processing timestamp information.
Background
The ROHC compression end needs to send IR-DYN packets to reinitialize the ts_stride and ts_offset once it detects a change in ts_stride. If these two conditions occur frequently, the ROHC compression side will send IR-DYN packets more frequently to reinitialize ts_stride and ts_offset, which significantly reduces the compression efficiency of the compression side.
Disclosure of Invention
In order to solve the technical problems, the invention provides a timestamp information processing method, a timestamp information processing device, computer equipment and a storage medium, and compression efficiency of a compression end is improved.
Specifically, the technical scheme of the invention is as follows:
The invention provides a timestamp information processing method, which comprises the following steps:
Receiving a current data packet through a compression end;
Determining the type of the current data packet, wherein the type of the current data packet comprises: silence packets and voice packets;
when the current data packet is a silent data packet, controlling the compression end to send a compressed timestamp unsealed value to the decompression end, and controlling the decompression end to decompress the compressed timestamp unsealed value;
When the current data packet is a voice data packet, the compression end is controlled to send a first initialization packet to the decompression end according to first timestamp information carried by the current data packet and second timestamp information carried by a previous data packet;
and controlling the decompression end to initialize the first timestamp information according to the first timestamp information and the first initialization packet.
By confirming the type of the current data packet, when the current data packet is the silent data packet, the time stamp offset value and the time stamp random offset in the current data packet are not initialized, so that the compression efficiency of the compression end is improved, and the resource waste is reduced. When the current data packet is a voice data packet and needs to be initialized, the first timestamp offset value and the first timestamp random offset are initialized through the first initialization packet, compared with the prior art that the initialization is performed by means of the second initialization packet and the third initialization packet, byte overhead in the initialization process is obviously reduced, and compression efficiency of a compression end is further improved.
In some embodiments, the first timestamp information comprises: a first timestamp offset value and a first timestamp constant value; the second timestamp information includes: a second timestamp offset value; the method specifically includes the steps of:
judging whether the first timestamp deviation value is equal to the first timestamp fixed value or not;
if not, judging whether the first timestamp deviation value is equal to the second timestamp deviation value;
And if the first timestamp deviation value is equal to the second timestamp deviation value, controlling the compression end to send the first initialization packet to the decompression end.
The method comprises the steps of determining that the current data packet is a voice data packet, judging whether first timestamp information in the current data packet needs to be initialized through a plurality of continuous limiting conditions, and avoiding that a compression end frequently sends initialization packets (the initialization packets are the first initialization packet, the second initialization packet and the third initialization packet) to initialize the first timestamp information, so that the accuracy of the initialization time selection is improved, and the compression efficiency of the compression end is further improved.
In some embodiments, the first timestamp information further comprises: a first timestamp compression value and a first timestamp random offset; the step of controlling the decompression terminal to initialize the first timestamp information according to the first timestamp information and the first initialization packet specifically includes the steps of:
Controlling the decompression end to initialize the random offset of the first timestamp according to the compressed value of the first timestamp and the fixed value of the first timestamp;
Initializing the first timestamp constant value according to first indication information in the first initialization packet, wherein the first indication information comprises a first preset timestamp constant value.
In some embodiments, the first timestamp information further comprises: a first timestamp compression ratio value; after the step of judging whether the first timestamp deviation value is equal to the first timestamp fixed value, the method further comprises the steps of:
When the first timestamp deviation value is equal to the first timestamp constant value, the compression end is controlled to compress the first timestamp compression ratio value according to the first timestamp compression value and the first timestamp constant value;
Controlling the compression end to send the compressed first timestamp compression ratio value to the decompression end;
And controlling the decompression end to decompress the compressed first timestamp compression ratio value.
And identifying whether the first timestamp bias value of the current data packet changes or not through comparing the first timestamp bias value of the current data packet with the first timestamp bias value of the current data packet and comparing the first timestamp bias value of the current data packet with the timestamp bias value of the previous data packet, and reducing the updating synchronization overhead of the first timestamp bias value and the first timestamp random offset caused by frequent change of the first timestamp bias value of the voice data packet.
In some embodiments, the method further comprises the step of:
When the first timestamp deviation value is not equal to the second timestamp deviation value, the compression end is controlled to compress a timestamp unsealed value carried by the first initialization packet according to the first initialization packet;
And controlling the compression end to send the compressed time stamp un-scaled value to the decompression end, and controlling the decompression end to decompress the compressed time stamp un-scaled value.
In some embodiments, after the receiving, by the compression end, the current data packet, before determining the type of the current data packet, the method further includes the steps of:
judging whether the compression end is in an initialized state or not;
when the compression end is in the initialized state, controlling the compression end to send a second initialized packet to the decompression end according to the initialized state;
and controlling the decompression end to initialize the first timestamp offset value and the first timestamp random offset according to the second initialization packet.
In some embodiments, the determining the type of the current data packet specifically includes the steps of:
judging whether the effective load length of the current data packet is smaller than a preset value, if so, judging that the current data packet is the silent data packet, and if so, judging that the current data packet is the voice data packet;
Or alternatively, the first and second heat exchangers may be,
Judging whether preset mark information exists in the current data packet, if so, judging that the current data packet is the silent data packet, and if not, judging that the current data packet is the voice data packet.
The invention also provides a timestamp information processing device, which comprises a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to realize the steps of the timestamp information processing method in the previous embodiment.
The present invention also provides a computer device including a memory, a processor and a computer program stored on the memory, the processor executing the computer program to implement the steps of the timestamp information processing method according to the foregoing embodiment.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the timestamp information processing method of the previous embodiments.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the timestamp information processing method of the previous embodiments.
Compared with the prior art, the invention has at least one of the following beneficial effects:
1. By confirming the type of the current data packet, when the current data packet is the silent data packet, the time stamp offset value and the time stamp random offset in the current data packet are not initialized, so that the compression efficiency of the compression end is improved, and the resource waste is reduced. When the current data packet is a voice data packet and needs to be initialized, the first timestamp offset value and the first timestamp random offset are initialized through the first initialization packet, compared with the prior art that the initialization is performed by means of the second initialization packet and the third initialization packet, byte overhead in the initialization process is obviously reduced, and compression efficiency of a compression end is further improved.
2. The method comprises the steps of determining that the current data packet is a voice data packet, judging whether first timestamp information in the current data packet needs to be initialized through a plurality of continuous limiting conditions, and avoiding that a compression end frequently sends initialization packets (the initialization packets are the first initialization packet, the second initialization packet and the third initialization packet) to initialize the first timestamp information, so that the accuracy of the initialization time selection is improved, and the compression efficiency of the compression end is further improved.
3. And identifying whether the first timestamp bias value of the current data packet changes or not through comparing the first timestamp bias value of the current data packet with the first timestamp bias value of the current data packet and comparing the first timestamp bias value of the current data packet with the timestamp bias value of the previous data packet, and reducing the updating synchronization overhead of the first timestamp bias value and the first timestamp random offset caused by frequent change of the first timestamp bias value of the voice data packet.
Drawings
The above features, technical features, advantages and implementation of the present invention will be further described in the following description of preferred embodiments with reference to the accompanying drawings in a clear and easily understood manner.
FIG. 1 is a flow chart of one embodiment of a method of timestamp information processing of the present invention;
FIG. 2 is a flow chart of one embodiment of a timestamp information processing method of the present invention;
FIG. 3 is a flow chart of one embodiment of a timestamp information processing method of the present invention;
FIG. 4 is a flow chart of one embodiment of a timestamp information processing method of the present invention;
FIG. 5 is a flow chart of another embodiment of a time stamp information processing method of the present invention;
FIG. 6 is a simplified block diagram of a prior art packet flow;
fig. 7 is a flowchart of a time stamp information processing method in the related art.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
For simplicity of the drawing, only the parts relevant to the invention are schematically shown in each drawing, and they do not represent the actual structure thereof as a product. Additionally, in order to simplify the drawing for ease of understanding, components having the same structure or function in some of the drawings are shown schematically with only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In this context, it should be noted that the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, unless explicitly stated or limited otherwise; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
The 5G/LTE terminal is likely to jump ts_delta during a call or data transmission, for example, silence RTP packets are usually sent on a call link during a silence period of a voice call, the TS of these silence packets are usually not increased according to the ts_delta interval of the previous call data packet, for example, by a multiple of ts_delta, and in the case of a relatively long silence time, the ts_delta of the silence packets may be gradually increased, and this time, the ts_delta frequently changes, until the silence period ends and the retransmission of voice data ts_delta returns to the ts_delta before the silence period starts.
Referring to fig. 7, the rohc compression end needs to send IR-DYN packets to reinitialize the ts_stride and the ts_offset once it detects a change in the ts_stride. If these two conditions occur frequently, for example, the silence period during voice traffic is likely to be more frequent, the ROHC compression end will send IR-DYN packets or IR packets more frequently to reinitialize ts_stride and ts_offset, which significantly reduces the compression efficiency of the compression end.
Therefore, in order to solve the above technical problems, the present invention provides a timestamp information processing method, which avoids initializing when a current data packet is a silence data packet by identifying the current data packet received by a compression end. Meanwhile, if the current data packet is a voice data packet, whether the time stamp fixed value of the current data packet changes is judged through comparison of the first time stamp offset value and the first time stamp fixed value of the current data packet and comparison of the first time stamp offset value and the second time stamp offset value of the previous data packet. The cost and resource waste caused by the fact that the time stamp fixed value (TS_STRIDE) changes and the compression end sends IR-DYN packets or IR packets to initialize TS_STRIDE and TS_OFFSET continuously are reduced, and the compression efficiency of the compression end is improved.
In one embodiment, as shown in fig. 1, the present invention provides a timestamp information processing method, including the steps of:
S100, receiving the current data packet through the compression end.
The current data packet is RTP (Real-time Transport Protocol, a transport protocol for multimedia data streams over the Internet) packets, which consists of two closely linked parts, RTP protocol, which transmits data with Real-time properties, RTP control protocol, which monitors the quality of service and transmits information about the ongoing session participants.
Further, the compression end in the robust header compression (ROHC, hereinafter referred to as ROHC. ROHC is a well-known header compression method applied to a wireless link, and has three operation modes of U/R/O, i.e. a unidirectional mode, a bidirectional trusted mode and an optimized mode, and in each mode, there are multiple data packets) receives a current data packet. There are two compression states in the ROHC protocol, including an initialization state and a reset state (Initiationand Refreshstate, IR, in this embodiment, IR packet is also referred to as a second initialization packet), which are used for static domain and dynamic domain information in an initial and update context (context). In this state, the compression end continuously transmits all the IP header information and the stream association identifier (CID). A First Order (FO) state, where the compression end only needs to pass the complete dynamic header field information. A Second Order (SO). The secondary compression state is the highest compression state, at this time, the compression end only transmits the compression value of the dynamic domain according to the change rule of the dynamic domain, at this time, the compression end transmits the ROHC compression packet with the highest compression rate.
S110, determining the type of the current data packet, wherein the type of the current data packet comprises: silence packets and voice packets.
And S120, when the current data packet is a silent data packet, controlling the compression end to send the compressed timestamp unsealed value to the decompression end, and controlling the decompression end to decompress the compressed timestamp unsealed value.
Specifically, referring to fig. 6, a silence period exists in the voice service, that is, after a plurality of voice data packets are continuously transmitted, the silence period is entered, the silence data packets are transmitted in the silence period, and after the silence period is ended, the voice data packets are continuously transmitted. The current packet type will therefore include a voice packet and a silence packet, and both silence and voice packets are RTP packets. When a silence packet is transmitted in a silence period of voice service, the time stamp of the silence packet (in this embodiment, the time stamp is TS, and the TS is the most basic time unit in the LTE network) generally does not increase according to the time stamp offset value (in this embodiment, the time stamp offset value is TS delta, that is, the difference between the time stamp of the current packet and the time stamp of the previous packet) of the previous voice packet, but the time stamp offset value frequently changes.
Referring to fig. 6, RTP packets y and y+1 are both packets carrying voice data, a silence packet is sent on the voice link during the silence period between the y+1 packet and the x packet, when the ROHC compression end receives the silence packet, the ts_stride is not updated any more until the received voice packet x further determines whether to update the ts_stride, and the rule of updating the ts_stride is as follows, where ts_delta (n) is used to represent the current ts_delta detected when the RTP packet n is compressed:
1) If the TS_delta of the current RTP packet is equal to the current TS_STRIE, the current TS_STRIE is continuously used, the TS_SCALED can be compressed and sent for the current TS, and if the TS_delta of the current RTP packet is not equal to the current TS_STRIE, the step 2) is executed.
2) If the TS_delta of the current RTP packet is equal to the TS_delta when the previous packet is compressed, the TS_STRIE is considered to be changed, the TS_STRIE needs to be updated to the current TS_delta, the compression end reinitializes the new TS_STRIE and TS_OFFSET to the decompression end, and if the TS_delta of the current RTP packet is not equal to the TS_delta when the previous packet is compressed, the step 3 is executed.
3) The compression end can only compress and send unscaled TS, and does not need to continuously update TS_ STIDE, and continuously observe the next RTP packet.
Repeating the steps 1) and 2) and 3) circularly.
Further, the timestamp offset value is normally a constant value, which is a timestamp constant value (in this embodiment, the timestamp constant value is ts_stride, which is used to indicate the unit of the timestamp field in the RTP packet, that is, the time interval between two consecutive RTP packets. Thus, when the timestamp bias value changes frequently, the timestamp bias value also changes frequently in essence. The compression end, upon detecting a change in the timestamp value, sends a third initialization packet (referring to the IR-DYN packet of fig. 7, which is used for initialization and refresh operations, particularly during initialization and refresh operations associated with the dynamic field.
Further, in order to improve the compression efficiency of the compression end, it is necessary to avoid frequent updating of the time stamp fixed value and the time stamp random offset when the compression end receives the silence data packet. The compression end needs to identify whether the current packet is a silence packet or a voice packet. There are many ways to identify silence packets, and this is enumerated herein:
Judging whether the effective load length of the current data packet is smaller than a preset value, if so, judging that the current data packet is a silent data packet, and if so, judging that the current data packet is a voice data packet. Or judging whether preset mark information exists in the current data packet, if so, judging that the current data packet is a silent data packet, and if not, judging that the current data packet is a voice data packet.
Specifically, the payload length of the silence packet sent in the silence period is only a few bytes, so it is possible to determine whether the payload length of the current packet is smaller than a preset value (in this embodiment, the payload length of the silence packet is usually smaller than 10 bytes, so the preset value may be set to 10 bytes, 20 bytes, 30 bytes, etc., and only the preset value set is required to be ensured to be larger than the payload length of the silence packet). If the effective load length of the current data packet is smaller than the preset value, judging that the current data packet is a silent data packet, and if the effective load length of the current data packet is larger than the preset value, judging that the current data packet is a voice data packet.
Further, it may also be determined whether preset flag information exists in the current data packet (for example, a silence data packet is set to carry special payload and other information, or a flag may be set in a certain byte of the silence data packet), if so, the current data packet is determined to be the silence data packet, and if not, the current data packet is determined to be the voice data packet.
Further, when the current data packet is determined to be the silence data packet, the compression end compresses a time stamp un-scaled value (unscaled TS) in the silence data packet, and sends the compressed time stamp un-scaled value to the decompression end for decompression.
And S130, when the current data packet is a voice data packet, controlling the compression end to send a first initialization packet to the decompression end according to the first time stamp information carried by the current data packet and the second time stamp information carried by the previous data packet.
And S140, the control decompression end initializes the first timestamp information according to the first timestamp information and the first initialization packet.
Specifically, when the current data packet is a voice data packet and the time stamp fixed value of the current data packet changes, the compression end sends a first initialization packet (the first initialization packet in this embodiment is a UOR-2 packet) to the decompression end according to first time stamp information carried by the current data packet (in this embodiment, the first time stamp information includes a first time stamp offset value, a first time stamp fixed value, a first time stamp compression value, a first time stamp random offset value, and a first time stamp proportion value) and second time stamp information carried by the previous data packet (in this embodiment, the second time stamp information includes a second time stamp offset value), and the decompression end initializes the first time stamp offset value and the first time stamp random offset value in the first time stamp information according to the first initialization packet.
In this embodiment, by confirming the type of the current data packet, when the current data packet is a silence data packet, the timestamp offset value and the timestamp random offset in the current data packet are not initialized, so that the compression efficiency of the compression end is improved and the resource waste is reduced. When the current data packet is a voice data packet and needs to be initialized, the first timestamp offset value and the first timestamp random offset are initialized through the first initialization packet, compared with the prior art that the initialization is performed by means of the second initialization packet and the third initialization packet, byte overhead in the initialization process is obviously reduced, and compression efficiency of a compression end is further improved.
In one embodiment, as shown in fig. 2, the present invention provides a method for processing timestamp information, where on the basis of the above embodiment, the first timestamp information includes: a first timestamp offset value and a first timestamp constant value; the second timestamp information includes: a second timestamp offset value; the method specifically includes the steps of:
S200, judging whether the first timestamp deviation value is equal to the first timestamp fixed value.
S210, if not, judging whether the first time stamp deviation value is equal to the second time stamp deviation value.
S220, if the first timestamp deviation value is equal to the second timestamp deviation value, the compression end is controlled to send a first initialization packet to the decompression end.
Specifically, the first timestamp information includes a first timestamp offset value and a first timestamp value, and the second timestamp information includes a second timestamp offset value. And when the compression end receives the current data packet and judges that the current data packet is a voice data packet, judging whether the first timestamp deviation value of the current data packet is equal to the first timestamp fixed value of the current data packet. If the first timestamp deviation value of the current data packet is not equal to the first timestamp constant value of the current data packet, further judging whether the first timestamp deviation value and the second timestamp deviation value are equal. If the first timestamp deviation value is equal to the second timestamp deviation value, the compression end sends a first initialization packet to the decompression end. And initializing a first time fixed value and a first time stamp random offset in the first time stamp information according to the first initialization packet and the first time stamp information by the decompression terminal.
The method comprises the steps of determining that the current data packet is a voice data packet, judging whether first timestamp information in the current data packet needs to be initialized through a plurality of continuous limiting conditions, and avoiding that a compression end frequently sends initialization packets (the initialization packets are the first initialization packet, the second initialization packet and the third initialization packet) to initialize the first timestamp information, so that the accuracy of the initialization time selection is improved, and the compression efficiency of the compression end is further improved.
In one embodiment, as shown in fig. 3, the present invention provides a method for processing timestamp information, where on the basis of the above embodiment, the first timestamp information further includes: a first timestamp compression value and a first timestamp random offset; the step of controlling the decompression terminal to initialize the first timestamp information according to the first timestamp information and the first initialization packet specifically includes the steps of:
and S300, controlling the decompression end to initialize the random offset of the first timestamp according to the compressed value and the fixed value of the first timestamp.
S310, initializing a first timestamp constant value according to first indication information in a first initialization packet, wherein the first indication information comprises a first preset timestamp constant value.
In this embodiment, the concept of initialization needs to be explained in detail, specifically as follows:
according to RFC3095, the algorithm used by ROHC to compress and decompress RTP packets TS fields is as follows:
1) Initializing: the compression end sends the absolute values of ts_stride and TS fields to the decompression end, which receives the two values and can then be used to initialize ts_offset. (ts_offset=ts (absolute) modu to TS _stride).
2) Compression: after initialization, the compression end is not compressing the TS fields in the original RTP packets, but compresses the ts_scands, where ts_scands=ts/ts_stride. The W-LSB may be used to compress the TS _ SCALED.
3) Decompression: when the decompression end receives the compressed value of the TS_SCALED, the complete TS_SCALED can be calculated, and then the calculation can be performed
4) Surround offset: when a TS wraps around, the previous TS_OFFSET will fail. At this time, the decompression side is required to detect the condition of the TS wrap around and update to a new ts_offset, and the compression side is not required to initialize the ts_offset again.
When ts_stride changes during a session, only the unscaled TS can be compressed until the new ts_stride and ts_offset are reinitialized. Also, the absolute value of TS fields needs to be transmitted at the time of initialization, so that the initialization can use only IR packets or IR-DYN packets.
Further, the first timestamp information includes a first timestamp compression value and a first timestamp random offset. Determining that the current data packet is a voice data packet, and when the first timestamp deviation value of the current data packet is not equal to the first timestamp constant value and the first timestamp deviation value of the current data packet is equal to the second timestamp deviation value of the previous data packet according to the foregoing embodiment, sending a first initialization packet to a decompression end by a compression end, and initializing the first timestamp constant value and the first timestamp random offset by the decompression end according to the first initialization packet and the first timestamp information.
Further, the initialization process is that the compression end sends the absolute value of the first timestamp constant value and the absolute value of the first timestamp compressed value (in this embodiment, the first timestamp compressed value is TS fields or TS) to the decompression end, and the decompression end substitutes the absolute value of the first timestamp constant value and the absolute value of the first timestamp compressed value into an initialization formula ts_offset=ts (absolute) modu to TS _stride, so that the initialization of the random OFFSET of the first timestamp can be completed.
Further, the initialization of the first timestamp constant value is different from the foregoing, and the first initialization packet sent by the compression end carries the first indication information (in this embodiment, the first indication information is the first preset timestamp constant value). After the decompression end receives the first initialization packet, initializing a first time stamp constant value of the current data packet according to first indication information in the first initialization packet, namely, assigning a first preset time stamp constant value in the first indication information to the first time stamp constant value of the current data packet, thereby completing the initialization of the first time stamp constant value.
Further, referring to fig. 4, the first timestamp information in this embodiment further includes: a first timestamp compression ratio value; after the step of judging whether the first timestamp deviation value is equal to the first timestamp fixed value, the method further comprises the steps of:
and S400, when the first timestamp deviation value is equal to the first timestamp constant value, controlling the compression end to compress the first timestamp compression ratio value according to the first timestamp compression value and the first timestamp constant value.
Specifically, when the current data packet is a voice data packet and the first timestamp deviation value and the first timestamp value of the current data packet are equal, the current data packet does not need to be initialized. The first compression packet also includes LSB encoding, RTP timestamp encoding, IP-ID offset encoding, and self-describing variable length value encoding, etc., and may be specifically set according to the actual situation, where there is no excessive enumeration) for the first timestamp compression ratio value (in this embodiment, the first compression ratio value is ts_scaled, which may be used to adjust the time stamp unit to better adapt to a specific application scenario, for example, if one media stream is a time unit of a stream and another media stream is a time unit of a stream, and thus the first timestamp is a time unit of a stream, the first timestamp may be converted to a specific timestamp value by using the ts_scaled, so that the first timestamp compression ratio value (in this embodiment, the first compression ratio value is ts_scaled, which may be used to adjust the time stamp unit to better adapt to a specific application scenario).
S410, the control compression end sends the compressed first timestamp compression ratio value to the decompression end.
S420, controlling the decompression terminal to decompress the compressed first timestamp compression ratio value.
Specifically, the compression end sends the compressed first timestamp compression ratio value to the decompression end, after the decompression end receives the compressed first timestamp compression ratio value, the complete first timestamp compression ratio value can be calculated, and then the first timestamp compression value (specifically, the first timestamp compression value=the first timestamp compression ratio value) can be calculatedThe first time stamp constant value+the first time stamp random offset is calculated according to the formula)。
And identifying whether the first timestamp bias value of the current data packet changes or not through comparing the first timestamp bias value of the current data packet with the first timestamp bias value of the current data packet and comparing the first timestamp bias value of the current data packet with the timestamp bias value of the previous data packet, and reducing the updating synchronization overhead of the first timestamp bias value and the first timestamp random offset caused by frequent change of the first timestamp bias value of the voice data packet.
In one embodiment, the present invention provides a method for processing timestamp information, which further includes the steps of:
And when the first time stamp deviation value is not equal to the second time stamp deviation value, controlling the compression end to compress the time stamp un-scaled value carried by the first initialization packet according to the first initialization packet.
And controlling the compression end to send the compressed time stamp un-scaled value to the decompression end, and controlling the decompression end to decompress the compressed time stamp un-scaled value.
Specifically, when it is determined that the current data packet is a voice data packet and the first timestamp offset value of the current data packet is not equal to the second timestamp offset value of the previous data packet, the compression end compresses the timestamp unsealed value carried by the first initialization packet (in this embodiment, the timestamp unsealed value is unscaled TS, unscaled TS refers to the unsealed timestamp in the RTP packet, and reflects the original and unadjusted time information) (the compression end compresses unscaled TS through a specific packing and encoding flow). The compression end sends the compressed time stamp un-scaled value to the decompression end, and the decompression end decompresses the compressed time stamp un-scaled value.
The second initialization packet carries 32-bits unscaled TS and TS_STRIDE to synchronously update TS_STRIDE and TS_OFFSET for the decompression end, compared with the protocol and the prior implementation that the IR-DYN packet is used for reinitializing TS_STRIDE and TS_OFFSET, the scheme can obviously reduce byte overhead and further improve the compression efficiency of the compression end.
In one embodiment, as shown in fig. 5, the present invention provides a method for processing timestamp information, which further includes the steps of, after the current data packet is received by the compression end and before the type of the current data packet is determined:
s500, judging whether the compression end is in an initialized state.
S510, when the compression end is in the initialized state, the compression end is controlled to send a second initialized packet to the decompression end according to the initialized state.
S520, controlling the decompression end to initialize the first time stamp offset value and the first time stamp random offset according to the second initialization packet.
Specifically, after the compression end receives the current data packet, it is first determined whether the compression end is in an initialized state. And when the compression end is in an initialized state, sending a second initialized packet to the decompression end. And initializing the first time stamp offset value and the first time stamp random offset of the current data packet by the decompression end according to the second initialization packet. The specific initialization flow is as follows: the compression end sends the absolute value of the first timestamp constant value and the absolute value of the first timestamp compressed value to the decompression end, and the decompression end substitutes the absolute value of the first timestamp constant value and the absolute value of the first timestamp compressed value into an initialization formula TS_OFFSET=TS (absolute) modu to TS _STRIDE, so that the initialization of the random OFFSET of the first timestamp can be completed.
Further, the second initialization packet sent by the compression end carries second indication information (in this embodiment, the first indication information is a second preset timestamp fixed value). After the decompression end receives the second initialization packet, initializing the first time stamp constant value of the current data packet according to second indication information in the second initialization packet, namely, assigning a second preset time stamp constant value in the second indication information to the first time stamp constant value of the current data packet, thereby completing the initialization of the first time stamp constant value.
In one embodiment, the present invention further provides a timestamp information processing apparatus, including a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement the steps of the timestamp information processing method described in the foregoing embodiment.
In one embodiment, the present invention provides a computer device including a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the steps of the timestamp information processing method of the previous embodiments.
In an embodiment, the invention provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the timestamp information processing method of the previous embodiments.
In one embodiment, the present invention provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the timestamp information processing method as described in the previous embodiment. That is, when some or all of the foregoing technical solutions that contribute to the prior art according to the embodiments of the present invention are embodied by means of a computer software product, the foregoing computer software product is stored in a computer-readable storage medium. The computer readable storage medium can be any means or device that can carry computer program code entities such as a U disk, removable magnetic disk, optical disk, computer memory, read only memory, random access memory, and the like.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

CN202410451709.7A2024-04-162024-04-16Timestamp information processing method, device, computer equipment and storage mediumActiveCN118055165B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410451709.7ACN118055165B (en)2024-04-162024-04-16Timestamp information processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410451709.7ACN118055165B (en)2024-04-162024-04-16Timestamp information processing method, device, computer equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN118055165Atrue CN118055165A (en)2024-05-17
CN118055165B CN118055165B (en)2024-06-18

Family

ID=91046934

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410451709.7AActiveCN118055165B (en)2024-04-162024-04-16Timestamp information processing method, device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN118055165B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020064224A1 (en)*2000-11-062002-05-30Koichi HataScheme, apparatus, and program for header compression
EP1926282A2 (en)*1999-10-142008-05-28Nokia CorporationMethod and System for Transmitting and Receiving Packets
WO2016101453A1 (en)*2014-12-222016-06-30中兴通讯股份有限公司Method and device for compressing time stamp
CN106941697A (en)*2016-01-042017-07-11中兴通讯股份有限公司A kind of method and apparatus for sending, receiving timestamp information
CN108141790A (en)*2015-09-242018-06-08高通股份有限公司Timestamp repair mechanism in the case of de-compression failure
CN108737349A (en)*2017-04-242018-11-02大唐移动通信设备有限公司A kind of processing method and processing device of VoP
CN110602745A (en)*2018-06-122019-12-20大唐移动通信设备有限公司Data packet decompression method and device
CN111149384A (en)*2017-09-292020-05-12苹果公司 ROHC header compression for MPTCP

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1926282A2 (en)*1999-10-142008-05-28Nokia CorporationMethod and System for Transmitting and Receiving Packets
US20020064224A1 (en)*2000-11-062002-05-30Koichi HataScheme, apparatus, and program for header compression
WO2016101453A1 (en)*2014-12-222016-06-30中兴通讯股份有限公司Method and device for compressing time stamp
CN105791228A (en)*2014-12-222016-07-20中兴通讯股份有限公司Method and device for compressing timestamp
CN108141790A (en)*2015-09-242018-06-08高通股份有限公司Timestamp repair mechanism in the case of de-compression failure
CN106941697A (en)*2016-01-042017-07-11中兴通讯股份有限公司A kind of method and apparatus for sending, receiving timestamp information
CN108737349A (en)*2017-04-242018-11-02大唐移动通信设备有限公司A kind of processing method and processing device of VoP
CN111149384A (en)*2017-09-292020-05-12苹果公司 ROHC header compression for MPTCP
CN110602745A (en)*2018-06-122019-12-20大唐移动通信设备有限公司Data packet decompression method and device

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
C. BORMANN, EDITOR, TZI/UNI BREMEN; C. BURMEISTER, MATSUSHITA; M. DEGERMARK, UNIV. OF ARIZONA;H. FUKUSHIMA, MATSUSHITA;H. HANNU, E: "RObust Header Compression (ROHC): Framework and four profiles: RTP, UDP, ESP, and uncompressed", IETF, 31 July 2001 (2001-07-31)*
TAMMY CHANG;: "A self-adaptive scheduling (SAS) solution for enhancing VoIP service quality in OFDM-based mobile networks", 《2013 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC)》, 7 November 2013 (2013-11-07)*
任延珍, 喻占武, 胡瑞敏: "基于RTP/RTCP协议的实时数据传输与同步控制策略", 计算机工程与应用, no. 10, 1 April 2003 (2003-04-01)*
康召飞;: "VoLTE关键技术研究", 广东通信技术, no. 11, 15 November 2018 (2018-11-15)*
童彤: "无线网络中的包头压缩技术", 《硕士电子期刊》, 15 January 2014 (2014-01-15)*
邱宏燕;杨灿;张大明;: "无线网络中ROHC压缩算法研究", 移动通信, no. 06, 30 March 2017 (2017-03-30)*

Also Published As

Publication numberPublication date
CN118055165B (en)2024-06-18

Similar Documents

PublicationPublication DateTitle
JP3559271B2 (en) How to define a context identifier when compressing header fields
CA2375830C (en)Robust header compression in packet communications
EP1271886B1 (en)Packet header compression
EP1180871B1 (en)Method and apparatus for header compression
US7000166B2 (en)Apparatus and method for header decompression
EP1187417B1 (en)Method and apparatus for transmitting data packets
EP1187416B1 (en)Method and apparatus for transmitting data packets
KR20040019578A (en)Method and apparatus transmitting a header compressed packet data
EP1153490A1 (en)Header compression in real time services
EP1482668A1 (en)PACKET TRANSMITTER, PACKET RECEIVER AND PACKET TRANSMISSION METHOD
WO2000079764A1 (en)Robust delta encoding with history information
CN118055165B (en)Timestamp information processing method, device, computer equipment and storage medium
US20040136380A1 (en)Packet transmitter, packet receiver and packet transmission method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp