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

High-speed message receiving method using polling mechanism

A message receiving, high-speed technology, applied in the direction of program startup/switching, multi-program device, digital transmission system, etc., can solve the problems of occupying CPU computing time and reducing system efficiency, so as to avoid interruption overhead and improve system efficiency Effect

Inactive Publication Date: 2011-06-15
SUGON INFORMATION IND
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the high-speed network message receiving network card, the number of received messages per second is sometimes as high as several million, because each interrupt signal processing must have a job of saving and restoring the work site, so every time a message is received Receiving an interrupt to the CPU will take up a lot of computing time of the CPU and reduce system efficiency

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
  • High-speed message receiving method using polling mechanism
  • High-speed message receiving method using polling mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] The present invention is a system combining software and hardware.

[0014] The software is responsible for allocating buffers for receiving messages. It needs to apply for a whole piece of memory with continuous physical addresses in the kernel as a buffer for receiving messages, and poll the hardware to check whether new messages arrive.

[0015] The hardware is responsible for receiving the message from the network, and transferring the message to the message buffer of the host memory, and notifying the software that a new message arrives by writing the register in the PCI space.

[0016] The PCI space registers related to message reception mainly include: message buffer address, length, read pointer for software to read messages from the buffer, and write pointer for hardware to write messages to the buffer.

[0017] The method and process of the invention receiving message are as follows:

[0018] (1) The PCI controller of the hardware network card registers the P...

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 high-speed message receiving method using a polling mechanism. The method is realized by an uninterrupted software / hardware combination mode, wherein a hardware network card PCI (programmable communications interface) controller registers a PCI space to a host machine; software applies for a message buffer zone; the software polls a read-write pointer; the software reads the received message in a read buffer zone and moves a read pointer; and when hardware receives the message, the hardware transmits the message to a message buffer zone and moves a write pointer. The high-speed message receiving is realized by an uninterrupted polling mode, the read-write pointer of the message buffer zone is put into a register of the PCI space, and the software and hardware realizes the interaction by directly operating the register, so that the interrupting overhead for receiving the message is avoided, and the efficiency of a system is improved.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a high-speed message receiving method using a polling mechanism. Background technique [0002] In a computer system, interrupt is the most common way for the CPU and peripherals to exchange. For example, when the network card receives a message, it will send an interrupt signal to the CPU. After receiving the interrupt signal, the CPU will send the Save the work site, go to the interrupt processing process of the network card, start the receiving work of the next message, and then restore the work site saved when the interrupt occurred, and continue the work before receiving the network card interrupt signal. [0003] Patent No. 200710178168.1 discloses a TCP connection management method of the Internet bypass monitoring system. The message receiving and receiving process uses an interrupt method to realize software and hardware interaction. After receiving a message each t...

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/56G06F9/48H04L47/629
Inventor 刘朝辉李静张英文刘兴奎李锋伟刘灿
Owner SUGON INFORMATION IND