Does Flannel support Multicast?

1,204 views
Skip to first unread message

Chris Stivers

unread,
Mar 9, 2015, 11:07:54 PM3/9/15
to coreo...@googlegroups.com
Using Docker for a while, played w/ CoreOS since LinuxCon'14 and yet to use Flannel.

Q: Will Flannel allow me to setup Multicast /UDP between Docker instances on separate CoreOS machines? Our software has an option to send heartbeats via multicast / UDP, so we would like to enable this on our CoreOS cluster.

Paul Morgan

unread,
Mar 9, 2015, 11:21:14 PM3/9/15
to Chris Stivers, coreo...@googlegroups.com
flannel, no. https://github.com/coreos/flannel/issues/52

weave, yes.

```console
on 1st host

# 1st host launches weave
ip-192-168-254-86 ~ # ./weave launch
acedc5e08c3b3b43ed958a5feec48ff07386e5bb7a1f13030882b49782a31b89
ip-192-168-254-86 ~ # C=$(./weave run 10.2.1.1/24 -t -i
neilellis/weave-multicast-tutorial /bin/bash)
ip-192-168-254-86 ~ # docker attach $C
root@154842c39eca:/#
root@154842c39eca:/# /mc
mcreceive mcsend
root@154842c39eca:/# (/mcreceive 239.1.2.3 54321) &
[1] 18


on 2nd host

# 2nd and subsequent hosts must specify one host from the weave
network (doesn't matter which one)
ip-192-168-254-87 ~ # ./weave launch 192.168.254.86
fbc67d627ed381c6a997f1ffb91cd42fa47ad12f6cad54aae37886bc20d20a28
ip-192-168-254-87 ~ # C=$(./weave run 10.2.1.2/24 -t -i
neilellis/weave-multicast-tutorial /bin/bash)
ip-192-168-254-87 ~ # docker attach $C
root@912e84e042ac:/#
root@912e84e042ac:/# (/mcreceive 239.1.2.3 54321) &
[1] 20



back to 1st host

# send an mcast message
root@154842c39eca:/# echo booga booga booga | /mcsend 239.1.2.3 54321
Begin typing (return to send, ctrl-C to quit):
Received 18 bytes from 10.2.1.1: booga booga booga
root@154842c39eca:/#


lo and behold, what appears on 2nd host?

# the mcreceive process in background dumps this to screen
root@912e84e042ac:/# Received 18 bytes from 10.2.1.1: booga booga booga
```

hth,
- paul
> --
> 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.



--
Paul Morgan

eugene.y...@coreos.com

unread,
Mar 10, 2015, 5:01:50 PM3/10/15
to coreo...@googlegroups.com
It does not. Multicast is a great option for disseminating information to multiple receivers _efficiently_. Switches and routers do the replication in hardware (usually) and are aware of the network topology to build the distribution trees effectively. Unfortunately most cloud environments don't support multicast so it would have to be emulated by flannel and would be very inefficient. Additionally, flannel can use a backend such as VXLAN to perform the data path in the kernel; however kernel's vxlan does not support emulating multicast.
Reply all
Reply to author
Forward
0 new messages