UDP广播压力

发布于 2024-09-04 09:07:50 字数 105 浏览 11 评论 0原文

我正在编写一个依赖于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哆兒滾 2024-09-11 09:07:50

这一切都取决于。这取决于速度、类型和网络的质量(例如,它是微分段的还是共享的,您的交换机有多好),这取决于网络的大小和网络质量。数据包的频率、广播客户端的数量等。如果您正在运行路由网络(即多个子网),您打算如何(如果有的话)处理到非本地子网的广播?路由器将如何处理这个问题?这也取决于您的终端设备的能力,它们需要处理每个 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.

审判长 2024-09-11 09:07:50

我想这取决于:

  1. 您的网络配置(您使用交换机吗?集线器?)
  2. 您发送的数据量
  3. 您发送数据
  4. 的频率 您的网络容量。

我建议编写一个简单的测试程序,尝试发送不同数量的数据,并运行 netlimiter 之类的东西来查看您使用了多少带宽。有了这些信息,您就可以判断您的网络距离极限有多近,并为您的问题获得明确的答案。

I imagine it would depend on:

  1. your network configuration (do you use switches? Hubs?)
  2. the amount of data you're sending
  3. The frequency you're sending the data
  4. The capacity of your network.

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..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文