CN112217839A - Message processing method, device, equipment and storage medium - Google Patents
Message processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112217839A CN112217839A CN202011280807.7A CN202011280807A CN112217839A CN 112217839 A CN112217839 A CN 112217839A CN 202011280807 A CN202011280807 A CN 202011280807A CN 112217839 A CN112217839 A CN 112217839A
- Authority
- CN
- China
- Prior art keywords
- message
- compression
- information
- reference information
- preset
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 33
- 230000006835 compression Effects 0.000 claims abstract description 164
- 238000007906 compression Methods 0.000 claims abstract description 164
- 238000012545 processing Methods 0.000 claims abstract description 54
- 238000000034 method Methods 0.000 claims description 39
- 238000013461 design Methods 0.000 description 23
- 230000008569 process Effects 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006837 decompression Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 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/22—Parsing or analysis of headers
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides a message processing method, a message processing device and a storage medium, wherein the message processing method comprises the following steps: acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of first equipment and/or message information of a first message; processing the first message according to the compression configuration information and the reference information to obtain a second message; and sending the second message to the second equipment. For reducing the occupancy of system resources of the first device.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, a device, and a storage medium for processing a packet.
Background
Currently, data transmission can be performed between a transmitting end and a receiving end through a Long Term Evolution (LTE)/New Radio (NR) network.
In the related art, before a sending end sends Data to a receiving end, a compressor in the sending end (terminal equipment or network equipment) is usually configured in a compressing manner, so that the compressor compresses all messages passing through a Packet Data Convergence Protocol (PDCP) layer to obtain compressed messages; and transmits the compressed message to other layers, such as a Radio Link Control (RLC) layer, a Media Access Control (MAC) layer, and the like.
However, in the above process, after performing compression configuration on the compressor of the sending end, the compressor needs to perform compression processing on all packets passing through the PDCP layer, which results in a large occupancy rate on system resources (e.g., memory, CPU, etc.) of the sending end.
Disclosure of Invention
The embodiment of the application provides a message processing method, a message processing device and a message processing storage medium, which are used for reducing the occupancy rate of system resources of first equipment.
In a first aspect, an embodiment of the present application provides a message processing method, applied to a first device, including:
acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of first equipment and/or message information of a first message;
processing the first message according to the compression configuration information and the reference information to obtain a second message;
and sending the second message to the second equipment.
In one possible design, the device information includes at least one of:
the processor occupancy rate of the first device, the signal strength of the first device for receiving the signal, the signal bandwidth corresponding to the first device, the signal-to-noise ratio of the first device for receiving the signal, and the decoding success rate of the first device;
the message information includes: the compression ratio of the first packet.
In one possible design, processing the first packet according to the compression configuration information and the reference information to obtain a second packet includes:
determining whether to compress the first message or not according to the compression configuration information and the reference information;
if so, compressing the first message to obtain a second message;
and if not, updating the compression flag bit in the first message to obtain a second message.
In one possible design, determining whether to compress the first packet according to the compression configuration information and the reference information includes:
acquiring a compression identifier in the compression configuration information;
when the compression identification indicates that message compression is performed and the reference information meets a preset condition, determining that compression processing is performed on the first message;
and when the compression identifier indicates that the message is not compressed or the reference information does not meet the preset condition, determining that the first message is not compressed.
In one possible design, the preset condition includes at least one of:
the compression ratio is greater than or equal to a preset compression ratio threshold value; or the like, or, alternatively,
the occupancy rate of the processor is greater than or equal to a preset occupancy rate threshold value; or the like, or, alternatively,
the signal intensity is less than or equal to a preset intensity threshold; or the like, or, alternatively,
the signal bandwidth is less than or equal to a preset bandwidth threshold; or the like, or, alternatively,
the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold value; or the like, or, alternatively,
the decoding success rate is greater than or equal to a preset success rate threshold.
In one possible design, the first packet includes data bits and a compression flag bit; compressing the first message to obtain a second message, including:
compressing the data bits to obtain a first compressed message;
and setting the compression flag bit in the first compressed message as a first identifier to obtain a second message, wherein the first identifier is used for indicating that the second message is a compressed message.
In one possible design, updating the compression flag in the first message to obtain the second message includes:
and setting a second identifier for the compression flag bit in the first message to obtain a second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
In a second aspect, an embodiment of the present application provides a packet processing apparatus, which is applied to a first device, and includes: an acquisition module, a processing module and a sending module, wherein,
the acquisition module is used for acquiring the compression configuration information and the reference information, wherein the reference information comprises equipment information of the first equipment and/or message information of the first message;
the processing module is used for processing the first message according to the compression configuration information and the reference information to obtain a second message;
the sending module is used for sending the second message to the second device.
In one possible design, the device information includes at least one of:
the processor occupancy rate of the first device, the signal strength of the first device for receiving the signal, the signal bandwidth corresponding to the first device, the signal-to-noise ratio of the first device for receiving the signal, and the decoding success rate of the first device;
the message information includes: the compression ratio of the first packet.
In one possible design, the processing module is specifically configured to:
determining whether to compress the first message or not according to the compression configuration information and the reference information;
if so, compressing the first message to obtain a second message;
and if not, updating the compression flag bit in the first message to obtain a second message.
In one possible design, the processing module is specifically configured to:
acquiring a compression identifier in the compression configuration information;
when the compression identification indicates that message compression is performed and the reference information meets a preset condition, determining that compression processing is performed on the first message;
and when the compression identifier indicates that the message is not compressed or the reference information does not meet the preset condition, determining that the first message is not compressed.
In one possible design, the preset condition includes at least one of:
the compression ratio is greater than or equal to a preset compression ratio threshold value; or the like, or, alternatively,
the occupancy rate of the processor is greater than or equal to a preset occupancy rate threshold value; or the like, or, alternatively,
the signal intensity is less than or equal to a preset intensity threshold; or the like, or, alternatively,
the signal bandwidth is less than or equal to a preset bandwidth threshold; or the like, or, alternatively,
the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold value; or the like, or, alternatively,
the decoding success rate is greater than or equal to a preset success rate threshold.
In one possible design, the first packet includes data bits and a compression flag bit; the processing module is specifically configured to:
compressing the data bits to obtain a first compressed message;
and setting the compression flag bit in the first compressed message as a first identifier to obtain a second message, wherein the first identifier is used for indicating that the second message is a compressed message.
In one possible design, the processing module is specifically configured to:
and setting a second identifier for the compression flag bit in the first message to obtain a second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
In a third aspect, an embodiment of the present application provides a message processing apparatus, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to cause the processor to perform the message processing method of any of the first aspects.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, which includes a program or an instruction, and when the program or the instruction is executed on a computer, the message processing method according to any one of the above first aspects is provided.
The embodiment of the application provides a message processing method, a message processing device, a message processing apparatus and a storage medium, wherein the message processing method comprises the following steps: acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of first equipment and/or message information of a first message; and processing the first message according to the compression configuration information and the reference information to obtain a second message, and sending the second message to the decompressor. In the method, the compressor processes the first message according to the compression configuration information and the reference information to obtain the second message, so that the compressor can avoid compressing all the first messages passing through the PDCP layer after the compressor is subjected to compression configuration, and the occupancy rate of the system resources of the first equipment is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to the drawings without inventive exercise.
Fig. 1 is an application scenario diagram of a message processing method according to an embodiment of the present application;
fig. 2 is a first schematic flow chart of a message processing method according to an embodiment of the present application;
fig. 3 is a second flowchart illustrating a message processing method according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of a first device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the LTE/NR, in order to save wireless transmission resources between a first device and a second device, a compressor of the first device is usually configured to compress before the first device transmits data to the second device, so that the first device compresses all packets passing through a PDCP layer in a Robust Header Compression (ROHC) or Ethernet Header Compression (EHC) manner to obtain compressed packets; and pass the compact message to other layers.
However, in the above prior art, after the compressor of the first device is configured to compress, the compressor compresses all packets passing through the PDCP layer, which results in a large occupancy rate of system resources of the first device. In order to solve the problem that the occupancy rate of the system resources of the first device is large, the application provides a message processing method, and the message is processed according to the compression configuration information and the reference information, so that the occupancy rate of the system resources of the first device is reduced.
An application scenario of the message processing method provided by the present application is described below with reference to fig. 1.
Fig. 1 is an application scenario diagram of a message processing method according to an embodiment of the present application. As shown in fig. 1, includes: a first device and a second device.
For example, the first device includes a compressor, a PDCP layer, and other layers, and the second device includes a decompressor, a PDCP layer, and other layers.
The compressor may process the first packet passing through the PDCP layer according to the compression configuration information and the reference information to obtain a second packet, and send the second packet to the decompressor through another layer according to the packet processing method provided by the application, where the second packet includes a compression flag. In the decompressor, the decompressor may determine whether to decompress the second packet passing through the PDCP layer according to the compression flag, and send the decompressed second packet to another layer. In the method, the first message is processed according to the compression configuration information and the reference information by the compressor to obtain the second message, so that the occupancy rate of the system resource of the first equipment can be reduced.
It should be noted that, in the first device, the other layers may include: radio Link Control protocol (RLC) layer. At the second device, when the communication network is NR, the other layers may include: in the NR Service Data Adaptation Protocol (SDAP) layer; when the communication network is LTE, other layers may include: application layer.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first schematic flow chart of a message processing method according to an embodiment of the present application. As shown in fig. 2, the message processing method provided in this embodiment includes:
s201, acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of the first equipment and/or message information of the first message.
Optionally, the execution main body in the embodiment of the present application may be the first device, and may also be a message processing apparatus in the first device, where the message processing apparatus may be implemented by a combination of software and/or hardware. For example, the message processing apparatus may be in a compressor in the first device.
Optionally, the compression configuration information includes a compression identifier, where the compression identifier is used to indicate that the packet is adaptively compressed or not.
For example, the compression identifier may be a first preset identifier or a second preset identifier, where the first preset identifier is used to indicate that the packet is adaptively compressed, and the second preset identifier is used to indicate that the packet is not adaptively compressed. Alternatively, the first preset flag may be 0 or 1, and the second preset flag may be 1 or 0. Specifically, when the first preset flag is 1, the second preset flag is 0.
In one possible design, the device information includes at least one of: the processor occupancy rate of the first device, the Signal strength of the first device receiving signals, the Signal bandwidth corresponding to the first device, the Signal to Noise Ratio (SNR) of the first device receiving signals, and the decoding success rate of the first device;
the message information includes: the compression ratio of the first packet. The first packet may be an original packet received by the compressor. For example, the original message may be an IP Datagram (IP Datagram), or an ethernet message. Wherein, the first message is an original message.
S202, processing the first message according to the compression configuration information and the reference information to obtain a second message.
Optionally, when the compression identifier in the compression configuration information indicates that the message is subjected to adaptive compression, after it is determined that the reference information meets the preset condition, the first message may be processed and compressed to obtain a second message;
when the compression identifier in the compression configuration information indicates that the message is not compressed adaptively, or when the reference information meets a non-preset condition, the first message may be updated to obtain a second message.
For example, when the reference information includes the processor occupancy rate and the message information includes the compression rate, a first preset weight corresponding to the processor occupancy rate and a second preset weight corresponding to the compression rate may be obtained, a load index may be determined according to the processor occupancy rate, the first preset weight, the compression rate and the second preset weight, and when the load index is less than or equal to the preset index, the reference information may be determined to satisfy a preset condition, and then the first message may be processed and compressed to obtain a second message. Wherein the load index may be equal to a product of the processor occupancy and a first preset weight plus a product of the compression ratio and a second preset weight.
For example, when the reference information includes the processor occupancy rate and the message information includes a compression rate, when the compression identifier in the compression configuration information indicates that the message is not compressed adaptively, or when the reference information satisfies a non-preset condition (for example, the load index is greater than the preset index), the first message is updated to obtain the second message.
S203, sending a second message to the second device.
It should be noted that the first packet has a compression flag bit (R bit), and after the first packet is processed and compressed, the compression flag bit is set as a first identifier; updating the first packet includes setting the compression flag to the second flag.
In this application, the first device may be a terminal device or a network device. The second device may be a terminal device or a network device. For example, when the first device is a terminal device, the second device is a network device. For example, when the second device is a terminal device, the first device is a network device
The message processing method provided by the embodiment of the application comprises the following steps: acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of first equipment and/or message information of a first message; and processing the first message according to the compression configuration information and the reference information to obtain a second message, and sending the second message to the decompressor. In the method, the compressor processes the first message according to the compression configuration information and the reference information to obtain the second message, so that the compressor can avoid compressing all the first messages passing through the PDCP layer after the compressor is subjected to compression configuration, and the occupancy rate of the system resources of the first equipment is reduced.
On the basis of the above embodiments, the following describes the message processing method provided in the embodiment of the present application with reference to fig. 3.
Fig. 3 is a second flowchart of a message processing method according to an embodiment of the present application. As shown in fig. 3, the message processing method provided in this embodiment includes:
s301, compression configuration information and reference information are obtained, wherein the reference information comprises equipment information of a compressor and/or message information of a first message.
Specifically, the execution method of S301 is the same as the execution method of S201, and is not described herein again.
S302, according to the compression configuration information and the reference information, whether the first message is compressed or not is determined.
If yes, go to S303.
If not, go to step S304.
In one possible design, determining whether to compress the first packet according to the compression configuration information and the reference information includes:
acquiring a compression identifier in the compression configuration information;
when the compression identification indicates that message compression is performed and the reference information meets a preset condition, determining that compression processing is performed on the first message;
and when the compression identifier indicates that the message is not compressed or the reference information does not meet the preset condition, determining that the first message is not compressed.
In one possible design, the preset condition includes at least one of:
the compression ratio is greater than or equal to a preset compression ratio threshold value; or the like, or, alternatively,
the occupancy rate of the processor is greater than or equal to a preset occupancy rate threshold value; or the like, or, alternatively,
the signal intensity is less than or equal to a preset intensity threshold; or the like, or, alternatively,
the signal bandwidth is less than or equal to a preset bandwidth threshold; or the like, or, alternatively,
the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold value; or the like, or, alternatively,
the decoding success rate is greater than or equal to a preset success rate threshold.
Specifically, the compression ratio is equal to the ratio of the header length M of the first packet to the total length N of the first packet. In practical application, after the first packet is obtained, the compression rate may be determined according to the header length M and the total length N.
Specifically, the processor occupancy may be obtained by detecting the occupancy of the processor by a detection device in the first device.
Specifically, the signal strength and the signal bandwidth may be obtained by a wireless uplink authorization method, or may be obtained by other methods. For example, the method of wireless uplink grant includes: signal strength and/or signal bandwidth transmitted by the second device to the first device.
Specifically, the signal-to-noise ratio may be obtained after the first device measures the wireless signal.
Specifically, the decoding success rate may be obtained after the first device decodes another message except the first message.
S303, compressing the first message to obtain a second message.
In one possible design, the first packet includes data bits and a compression flag bit; compressing the first message to obtain a second message, including:
compressing the data bits to obtain a first compressed message;
and setting the compression flag bit in the first compressed message as a first identifier to obtain a second message, wherein the first identifier is used for indicating that the second message is a compressed message.
In another possible design, the first packet includes data bits and a compression flag bit; compressing the first message to obtain a second message, including:
setting a compression flag bit in a first message as a first identifier;
and compressing the first message with the compression flag bit as the first identifier to obtain a second message.
S304, updating the compression flag bit in the first message to obtain a second message.
And setting a second identifier for the compression flag bit in the first message to obtain a second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
S305, sending a second message to the second device.
Optionally, the second packet may be a PDCP Protocol Data Unit (PDU).
The message processing method provided by the embodiment comprises the following steps: acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of a compressor and/or message information of a first message; determining whether to compress the first message or not according to the compression configuration information and the reference information; if so, compressing the first message to obtain a second message; if not, updating the compression flag bit in the first message to obtain a second message, and sending the second message to the second device. In the method, if the first message is determined to be compressed according to the compression configuration information and the reference information, the first message is compressed by the compressor, and if the first message is determined not to be compressed according to the compression configuration information and the reference information, the compression flag bit in the first message is updated, so that the occupancy rate of the system resource of the first device can be reduced.
Further, in the prior art, if the cost of the first device is low (the system configuration is low), after the compressor is configured to compress, the compressor compresses all the first packets passing through the PDCP layer, which may reduce the data processing efficiency of the first device, and further result in a low packet transmission rate between the first device and the second device. In the application, if the compressor is configured to compress (that is, the compression identifier indicates to compress the packet), the compressor compresses the first packet only when the reference information meets the preset condition, so that the data processing efficiency of the first device can be improved, and the packet transmission rate between the first device and the second device can be further improved. Therefore, in summary, in the present application, when the cost of the first device is low (the system configuration is low), the first device may also process the first packet quickly and send the second packet to the second device, so as to improve the packet uploading efficiency of the first device.
In practical applications, when radio resources (e.g., signal bandwidth and signal strength) between the first device and the second device are sufficient, the first message may be directly sent to the second device through the PDCP layer and other layers without being compressed. However, in the prior art, when the radio resources between the first device and the second device are sufficient, after the compressor is configured to compress, the compressor still compresses all messages passing through the PDCP layer, which results in a large system overhead (e.g., memory usage or processor usage) of the first device, and reduces the user experience of the first device, for example, the first device is stuck when the user plays a game or looks at a screen using the compressor. In the present application, when the wireless resource is insufficient (the signal strength is less than or equal to the preset strength threshold, or the signal bandwidth is less than or equal to the preset bandwidth threshold), the first message is not compressed; when the wireless resources are sufficient (the signal strength is greater than the preset strength threshold value, or the signal bandwidth is greater than the preset bandwidth threshold value), the first message is compressed, so that the system overhead of the first device can be reduced, and the user experience of the first device is improved.
Based on the above embodiment, a message transmission process between the first device and the second device is described below with reference to fig. 4.
Fig. 4 is a third schematic flowchart of a message processing method according to an embodiment of the present application. As shown in fig. 4, the message processing method provided in this embodiment includes:
s401, the first device obtains compression configuration information and reference information, wherein the reference information comprises device information of a compressor and/or message information of a first message.
S402, the first device obtains a compression identifier in the compression configuration information.
S403, the first device judges whether the compression identifier indicates to perform message compression.
If yes, go to S404.
If not, go to S407.
S404, the first device judges whether the reference information meets a preset condition.
If yes, execute 405-S406.
If not, go to S407.
S405, the first device compresses the data bits to obtain a first compressed message.
Specifically, a compressor in the first device compresses the data bits according to a preset compression algorithm to obtain a first compressed packet.
S406, the first device sets the compression flag bit in the first compressed message as a first identifier to obtain a second message, wherein the first identifier is used for indicating that the second message is a compressed message.
S407, the first device sets a second identifier for the compression flag bit in the first message to obtain a second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
S408, the first device sends a second message to the second device.
S409, the second equipment acquires the compression flag bit in the second message.
The second message comprises a compression flag bit and the first compression message.
Specifically, the decompressor in the second device may obtain the compression flag bit from the second packet.
And S410, after the second device determines that the compression flag bit is the first identifier, decompressing the second message to obtain a decompressed second message.
Optionally, the second device may determine whether the compression flag bit is the first identifier, and if so, decompress the second message to obtain a decompressed second message, and further send the decompressed second message to other layers; and if not, sending a second message to other layers.
Specifically, a decompressor in the second device compresses a first compressed message in the second message according to a preset decompression algorithm to obtain the second message. Wherein the preset decompression algorithm corresponds to a preset compression algorithm. Specifically, the decompressor sends the decompressed second message to the other layer. Specifically, the decompressor sends the second message to the other layer.
In this embodiment, the first device is addressed. When the compression identification indicates to compress the message, if the reference information meets the preset condition, the data bit in the first message is compressed, and if the reference information does not meet the preset condition, the second identification which is set for the compression flag bit in the first message is updated, all the first messages do not need to be compressed, and the occupancy rate of the system resource of the first equipment is reduced.
In this embodiment, the second device is addressed. Unlike the prior art, in the prior art, when the cost of the second device is low (the system configuration is low), after the decompressor is configured to decompress, the decompressor decompresses the packet passing through the PDCP layer, which results in a large occupancy rate of system resources (e.g., memory, CPU, etc.) of the second device. In the present application, when the compression flag is the first identifier, the decompressor decompresses the second packet, and when the compression flag is the second identifier, the decompressor does not decompress the second packet, so that the occupancy rate of the system resource of the second device can be reduced.
In this embodiment, the second device is addressed. Unlike the prior art, in the prior art, when the radio quality is poor, in the second device with lower cost, the decompressor decompresses the packet passing through the PDCP layer, which may cause a decompression error, so that the sending end needs to retransmit the packet to the receiving end, resulting in lower packet transmission efficiency of the sending end and the receiving end. In the application, in the second device with lower cost, when the reference information does not satisfy the preset condition (that is, the wireless quality is poor, the signal-to-noise ratio is less than the preset signal-to-noise ratio threshold, or the decoding success rate is less than the preset success rate threshold), the compressor does not compress the first message, so that the decompressor can be prevented from decompressing the second message erroneously, the first device is prevented from sending the second message to the second device and retransmitting the second message, and the message transmission efficiency between the first device and the second device is improved. Therefore, in the application, when the cost of the second device is low, the second device can rapidly process the second message, so that the message downloading efficiency of the second device is improved. In summary, the message processing method provided by the present application can be implemented by a device with a lower cost, so that the cost of the device is also reduced.
Fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application. As shown in fig. 5, the message processing apparatus 10 includes: an acquisition module 101, a processing module 102 and a sending module 103, wherein,
the obtaining module 101 is configured to obtain compression configuration information and reference information, where the reference information includes device information of the first device and/or message information of the first packet;
the processing module 102 is configured to process the first message according to the compression configuration information and the reference information to obtain a second message;
the sending module 103 is configured to send the second packet to the second device.
The message processing apparatus provided in the embodiment of the present application may execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In one possible design, the device information includes at least one of:
the processor occupancy rate of the first device, the signal strength of the first device for receiving the signal, the signal bandwidth corresponding to the first device, the signal-to-noise ratio of the first device for receiving the signal, and the decoding success rate of the first device;
the message information includes: the compression ratio of the first packet.
In one possible design, the processing module 102 is specifically configured to:
determining whether to compress the first message or not according to the compression configuration information and the reference information;
if so, compressing the first message to obtain a second message;
and if not, updating the compression flag bit in the first message to obtain a second message.
In one possible design, the processing module 102 is specifically configured to:
acquiring a compression identifier in the compression configuration information;
when the compression identification indicates that message compression is performed and the reference information meets a preset condition, determining that compression processing is performed on the first message;
and when the compression identifier indicates that the message is not compressed or the reference information does not meet the preset condition, determining that the first message is not compressed.
In one possible design, the preset condition includes at least one of:
the compression ratio is greater than or equal to a preset compression ratio threshold value; or the like, or, alternatively,
the occupancy rate of the processor is greater than or equal to a preset occupancy rate threshold value; or the like, or, alternatively,
the signal intensity is less than or equal to a preset intensity threshold; or the like, or, alternatively,
the signal bandwidth is less than or equal to a preset bandwidth threshold; or the like, or, alternatively,
the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold value; or the like, or, alternatively,
the decoding success rate is greater than or equal to a preset success rate threshold.
In one possible design, the first packet includes data bits and a compression flag bit; the processing module 102 is specifically configured to:
compressing the data bits to obtain a first compressed message;
and setting the compression flag bit in the first compressed message as a first identifier to obtain a second message, wherein the first identifier is used for indicating that the second message is a compressed message.
In one possible design, the processing module 102 is specifically configured to:
and setting a second identifier for the compression flag bit in the first message to obtain a second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
Fig. 6 is a schematic diagram of a hardware structure of a message processing device according to an embodiment of the present application. As shown in fig. 6, the message processing apparatus 20 includes: a processor 201 and a memory 202,
the processor 201 and the memory 202 are connected by a bus 203.
In a specific implementation process, the processor 201 executes computer execution instructions stored in the memory 202, so that the processor 201 executes the message processing method as described above.
For a specific implementation process of the processor 201, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details of this embodiment are not described herein again.
It should be noted that the message processing device may be the first device in the foregoing method embodiment, and may also be the second device in the foregoing method embodiment.
In the embodiment shown in fig. 6, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as disk storage.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the message processing method is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the unit is only a logical division, and other division ways are possible in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A message processing method is applied to a first device, and the method comprises the following steps:
acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of the first equipment and/or message information of a first message;
processing the first message according to the compression configuration information and the reference information to obtain a second message;
and sending the second message to a second device.
2. The method of claim 1, wherein the device information comprises at least one of:
the processor occupancy rate of the first device, the signal strength of the signal received by the first device, the signal bandwidth corresponding to the first device, the signal-to-noise ratio of the signal received by the first device, and the decoding success rate of the first device;
the message information includes: a compression ratio of the first packet.
3. The method according to claim 1 or 2, wherein processing the first packet according to the compression configuration information and the reference information to obtain a second packet comprises:
determining whether to compress the first message or not according to the compression configuration information and the reference information;
if so, compressing the first message to obtain a second message;
and if not, updating the compression flag bit in the first message to obtain the second message.
4. The method according to claim 3, wherein determining whether to compress the first packet according to the compression configuration information and the reference information includes:
acquiring a compression identifier in the compression configuration information;
when the compression identification indicates to perform message compression and the reference information meets a preset condition, determining to perform compression processing on the first message;
and when the compression identifier indicates that the first message is not compressed or the reference information does not meet a preset condition, determining that the first message is not compressed.
5. The method of claim 4, wherein the preset condition comprises at least one of:
the compression ratio is greater than or equal to a preset compression ratio threshold value; or the like, or, alternatively,
the occupancy rate of the processor is greater than or equal to a preset occupancy rate threshold value; or the like, or, alternatively,
the signal intensity is less than or equal to a preset intensity threshold; or the like, or, alternatively,
the signal bandwidth is less than or equal to a preset bandwidth threshold; or the like, or, alternatively,
the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold value; or the like, or, alternatively,
the decoding success rate is greater than or equal to a preset success rate threshold.
6. The method according to any one of claims 1 to 5, wherein the first packet comprises data bits and a compression flag bit; compressing the first message to obtain a second message, including:
compressing the data bits to obtain a first compressed message;
and setting a compression flag bit in the first compressed message as a first identifier to obtain the second message, wherein the first identifier is used for indicating that the second message is a compressed message.
7. The method according to any one of claims 3 to 5, wherein updating the compressed flag bit in the first packet to obtain the second packet comprises:
and setting a second identifier for the compression flag bit in the first message to obtain the second message, wherein the second identifier is used for indicating that the second message is a non-compression message.
8. A message processing apparatus, applied to a first device, the apparatus comprising: an acquisition module, a processing module and a sending module, wherein,
the acquisition module is used for acquiring compression configuration information and reference information, wherein the reference information comprises equipment information of the first equipment and/or message information of a first message;
the processing module is used for processing the first message according to the compression configuration information and the reference information to obtain a second message;
the sending module is configured to send the second packet to a second device.
9. A message processing apparatus, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the message processing method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the message processing method of any of claims 1 to 7.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011280807.7A CN112217839A (en) | 2020-11-16 | 2020-11-16 | Message processing method, device, equipment and storage medium |
| PCT/CN2021/127736 WO2022100467A1 (en) | 2020-11-16 | 2021-10-29 | Message processing method, apparatus, device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011280807.7A CN112217839A (en) | 2020-11-16 | 2020-11-16 | Message processing method, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112217839A true CN112217839A (en) | 2021-01-12 |
Family
ID=74057159
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011280807.7A Pending CN112217839A (en) | 2020-11-16 | 2020-11-16 | Message processing method, device, equipment and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112217839A (en) |
| WO (1) | WO2022100467A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115134425A (en) * | 2022-06-20 | 2022-09-30 | 北京京东乾石科技有限公司 | A message processing method and device |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116232422B (en) * | 2022-12-28 | 2025-09-30 | 中国电信股份有限公司卫星通信分公司 | Short message sending method, device, non-volatile storage medium and electronic device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6745012B1 (en) * | 2000-11-17 | 2004-06-01 | Telefonaktiebolaget Lm Ericsson (Publ) | Adaptive data compression in a wireless telecommunications system |
| CN106856424A (en) * | 2015-12-09 | 2017-06-16 | 普天信息技术有限公司 | The ROHC message transmitting method for compressing and system in a kind of VOLTE systems |
| US20200241805A1 (en) * | 2019-01-30 | 2020-07-30 | EMC IP Holding Company LLC | Adaptive compression mode |
| CN111741005A (en) * | 2020-06-30 | 2020-10-02 | 天津大学 | Beidou data transmission system and data packet header compression method based on ocean buoy |
-
2020
- 2020-11-16 CN CN202011280807.7A patent/CN112217839A/en active Pending
-
2021
- 2021-10-29 WO PCT/CN2021/127736 patent/WO2022100467A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6745012B1 (en) * | 2000-11-17 | 2004-06-01 | Telefonaktiebolaget Lm Ericsson (Publ) | Adaptive data compression in a wireless telecommunications system |
| CN106856424A (en) * | 2015-12-09 | 2017-06-16 | 普天信息技术有限公司 | The ROHC message transmitting method for compressing and system in a kind of VOLTE systems |
| US20200241805A1 (en) * | 2019-01-30 | 2020-07-30 | EMC IP Holding Company LLC | Adaptive compression mode |
| CN111741005A (en) * | 2020-06-30 | 2020-10-02 | 天津大学 | Beidou data transmission system and data packet header compression method based on ocean buoy |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115134425A (en) * | 2022-06-20 | 2022-09-30 | 北京京东乾石科技有限公司 | A message processing method and device |
| CN115134425B (en) * | 2022-06-20 | 2024-07-16 | 北京京东乾石科技有限公司 | Message processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2022100467A1 (en) | 2022-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10817460B2 (en) | RDMA data sending and receiving methods, electronic device, and readable storage medium | |
| RU2767321C1 (en) | Method and device for wireless communication | |
| CN107094142B (en) | Method and device for decompressing and compressing uplink data | |
| US8205011B2 (en) | Communication system, transmitting device, receiving device, and communication method | |
| JP3600189B2 (en) | Packet transmitting / receiving apparatus and packet transmitting method | |
| KR102056826B1 (en) | Apparatus and methods for block acknowledgment compression | |
| EP1261184B1 (en) | Method and device for error correction in the static header information of a received packet | |
| JP7327831B2 (en) | Communication method and device | |
| US20170078916A1 (en) | Data processing method and apparatus | |
| KR20090029665A (en) | Efficient Data Block Transmission Method Using Header Indicators | |
| KR101330900B1 (en) | Apparatus and method for supporting higher data rates on links with variable frame sizes | |
| CN108632326B (en) | Method and device for transmitting data by protocol data unit | |
| CN114208137A (en) | Method and device for compressing and decompressing Ethernet frame header | |
| CN112217839A (en) | Message processing method, device, equipment and storage medium | |
| EP1786170A2 (en) | Header compression in voice packets | |
| EP1482668A1 (en) | PACKET TRANSMITTER, PACKET RECEIVER AND PACKET TRANSMISSION METHOD | |
| CN111181688B (en) | ROHC compressor and implementation method thereof | |
| CN113556129B (en) | Data processing method and device | |
| EP3200526B1 (en) | Data transmission method and device | |
| WO2017143538A1 (en) | Voice data transmission method and apparatus | |
| CN112399480B (en) | Method, apparatus and storage medium for reducing transmission overhead | |
| CN112218390A (en) | Data processing method and device | |
| CN110958647A (en) | Data transmission method and device | |
| KR101568881B1 (en) | Header compression efficiency improvement method and packet transmission device therefor | |
| CN115276903A (en) | Method for improving LTE air interface transmission efficiency |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210112 |
|
| RJ01 | Rejection of invention patent application after publication |