Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-core and multi-thread message order preservation method and system

A message order-preserving and multi-threading technology, applied in the field of network communication, can solve problems such as message out-of-order, network communication blockage, resource waste, etc., and achieve the effect of preventing out-of-order phenomena

Inactive Publication Date: 2016-02-17
OPZOON TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The application number is: 201010289667.X, and the title of the invention is: A Chinese patent for a message forwarding method and system based on a multi-core architecture, which records a method that associates a hash queue (that is, the area divided by the hash table in the text) with threads The binding method realizes the lock-free design of shared resources, but when there are several packets of data streams on the network device, after hash calculation, they all fall into a hash queue, which will lead to the corresponding hash queue The thread of the thread is very busy, and the thread corresponding to other hash queues is in an idle state, so the usage efficiency of the multi-core CPU is low, resulting in a waste of resources
[0004] In order to improve the usage efficiency of the multi-core CPU in the network equipment, the RMI chip is used in the prior art to evenly distribute the received packets to each CPU. Since the packets are evenly distributed to each CPU, the packets have different sizes, so , the speed at which each CPU processes messages will be somewhat different. After the message processing is completed, there will be out-of-order phenomenon when the message is sent (there is a three-thousandth chance of out-of-order in the test), which is enough for general needs. , but for IPSEC packets and video packets, if out-of-order occurs, packet loss or video mosaic will occur, which will seriously hinder network communication

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-core and multi-thread message order preservation method and system
  • Multi-core and multi-thread message order preservation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0031] figure 1 It is a flow chart of a multi-core and multi-thread message order preservation method according to an embodiment of the present invention; refer to figure 1 , the method includes:

[0032] S1: Receive the message obtained by the network card and mark the message according to the order in which the message is received;

[0033] Wherein, the manner of marking the message may specifically be:

[0034] A single network card device directly marks the serial number, starting from 0 and adding 1 to the serial number of each message;

[0035] Multi-NIC devices mark the current timestamp;

[0036] S2: each CPU obtains its own message, and processes the message ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-core and multi-thread message sequence preservation method and system, and relates to the technical field of network communication. S2: Each CPU obtains its own message, and processes the message after sorting the message through the corresponding thread; S3: After the current message is processed, it is judged whether the previous message has been forwarded, If so, forward the processed current message; otherwise, wait for the previous message to be forwarded before forwarding the processed current message. The present invention realizes the order preservation of the global message by judging whether the previous message has been forwarded, and prevents the disorder phenomenon that occurs when the message is sent.

Description

technical field [0001] The present invention relates to the technical field of network communication, in particular to a multi-core and multi-thread message order preservation method and system. Background technique [0002] In a program, these independently running program fragments are called "threads" (Thread), and the concept of programming using it is called "multithreading". A common example of multithreading is user interfaces. With threads, the user can press a button and the program responds immediately, rather than having the user wait for the program to complete its current task before responding. Most of the current high-end network devices use a multi-core CPU hardware architecture to improve message processing and forwarding performance, and create corresponding threads for the multi-core CPUs to perform one-to-one binding with the multi-core CPUs. [0003] The application number is: 201010289667.X, and the title of the invention is: A Chinese patent for a me...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/861
Inventor 陈海滨
Owner OPZOON TECH