Coexistence processing method and device for kernel mode protocol stack and user mode protocol stack

A protocol stack and kernel-mode technology, applied in the network field, can solve the problems of heavy transplant workload and inability to partially modify the application source program, and achieve the effects of small transplant workload, reduced transplant workload, and convenient transplantation

Active Publication Date: 2019-12-03
CHINANETCENT TECH
View PDF7 Cites 18 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
  • Coexistence processing method and device for kernel mode protocol stack and user mode protocol stack
  • Coexistence processing method and device for kernel mode protocol stack and user mode protocol stack
  • Coexistence processing method and device for kernel mode protocol stack and user mode protocol stack

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

The embodiment of the invention provides a coexistence processing method and a device for a kernel mode protocol stack and a user mode protocol stack, and belongs to the technical field of networks. The method comprises the following steps: taking over a socket related function of a system, and using an interface specification consistent with a POSIX standard; modifying the taken-over system socket related function, and modifying a socket function corresponding to the application program, so that a kernel mode protocol stack interface and a user mode protocol stack interface are unified; and according to a preset message transmission rule, selecting to use the kernel mode protocol stack or the user mode protocol stack to process a receiving and sending message of the application program. According to the coexistence processing method and the device for the kernel mode protocol stack and the user mode protocol stack, a kernel mode protocol stack interface and a user mode protocol stackinterface are unified, coexistence of a single application and multiple protocol stacks is achieved, for application programs needing to use the user mode protocol stacks, only simple interface replacement needs to be conducted according to the user mode protocol stacks, the application program source program transplantation workload 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 Applications(China)
IPC IPC(8): H04L29/06G06F9/448
CPCH04L69/162H04L69/18G06F9/4482
Inventor 许加烜曹志文程杜勇
Owner CHINANETCENT TECH
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