A high-concurrency data transmission method and a data transmission method for a switch
A data transmission and switch technology, applied in the field of data transmission, can solve problems such as large data packets, data packet loss, statistical result distortion, etc., and achieve the effect of solving the reception bottleneck
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] as attached figure 1 As shown, the highly concurrent data transmission method of the present invention receives UDP data from the sending end based on the IO multiplexing technology, performs multi-thread processing on the UDP data according to the collection requirements of the collecting end, obtains the processed data, and based on the IO multiplexing Use technology to transfer the processed data to the TCP port of the collection end.
[0044] The method comprises the steps of:
[0045] S100, creating and initializing an IO multiplexing epoll instance, and monitoring kernel events;
[0046] S200. When the UDP data arrival signal is detected, the UDP data is transferred to the application buffer through the UDP data receiving thread;
[0047]S300. When the collection notification is monitored, the condition variable of the corresponding data type is broadcast through the main thread, and the work thread is activated through the collection notification receiving thre...
Embodiment 2
[0066] The present invention provides a data transmission method for a switch. UDP data sent by the switch is received through the high-concurrency data transmission method disclosed in Embodiment 1, and the data is concurrently processed by a work thread, and the processed data is sent to the collection end.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

