Message order preserving method, system, device and equipment and storage medium

By assigning a unique identifier id to each message and scheduling according to the id order, the problem of messy messages in multi-message processing is solved, and an efficient and reliable order preservation process of messages is achieved.

CN119449886APending Publication Date: 2025-02-14WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD

Patent Information

Application Number
CN202411581278.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

During multi-message processing, there may be problems with out-of-order messages, resulting in data packets not being assembled in the correct order at the receiving end, which affects the integrity of the data and the normal operation of the application.

Method used

By assigning a unique identifier id to each message in the order of input, and scheduling the message to the exit according to the order of id after processing is completed, ensuring that the message is processed and output in its original input order.

Benefits of technology

It realizes an efficient and reliable sequence preservation process of packets, ensuring that data packets can be assembled in the correct order at the receiving end, thereby ensuring data integrity and normal operation of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449886A_ABST
    Figure CN119449886A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of message order preservation, and discloses a message order preservation method, system, device and equipment and a storage medium, and the method comprises the steps: sequentially distributing identifiers id for each message according to an input order, enabling the identifiers id to be in one-to-one correspondence with the input order of each message, carrying out the associated registration of the message and the corresponding identifier id, and storing the associated registration information; and when the registered target message is processed, scheduling the processed target message to an exit, and outputting the target message according to a sequence corresponding to the identifier id of the target message. According to the method, the unique identifier id is sequentially distributed for each message according to the input sequence for registration, and the messages are scheduled to the outlet according to the id sequence after processing is completed, so that the messages can be ensured to be processed and output according to the original input sequence, and the message order preserving process is more efficient and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of message sequence preservation, and in particular to a message sequence preservation method, system, device, equipment and storage medium. Background Art

[0002] For message processing in a single pipeline during network transmission, if the message processing speed needs to be accelerated, the clock frequency can be increased to increase the processing bandwidth of the entire message engine. However, increasing the clock frequency will, on the one hand, cause difficulties in timing convergence during back-end implementation, and on the other hand, it will significantly increase the power consumption of the entire clock network of the chip. In order to speed up message processing, a "multi-message processing engine" is introduced to distribute messages in the pipeline to multiple processing engines for parallel processing, and then converge them into a large pipeline at the exit.

[0003] However, the processing speed of each engine is different for different messages, so there is a probability that the order of the messages at the exit will be different from the order of the messages at the entrance, resulting in message disorder. This "message disorder" phenomenon may cause the data packets to be unable to be assembled in the correct order at the receiving end, thereby affecting the integrity of the data and the normal operation of the application. Summary of the invention

[0004] In view of this, the present invention provides a message order preservation method, system, device, equipment and storage medium to solve the problem of message disorder that may occur when processing multiple messages.

[0005] In a first aspect, the present invention provides a message order preservation method, the method comprising:

[0006] Assign identification IDs to each message in the order in which they are input; the identification IDs correspond to the order in which they are input.

[0007] Associate and register the message with the corresponding identification id;

[0008] Dispatch the target message that has completed the association registration and processing to the exit;

[0009] Output the target messages in the order corresponding to their IDs.

[0010] The message order preservation method provided in the embodiment of the present invention assigns a unique identification ID to each message in sequence according to the input order for registration, and schedules the message to the exit according to the ID sequence after processing. This method can ensure that the messages are processed and output in the order of their original input, making the message order preservation process more efficient and reliable.

[0011] In an optional implementation, associating and registering the message with the corresponding identification ID also includes:

[0012] Allocate each message to a corresponding message processing engine and obtain the number of the message processing engine;

[0013] The message, the ID corresponding to the message and the number of the message processing engine are stored as a record in the ID management module.

[0014] The message order preservation method provided in the embodiment of the present invention can clearly understand the relationship between each message and the processing engine by recording the number of the processing engine of each message. This not only can better understand the message status currently processed by each processing engine, but also can more reasonably determine the scheduling strategy.

[0015] In an optional embodiment, the method further includes:

[0016] The identification ID corresponding to the target message after the output is completed is recovered.

[0017] The message order preservation method provided in the embodiment of the present invention can recycle the identification ID of the output message and put it back into a new message processing flow, thereby avoiding the waste of ID resources and ensuring the recycling of ID resources, so that the system can process more messages without causing message processing interruption or performance degradation due to the exhaustion of ID resources.

[0018] In an optional implementation manner, dispatching the target message that has completed association registration and processing to an egress includes:

[0019] Send the target identifier ID corresponding to the target message to the ID management module, and add the target message to the cache;

[0020] When the ID management module detects the target ID, it dispatches the target message to the exit.

[0021] The message order preservation method provided by the embodiment of the present invention can realize asynchronous message processing by first adding the target message to the cache and performing message scheduling after the ID management module detects the target identifier ID. This allows resources to be released immediately after message processing is completed without waiting for the message to be actually scheduled to the egress, thereby improving the processing efficiency of the system.

[0022] In an optional implementation manner, dispatching the target message that has completed association registration and processing to an egress includes:

[0023] When the ID management module detects the target ID, it sends the scheduling information to the scheduling module;

[0024] Based on the scheduling information, the target message is scheduled to the egress.

[0025] The message order preservation method provided by the embodiment of the present invention is that the scheduling module does not need to actively poll or query which messages have been processed and can be scheduled, but only needs to wait for notification from the ID management module. This scheduling logic is very simple, reduces unnecessary system overhead and makes the scheduling process more efficient and quick.

[0026] In an optional implementation, the number of identification IDs is greater than or equal to the number of input messages.

[0027] The message order preservation method provided by the embodiment of the present invention ensures that the number of IDs is sufficient to avoid ID conflicts during the allocation process. On the other hand, the system can also reduce the dependence on ID recycling and reuse.

[0028] In a second aspect, the present invention provides a multi-message processing system, the system comprising:

[0029] An ID allocation module is used to allocate identification IDs to input messages according to a preset order;

[0030] The processing engine module is used to process the message and send the target identification ID corresponding to the processed target message to the ID management module;

[0031] The ID management module is used to send the target ID to the scheduling module when receiving the target ID sent by the processing engine module;

[0032] The scheduling module is used to schedule the target message corresponding to the target identifier ID to the exit.

[0033] In a third aspect, the present invention provides a message sequence preservation device, the device comprising:

[0034] The allocation module is used to allocate identification IDs to each message in sequence according to the input order; the identification IDs correspond to the input order of each message one by one;

[0035] A registration module, used to associate and register the message with the corresponding identification ID;

[0036] A scheduling module is used to schedule the target message that has completed the association registration and processing to the egress;

[0037] The output module is used to output the target messages according to the sequence corresponding to the identification IDs of the target messages.

[0038] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the message order preservation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0039] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the message order preservation method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 is a flow chart of a message sequence preservation method according to an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of the system architecture of a multi-message processing system according to an embodiment of the present invention;

[0043] Figure 3 is a structural block diagram of a message sequence preservation device according to an embodiment of the present invention;

[0044] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0046] Message order preservation refers to the process of accurately ensuring that the order in which the device receives messages at the input port is consistent with the order in which the messages are sent at the output port during business processing. However, in order to solve the problem of low efficiency of the traditional single-pipe message processing mode, a "multi-message processing engine" is introduced to distribute the messages in the pipeline to multiple processing engines for parallel processing, and then converge them into a large pipeline at the exit. Therefore, there is a probability that the messages input in a specific order will deviate from the specific order when they are output to the chip exit after message processing. For example, packet 1 arrives before packet 2 during input, but after processing, packet 2 is processed and output to the downstream link before packet 1. This "message disorder" phenomenon may cause the data packets to be unable to be assembled in the correct order at the receiving end, thereby affecting the integrity of the data and the normal operation of the application.

[0047] According to an embodiment of the present invention, an embodiment of a message order preservation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0048] In this embodiment, a method for preserving message order is provided. Figure 1 is a flow chart of a message sequence preservation method according to an embodiment of the present invention. Optionally, the message sequence preservation method may be as follows: Figure 2 The multi-message processing system shown in the figure is executed, and the multi-message processing system includes an ID management module, an ID allocation module, a processing engine module, a data packet buffer module and a scheduling module, such as Figure 1 As shown, the process includes the following steps:

[0049] Step S101, assigning an ID to each message in sequence according to the input order.

[0050] Specifically, the system receives messages in a preset order through an input interface, and then the id allocation module allocates a unique identification id to each message in the queue in turn to ensure that each message can be uniquely identified by the identification id during the entire message processing process.

[0051] Furthermore, the identification id also corresponds one-to-one to the input order of each message.

[0052] Step S102: associate and register the message with the corresponding identification ID.

[0053] Specifically, after the ID allocation module allocates a unique identification ID to the message, the identification ID will be attached to the message, and the multi-message processing system will create / maintain a data structure such as a hash table, a linked list or a database to store the correspondence between the message and the ID.

[0054] Furthermore, the associated registration includes storing the message and the corresponding identification ID as a record in a designated storage location in the ID management module.

[0055] Step S103, dispatching the target message that has completed the association registration and processing to the egress.

[0056] Specifically, the system can check the processing status of each message by querying the processing record in the ID module. The processing record is used to indicate whether the message has been processed. When a processed target message is detected, the system prepares scheduling information including the message identification ID and the export number or target address.

[0057] Step S104, outputting the target messages according to the order corresponding to the identifiers id of the target messages.

[0058] Specifically, the scheduling module will schedule the message that enters the queue first to the exit according to the message input order, and send it out through the network interface or other communication channels.

[0059] For example, the system obtains a list of message IDs that have been scheduled and are ready to be output from the ID management module, and sorts the messages according to the input order of the messages, that is, the order of the IDs. Further, the system retrieves the corresponding messages from the cache according to the order in the message ID list, outputs them to the exit in sequence, and sends them out through the network interface or other communication channels.

[0060] To sum up, the message order preservation method provided by the embodiment of the present invention is as follows: first, when a message enters the system, the id allocation module will allocate a unique identification id to each message, and this identification id corresponds one-to-one to the input order of the message. Subsequently, the id allocation module will allocate each message to the corresponding message processing engine for processing according to the load balancing strategy, and record the number PE_NUM of the processing engine. At the same time, the message, the identification id and the corresponding PE_NUM will be sent to the id management module for registration for subsequent management and scheduling.

[0061] Correspondingly, Figure 2 The multi-message processing system shown can execute each step from step S101 to step S104, thereby implementing the message sequence preservation method provided in the embodiment of the present application, specifically:

[0062] An ID allocation module is used to allocate identification IDs to input messages according to a preset order;

[0063] The processing engine module is used to process the message and send the target identification ID corresponding to the processed target message to the ID management module;

[0064] The ID management module is used to send the target ID to the scheduling module when receiving the target ID sent by the processing engine module;

[0065] The scheduling module is used to schedule the target message corresponding to the target identifier ID to the exit.

[0066] Furthermore, in the processing engine module, the message will undergo a series of processing operations, such as parsing, verification, conversion, etc. Once the processing is completed, the processing engine will send the ID of the processed target message to the ID management module, indicating that the message has been processed. At the same time, the message itself will be sent to the Packet Cache module for caching so that it can be quickly retrieved and output when scheduling is required.

[0067] When the ID management module receives the notification from the processing engine that the message has been processed, it will mark the message ID as "ready" and send it to the Schedule module. The Schedule module will select a message ID from the registered and marked "ready" messages for scheduling based on certain scheduling strategies, such as first-in-first-out (FIFO). The selected message will be retrieved from the Packet Cache and scheduled to the exit for output. During the output process, the system will strictly output in the order corresponding to the message ID, thereby ensuring the order of the message.

[0068] Optionally, the system sorts the target messages scheduled to the exit by acquiring the message identification ID list generated by the ID management module, and sends the messages in a preset order.

[0069] In some optional implementations, the above step S102 includes:

[0070] Allocate each message to a corresponding message processing engine and obtain the number of the message processing engine;

[0071] The message, the ID corresponding to the message and the number of the message processing engine are stored as a record in the ID management module.

[0072] Specifically, the id allocation module, after assigning a unique identification id to each input message, can also be used to distribute the message to a message processing engine through Load Balance according to the load balancing strategy, record the engine number PE_NUM, and send the identification id and PE_NUM together to the id management module, which is stored as a record in the specified location of the id management module to complete the association registration.

[0073] In some optional implementations, the above step S103 includes:

[0074] Send the target identifier ID corresponding to the target message to the ID management module, and add the target message to the cache;

[0075] When the ID management module detects the target ID, it dispatches the target message to the exit.

[0076] After the processing engine completes a message processing, it sends the message identification ID to the ID management module, indicating that the target message has been processed and is ready for subsequent scheduling operations. Before the target message is scheduled to the exit, it will be sent to the Packet Cache to be cached in an exit queue so that the target message can be quickly obtained, scheduled to the exit and sent. When the ID management module detects the target identification ID, it will retrieve the message corresponding to the target identification ID from the Packet Cache and schedule it to the exit.

[0077] In some optional implementations, the above step S104 includes:

[0078] When the ID management module detects the target ID, it sends the scheduling information to the scheduling module;

[0079] Based on the scheduling information, the target message is scheduled to the egress.

[0080] When the processing engine completes processing of a message, it sends the message ID to the ID management module and indicates that the message has been processed. The ID management module updates the status of the ID to "ready", indicating that the message is ready to be dispatched to the exit. Based on the dispatch information, the dispatch module dispatches the target message with the status of "ready" to the exit.

[0081] In some optional embodiments, the method further comprises:

[0082] The identification ID corresponding to the target message after the output is completed is recovered.

[0083] When the message is dispatched to the egress and sent, a recycling signal is sent to the ID management module, indicating that the message ID can be recycled. After receiving the recycling signal, the ID management module will update its internal record and change the status of the ID from "used" or "ready" to "free". When the ID is restored to the "free" state, it means that it can be used by new incoming messages.

[0084] Optionally, in order to further optimize resource utilization and avoid ID conflicts, the ID management module can also implement an ID reuse strategy. For example, a "free ID pool" can be established / maintained, and when a new message needs to be assigned an ID, an ID is selected from the pool first. If the pool is empty, a new ID is assigned. This ensures that the ID allocation and recycling process is more efficient and orderly.

[0085] In some optional implementations, the number of identification IDs is greater than or equal to the number of input messages.

[0086] As an example, the system can initialize an ID pool to ensure that the number of IDs is greater than or equal to the number of possible incoming messages. The ID pool can be a simple integer sequence or a more complex structure used to store IDs and their status, including idle, allocated, processed, etc. For each message entering the system, a unique ID is sequentially assigned from the ID pool. This ID corresponds to the input order of the message.

[0087] After the message is successfully sent, the scheduling module sends a confirmation signal to the ID management module, indicating that the message has been successfully scheduled and output. After receiving this signal, the ID management module updates the corresponding ID status to "idle" for subsequent messages.

[0088] In an optional implementation, when the number of identification IDs in the identification ID pool is about to be exhausted, the system can automatically generate a new identification ID and add it to the pool.

[0089] In this embodiment, a message sequence preservation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0090] This embodiment provides a message sequence preservation device, such as Figure 3 As shown, including:

[0091] The allocation module 301 is used to allocate an ID to each message in sequence according to the input order; the ID corresponds to the input order of each message one by one;

[0092] A registration module 302, used to associate and register a message with a corresponding identification ID;

[0093] The scheduling module 303 is used to schedule the target message that has completed the association registration and processing to the egress;

[0094] The output module 304 is used to output the target messages according to the order corresponding to the identifiers ID of the target messages.

[0095] In some optional implementations, the registration module 302 includes:

[0096] The number acquisition submodule is used to allocate each message to the corresponding message processing engine and obtain the number of the message processing engine.

[0097] The associated registration submodule is used to store the message, the identification ID corresponding to the message and the number of the message processing engine as a record in the ID management module.

[0098] In some optional embodiments, the device further comprises:

[0099] The recycling module is used to recycle the identification ID corresponding to the target message after the output is completed.

[0100] In some optional implementations, the output module 304 includes:

[0101] The cache adding submodule is used to send the target identifier ID corresponding to the target message to the ID management module and add the target message to the cache.

[0102] The target message scheduling submodule is used to schedule the target message to the exit when the ID management module detects the target identifier ID.

[0103] In some optional implementations, the output module 304 further includes:

[0104] The sending scheduling information submodule is used to send scheduling information to the scheduling module when the ID management module detects the target identification ID.

[0105] The message scheduling submodule is used to schedule the target message to the egress based on the scheduling information.

[0106] In some optional embodiments, the device further comprises:

[0107] The quantity module is used to ensure that the number of identification IDs is greater than or equal to the number of input messages.

[0108] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0109] The message sequence preservation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0110] The embodiment of the present invention also provides a computer device having the above Figure 3 The message sequence preservation device shown.

[0111] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0112] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0113] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0114] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0115] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0116] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0117] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0118] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0119] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0120] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A message order preservation method, characterized in that: The method comprises: Assigning identification IDs to each message in sequence according to the input order; the identification IDs correspond to the input order of each message one by one; Associating and registering the message with the corresponding identification ID; Dispatch the target message that has completed the association registration and processing to the exit; The target messages are output according to the order corresponding to the identification IDs of the target messages.

2. The method according to claim 1, characterized in that The registering of associating the message with the corresponding identification ID also includes: Allocate each of the messages to a corresponding message processing engine, and obtain the number of the message processing engine; The message, the identification ID corresponding to the message and the number of the message processing engine are stored as a record in the ID management module.

3. The method according to claim 1, characterized in that The method further comprises: The identification ID corresponding to the target message after output is completed is recovered.

4. The method according to claim 2 or 3, characterized in that: The step of dispatching the target message that has completed the association registration and processing to the egress includes: Sending the target identifier ID corresponding to the target message to the ID management module, and adding the target message to the cache; When the ID management module detects the target identifier ID, the target message is dispatched to the exit.

5. The method according to claim 4, characterized in that The step of dispatching the target message that has completed the association registration and processing to the egress includes: When the ID management module detects the target identification ID, the scheduling information is sent to the scheduling module; Based on the scheduling information, the target message is scheduled to an egress.

6. The method according to claim 5, characterized in that The number of the identification IDs is greater than or equal to the number of the input messages.

7. A multi-message processing system, characterized in that: The system comprises: An ID allocation module is used to allocate identification IDs to input messages according to a preset order; The processing engine module is used to process the message and send the target identification ID corresponding to the processed target message to the ID management module; The ID management module is used to send the target identification ID to the scheduling module when receiving the target identification ID sent by the processing engine module; The scheduling module is used to schedule the target message corresponding to the target identifier ID to the exit.

8. A message sequence preservation device, characterized in that: The device comprises: An allocation module, used to allocate identification IDs to each message in sequence according to the input order; the identification IDs correspond to the input order of each message one by one; A registration module, used to associate and register the message with the corresponding identification ID; A scheduling module is used to schedule the target message that has completed the association registration and processing to the egress; An output module is used to output the target messages according to the order corresponding to the identification IDs of the target messages.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the message order preservation method according to any one of claims 1 to 6 by executing the computer instructions.

10. 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 computer to execute the message order preservation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Message order-preserving method and device adopting same

    CN102546424A

  • Multi-core processing message order preserving method and system

    CN117640535A

Cited By

  • DPU-based message order-preserving transmission method and device, and network processor

    CN120166081A