无法实现 1Gbit UDP 吞吐量 [英] Having trouble achieving 1Gbit UDP throughput

查看:58
本文介绍了无法实现 1Gbit UDP 吞吐量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于负载小于 1470 的 UDP 数据包,是否有可能达到 1Gbit 的吞吐量?由于数据包较小,实现这样的吞吐量(I/O、OS、网络等)应该存在一些瓶颈.我想驱动程序和硬件可能必须针对小数据包/高吞吐量进行调整.有没有人尝试过使用小 UDP 数据包成功实现 1Gbit 吞吐量?

For UDP packets with a payload less then 1470, is it possible to achieve 1Gbit throughput? Due to the small packet size, there should be some bottlenecks in achieving such throughput (I/O, OS, network, etc.). I imagine drivers and hardware might have to be tuned to small packet/high throughput. Has anybody attempted successfully achieved 1Gbit throughput with small UDP packets?

推荐答案

我之前在相对标准的 PC 硬件上对千兆链路的吞吐量进行了一些试验,尽管只是传输(通过 tcpreplay),而不是 udp.

I've previously done some experimenting with throughput on gigabit links on relatively standard pc hardware, albeit doing just transmits (via tcpreplay), rather than udp.

我发现的最大瓶颈是将数据包发送到 NIC 本身.这可以通过使用高速总线连接到您的 NIC(例如 4x pci-express NIC)来显着改善.但即使这样,也有一个非常明确的数据包/秒限制.显然,增加数据包大小可以让您利用更多带宽,同时减少处理器负载.

The biggest bottleneck that I found was in just getting packets to the NIC itself. This can be significantly improved by using a high speed bus to interface to your NIC (eg. a 4x pci-express NIC). But even with this there was a very definate packet/second limit. Obviously increasing the packet size would allow you to utilize more of your bandwidth while reducing processor load.

Steve Moyer 的评论相同,任何使用都有理论上的限制网络.在我的实验(在完全安静的网络上进行)中,我看到的最大速度约为(并且仅在我的记忆中)900Mb/s.这是 CPU 负载为 30% 到 40% 的情况.

Along the same lines as the comment by Steve Moyer, there is a theoretical limit for the utilization of any network. In my experiments (which were being done on a completely quiet network) I was seeing a maximum of approximately (and only off the top of my memory) 900Mb/s. This was with cpu loads of 30 to 40%.

这种限制更有可能是由您的系统硬件(即 PC)而不是您的网络基础设施施加的 - 任何物有所值的网络交换机都应该能够支持小数据包的全速网络访问 - 当然是很多比大多数 PC 所能承受的速率更高.

It's more likely that the limitation is going to be imposed by your system hardware (ie. PC) than your network infrastructure - any network switch worth its salt should be capable of sustaining full speed network access with small packets - certainly at much higher rates than most PCs can cope with.

这篇关于无法实现 1Gbit UDP 吞吐量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆