Message processing method and device
A message processing and message technology, which is applied in the field of communication, can solve the problems that the priority of message output cannot be given priority, and the message forwarding method is fixed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] The embodiment of the present invention provides a message processing method, see figure 2 , the method flow includes:
[0056] Step 200, the distribution module of the switch distributes the received messages, and the sorting module registers the received messages in the default queue of the queue list according to the order in which the messages are received, wherein the queue list also includes multiple Business queues classified by type, and each business queue has a queue ID.
[0057] Wherein, the message received by the switch may be any message that needs to be processed and forwarded in the network.
[0058] Wherein, the distribution module of the switch distributes the message to each processor core in an idle state for processing according to the state of each processor core in the multi-core processor.
[0059] Step 201, in the process of processing the allocated message, each processor core in the multi-core processor of the switch records the queue ident...
Embodiment 2
[0064] The embodiment of the present invention provides a message processing method, see image 3 , the method flow includes:
[0065] Step 300, the distribution module of the switch distributes the received messages, and the sorting module registers the received messages in the default queue of the queue list according to the order in which the messages are received, wherein the queue list also includes multiple Business queues classified by type, and each business queue has a queue ID.
[0066] Specifically, the process of step 300 is specifically described by steps 3001-3003.
[0067] Step 3001, the distribution module of the switch receives the message.
[0068] Wherein, the message received by the switch is a message waiting to be processed and forwarded by the switch. Among them, the distribution module is a decoder.
[0069] Optionally, the device used by the distribution module may not only be a decoder, but also any other existing hardware capable of realizing the...
Embodiment 3
[0128] see Figure 7 , this embodiment provides a message processing device, the device includes:
[0129] The distribution module 400 is configured to distribute the received messages, register the received messages in the default queue of the queue list according to the receiving order of the messages, wherein the queue list also includes multiple business queues, each business queue has a queue ID;
[0130] The processing module 401 is configured to record the queue identifier of the service queue corresponding to the service type carried by the message in the message descriptor corresponding to the message identifier according to the service type carried by the message, wherein the message identifier is in The message is allocated during the process of registering the message to the default queue;
[0131] The ordering module 402 is used to move the message identifier of the message from the default queue to the service queue corresponding to the recorded queue identifie...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 