Three-layer switch equipment based user mode protocol stack implementation method and system

An implementation method and system implementation technology, applied in the field of protocol stacks, can solve problems such as programming restrictions, difficulty, and few debugging methods, and achieve the effects of reducing development difficulty, improving performance, and retaining robustness

Active Publication Date: 2017-01-04
成都瑞视恒基通信技术有限公司
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The familiarity and mastery of these mechanisms does not take time, and is relatively difficult
2) Programming restrictions, there are some programming restrictions in development in kernel mode, kernel stack, linear kernel address space, various locks, etc.
3) Debugging is difficult. When developing in kernel mode, conventional user-mode debuggers will not work. When an exception occurs in the program, there are few available debugging methods; in more extreme cases, the console cannot work.

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
  • Three-layer switch equipment based user mode protocol stack implementation method and system
  • Three-layer switch equipment based user mode protocol stack implementation method and system
  • Three-layer switch equipment based user mode protocol stack implementation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0024] The following is the combined image 3 , attached Figure 4 And attached Figure 5 The present invention is further described. as attached image 3 As shown, the linux protocol stack mainly includes 7 levels, which are generally summarized into three levels in the actual development process for the convenience of description and use, namely L2 layer, L3 layer and L4 layer. The L2 layer is mainly to manage the network device interface and interact with the network device driver; the L3 layer is the core of the protocol stack, which mainly implements various network protocols, the most ...

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 relates to protocol stack technologies and discloses a three-layer switch equipment based user mode protocol stack implementation method. The method includes steps: step one, constructing a user mode protocol stack in a user mode, transplanting a layer L2 and a layer L3 to the user mode protocol stack, and keeping a layer L4 and a kernel driver in a kernel mode, wherein the layer L2 is mainly used for management of network equipment interfaces and interaction with network equipment drivers, and the L3 layer is a kernel of the protocol stack and mainly used for realizing various network protocols; step two, establishing communication between the layer L2 and the kernel driver kept in the kernel mode by means of memory mapping, and realizing communication between the layer L3 and the layer L4 through a socket I / O provided by the kernel. By adoption of the method for implementation of the user mode protocol stack, subsequent large-scale development is carried out under the user mode, and accordingly development difficulty is lowered, and performances of a data forwarding plane are improved.

Description

technical field [0001] The invention relates to the technical field of protocol stacks, and discloses a method and system for realizing a user-mode protocol stack based on a three-layer switch device. Background technique [0002] As an open source operating system, Linux is widely used in various devices due to its good stability, flexibility and scalability. The related protocol development in the linux protocol stack is generally divided into two parts: the data forwarding plane and the protocol control plane. The data forwarding plane is used to process the route selection and forwarding of data packets, etc. It is realized by the Linux kernel protocol stack and works in the kernel state. The protocol control plane is used to control packet forwarding or implement data services, such as mstp, telnet, ssh and other protocols, which are usually implemented in user mode. The two communicate directly through the socket, and the development mode is as attached figure 1 sho...

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/781H04L12/931H04L45/52
CPCH04L45/52H04L49/10
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