A communication parameter transmission method, device, equipment and storage medium

By compressing the initial communication parameters first and second parameters, the inefficiency and bandwidth consumption problems caused by redundant characters in network communication are solved, and more efficient communication parameters transmission is achieved.

CN118660085BActive Publication Date: 2024-11-15HANGZHOU HAOLINK INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411132844.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-15
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

In network communication, redundant characters of communication parameters lead to inefficient network transmission and increased bandwidth consumption.

Method used

By performing first parameter compression and second parameter compression on the initial communication parameters, the target communication parameters are generated, including dividing the initial string group and compressing the same string, and optimizing the parameter structure to reduce redundant data.

Benefits of technology

It improves the efficiency of network communication transmission, reduces network bandwidth consumption, and optimizes the transmission process of communication parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660085B_ABST
    Figure CN118660085B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for transmitting communication parameters. The method for transmitting communication parameters includes: obtaining at least one initial communication string in the initial communication parameters, and dividing the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; based on the number of strings in the initial string group, performing a first parameter compression on the initial string group to generate a target string group; based on the number of identical strings in the target string group, performing a second parameter compression on the target string, and generating a target communication parameter, which is transmitted to a data receiver. Through the above technical solution, the repeated redundant data in the initial communication parameters is reduced, and the transmission efficiency of the target communication parameters in the network communication transmission process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for transmitting communication parameters. Background Art

[0002] In network communications, communication parameters are usually transmitted in text form, which may contain a large number of repeated characters. For example, in a complex form submission process, some parameters may contain repeated characters, resulting in a large amount of redundant data in network transmission, reducing network transmission efficiency and increasing network bandwidth consumption. Summary of the invention

[0003] The present invention provides a communication parameter transmission method, device, equipment and storage medium to improve transmission efficiency during network communication parameter transmission.

[0004] According to one aspect of the present invention, a method for transmitting communication parameters is provided, the method comprising:

[0005] Acquire at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; wherein the initial communication parameter is a communication parameter to be transmitted by the data sender;

[0006] Based on the number of strings in the initial string group, the initial string group is compressed by the first parameter to generate a target string group; wherein the target string group includes all the initial string groups compressed by the first parameter;

[0007] Based on the number of identical strings in the target string group, the target string is compressed by a second parameter, and a target communication parameter is generated and transmitted to a data receiver; wherein the communication string carried by the target communication parameter is the string compressed by the second parameter.

[0008] According to another aspect of the present invention, there is provided a communication parameter transmission device, the device comprising:

[0009] An initial string group generating module, used to obtain at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; wherein the initial communication parameter is the communication parameter to be transmitted by the data sender;

[0010] a target string group generating module, configured to compress the initial string group by the first parameter based on the number of strings in the initial string group, so as to generate a target string group; wherein the target string group includes all the initial string groups compressed by the first parameter;

[0011] The transmission module is used to perform second parameter compression on the target string based on the number of identical strings in the target string group, and generate a target communication parameter, which is transmitted to a data receiver; wherein the communication string carried by the target communication parameter is the string compressed by the second parameter.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the communication parameter transmission method described in any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication parameter transmission method described in any embodiment of the present invention when executed.

[0017] According to another aspect of the present invention, a computer program product is provided. The computer program includes a computer program. When the computer program is executed by a processor, the communication parameter transmission method according to any embodiment of the present invention is implemented.

[0018] The technical solution of the embodiment of the present invention performs a first parameter compression and a second parameter compression on the initial communication parameters to generate target communication parameters and send them to the data recipient, thereby optimizing the parameter structure of the initial communication parameters, reducing repeated redundant data in the initial communication parameters, improving the transmission efficiency of the target communication parameters during network communication transmission, and reducing network bandwidth consumption.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a communication parameter transmission method provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a communication parameter transmission method provided according to Embodiment 2 of the present invention;

[0023] Figure 3 is a flow chart of a communication parameter transmission method provided according to Embodiment 3 of the present invention;

[0024] Figure 4 is a schematic diagram of the structure of a communication parameter transmission device provided according to a fourth embodiment of the present invention;

[0025] Figure 5 It is a structural schematic diagram of an electronic device for implementing the communication parameter transmission method of an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 A flow chart of a method for transmitting communication parameters is provided for the first embodiment of the present invention. This embodiment is applicable to the case of transmitting communication parameters in network communication. The method can be applied to the data sender. The method can be executed by a communication parameter transmission device. The communication parameter transmission device can be implemented in the form of hardware and / or software. The communication parameter transmission device can be configured in various general computing devices, such as client devices or server devices capable of network communication. Figure 1 As shown, the method includes:

[0030] S110: Acquire at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first characters of the initial communication string to generate at least one initial string group.

[0031] The initial communication parameters may be communication parameters to be transmitted by the data sender; and the initial communication character string may refer to parameters to be transmitted carried in the initial communication parameters.

[0032] Optionally, based on the first characters of the initial communication strings, at least one initial communication string is divided to generate at least one initial string group, including: traversing at least one initial communication string in the initial communication parameters, dividing the initial communication strings with the same first characters together, and generating at least one initial string group.

[0033] The initial communication parameters in the data sender include a large number of parameters to be transmitted. The initial communication parameters can be segmented and identified with a preset separator character, and at least one initial communication string in the initial communication parameters is obtained. All the acquired initial communication strings are traversed, and the initial communication strings with the same first character are clustered and divided to generate initial string groups, that is, the initial communication strings in each initial string group have the same first character, and the initial communication strings in different initial string groups have different first characters. Optionally, the preset segmentation characters can be adaptively set according to those skilled in the art, for example, space characters, comma characters and / or quotation marks (to identify characters in quotation marks), etc.

[0034] S120 . Based on the number of character strings in the initial character string group, perform first parameter compression on the initial character string group to generate a target character string group.

[0035] The target character string group includes all initial character string groups compressed by the first parameter and initial character string groups not compressed by the first parameter.

[0036] Specifically, based on the number of strings in the initial string group, the initial communication strings in the initial string group whose number of strings is greater than the first number threshold may be compressed by the first parameter, and the initial communication strings in the initial string group whose number of strings is less than or equal to the first number threshold may not be compressed by the first parameter, and the initial string group after the first parameter compression and the initial string group for which the first parameter compression is not performed are integrated to generate the target string group. Optionally, the first parameter compression process may be a process of compressing the common string prefixes between the initial communication strings in the initial string group. Optionally, the first number threshold may be adaptively set according to those skilled in the art.

[0037] S130 . Based on the number of identical character strings in the target character string group, perform second parameter compression on the target character string, generate a target communication parameter, and transmit it to a data receiver.

[0038] The target communication parameters may refer to communication parameters sent to the data receiver after parameter compression processing.

[0039] Specifically, the strings in the target string group can be traversed to determine the number of occurrences of the same string in the target string, and the second parameter compression can be performed on the string whose number of occurrences is greater than the second number threshold, and the target communication parameter is generated according to the target string group after the second parameter compression, and transmitted to the data receiving party. Optionally, the second parameter compression process can refer to the process of compressing the string that appears multiple times. Optionally, the second number threshold can be adaptively set according to those skilled in the art.

[0040] In an optional embodiment of the present invention, before the target string is compressed with the second parameter based on the number of identical strings in the target string group, it also includes: determining whether to perform the second parameter compression according to the real-time network communication status, such as the average transmission delay; the network communication status can be evaluated by calculating the current network congestion rate, for example, the network congestion rate is measured by the average delay, and the average delay can refer to the average time experienced by the data packet from the data sender to the data receiver, that is, the average value of the total delay of all data packets; the delay is divided into transmission delay (the time required to transmit data), queuing delay (the time waiting for transmission in the network node), processing delay (the time the data packet is processed in the network device), etc.; if the average delay is greater than the preset delay threshold, it indicates that the current network communication situation is relatively congested, and it is determined to perform the second parameter compression; if the average delay is less than or equal to the preset delay threshold, it indicates that the current network communication situation is relatively smooth, and there is no need to perform the second parameter compression. Optionally, the preset delay threshold can be adaptively set according to those skilled in the art.

[0041] By determining whether to perform the second parameter compression process based on the average delay of the data packet, the transmission strategy can be dynamically adjusted according to the network communication situation to improve the network communication efficiency under different network communication situations.

[0042] Optionally, in an embodiment of the present invention, the initial communication string can be divided according to the specific data type of the communication parameter. If the communication parameter is a single parameter, the string represented by the parameter is directly used as the initial communication string. If the communication parameter is a key-value pair parameter, the string represented by the key-value pair parameter can be used as the initial communication string.

[0043] The technical solution of the embodiment of the present invention performs a first parameter compression and a second parameter compression on the initial communication parameters to generate target communication parameters and send them to the data recipient, thereby optimizing the parameter structure of the initial communication parameters, reducing repeated redundant data in the initial communication parameters, improving the transmission efficiency of the target communication parameters during network communication transmission, and reducing network bandwidth consumption.

[0044] Embodiment 2

[0045] Figure 2 This is a flowchart of a communication parameter transmission method provided in Embodiment 2 of the present invention. This embodiment further refines the above embodiment and provides specific steps for performing first parameter compression on the initial string group based on the number of strings in the initial string group. It should be noted that for the parts not described in detail in the embodiment of the present invention, please refer to the relevant descriptions of other embodiments and will not be repeated here. Figure 2 As shown, the method includes:

[0046] S210: Acquire at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first characters of the initial communication string to generate at least one initial string group.

[0047] S220 , for an initial string group whose number of strings is greater than a first number threshold, traverse the characters of the initial communication strings therein to determine a common string prefix of the initial string group.

[0048] S230 . For each initial character string group, delete the common character string prefix in the initial communication character string except the first and last characters in the initial character string group, thereby completing the first parameter compression.

[0049] The common string prefix may refer to a prefix string common to each initial communication string in the initial string group.

[0050] In an embodiment of the present invention, the initial string groups are traversed to determine the number of strings in each initial string group. For an initial string group in which the number of strings is greater than a first quantity threshold, each initial communication string in the initial string group can be traversed to determine the common string prefix of each initial communication string in the initial string group. After determining the common string prefix corresponding to the initial string group, the common string prefixes in the remaining initial communication strings in the initial string group except the first and last digits can be deleted to complete the first parameter compression of the initial string group.

[0051] For example, if there is an initial string group of {"AB":"High-tech", "ABC":"123", "ABCQ":"user", "ABCY":"Administrator", "ABK":"24"}, the common string prefix of the initial string group is "AB". At this time, it is necessary to delete the common string prefixes in the initial communication strings except "AB":"High-tech" and "ABK":"24" in the initial string group. After the first parameter compression, the initial string group is {"AB":"High-tech", "C":"123", "CQ":"user", "CY":"Administrator", "ABK":"24"}. It should be noted that the first and last initial communication strings in the initial string group are retained so that subsequent data reception can facilitate the restoration of the remaining initial communication strings in the initial string group based on the common string prefixes in the first and last initial communication strings.

[0052] Optionally, in the embodiment of the present invention, after the target character string group is generated, the method further includes: performing the first parameter compression process on the target character string group again.

[0053] After the first parameter compression is performed on the initial character string group, the first parameter compression may be performed again on the generated target character string group, which can further reduce the data volume of the target character string group and improve data transmission efficiency.

[0054] S240: Based on the number of identical character strings in the target character string group, perform second parameter compression on the target character string, generate a target communication parameter, and transmit it to the data receiver.

[0055] Optionally, in an embodiment of the present invention, a predefined replacement mapping table can be pre-established, and the replacement mapping table records the replacement rules of fixed character strings. The determination of fixed character strings can be adaptively set by those skilled in the art. For example, a character string whose historical appearance times reaches a target number threshold is defined as a fixed character string; the data sender can directly complete the replacement of the fixed character string, and the data receiver will also have the replacement mapping table for restoring the received communication parameters. Optionally, the target number threshold can be adaptively set by those skilled in the art.

[0056] The technical solution of the embodiment of the present invention optimizes the data structure of the initial communication strings in the initial string group by deleting the common string prefixes of some initial communication strings in the initial string group, effectively reduces the repeated characters in the initial string group, and improves the transmission efficiency of network communication transmission.

[0057] Embodiment 3

[0058] Figure 3 This is a flowchart of a method for transmitting communication parameters provided in Embodiment 3 of the present invention. This embodiment further refines the above embodiment and provides specific steps for performing second parameter compression on the target string based on the number of identical strings in the target string group, generating target communication parameters, and transmitting them to the data receiver. It should be noted that for the parts not described in detail in the embodiments of the present invention, please refer to the relevant descriptions of other embodiments and will not be repeated here. Figure 3 As shown, the method includes:

[0059] S310: Acquire at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first characters of the initial communication string to generate at least one initial string group.

[0060] S320 . Based on the number of character strings in the initial character string group, perform first parameter compression on the initial character string group to generate a target character string group.

[0061] S330: traverse the target string group, determine the number of occurrences of each string in the target string group, and use the strings whose number of occurrences is greater than a second number threshold and whose string length is greater than a preset length threshold as strings to be compressed.

[0062] S340: Generate a compression replacement rule according to the character string to be compressed, and replace the character string to be compressed with the compression character string.

[0063] The compression replacement rule is used to indicate the replacement relationship between the character string to be compressed and the compressed character string, and the length of the compressed character string is smaller than the character string to be compressed.

[0064] In an embodiment of the present invention, after obtaining the target string group, the strings in the target string group can be traversed to determine the number of occurrences of each string in the target string group, and the strings whose number of occurrences is greater than the second quantity threshold and whose string length is greater than the preset length threshold are used as strings to be compressed; corresponding compression replacement rules are generated for the strings to be compressed, and the strings to be compressed are replaced with the compressed strings. It should be noted that different strings to be compressed have different corresponding compression replacement rules. Optionally, the second quantity threshold and the preset length threshold can be adaptively set according to those skilled in the art, and in the second parameter compression process, the number of occurrences of each string determined can be used to identify the string according to the preset segmentation character, and the preset segmentation character can be adaptively set according to those skilled in the art, such as identifying characters in quotation marks ("Administrator").

[0065] Optionally, the number of occurrences of each string in the target string group can be represented by a key-value pair, where the key is used to represent the string and the value is used to represent the number of occurrences of the string. The compression replacement rule can be represented by compression metadata, for example, X="a=DD&b=false", which means that the data X represents replacing "DD" with the character "a" and replacing "false" with the character "b".

[0066] S350: Generate target communication parameters according to the target character string group after compression and replacement, and send them to the data receiver.

[0067] The target communication parameters also include compression replacement rules.

[0068] Exemplarily, the target communication parameters finally generated may be {"AB":"High-tech", "C":"123", "Q":"user", "CY":"Administrator", "ABK":"24", "a":"2002", "DDD":"Technology", "DDD":"Technology", "EF":"Id", "H":"Bank card", "EFY":"boy", "helo":"a", "is":"123", "isLoad":"b", "Setting":"b", "X":"a=DD&b=false}. The compression replacement rule represented by the compression metadata can indicate the replacement relationship between the compressed strings in the target communication parameters, so that the data recipient can restore the target communication parameters.

[0069] Optionally, in an embodiment of the present invention, after the data receiving party receives the target communication parameters transmitted by the data sending party, the process of restoring the target communication parameters by the data receiving party may include: receiving the target communication parameters transmitted from the data sending party, and replacing the compressed string in the target communication parameters with the string to be compressed according to the compression replacement rule carried in the target communication parameters to generate a target string group; traversing the communication strings with the same string prefix in the target string, and treating the communication strings with the same string prefix range as a communication string group; for a communication string group with a number of strings greater than a first number threshold, adding the string prefix to the communication strings that do not have the string prefix corresponding to the communication string group to generate an initial string group.

[0070] The technical solution of the embodiment of the present invention further reduces redundant characters in the target string group by compressing and replacing the character strings to be compressed in the target string group, improves the transmission efficiency of the target communication parameters during the network communication transmission process, and reduces the consumption of network bandwidth.

[0071] Embodiment 4

[0072] Figure 4 This is a schematic diagram of the structure of a communication parameter transmission device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device comprises:

[0073] The initial string group generating module 410 is used to obtain at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; wherein the initial communication parameter is the communication parameter to be transmitted by the data sender;

[0074] The target string group generating module 420 is used to compress the initial string group with the first parameter based on the number of strings in the initial string group to generate a target string group; wherein the target string group includes all the initial string groups compressed with the first parameter;

[0075] The transmission module 430 is used to perform second parameter compression on the target string based on the number of identical strings in the target string group, and generate a target communication parameter, which is transmitted to the data receiver; wherein the communication string carried by the target communication parameter is the string compressed by the second parameter.

[0076] The technical solution of the embodiment of the present invention performs a first parameter compression and a second parameter compression on the initial communication parameters to generate target communication parameters and send them to the data recipient, thereby optimizing the parameter structure of the initial communication parameters, reducing repeated redundant data in the initial communication parameters, improving the transmission efficiency of the target communication parameters during network communication transmission, and reducing network bandwidth consumption.

[0077] Optionally, the target character string group generating module 420 includes:

[0078] a prefix determination unit, configured to traverse the initial communication strings in an initial string group whose number of strings is greater than a first number threshold, and determine a common string prefix of the initial string group;

[0079] The first compression unit is used to delete the common string prefix in the initial communication string except the first and last positions in each initial string group, so as to complete the first parameter compression.

[0080] Optionally, the target character string group generating module 420 further includes:

[0081] The recompression unit is used to perform the first parameter compression process on the target character string group again.

[0082] Optionally, the transmission module 430 includes:

[0083] a character string unit to be compressed, used for traversing the target character string group, determining the number of occurrences of each character string in the target character string group, and taking a character string whose number of occurrences is greater than a second number threshold and whose character string length is greater than a preset length threshold as a character string to be compressed;

[0084] a replacement unit, configured to generate a compression replacement rule according to the character string to be compressed, and replace the character string to be compressed with the compressed character string; wherein the compression replacement rule is used to indicate a replacement relationship between the character string to be compressed and the compressed character string, and the length of the compressed character string is smaller than the character string to be compressed;

[0085] The transmission unit is used to generate target communication parameters according to the target character string group after compression and replacement, and send the target communication parameters to the data receiving party; wherein the target communication parameters also include compression and replacement rules.

[0086] Optionally, the initial character string group generating module 410 may be specifically configured to: traverse at least one initial communication character string in the initial communication parameters, group initial communication character strings with the same first character together, and generate at least one initial character string group.

[0087] Optionally, the process of restoring the target communication parameters by the data receiving party includes: receiving the target communication parameters transmitted from the data sending party, and replacing the compressed strings in the target communication parameters with the strings to be compressed according to the compression replacement rules carried in the target communication parameters to generate a target string group; traversing the communication strings with the same string prefix in the target string, and treating the communication strings with the same string prefix range as a communication string group; for the communication string group with a number of strings greater than a first number threshold, adding the string prefix to the communication strings that do not have the string prefix corresponding to the communication string group to generate an initial string group.

[0088] The communication parameter transmission device provided in the embodiment of the present invention can execute the communication parameter transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0089] Embodiment 5

[0090] Figure 5 A schematic diagram of the structure of an electronic device 510 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0091] like Figure 5 As shown, the electronic device 510 includes at least one processor 511, and a memory connected to the at least one processor 511 in communication, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 511 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 512 or the computer program loaded from the storage unit 518 to the random access memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.

[0092] A number of components in the electronic device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0093] The processor 511 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 511 executes the various methods and processes described above, such as a method for transmitting communication parameters.

[0094] In some embodiments, the method for transmitting communication parameters may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 513 and executed by the processor 511, one or more steps of the method for transmitting communication parameters described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to execute the method for transmitting communication parameters in any other appropriate manner (e.g., by means of firmware).

[0095] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0096] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0097] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0098] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0099] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0100] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for transmitting communication parameters, characterized in that: Applied to a data sender, the method comprises: Acquire at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; wherein the initial communication parameter is a communication parameter to be transmitted by the data sender; Based on the number of strings in the initial string group, the initial string group is compressed by the first parameter to generate a target string group; wherein the target string group includes all the initial string groups compressed by the first parameter; Based on the number of identical strings in the target string group, the target string is subjected to second parameter compression, and a target communication parameter is generated and transmitted to a data receiving party; wherein the second parameter compression process refers to a process of replacing a string to be compressed with a compressed string according to a compression replacement rule corresponding to the string to be compressed, determined for a string in the target string group whose number of occurrences is greater than a second number threshold and whose string length is greater than a preset length threshold; The step of performing first parameter compression on the initial string group based on the number of strings in the initial string group includes: For an initial string group whose number of strings is greater than a first number threshold, traverse the initial communication strings therein to determine a common string prefix of the initial string group; For each initial character string group, the common character string prefixes in the initial communication character strings except those located at the first and last positions in the initial character string group are deleted to complete the first parameter compression.

2. The method according to claim 1, characterized in that After generating the target string group, also include: The first parameter compression process is performed again on the target character string group.

3. The method according to claim 1, characterized in that: Based on the number of identical character strings in the target character string group, performing second parameter compression on the target character string, generating a target communication parameter, and transmitting the target communication parameter to a data receiving party, including: Traversing the target character string group, determining the number of occurrences of each character string in the target character string group, and taking a character string whose number of occurrences is greater than a second number threshold and whose character string length is greater than a preset length threshold as a character string to be compressed; Generate a compression replacement rule according to the character string to be compressed, and replace the character string to be compressed with the compressed character string; wherein the compression replacement rule is used to indicate a replacement relationship between the character string to be compressed and the compressed character string, and the length of the compressed character string is smaller than the character string to be compressed; According to the target character string group after compression and replacement, a target communication parameter is generated and sent to a data receiver; wherein the target communication parameter also includes a compression and replacement rule.

4. The method according to claim 1, characterized in that: The at least one initial communication string is divided based on the first character of the initial communication string to generate at least one initial string group, including: At least one initial communication character string in the initial communication parameters is traversed, and initial communication character strings with the same first character are grouped together to generate at least one initial character string group.

5. The method according to claim 1, characterized in that The process of restoring the target communication parameters by the data receiving party includes: receiving a target communication parameter transmitted from a data sender, and replacing a compressed character string in the target communication parameter with a character string to be compressed according to a compression replacement rule carried in the target communication parameter, to generate a target character string group; Traversing the communication strings having the same string prefix in the target string, and taking the communication strings having the same string prefix as a communication string group; For a communication string group whose string quantity is greater than a first quantity threshold, the string prefix is ​​added to the communication strings that do not have the string prefix corresponding to the communication string group to generate an initial string group.

6. A communication parameter transmission device, characterized in that: Applied to a data sender, the device comprises: An initial string group generating module, used to obtain at least one initial communication string in the initial communication parameters, and divide the at least one initial communication string based on the first character of the initial communication string to generate at least one initial string group; wherein the initial communication parameter is the communication parameter to be transmitted by the data sender; a target string group generating module, configured to compress the initial string group by the first parameter based on the number of strings in the initial string group, so as to generate a target string group; wherein the target string group includes all the initial string groups compressed by the first parameter; A transmission module, configured to perform second parameter compression on the target string based on the number of identical strings in the target string group, and generate a target communication parameter, which is transmitted to a data receiver; wherein the communication string carried by the target communication parameter is the string compressed by the second parameter; wherein the second parameter compression process refers to a process of replacing the string to be compressed with a compressed string according to a compression replacement rule corresponding to the string to be compressed, determined for the string in the target string group whose number of occurrences is greater than a second number threshold and whose string length is greater than a preset length threshold; Among them, the target string group generation module includes: a prefix determination unit, configured to traverse the initial communication strings in an initial string group whose number of strings is greater than a first number threshold, and determine a common string prefix of the initial string group; The first compression unit is used to delete the common string prefix in the initial communication string except the first and last positions in each initial string group, so as to complete the first parameter compression.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the communication parameter transmission method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication parameter transmission method according to any one of claims 1 to 5 when executed.

9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for transmitting communication parameters according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Compression method, uncompression method, compression apparatus and uncompression apparatus

    CN105357532A

  • Compression method, restoration method and terminal

    CN106844091A

  • Data compression method and device, electronic equipment and storage medium

    CN117375629A

  • Data transmission method and device, electronic equipment and computer storage medium

    CN117640780A

  • Transmission data processing method and device, equipment, medium and product

    CN118509485A