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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap