A method, device, equipment and medium for processing retransmitted messages
By receiving and matching analysis packet information in the user terminal and performing deduplication and filtering, the problem of terminal receiving the same instruction multiple times is solved, and the effect of resource conservation and normal service processing is achieved.
Patent Information
- Application Number
- CN202211668373.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-12-23
AI Technical Summary
When the server platform conducts wireless communication and transmission with the user terminal, the same downlink instruction may be received and processed by the terminal multiple times, resulting in waste of resources.
In the user terminal, multiple packet information is received through the preset transmission protocol and transmitted to the storage space. Then, the matching analysis matches the downlink instructions in the instruction cache queue, and performs deduplication filtering.
This simplifies the process of user terminals for downlink resend packet information, reduces resource consumption, and does not affect the terminal's normal service processing of packet information.
Smart Images

Figure CN116016396B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication transmission, and in particular to a method, a processing device, a processing equipment and a medium for processing a retransmitted message. Background Art
[0002] Currently, the terminals using the LWM2M protocol use the UDP protocol for network communication. In order to ensure the quality of message transmission, multiple retransmissions of messages and ACK (or RSP) messages at the protocol layer are used to ensure communication between the terminal and the server platform.
[0003] When the server platform sends certain instructions to the terminal, it defines the maximum number of retransmissions and the response timeout for each instruction. Whenever the response timeout expires and no response message is received, it will be resent again until the corresponding ACK (or RSP) is received or the maximum number of transmissions is reached and the response times out. Therefore, there is a situation where the same downlink instruction of the server platform will be received and processed by the terminal multiple times, causing the terminal to waste resources to process it.
[0004] Currently, for such situations, the terminal generally does not perform special processing on the resending instruction. Summary of the invention
[0005] In order to overcome the deficiencies of the prior art solutions, the embodiments of the present invention provide a method, a processing apparatus, a processing device and a medium for processing a retransmitted message.
[0006] The technical solution adopted by the present invention to solve the technical problem is:
[0007] In a first aspect, an embodiment of the present invention provides a method for processing a retransmitted message, the method being applied to a user terminal, the user terminal establishing a network connection with a server platform to implement transmission of data information, the method comprising:
[0008] Receiving multiple message information within a preset time through a preset transmission protocol, and transmitting each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol;
[0009] Obtaining each copy of the message information in the first storage space, and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result;
[0010] The message information is deduplicated and filtered according to the matching result.
[0011] In a second aspect, an embodiment of the present invention further provides a processing device for retransmitting a message, wherein the processing device is configured in a user terminal, the user terminal establishes a network connection with a server platform to realize the transmission of data information, and the processing device includes:
[0012] A transmission module, used to receive multiple message information within a preset time through a preset transmission protocol, and transmit each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol;
[0013] A matching module, used for acquiring each of the message information in the first storage space, and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result;
[0014] A processing module is used to perform deduplication and filtering processing on the message information according to the matching result.
[0015] In a third aspect, an embodiment of the present invention further provides a processing device for retransmitting a message, the processing device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0016] Memory, used to store computer programs;
[0017] The processor is used to implement the steps of the method for processing retransmitted messages described in any one of the first aspects when executing the program stored in the memory.
[0018] In a fourth aspect, an embodiment of the present invention again provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for processing retransmitted messages described in any one of the first aspects are implemented.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] Without changing the normal business processing flow, there is no need to change the application of the user terminal. Without affecting the user terminal, the processing flow of the user terminal for downlink retransmitted message information is simplified, so that the normal business processing of the user terminal for message information does not need to be affected and the resource consumption of the user terminal is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0022] Figure 1 The present invention is a flowchart of a method for processing retransmitted messages according to an embodiment of the present invention.
[0023] Figure 2 It is a schematic diagram of multiple nodes of an instruction cache queue according to an embodiment of the present invention.
[0024] Figure 3 It is a block diagram of a device for processing retransmitted messages according to an embodiment of the present invention.
[0025] Figure 4 It is a block diagram of a device for processing retransmitted messages according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0028] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] In order to solve the technical problem that in the process of wireless communication transmission between a server platform and a user terminal in the prior art, the same downlink instruction is received and processed by the terminal for multiple times, thereby causing the terminal to waste resources to process it, an embodiment of the present invention provides a method for processing retransmitted messages. Figure 1 As shown, attached Figure 1It is a flow chart of a method for processing retransmitted messages in an embodiment of the present invention. The method for processing retransmitted messages is applied to a user terminal, and the user terminal establishes a network connection with a server platform to realize the transmission of data information. For example, the user terminal establishes a wireless communication transmission connection with the server platform through a wireless signal transmitter. The user terminal is a terminal device that is provided with components for controlling each unit module, such as a control circuit board of an MCU chip and a wireless signal transmitter in the terminal device, so as to realize the sending of messages.
[0031] The specific implementation process of a method for processing a retransmitted message provided by an embodiment of the present invention is described in detail below. Figure 1 As shown, the braking control method specifically includes steps S110 to S130.
[0032] S110. Receive multiple message information within a preset time through a preset transmission protocol, and transmit each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol.
[0033] Specifically, when the server terminal sends various instruction information to the user terminal, the user terminal is responsible for receiving the various instruction information sent by the server platform. In the process of receiving the instruction information sent by the server, the user terminal needs to receive the instruction information according to the transmission protocol pre-set in the user terminal.
[0034] The user terminal will receive various instruction information sent by the server platform within a preset time. For example, when the user starts the user terminal, it will receive N (the specific number is configurable) downlink instructions and their corresponding terminal message information issued by the server platform in the recent period, and then transmit the message information to the first storage space according to the transmission protocol, and match the downlink instructions cached in the instruction cache queue according to the first management protocol followed by the first storage space, and then make corresponding processing on the obtained matching results.
[0035] The specific transmission protocol is the UDP layer, which refers to the User Datagram Protocol. It is a connectionless transport layer protocol in the TCP / IP system, providing simple and unreliable information transmission services for transactions. The UDP protocol is the interface between the P protocol and the upper layer protocol, and uses port numbers to provide services for multi-person applications running on the same device. It is suitable for the pursuit of efficiency and does not require additional mechanisms, such as the distribution of music and video streaming media, and the high-level protocols or applications provide error and flow control functions. Fast distribution, UDP serves many well-known applications, such as Network File System (NFS), Simple Network Management Protocol (SNMP), Domain Name System (DNS), Simple File Transfer System FTP), Dynamic Host Configuration Protocol (DHCP), Routing Information Protocol (RIP), etc.
[0036] In addition, the transport protocol can also be the DTLS layer, which refers to Datagram Transport Layer Security. It is a TLS protocol customized and improved for UDP based on the reality that data packets may be lost or reordered in UDP scenarios.
[0037] S120, obtaining each message information in the first storage space, and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result.
[0038] Specifically, after the server platform sends various message information to the user terminal, this part of the message information is transmitted to the first storage space. Since the first storage space complies with the first management protocol, this part of the message information will be stored in the first management protocol and cached in the preset instruction cache queue for matching analysis. It is analyzed whether this part of the message information has matching message information in the instruction cache queue, so as to obtain the corresponding matching result, and then different processing methods are performed on the message information according to different matching results.
[0039] In addition, the first management protocol is specifically the CoAP layer (Constrained Application Protocol), which literally means constrained application protocol. It is an Internet application protocol dedicated to constrained devices, as defined in RFC 7252, enabling those constrained devices, called "nodes", to communicate with the wider Internet using similar protocols. CoAP is designed to be used between devices on the same constrained network (e.g., low-power, lossy networks), between devices and general nodes on the Internet, and between devices on different constrained networks connected by the Internet.
[0040] For example, when the server platform sends a part of the message information to the user terminal A in a certain time period, the user terminal A receives the message information and transmits it to the first storage space. This part of the message information is matched and analyzed in the first management protocol with the downlink instructions cached in the instruction cache queue. If a matching result is obtained, it is determined that there is no corresponding response message, which means that the message information is being processed, and the processing flow of this message information can be terminated without any other processing of the message. If an unmatched result is obtained, it is determined that the corresponding response message is used, and the message information can be cached in the downlink instructions cached in the instruction cache queue, and then the message is handed over to the first management protocol to continue processing according to the original sequence of the process.
[0041] S130: Perform deduplication and filtering processing on the message information according to the matching result.
[0042] Specifically, since it is difficult to avoid sending message information repeatedly when the server platform sends various message information to the user terminal, this part of the message information is matched and analyzed in the downlink instructions cached in the instruction cache queue in the first management protocol, and the different matching results are obtained. Then, the resent message information is deduplicated and filtered according to each matching result. That is, if the message information has a corresponding response message, it is considered that the message information is being processed and the message processing flow is terminated; if the message information does not have a corresponding response message, it is stored in the corresponding queue node, thereby completing the deduplication and filtering process.
[0043] It should be noted that the queue node saves the MsgID information, source address, Token and response message of the downlink instruction. In most cases, since the specification requires that the MsgID be strictly increasing, and considering that the user terminal may be connected to multiple servers at the same time, the instructions with the same MsgID sent to the same source address within a preset time can be considered as the same message information.
[0044] In a specific embodiment, step S130, obtaining the message information in the first storage space, and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result, includes the following steps:
[0045] The message information is subjected to message parsing processing to obtain a parsed message.
[0046] Specifically, before the message information is matched and analyzed with the downlink instructions cached in the instruction cache queue in the first management protocol, the message information sent by the server platform needs to be parsed and processed. Since the data in the message information is received cyclically, it can generally be placed in a separate thread. Therefore, the message information can be continuously received in the thread and then transmitted to the message parsing end to complete the parsing process.
[0047] It is determined whether the instruction cache queue contains a downlink instruction that matches the parsed message.
[0048] Specifically, each message information is transmitted to the first storage space and matched and analyzed among the downlink instructions cached in the instruction cache queue in the first management protocol. Specifically, it is determined whether the parsed message information contains the same message information in the downlink instructions cached in the instruction cache queue. In this way, it is determined and analyzed whether the server platform has the message information sent to the user terminal and whether there is any retransmission of the message.
[0049] If it contains a downlink instruction that matches the parsed message, a matching result is obtained.
[0050] Specifically, if the server platform sends retransmitted message information to the user terminal, this part of the message information is matched and analyzed in the downlink instructions cached in the instruction cache queue. When the parsed message contains matching downlink instructions, a matching result is obtained. That is, the server platform sends retransmitted message information to the terminal device, and then ends the processing flow of the message information, and does not perform other processing on the message information.
[0051] For example, the server platform has recently sent multiple message information to user terminal A, among which some message information includes retransmitted message information. After receiving the message information, user terminal A will judge and analyze the message information from the matching result of the retransmitted message information after matching and analyzing the downlink instructions cached in the instruction cache queue by the first management protocol.
[0052] If the downlink instruction matching the parsed message is not included, an unmatched result is obtained.
[0053] Specifically, if the server platform sends non-retransmitted message information to the user terminal, this part of the message information is matched and analyzed in the downlink instructions cached in the instruction cache queue. When the parsed message does not contain a matching downlink instruction, an unmatched result is obtained, that is, the server platform does not send retransmitted message information to the terminal device, and then stores the corresponding message information in the corresponding queue node.
[0054] For example, the server platform has recently sent multiple message information to user terminal B, among which this part of message information does not include retransmitted message information. After receiving the message information, user terminal B will perform a matching analysis on the downlink instructions cached in the instruction cache queue by the first management protocol, and will judge and analyze that the message information is an unmatched result that is not a retransmitted message information.
[0055] In a specific embodiment, step S130, performing deduplication filtering on the message information according to the matching result, includes the following steps:
[0056] If a matching result is obtained, the deduplication filtering process for the message information is terminated.
[0057] Specifically, if the message information sent by the server platform to the user terminal is a matching result of the resent message information, it is determined that the message information has been processed, and then the processing flow of this message information is terminated, and no other related processing is performed on the message information.
[0058] If no match is obtained, the message information is sent to the server platform.
[0059] Specifically, if the message information sent by the server platform to the user terminal is an unmatched result of the message information that has not been resent, it is sent to the server platform. After the message information is cached in the downlink instruction cached in the instruction cache queue, the second management protocol is then handed over to continue processing the message information in a sequential process, and the corresponding message information is stored in the corresponding queue node.
[0060] In a specific embodiment, if a matching result is obtained, then the deduplication filtering process for the message information is terminated, including the following steps:
[0061] Determine whether the message information matches the corresponding response message.
[0062] Specifically, when the user terminal receives the message information sent by the server platform and completes the matching analysis in the downlink instructions cached in the instruction cache queue and obtains a matching result, it is also necessary to judge the message information to determine whether the message information has a matching response message. Based on the result obtained by whether the message information has a matching response message, the processing method corresponding to the matching result of the message information is completed according to different results.
[0063] If the message information does not match the corresponding response message, the deduplication filtering process for the message information is terminated.
[0064] Specifically, when a match analysis is performed on the message information in the downstream instructions cached in the instruction cache queue, and a matching result is obtained, but there is no corresponding message information in the downstream instructions cached in the instruction cache queue, it is determined that the message information is being processed, and then the message information processing flow is terminated, and no other processing is performed on the message information.
[0065] In a specific embodiment, after the step of determining whether the message information has a corresponding response message, the following steps are also included:
[0066] If the message information matches the corresponding response message, the message information is sent to the server platform.
[0067] Specifically, when a match analysis is performed on the message information in the downlink instructions cached in the instruction cache queue and a matching result is obtained, but the message information has corresponding message information in the downlink instructions cached in the instruction cache queue, the message information is directly returned to the server platform without being transmitted to the second management protocol, and the processing of the message information is then terminated.
[0068] In a specific embodiment, before performing deduplication filtering on the message information according to the matching result, the following steps are also included:
[0069] The message information is transferred to the second storage space.
[0070] Specifically, if the message information is cached in the downlink instruction cached in the instruction cache queue, the message information is handed over to the second management protocol to continue processing the message information in a sequential order, that is, the message information is transmitted to the second storage space. Since the storage information of the second storage space complies with the second management protocol and the third management protocol, the message information in the second storage space needs to be processed in accordance with the second management protocol and the third management protocol.
[0071] The stored message information is subjected to service processing according to the second management protocol in the second storage space to obtain response information.
[0072] Specifically, since the server platform does not send retransmitted message information to the user terminal, after the message information is transmitted to the second storage space, the stored message information is first processed according to the second management protocol. The second management protocol specifically processes the non-retransmitted message information in a sequential order through the second management protocol. The second management protocol is specifically the LwM2M layer, which refers to Lightweight M2M, a lightweight, standard and universal IoT device management protocol, a lightweight and compact secure communication interface and an efficient data model to achieve M2M device management and service support, and can be used to quickly deploy IoT services in client or server mode.
[0073] The response information is formatted and coded according to the third management protocol in the second storage space to obtain message coding information.
[0074] Specifically, after the non-retransmitted message information is transmitted to the second storage space and the stored message information is processed by the second management protocol, it is also necessary to perform format encoding processing on this part of the response information after the business processing according to the third management protocol. That is, when the non-retransmitted message information is handed over to the second management protocol (LWM2M layer) for business processing, the second management protocol completes the corresponding business operation according to the message information, and hands over the response information to the third management protocol for format encoding processing based on the obtained information, and the third management protocol finally hands over the encoded message encoding information to the transmission protocol (UDP layer or DTLS layer) for subsequent processing.
[0075] The third management protocol is specifically the CoAP layer, which refers to the Constrained Application Protocol. It is an IoT protocol designed for constrained devices and can also be used to build IoT solutions. It is a Web protocol used in M2M for asynchronous message exchange, low overhead and very simple parsing of URI and content type support, as well as proxy and caching functions.
[0076] For example, the UDP layer in the second storage space (if the DTLS layer is used for communication, it is the DTLS layer) receives the message information and transmits it to the CoAP layer for processing. After the CoAP layer parses the response information, it obtains the message encoding information, that is, the message encoding information is transmitted to the LWM2M layer for processing. In the LWM2M layer, the corresponding business processing is completed according to the message information, and the response information is transmitted to the CoAP layer for format encoding processing. The message encoding information encoded by the CoAP layer is transmitted to the UDP layer (or DTLS layer) for subsequent processing.
[0077] The message encoding information is cached in a preset instruction cache queue in a sequential order, and the message encoding information is stored in a corresponding node in the instruction cache queue.
[0078] Specifically, since the server platform does not send the retransmitted message information to the user terminal, after the message information is processed by business and format coding, the obtained message coding information is stored in the corresponding node in the instruction cache queue according to the respective cache order.
[0079] For example, the server platform first sends a first message to the user terminal in the near future, and then sends a second message. The first message is first processed by business and formatted and then stored in the instruction cache queue at the corresponding first node. The second message is then processed by business and formatted and then stored in the instruction cache queue at the corresponding second node.
[0080] In a specific embodiment, after the step of obtaining each message information in the first storage space and matching and analyzing the downlink instructions cached in the preset instruction cache queue, the following steps are also included:
[0081] The total number of retransmissions and the response period of each downstream instruction in the instruction cache queue are calculated respectively to obtain instruction feature information of each downstream instruction.
[0082] Specifically, when the message encoding information is stored in the node corresponding to the instruction cache queue, the number of retransmissions of each message encoding information and the instruction response cycle can be expanded and saved. If the first message information is received, the interval of the response returned by the user terminal is sent.
[0083] The instruction feature information of each downlink instruction is sent to the server platform.
[0084] Specifically, the user terminal can periodically send the number of retransmissions and the response period of the message encoding information in the instruction cache queue. Then the server platform can dynamically adjust the retransmission period of the message information according to the number of retransmissions and the response period of the message encoding information, thereby achieving mutual adaptation between business and communication to complete the optimization of the scenario.
[0085] Through the method for processing retransmitted messages of the embodiment of the present invention, it is possible to achieve the situation where the normal business processing flow does not need to be changed and the application of the user terminal does not need to be changed. While not affecting the user terminal, the processing flow of the user terminal for downlink retransmitted message information is simplified, thereby achieving the goal of not affecting the normal business processing of the user terminal for the message information and reducing the resource consumption of the user terminal.
[0086] In addition, corresponding to the above-mentioned method for processing a retransmitted message, an embodiment of the present invention further provides a retransmitted message processing device 100, the processing device 100 is configured in a user terminal, the user terminal establishes a network connection with the server platform to realize the transmission of data information, according to the attached Figure 3 As shown, the processing device 100 includes:
[0087] The transmission module 110 is used to receive multiple message information within a preset time through a preset transmission protocol, and transmit each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol.
[0088] The matching module 120 is used to obtain each message information in the first storage space, and perform matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result.
[0089] The processing module 130 is used to perform deduplication filtering on the message information according to the matching result.
[0090] Through the retransmitted message processing device of the embodiment of the present invention, it is possible to achieve the situation where the normal business processing process does not need to be changed and the application of the user terminal does not need to be changed. While not affecting the user terminal, the processing process of the user terminal for downlink retransmitted message information is simplified, thereby achieving the goal of not affecting the normal business processing of the user terminal for the message information and reducing the resource consumption of the user terminal.
[0091] The embodiment of the present invention further provides a processing device for resending a message, according to the attached Figure 4 As shown, the processing device 10 includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404; wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other via the communication bus 404; the memory 403 is used to store computer programs.
[0092] In one embodiment of the present invention, the processor 401 is used to execute the steps of the method for processing retransmitted messages provided by any one of the aforementioned method invention embodiments when executing the program stored in the memory 403.
[0093] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for processing retransmitted messages provided in any one of the aforementioned method embodiments are implemented. The functions specifically implemented by the embodiment of the storage medium are the same as those of the above-mentioned embodiment of the method for processing retransmitted messages, and the beneficial effects achieved are also the same as the beneficial effects achieved by the above-mentioned embodiment of the method for processing retransmitted messages.
[0094] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0095] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for processing a retransmitted message, characterized in that: The processing method is applied to a user terminal, and the user terminal establishes a network connection with a server platform to realize the transmission of data information. The processing method includes: Receiving multiple message information within a preset time through a preset transmission protocol, and transmitting each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol; Obtain each of the message information in the first storage space, and perform matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result; wherein the downlink instruction is the message information sent by the server platform; Performing deduplication and filtering processing on the message information according to the matching result; The acquiring each piece of the message information in the first storage space and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result includes: Performing message parsing on the message information to obtain a parsed message; Determining whether the instruction cache queue contains a downlink instruction matched by the parsed message; If a downlink instruction matching the parsed message is included, a matching result is obtained; If the parsed message does not contain a downlink instruction that matches the parsed message, an unmatched result is obtained; The performing deduplication filtering on the message information according to the matching result includes: If a matching result is obtained, then the deduplication filtering process for the message information is terminated; If a no-match result is obtained, the message information is stored in the instruction cache queue; If a matching result is obtained, then the deduplication filtering process for the message information is terminated, including: Determine whether the message information matches the corresponding response message; If the message information does not match the corresponding response message, the deduplication filtering process for the message information is terminated.
2. The method for processing a retransmitted message according to claim 1, characterized in that: After determining whether the message information matches the corresponding response message, the method further includes: If the message information matches a corresponding response message, the message information is stored in the instruction cache queue.
3. A method for processing a retransmitted message according to claim 1, characterized in that: Before performing deduplication filtering on the message information according to the matching result, the method further includes: Transmitting the message information to a second storage space; Performing business processing on the stored message information according to the second management protocol in the second storage space to obtain response information; Performing format encoding processing on the response information according to the third management protocol in the second storage space to obtain message encoding information; Cache the message encoding information in the preset instruction cache queue in order of precedence; The message encoding information is stored in a corresponding node in the instruction cache queue.
4. A method for processing a retransmitted message according to claim 1, characterized in that: After obtaining each message information in the first storage space and matching and analyzing the downlink instructions cached in the preset instruction cache queue, the method further includes: Respectively calculating the total number of retransmissions and the response period of each of the downlink instructions in the instruction cache queue to obtain instruction feature information of each of the downlink instructions; The instruction feature information of each of the downlink instructions is sent to the server platform.
5. The apparatus for processing retransmitted messages according to claim 1, characterized in that: The processing device is configured in a user terminal, and the user terminal establishes a network connection with a server platform to realize the transmission of data information. The processing device includes: A transmission module, used to receive multiple message information within a preset time through a preset transmission protocol, and transmit each message information to a first storage space; wherein the storage information in the first storage space complies with a first management protocol; A matching module, used for acquiring each of the message information in the first storage space, and performing matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result; A processing module, used for performing deduplication and filtering processing on the message information according to the matching result; The matching module is further used to obtain each piece of the message information in the first storage space and perform matching analysis with the downlink instructions cached in the preset instruction cache queue to obtain a matching result, including: Performing message parsing on the message information to obtain a parsed message; Determining whether the instruction cache queue contains a downlink instruction matched by the parsed message; If a downlink instruction matching the parsed message is included, a matching result is obtained; If the parsed message does not contain a downlink instruction that matches the parsed message, an unmatched result is obtained; The performing deduplication filtering on the message information according to the matching result includes: If a matching result is obtained, then the deduplication filtering process for the message information is terminated; If a no-match result is obtained, the message information is stored in the instruction cache queue; If a matching result is obtained, then the deduplication filtering process for the message information is terminated, including: Determine whether the message information matches the corresponding response message; If the message information does not match the corresponding response message, the deduplication filtering process for the message information is terminated.
6. A retransmission message processing device, characterized in that: The processing device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the method for processing retransmitted messages according to any one of claims 1 to 4 when executing a program stored in a memory.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for processing a retransmitted message according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
User mode network protocol stack system and method for processing message
CN101867558A
Data communication method and device
CN106506271A