Nanomsg组播带宽问题 [英] Nanomsg multicast bandwidth issue

查看:521
本文介绍了Nanomsg组播带宽问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在nanomsg的pub/sub协议中进行纯多播吗? 由于可以有N个订阅者对单个发布者的特定数据感兴趣,因此相同的订阅数据正在N个不同的流中流动.如果单个流的带宽为10MB,则N个流所需的总带宽为10 * N,因此带宽增加了.我们可以像组播中那样减少带宽吗?有人可以帮我解决这个问题吗?

Can I have pure multicasting in pub/sub protocol of the nanomsg. As there can be N subscribers interested in a particular data for a single publisher, the same subscribed data is flowing in N different streams.If my bandwidth for a single stream is 10MB then the total bandwidth required for N streams is 10*N,thus there is a increase in the bandwidth .Can we reduce this bandwidth as we do in the multicasting?? Can anyone help me regarding this issue??

推荐答案

据我了解的PUB/SUB模式,数据将被一一发送到所有订户.如果订户还没有准备好接受,则数据将被丢弃.我相信PUB/SUB中的数据是按顺序发送的.

As far as I understand the PUB/SUB pattern, the data will be sent to all subscribers one by one. If a subscriber is not ready to take it, the data is dropped. I believe that the data in PUB/SUB is sent sequentially.

但是,如果使用PUSH/PULL模式,则可以更好地控制数据的发送方式. 您可以有N个推子和1个推子.推子将数据一一发送到所有推子.不同之处在于您可以控制时序,并且可以等待较慢的PULLER.

However, you can have better control how data is sent if you use PUSH/PULL pattern. You can have N PULLers and one PUSHer. The PUSHer will send the data to all PULLers one by one. The difference is that you can control timing and you can wait for slower PULLers.

如果您不喜欢多重传输,那么我能想到的唯一其他机制就是共享内存.一个发送者和多个接收者.但是,这种情况仅适用于一台计算机.

If you do not like multiple transmissions the only other mechanism which I can think of is a shared memory. One sender and multiple takers. That scenario applies only for a single computer though.

因此,答案是否定的.您不能在nanomsg pub/sub协议中进行纯多播.如果您需要纯多播,则必须查看其他协议. 也许传入的 nng 可以通过UDP提供它.

So, the answer is No. You cannot have pure multi-casting in nanomsg pub/sub protocol. If you need a pure multicast you have to look at the other protocols. Maybe incoming nng could provide it over UDP.

如果必须进行多播,则必须检查其他协议,例如 面向NACK的可靠多播(NORM).

If multicast is a must you have to check other protocols see for example NACK-Oriented Reliable Multicast (NORM).

这篇关于Nanomsg组播带宽问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆