I’m studying IPv6 and I’m traying to better understand how it works in deep.
So far, I know that there are essentially three types of addresses, based on the type of communication:
- unicast: one to one communication
- multicast: one to many communication
- anycast: one to nearest communication
I know that there is not the concept of broadcast in an IPv6 network and, instead, are used multicast addresses: for example, it is possible to send something only to routers on the same local network segment using the FF02::2 address and this information does not go to other hosts that are not routers.
There are very good videos on YouTube, made by Sunny Classroom, about IPv6: on the video named IPv6 - Neighbor Discovery Protocol (https://youtu.be/a1AQfjWwPaE?t=165), at 2:46, you can see an animation where a computer sends a FF02::2 packet that arrives just to the two routers, ignoring the other devices.
And here the confusion starts: if I have a network with, for example, 20 computers and one router on the same local network, i. e. on the same switch, and one of these computers sends a multicast of type FF02::2, this packet should reach only the router (if I understood what I’ve studied so far) but how can the switch, that is a layer 2 appliance, know how to forward the FF02::2 packet just trough the port where the router is? I imagine that in this scenario all the devices will receive the FF02::2 packet, just like a broadcast message’d do: so, it seems to me that broadcast messages still exist in IPv6: where am I wrong?