[英]Aeron - Issues with Multicast across Switches
I am trying to run a Basic Publisher/Subscriber pair on the same Multicast/Port.我正在尝试在同一个多播/端口上运行基本发布者/订阅者对。 It works perfectly when the hosts are connected to the same Switch, but not if the subscriber is on a different Switch.当主机连接到同一个交换机时,它可以完美地工作,但如果用户在不同的交换机上,则不能。
Publisher出版商
java '-Daeron.sample.channel=aeron:udp?endpoint=224.0.1.1:40123|interface=192.168.1.0/24' -Daeron.sample.embeddedMediaDriver=true -cp ./lib/aeron-all-1.29.0.jar io.aeron.samples.BasicPublisher
Subscriber订户
java '-Daeron.sample.channel=aeron:udp?endpoint=224.0.1.1:40123|interface=192.168.9.0/24' -Daeron.sample.embeddedMediaDriver=true -cp ./lib/aeron-all-1.29.0.jar io.aeron.samples.BasicSubscriber
Since the hosts has multiple interfaces, I have explicitly tried to bind the Publisher/Subscriber to a specific interface, by defining the interface parameter as a part of the Channel Configuration.由于主机有多个接口,我已明确尝试将发布者/订阅者绑定到特定接口,方法是将接口参数定义为通道配置的一部分。
Mulit-cast routes between the 2 boxes has been verified using iperf
两个盒子之间的多播路由已使用iperf
进行了验证
I was able to make it work with adding a ttl config option.我能够通过添加ttl配置选项使其工作。
Publisher出版商
java '-Daeron.sample.channel=aeron:udp?endpoint=224.0.1.1:40123|interface=192.168.1.0/24|ttl=16' -Daeron.sample.embeddedMediaDriver=true -cp ./lib/aeron-all-1.29.0.jar io.aeron.samples.BasicPublisher
Subscriber订户
java '-Daeron.sample.channel=aeron:udp?endpoint=224.0.1.1:40123|interface=192.168.9.0/24|ttl=16' -Daeron.sample.embeddedMediaDriver=true -cp ./lib/aeron-all-1.29.0.jar io.aeron.samples.BasicSubscriber
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.