HC120115003 IP Multicast Basics
HC120115003 IP Multicast Basics
Page 1 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
⚫ Upon completion of this section, you will be able to:
Be familiar with characteristics of point-to-multipoint applications
Page 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Point-to-Multipoint Application Development and Deployment
2. Multicast Overview
Page 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Traditional Point-to-Point Applications
⚫ A service provider delivers services on a per user basis.
Client B
Server
Client A Client C
Page 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The server encapsulates data packets and sends them out. In the data
packets, the source IP address is the server’s IP address, the destination IP
address is the client’s IP address, the source MAC address is the source’s
MAC address, and the destination MAC address is the MAC address of the
gateway router.
When the gateway router receives the data packets, it decapsulates them and
looks up the destination IP address in its routing table to determine the next-
hop address and outbound interface toward the destination IP address. The
gateway router then encapsulates the data packets and forwards them to the
next-hop device through the outbound interface.
After forwarded hop by hop on the network, the packets arrive at the client.
The client decapsulates the packets and sends them to the upper-layer
application protocol for processing.
New Point-to-Multipoint Applications
⚫ A service provider delivers services based on groups of users.
⚫ The service provider transmits identical data to all users in the same group.
Online live
broadcasting
Video
conferencing
Web TV
Page 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ With development of the Internet, the data, voice, and video streams transmitted
on networks have increased sharply.
⚫ New applications, such as online live broadcasting, web TV, and video
conferencing, are also growing.
4 receivers
4 receivers Non-receiver
3 non-receivers
Page 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The unicast mode is suitable for networks with a few users and cannot ensure
data transmission quality when there are many users on a network.
Point-to-Multipoint Application in
Broadcast Mode
⚫ Problems of the broadcast mode: Live broadcasting
started at 9:00 pm
Limited application scope
4 receivers
4 receivers Non-receiver
3 non-receivers
Page 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ Broadcast transmission is implemented between a source IP host and all the other
IP hosts on the local network. All hosts receive data from the source host,
regardless of whether they require the data.
All hosts on the network segment will receive the packets although some of
them may not need the packets.
⚫ For point-to-multipoint applications, the unicast and broadcast modes both have
their limitations.
Point-to-Multipoint Application in
Multicast Mode
⚫ Advantages of the multicast mode: Live broadcasting
started at 9:00 pm
No duplicate traffic
High security
4 receivers
4 receivers Non-receiver 3 non-receivers
Page 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Compared with the broadcast mode, the multicast mode transmits data only
to receivers that require the data. This saves network resources and enhances
data transmission security. In addition, broadcast packets are only
transmitted within a shared network segment, whereas multicast packets can
travel across network segments.
⚫ Multicast application
2. Multicast Overview
Page 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Basic Multicast Architecture
Source
Client Client
Page 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ Router to receiver: The last-hop router receives multicast data packets and sends
them to receivers.
Multicast Source to Router
⚫ How does a multicast source encapsulate multicast data?
How to determine the destination IP address
Source
Multicast data
DIP: ?
SIP: 192.168.1.1
.1
SMAC: 68-F7-28-42-6D-
0D
192.168.1.0/24
DMAC: ?
.254 .253
RTA RTB
Page 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ To enable data from a source to reach the group members across the Internet, IP
multicast needs to be implemented. That is, destination IP addresses of multicast
data packets are multicast IP addresses. The multicast source does not care about
locations of the receivers and only needs to send data to a specific group address.
⚫ The destination of a multicast packet is not a specific receiver but a group with
unspecific members. If the destination MAC address is set to a receiver’s MAC
address, the source must send a copy of each multicast frame to each receiver.
Page 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
The IPv4 address space is divided into five classes, Class A to Class E. Class D
addresses are IPv4 multicast addresses, ranging from 224.0.0.0 to
239.255.255.255. These addresses identify multicast groups and can only be
used as destination addresses of multicast packets but not source addresses.
Source addresses of IPv4 multicast packets are IPv4 unicast addresses, which
can be Class A, Class B or Class C addresses and cannot be Class D or Class E
addresses.
On the network layer, all hosts that have joined the same multicast group can
identify the same IPv4 multicast group address. Once a user joins the
multicast group, the user can receive IP multicast packets with the group
address as the destination address.
ASM stands for any-source multicast. In the ASM model, any sender can be a
multicast source to send data to a multicast group address. Receiver hosts
can receive all data sent to this group after they join the group. In the ASM
model, receivers cannot obtain the location of a multicast source in advance
and can join or leave a multicast group anytime.
Multicast MAC Address
⚫ Difference between multicast and unicast MAC addresses:
XXXX XXX1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX
Page 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ The destination of a multicast data frame is not a specific receiver but a group with
unspecific members. Therefore, the destination is identified by a multicast MAC
address. As defined by IANA, the most significant 24 bits of multicast MAC
addresses are 0x01005e, and the 25th bit is always 0.
⚫ A multicast MAC address identifies receivers in the same multicast group at the
link layer.
⚫ The least significant 23 bits of a MAC address are the least significant 23
bits of a multicast IP address.
1110 XXXX X . .
XXX XXXX XXXX XXXX XXXX XXXX . Multicast
IP address
23 bits
Multicast
01--00--5E--0 XXX XXXX XXXX XXXX XXXX XXXX. . MAC address
23 bits
Page 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
. .
1110 XXXX X XXX XXXX XXXX XXXX XXXX XXXX .
Page 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ The first 4 bits of a multicast IP address are 1110, indicating a multicast address.
Among the last 28 bits, only 23 bits are mapped to multicast MAC addresses. This
means that 5 bits are lost in the mapping. As a result, 32 multicast IP addresses are
mapped to the same MAC address.
⚫ IETF believes that this will not cause much impact because there is a very low
probability that two or more group addresses in the same LAN will be mapped to
the same MAC address.
Quiz
1. What is IPv4 multicast communication?
Page 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.