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 proto

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

Example Embodiment

[0050] Example 1:

[0051] An embodiment of the present invention provides a method for cross-layer communication of protocol packets. The execution body of the method is a CPU that has received packet processing, that is, the CPU has received the protocol packet and stores the protocol packet in a pre-created in the socket's buffer. 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 extension information of the protocol message to be sent.

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

Example Embodiment

[0079] Embodiment 2:

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

[0081] The protocol processing module 61 is a module in the user mode, and the protocol family processing module 62 and the packet sending module 63 are modules in the kernel mode. The protocol processing module 61 is used to call the sending function provided by the kernel, and fill in the message data information and extension information of the protocol message to be sent; the protocol family processing module 62 is used to call the pre-created socket in the kernel. The packet sending processing callback function converts the protocol packet from the user mode space to the kernel mode space; the packet sending module 63 is used to encapsulate the protocol packet converted to the kern...

Example Embodiment

[0085] Embodiment three:

[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, the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; Executable modules, such as computer programs. The processor implements the steps of the method as described in the method embodiment when the computer program is executed.

[0087] The memory 71 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system 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, et...

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
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