CN113518081A - GIOP message transmission method - Google Patents
GIOP message transmission method Download PDFInfo
- Publication number
- CN113518081A CN113518081A CN202110700972.1A CN202110700972A CN113518081A CN 113518081 A CN113518081 A CN 113518081A CN 202110700972 A CN202110700972 A CN 202110700972A CN 113518081 A CN113518081 A CN 113518081A
- Authority
- CN
- China
- Prior art keywords
- replacement control
- control sequence
- message
- compression method
- repeated
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 231
- 230000005540 biological transmission Effects 0.000 title claims abstract description 24
- 230000006835 compression Effects 0.000 claims abstract description 165
- 238000007906 compression Methods 0.000 claims abstract description 165
- 230000006837 decompression Effects 0.000 claims description 52
- 108091081062 Repeated sequence (DNA) Proteins 0.000 claims description 27
- 238000010586 diagram Methods 0.000 description 21
- 230000003252 repetitive effect Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0233—Object-oriented techniques, for representation of network management data, e.g. common object request broker architecture [CORBA]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a GIOP message transmission method, which comprises the steps that attribute information of a GIOP message is determined through a terminal, the attribute information comprises a first attribute, a second attribute and a third attribute, the terminal determines a compression method according to the attribute information, the GIOP message is compressed through the compression method to obtain a compressed message, the compression method comprises a first compression method, a second compression method and a third compression method, the first compression method corresponds to the first attribute, the second compression method corresponds to the second attribute, the third compression method corresponds to the third attribute, and the terminal sends the compressed message to a server so that the server decompresses according to the compressed message, and the GIOP message can be transmitted in low-bandwidth connection after being optimally compressed.
Description
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a GIOP message transmission method.
Background
Object management organizations have developed a common object request broker architecture to allow interoperability between various existing hardware and software, supporting interaction between clients and servers with respect to objects in a particular implementation of the object request broker.
While GIOP (General Inter-ORB Protocol) in the common object request broker architecture is set for high bandwidth connections, GIOP is not suitable for the more and more popular wireless connections with relatively low bandwidth and other connections, and the use of high bandwidth connections to transmit GIOP messages is likely to cause waste of resources and costs.
Therefore, how to transmit GIOP messages over a low-bandwidth connection, saving resources and reducing costs is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to solve the technical problem that the GIOP message is not suitable for being transmitted on a low-bandwidth connection in the prior art, and provides a GIOP message transmission method.
On one hand, the technical scheme of the invention is as follows: a GIOP message transmission method is applied to a terminal, and comprises the following steps:
s1, the terminal determines the attribute information of the GIOP message, wherein the attribute information comprises a first attribute, a second attribute and a third attribute;
s2, the terminal determines a compression method according to the attribute information, and compresses the GIOP message through the compression method to obtain a compressed message, wherein the compression method comprises a first compression method, a second compression method and a third compression method, the first compression method corresponds to the first attribute, the second compression method corresponds to the second attribute, and the third compression method corresponds to the third attribute;
and S3, the terminal sends the compressed message to a server so that the server decompresses according to the compressed message.
Further, the first attribute is that the GIOP message includes only a pad value except for a message byte, the second attribute is that the GIOP message includes only a repetition sequence except for the message byte, the third attribute is that the GIOP message includes both the pad value and the repetition sequence except for the message byte, the first compression method is a padding value-based compression method, the second compression method is a repetition sequence-based compression method, and the third compression method is a compression method based on the pad value and the repetition sequence.
Further, the first compression method in step S2 specifically includes the following steps:
s211, determining a first filling replacement control sequence which is a single byte with 8 bits, wherein the first bit of the first filling replacement control sequence is set to be 0, and other bits of the first filling replacement control sequence are set to be an index of the next sequential filling replacement control sequence;
s212, placing the first padding replacement control sequence in the first byte of the GIOP message, sequentially replacing the padding values in the GIOP message by the sequential padding replacement control sequence, and each sequential padding replacement control sequence including an index of a next sequential padding replacement control sequence;
s213, completing compression after all the padding values in the GIOP message are replaced.
Further, the second compression method in step S2 specifically includes the following steps:
s221, determining a first repeated replacement control sequence, wherein the first repeated replacement control sequence is a single byte with 8 bits, the first bit of the first repeated replacement control sequence is set to be 1, and other bits of the first repeated replacement control sequence are set to be an index of the next sequential repeated replacement control sequence;
s222, placing the first repeated replacement control sequence in a first byte of the GIOP message, sequentially replacing the repeated sequences in the GIOP message by the sequential repeated replacement control sequence, where each sequential repeated replacement control sequence includes an index of a next sequential repeated replacement control sequence;
s223, completing compression after all the repeated sequences in the GIOP message are replaced.
Further, the third compression method in step 2 specifically includes the following steps:
s231, compressing the GIOP message by the first compression method to obtain a first compressed message;
s232, compressing the first compressed message by the second compression method to obtain a second compressed message, and completing compression.
On the other hand, the invention provides a GIOP message transmission method, which is applied to a server and comprises the following steps:
a1, the server receives the compressed message sent by the terminal;
a2, the server determines a decompression method according to the compression method of the compressed message, and decompresses the compressed message by the decompression method to obtain the GIOP message, wherein the compression method comprises a first compression method, a second compression method and a third compression method, the decompression method comprises a first decompression method, a second decompression method and a third decompression method, the first compression method corresponds to the first decompression method, the second compression method corresponds to the second decompression method, and the third compression method corresponds to the third decompression method.
Further, the first compression method is a padding value-based compression method, the second compression method is a repeated sequence-based compression method, the third compression method is a compression method based on the padding value and the repeated sequence, and the third compression method is a combination of the first compression method and the second compression method.
Further, the first decompression method in the step a2 specifically includes the following steps:
a211, determining a first padding replacement control sequence in the compressed message, where the first padding replacement control sequence is a single byte with 8 bits, where a first bit of the first padding replacement control sequence is 0, other bits of the first padding replacement control sequence are indexes of a next sequential padding replacement control sequence, and each of the sequential padding replacement control sequences includes an index of a next sequential padding replacement control sequence;
a212, determining all the sequential filling replacement control sequences based on the first filling replacement control sequence;
and A213, replacing all the sequential filling replacement control sequences by using the filling values to finish decompression.
Further, the second decompression method in the step a2 specifically includes the following steps:
a221, determining a first repeated replacement control sequence in the compressed message, where the first repeated replacement control sequence is a single byte with 8 bits, where a first bit of the first repeated replacement control sequence is 1, other bits of the first repeated replacement control sequence are set as an index of a next sequential repeated replacement control sequence, and each sequential repeated replacement control sequence includes an index of the next sequential repeated replacement control sequence;
a222, determining all the sequential repeated replacement control sequences based on the first repeated replacement control sequence;
and A223, replacing all the sequential repeated replacement control sequences by using repeated sequences to complete decompression.
Further, the third decompression method in the step a2 specifically includes the following steps:
a231, judging whether the first layer compression in the third compression method is the first compression method, if so, executing a step A232, and if not, executing a step A233;
a232, decompressing the compressed message by a second decompressing method to obtain a second decompressed message, and decompressing the second decompressed message by a first decompressing method to obtain the GIOP message;
a233, decompressing the compressed message by the first decompressing method to obtain a first decompressed message, and decompressing the first decompressed message by the second decompressing method to obtain the GIOP message.
Compared with the prior art, the invention has the following beneficial effects:
(1) the invention determines the attribute information of the GIOP message through a terminal, wherein the attribute information comprises a first attribute, a second attribute and a third attribute, the terminal determines a compression method according to the attribute information and compresses the GIOP message to obtain a compressed message, the compression method comprises a first compression method, a second compression method and a third compression method, the first compression method corresponds to the first attribute, the second compression method corresponds to the second attribute, the third compression method corresponds to the third attribute, and the terminal sends the compressed message to a server so that the server decompresses according to the compressed message, thereby realizing the transmission of the GIOP message in low-bandwidth connection after the GIOP message is optimally compressed.
(2) According to the method, the server receives the compressed message sent by the terminal, the server determines a decompression method according to the compression method of the compressed message and decompresses the compressed message, the compression method comprises a first compression method, a second compression method and a third compression method, the decompression method comprises a first decompression method, a second decompression method and a third decompression method, the first compression method corresponds to the first decompression method, the second compression method corresponds to the second decompression method, and the third compression method corresponds to the third decompression method, so that the compressed GIOP message can be decompressed in the server quickly.
(3) By setting different compression methods and corresponding decompression methods, the invention can realize more flexible processing and transmission of GIOP messages, so as to facilitate the transmission of the GIOP messages in low-bandwidth connection.
Drawings
Fig. 1 is a schematic flowchart illustrating a GIOP message transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a GIOP message transmission method according to another embodiment of the present application;
FIG. 3 is a sample format diagram of a first padding replacement control sequence according to the present application;
FIG. 4 is a diagram illustrating a format of a sequential padding replacement control sequence according to the present application;
fig. 5 is a schematic diagram illustrating an uncompressed format of a GIOP message under a first attribute in the present application;
fig. 6 is a schematic diagram illustrating a format of a GIOP message compressed by the first compression method in the present application;
FIG. 7 is a diagram illustrating a format sample of a first iterative replacement control sequence in the present application;
FIG. 8 is a diagram illustrating a control sequence for the sequential repetitive replacement of single byte values in the present application;
FIG. 9 is a diagram illustrating a control sequence for two-byte sequential repetitive replacement in the present application;
fig. 10 is a diagram illustrating an uncompressed format of a GIOP message under the second attribute in the present application;
fig. 11 is a schematic diagram illustrating a GIOP message format after being compressed by the second compression method in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of a GIOP message transmission method provided in an embodiment of the present application, which is applied to a terminal, and the method includes the following steps:
step S1, the terminal determines attribute information of the GIOP message, where the attribute information includes a first attribute, a second attribute, and a third attribute.
Step S2, the terminal determines a compression method according to the attribute information, and compresses the GIOP message through the compression method to obtain a compressed message, wherein the compression method comprises a first compression method, a second compression method and a third compression method, the first compression method corresponds to the first attribute, the second compression method corresponds to the second attribute, and the third compression method corresponds to the third attribute.
In an embodiment of the present application, the first attribute is that the GIOP message only includes a padding value except for a message byte, the second attribute is that the GIOP message only includes a repeating sequence except for the message byte, the third attribute is that the GIOP message includes both the padding value and the repeating sequence except for the message byte, the first compression method is a padding value-based compression method, the second compression method is a repeating sequence-based compression method, and the third compression method is a compression method based on the padding value and the repeating sequence.
The first compression method in step S2 specifically includes the following steps:
s211, determining a first filling replacement control sequence which is a single byte with 8 bits, wherein the first bit of the first filling replacement control sequence is set to be 0, and other bits of the first filling replacement control sequence are set to be an index of the next sequential filling replacement control sequence;
s212, placing the first padding replacement control sequence in the first byte of the GIOP message, sequentially replacing the padding values in the GIOP message by the sequential padding replacement control sequence, and each sequential padding replacement control sequence including an index of a next sequential padding replacement control sequence;
s213, completing compression after all the padding values in the GIOP message are replaced.
In a specific application scenario, fig. 3 is a schematic diagram showing a sample format of a first padding replacement control sequence, i.e., a first control byte in the diagram, in which padding characters, i.e., padding values, are removed to compress a message, the first padding replacement control sequence is shown as a single byte with 8 bits, which is very consistent with the current CORBA GIOP protocol, and other sequence lengths are also applicable thereto.
The first bit (0) of the first padding replacement control sequence is set to '0' and represents the GIOP message as including compression based on the padding value, and the remaining 7 bits (1-7) of the first padding replacement control sequence store an index to the first sequential padding replacement control sequence, i.e., an index of a next sequential padding replacement control sequence set by other bits in the first padding replacement control sequence, which is formatted as shown in fig. 3, and in the case where the first padding replacement control sequence has a length of 8 bits, the index may have a value between 0 and 127.
Fig. 4 is a schematic diagram showing a format of a sequential padding replacement control sequence, that is, a sequential control byte in the diagram, where the sequential padding replacement control sequence is a single byte, the first three bits (0-2) identify the length of the padding sequence, the next 5 bits (3-7) are stored in the index of the next sequential padding replacement control sequence, the length of the padding sequence may be from 0-7, the index of the next sequential padding replacement control sequence may be between 0-31, an index value of 0 identifies that the compression sequence has ended, and no further sequential padding replacement control sequence is in the GIOP message.
Fig. 5 is a diagram illustrating a format of a GIOP message under a first attribute when the GIOP message is uncompressed, the GIOP message will include a header of bytes, not shown in fig. 4 for clarity, and top and outer columns indicate positions of corresponding bytes in the message, so that the uncompressed message includes 84 bytes, a relatively large number of bytes have a value of "0", and the value is used as a value pad character for various message types. For example, bytes 1-3,5-7,9-B and D-F in the first row (row 0) are all "0".
Fig. 6 is a schematic diagram showing a format of a GIOP message compressed by the first compression method, in which a first padding replacement control sequence and a plurality of sequential padding replacement control sequences replace a padding value "0" in an uncompressed GIOP message, the first padding replacement control sequence being located in a first byte (0) of the compressed message, the first padding replacement control sequence having a binary-coded decimal value and a hexadecimal value equal to 2, the first padding replacement control sequence being identified in the diagram by a letter "fcb" in the first byte (0) of the compressed GIOP message, the decimal value being recorded in a top row of cells identifying corresponding bytes of the GIOP message, and the hexadecimal value being recorded in a second row of the cells and beginning with the letter "x", the decimal value 2 and the hexadecimal value 02 representing a bit string: "00000010", referring to the format shown in fig. 2, the first bit (0) represents the first padding control sequence and the remaining 7 bits (1-7) identify the index of the next sequential padding replacement control sequence, in this case, the index is equal to 2, and therefore the next sequential padding replacement control sequence is two bytes from the first replacement padding control sequence, occurring at the third byte (2) of the compressed GIOP message.
The sequential fill replacement control sequence has a decimal value 98 and a hexadecimal value 62 and is represented by the character string "scb", the decimal value 98 and the hexadecimal value 62 representing a bit string: "0110010", referring to fig. 3, the first three bits "011" correspond to the length of the padding sequence, and the remaining 5 bits "00010" correspond to the index of the next sequential padding replacement control sequence, so that the padding sequence has a length of 3 and the index to the next sequential padding replacement control sequence is equal to 2, confirming with reference to fig. 4 that the first padding sequence has a length of 3.
The terminal can easily identify the remaining sequential padding replacement sequences from the letter "scb" identifying the cell length of the compressed GIOP message bytes, the final sequential padding replacement control sequence is displayed at byte 61 (line 48, column C) with a decimal value of 96 and a hexadecimal value of 60, the decimal value 96 and the hexadecimal value 60 representing the bit string "01100000", the first three bits "011" of the bit string identifying the length of the padding sequence equal to 3, the last 5 bits "00000" identifying the index equal to 0, identifying that there is no further sequential padding replacement control sequence in the compressed GIOP message.
In this embodiment of the present application, the second compression method in step S2 specifically includes the following steps:
s221, determining a first repeated replacement control sequence, wherein the first repeated replacement control sequence is a single byte with 8 bits, the first bit of the first repeated replacement control sequence is set to be 1, and other bits of the first repeated replacement control sequence are set to be an index of the next sequential repeated replacement control sequence;
s222, placing the first repeated replacement control sequence in a first byte of the GIOP message, sequentially replacing the repeated sequences in the GIOP message by the sequential repeated replacement control sequence, where each sequential repeated replacement control sequence includes an index of a next sequential repeated replacement control sequence;
s223, completing compression after all the repeated sequences in the GIOP message are replaced.
In a specific application scenario, fig. 7 is a schematic diagram of a format sample of the first repeated replacement control sequence, that is, the first repeated replacement control byte in fig. 7, where the first repeated replacement control sequence has a length of one byte, a first bit (0) is set to "1" to identify that the GIOP message includes compression based on the repeated sequence, and the remaining 7 bits (1-7) represent an index of the first sequential repeated replacement control sequence, that is, a next sequential repeated replacement control sequence.
Fig. 8 is a diagram showing a sequential repeated replacement control sequence of a single byte value, that is, a sequential repeated replacement control byte of a single byte value in fig. 8, the first byte (0) being equal to "0" to indicate that the first sequential repeated replacement control is imaginary to have a length of one byte, the next 3 bits (1-3) represent a repeated sequence of a length or continuous value of a character string to be replaced, and the remaining 4 bytes represent an index of the next sequential repeated replacement control sequence.
Fig. 9 is a schematic diagram of a two-byte sequentially repeated replacement control sequence, that is, a two-byte sequentially repeated replacement control byte of fig. 9, where the two-byte length allows a longer repeat sequence length and/or a longer index value to be stored in the first sequentially repeated replacement control sequence, the first bit (0) is set equal to "1" to indicate that the first sequentially repeated replacement control sequence has a length of two bytes, the next 7 bits represent the length of the replaced sequence value repeat sequence in the message, the remaining 8 bits represent the index of the next sequentially repeated replacement control sequence, and a value between 0 and 255 may be stored, and an index value of 0 represents that there is no further sequentially repeated replacement control sequence in the op gimessage.
Fig. 10 is a diagram showing a format of a GIOP message under the second attribute when the GIOP message is not compressed, that is, an example of the GIOP message before the compressed repetitive sequence in fig. 10, which includes a repetitive sequence having decimal values 117,111,116,101,0,205,205, the first occurrence of the repetitive sequence of sequence values starts from the first byte (row 0, column a) in the uncompressed GIOP message, and the second occurrence starts from the 52 th byte (row 48, column 2).
Fig. 11 is a diagram showing a format of a GIOP message compressed by a second compression method, in which a repeated sequence of sequence values of an uncompressed GIOP message has been replaced with a first repeated replacement control sequence, the first sequentially repeated replacement control sequence and a sequential repeated replacement control sequence, the first repeated replacement control sequence (row 0, column 0) having a decimal value 138 and a hexadecimal value 8a represented by a string "10001010", an index of the first sequentially repeated replacement control sequence being determined to be 10, a first sequentially repeated replacement control sequence of 10 bytes being found from the first repeated replacement control sequence, a first byte (row 0, column B) of the first replacement control sequence having a decimal value 135 and a hexadecimal value 87 representing a bit sequence "10000111", it may be determined that a first bit (0) is set to 1 indicating that the first sequentially repeated replacement control sequence has a length of 2 bytes, the second byte of the first sequentially repeated replacement control sequence (row 0, column C) has a decimal value of 40 and a hexadecimal value of 28, representing a bit string of "00101000", it can be determined that the repeated sequence of the second to eighth bit identification sequence values contains 7 bytes, it can be determined that the remaining 8 bits of the first sequentially repeated replacement control sequence represent the index of the next sequentially repeated replacement control sequence, which is the value stored in the second byte (row 0, column C) of the first sequentially repeated replacement control sequence, corresponds to the bit string of "00101000", and has a decimal value of 40, and therefore, in the repeated sequence compressed GIOP message, 40 bytes of the next sequentially repeated replacement control sequence are found from the first sequentially repeated replacement control sequence (row 48, column 5), the decimal value of the sequentially repeated replacement control sequence is equal to 0, it can be determined that the index of the next sequentially repeated replacement control sequence is equal to 0, indicating that the replacement control sequence is not repeated in further order.
In this embodiment of the present application, the third compression method in step 2 specifically includes the following steps:
s231, compressing the GIOP message by the first compression method to obtain a first compressed message;
s232, compressing the first compressed message by the second compression method to obtain a second compressed message, and completing compression.
And step S3, the terminal sends the compressed message to a server so that the server decompresses according to the compressed message.
Specifically, the GIOP message sometimes includes both the pad value and the repeated sequence, and thus, the GIOP message is compressed using a third compression method, which is a combination of the first compression method and the second compression method, replacing the pad value and the repeated sequence, respectively.
And finally, the terminal sends the compressed message to the server.
On the other hand, another embodiment of the present application provides a GIOP message transmission method, applied to a server, as shown in fig. 2, where the method includes the following steps:
step A1, the server receives the compressed message sent from the terminal.
Step a2, the server determines a decompression method according to the compression method of the compressed message, and decompresses the compressed message by the decompression method to obtain the GIOP message, where the compression method includes a first compression method, a second compression method, and a third compression method, the decompression method includes a first decompression method, a second decompression method, and a third decompression method, the first compression method corresponds to the first decompression method, the second compression method corresponds to the second decompression method, and the third compression method corresponds to the third decompression method.
The first compression method is a padding value-based compression method, the second compression method is a repeated sequence-based compression method, the third compression method is a compression method based on the padding value and the repeated sequence, and the third compression method is a combination of the first compression method and the second compression method.
In another embodiment of the present application, the first decompression method in step a2 specifically includes the following steps:
a211, determining a first padding replacement control sequence in the compressed message, where the first padding replacement control sequence is a single byte with 8 bits, where a first bit of the first padding replacement control sequence is 0, other bits of the first padding replacement control sequence are indexes of a next sequential padding replacement control sequence, and each of the sequential padding replacement control sequences includes an index of a next sequential padding replacement control sequence;
a212, determining all the sequential filling replacement control sequences based on the first filling replacement control sequence;
and A213, replacing all the sequential filling replacement control sequences by using the filling values to finish decompression.
In a specific application scenario, the server determines, according to an index in the first filling replacement control sequence, a position of the first sequential filling replacement control sequence, where the first sequential filling replacement control sequence is a next sequential filling replacement control sequence corresponding to indexes of other bits in the first filling replacement control sequence, determines a number of sequential filling values from the first sequential filling replacement control sequence, where the first sequential filling replacement control sequence is replaced by the corresponding number of filling values, and determines, according to the index, whether the next sequential filling replacement control sequence exists, where if the next sequential filling replacement control sequence does not exist, decompression is complete, and if the next sequential filling replacement control sequence exists, determines a number of filling values from the next sequential filling replacement control sequence, and uses the corresponding filling values to replace the sequential filling replacement control sequence.
In another embodiment of the present application, the second decompression method in step a2 specifically includes the following steps:
a221, determining a first repeated replacement control sequence in the compressed message, where the first repeated replacement control sequence is a single byte with 8 bits, where a first bit of the first repeated replacement control sequence is 1, other bits of the first repeated replacement control sequence are indexes of a next sequential repeated replacement control sequence, and each sequential repeated replacement control sequence includes an index of the next sequential repeated replacement control sequence;
a222, determining all the sequential repeated replacement control sequences based on the first repeated replacement control sequence;
and A223, replacing all the sequential repeated replacement control sequences by using repeated sequences to complete decompression.
In another embodiment of the present application, the third decompression method in step a2 specifically includes the following steps:
in a specific application scenario, the server removes the first repeated replacement control sequence from the compressed message and determines the length of the repeated sequence of sequential values from the first sequentially repeated replacement control sequence while determining the value of the index from the first sequentially repeated replacement control sequence to the next sequentially repeated replacement control sequence, and if the index is equal to zero, no further repeated replacement control sequence exists.
A231, judging whether the first layer compression in the third compression method is the first compression method, if so, executing a step A232, and if not, executing a step A233;
a232, decompressing the compressed message by a second decompressing method to obtain a second decompressed message, and decompressing the second decompressed message by a first decompressing method to obtain the GIOP message;
a233, decompressing the compressed message by the first decompressing method to obtain a first decompressed message, and decompressing the first decompressed message by the second decompressing method to obtain the GIOP message.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.
Claims (10)
1. A GIOP message transmission method is applied to a terminal and is characterized by comprising the following steps:
s1, the terminal determines the attribute information of the GIOP message, wherein the attribute information comprises a first attribute, a second attribute and a third attribute;
s2, the terminal determines a compression method according to the attribute information, and compresses the GIOP message through the compression method to obtain a compressed message, wherein the compression method comprises a first compression method, a second compression method and a third compression method, the first compression method corresponds to the first attribute, the second compression method corresponds to the second attribute, and the third compression method corresponds to the third attribute;
and S3, the terminal sends the compressed message to a server so that the server decompresses according to the compressed message.
2. The GIOP message transmission method of claim 1, wherein the first attribute is that the GIOP message comprises only a pad value except message bytes, the second attribute is that the GIOP message comprises only a repeated sequence except the message bytes, the third attribute is that the GIOP message comprises both the pad value and the repeated sequence except the message bytes, the first compression method is a padding value-based compression method, the second compression method is a repeated sequence-based compression method, and the third compression method is a compression method based on the pad value and the repeated sequence.
3. The GIOP message transmission method according to claim 2, wherein the first compression method in the step S2 specifically comprises the steps of:
s211, determining a first filling replacement control sequence which is a single byte with 8 bits, wherein the first bit of the first filling replacement control sequence is set to be 0, and other bits of the first filling replacement control sequence are set to be an index of the next sequential filling replacement control sequence;
s212, placing the first padding replacement control sequence in the first byte of the GIOP message, sequentially replacing the padding values in the GIOP message by the sequential padding replacement control sequence, and each sequential padding replacement control sequence including an index of a next sequential padding replacement control sequence;
s213, completing compression after all the padding values in the GIOP message are replaced.
4. The GIOP message transmission method according to claim 2, wherein the second compression method in the step S2 specifically comprises the steps of:
s221, determining a first repeated replacement control sequence, wherein the first repeated replacement control sequence is a single byte with 8 bits, the first bit of the first repeated replacement control sequence is set to be 1, and other bits of the first repeated replacement control sequence are set to be an index of the next sequential repeated replacement control sequence;
s222, placing the first repeated replacement control sequence in a first byte of the GIOP message, sequentially replacing the repeated sequences in the GIOP message by the sequential repeated replacement control sequence, where each sequential repeated replacement control sequence includes an index of a next sequential repeated replacement control sequence;
s223, completing compression after all the repeated sequences in the GIOP message are replaced.
5. The GIOP message transmission method according to claim 2, wherein the third compression method in the step S2 specifically comprises the steps of:
s231, compressing the GIOP message by the first compression method to obtain a first compressed message;
s232, compressing the first compressed message by the second compression method to obtain a second compressed message, and completing compression.
6. A GIOP message transmission method is applied to a server and is characterized by comprising the following steps:
a1, the server receives the compressed message sent by the terminal;
a2, the server determines a decompression method according to the compression method of the compressed message, and decompresses the compressed message by the decompression method to obtain the GIOP message, wherein the compression method comprises a first compression method, a second compression method and a third compression method, the decompression method comprises a first decompression method, a second decompression method and a third decompression method, the first compression method corresponds to the first decompression method, the second compression method corresponds to the second decompression method, and the third compression method corresponds to the third decompression method.
7. The GIOP message transmission method of claim 6, wherein the first compression method is a padding value-based compression method, the second compression method is a repeated sequence-based compression method, the third compression method is a compression method based on the padding value and the repeated sequence, and the third compression method is a combination of the first compression method and the second compression method.
8. The GIOP message transmission method according to claim 7, wherein the first decompression method in the step a2 specifically comprises the steps of:
a211, determining a first padding replacement control sequence in the compressed message, where the first padding replacement control sequence is a single byte with 8 bits, where a first bit of the first padding replacement control sequence is 0, other bits of the first padding replacement control sequence are indexes of a next sequential padding replacement control sequence, and each of the sequential padding replacement control sequences includes an index of a next sequential padding replacement control sequence;
a212, determining all the sequential filling replacement control sequences based on the first filling replacement control sequence;
and A213, replacing all the sequential filling replacement control sequences by using the filling values to finish decompression.
9. The GIOP message transmission method according to claim 7, wherein the second decompression method in the step a2 specifically comprises the steps of:
a221, determining a first repeated replacement control sequence in the compressed message, where the first repeated replacement control sequence is a single byte with 8 bits, where a first bit of the first repeated replacement control sequence is 1, other bits of the first repeated replacement control sequence are indexes of a next sequential repeated replacement control sequence, and each sequential repeated replacement control sequence includes an index of the next sequential repeated replacement control sequence;
a222, determining all the sequential repeated replacement control sequences based on the first repeated replacement control sequence;
and A223, replacing all the sequential repeated replacement control sequences by using repeated sequences to complete decompression.
10. The GIOP message transmission method according to claim 7, wherein the third decompression method in the step a2 specifically comprises the steps of:
a231, judging whether the first layer compression in the third compression method is the first compression method, if so, executing a step A232, and if not, executing a step A233;
a232, decompressing the compressed message by a second decompressing method to obtain a second decompressed message, and decompressing the second decompressed message by a first decompressing method to obtain the GIOP message;
a233, decompressing the compressed message by the first decompressing method to obtain a first decompressed message, and decompressing the first decompressed message by the second decompressing method to obtain the GIOP message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110700972.1A CN113518081B (en) | 2021-06-24 | 2021-06-24 | GIOP message transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110700972.1A CN113518081B (en) | 2021-06-24 | 2021-06-24 | GIOP message transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113518081A true CN113518081A (en) | 2021-10-19 |
CN113518081B CN113518081B (en) | 2021-11-30 |
Family
ID=78066023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110700972.1A Active CN113518081B (en) | 2021-06-24 | 2021-06-24 | GIOP message transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113518081B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01302917A (en) * | 1988-05-31 | 1989-12-06 | Olympus Optical Co Ltd | Data compression system |
US20040090351A1 (en) * | 2002-11-04 | 2004-05-13 | Kesheng Wu | Word aligned hybrid bitmap compression method, data structure, and apparatus |
CN103716843A (en) * | 2012-09-28 | 2014-04-09 | 上海摩波彼克半导体有限公司 | Compress-mode pattern overlapping detection method and apparatus |
CN104734722A (en) * | 2013-12-23 | 2015-06-24 | 深圳市国微电子有限公司 | Data compression method and data decompression device |
CN104967498A (en) * | 2015-06-11 | 2015-10-07 | 中国电子科技集团公司第五十四研究所 | History-based satellite network data packet compression and transmission method |
CN111680035A (en) * | 2020-05-07 | 2020-09-18 | 中国工业互联网研究院 | Compression coding and decoding method for network stream data and bitmap index thereof |
US20210006262A1 (en) * | 2015-11-10 | 2021-01-07 | International Business Machines Corporation | Fast evaluation of predicates against compressed data |
-
2021
- 2021-06-24 CN CN202110700972.1A patent/CN113518081B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01302917A (en) * | 1988-05-31 | 1989-12-06 | Olympus Optical Co Ltd | Data compression system |
US20040090351A1 (en) * | 2002-11-04 | 2004-05-13 | Kesheng Wu | Word aligned hybrid bitmap compression method, data structure, and apparatus |
CN103716843A (en) * | 2012-09-28 | 2014-04-09 | 上海摩波彼克半导体有限公司 | Compress-mode pattern overlapping detection method and apparatus |
CN104734722A (en) * | 2013-12-23 | 2015-06-24 | 深圳市国微电子有限公司 | Data compression method and data decompression device |
CN104967498A (en) * | 2015-06-11 | 2015-10-07 | 中国电子科技集团公司第五十四研究所 | History-based satellite network data packet compression and transmission method |
US20210006262A1 (en) * | 2015-11-10 | 2021-01-07 | International Business Machines Corporation | Fast evaluation of predicates against compressed data |
CN111680035A (en) * | 2020-05-07 | 2020-09-18 | 中国工业互联网研究院 | Compression coding and decoding method for network stream data and bitmap index thereof |
Non-Patent Citations (1)
Title |
---|
程一飞: "长度折半的测试资源编码方法", 《电子测量与仪器学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113518081B (en) | 2021-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6489902B2 (en) | Data compression for use with a communications channel | |
US20020145545A1 (en) | Entropy coding using adaptable prefix codes | |
EP2472813A1 (en) | Method and device for user datagram protocol packet compression and decompression | |
US20060291505A1 (en) | Method for extended transmission capabilities of short message service | |
CN108737976A (en) | A kind of compression transmitting method based on Big Dipper short message | |
EP1634423B1 (en) | System and method for compressing url request parameters | |
US6788224B2 (en) | Method for numeric compression and decompression of binary data | |
EP0678986A1 (en) | Data compression method and system | |
US5592512A (en) | Adaptive display refresh and data compression in a radio frequency environment | |
CN113518081B (en) | GIOP message transmission method | |
US6750791B1 (en) | Method and device for text data compression | |
US6289130B1 (en) | Method for real-time lossless data compression of computer data | |
CN105704215B (en) | Shared file system and corresponding document sending method and device | |
WO2002058379A1 (en) | Method for electronic transport of digital ink | |
CN114979094B (en) | RTP-based data transmission method, device, equipment and medium | |
CN114979093B (en) | RTP-based data transmission method, device, equipment and medium | |
CN112017049B (en) | Security quotation forwarding system and method | |
CN110851155A (en) | Method and device for changing theme colors of set top box interface | |
CN106027521A (en) | Compression method, decompression method, compression device and decompression device | |
US5889818A (en) | Adaptive display refresh and data compression in a radio frequency environment | |
EP2113845A1 (en) | Character conversion method and apparatus | |
CN114024952A (en) | File compression transmission method based on DL/T698.45-2007 protocol | |
KR102098644B1 (en) | Method and apparatus for compressing utf-8 code character | |
KR20190091586A (en) | TCP/IP Packet data compression method and appratus based on binary compression method | |
US6433708B1 (en) | Method of encoding binary data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A GIOP message transmission method Granted publication date: 20211130 Pledgee: Agricultural Bank of China Limited by Share Ltd. Chengdu high tech Industrial Development Zone Branch Pledgor: Chengdu Xieying Technology Co.,Ltd. Registration number: Y2024510000088 |