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

A message receiving method for multi-buffer data aggregation

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

Active Publication Date: 2015-08-19
曙光网络科技有限公司
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
  • A message receiving method for multi-buffer data aggregation
  • A message receiving method for multi-buffer data aggregation

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 array. a1 is when the packet fetching fails, the next polling weighted waiting time is increased according to a certain rule; a2 is when the packet fetching is successful, the next polling weighted waiting time is reduced according to a certain rule; a3 is when the buffer is polled once, take If the packet fails, the weighted waiting time of the next polling is increased 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 cpu one by one;

[0021] (3) Polling and fetching packages.

[0022] Polling the buffer, accumulate the number of polls, and judge the weighted waiting time of the buffer pointed to by the packet pointer. If it is 0, read the buffer, otherwise, move the packe...

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 two main ways of network packet receiving, 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 remove the data packet. For polling-based methods, when new data packets arrive, they are directly put into the buffer. The network interface accesses the buffer through continuous polling, and takes away the data packets in the buffer (refer to patent CN1627727 (application number 200410074691.6) and linux Device driver, translated by Wei Yongming, Geng Yue, Zhong Shuyi). [0003] There are certain drawbacks when using the above two schemes directly. The interruption-based method is not su...

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/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