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

Message diversion method and network equipment

A technology for message and message reception, applied in the field of communication, can solve the problems of inability to realize message distribution, consumption of resources, and high computational complexity, and achieve the effect of improving the efficiency of message distribution and reducing resource consumption.

Active Publication Date: 2014-09-17
NEW H3C TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The modulo operation in the existing implementation method is an operation with high computational complexity
At present, the number of CPUs of multi-core processors is usually 2 K (k=2, 3,...), then the number of data cores is 2 K -1, so the AND operation cannot be used instead of the modulo operation
This method of packet distribution using modulo operations consumes resources and affects performance. If resources are insufficient, packet distribution cannot be realized.

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
  • Message diversion method and network equipment
  • Message diversion method and network equipment
  • Message diversion method and network equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] The packet distribution method in Embodiment 1 can be applied to include 2 K -In a network device with 1 data core, the queue number is 0 to 2 K 1 to 2 in the queue for -1 K -1 for the queue with the 2 K - 1 data core corresponds one by one, the queue whose queue number is 0 corresponds to the data core corresponding to the queue whose queue number is Q, where 1≤Q≤2 K -1, Q is a natural number; 2 K -1 data core processes messages in its corresponding queue.

[0048] Among them, Q is 1 to 2 in specific implementation K Any natural number between -1, but one of them needs to be specified in advance. When a queue with queue number 0 is matched, the message will be fixedly assigned to the queue with the queue number Q, so that the corresponding message will eventually be sent to the same data core. Processing is performed to prevent messages with the same tuple information from being assigned to different data cores for processing.

[0049] Embodiment 2 of the present...

Embodiment 2

[0056] The packet distribution method in Embodiment 2 can be applied to include 2 K -In a network device with 1 data core, the queue number is 1 to 2 K -1 for the queue with the 2 K -1 data core one-to-one correspondence; the 2 K -1 data core processes messages in its corresponding queue.

[0057] In Embodiment 1 and Embodiment 2, the method of dividing the equalization calculation value according to the number of K bits per share is as follows: the equalization calculation value can be divided according to the number of K bits per share from the low bit to the high bit, and when the highest bit is not enough for the number of K bits, it can be supplemented. When 0 is K bits or not enough for K bits, the highest bit is not counted; it can also be divided according to the number of bits per share from high to low. share.

[0058] In the number of shares divided by the balanced operation value, get M 1 The method for the number of K bits is: randomly select M 1 The number ...

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

According to an example, in a packet dispersion operation, add operations on limited partitions of a balance calculation value are performed, and a received packet is distributed to a queue with a queue number equaling a result obtained from the add operations. The queue number may also correspond to a respective data core of a network device. In one regard, the packet dispersion operation according to this example may be implemented in methods and network devices to improve the efficiency of packet dispersion and reduce resource consumption.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a message distribution method and network equipment. Background technique [0002] In an existing multi-core device, CPU0 is used as a control core to run an operating system; other CPUs are used as data cores to receive and forward data. The more evenly the traffic is distributed on the data cores, the better the CPU resources can be fully utilized, and the better the performance will be. The current traffic allocation is usually divided according to the packet quintuple, that is, source IP address, destination IP address, protocol number, source port number, and destination port number. Packets of the same flow enter the same CPU for processing. The streams are allocated to different CPUs for processing. Therefore, a good distribution method can distribute traffic as evenly as possible on multiple data cores, which plays a vital role in the performance of multi...

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/70H04L12/803H04L12/861
CPCH04L49/00
Inventor 邓士恩
Owner NEW H3C TECH CO LTD