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

Kernel state protocol stack and user state protocol stack coexist processing method and device

A protocol stack and kernel-mode technology, applied in the network field, can solve the problems of large porting workload and inability to partially modify the application source program, so as to achieve the effect of small porting workload, reducing porting workload and facilitating porting.

Active Publication Date: 2022-04-22
CHINANETCENT TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for processing the coexistence of a protocol stack in a kernel state and a protocol stack in a user state, which are used to solve the problem that the source program of the application program cannot be partially modified during the process of switching the application program from the protocol stack in the kernel state to the protocol stack in the user state. The problem of heavy porting workload

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
  • Kernel state protocol stack and user state protocol stack coexist processing method and device
  • Kernel state protocol stack and user state protocol stack coexist processing method and device
  • Kernel state protocol stack and user state protocol stack coexist processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0053] The core of the network is the message forwarding process. If the message control plane and the data forwarding plane are not separated, the message will first enter the kernel area and then be copied to the user area for processing by upper-layer applications. Function, a large number of interfaces for docking are embedded in the protocol stack. If applications can directly take over network packet processing, memory management, and CPU scheduling, then per...

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

Embodiments of the present invention provide a method and device for processing the coexistence of a protocol stack in a kernel state and a protocol stack in a user state, which belong to the field of network technology. The method includes: taking over the related functions of the system socket, using an interface specification consistent with the POSIX standard; transforming the related functions of the system socket after taking over, and transforming the socket function corresponding to the application program, so that the interface of the kernel mode protocol stack is compatible with the user The interfaces of the state protocol stack are unified; according to the preset message transmission rules, choose to use the kernel state protocol stack or the user state protocol stack to process the sending and receiving messages of the application. The method and device for processing the coexistence of the protocol stack in the kernel state and the protocol stack in the user state provided by the embodiments of the present invention unify the interface of the protocol stack in the kernel state and the protocol stack in the user state, and realize the coexistence of multiple protocol stacks in a single application. The application program of the stack only needs to do simple interface replacement according to the user mode protocol stack, the workload of application source program transplantation is small, and the system performance is high.

Description

technical field [0001] The present invention relates to the field of network technology, in particular to a method and device for processing the coexistence of a protocol stack in a kernel state and a protocol stack in a user state. Background technique [0002] With the continuous development of network communication technology, the bandwidth and flow of network communication increase accordingly, and the processing capability of the network protocol stack tends to form the bottleneck of system performance. In the traditional kernel mode protocol stack, the network card notifies the protocol stack that a new data packet arrives through a hardware interrupt, and the kernel network card driver is responsible for handling the hardware interrupt, copying the data packet from the network card queue to the buffer created by the kernel (DMA ), and then the data packet goes through a series of protocol processing procedures, and finally sent to the buffer specified by the user prog...

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): H04L69/16H04L69/18G06F9/448
CPCH04L69/162H04L69/18G06F9/4482
Inventor 许加烜曹志文程杜勇
Owner CHINANETCENT TECH