A method, device and storage medium for receiving and distributing rules

By generating identification rules in the proxy device and merging them into merge rule messages, and using parallel distribution strategy, the problems of low distribution efficiency, latency and processing efficiency in the existing rule distribution methods are solved, and efficient and fast rule distribution is achieved.

CN119766880APending Publication Date: 2025-04-04SHANGHAI HENGWEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411834372.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing rule distribution methods have problems such as low distribution efficiency, distribution delay and processing efficiency, which are mainly due to excessive packet interaction and polling distribution strategies caused by a single rule distribution method.

Method used

By generating identification rules in the proxy device, copying and storing them in the rule cache queue, cached to the temporary cache area according to the rule type, and merging the rules to generate merge rule messages when the threshold is reached, using parallel distribution strategies instead of polling.

Benefits of technology

It significantly improves the efficiency and speed of rule distribution, reduces the delay of target equipment receiving rules, and reduces the processing burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766880A_ABST
    Figure CN119766880A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data transmission, and provides a method, device and storage medium for receiving and distributing rules, wherein the method for receiving and distributing rules includes sending source rules to a proxy device through a source device; receiving source rules through a proxy device, and generating identification rules according to the rule type of the source rules; copying identification rules through a proxy device, and storing the identification rules in a rule cache queue; reading identification rules in the rule cache queue in sequence through a proxy device, and caching the identification rules to a temporary cache area according to the rule type of the identification rules; recording the number of temporary caches of identification rules in the temporary cache area according to the rule type of the identification rules, and merging identification rules according to the number of temporary caches to generate a merged rule message; scheduling a distribution interface through a proxy device, distributing a merged rule message through the distribution interface, and synchronously receiving a response message. The present application significantly reduces the number of transmissions to the target device and improves the distribution efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a rule receiving and distributing method, device and storage medium. Background Art

[0002] The existing communication method among source devices, proxy devices and target devices is that the proxy device receives rules from the source device, processes these rules, and then distributes them to multiple target devices. In this process, after receiving a single rule, the proxy device polls the target device for distribution, specifically: the proxy device sends the rule to target device 1, receives and processes the response returned by target device 1; the proxy device sends the rule to target device 2, receives and processes the response returned by target device 2, and so on until all target devices are polled.

[0003] This method has the following defects: Low distribution efficiency: Due to the single rule distribution method, the number of message interactions with the target device is large, which affects the overall rule distribution efficiency.

[0004] Distribution delay: The method of polling target devices for distribution causes a delay in the time it takes for the target devices polled later to receive the rules, affecting the timeliness of rule distribution.

[0005] Low processing efficiency: After distributing the rules, it is necessary to receive and process the response message returned by each target device, which increases the processing burden of the device and reduces its processing efficiency. Summary of the invention

[0007] In order to help solve the problems of low distribution efficiency, distribution delay and low processing efficiency in the existing rule distribution and receiving process, the present application provides a rule receiving and distributing method, device and storage medium.

[0008] In a first aspect, the present application provides a method for receiving and distributing rules, which adopts the following technical solution: A rule receiving and distributing method is used for a target device that performs data transmission with a proxy device, wherein at least one of the target devices is in communication connection with the proxy device, wherein the rule receiving and distributing method comprises: Sending source rules to the proxy device through the source device; receiving the source rule through the proxy device, and generating an identification rule according to the rule type of the source rule; Copying the identification rule through the proxy device and storing the identification rule in a rule cache queue; sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules into a temporary cache area according to the rule type of the identification rules; Recording the temporary cache quantity of the identification rule in the temporary cache area respectively according to the rule type of the identification rule, and merging the identification rules according to the temporary cache quantity to generate a merged rule message; The proxy device schedules a distribution interface, distributes the merge rule message through the distribution interface, and synchronously receives a response message.

[0009] Preferably, the receiving the source rule through the proxy device and generating an identification rule according to the rule type of the source rule includes: The source rule is sequentially subjected to source rule protocol identification operation, source rule decoding operation and source rule verification operation, and the identification rule is generated according to the rule type of the source rule that passes the rule verification.

[0010] Preferably, the temporary cache area is provided with a temporary cache quantity threshold and a temporary cache duration threshold, and the temporary cache quantity of the identification rule in the temporary cache area is recorded respectively according to the rule type of the identification rule, and the identification rule is merged according to the temporary cache quantity to generate a merged rule message, including: When the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, the identification rules in the rule cache queue are read in sequence by the proxy device, and the identification rules are cached to a temporary cache area according to the rule type of the identification rule; When the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, the identification rules are merged according to the temporary cache quantity and the merge rule message is generated.

[0011] Preferably, the rule receiving and distributing method further includes: The proxy device verifies the response message, identifies a pending response message from the response message, and encapsulates the pending response message into a rule-distributed response message cache area according to a service type of the pending response message.

[0012] Preferably, the rule receiving and distributing method further includes: The proxy device sequentially reads and decapsulates the response messages to be processed in the rule distribution reply message cache area, and processes the response messages to be processed according to the business types of the response messages to be processed.

[0013] Preferably, the step of sequentially reading and decapsulating the response messages to be processed in the rule distribution response message cache area through the proxy device, and processing the response messages to be processed according to the business type of the response messages to be processed includes: Recording the response message to be processed and updating the log record by the proxy device; A response event is triggered according to the response message to be processed.

[0014] In a second aspect, the present application provides a method for receiving and distributing rules, which adopts the following technical solution: A rule receiving and distributing method, for a proxy device for data transmission with a target device, wherein at least one of the target devices is in communication connection with the proxy device, wherein the rule receiving and distributing method comprises: Receiving a merge rule message through the target device; A response message is sent by the target device.

[0015] In a third aspect, the present application provides a method for receiving and distributing rules, which adopts the following technical solution: A rule receiving and distributing method for a target device and an agent device communicating with each other, wherein at least one of the target devices is in communication connection with the agent device, wherein the rule receiving and distributing method comprises: Sending source rules to the proxy device through the source device; The source rule is received by the proxy device, source rule protocol identification operation, source rule decoding operation and source rule verification operation are sequentially performed on the source rule, and the identification rule is generated according to the rule type of the source rule that passes the rule verification; Copying the identification rule through the proxy device and storing the identification rule in a rule cache queue; sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules into a temporary cache area according to the rule type of the identification rules; Recording the temporary cache quantity of the identification rule in the temporary cache area respectively according to the rule type of the identification rule; when the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules to the temporary cache area according to the rule type of the identification rule; when the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, merging the identification rules according to the temporary cache quantity and generating the merged rule message; Distributing the merge rule message to the target device through the distribution interface of the proxy device scheduling; Receiving the merge rule message through the target device, and sending a response message to the proxy device through the target device; Synchronously receiving the response message through the proxy device, verifying the response message through the proxy device, identifying a response message to be processed from the response message, and encapsulating the response message to be processed into a rule distribution answer message cache area according to the service type of the response message to be processed; The proxy device sequentially reads and decapsulates the response messages to be processed in the rule distribution reply message cache area, and processes the response messages to be processed according to the business types of the response messages to be processed.

[0016] In a fourth aspect, the present application provides a rule receiving and distributing device, which adopts the following technical solution: A rule receiving and distributing device, wherein the rule receiving and distributing device comprises an agent device, and the agent device comprises: A rule receiving module, the rule receiving module is used to receive a source rule sent by a source device; A rule business processing module, the rule business processing module is used to generate an identification rule according to the source rule; A rule cache module, wherein the rule cache module is used to cache the identification rules; A target device rule merging and distributing module, the target device rule merging and distributing module is used to merge the identification rules, generate a merged rule message, and distribute the merged rule message to the target device; A message cache module for rule-distributed responses, the message cache module for rule-distributed responses being used to receive a response message sent by a target device and cache the response message; A rule distribution response processing module is used to process the response message.

[0017] In a fifth aspect, the present application provides a storage medium, which adopts the following technical solution: A storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the rule receiving and distributing method as described in any one of the first aspects.

[0018] In summary, the rule receiving and distribution method of the present application has achieved decoupling of rule receiving and distribution, ensuring that the receiving capacity is not limited by the distribution capacity. By merging multiple rules into a single message, the present application greatly reduces the number of transmissions to the target device, thereby improving the distribution efficiency. At the same time, the parallel distribution strategy is used instead of the polling method, which further speeds up the rule distribution speed and reduces the receiving delay of the target device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic block diagram of a rule receiving and distributing device of the present application; Figure 2 A flowchart of an embodiment of a method for receiving and distributing rules to a target device of the present application; Figure 3 A flowchart of an embodiment of a method for receiving and distributing rules for an agent device of the present application; Figure 4 The flowchart of an embodiment of the method for receiving and distributing rules for a target device and a proxy device of the present application is shown in FIG. DETAILED DESCRIPTION

[0020] The present invention is further described below in conjunction with the accompanying drawings, and the structure and principle of the present invention are very clear to people in the field. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0021] Figure 1 This is a schematic block diagram of a rule receiving and distributing device of the present application. Figure 2 FIG. 1 is a flow chart of an embodiment of a method for receiving and distributing rules to a target device of the present application. Figure 1 and Figure 2 It can be understood that the rule receiving and distributing device may include a proxy device, which may include a rule receiving module, a rule caching module, a target device rule merging and distributing module, a rule distribution response message caching module and a rule distribution response processing module connected in sequence, the rule receiving module is used to receive the source rule sent by the source device, the rule business processing module is used to generate the identification rule according to the source rule, the rule caching module is used to cache the identification rule, the target device rule merging and distributing module is used to merge the identification rule, generate the merged rule message, and distribute the merged rule message to the target device, the rule distribution response message caching module is used to receive the response message sent by the target device and cache the response message, and the rule distribution response processing module is used to process the response message. Specifically, the proxy device in the device can perform the following operations: Step S101: Start the rule receiving process, perform protocol identification, decoding and verification operations on the received rules to ensure the accuracy and integrity of the rule data.

[0022] Step S201: For the rules that have passed the verification in step S101, corresponding business logic processing is performed according to their specific rule types (the type is closely related to subsequent business processing), and finally a rule format that can be recognized and processed by the target device is generated.

[0023] Step S202: The rules generated in step S201 and recognizable by the target devices are copied and stored in the rule cache area corresponding to each target device, in preparation for subsequent distribution.

[0024] Step S301: Read rule data from the rule cache in order, classify them according to the type of rules, and temporarily cache them. At the same time, the number of each type of rules is recorded in real time for subsequent processing.

[0025] Step S302: During the temporary caching process of step S301, if the number of rules of a certain type reaches the preset maximum temporary cache number limit, a merging operation of multiple rules is immediately performed to generate a merged message containing multiple rules.

[0026] Step S303: If the number of various types of rules temporarily cached in step S301 has neither reached the maximum number limit nor reached the maximum temporary cache duration threshold, then continue to read and cache rule data from the rule cache.

[0027] Step S304: If the number of various rules temporarily cached in step S301 has not reached the maximum number limit, but has reached the preset maximum temporary cache time threshold, a merging operation of multiple rules is also performed to generate a merged rule message.

[0028] Step S305: calling the distribution interface to distribute the merged rule messages generated in step S302 and step S304 to the corresponding target devices to ensure timely delivery of rule data.

[0029] Step S306: After the distribution operation in step S305 is completed, the response message returned by the target device is synchronously received, and the message is verified to identify the response message that needs to be further processed.

[0030] Step S307: encapsulate the response message to be processed identified in step S306 according to its service type, and then add it to the message cache of the rule distribution response for subsequent processing.

[0031] Step S401: Read the response message from the rule distribution response message cache in turn, perform decapsulation operations, and perform corresponding processing according to its business type. The specific processing content depends on the business logic and may include updating status, recording logs, triggering subsequent processes, etc.

[0032] Similarly, in the rule receiving and distributing method for a target device of the present application, the target device and the proxy device communicate with each other, and at least one target device is communicatively connected with the proxy device. The rule receiving and distributing method may include: Step S11: Send source rules to the proxy device through the source device. In step S11, in network communication, the source device (usually the device that generates data or rules) needs to send information or rules to the proxy device (as an intermediate processing node). This step relies on network protocols and communication technologies, such as TCP / IP, to ensure that data is accurately transmitted from the source device to the proxy device. This step realizes the initial transmission of source rules and provides a data source for subsequent processing.

[0033] Step S12: Receive the source rules through the proxy device, perform source rule protocol identification operation, source rule decoding operation and source rule verification operation on the source rules in sequence, and generate identification rules according to the rule type of the source rules that pass the rule verification. In step S12, after the proxy device receives the source rules, it first performs protocol identification to determine the format and type of the source rules. Then, a decoding operation is performed to convert the encoded source rules into a readable or processable format. Then a verification operation is performed to ensure the integrity and accuracy of the source rules. According to the rule type of the source rules that pass the verification, the corresponding identification rules are generated to facilitate subsequent processing and distribution. The accuracy and readability of the source rules are ensured through protocol identification, decoding and verification operations. The identification rules generated at the same time provide convenience for subsequent processing and improve processing efficiency.

[0034] Step S13: Copy the identification rules through the proxy device and store the identification rules in the rule cache queue; read the identification rules in the rule cache queue in sequence through the proxy device, and cache the identification rules in the temporary cache area according to the rule type of the identification rules. In step S13, the proxy device copies the identification rules to the rule cache queue for subsequent batch processing or distribution. According to the rule type of the identification rule, it is cached to the corresponding temporary cache area to reduce frequent access to the memory and improve the processing speed. This step facilitates rapid processing and distribution according to the rule type through classified caching.

[0035] Step S14: Record the temporary cache quantity of the identification rules in the temporary cache area according to the rule type of the identification rule. When the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, read the identification rules in the rule cache queue in sequence through the proxy device, and cache the identification rules to the temporary cache area according to the rule type of the identification rule; when the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, merge the identification rules according to the temporary cache quantity and generate a merged rule message. In step S14, the proxy device monitors the number and time of identification rules in the temporary cache area. When the cache quantity is less than the set threshold and the cache duration does not reach the threshold, continue to cache new identification rules. When the cache quantity reaches or exceeds the threshold, or the cache duration reaches the threshold, merge the identification rules in the temporary cache area into one or more merged rule messages. This step reduces the number of communications with the target device and improves the distribution efficiency by merging rule messages. At the same time, it ensures the timeliness and accuracy of rule distribution and avoids network congestion or errors caused by frequent communication.

[0036] Step S15: dispatch the distribution interface through the proxy device, distribute the merged rule message to the target device through the distribution interface; synchronously receive the response message through the proxy device, verify the response message through the proxy device, identify the response message to be processed from the response message, and encapsulate the response message to be processed into the rule distribution response message cache area according to the service type of the response message to be processed. In step S15, the proxy device sends the merged rule message to the target device through the distribution interface (such as network interface, API, etc.). Synchronously receive the response message returned by the target device, and perform verification and processing. According to the service type of the response message, encapsulate it into the rule distribution response message cache area for subsequent processing. This step realizes the efficient distribution of the merged rule message and improves the distribution efficiency. At the same time, by receiving and processing the response message, the reliability and integrity of the distribution process are ensured.

[0037] Step S16: The proxy device sequentially reads and decapsulates the pending response messages in the rule distribution response message cache area, and processes the pending response messages according to the business type of the pending response messages. In step S16, the proxy device records the pending response messages and updates the log records and / or triggers a response event according to the pending response messages. The proxy device sequentially reads the pending response messages in the rule distribution response message cache area. Decapsulates each pending response message and restores its original format. According to the business type of the response message, corresponding processing operations are performed, such as recording logs, updating status, etc. This step ensures the integrity and accuracy of the distribution process by decapsulating and processing the response messages. At the same time, the response speed and processing capacity of the system are improved, providing strong support for subsequent operations.

[0038] Figure 3 This is a flow chart of an embodiment of a method for receiving and distributing rules for a proxy device of the present application. The method is used for a proxy device that performs data transmission with a target device, wherein at least one target device is in communication connection with the proxy device, and the method may include: Step S21: Receive the merged rule message through the target device. In step S21, the target device, as the application end of the rule, needs to receive the processed rule data from the proxy device or distribution system. The merged rule message is a message generated by the proxy device or distribution system after merging multiple rules according to certain strategies (such as rule type, quantity, cache duration, etc.). The target device of this step receives this merged rule message through a network interface, API or other communication methods. This step reduces the number of communications between the target device and the proxy device or distribution system, and improves communication efficiency. At the same time, the target device can receive multiple rules at one time, which is convenient for subsequent batch processing.

[0039] Step S22: Send a response message through the target device. In step S22, after receiving the merge rule message, the target device needs to parse and process the message. After the processing is completed, the target device needs to send a response message to the proxy device or distribution system to confirm the receipt and processing of the rule. The response message usually contains the processing result, status code, error information, etc., which is used to inform the proxy device or distribution system of the processing status of the rule. This step ensures the reliability and integrity of the rule distribution process. By sending a response message, the proxy device or distribution system can confirm whether the target device has successfully received and processed the rule. This step provides a feedback mechanism for subsequent rule distribution and processing. If the target device encounters problems or errors when processing the rules, it can promptly inform the proxy device or distribution system through a response message so that corresponding processing or adjustments can be made.

[0040] Figure 4 The flowchart of an embodiment of the method for receiving and distributing rules for a target device and a proxy device of the present application is shown in FIG. The method is used for a target device and a proxy device that communicate with each other, wherein at least one target device is in communication connection with the proxy device, and the method may include: Step S31: Sending source rules to the proxy device via the source device.

[0041] Step S32: receiving source rules through the proxy device, performing source rule protocol identification operation, source rule decoding operation and source rule verification operation on the source rules in sequence, and generating identification rules according to the rule type of the source rules that pass the rule verification.

[0042] Step S33: copy the identification rules through the proxy device and store the identification rules in the rule cache queue; read the identification rules in the rule cache queue in sequence through the proxy device, and cache the identification rules into the temporary cache area according to the rule type of the identification rules.

[0043] Step S34: Record the temporary cache quantity of the identification rules in the temporary cache area according to the rule type of the identification rules. When the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, read the identification rules in the rule cache queue in sequence through the proxy device, and cache the identification rules to the temporary cache area according to the rule type of the identification rules; when the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, merge the identification rules according to the temporary cache quantity and generate a merged rule message.

[0044] Step S35: The proxy device schedules the distribution interface, and distributes the merge rule message to the target device through the distribution interface.

[0045] Step S36: receiving the merge rule message through the target device, and sending a response message to the proxy device through the target device.

[0046] Step S37: synchronously receive the response message through the proxy device, verify the response message through the proxy device, identify the response message to be processed from the response message, and encapsulate the response message to be processed into the rule distribution response message cache area according to the business type of the response message to be processed; read and decapsulate the response messages to be processed in the rule distribution response message cache area in sequence through the proxy device, and process the response messages to be processed according to the business type of the response message to be processed.

[0047] according to Figure 4 It can be understood that the present application merges multiple rules into a large rule message for distribution to the target device by means of cache rules; utilizes queues and multi-core processing technology to distribute rules to multiple target devices in parallel; after receiving the response message returned by the target device, it does not process it immediately, but puts it into the cache queue and processes it asynchronously by dedicated response processing logic; after performing the above operations, it can decouple the rule reception and distribution logic, reduce the number of rule messages to the target device, improve the efficiency of rule distribution, and effectively reduce the delay of the target device receiving the rule.

[0048] The present application also proposes a storage medium, which stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the aforementioned rule receiving and distribution method for the target device.

[0049] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0050] In summary, the advantages of the rule receiving and distributing method of the present application are as follows: The rule receiving and distribution logic are decoupled, and the receiving capacity will not be blocked due to insufficient distribution capacity. Compared with the distribution of a single rule, combining multiple rules into a large rule message can significantly reduce the number of messages to the target device and improve the efficiency of rule distribution. Compared with polling multiple target devices for rule distribution, distributing to multiple target devices in parallel improves the efficiency of rule distribution and effectively reduces the delay of the target device receiving the rule. Using dedicated response processing logic to asynchronously process the response message returned by the target device can improve the distribution efficiency.

Claims

1. A rule receiving and distributing method for a target device for data transmission with a proxy device, wherein: At least one of the target devices is in communication connection with the proxy device, wherein the rule receiving and distributing method comprises: Sending source rules to the proxy device through the source device; receiving the source rule through the proxy device, and generating an identification rule according to the rule type of the source rule; Copying the identification rule through the proxy device and storing the identification rule in a rule cache queue; sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules into a temporary cache area according to the rule type of the identification rules; Recording the temporary cache quantity of the identification rule in the temporary cache area respectively according to the rule type of the identification rule, and merging the identification rules according to the temporary cache quantity to generate a merged rule message; The proxy device schedules a distribution interface, distributes the merge rule message through the distribution interface, and synchronously receives a response message.

2. The rule receiving and distributing method according to claim 1, characterized in that: The receiving the source rule through the proxy device and generating an identification rule according to the rule type of the source rule includes: The source rule is sequentially subjected to source rule protocol identification operation, source rule decoding operation and source rule verification operation, and the identification rule is generated according to the rule type of the source rule that passes the rule verification.

3. The rule receiving and distributing method according to claim 1, characterized in that: The temporary cache area is provided with a temporary cache quantity threshold and a temporary cache duration threshold, and the temporary cache quantity of the identification rule in the temporary cache area is recorded respectively according to the rule type of the identification rule, and the identification rule is merged according to the temporary cache quantity to generate a merged rule message, including: When the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, the identification rules in the rule cache queue are read in sequence by the proxy device, and the identification rules are cached to a temporary cache area according to the rule type of the identification rule; When the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, the identification rules are merged according to the temporary cache quantity and the merge rule message is generated.

4. The rule receiving and distributing method according to claim 1, characterized in that: The rule receiving and distributing method further includes: The proxy device verifies the response message, identifies a pending response message from the response message, and encapsulates the pending response message into a rule-distributed response message cache area according to a service type of the pending response message.

5. The rule receiving and distributing method according to claim 4, characterized in that: The rule receiving and distributing method further includes: The proxy device sequentially reads and decapsulates the response messages to be processed in the rule distribution reply message cache area, and processes the response messages to be processed according to the business types of the response messages to be processed.

6. The rule receiving and distributing method according to claim 5, characterized in that: The step of sequentially reading and decapsulating the response messages to be processed in the rule distribution response message cache area through the proxy device, and processing the response messages to be processed according to the service types of the response messages to be processed includes: Recording the response message to be processed and updating the log record by the proxy device; A response event is triggered according to the response message to be processed.

7. A rule receiving and distributing method, used for a proxy device for data transmission with a target device, wherein: At least one of the target devices is in communication connection with the proxy device, wherein the rule receiving and distributing method comprises: Receiving a merge rule message through the target device; A response message is sent by the target device.

8. A rule receiving and distributing method for a target device and an agent device communicating with each other, wherein: At least one of the target devices is in communication connection with the proxy device, wherein the rule receiving and distributing method comprises: Sending source rules to the proxy device through the source device; The source rule is received by the proxy device, source rule protocol identification operation, source rule decoding operation and source rule verification operation are sequentially performed on the source rule, and the identification rule is generated according to the rule type of the source rule that passes the rule verification; Copying the identification rule through the proxy device and storing the identification rule in a rule cache queue; sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules into a temporary cache area according to the rule type of the identification rules; Recording the temporary cache quantity of the identification rule in the temporary cache area respectively according to the rule type of the identification rule; when the cache quantity is less than the temporary cache quantity threshold and the temporary cache duration threshold, sequentially reading the identification rules in the rule cache queue through the proxy device, and caching the identification rules to the temporary cache area according to the rule type of the identification rule; when the cache quantity is greater than or equal to the temporary cache quantity threshold and / or the temporary cache duration threshold, merging the identification rules according to the temporary cache quantity and generating the merged rule message; Distributing the merge rule message to the target device through the distribution interface of the proxy device scheduling; Receiving the merge rule message through the target device, and sending a response message to the proxy device through the target device; Synchronously receiving the response message through the proxy device, verifying the response message through the proxy device, identifying a response message to be processed from the response message, and encapsulating the response message to be processed into a rule distribution answer message cache area according to the service type of the response message to be processed; The proxy device sequentially reads and decapsulates the response messages to be processed in the rule distribution reply message cache area, and processes the response messages to be processed according to the business types of the response messages to be processed.

9. A rule receiving and distributing device, characterized in that: The rule receiving and distributing device includes a proxy device, and the proxy device includes: A rule receiving module, the rule receiving module is used to receive a source rule sent by a source device; A rule business processing module, the rule business processing module is used to generate an identification rule according to the source rule; A rule cache module, wherein the rule cache module is used to cache the identification rules; A target device rule merging and distributing module, the target device rule merging and distributing module is used to merge the identification rules, generate a merged rule message, and distribute the merged rule message to the target device; A message cache module for rule-distributed responses, the message cache module for rule-distributed responses being used to receive a response message sent by a target device and cache the response message; A rule distribution response processing module is used to process the response message.

10. A storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the rule receiving and distributing method as described in any one of claims 1 to 6.