Network packet receiving and sending path optimization method and device and storage medium

A technology for path optimization and sending and receiving packets, which is applied in the field of network optimization, can solve problems affecting the performance of data sending and receiving, and achieve the effects of reducing data copying, optimizing paths, and improving performance
CN113992608APending Publication Date: 2022-01-28BEIJING KEDONG ELECTRIC POWER CONTROL SYST +1

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
BEIJING KEDONG ELECTRIC POWER CONTROL SYST
Publication Date
2022-01-28

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention discloses a network packet receiving and sending path optimization method and device and a storage medium, and the method comprises the steps: calling a recv interface to read a data packet stored in a pre-constructed annular queue during network packet receiving, and returning the address of the data packet to a user program, so that the user program can operate the data packet according to the address; during network packet sending,calling an alloc interface, returning a first available memory address from the annular queue, constructing an Ethernet frame on the memory, and then calling a send interface to send a data packet. According to the invention, the packet is received in a polling mode during packet receiving, interruption processing is not needed any more, a kernel protocol stack is not bypassed any more, and data copying is reduced; according to the network packet receiving and sending method, the network packet receiving and sending path is optimized, and the network packet receiving and sending performance is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a method, a device and a storage medium for optimizing a network sending and receiving packet path, and belongs to the technical field of network optimization. Background technique

[0002] When the network receives the packet, it is first cached in the ringbuffer, and then cached in the socket after being processed by the protocol stack, and finally the user obtains the data packet through a system call. When the network sends a contract, the user caches the data in the socket through the system call, and then caches the data in the ringbuffer after being processed by the protocol stack, and finally sends the contract through the network card. Because the network sends and receives packets, it must be processed by the protocol stack, and memory copying is also involved during the processing, which affects the performance of data sending and receiving. Contents of the invention

[0003] The purpose of the present invention 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