Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Protocol message cross-layer communication method and device and electronic equipment

A protocol message and communication method technology, which is applied in the field of devices and electronic equipment, and the field of protocol message cross-layer communication method, can solve problems such as waste of computing resources, packet loss of protocol messages, etc., and achieve the goal of reducing waste and improving safety and reliability Effect

Inactive Publication Date: 2018-10-12
SHENZHEN FORWARD IND CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] No matter which one is used, it will cause a waste of computing resources, and when there is a protocol packet attack, the influx of a certain protocol packet will cause packet loss of other protocol packets

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
  • Protocol message cross-layer communication method and device and electronic equipment
  • Protocol message cross-layer communication method and device and electronic equipment
  • Protocol message cross-layer communication method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] The embodiment of the present invention provides a protocol message cross-layer communication method, the execution subject of the method is the CPU that has already received the packet processing, that is, the CPU has received the protocol message, and stores the protocol message in the pre-created in the buffer of the socket. see figure 1 As shown, the method includes the following steps:

[0052] S101: call the sending function provided by the kernel, and fill in the message data information and extended information of the protocol message to be sent.

[0053] The above message data information and extended information are stored in the pre-created socket buffer during the packet receiving process, and the protocol processing module calls the system call sending function (sendto) to fill in the data of the protocol message to be sent, The sending address option parameter part is filled with some extended information (such as layer 2 header, outgoing interface numbe...

Embodiment 2

[0080] An embodiment of the present invention provides a protocol message cross-layer communication device, see Figure 6 As shown, the device includes: a protocol processing module 61 , a protocol family processing module 62 , and a packet sending module 63 .

[0081] Among them, the protocol processing module 61 is a module in the user state, and the protocol family processing module 62 and the packet sending module 63 are modules in the kernel state. The protocol processing module 61 is used to call the sending function provided by the kernel to fill in the message data information and extended information of the protocol message to be sent; the protocol family processing module 62 is used to call the socket in the pre-created socket in the kernel. Packet processing callback function, the protocol message is converted from the user state space to the kernel state space; the packet sending module 63 is used to packetize the protocol message converted to the kernel state spac...

Embodiment 3

[0086] An embodiment of the present invention provides an electronic device, see Figure 7 As shown, the electronic device includes: a processor 70, a memory 71, a bus 72 and a communication interface 73, and the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; Executable modules, such as computer programs. When the processor executes the computer program, the steps of the methods described in the method embodiments are realized.

[0087] Wherein, the memory 71 may include a high-speed random access memory (RAM, RandomAccessMemory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.

[0088]...

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 protocol message cross-layer communication method and device and electronic equipment, and relates to the field of communication technology. The method comprises the followingsteps: calling a sending function provided by a kernel, and filling message data information and extension information of a protocol message needing to be sent; calling a packet processing callback function in a pre-created socket in the kernel, and switching the protocol message from a user-mode space to a kernel-mode space; and packaging the protocol message switched into the kernel-mode space,and sending the packaged protocol message to a specified outcoming interface according to the extension information. Through adoption of the protocol message cross-layer communication method providedby the embodiment of the invention, the sent protocol message can be processed correspondingly, and enters a corresponding kernel processing branch, thereby reduce the waste of system resources. Whena certain protocol message has burst traffic, the cross-layer communication of other protocol messages is not influenced, thereby improving the security and reliability of a network.

Description

technical field [0001] The invention relates to the technical field of cross-layer communication, in particular to a method, device and electronic equipment for cross-layer communication of protocol messages. Background technique [0002] The current switch system is designed to make the system more stable, efficient and secure. Therefore, it is divided into data plane, control plane and management plane. The control plane is used to control and manage the operation of all network protocols, and provides various network information and forwarding query table items necessary for data processing and forwarding of the data plane. In this way of separating the data plane and the control plane, the protocol messages in it need to be sent from the switch chip to the Linux kernel through the PCI-E bus, and then sent to the protocol module of the Linux user space by the Linux kernel. When the protocol module in the Linux user space sends the protocol message, it needs to be sent i...

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
IPC IPC(8): H04L29/08H04L29/06
CPCH04L69/162H04L69/321
Inventor 陈涛
Owner SHENZHEN FORWARD IND CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More