WO2022100467A1 - 报文处理方法、装置、设备及存储介质 - Google Patents

报文处理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022100467A1
WO2022100467A1 PCT/CN2021/127736 CN2021127736W WO2022100467A1 WO 2022100467 A1 WO2022100467 A1 WO 2022100467A1 CN 2021127736 W CN2021127736 W CN 2021127736W WO 2022100467 A1 WO2022100467 A1 WO 2022100467A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
compression
message
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.)
Ceased
Application number
PCT/CN2021/127736
Other languages
English (en)
French (fr)
Inventor
郝禺台
陈卫锋
徐磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Publication of WO2022100467A1 publication Critical patent/WO2022100467A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to a packet processing method, apparatus, device, and storage medium.
  • LTE long term evolution
  • NR new radio
  • the compressor in the sending end (terminal device or network device) is usually configured for compression, so that the compressor can , PDCP) layer packets are compressed to obtain compressed packets; and the compressed packets are transmitted to other layers, such as radio link layer (Radio Link Control, RLC), media access control layer (Media Access Control, MAC) Wait.
  • radio link layer Radio Link Control, RLC
  • media access control layer Media Access Control, MAC
  • the compressor needs to compress all the packets that pass through the PDCP layer, resulting in a relatively high occupancy rate of system resources (for example, memory, CPU, etc.) of the sender. big.
  • Embodiments of the present application provide a packet processing method, apparatus, device, and storage medium, which are used to reduce the occupancy rate of system resources of a first device.
  • an embodiment of the present application provides a packet processing method, which is applied to a first device, including:
  • Acquire compressed configuration information and reference information where the reference information includes device information of the first device and/or message information of the first message;
  • the first packet is processed to obtain the second packet;
  • the device information includes at least one of the following:
  • 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 packet information includes: the compression rate of the first packet.
  • the first packet is processed according to the compressed configuration information and the reference information to obtain the second packet, including:
  • determining whether to perform compression processing on the first packet according to the compression configuration information and reference information including:
  • the compression flag indicates that the packet is not to be compressed, or the reference information does not meet the preset condition, it is determined that the first packet is not to be compressed.
  • the preset conditions include at least one of the following:
  • the compression ratio is greater than or equal to the preset compression ratio threshold; or,
  • the processor occupancy is greater than or equal to a preset occupancy threshold; or,
  • the signal strength is less than or equal to a preset strength threshold; or,
  • the signal bandwidth is less than or equal to the preset bandwidth threshold; or,
  • the signal-to-noise ratio is greater than or equal to the preset signal-to-noise ratio threshold; or,
  • the decoding success rate is greater than or equal to the preset success rate threshold.
  • the first packet includes data bits and compression flag bits; the first packet is compressed to obtain a second packet, including:
  • the compression flag bit in the first compressed packet is set as a first identifier to obtain a second packet, where the first identifier is used to indicate that the second packet is a compressed packet.
  • the compression flag bit in the first packet is updated to obtain the second packet, including:
  • a second identifier is set in the compression flag bit in the first packet to obtain a second packet, where the second identifier is used to indicate that the second packet is a non-compressed packet.
  • an embodiment of the present application provides a message processing apparatus, which is applied to a first device and includes: an obtaining module, a processing module, and a sending module, wherein:
  • the obtaining module is configured to obtain compressed configuration information and reference information, where the reference information includes device information of the first device and/or message information of the first message;
  • the processing module is used for, according to the compressed configuration information and the reference information, to process the first packet to obtain the second packet;
  • the sending module is used for sending the second message to the second device.
  • the device information includes at least one of the following:
  • 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 packet information includes: the compression rate of the first packet.
  • the processing module is specifically used to:
  • the processing module is specifically used to:
  • the compression flag indicates that the packet is not to be compressed, or the reference information does not meet the preset condition, it is determined that the first packet is not to be compressed.
  • the preset conditions include at least one of the following:
  • the compression ratio is greater than or equal to the preset compression ratio threshold; or,
  • the processor occupancy is greater than or equal to a preset occupancy threshold; or,
  • the signal strength is less than or equal to a preset strength threshold; or,
  • the signal bandwidth is less than or equal to the preset bandwidth threshold; or,
  • the signal-to-noise ratio is greater than or equal to the preset signal-to-noise ratio threshold; or,
  • the decoding success rate is greater than or equal to the preset success rate threshold.
  • the first packet includes data bits and compression flag bits; the processing module is specifically used for:
  • the compression flag bit in the first compressed packet is set as a first identifier to obtain a second packet, where the first identifier is used to indicate that the second packet is a compressed packet.
  • the processing module is specifically used to:
  • a second identifier is set in the compression flag bit in the first packet to obtain a second packet, where the second identifier is used to indicate that the second packet is a non-compressed packet.
  • an embodiment of the present application provides a message processing device, including: a processor and a memory;
  • memory stores instructions for execution by the computer
  • the processor executes the computer-executed instructions stored in the memory, so that the processor executes the message processing method according to any one of the first aspect.
  • an embodiment of the present application provides a readable storage medium, including a program or an instruction, and when the program or instruction runs on a computer, the method for processing a message according to any one of the above-mentioned first aspect is used.
  • the packet processing method includes: acquiring compression configuration information and reference information, where the reference information includes device information of a first device and/or a first packet
  • the first packet is processed according to the compression configuration information and the reference information to obtain the second packet, and the second packet is sent to the decompressor.
  • the compressor processes the first packet according to the compression configuration information and the reference information to obtain the second packet, which can avoid that after the compressor is configured for compression, the compressor will The packet is compressed to reduce the occupancy rate of the system resources of the first device.
  • FIG. 1 is an application scenario diagram of a message processing method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart 1 of a message processing method provided by an embodiment of the present application.
  • FIG. 3 is a second schematic flowchart of a message processing method provided by an embodiment of the present application.
  • FIG. 4 is a third schematic flowchart of a message processing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of a first device according to an embodiment of the present application.
  • the compressor of the first device in order to save wireless transmission resources between the first device and the second device, the compressor of the first device is usually compressed before the first device sends data to the second device Configuration, so that the first device compresses all the packets passing through the PDCP layer by a compression method such as Robust Header Compression (ROHC) or Ethernet Header Compression (EHC) to obtain compressed packets ; and pass the compressed message to other layers.
  • a compression method such as Robust Header Compression (ROHC) or Ethernet Header Compression (EHC)
  • the compressor of the first device after the compressor of the first device is configured for compression, the compressor performs compression processing on all the packets that pass through the PDCP layer, resulting in a relatively large occupancy rate of system resources of the first device.
  • the present application provides a packet processing method, which processes packets according to compressed configuration information and reference information, thereby reducing the occupation of system resources of the first device higher rate.
  • the following describes an application scenario of the packet processing method provided by the present application with reference to FIG. 1 .
  • FIG. 1 is an application scenario diagram of the packet processing method provided by the embodiment of the present application. As shown in FIG. 1 , it includes: a first device and a second device.
  • the first device includes a compressor, a PDCP layer, and other layers
  • the second device includes a decompressor, a PDCP layer, and other layers.
  • the compressor can process the first packet passing through the PDCP layer according to the packet processing method provided by this application, according to the compression configuration information and the reference information, to obtain the second packet, and send the second packet to the decompressor through other layers.
  • the second packet includes a compression flag bit.
  • the decompressor may determine whether to perform decompression processing on the second packet that has passed through the PDCP layer according to the compression flag, and send the decompressed second packet to other layers.
  • the compressor processes the first packet according to the compression configuration information and the reference information to obtain the second packet, which can reduce the occupancy rate of system resources of the first device.
  • other layers may include: a radio link control protocol layer (Radio Link Control, RLC).
  • RLC Radio Link Control
  • the other layers may include: the NR Service Data Adaptation Protocol (Service Data Adaptation Protocol, SDAP) layer; when the communication network is LTE, the other layers may include: Application (Application) layer.
  • FIG. 2 is a schematic flowchart 1 of a packet processing method provided by an embodiment of the present application. As shown in FIG. 2 , the packet processing method provided by this embodiment includes:
  • the execution body of the embodiment of the present application may be the first device, or may be a message processing apparatus in the first device, and the message processing apparatus may be implemented by a combination of software and/or hardware.
  • the packet processing apparatus may be a compressor in the first device.
  • the compression configuration information includes a compression identifier, where the compression identifier is used to indicate that adaptive compression is performed on the packet, or adaptive compression is not performed on the packet.
  • 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 to be adaptively compressed, and the second preset identifier is used to indicate that the packet is not to be automatically compressed.
  • the first preset identifier may be 0 or 1
  • the second preset identifier may be 1 or 0. Specifically, when the first preset identifier is 1, the second preset identifier is 0.
  • the device information includes at least one of the following: 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 of the signal received by the first device ratio (Signal Noise Ratio, SNR), decoding success rate of the first device;
  • the packet information includes: the compression rate of the first packet.
  • the first packet may be the original packet received by the compressor.
  • the original message may be an IP datagram (IP Datagram) or an Ethernet message.
  • IP Datagram IP Datagram
  • Ethernet message IP Datagram
  • S202 Process the first packet according to the compression configuration information and the reference information to obtain a second packet.
  • the compression identifier in the compression configuration information indicates to perform adaptive compression on the message
  • the first message may be processed and compressed to obtain the second message
  • the first packet may be updated to obtain the second packet.
  • the first preset weight corresponding to the processor occupancy rate and the second preset weight corresponding to the compression rate can be obtained.
  • the first preset weight, the compression ratio, and the second preset weight determine the load index, and when the load index is less than or equal to the preset index, it can be determined that the reference information satisfies the preset condition, and then the first packet is processed and compressed, Get the second message.
  • the load index may be equal to the product of the processor occupancy rate and the first preset weight plus the product of the compression rate and the second preset weight.
  • the first packet is updated to obtain the second packet.
  • a non-preset condition such as a load index greater than the preset index
  • the first message has a compression flag bit (R bit). After the first message is processed and compressed, the compression flag bit is set as the first identifier; updating the first message includes: The compression flag bit is set to the second flag.
  • R bit compression flag bit
  • the first device may be a terminal device or a network device.
  • the second device may be a terminal device or a network device.
  • the first device is a terminal device
  • the second device is a network device.
  • the first device is a network device
  • the packet processing method provided by the embodiment of the present application includes: acquiring compression configuration information and reference information, where the reference information includes device information of the first device and/or packet information of the first packet; according to the compression configuration information and the reference information, The first packet is processed to obtain a second packet, and the second packet is sent to the decompressor.
  • the compressor processes the first packet according to the compression configuration information and the reference information to obtain the second packet, which can avoid that after the compressor is configured for compression, The packet is compressed to reduce the occupancy rate of the system resources of the first device.
  • FIG. 3 is a second schematic flowchart of a packet processing method provided by an embodiment of the present application. As shown in FIG. 3 , the packet processing method provided by this embodiment includes:
  • the execution method of S301 is the same as the execution method of S201, and details are not repeated here.
  • S302. Determine whether to perform compression processing on the first packet according to the compression configuration information and the reference information.
  • determining whether to perform compression processing on the first packet according to the compression configuration information and reference information including:
  • the compression identifier indicates to perform packet compression, and the reference information satisfies the preset condition, it is determined to perform compression processing on the first packet;
  • the compression flag indicates that the packet is not to be compressed, or the reference information does not meet the preset condition, it is determined that the first packet is not to be compressed.
  • the preset conditions include at least one of the following:
  • the compression ratio is greater than or equal to the preset compression ratio threshold; or,
  • the processor occupancy is greater than or equal to a preset occupancy threshold; or,
  • the signal strength is less than or equal to a preset strength threshold; or,
  • the signal bandwidth is less than or equal to the preset bandwidth threshold; or,
  • the signal-to-noise ratio is greater than or equal to the preset signal-to-noise ratio threshold; or,
  • the decoding success rate is greater than or equal to the preset success rate threshold.
  • the compression rate is equal to the ratio of the header length M of the first packet to the total length N of the first packet.
  • the compression rate may be determined according to the header length M and the total length N.
  • the processor occupancy rate may be obtained after the detection device in the first device detects the processor occupancy rate.
  • the signal strength and the signal bandwidth may be obtained through a method of wireless uplink authorization, or may be obtained through other methods.
  • the method for wireless uplink authorization includes: signal strength and/or signal bandwidth sent by the second device to the first device.
  • the signal-to-noise ratio may be obtained after the first device measures the wireless signal.
  • the decoding success rate may be obtained after the first device decodes other packets except the first packet.
  • the first packet includes data bits and compression flag bits; the first packet is compressed to obtain a second packet, including:
  • the compression flag bit in the first compressed packet is set as a first identifier to obtain a second packet, where the first identifier is used to indicate that the second packet is a compressed packet.
  • the first packet includes data bits and compression flag bits; the first packet is compressed to obtain a second packet, including:
  • a second identifier is set in the compression flag bit in the first packet to obtain a second packet, where the second identifier is used to indicate that the second packet is a non-compressed packet.
  • the second packet may be a PDCP protocol data unit (Protocol Data Unit, PDU).
  • PDU Protocol Data Unit
  • the packet processing method provided by this embodiment includes: acquiring compression configuration information and reference information, where the reference information includes device information of the compressor and/or packet information of the first packet; determining whether to The first packet is compressed; if so, the first packet is compressed to obtain the second packet; if not, the compression flag bit in the first packet is updated to obtain the second packet, and the second packet is sent to the second packet.
  • the device sends the second packet.
  • the compressor performs compression processing on the first packet, and if it is determined not to compress the first packet according to the compression configuration information and the reference information processing, the compression flag bit in the first packet is updated, which can reduce the occupancy rate of the system resources of the first device.
  • the compressor performs compression processing on all the first packets that have passed through the PDCP layer, This will reduce the data processing efficiency of the first device, thereby resulting in a lower packet transmission rate between the first device and the second device.
  • the compressor is configured for compression (that is, the compression identifier indicates to compress the message)
  • the compressor will compress the first message only when the reference information satisfies the preset condition.
  • the data processing efficiency of the first device and thus the packet transmission rate between the first device and the second device. Therefore, in summary, in this application, when the cost of the first device is low (the system configuration is low), the first device can also process the first packet quickly, and send the second packet to the first device. The second device, thereby improving the packet upload efficiency of the first device.
  • the first packet may not actually be compressed, and the first packet may be directly passed through the PDCP layer and other devices. layer is sent to the second device.
  • the compressor still compresses all packets passing through the PDCP layer, resulting in
  • the system overhead for example, the memory usage rate or the processor usage rate
  • the first device freezes.
  • the first packet when the wireless resources are 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 packet is not compressed; when the wireless resources are sufficient (the signal If the strength is greater than the preset strength threshold, or the signal bandwidth is greater than the preset bandwidth threshold), compressing the first packet can reduce the system overhead of the first device, thereby improving the user experience of the first device.
  • FIG. 4 is a third schematic flowchart of a packet processing method provided by an embodiment of the present application. As shown in FIG. 4 , the packet processing method provided by this embodiment includes:
  • the first device acquires compression configuration information and reference information, where the reference information includes device information of the compressor and/or message information of the first message.
  • the first device obtains a compression identifier in the compression configuration information.
  • the first device determines whether the compression identifier indicates to perform packet compression.
  • the first device determines whether the reference information satisfies a preset condition.
  • the first device compresses the data bits to obtain a first compressed message.
  • the compressor in the first device compresses the data bits according to a preset compression algorithm to obtain the first compressed message.
  • the first device sets the compression flag bit in the first compressed packet as a first identifier to obtain a second packet, where the first identifier is used to indicate that the second packet is a compressed packet.
  • the first device sets the compression flag bit in the first packet with a second identifier to obtain a second packet, where the second identifier is used to indicate that the second packet is an uncompressed packet.
  • the first device sends a second packet to the second device.
  • the second device acquires the compression flag bit in the second packet.
  • the second packet includes the compression flag bit and the first compressed packet.
  • the decompressor in the second device may obtain the compression flag bit from the second packet.
  • the second device After determining that the compression flag bit is the first identifier, the second device performs decompression processing on the second packet to obtain a decompressed second packet.
  • the second device may determine whether the compression flag is the first identifier, and if so, perform decompression processing on the second packet to obtain the decompressed second packet, and then send the decompressed first packet to other layers. Second message; if not, send the second message to other layers.
  • the decompressor in the second device performs compression processing on the first compressed packet in the second packet according to a preset decompression algorithm to obtain the second packet.
  • the preset decompression algorithm corresponds to the preset compression algorithm.
  • the decompressor sends the decompressed second packet to other layers.
  • the decompressor sends the second packet to other layers.
  • the compression flag indicates to perform packet compression, if the reference information satisfies the preset condition, the data bits in the first packet are compressed; if the reference information does not meet the preset condition, the data bits in the first packet are updated.
  • the second flag is set in the compression flag bit, so that it is unnecessary to compress all the first packets, which reduces the occupation rate of the system resources of the first device.
  • the decompressor decompresses the packets that have passed through the PDCP layer, resulting in The occupancy rate of system resources (eg, memory, CPU, etc.) of the second device is relatively large.
  • the decompressor decompresses the second packet, and when the compression flag is the second identifier, the decompressor does not decompress the second packet, so it can be The occupancy rate of system resources of the second device is reduced.
  • the decompressor performs decompression processing on the packet that has passed through the PDCP layer, which will cause decompression errors, so it needs to send The end retransmits the message to the receiving end, resulting in low packet transmission efficiency between the sending end and the receiving end.
  • the compressor does not compress the first packet, so it can avoid errors in the decompression of the second packet by the decompressor, thereby preventing the first device from sending and retransmitting the second packet to the second device, improving the efficiency of the first device. and the packet transmission efficiency between the second device. Therefore, in the present application, when the cost of the second device is low, the second device can quickly process the second packet, thereby improving the packet download efficiency of the second device.
  • the packet processing method provided by the present application can be implemented by a device with a lower cost, thus reducing the cost of the device.
  • FIG. 5 is a schematic structural diagram of a packet processing apparatus provided by an embodiment of the present application.
  • the message processing apparatus 10 includes: an obtaining module 101, a processing module 102 and a sending module 103, wherein,
  • the obtaining module 101 is configured to obtain compressed configuration information and reference information, where the reference information includes device information of the first device and/or message information of the first message;
  • the processing module 102 is configured to, according to the compression configuration information and the reference information, process the first packet to obtain the second packet;
  • the sending module 103 is configured to send the second packet to the second device.
  • the packet processing apparatus provided in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and details are not described herein again.
  • the device information includes at least one of the following:
  • 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 packet information includes: the compression rate of the first packet.
  • processing module 102 is specifically used for:
  • processing module 102 is specifically used for:
  • the compression flag indicates that the packet is not to be compressed, or the reference information does not meet the preset condition, it is determined that the first packet is not to be compressed.
  • the preset conditions include at least one of the following:
  • the compression ratio is greater than or equal to the preset compression ratio threshold; or,
  • the processor occupancy is greater than or equal to a preset occupancy threshold; or,
  • the signal strength is less than or equal to a preset strength threshold; or,
  • the signal bandwidth is less than or equal to the preset bandwidth threshold; or,
  • the signal-to-noise ratio is greater than or equal to the preset signal-to-noise ratio threshold; or,
  • the decoding success rate is greater than or equal to the preset success rate threshold.
  • the first packet includes data bits and compression flag bits; the processing module 102 is specifically configured to:
  • the compression flag bit in the first compressed packet is set as a first identifier to obtain a second packet, where the first identifier is used to indicate that the second packet is a compressed packet.
  • processing module 102 is specifically used for:
  • a second identifier is set in the compression flag bit in the first packet to obtain a second packet, where the second identifier is used to indicate that the second packet is a non-compressed packet.
  • FIG. 6 is a schematic diagram of a hardware structure of a packet processing device according to an embodiment of the present application.
  • the message processing device 20 includes: a processor 201 and a memory 202,
  • the processor 201 and the memory 202 are connected through a bus 203 .
  • the processor 201 executes the computer execution instructions stored in the memory 202, so that the processor 201 executes the above packet processing method.
  • the packet processing device may be the first device in the foregoing method embodiments, or may be the second device in the foregoing method embodiments.
  • the processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), special Integrated Circuit (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 the method disclosed in conjunction with the application can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • Memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as disk storage.
  • NVM non-volatile storage
  • the bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, or the like.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the buses in the drawings of the present application are not limited to only one bus or one type of bus.
  • the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above packet processing method is implemented.
  • the above-mentioned computer-readable storage medium can be realized by any type of volatile or non-volatile storage device or their combination, 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.
  • SRAM static random access memory
  • EEPROM electrically erasable Programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • An exemplary readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium.
  • the readable storage medium can also be an integral part of the processor.
  • the processor and the readable storage medium may reside in Application Specific Integrated Circuits (ASIC).
  • ASIC Application Specific Integrated Circuits
  • the processor and the readable storage medium may also exist in the device as discrete components.
  • division of units is only a logical function division, and other division methods may be used in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例提供一种报文处理方法、装置、设备及存储介质,其中,报文处理方法包括:获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文;向第二设备发送第二报文。用于降低对第一设备的系统资源的占用率。

Description

报文处理方法、装置、设备及存储介质
本申请要求于2020年11月16日提交中国专利局、申请号为202011280807.7、申请名称为“报文处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信领域,尤其涉及一种报文处理方法、装置、设备及存储介质。
背景技术
目前,发送端与接收端之间可以通过长期演进(long term evolution,LTE)/新空口(new radio,NR)网络进行数据传输。
在相关技术中,在发送端向接收端发送数据之前,通常对发送端(终端设备或者网络设备)中的压缩器进行压缩配置,以使压缩器对所有经过分组数据融合协议(Packet Data Convergence Protocol,PDCP)层的报文进行压缩处理,得到压缩报文;并将压缩报文传至其他层,例如无线链路层(Radio Link Control,RLC)、媒体介入控制层(Media Access Control,MAC)等。
然而,在上述过程中,对发送端的压缩器进行压缩配置之后,压缩器要对所有经过PDCP层的报文进行压缩处理,导致对发送端的系统资源(例如,内存、CPU等)的占用率较大。
发明内容
本申请实施例提供一种报文处理方法、装置、设备及存储介质,用于降低对第一设备的系统资源的占用率。
第一方面,本申请实施例提供一种报文处理方法,应用于第一设备,包括:
获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;
根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文;
向第二设备发送第二报文。
在一种可能的设计中,设备信息包括如下至少一种:
第一设备的处理器占用率、第一设备接收信号的信号强度、第一设备对应的信号带宽、第一设备接收信号的信噪比、第一设备的解码成功率;
报文信息包括:第一报文的压缩率。
在一种可能的设计中,根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文,包括:
根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理;
若是,则对第一报文进行压缩处理,得到第二报文;
若否,则更新第一报文中的压缩标志位,得到第二报文。
在一种可能的设计中,根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理,包括:
在压缩配置信息中获取压缩标识;
在压缩标识指示进行报文压缩,且参考信息满足预设条件时,确定对第一报文进行压缩处理;
在压缩标识指示不进行报文压缩,或者参考信息不满足预设条件时,确定对第一报文不进行压缩处理。
在一种可能的设计中,预设条件包括如下至少一种:
压缩率大于或等于预设压缩率阈值;或,
处理器占用率大于或等于预设占用率阈值;或,
信号强度小于或等于预设强度阈值;或,
信号带宽小于或等于预设带宽阈值;或,
信噪比大于或等于预设信噪比阈值;或,
解码成功率大于或等于预设成功率阈值。
在一种可能的设计中,第一报文包括数据位和压缩标志位;对第一报文进行压缩处理,得到第二报文,包括:
对数据位进行压缩处理,得到第一压缩报文;
将第一压缩报文中的压缩标志位设置为第一标识,得到第二报文,第一标识用于指示第二报文为压缩报文。
在一种可能的设计中,更新第一报文中的压缩标志位,得到第二报文,包括:
将第一报文中的压缩标志位设置第二标识,得到第二报文,第二标识用于指示第二报文为非压缩报文。
第二方面,本申请实施例提供一种报文处理装置,应用于第一设备,包括:获取模块、 处理模块和发送模块,其中,
获取模块用于,获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;
处理模块用于,根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文;
发送模块用于,向第二设备发送第二报文。
在一种可能的设计中,设备信息包括如下至少一种:
第一设备的处理器占用率、第一设备接收信号的信号强度、第一设备对应的信号带宽、第一设备接收信号的信噪比、第一设备的解码成功率;
报文信息包括:第一报文的压缩率。
在一种可能的设计中,处理模块具体用于:
根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理;
若是,则对第一报文进行压缩处理,得到第二报文;
若否,则更新第一报文中的压缩标志位,得到第二报文。
在一种可能的设计中,处理模块具体用于:
在压缩配置信息中获取压缩标识;
在压缩标识指示进行报文压缩,且参考信息满足预设条件时,确定对第一报文进行压缩处理;
在压缩标识指示不进行报文压缩,或者参考信息不满足预设条件时,确定对第一报文不进行压缩处理。
在一种可能的设计中,预设条件包括如下至少一种:
压缩率大于或等于预设压缩率阈值;或,
处理器占用率大于或等于预设占用率阈值;或,
信号强度小于或等于预设强度阈值;或,
信号带宽小于或等于预设带宽阈值;或,
信噪比大于或等于预设信噪比阈值;或,
解码成功率大于或等于预设成功率阈值。
在一种可能的设计中,第一报文包括数据位和压缩标志位;处理模块具体用于:
对数据位进行压缩处理,得到第一压缩报文;
将第一压缩报文中的压缩标志位设置为第一标识,得到第二报文,第一标识用于指示第二报文为压缩报文。
在一种可能的设计中,处理模块具体用于:
将第一报文中的压缩标志位设置第二标识,得到第二报文,第二标识用于指示第二报文为非压缩报文。
第三方面,本申请实施例提供一种报文处理设备,包括:处理器和存储器;
存储器存储计算机执行指令;
处理器执行存储器存储的计算机执行指令,使得处理器执行如第一方面中任意一项的报文处理方法。
第四方面,本申请实施例提供一种可读存储介质,包括程序或指令,当程序或指令在计算机上运行时,如上述第一方面中任意一项的报文处理方法。
本申请实施例提供的报文处理方法、装置、设备及存储介质,其中,报文处理方法包括:获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文,向解压器发送第二报文。在上述方法中,压缩器根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文,可以避免在对压缩器进行压缩配置之后、压缩器对所有经过PDCP层的第一报文进行压缩处理,降低对第一设备的系统资源的占用率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的报文处理方法的应用场景图;
图2为本申请实施例提供的报文处理方法的流程示意图一;
图3为本申请实施例提供的报文处理方法的流程示意图二;
图4为本申请实施例提供的报文处理方法的流程示意图三;
图5为本申请实施例提供的报文处理装置的结构示意图;
图6为本申请实施例提供的第一设备的硬件结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员 在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
在现有技术中,在LTE/NR中,为了节省第一设备和第二设备之间的无线传输资源,通常在第一设备向第二设备发送数据之前,对第一设备的压缩器进行压缩配置,以使第一设备以健壮性包头压缩(Robust Header Compression,ROHC)、或者以太网头压缩(Ethernet Header Compression,EHC)等压缩方式对所有经过PDCP层的报文进行压缩,得到压缩报文;并将压缩报文传至其他层。
但是在上述现有技术中,当对第一设备的压缩器进行压缩配置之后,压缩器对所有经过PDCP层的报文进行压缩处理,导致对第一设备的系统资源的占用率较大。为了解决对第一设备的系统资源的占用率较大的问题,本申请提供一种报文处理方法,根据压缩配置信息和参考信息对报文进行处理,从而降低第一设备的系统资源的占用率较大。
下面结合图1对本申请提供的报文处理方法的应用场景进行说明。
图1为本申请实施例提供的报文处理方法的应用场景图。如图1所示,包括:第一设备和第二设备。
例如,第一设备包括压缩器、PDCP层和其他层,第二设备包括解压器、PDCP层和其他层。
压缩器可以根据本申请提供的报文处理方法,根据压缩配置信息和参考信息对经过PDCP层的第一报文进行处理,得到第二报文,并通过其他层向解压器发送第二报文,其中,第二报文中包括压缩标志位。在解压器中,解压器可以根据压缩标志位,确定是否对经过PDCP层的第二报文进行解压处理,并将解压后的第二报文发送给其他层。在上述方法中,根据压缩器根据压缩配置信息和参考信息对第一报文进行处理,得到第二报文,可以降低对第一设备的系统资源的占用率。
需要说明的是,在第一设备,其他层可以包括:无线链路控制协议层(Radio Link Control,RLC)。在第二设备,当通信网络为NR时,其他层可以包括:在NR服务数据适配协议(Service Data Adaptation Protocol,SDAP)层;当通信网络为LTE时,其他层可 以包括:应用(Application)层。
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图2为本申请实施例提供的报文处理方法的流程示意图一。如图2所示,本实施例提供的报文处理方法包括:
S201、获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息。
可选地,本申请实施例的执行主体可以为第一设备,也可以为第一设备中的报文处理装置,该报文处理装置可以通过软件和/或硬件的结合来实现。例如,报文处理装置可以为第一设备中的压缩器中。
可选地,压缩配置信息中包括压缩标识,压缩标识用于指示对报文进行自适应压缩、或者不对报文进行自适应压缩。
例如,压缩标识可以为第一预设标识、或者第二预设标识,其中,第一预设标识用于指示对报文进行自适应压缩,第二预设标识用于指示不对报文进行自适应压缩。可选地,第一预设标识可以为0或者1,第二预设标识可以为1或者0。具体的,当第一预设标识为1时,第二预设标识为0。
在一种可能的设计中,设备信息包括如下至少一种:第一设备的处理器占用率、第一设备接收信号的信号强度、第一设备对应的信号带宽、第一设备接收信号的信噪比(Signal Noise Ratio,SNR)、第一设备的解码成功率;
报文信息包括:第一报文的压缩率。其中,第一报文可以为压缩器接收到的原始报文。例如,原始报文可以为IP数据报(IP Datagram)、或者以太网报文。其中,第一报文为原始报文。
S202、根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文。
可选地,在压缩配置信息中的压缩标识指示对报文进行自适应压缩时,则在确定参考信息满足预设条件之后,可以对第一报文进行处理压缩处理,得到第二报文;
在压缩配置信息中的压缩标识指示不对报文进行自适应压缩时,或者参考信息满足不预设条件时,可以对第一报文进行更新,得到第二报文。
例如,参考信息中包括处理器占用率、报文信息中包括压缩率时,可以获取处理器占用率对应的第一预设权重和压缩率对应的第二预设权重,根据处理器占用率、第一预设权重、压缩率、第二预设权重,确定负载指数,在负载指数小于或等于预设指数时,可以确定参考信息满足预设条件,进而对第一报文进行处理压缩处理,得到第二报文。其中,负 载指数可以等于处理器占用率与第一预设权重的乘积加上压缩率与第二预设权重的乘积。
例如,参考信息中包括处理器占用率、报文信息中包括压缩率时,在压缩配置信息中的压缩标识指示不对报文进行自适应压缩时,或者参考信息满足不预设条件(例如负载指数大于预设指数)时,对第一报文进行更新,得到第二报文。
S203、向第二设备发送第二报文。
需要说明的是,第一报文中具有压缩标志位(R位),在对第一报文进行处理压缩处理之后,将压缩标志位设置为第一标识;对第一报文进行更新包括将压缩标志位设置为第二标识。
需要说明的是,在本申请中,第一设备可以终端设备,也可以为网络设备。第二设备可以终端设备,也可以为网络设备。例如,当第一设备为终端设备时,第二设备为网络设备。例如,当第二设备为终端设备时,第一设备为网络设备
本申请实施例提供的报文处理方法,包括:获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文,向解压器发送第二报文。在上述方法中,压缩器根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文,可以避免在对压缩器进行压缩配置之后、压缩器对所有经过PDCP层的第一报文进行压缩处理,降低对第一设备的系统资源的占用率。
在上述实施例的基础上,下面结合图3对本申请实施例提供的报文处理方法作进一步地说明。
图3为本申请实施例提供的报文处理方法的流程示意图二。如图3所示,本实施例提供的报文处理方法包括:
S301、获取压缩配置信息和参考信息,参考信息包括压缩器的设备信息和/或第一报文的报文信息。
具体的,S301的执行方法与S201的执行方法相同,此处不再赘述。
S302、根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理。
若是,则执行S303。
若否,则执行S304。
在一种可能的设计中,根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理,包括:
在压缩配置信息中获取压缩标识;
在压缩标识指示进行报文压缩,且参考信息满足预设条件时,确定对第一报文进行压 缩处理;
在压缩标识指示不进行报文压缩,或者参考信息不满足预设条件时,确定对第一报文不进行压缩处理。
在一种可能的设计中,预设条件包括如下至少一种:
压缩率大于或等于预设压缩率阈值;或,
处理器占用率大于或等于预设占用率阈值;或,
信号强度小于或等于预设强度阈值;或,
信号带宽小于或等于预设带宽阈值;或,
信噪比大于或等于预设信噪比阈值;或,
解码成功率大于或等于预设成功率阈值。
具体的,压缩率等于第一报文的头部长度M与第一报文的总长度N的比值。在实际应用中,在获取到第一报文之后,可以根据头部长度M和总长度N确定压缩率。
具体的,处理器占用率可以为第一设备中的检测装置,对处理器的占用率进行检测之后得到的。
具体的,信号强度和信号带宽可以为通过无线上行授权的方法获取到的,还可以为通过其他方式获取到的。例如,无线上行授权的方法包括:第二设备向第一设备发送的信号强度和/或信号带宽。
具体的,信噪比可以为第一设备对无线信号进行测量之后得到的。
具体的,解码成功率可以为第一设备对除第一报文之后的其他报文就行解码之后得到的。
S303、对第一报文进行压缩处理,得到第二报文。
在一种可能的设计中,第一报文包括数据位和压缩标志位;对第一报文进行压缩处理,得到第二报文,包括:
对数据位进行压缩处理,得到第一压缩报文;
将第一压缩报文中的压缩标志位设置为第一标识,得到第二报文,第一标识用于指示第二报文为压缩报文。
在另一种可能的设计中,第一报文包括数据位和压缩标志位;对第一报文进行压缩处理,得到第二报文,包括:
将第一报文中的压缩标志位设置为第一标识;
对压缩标志位为第一标识的第一报文进行压缩处理,得到第二报文。
S304、更新第一报文中的压缩标志位,得到第二报文。
将第一报文中的压缩标志位设置第二标识,得到第二报文,第二标识用于指示第二报文为非压缩报文。
S305、向第二设备发送第二报文。
可选地,第二报文可以为PDCP协议数据单元(Protocol Data Unit,PDU)。
本实施例提供的报文处理方法包括:获取压缩配置信息和参考信息,参考信息包括压缩器的设备信息和/或第一报文的报文信息;根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理;若是,则对第一报文进行压缩处理,得到第二报文;若否,则更新第一报文中的压缩标志位,得到第二报文,向第二设备发送第二报文。在上述方法中,若根据压缩配置信息和参考信息确定对第一报文进行压缩处理,则压缩器第一报文进行压缩处理,若根据压缩配置信息和参考信息确定不对第一报文进行压缩处理,则更新第一报文中的压缩标志位,可以降低对第一设备的系统资源的占用率。
进一步地,在现有技术中,若第一设备的成本较低(系统配置较低)时,在对压缩器进行压缩配置之后,压缩器对所有经过PDCP层的第一报文进行压缩处理,会降低第一设备的数据处理效率,进而导致第一设备和第二设备之间的报文传输速率较低。而在本申请中,若对压缩器进行压缩配置(即压缩标识指示对报文进行压缩),则压缩器仅在参考信息满足预设条件时,对第一报文进行压缩处理,因此可以提高第一设备的数据处理效率,进而第一设备与第二设备之间的报文传输速率。因此,综上,在本申请中,当第一设备的成本较低(系统配置较低),第一设备可以也可以快速的对第一报文进行处理,并将第二报文发送至第二设备,从而提高第一设备的报文上传效率。
在实际应用中,第一设备和第二设备之间的无线资源(例如信号带宽、信号强度)充足时,实际是可以不对第一报文进行压缩,直接将第一报文通过PDCP层和其他层发送给第二设备。但是在现有技术中,第一设备和第二设备之间的无线资源充足时,在对压缩器进行压缩配置之后,压缩器仍对所有经过PDCP层的报文进行压缩,导致第一设备的系统开销(例如,内存占用率或者处理器占用率)较大,降低第一设备的用户体验,例如,在用户使用压缩器玩游戏、或者看视屏时,导致第一设备卡顿。而在本申请中,在无线资源不充足(信号强度小于或等于预设强度阈值、或信号带宽小于或等于预设带宽阈值)时,不对第一报文进行压缩;在无线资源充足时(信号强度大于预设强度阈值、或信号带宽大于预设带宽阈值),对第一报文进行压缩,可以降低第一设备的系统开销,进而提高第一设备的用户体验。
在上述实施例的基础上,下面结合图4,对第一设备和第二设备之间的报文传输过程进行说明。
图4为本申请实施例提供的报文处理方法的流程示意图三。如图4所示,本实施例提供的报文处理方法包括:
S401、第一设备获取压缩配置信息和参考信息,参考信息包括压缩器的设备信息和/或第一报文的报文信息。
S402、第一设备在压缩配置信息中获取压缩标识。
S403、第一设备判断压缩标识是否指示进行报文压缩。
若是,则执行S404。
若否,则执行S407。
S404、第一设备判断参考信息是否满足预设条件。
若是,则执行405~S406。
若否,则执行S407。
S405、第一设备对数据位进行压缩处理,得到第一压缩报文。
具体的,第一设备中的压缩器根据预设压缩算法对对数据位进行压缩处理,得到第一压缩报文。
S406、第一设备将第一压缩报文中的压缩标志位设置为第一标识,得到第二报文,第一标识用于指示第二报文为压缩报文。
S407、第一设备将第一报文中的压缩标志位设置第二标识,得到第二报文,第二标识用于指示第二报文为非压缩报文。
S408、第一设备向第二设备发送第二报文。
S409、第二设备获取第二报文中的压缩标志位。
其中,第二报文中包括压缩标志位和第一压缩报文。
具体的,第二设备中的解压器可以从第二报文中获取压缩标志位。
S410、第二设备在确定压缩标志位为第一标识之后,对第二报文中的进行解压处理,得到解压后的第二报文。
可选地,第二设备可以判断压缩标志位是否为第一标识,若是,则对第二报文中的进行解压处理,得到解压后的第二报文,进而向其他层发送解压后的第二报文;若否,则向其他层发送第二报文。
具体的,第二设备中的解压器根据预设解压算法对第二报文中的第一压缩报文进行压缩处理,得到第二报文。其中,预设解压算法与预设压缩算法对应。具体的,解压器向其他层发送解压后的第二报文。具体的,解压器向其他层发送第二报文。
在本实施例中,针对第一设备。当压缩标识指示进行报文压缩时,若参考信息满足预 设条件,则对第一报文中的数据位进行压缩处理,若参考信息不满足预设条件,则更新将第一报文中的压缩标志位设置第二标识,无需对所有第一报文进行压缩,降低了对第一设备的系统资源的占用率。
在本实施例中,针对第二设备。与现有技术不同,在现有技术中,当第二设备的成本较低(系统配置较低)时,对解压器进行解压配置之后,解压器对经过PDCP层的报文进行解压处理,导致对第二设备的系统资源(例如,内存、CPU等)的占用率较大。而在本申请中,在压缩标志位为第一标识时,解压器对第二报文进行解压处理,在压缩标志位为第二标识时,解压器不对第二报文进行解压处理,因此可以降低对第二设备的系统资源的占用率。
在本实施例中,针对第二设备。与现有技术不同,在现有技术中,当无线质量较差时,在成本较低的第二设备中,解压器对经过PDCP层的报文进行解压处理,会导致解压出错,因此需要发送端向接收端重发报文,导致发送端和接收端的报文传输效率较低。而在本申请中,在成本较低的第二设备中,当参考信息不满足预设条件(即无线质量较差,信噪比小于预设信噪比阈值、或解码成功率小于预设成功率阈值)时,压缩器不对第一报文进行压缩处理,因此可以避免解压器对第二报文解压出错,进而避免第一设备向第二设备发送重发第二报文,提高第一设备和第二设备之间的报文传输效率。因此,在本申请中,当第二设备的成本较低时,第二设备可以快速的对第二报文进行处理,从而提高第二设备的报文下载效率。综上,本申请提供的报文处理方法,成本较低的设备就可以实现,因此还降低了设备的成本。
图5为本申请实施例提供的报文处理装置的结构示意图。如图5所示,报文处理装置10包括:获取模块101、处理模块102和发送模块103,其中,
获取模块101用于,获取压缩配置信息和参考信息,参考信息包括第一设备的设备信息和/或第一报文的报文信息;
处理模块102用于,根据压缩配置信息和参考信息,对第一报文进行处理,得到第二报文;
发送模块103用于,向第二设备发送第二报文。
本申请实施例提供的报文处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
在一种可能的设计中,设备信息包括如下至少一种:
第一设备的处理器占用率、第一设备接收信号的信号强度、第一设备对应的信号带宽、第一设备接收信号的信噪比、第一设备的解码成功率;
报文信息包括:第一报文的压缩率。
在一种可能的设计中,处理模块102具体用于:
根据压缩配置信息和参考信息,确定是否对第一报文进行压缩处理;
若是,则对第一报文进行压缩处理,得到第二报文;
若否,则更新第一报文中的压缩标志位,得到第二报文。
在一种可能的设计中,处理模块102具体用于:
在压缩配置信息中获取压缩标识;
在压缩标识指示进行报文压缩,且参考信息满足预设条件时,确定对第一报文进行压缩处理;
在压缩标识指示不进行报文压缩,或者参考信息不满足预设条件时,确定对第一报文不进行压缩处理。
在一种可能的设计中,预设条件包括如下至少一种:
压缩率大于或等于预设压缩率阈值;或,
处理器占用率大于或等于预设占用率阈值;或,
信号强度小于或等于预设强度阈值;或,
信号带宽小于或等于预设带宽阈值;或,
信噪比大于或等于预设信噪比阈值;或,
解码成功率大于或等于预设成功率阈值。
在一种可能的设计中,第一报文包括数据位和压缩标志位;处理模块102具体用于:
对数据位进行压缩处理,得到第一压缩报文;
将第一压缩报文中的压缩标志位设置为第一标识,得到第二报文,第一标识用于指示第二报文为压缩报文。
在一种可能的设计中,处理模块102具体用于:
将第一报文中的压缩标志位设置第二标识,得到第二报文,第二标识用于指示第二报文为非压缩报文。
图6为本申请实施例提供的报文处理设备的硬件结构示意图。如图6所示,该报文处理设备20包括:处理器201和存储器202,
其中,处理器201、存储器202通过总线203连接。
在具体实现过程中,处理器201执行存储器202存储的计算机执行指令,使得处理器201执行如上的报文处理方法。
处理器201的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本 实施例此处不再赘述。
需要说明的是,报文处理设备可以为上述方法实施例中的第一设备,也可以为上述方法实施例中的第二设备。
在上述图6所示的实施例中,应理解,处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如磁盘存储器。
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。
本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上的报文处理方法。
上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific Integrated Circuits,ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。
单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元 上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (10)

  1. 一种报文处理方法,其特征在于,应用于第一设备,所述方法包括:
    获取压缩配置信息和参考信息,所述参考信息包括所述第一设备的设备信息和/或第一报文的报文信息;
    根据所述压缩配置信息和所述参考信息,对所述第一报文进行处理,得到第二报文;
    向第二设备发送所述第二报文。
  2. 根据权利要求1所述的方法,其特征在于,所述设备信息包括如下至少一种:
    所述第一设备的处理器占用率、所述第一设备接收信号的信号强度、所述第一设备对应的信号带宽、所述第一设备接收信号的信噪比、所述第一设备的解码成功率;
    所述报文信息包括:所述第一报文的压缩率。
  3. 根据权利要求1或2所述的方法,其特征在于,根据所述压缩配置信息和所述参考信息,对所述第一报文进行处理,得到第二报文,包括:
    根据所述压缩配置信息和所述参考信息,确定是否对所述第一报文进行压缩处理;
    若是,则对所述第一报文进行压缩处理,得到所述第二报文;
    若否,则更新所述第一报文中的压缩标志位,得到所述第二报文。
  4. 根据权利要求3所述的方法,其特征在于,根据所述压缩配置信息和所述参考信息,确定是否对所述第一报文进行压缩处理,包括:
    在所述压缩配置信息中获取压缩标识;
    在所述压缩标识指示进行报文压缩,且所述参考信息满足预设条件时,确定对所述第一报文进行压缩处理;
    在所述压缩标识指示不进行报文压缩,或者所述参考信息不满足预设条件时,确定对所述第一报文不进行压缩处理。
  5. 根据权利要求4所述的方法,其特征在于,所述预设条件包括如下至少一种:
    压缩率大于或等于预设压缩率阈值;或,
    处理器占用率大于或等于预设占用率阈值;或,
    信号强度小于或等于预设强度阈值;或,
    信号带宽小于或等于预设带宽阈值;或,
    信噪比大于或等于预设信噪比阈值;或,
    解码成功率大于或等于预设成功率阈值。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述第一报文包括数 据位和压缩标志位;对所述第一报文进行压缩处理,得到第二报文,包括:
    对所述数据位进行压缩处理,得到第一压缩报文;
    将所述第一压缩报文中的压缩标志位设置为第一标识,得到所述第二报文,所述第一标识用于指示所述第二报文为压缩报文。
  7. 根据权利要求3至5中任一项所述的方法,其特征在于,更新所述第一报文中的压缩标志位,得到所述第二报文,包括:
    将所述第一报文中的压缩标志位设置第二标识,得到所述第二报文,所述第二标识用于指示所述第二报文为非压缩报文。
  8. 一种报文处理装置,其特征在于,应用于第一设备,所述装置包括:获取模块、处理模块和发送模块,其中,
    所述获取模块用于,获取压缩配置信息和参考信息,所述参考信息包括所述第一设备的设备信息和/或第一报文的报文信息;
    所述处理模块用于,根据所述压缩配置信息和所述参考信息,对所述第一报文进行处理,得到第二报文;
    所述发送模块用于,向第二设备发送所述第二报文。
  9. 一种报文处理设备,其特征在于,包括:处理器和存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1至7任一项所述的报文处理方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的报文处理方法。
PCT/CN2021/127736 2020-11-16 2021-10-29 报文处理方法、装置、设备及存储介质 Ceased WO2022100467A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011280807.7 2020-11-16
CN202011280807.7A CN112217839A (zh) 2020-11-16 2020-11-16 报文处理方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022100467A1 true WO2022100467A1 (zh) 2022-05-19

Family

ID=74057159

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127736 Ceased WO2022100467A1 (zh) 2020-11-16 2021-10-29 报文处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN112217839A (zh)
WO (1) WO2022100467A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116232422A (zh) * 2022-12-28 2023-06-06 中国电信股份有限公司卫星通信分公司 短报文发送方法、装置、非易失性存储介质及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134425B (zh) * 2022-06-20 2024-07-16 北京京东乾石科技有限公司 一种报文处理方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
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 (zh) * 2015-12-09 2017-06-16 普天信息技术有限公司 一种volte系统中rohc头压缩的报文传输方法及系统
US20200241805A1 (en) * 2019-01-30 2020-07-30 EMC IP Holding Company LLC Adaptive compression mode
CN111741005A (zh) * 2020-06-30 2020-10-02 天津大学 基于海洋浮标的北斗数据传输系统及数据包报头压缩方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (zh) * 2015-12-09 2017-06-16 普天信息技术有限公司 一种volte系统中rohc头压缩的报文传输方法及系统
US20200241805A1 (en) * 2019-01-30 2020-07-30 EMC IP Holding Company LLC Adaptive compression mode
CN111741005A (zh) * 2020-06-30 2020-10-02 天津大学 基于海洋浮标的北斗数据传输系统及数据包报头压缩方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116232422A (zh) * 2022-12-28 2023-06-06 中国电信股份有限公司卫星通信分公司 短报文发送方法、装置、非易失性存储介质及电子设备

Also Published As

Publication number Publication date
CN112217839A (zh) 2021-01-12

Similar Documents

Publication Publication Date Title
US9565007B2 (en) Method of receiving a point-to-multipoint service in a wireless communication system
JP7327831B2 (ja) 通信方法及びデバイス
US10817460B2 (en) RDMA data sending and receiving methods, electronic device, and readable storage medium
CN106416175B (zh) 一种协议栈适配方法及装置
US8589586B2 (en) Method and apparatus for managing transmission of TCP data segments
US20170078916A1 (en) Data processing method and apparatus
US20160112900A1 (en) Data transmission method and apparatus, base station, and user equipment
CN109219078B (zh) 语音丢包处理方法及装置
WO2022100467A1 (zh) 报文处理方法、装置、设备及存储介质
WO2022237279A1 (zh) 一种数据传输方法及装置
EP1482668A1 (en) PACKET TRANSMITTER, PACKET RECEIVER AND PACKET TRANSMISSION METHOD
WO2021213186A1 (zh) 数据处理方法和装置
CN112399477B (zh) 一种通信方法及设备
US20040165542A1 (en) Packet transmitter and packet transmitter method
CN109842907A (zh) 传输数据的方法和装置
CN112399480B (zh) 减少传输开销的方法、装置及存储介质
CN114303355B (zh) 一种指示解压缩对象的方法及装置、通信设备
WO2021004207A1 (zh) 数据处理的方法和设备
JP2002094553A (ja) パケット伝送装置およびパケット伝送方法
CN107548105B (zh) 一种基于udp的数据传输确认方法和基站
CN107580339B (zh) 一种信息传输方法、装置及无线通信系统
CN115707134B (zh) 数据处理方法、装置及存储介质
CN112671693B (zh) 一种视频数据压缩方法、装置、存储介质和基站
US20040136380A1 (en) Packet transmitter, packet receiver and packet transmission method
CN113711558B (zh) 以太帧包头压缩处理方法、装置、用户终端、基站和介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21890994

Country of ref document: EP

Kind code of ref document: A1