You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, UDP multicast is not supported by turmoil.
Since all hosts of the simulation are known and in the same network (there isn’t any notion of network topology in turmoil), the solution might be quite straightforward and built upon the current UDP unicast implementation. The network partitioning and other parts will continue to work as they are now.
One possible solution would be to add a mapping from udp multicast group addresses to udp socket bind addresses as a property of the World.
On sending a message, given that the multicast group is a destination address of a message, we look up bind addresses for every UDP socket in the mapping and send the message to those addresses.
Multicast group addresses are reserved to 224.0.0.0/4 for IPv4 and ff00::/8 for IPv6.
The same approach might be used to implement IPv4 UDP broadcast.
On binding a UDP socket we collect every udp socket bind addresses in a list that is a property of the World.
We don’t need a mapping here, since there is a single global broadcast address255.255.255.255. It could become a mapping, if we were to support subnet's broadcast addresses, but for that we would need some notion of network topology in turmoil.
On sending a message, to the global broadcast address, we look up bind addresses for every UDP socket in the list and send the message to those addresses.
The text was updated successfully, but these errors were encountered:
Currently, UDP multicast is not supported by turmoil.
Since all hosts of the simulation are known and in the same network (there isn’t any notion of network topology in turmoil), the solution might be quite straightforward and built upon the current UDP unicast implementation. The network partitioning and other parts will continue to work as they are now.
One possible solution would be to add a mapping from udp multicast group addresses to udp socket bind addresses as a property of the World.
The same approach might be used to implement IPv4 UDP broadcast.
The text was updated successfully, but these errors were encountered: