Method, apparatus and system for transmitting compressed header data

Information

  • Patent Application
  • 20030198250
  • Publication Number
    20030198250
  • Date Filed
    March 24, 2003
    21 years ago
  • Date Published
    October 23, 2003
    21 years ago
Abstract
Method, transmitter and system for transmitting compressed header data in a packet stream from a transmitter to a receiver, the header data including a header data item, wherein the method comprises estimating a time period needed for performing a re-initialization process for reinitializing a value of said header data item, determining a time for starting the re-initialization process, the determined time being based on the estimated time period and starting the re-initialization process at the determined time.
Description


BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention


[0002] The present invention generally relates to a method, a transmitter and a system for transmitting compressed header data from a transmitter to a receiver and in particular to header compression mechanisms that can be used with unreliable channels.


[0003] 2. Description of the Related Art


[0004] Although several communication technologies exist for transmitting data from one terminal to another terminal, packet oriented or IP(Internet Protocol)-based protocols are often preferably chosen. To avoid transmission of unnecessary data in the packets they are compressed before being transmitted.


[0005]
FIG. 1 illustrates a typical system that has a first terminal acting as a transmitter 1 and a second terminal acting as a receiver 2. The transmitter 1 comprises a compressor 3 connected to a transmission unit 4 for transmitting packets to the receiver 2 and a reception unit 5 for receiving packets from the receiver 2. The receiver 2 comprises a reception unit 6 for receiving packets from the transmitter 1, a decompressor 7 connected to the reception unit 6 and a transmission unit 8 for transmitting packets to the transmitter 1.


[0006] A packet transmitted from the transmitter to the receiver may comprise packet data including the main information to be transferred by a stream of packets and header data required for administration of the packets in the different protocol layers.


[0007] For example, the header of Realtime-Transport-Protocol (RTP) packets that are transmitted in compliance with the User-Datagram-Protocol/Internet-Protocol (UDP/IP) sums up to at least 40 bytes. This header contains redundant information and thus is also compressed. Header compression protocols generally remove the redundancy of the headers and encode the information to be transmitted in an efficient way. For example the above 40 byte header can be reduced to a single byte in the best case.


[0008] A header compression protocol which has been developed particularly for unreliable channels such as wireless links is specified in C. Bormann et al., “Robust Header Compression (ROHC)” [RFC3095], July 2001.


[0009] This document describes three modes of operation for compressing the header of IP/UDP/RTP packets. The third or reliable mode uses special compression algorithms to achieve robustness against the loss of packets on the compressed link.


[0010] To compress the header of an incoming packet, header files that do not change are transmitted only once at the beginning of a session for transmitting a packet stream. The remaining header fields, which may have a variable value, typically can be calculated by using the value of a RTP sequence number. Hence, in most of the cases only the RTP sequence number has to be transmitted with each packet. Accordingly, most values of header fields are either calculated from the RTP sequence number or simply decompressed by using a previously transmitted and stored value.


[0011] In the following a method of compressing and transmitting a RTP sequence number is described, wherein the RTP sequence number is referred to as the sequence number.


[0012] Corresponding to the above described approach of compressing header data, the sequence number is also compressed by splitting the sequence number in a constant portion and a variable portion for transmitting the portions separately and only if required. The most significant bits of the sequence number may be selected as the constant portion, which is transferred to the decompressor only once. Contrary thereto the least significant bits of the sequence number represent the variable portion or compressed sequence number which has to be transferred to the decompressor with each packet. Compressor and decompressor may calculate the sequence number for each packet by adding the variable compressed sequence number to the sequence number stored as a reference.


[0013] Initially, to establish a common reference, an uncompressed sequence number is transmitted in a packet which includes a CRC. The CRC is used to verify the decompressed packet, for example to detect bit errors in the compressed packet. If the decompressor was able to decompress the packet and has verified its correctness, it sends an acknowledgement to the compressor, which contains the decompressed sequence number. This acknowledged sequence number is used as a common reference sequence number.


[0014] Hence, after reception of the acknowledgement, incoming sequence numbers can be compressed by the compressor. However, the compressor has to maintain a window of sent sequence numbers which have been compressed since the acknowledged one. The initial window accordingly contains only the acknowledged sequence number. The compressed sequence number depends on the least significant bits thereof. Based on the window for sequence numbers which have been sent already the compressor calculates how many least significant bits (LSB) are needed to uniquely identify the sequence number. Thus, the number of LSB increases with the number of packets in the window. After finding the minimum number of LSB the compressor has to choose a packet type which contains at least the calculated number of bits required for the sequence number. In the above third or reliable mode the smallest packet contains 6 LSB of the sequence number.


[0015] Then the packet is sent to the decompressor and the sequence number is added to the window. However, as the window size grows the minimum number of LSB and correspondingly the packet size increases as well.


[0016] The compressor can decide to continue sending the smallest possible packet size, which might not be the optimum anymore, or decrease the window size by sending a small number of larger packets with a CRC. By sending a packet with a CRC the compressor starts to establish a new common reference. The additional CRC byte accordingly indicates a re-initialization of the reference sequence number to the receiver.


[0017] If a CRC packet is transmitted to the decompressor and successfully decompressed, it sends an acknowledgement containing the decompressed sequence number to the compressor in the transmitter. Additionally, the receiver removes all previous packets from the window and thus uses the decompressed sequence number as a new reference sequence number.


[0018] When receiving the acknowledgement from the receiver, the compressor removes all packets that were sent before the acknowledged packet from its window. For compression of the following packets, the smaller window size can be used which reduces the minimum number of required least significant bits.


[0019] The compressor has to decide at which value of the sequence number he wants to start a re-initialization process. However, if it starts a re-initialization process at a sequence number which is too high bit rate is wasted, because the packet size of the packets increases. If on the other hand it starts the re-initialization process at a sequence number which is too low, bit rate is wasted, because too many packets indicating re-initialization are sent. Thus, the prior art system operates inefficient since there is bit rate wasted in each case.



SUMMARY OF THE INVENTION

[0020] It is the object of the invention to provide an improved method, a transmitter and a system for transmitting compressed header data which are optimized in terms of transmission efficiency, particularly with regard to the re-initialization process.


[0021] This object is solved by the subject matters of the independent claims. The dependent claims describe preferred embodiments of the invention.


[0022] According to the invention a time period needed for performing a re-initialization process of reinitializing a value of a header data item to be compressed is estimated and used for determining an optimum time for starting the re-initialization process. By estimating the time period for a re-initialization process, the re-initialization process can be started in time for finalizing the process just before an incoming packet including a critical sequence number would have to be transmitted. Hence, the mean header size is reduced and efficiency of the compression is increased, thereby avoiding any waste of bit rate.


[0023] In an advantageous embodiment of the method according to the invention a time between transmitting a packet indicating a re-initialization to the receiver and receiving an acknowledgment for this packet is measured and the measured time is used to estimate the time period needed for the re-initialization process. Under the assumption that the processing time in the receiver remains stable during a session of packet transmission, the time period can thus be estimated reliably.


[0024] In a further improved method according to the invention a critical time in which the value of the header data item is expected to reach a critical value is estimated and an optimum time for starting the re-initialization process is determined by subtracting the estimated time period for the re-initialization process from the critical time. This method is particularly adapted to start the re-initialization process just at the optimized time.


[0025] A further advantageous embodiment of the method according to the invention estimates a required time for retransmission of lost packages in accordance with information about the link status between transmitter and receiver stored in the compressor. Thus, by using existing information the estimation of the optimum time can be further improved.







BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In the following a preferred embodiment of the invention will be described with reference to the accompanying drawings, illustrating:


[0027]
FIG. 1 a typical system for transmission of compressed header data comprising a transmitter and a receiver;


[0028]
FIG. 2 a flowchart of the method for transmitting packets from a transmitter to a receiver according to a preferred embodiment of the invention;


[0029]
FIG. 3 a flowchart of an initialization process performed in the process of FIG. 2;


[0030]
FIG. 4 a flowchart of a re-initialization check performed in the process of FIG. 2; and


[0031]
FIG. 5 a flowchart of a re-initialization process performed in the process of FIG. 2.







DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0032] The method illustrated in FIGS. 2 to 5 may be performed in a transmitter as illustrated in FIG. 1.


[0033]
FIG. 2 illustrates a method for transmitting compressed header data in a stream of packets from a transmitter to a receiver. The header data preferably are compressed using a ROHC algorithm, wherein a header data item is a RTB sequence number, which is referred to as the sequence number in the following.


[0034] In step 21 an initialization process illustrated in more detail in FIG. 3 is performed.


[0035] Thereafter, a sequence number of a packet to be transferred is determined in step 22 and compressed in step 23. The step 23 of compressing may comprise the use of the least significant bits of the sequence number as a compressed sequence number or deriving same from the least significant bits of the sequence number. Hence, either the most significant bits or the sequence number as a whole is used as a reference sequence number respectively.


[0036] In a step 24 performing a re-initialization check it has to be checked whether to continue with the regular process of transmitting packets by performing the step 26 of sending the packet that includes the compressed sequence number, or whether the process should branch to step 25 of performing a re-initialization process, which reinitializes the value of the sequence number.


[0037] In the first case the packet including the compressed sequence number is transmitted in step 26. If further packets to be transmitted exist according to step 27, the process continues with step 22 of determining the sequence number of the next packet.


[0038] In the re-initialization check 24 a time for starting the re-initialization process is determined. Accordingly, the re-initialization process is started when the current time t has reached or exceeded the determined optimum time (topt):


t>topt.


[0039] For determining the optimum time an estimated time period (tinit) needed for performing the re-initialization process is used.


[0040]
FIG. 3 illustrates an initialization process comprising steps 30 to 37. Initially, the header data items having a constant value are determined in step 31. Thereafter, an initial sequence number (SN) is determined in step 32. Subsequently the compressed header data are transmitted from the transmitter to the receiver in step 33. The transmitted header data comprises the constant header data items as well as the initial sequence number. The receiver decompresses the received packet and verifies the CRC included therein. It stores the initial sequence number as a reference sequence number and sends an acknowledgement including the initial sequence number to the transmitter. The transmitter receives the acknowledgement for the initial sequence number in step 34. Additionally, in step 36 the initial sequence number is stored as a reference sequence number in the transmitter.


[0041] For estimating a time period needed for performing a re-initialization process the transmitter measures the time period from transmission of the header data to reception of the acknowledgement in step 35.


[0042] Turning back to FIG. 2, the re-initialization check 24 and the re-initialization process 25 are now described in more detail with reference to FIGS. 4 and 5 respectively.


[0043]
FIG. 4 illustrates a re-initialization check with steps 40 to 46. Initially, a maximum sequence number (SNmax) is determined for the current reference sequence number (SNref) in step 41. SNmax represents the maximum sequence number for which the corresponding compressed sequence number (CSN) fits into the smallest packet type. Hence, if a compressed CSNmax requires k bits in a packet, CSNmax+1 would require at least k+1 bits in each of the subsequent packets.


[0044] The minimum number of bits (k) required for a compressed sequence number is determined by the following equation:




k
=[log2(SNmax−SNref)],



[0045] this equation can be converted to:




SN


max


=SN


ref
+2k.



[0046] For example, in the reliable mode of ROHC k equals to 6.


[0047] Since k is a predetermined value, the maximum sequence number can be calculated as soon as SNref is known. Hence, the calculation may be performed in step 41, but also previously in the initialization process illustrated in FIG. 3.


[0048] Based on the information of the maximum sequence number a critical time (tmax) is determined 42, which represents the time when the maximum sequence number is likely to be reached.


[0049] Generally, the packets arrive at the compressor with an approximately linear time-sequence-number relation and the sequence number generally increases in constant steps. Thus the compressor can estimate the time when the number of required bits exceeds the number of bits in the smallest packet type, according to the following equation:




t


max


=t


now
+(SNmax−SNnow)T,



[0050] where tmax denotes the estimated arrival time of the packet with the sequence number SNmax. tnow is the current time and T is the expected average time between incoming packets.


[0051] In a step 43 of modifying the critical time, it may be further reduced to compensate for variations that may be expected with regard to the re-initialization process. The critical time is reduced for example according to an expected retransmission time period, which reflects the estimated time necessary for retransmissions of lost packets. For estimating a retransmission time period preferably the current transmission conditions, which are stored in the compressor for use in the compression algorithm, are evaluated. The modification of the critical time additionally may further consider variations in the arrival time of packets in the incoming packet stream and/or tinit, which may be e.g. caused by fluctuating processing times in the decompressor. Accordingly, the critical time may be further reduced.


[0052] For finally determining the time for starting the re-initialization process, a corresponding optimal time (topt) is calculated in step 44.


[0053] topt has to be selected in a way to allow the re-initialization process to be finalized before transmitting a packet of increased size. Hence, SNmax should be the last sequence number used before re-initialization. The next packet would have to be sent at the time tmax+T. In another embodiment the critical time may be defined as the arrival time of the packet with the sequence number SNmax+1 (tmax[SNmax+1]=tmax+T).


[0054] Accordingly, the optimum time is calculated by subtracting the estimated time period (tinit) for performing the re-initialization process from determined arrival time of the packet having a sequence number SNmax+1:




t


opt
=(tmax+T)−tinit.



[0055] Thereafter it can be checked in step 45, if the current time has reached or exceeded the optimum time.


[0056] As apparent from the above, the step 43 of modifying the critical time may as well be replaced by a corresponding step of modifying the estimated time period needed for performing the re-initialization process. Hence, it may also be performed in the re-initialization process 25 and/or the initialization process 21.


[0057] In case the optimum time is reached the re-initialization process illustrated in more detail in FIG. 5 is started.


[0058] In step 51 a packet including a CRC and the sequence number is sent from the transmitter to the receiver. Subsequently the acknowledgement of the receiver including the sequence number is received in step 52. The time between the step 51 of transmission and the step 52 of reception is measured in step 53. Based on the measured time an average time for the re-initialization process is determined in step 54. Finally, in step 55 the acknowledged sequence number is stored as a reference sequence number.


[0059] In more detail, for the step 53 of measuring the compressor stores the time (tcrc) at which a CRC packet was sent and additionally its sequence number. The time (tack) and sequence number of an acknowledgement is also stored. After receiving the acknowledgement the compressor calculates a new estimation of the time period (tinit) for example as a weighted average:
1tinit=tack-tcrc,fortinit=0(1-α)·tinit+α·(tack-tcrc),else.


[0060] The weighting factor a describes the influence of the currently measured time to the running average estimation. However, alternatively any type of an averaging calculation may be used. Furthermore, tinit may be initially set during the initialization process. The step 54 of determining the average time tinit may as well be performed during the re-initialization check.


[0061] Instead of solely determining a round trip time corresponding to a time needed for transmitting packets back and forth, the above described step 53 of measuring additionally considers a processing time in the decompressor for the estimated time period. This processing time includes the time between reception of a CRC packet in the decompressor and sending the corresponding acknowledgement from the decompressor. The processing time is generally not known by the compressor in the transmitter, but has to be considered for estimating the time needed for a re-initialization process. During a compression session the environment does not change, hence the processing time in the decompressor is likely to be constant. Accordingly, the estimated average time tinit can assumed to be reliable.


[0062] With reference to FIG. 2 to 5 preferred embodiments have been described using exemplary conditions. As already indicated several of the steps may be performed at different positions in the process. However, as it will become apparent from the following, the above described features can be transferred to various configurations of further embodiments.


[0063] The method according to the invention may be generally applied to systems requiring a re-initialization process for an optimized efficiency in the system. For example, the header data item may be any variable data item to be transmitted, which increases in size if not re-initialized. Furthermore, the critical value does not have to be the value of the header data item itself, but could for example also be represented by a critical complexity of an algorithm to be performed, wherein the complexity of the algorithm is reduced by re-initialization of the header data item.


[0064] Moreover, in the re-initialization process the value of the header data item may be set to a predetermined initial value, but may as well be set to the current value of the header data item or its most significant bits. Accordingly, the value stored as a reference value of the header data item may be formed by the most significant bits of the sequence number or by the sequence number itself. Preferably, the compression algorithm and the reference value are selected in a way to allow as many packets to be transferred without re-initialization as possible. Moreover, the number of least significant bits in the value of the header data item may be determined in accordance with the number of bits available in the smallest or appropriate packet type.


[0065] The system of FIG. 1, which may be used for performing the method according to the invention, only illustrates the required basic functional components. However, the transmitter 1 typically comprises further non-illustrated units such as an input section for receiving incoming packets to be transmitted, a controller and a storage unit, which may be a part of the compressor. Moreover, the transmitter 1 and the receiver 2 may be connected for packet transmission via a wired or wireless link.


[0066] While the invention has been described with respect to the preferred physical embodiments constructed in accordance therewith, it will be apparent to those skilled in the art that various modifications, variations and improvements of the present invention may be made in light of the above teachings and within the preview of the appended claims without departing from the spirit and intended scope of the invention. In addition, those areas in which it is believed that those of ordinary skilled in the art are familiar, have not been described herein in order to not unnecessarily obscure the invention described herein. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrative embodiments, but only in the scope of the appended claims.


Claims
  • 1. A method for transmitting compressed header data in a packet stream from a transmitter to a receiver, the header data including a header data item, the method comprising: estimating a time period needed for performing a re-initialization process for reinitializing a value of said header data item to be compressed; determining a time for starting the re-initialization process, the determined time being based on the estimated time period; and starting the re-initialization process at the determined time.
  • 2. The method according to claim 1, wherein the header data is compressed using an RoHC (robust header compression) algorithm, and the header data item is a RTP (Realtime-Transport-Protocol) sequence number.
  • 3. The method according to claim 1, wherein the step of starting the re-initialization process comprises transmitting a re-initialization packet including a CRC element, the CRC element being calculated for at least the compressed header data item.
  • 4. The method according to claim 1, wherein the step of estimating comprises: transmitting a packet to the receiver for re-initializing the header data item; and receiving an acknowledgement from the receiver.
  • 5. The method according to claim 4, wherein the step of estimating the time period further comprises: measuring the time between transmitting the packet indicating and receiving the acknowledgement.
  • 6. The method according to claim 5, wherein the step of estimating the time period further comprises: determining an average duration of the re-initialization process based on results of the step of measuring.
  • 7. The method according to claim 1, wherein the step of determining the time for starting the re-initialization process comprises: estimating a critical time in which the value of the header data item is expected to reach a critical value.
  • 8. The method according to claim 6, wherein the step of determining the time for starting the re-initialization process further comprises: subtracting the estimated time period from the critical time.
  • 9. The method according to claim 7, wherein the step of estimating the critical time comprises: subtracting the current value from the critical value of the header data item; and multiplying the subtraction result with a value representing a time in which the value of the header data item is expected to remain unchanged.
  • 10. The method according to claim 7, wherein the step of determining the time for starting the re-initialization process further comprises: modifying the estimated critical time to compensate for possible variations in time with regard to the re-initialization process.
  • 11. The method according claim 10, wherein the step of modifying the critical time comprises: estimating a retransmission time period required for retransmitting lost packets by evaluating the current transmission conditions between the transmitter and the receiver.
  • 12. A transmitter for transmitting compressed header data in a packet stream to a receiver, the header data including a header data item, the transmitter comprising means for estimating a time period needed for performing a re-initialization process for reinitializing a value of said header data item to be compressed; means for determining a time for starting the re-initialization process, the determined time being based on the estimated time period; and means for starting the re-initialization process at the determined time.
  • 13. A system comprising a transmitter for transmitting compressed header data in a packet stream to a receiver, the header data including a header data item, the transmitter comprising means for estimating a time period needed for performing a re-initialization process for reinitializing a value of said header data item to be compressed; means for determining a time for starting the re-initialization process, the determined time being based on the estimated time period; and means for starting the re-initialization process at the determined time; and at least one receiver.
Priority Claims (1)
Number Date Country Kind
02007158.5 Mar 2002 EP