我正在运行来自https://github.com/real-logic/aeron的 BasicPublisher/BasicSubscriber 对,将它们绑定到同一个多播组+端口。当它们在它们连接的同一主机上运行时,但当它们在不同的主机(相同的交换机+子网+vlan)上运行时,发布者报告“由于发布者未连接到订阅者,提供失败”。这是我的配置:
航空对:
java -Daeron.sample.channel="aeron:udp?endpoint=225.10.9.7:4050" \
-Daeron.sample.embeddedMediaDriver=true \
-cp ./aeron-all/build/libs/aeron-all-1.29.1-SNAPSHOT.jar \
io.aeron.samples.BasicPublisher
java -Daeron.sample.channel="aeron:udp?endpoint=225.10.9.7:4050" \
-Daeron.sample.embeddedMediaDriver=true \
-cp ./aeron-all/build/libs/aeron-all-1.29.1-SNAPSHOT.jar \
io.aeron.samples.BasicSubscriber
我在绑定到同一个组+端口的同一主机上运行了一个 iperf udp 对,我认为这证明交换机没有阻止多播流量。我希望我只是错误地使用了 Aeron;或者我可以检查其他一些网络问题?
IPERF 对:
iperf -c 225.10.9.7 -p 4050 -u -T 32 -t 300 -I 1 -b 1G
[ 3] 46.0-47.0 sec 128 MBytes 1.07 Gbits/sec
…
iperf -s -u -B 225.10.9.7 -p 4050 -I 1 -b 1G
[ 3] 45.0-46.0 sec 128 MBytes 1.07 Gbits/sec 0.001 ms 35/91304 (0.038%)
…
Java:java-1.8.0-openjdk.x86_64
操作系统:Centos7 3.10.0-514.26.2.el7.x86_64