Method and device for processing network packets

A network message and processing method technology, applied in the field of network message processing methods and equipment, can solve the problems of increasing the difficulty and workload of upper-layer application development, increasing the difficulty of protocol transplantation, and complicated methods

Inactive Publication Date: 2017-11-24
PHICOMM (SHANGHAI) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method also has certain problems: because the information after the removal of the chip manufacturer's logo is stored in the SKB structure, upper-layer applications can only obtain this part of information through some specific methods or custom function interfaces. These function interfaces require developers to define or modify the relevant network protocol stack processing parts in the kernel to be feasible, which greatly increases the difficulty of protocol porting in the future.
[0006] As mentioned above, the existing two-layer protocol development has the following main problems in the processing method of the message with the manufacturer's logo: 1) The attached manufacturer's logo changes the basic structure of the network message, causing the system network protocol stack to be unable to identify normally and cannot be used. The standard message processing method is used for sending and receiving processing, which increases the development difficulty and workload of the upper-layer application; 2) The way for the upper-layer application to obtain the underlying information provided by the manufacturer's logo is complicated, and the addition and modification of some kernel function interfaces require relatively large High technical level and experience are not conducive to the transplantation of applications and protocols between projects, resulting in a decrease in code versatility

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 device for processing network packets
  • Method and device for processing network packets
  • Method and device for processing network packets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] 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.

[0043] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0044] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

[0045] refer to figure 1 , figure 2 , image 3 , the invention discloses a network message processing method...

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 is applicable to the technical field of network equipment, and relates to a network message processing method and equipment. A network message processing method, comprising a network message receiving step and a network message sending step, the network message receiving step comprising: the network card driver module receives the network message from the DMA; when the message type of the network message has a registration process, Parsing and removing the vendor identification in the network message; sending the analysis result of the vendor identification of the network message and the network message from which the vendor identification has been removed to the user layer. The invention creates a channel independent of the network protocol stack of the operating system, which will not have any impact on the software development of the third layer or does not pay attention to the bottom layer information; it is especially suitable for the network message with the identification of the chip manufacturer.

Description

technical field [0001] The invention is applicable to the technical field of network equipment, and in particular relates to a network message processing method and equipment. Background technique [0002] At this stage, similar to the development process of Layer 2 or Layer 3 managed switches on the Linux platform, we often encounter a problem: for some Layer 2 network protocols, such as RSTP (rapid spanning Tree Protocol, Rapid Spanning Tree Protocol), or GVRP (Generic Attribute Registration Protocol, Generic Attribute Registration Protocol) and other developments, how the upper-layer software knows the underlying information such as the receiving port on the hardware of the protocol message; some chip manufacturers give a solution: Let the switch chip modify and send it to the CPU (Central Processing Unit, central processing unit) message structure, insert several bytes of manufacturer identification in front of the message type field to contain the underlying information...

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): H04L12/70H04L29/06
Inventor 楚嘉隆
Owner PHICOMM (SHANGHAI) CO LTD
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