Message processing method and device, medium and equipment

A message processing and message technology, applied in the Internet field, can solve the problems of high consumption and high hardware cost

Active Publication Date: 2021-02-26
XINHUASAN INFORMATION TECH CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the technical problems of high hardware cost and high consumption in the prior art

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
  • Message processing method and device, medium and equipment
  • Message processing method and device, medium and equipment
  • Message processing method and device, medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 Shown:

[0058] This disclosure provides

[0059] A method for message processing, applied to a network device, the network device is configured with a virtual network card driver, the network device also includes a user mode protocol stack and a kernel protocol stack, and the method includes:

[0060] S1: Create a virtual network card in the system kernel based on the virtual network card driver, and send the virtual network card information to the user protocol stack;

[0061] Specifically, the virtual network card driver ioctl command execution function creates the virtual network card according to the information passed in by the ioctl command, allocates the virtual network card sending and receiving packet queue, defines the virtual network card interface management and the function of sending and receiving packets, and returns the information of the virtual network card to the user mode protocol stack , so that the protocol stack in the user mode ...

Embodiment 2

[0096] Such as image 3 Shown:

[0097] The present disclosure also provides a message processing device, including:

[0098] A virtual network card creation module 301, configured to create a virtual network card in the system kernel based on the virtual network card driver, and send the virtual network card information to the user protocol stack;

[0099] A filtering module 302, configured to filter the message based on the user mode protocol stack when receiving the message;

[0100] If the message is a control message, the user protocol stack forwards the control message to the kernel protocol stack through the virtual network card for processing based on the virtual network card information;

[0101] If the message is a service message, the user protocol stack processes the service message.

[0102] In the packet processing device described in the present disclosure, the virtual network card creation module 301 is connected to the filtering module 302 .

[0103] Furth...

Embodiment 3

[0113] The present disclosure can also provide a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the steps of the above method for message processing.

[0114] The computer storage medium of the present disclosure may be implemented using semiconductor memory, magnetic core memory, magnetic drum memory, or magnetic disk memory.

[0115] Semiconductor memory, mainly used in computers, mainly has two types of semiconductor memory elements: Mos and bipolar. Mos components are highly integrated, the process is simple but the speed is slow. Bipolar components are complex in process, high in power consumption, low in integration but fast in speed. After the advent of NMos and CMos, Mos memory began to play a major role in semiconductor memory. NMos is fast, for example, the access time of Intel's 1K-bit SRAM is 45ns. CMos consumes less power, and the 4K-bit CMos static memory access ...

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 message processing method and device, equipment and a medium. The method is applied to network equipment, the network equipment is configured with a virtual network adapter driver, the network equipment also comprises a user mode protocol stack and a kernel protocol stack, the method comprises the following steps: creating a virtual network adapter in a system kernel basedon the virtual network adapter driver, sending the virtual network adapter information to the user protocol stack; when a message is received, filtering the message based on the user mode protocol stack; if the message is a control message, by the user protocol stack, forwarding the control message to the kernel protocol stack for processing through the virtual network adapter based on the virtual network adapter information; and if the message is a service message, by the user protocol stack, processing the service message. By applying the method disclosed by the invention, the network adapter can process the service message at high performance in the user mode protocol stack, and the network adapter can support the control plane protocol through the linux kernel protocol stack.

Description

technical field [0001] The present disclosure relates to the technical field of the Internet, and more specifically, the present disclosure relates to a message processing method, device, medium and equipment. Background technique [0002] As the bandwidth of network card hardware gradually increases, frequent interrupt switching and copying of datagrams between the kernel and user mode in the mode of linux kernel interrupt sending and receiving packets have become the main bottleneck of network performance. For this reason, the user-mode network protocol stack based on the user-mode network card driver came into being. It works in the user mode and uses polling to send and receive packets, avoiding interrupt switching and copying of datagrams between the kernel and user mode. The delay and bandwidth of the network have brought great performance improvements. However, the current user mode protocol stack has not implemented most control plane protocols, and the frequency of...

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/851H04L12/863H04L12/02
CPCH04L47/24H04L47/50H04L12/02
Inventor 毕家兵
Owner XINHUASAN INFORMATION TECH 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