UDP子网广播-可以路由吗? [英] UDP Subnet Broadcast - possible to route?

查看:578
本文介绍了UDP子网广播-可以路由吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个新系统,该系统只能将状态消息发送到单个UDP地址,但是接收到的系统是双服务器系统.

We've got a new system being developed that can only send status messages to a single UDP address, however the system that is receivnig these is a dual server system.

问题是,广播消息会到达两个服务器吗?

The question is, would a broadcast message get through to both servers?

例如,发送系统为子网255.255.255.0上的10.10.10.1,最终路由器之前有许多路由器,而我们的两台服务器位于子网255.255.255.0(IP地址192.168)的网络192.168.0.0上.0.1和192.168.0.2)

For example, the sending system is 10.10.10.1 on subnet 255.255.255.0, and there is a number of routers before the final router and our two servers sitting on the network 192.168.0.0 with subnet 255.255.255.0 (IP address 192.168.0.1, and 192.168.0.2)

如果发送系统向192.168.0.255发送了一条消息,两个服务器都将收到吗?

If the sending system sent a message to 192.168.0.255, would both servers receive it?

另一种选择是由联机服务器和脱机服务器管理其IP地址,以便UDP发送系统仅发送到192.168.0.1,并且服务器在联机时更改IP地址.

The alternative is for the online server and offline server to manage their IP addresses so that the UDP sending system only sent to 192.168.0.1, and the servers changed IP addresses when online.

谢谢

推荐答案

没有路由器将客户端划分到自己的广播域中(默认情况下,路由器不转发广播数据包).  您有几种选择,即单播到每个服务器(效率不高),以多播到服务器所属的组或创建的多播组. 路由器上的中继代理.

No routers break up clients into their own broadcast domain (by default routers don't forward broadcast packets).  You have several options, unicast to each server (not very efficient) multicast to multicast group the servers are a member of, or create a relay agent on the router.

 

希望这会有所帮助

 


这篇关于UDP子网广播-可以路由吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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