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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
