2

我正在运行来自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

4

2 回答 2

3

当使用多播端点时,还需要在远程访问时为某些操作系统提供接口。该接口可以有一个掩码来简化子网上所有机器的配置。例如:

aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.1.4
aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.1.0/24

https://github.com/real-logic/aeron/wiki/Channel-Configuration

于 2020-07-27T15:13:13.260 回答
1

我有一个类似的问题,并通过添加类似这样的ttl配置选项来解决

aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.1.4|ttl=16
aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.1.0/24|ttl=16
于 2021-04-13T14:57:36.453 回答