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

High-speed message sending method using polling mechanism

A message sending, high-speed technology, applied in the direction of digital transmission system, electrical components, transmission system, etc., can solve the problems of occupying CPU computing time and reducing system efficiency, and achieve the effect of avoiding interruption overhead and improving system efficiency

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

AI Technical Summary

Problems solved by technology

On the high-speed network message sending network card, the number of messages sent per second is sometimes as high as several million, because each interrupt signal processing must have a work of saving and restoring the work site, so every message sent Sending 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 sending method using polling mechanism
  • High-speed message sending 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 the buffer used for sending messages. It needs to apply for a whole piece of memory with continuous physical addresses in the kernel as a buffer for sending messages, and notify the hardware that there are new messages to be sent by writing the registers in the PCI space.

[0015] The hardware is responsible for reading the message from the message buffer of the host memory, sending it out, and polling the PCI space register to check whether there is a new message to be sent.

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

[0017] The realization method and process of this invention are as follows:

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

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 sending method using a polling mechanism, and the method is implemented by combining non-interruption software and hardware. The method comprises: a PCI (peripheral component interconnect) controller of a hardware net card registers a PCI space on a host; software applies for a message buffer region, writes the buffer region and moves a write pointer while sending a message; and hardware polls a read and write pointer while sending a message, reads the buffer region and moves a read pointer. According to the invention, high-speed message sending is realized in a non-interruption polling mode, the read and write pointers of the message buffer region are put in a register in the PCI space, and the software and the hardware realize interaction by directly operating the register, thereby avoiding the interruption cost of sending the message and improving the system efficiency.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a high-speed message sending method using a polling mechanism. Background technique [0002] In computer systems, interrupts are the most common way for the CPU and peripherals to communicate. For example, when the network card sends 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 sending 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 sending process adopts the interrupt method to realize the interaction between software and hardware. After sending a message eve...

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 SUGON INFORMATION IND
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