The present invention is related to compression operations, and more particularly, to a method for performing mode transition of a compression operation in a transmission device, and an associated transmission device.
In wired or wireless network applications, there are fixed data sets within multiple consecutive packets of a same data stream. In the related art, a device transmits this entire fixed data at the beginning of a data stream, so that only the changed portion needs to be transmitted in following packets of the data stream in order to compress the data and effectively utilize band resources of the wired or wireless network. The related art still has some problems, however. For example, robust header compression (RoHC) does not mention how to process multiple sets of context data in a same compressor or decompressor. In addition, for example, for a packet conforming to user data protocol (UDP), the mode transition might fail due to the lack of data or information. Thus, there is a need for a novel mode transition mechanism which can solve the aforementioned problems without introducing side effects or in a way that is less likely to introduce side effects.
An objective of the present invention is to provide a method for performing mode transition of a compression operation in a transmission device, and an associated transmission device thereof, which can perform mode transition on a plurality of sets of context data in a same compressor or decompressor.
Another objective of the present invention is to provide a method for performing mode transition of a compression operation in a transmission device, and an associated transmission device thereof, which solves the problem of the related art wherein the mode transition fails due to the lack of data or information.
At least one embodiment of the present invention provides a method for performing mode transition of a compression operation in a transmission device, wherein the compression operation comprises a plurality of modes. The method comprises: determining whether a module within the transmission device transforms a mode within the plurality of modes into another mode within the plurality of modes to transmit a set of context data; and in response to the module transforming the mode into another mode to transmit the set of context data, transmitting other sets of context data that also belong to the module in the other mode, wherein the transmission device comprises a compressor and a decompressor, and the module represents the compressor or the decompressor.
At least one embodiment of the present invention provides a transmission device for performing mode transition according to the aforementioned method, wherein the transmission device comprises the compressor and the decompressor. The compressor is arranged to compress a header of a packet to be transmitted, and the decompressor is arranged to decompress a header of a received packet.
At least one embodiment of the present invention provides a method for performing mode transition of a compression operation in a transmission device, wherein the compression operation comprises a plurality of modes, and the method is applied in compression operations of multiple protocols of which a specific type of packets that are lack of data or information are needed in the mode transition (e.g. user datagram protocol (UDP)). The method comprises: checking whether a number of the specific type of multiple consecutive packets received by a decompressor within the transmission device from another transmission device reaches a predetermined value after a compressor within said other transmission device performs the mode transition; and in response to the number of the specific type of multiple consecutive packets reaching the predetermined value, performing the mode transition of the decompressor.
At least one embodiment of the present invention provides a transmission device for performing a mode transition according to the aforementioned method, wherein the transmission device comprises a compressor and the decompressor. The compressor is arranged to compress a header of the packet to be transmitted, and the decompressor is arranged to decompress a header of the received packet, wherein the received packet comprises any of the specific type of multiple consecutive packets.
The method of the present invention can perform mode transition on a plurality of sets of context data in a same compressor or decompressor. Additionally, the present invention can solve the problems of mode transition failing due to a lack of data or information. In addition, implementing the embodiments of the present invention will not greatly increase costs. Thus, the present invention can solve the problems of the related art without introducing side effects or in a way that is less likely to introduce side effects.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Robust header compression (RoHC) operations may comprise a plurality of modes such as a unidirectional (U) mode, an optimistic (O) mode, and a reliable (R) mode. In a data transmission process, the transmission device 10 and the transmission device 20 can perform mode transition between any two of the plurality of modes according to a current situation of the data transmission. Additionally, in a mode transition process, the mode transition may comprise three phases, comprising initiated (I) phase, pending (P) phase and done (D) phase, but the present invention is not limited thereto.
Similarly, multiple steps of other mode transitions (e.g. the U mode to the O mode, the R mode to the U mode, the R mode to the O mode, the O mode to the U mode, the O mode to the R mode) may be simultaneously performed on all context data belonging to the compressor 120 or the decompressor 240 according to the method of the present invention. Since those skilled in the art should understand implementation of the present invention method applied in other mode transitions after reading the above embodiments, related details are omitted for brevity.
Similarly, regarding other mode transitions (e.g. the R mode to the U mode, the R mode to the O mode, the O mode to the U mode, and the O mode to the R mode, where the case of the U mode to O mode is not included in this embodiment), the decompressor 240 can check whether the number of the specific type of multiple consecutive packets reaches the predetermined value, to determine whether to proceed a corresponding mode transition. For example, different target modes may correspond to different predetermined values, but the present invention is not limited thereto. Since those skilled in the art should understand implementation of the present invention method applied in other mode transitions after reading the above embodiments, related details are omitted for brevity.
To summarize, the method of the present invention can perform mode transitions on a plurality of sets of context data in a same compressor or decompressor; for example, all context data that belong to the compressor 120 or all context data that belong to the decompressor 240. Additionally, the method of the present invention can solve the problems of mode transition failing due to lack of data or information. In addition, implementing the embodiments of the present invention will not greatly increase costs. Thus, the present invention can solve the problems of the related art without introducing side effects or in a way that is less likely to introduce side effects.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201811238505.6 | Oct 2018 | CN | national |