Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for improving UDP message sending efficiency of Linux system

A technology for message transmission and efficiency, applied in transmission systems, electrical components, etc., can solve the problems of slow transmission speed and low transmission efficiency of UDP messages, and achieve the effect of improving transmission efficiency, transmitting large amount of data, and reducing CPU consumption.

Pending Publication Date: 2021-12-07
SHENZHEN RENDERBUS TECH +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art, provide a method for improving the efficiency of sending UDP messages in the Linux system, and solve the problems of slow transmission speed and low transmission efficiency of UDP messages 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
  • Method for improving UDP message sending efficiency of Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0024] Please refer to figure 1 , the present invention provides a kind of method that promotes Linux system UDP message transmission efficiency, comprises the following steps:

[0025] S1: According to the MTU value of the IP layer, split the data to be transmitted into m data units (m is a natural number, and m>0).

[0026] S2: Using the UDP GSO technology, several data units among the m data units in step S1 are sequentially combined by GSO to form a data message 1 .

[0027] S3: Repeat step S2 to perform several GSO merges to form data message 2, data message 3, . . . , data message n (n is a natural number, and n>0).

[0028] None of the data message 1, data message 2, ..., data message n is larger than 64KB.

[0029] S4: Add data message 1, data message 2, ..., data message n to the sendmmsg interface in turn, and mark data message 1...

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 discloses a method for improving the UDP (User Datagram Protocol) message sending efficiency of a Linux system, which comprises the following steps of: splitting data to be transmitted into m data units according to an MTU (Maximum Transmission Unit) value of an IP (Internet Protocol) layer; sequentially carrying out GSO merging on a plurality of data units in the m data units in the step S1 through a UDPGSO technology to form a data message 1; repeating the step S2 to sequentially form a data message 2, a data message 3,..., and a data message n; adding the data message 1, the data message 2,..., and the data message n into a sendmmsg interface, and respectively marking the data message 1, the data message 2,..., and the data message n as a sendmmsg interface message 1, a sendmmsg interface message 2,..., and a sendmmsg interface message n; and calling a sendmmsg interface, and sending the sendmmsg interface message 1, the sendmmsg interface message 2,..., and the sendmmsg interface message n to a transmission server side. Compared with the prior art, the sending efficiency of the UDP data per second can be improved by 30%, the sending efficiency of the UDP data is effectively improved, and the data transmission speed is improved.

Description

technical field [0001] The invention relates to the field of UDP message transmission, in particular to a method for improving the efficiency of sending UDP messages in a Linux system. Background technique [0002] A file transfer system generally includes a transfer client and a transfer server, and the transfer client and the transfer server communicate through a UDP transfer protocol or a TCP transfer protocol. In the Linux operating system, the process of sending a UDP message is as follows: (1) The application program calls the send / sendto interface to send data, specifying the destination IP and port; (2) The data to be sent is copied from the application program to the system kernel; ( 3) The system kernel completes the inspection of the message, generates a UDP message and sends it out. However, the transmission size of a UDP message on the network is limited, which is generally the MTU (Maximum Transmission Unit) of the network. Every time the send / sendto interface...

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/06
CPCH04L69/166H04L69/16
Inventor 周双全邹琼
Owner SHENZHEN RENDERBUS TECH