UDP广播压力
我正在编写一个依赖于 UDP 广播的应用程序。 有谁知道这会给您的网络带来什么样的压力?我希望同一网络上有多个客户端经常广播。
任何有关这方面的信息都会有帮助
谢谢
I am writing an application that relies on UDP Broadcasting.
Does anyone know what kind of stress this puts on your network? I would like to have multiple clients on the same network broadcasting frequently.
Any information on this would be helpful
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这一切都取决于。这取决于速度、类型和网络的质量(例如,它是微分段的还是共享的,您的交换机有多好),这取决于网络的大小和网络质量。数据包的频率、广播客户端的数量等。如果您正在运行路由网络(即多个子网),您打算如何(如果有的话)处理到非本地子网的广播?路由器将如何处理这个问题?这也取决于您的终端设备的能力,它们需要处理每个 UDP 广播帧 - 在高速率下,这会大大减慢低端机器的速度。不过,不要让这让您失望,如果您曾经进行过网络跟踪,那么除非您位于微分段 LAN 上,否则您可能会看到相当多的后台广播流量,而且一切都会顺利进行。
可能值得阅读 多播 组,看看这是否适合您的应用程序因为有多种方法可以使用各种类型的网络设备将网络配置为比直接 UDP 广播更有效地处理多播。
It all depends. It depends on the speed, type & quality of network (e.g. is it micro-segmented or shared, how good are your switches), it depends on the size & frequency of the packets, the number of broadcasting clients, etc. If you're running a routed network i.e. multiple subnets, how (if at all) are you intending to handle broadcasts to the non-native subnets? How will the routers handle this? It depends on the capability of your end devices too, they'll need to process every UDP broadcast frame - at high rates this can slow down low-end machines quite considerably. Don't let this put you off though, if you've ever done a network trace then, unless you're on a microsegmented LAN, you'll probably see quite a bit of background broadcast traffic anyway and it all ticks along happily.
It might be worth reading up on multicast groups and seeing if that might be an option for your application as there are ways, with various types of network equipment, that you can configure your network to handle multicast more efficiently that straight UDP broadcasts.
我想这取决于:
我建议编写一个简单的测试程序,尝试发送不同数量的数据,并运行 netlimiter 之类的东西来查看您使用了多少带宽。有了这些信息,您就可以判断您的网络距离极限有多近,并为您的问题获得明确的答案。
I imagine it would depend on:
I'd suggest writing a simple test program which attempts to send different amounts of data and the running something like netlimiter to see how much bandwidth you're using. With that information in hand you can judge how close to the limit of your network you're getting and get a firm answer to your question..