Method and system capable of efficiently submitting messages from kernel state to user state

A user-mode and kernel-mode technology, applied in the direction of memory address/allocation/relocation, program control devices, etc., can solve problems such as difficulty in maintenance and debugging, damage to kernel balance, insecurity and instability, and achieve low occupancy and high efficiency. Effects of Communication Mechanisms

Active Publication Date: 2017-10-24
湖州帷幄知识产权运营有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. Modifying the LINUX kernel will cause unsafe factors: because the Linux kernel protocol stack has a high security processing mechanism and exception handling mechanism, modifying the kernel destroys the balance of the kernel, which also brings unsafe and unstable factors
[0007] 2. Difficult to maintain and debug
Because the Proxy mechanism uses two queues to cache messages when submitting messages to the user state, the kernel writes messages to the send queue, and the application reads messages through the ioctl interface. At least 4 copies are required to submit the message To the user program, when the amount of packets is large, the performance will be affected, and it may even cause an abnormal interrupt level

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 system capable of efficiently submitting messages from kernel state to user state
  • Method and system capable of efficiently submitting messages from kernel state to user state
  • Method and system capable of efficiently submitting messages from kernel state to user state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0026] see Figure 1 to Figure 2 . It should be noted that the diagrams provided in this embodiment are only schematically illustrating the basic idea of ​​the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arb...

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 system capable of making a message efficiently submitted to the user mode from the kernel mode. According to the method, enabling information is added to a processing system so that the processing system can register a device driver through a file system in the kernel mode and an interface for controlling the file system can be provided; thus, the processing system can have access to the file system through the provided interface in the user mode; maintenance information is added to a user-mode thread of the processing system so that a callback function which is registered towards the user-mode thread through a protocol module can be maintained; in this way, after the file system is established, due to the fact that the portion, mapped to the memory area, of the file system is visible for user-mode programs, the user-mode programs can be directly read without being copied, and then an efficient communication mechanism from the kernel mode to the user mode can be achieved without relying on hardware. Compared with the prior art, the message submitting efficiency is high, and the kernel is safe.

Description

technical field [0001] The invention relates to the field of message processing, in particular to a method and system capable of efficiently submitting messages from a kernel state to a user state. Background technique [0002] In modern communication equipment, especially the communication equipment of large rack and frame type, the hardware design scheme of CPU+ASIC is often adopted. The ASIC communication chip is responsible for hardware forwarding (including switch and route, etc.), while the CPU is responsible for the processing at the protocol level. This processing process mainly depends on the message sent from the ASIC chip to the CPU. [0003] The application program or protocol module running on the CPU needs to process the messages sent by the ASIC chip to the CPU, including many complex protocol messages, such as RSTP, DHCP, IGMP and other protocol messages, and also needs to be sent to the protocol stack for processing IP layer packets and so on. [0004] In ...

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): G06F12/02G06F9/44
Inventor 乐义华
Owner 湖州帷幄知识产权运营有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products