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

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

Active Publication Date: 2019-06-28
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF9 Cites 3 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
  • A high-concurrency data transmission method and a data transmission method for a switch
  • A high-concurrency data transmission method and a data transmission method for a 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, 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.

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 a switch, belongs to data transmission based on a Linux kernel, and aims to solve the technical problem of how to receive, process and transmit high-concurrency data. The method comprises the following steps: receiving UDP data from a sending end based on an IO multiplexing technology, carrying out multi-thread processing on the UDP data according to the acquisition requirement of an acquisition end to obtain processed data, and transmitting the processed data to a TCP port of the acquisitionend based on the IO multiplexing technology. The data transmission method for the switch comprises the following steps: receiving UDP data from the switch through the high-concurrency data transmission method, carrying out multi-thread processing on the UDP data, and sending the processed data to an acquisition 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 Applications(China)
IPC IPC(8): G06F9/54G06F11/32
Inventor 李超于昊
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD