Flannel: UDP Broadcast possible between docker containers across hosts?

701 views
Skip to first unread message

Zia Syed

unread,
Mar 20, 2015, 6:33:35 PM3/20/15
to coreo...@googlegroups.com
Hi,


I'm running Flannel on my CoreOS cluster. Network 10.200.0.0.  I need to run a gyre (https://github.com/zeromq/gyre) based application in containers. Gyre needs to be able to UDP broadcast across the hosts. Which means I need broadcast address for my containers to be 10.200.255.255. Inside the container and on docker0 of host, I see them having Broadcast address 0.0.0.0. 

Is this broadcast supposed to work on Flannel? Is there a way I can change the broadcast address?

For testing , run the following on two containers on a same host and one container on another host within the same Flannel network. 

go run examples/ping/ping.go -group test
Thanks,
Zia

Eugene Yakubovich

unread,
Mar 20, 2015, 6:43:13 PM3/20/15
to Zia Syed, coreo...@googlegroups.com
Hi Zia,

flannel does not support broadcast (or multicast). IP broadcast is
supposed to work only on a single subnet but realistically only on a
single link segment (i.e. L2). flannel operates at IP layer (L3)
effectively as a router and routers don't forward broadcast traffic.

Best,
Eugene
> --
> You received this message because you are subscribed to the Google Groups
> "CoreOS User" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to coreos-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages