使用BSD插座为数据采集系统提供10 Gb/s的可靠UDP传输
Achieveing reliable UDP transmission at 10 Gb/s using BSD socket for data acquisition systems
摘要:
用户数据报协议(UDP)是小型嵌入式系统中常用的数据传输协议。UDP本身是不可靠的,可能会发生数据包丢失。如果不使用最佳分组大小,则可实现的数据速率可能会受到影响。传输控制协议(TCP)保证数据的有序传输,并自动调整传输以匹配传输链路的能力。然而,UDP由于其简单性,小内存和指令占用而经常优于TCP。UDP和TCP都在所有大型操作系统和商业嵌入式框架中实现。此外,UDP还支持各种小型硬件平台,如数字信号处理器(DSP)、现场可编程门阵列(FPGA)。这在TCP中并不常见。本文介绍了如何实现高速UDP数据传输的数据包错误率非常低。这种近乎可靠的通信链路被用于下一代极强中子源--欧洲中子源的数据采集(DAQ)系统。本文介绍了UDP性能和可靠性的测量,通过采用几种优化。测量在基于Xeon E5的CentOS(Linux)服务器上进行。测得的数据速率非常接近10 Gb/s的线路速率,并实现了零分组丢失。该性能是利用单个处理器核作为发射器和单个核作为接收器来获得的。结果表明,对传输大数据包的支持是获得良好性能的关键参数。对吞吐量的优化包括:MTU、数据包大小、调优Linux内核参数、线程亲和性、核心局部性和高效计时器。
英文摘要:
User Datagram Protocol (UDP) is a commonly used protocol for data transmission in small embedded systems. UDP as such is unreliable and packet losses can occur. The achievable data rates can suffer if optimal packet sizes are not used. The alternative, Transmission Control Protocol (TCP) guarantees the ordered delivery of data and automatically adjusts transmission to match the capability of the transmission link. Nevertheless UDP is often favored over TCP due to its simplicity, small memory and instruction footprints. Both UDP and TCP are implemented in all larger operating systems and commercial embedded frameworks. In addition UDP also supported on a variety of small hardware platforms such as Digital Signal Processors (DSP) Field Programmable Gate Arrays (FPGA). This is not so common for TCP. This paper describes how high speed UDP based data transmission with very low packet error ratios was achieved. The near-reliable communications link is used in a data acquisition (DAQ) system for the next generation of extremely intense neutron source, European Spallation Source. This paper presents measurements of UDP performance and reliability as achieved by employing several optimizations. The measurements were performed on Xeon E5 based CentOS (Linux) servers. The measured data rates are very close to the 10 Gb/s line rate, and zero packet loss was achieved. The performance was obtained utilizing a single processor core as transmitter and a single core as receiver. The results show that support for transmitting large data packets is a key parameter for good performance. Optimizations for throughput are: MTU, packet sizes, tuning Linux kernel parameters, thread affinity, core locality and efficient timers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。