Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message receiving method for multiple buffer area data aggregate

A technology for data aggregation and message reception, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve problems such as low efficiency, waste of system resources, and large network bandwidth, so as to improve application performance, increase utilization, Effect of Utilization Ratio Improvement

Active Publication Date: 2011-04-27
曙光网络科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to solve the problem of system decline caused by large network bandwidth and frequent interruptions when the interrupt mechanism is used to receive packets, and the problem of low efficiency caused by the use of common polling schemes, small bandwidth, and waste of system resources on accessing empty buffers

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 receiving method for multiple buffer area data aggregate
  • Message receiving method for multiple buffer area data aggregate
  • Message receiving method for multiple buffer area data aggregate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] (1) Construct a weighted waiting time array.

[0018] Construct three arrays a1, a2, a3 according to the network load. Among them, a1 and a3 are increasing arrays, and a2 is decreasing arrays. a1 means that when the packet fetching fails, the weighted waiting time of the next poll will increase according to a certain rule; a2 means that when the packet is fetched successfully, the weighted waiting time of the next round of polling will decrease according to a certain rule; If the package fails, the weighted waiting time of the next poll will increase according to certain rules;

[0019] (2) The allocation buffer is bound to the CPU one by one.

[0020] Obtain the number of CPUs N, allocate N buffers and bind them to the CPUs one by one;

[0021] (3) Polling to get the package.

[0022] Polling the buffer, accumulating the number of polls, judging the weighted waiting time of the buffer indicated by the packet fetching pointer, if it is 0, the buffer is read, otherwi...

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 receiving method for multiple buffer area data aggregate. Compared with general polling, firstly, the utilization rate of packet taking buffer areas is improved, data packets in the rear buffer areas are quickly taken out so that the buffer areas have more spaces for writing data packets, a plurality of buffer areas are bound with a plurality of central processing units (CPU) one by one, and the utilization rate of the multi-core CPU is improved by read and write of data of the buffer areas; in addition, because the utilization rates of the buffer areas and the CPU are improved, packet taking application and packet reading speed are quickened, and the application performance is improved; and secondly, the buffer areas are prevented from being frequently accessed so as to reduce the consumption of a system. The scheme is an improved polling scheme; and when the weighting waiting time is set as 0, the scheme is a polling scheme.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a message receiving method for multi-buffer data aggregation. Background technique [0002] In the current network data processing system, there are mainly two ways to receive packets in the network, one is based on interruption, and the other is based on polling. For the interrupt-based method, when a new data packet arrives, the network interface will generate an interrupt and notify the system to take the data packet away. For the polling-based mode, when new data packets arrive, they are directly put into the buffer, and the network interface accesses the buffer by continuous polling, and takes away the data packets in the buffer (referring to patent CN1627727 (application number 200410074691.6) and linux Device Driver, translated by Wei Yongming, Geng Yue and Zhong Shuyi). [0003] Direct use of the above two solutions has certain disadvantages. The interrupt-based ...

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 Applications(China)
IPC IPC(8): H04L12/56H04L12/861
Inventor 刘灿刘朝辉李锋伟窦晓光张英文
Owner 曙光网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products