Message processing method and device, message processing chip and server

A message processing and message encapsulation technology, applied in the server field, can solve problems such as increasing system complexity, achieve the effect of enhancing business processing capabilities and reducing the occupation of CPU resources

Inactive Publication Date: 2018-02-02
DAWNING INFORMATION IND BEIJING
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Second, it increas...

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 processing method and device, message processing chip and server
  • Message processing method and device, message processing chip and server
  • Message processing method and device, message processing chip and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0035] An embodiment of the present invention provides a message processing method, such as figure 1 As shown, the method includes:

[0036] S11. Analyze the received Ethernet packets to obtain the packet length, source IP address, and destination IP address of each packet.

[0037] S12. Establish message queues corresponding to multiple CP...

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 provides a message processing method, a message processing device, a message processing chip and a server. The method comprises the steps of analyzing received Ethernet messages to acquire the message length, source IP address and target IP address of each message; building a message queue corresponding to a plurality of CPU cores one by one, and distributing the messages with the same source IP addresses and target IP addresses into the same queue for caching, wherein the quantities of messages in the queues keep balanced; acquiring an overall length of all the messages in eachmessage queue and storing time of the first message in the queue in real time; when the overall length of all the messages in the message queue exceeds the size of a maximum transmission unit or the storing time of the first message exceeds predetermined time, packaging all the messages in the message queue to be UDP messages; and sending the UDP messages to the CPU core corresponding to the message queue. According to the method provided by the invention, CPU resources occupied by an upper-layer application when the upper-layer application acquires the message are reduced on the basis of notincreasing hardware cost and system complexity.

Description

technical field [0001] The present invention relates to the technical field of servers, in particular to a message processing method and device, a message processing chip and a server. Background technique [0002] In a TCP / IP (Transmission Control Protocol / Internet Protocol)-based network environment, small packets with a length of 64 bytes account for about 40% of the total traffic. At present, accelerator card products usually use the PCIe (Peripheral Component Interconnect express, high-speed peripheral component interconnection) interface to deliver the message to the CPU. When the upper-layer application obtains small packets, it will frequently generate interrupt requests, resulting in a very high CPU usage, which will cause the upper-layer application to The processing power of the core business is reduced. [0003] At present, the method of discarding small packets by hardware can be used to reduce the occupation of the CPU when upper-layer applications process sma...

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
IPC IPC(8): H04L12/861H04L12/863H04L12/951H04L29/06H04L47/43
CPCH04L47/6255H04L49/9021H04L49/9057H04L69/164
Inventor 纪奎刘立窦晓光王晖
Owner DAWNING INFORMATION IND BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products