multicast addresses

Multicast address (IP address)

 A multicast address is a special class that does not fit into any of the class A through class C address classes. A dedicated address for transferring data only for a specific group. This address is used only as a destination address. The source address is always unicast.

 The multicast address is determined to be “1110” for identification with the first 4 bits, and there is no host address part. The 28 bits after “1110” are used as a multicast group ID to identify the multicast group.

 Since the multicast address starts with “1110”, we will use “224.0.0.0 to 239.255.255.255”. Multicast communication is used, for example, in multimedia applications that broadcast audio or video data all at once. It is also used by routing protocols to exchange route information with each other.

 Allocation of multicast addresses is managed by IANA. Some of the major Well-Known multicast addresses are:

multicast addresssubject
224.0.0.1all hosts on the subnet
224.0.0.2all routers on the subnet
224.0.0.4All DBMRP routers
224.0.0.5All OSPF routers
224.0.0.6All OSPF router DR
224.0.0.9All RIPv2 routers
224.0.0.10All EIGRP routers
224.0.0.13All PIM routers
224.0.1.1NTP

Multicast (MAC address)

MAC addresses have the following rules:

1. Consists of 48-bit code.
2. OUI identifies the vendor.
3. It is written by the vendor at the time of shipment, and in principle the user does not operate it.
4. As a general rule, devices with the same MAC address do not exist.
5. Divide 48bit into 6 blocks by 8bit with “:” and express in hexadecimal. For example “00:00:0C:A6:38:D8”

* You may separate with “-” or “.”.

 Among bits in an octet, the most significant bit is called MSB (Most Significant Bit) and the least significant bit is called LSB (Least Significant Bit). I/G bits are called “Individual/Group”.

 An address whose I/G bit in the least significant bit of the first octet is “1” is a multicast MAC address.

 The broadcast MAC address is “FF:FF:FF:FF:FF:FF”, all bits of 48 bits are “1”, and the I/G bit is “1”, so the multicast MAC address You can think of it as a special form.

 IEEE specifies that the multicast MAC address corresponding to the multicast IP address should start with the next 25 bits.

 0000 0001 0000 0000 1001 1110 0

 In hexadecimal, “01:00:5E” and the 25th bit is a “0”, followed by the remaining 23 bits to map from the low order 23 bits of the Maritycast IP address.

For example, the multicast IP address corresponding to the multicast IP address “224.0.0.5” is mapped as shown below.

The multicast IP address corresponding to the multicast IP address “224.0.0.5” is “01:00:5E:00:00:05”.

 There is a caveat here. This means that the 5 bits between “1110” and the lower 23 bits (beige colored bits in the figure above) are ignored.

 Multicast IP addresses start with “1110”. This is fixed even if it is ignored, so there is no problem, but by ignoring the beige colored part, the correspondence between the multicast IP address and the multicast MAC address will not be a one-to-one correspondence. increase.

 For example, the multicast MAC address corresponding to “224.0.0.5” and “224.128.0.5” is the same multicast IP address “01:00:5E:00:00:05”.

 Since 5 bits will be ignored, there will be 2 5 =32 multicast IP addresses associated with the same multicast MAC address.

Duplicate multicast MAC addresses occur, so adjustments are required on the application side.