限制多播数据报

发布于 2024-08-12 06:50:16 字数 115 浏览 5 评论 0原文

我有一个使用多播发送一些 UDP 数据包的应用程序。我查看了网络流量,似乎有很多与使用多播相关的辅助数据包。我不完全理解,但多播本质上会导致更多的网络流量吗?如果是这样,我怎样才能抑制这种情况?

x

I have an application that is sending some UDP packets using multicast. I looked at the network traffic and there seems to be a lot of ancillary packets related to using multicast. I don't totally understand it, but does multicast by nature result in MORE network traffic. If so how can I throttle this down?

x

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

迷鸟归林 2024-08-19 06:50:16

除了多播组加入/删除消息之外,不会因发送多播数据而创建任何辅助消息。
然而,NIC、路由器、交换机、打印机等通常都会发送某种多播流量,这可能就是您记录流量时所看到的。

Other than the Multicast group join/remove messages, there are no ancillary messages created from you sending multicast data.
However, NIC's, routers, switches, printers, etc. all usually send some kind of multicast traffic, which is probably what you are seeing if you record the traffic.

以为你会在 2024-08-19 06:50:16

简而言之,您需要在客户端节点之间转发流量的网络设备来处理此问题。这些因网络拓扑而异,但通常是:

  1. 以太网交换机
  2. IP 路由器。
  3. 交换机/路由器(实现交换机和路由器的功能)

存在诸如IGMP之类的多播控制协议,但是当然源节点和/或中间节点(例如交换机)必须遵守这些控制协议。

是的,多播会导致更多的网络流量:这就是为什么普通以太网集线器实际上已经消失,而 IEEE 以太网的附加功能(例如 VLAN)如今很流行。

这可能最好在其他一些网站上解决(也许这个 SO 风格的网站 PacketDrop)。

In short, you need the networking equipment that forwards traffic between the client nodes to take care of this. Those vary depending on the network topology but would normally be:

  1. Ethernet switches
  2. IP routers.
  3. Switch / router (implements functionality of a switch & router)

There are multicast control protocols such as IGMP but of course the source nodes and/or intermediate nodes (e.g. switches) must comply to these control protocols.

And YES multicast result in more network traffic : this is why plain Ethernet hubbing is practically extinct and additions to IEEE Ethernet such as VLANs are prevalent nowadays.

This is probably best addressed on some other sites (maybe this SO-style site PacketDrop).

魂归处 2024-08-19 06:50:16

LLC 数据包意味着您的本地网段上可能有子网,但这通常并不意味着额外的数据包。如果您想删除 LLC,您应该将网络更改为完整的 C 类网络。 LLC 或 SNAP 在常规数据包上添加 8 字节标头。

http://ckp.made-it.com/ieee8022.html

LLC packets means you probably have sub-netting on your local segment, usually this doesn't mean extra packets though. You should change the network to a full class C if you want to remove LLC. On regular packets LLC or SNAP adds a 8-byte header.

http://ckp.made-it.com/ieee8022.html

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