UDP多播的配置Aeron通道如何接收消息?

发布于 2025-01-29 11:20:14 字数 706 浏览 2 评论 0原文

我正在尝试在同一多播/端口上运行基本的发布者/订户对。 我想知道UDP多播的配置频道如何,特殊“接口”参数,所有SUBS都可以从酒吧接收消息?

我有三个火柴线,我想通过UDP多播类型测试Aeron, 一个本地网络(LAN),

Pub Matchinea IP 192.168.31.100,

Sub1 MatchineB IP 192.168.31.120,

Sub2 Matchinec IP 192.168.31.121,

我的测试案例是:

pub:pub:final string Channel =“ udp?eneron:udp?entpoint?entpoint?entpoint?entpoint? .31.120:40456 |接口= 192.168.31.0/24 | ttl = 16“;

sub1:最终字符串通道=“ aeron:udp?endpoint = 192.168.31.120:40456 |接口= 192.168.31.0/24 | ttl = 16”;

sub2:最终字符串通道=“ aeron:udp?endpoint = 192.168.31.121:40456 |接口= 192.168.31.0/24 | ttl = 16”;

但是只有SUB1才能接收所有消息,SUB2无法接收任何消息。 我猜“接口”参数配置可能不正确。

我想知道Config Channel UDP多播如何收到所有消息? 谢谢你!

I am trying to run a Basic Publisher/Subscriber pair on the same Multicast/Port.
I want to know how config channel for udp multicast, special the "interface" paramter, all subs can receive messages from pub?

I have three matchines, I want to test aeron by udp multicast type,
three matchines in one local network(lan),

pub matchineA ip 192.168.31.100,

sub1 matchineB ip 192.168.31.120,

sub2 matchineC ip 192.168.31.121,

my test case is:

pub: final String channel = "aeron:udp?endpoint=192.168.31.120:40456|interface=192.168.31.0/24|ttl=16";

sub1: final String channel = "aeron:udp?endpoint=192.168.31.120:40456|interface=192.168.31.0/24|ttl=16";

sub2: final String channel = "aeron:udp?endpoint=192.168.31.121:40456|interface=192.168.31.0/24|ttl=16";

but only sub1 can receive all messages, sub2 can not receive any messages.
I guess the "interface" paramter config may be not right.

I want to know how config channel udp multicast all subs can receive all messages?
thank you!

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

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

发布评论

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

评论(1

兲鉂ぱ嘚淚 2025-02-05 11:20:14

端点配置UDP多播IP 224.0.1.1 IS Test Pass。pub

:最终字符串通道=“ Aeron:udp?endpoint = 224.0.1.1.1:40456 |接口= 192.168.31.100 | ttl = 16”;

sub1:最终字符串通道=“ aeron:udp?endpoint = 224.0.1.1:40456 |接口= 192.168.31.120 | ttl = 16”;

sub2:最终字符串通道=“ aeron:udp?endpoint = 224.0.1.1:40456 |接口= 192.168.31.121 | ttl = 16”;

endpoint config udp multicast ip 224.0.1.1 is test pass。

pub: final String channel = "aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.100|ttl=16";

sub1: final String channel = "aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.120|ttl=16";

sub2: final String channel = "aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.121|ttl=16";

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