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

Method and device for receiving multi-application program message based on zero copy mode

A technology for receiving applications and messages, applied in digital transmission systems, instruments, data exchange networks, etc., can solve problems such as inability to receive multiple applications and messages, and achieve the effect of reducing the occupancy rate

Active Publication Date: 2010-11-03
DAWNING INFORMATION IND BEIJING +1
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the problem that the prior art cannot receive multi-application program messages based on zero-copy mode, the purpose of the present invention is to provide a method and device capable of receiving multi-application program messages based on zero-copy mode

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
  • Method and device for receiving multi-application program message based on zero copy mode
  • Method and device for receiving multi-application program message based on zero copy mode
  • Method and device for receiving multi-application program message based on zero copy mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] see figure 1 As shown, a method for receiving multi-application messages based on a zero-copy method in this embodiment includes the following steps:

[0018] S110, apply for continuous memory space in the network card driver as the buffer queue for message reception; S120, set a buffer queue write pointer register and a plurality of buffer queue read pointer registers in the network card related registers, each buffer queue The read pointer register corresponds to an application program; S130, the network card receives the message and judges whether the buffer queue is full, if the buffer queue is not full, the message is stored in the buffer queue, and the write pointer register is updated at the same time; and S140, Each application separately judges whether there is a message to be received stored in the buffer queue, if so, the message is taken away from the buffer queue, and the network card driver updates the buffer queue read pointer register corresponding to th...

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 method and a device for receiving a multi-application program message based on a zero copy mode. The receiving method comprises the following steps of: applying for a continuous memory space as a buffer area queue for receiving a message in a network card driver; setting a buffer area queue write pointer register and a plurality of buffer area queue read pointer registersin a register corresponding to the network card, wherein each buffer area queue read pointer register corresponds to one application program; receiving the message by the network card, storing the message in the buffer area queue if the buffer area queue is not full, and simultaneously updating the write pointer register; and respectively judging whether the buffer area queue stores the message to be received or not by each application program, if so, taking the message away from the buffer area queue and simultaneously updating the buffer area queue read pointer register corresponding to theapplication program by the network card driver. The invention can receive messages by using multiple application programs simultaneously on the basis of the zero copy mode, thereby obviously reducingthe occupancy rate of a CPU.

Description

technical field [0001] The invention relates to the field of receiving data messages, in particular to a method and device for receiving multi-application program messages based on zero-copy mode. Background technique [0002] Zero-copy (zero-copy) means that there will be no copy between the memory during the sending and receiving process of a node's network message. When sending, the data packet is sent directly from the user buffer of the application to the external network through the network interface. The existing message receiving methods based on the zero-copy mode are all aimed at an application program, such as Chinese patent document CN101150486A. This patent document discloses a management method for receiving network data in a zero-copy buffer queue, including the following steps: A. Allocating continuous memory in user space as a DMA buffer for messages; B. Establishing a buffer in the kernel driver C. The application program maps the control handle through th...

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/54G06F13/28H04L12/863
Inventor 邵宗有聂华历军李永成
Owner DAWNING INFORMATION IND BEIJING