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

Highly concurrent data transmission method and data transmission method for 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

Active Publication Date: 2021-08-27
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But at the same time, there is also a problem: the switch has a lot of data packets. If they are directly sent to the application and processed, the data packets will be lost and the statistical results will be distorted.

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
  • Highly concurrent data transmission method and data transmission method for switch

Examples

Experimental program
Comparison scheme
Effect test

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, transfer the UDP data 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 thread, an...

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.

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 high-concurrency data transmission method and a data transmission method for switches, belonging to the data transmission based on the Linux kernel, and the technical problem to be solved is how to realize the reception, processing and transmission of high-concurrency data; the method is based on The IO multiplexing technology receives the UDP data from the sending end, performs multi-thread processing on the UDP data according to the collection requirements of the collecting end, obtains the processed data, and transmits the processed data to the TCP port of the collecting end based on the IO multiplexing technology. The data transmission method for the switch includes receiving UDP data from the switch through a high-concurrency data transmission method, performing multi-thread processing on the UDP data, and sending the processed data to the collection end.

Description

technical field [0001] The invention relates to the field of data transmission based on the Linux kernel, in particular to a highly concurrent data transmission method and a data transmission method for switches. Background technique [0002] With the development of monitoring technology, more and more attention has been paid to traffic monitoring. Traditional solutions solve the problem of traffic monitoring at the switch or application layer. For the need to calculate and process data before statistical results, switches seem powerless in this regard. The data processing work is handed over to a server with stronger computing power. The application program on the server receives the data from the switch and needs to send it to the collection end for archiving after processing. If the data collected by the switch is sent to the server and handed over to the application program for processing, there are the following advantages: on the one hand, the pressure on the switch ca...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F11/32
Inventor 祝乃国李超于昊
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD