Multimedia Networking: #6 IP Multicast Semester Ganjil 2012 PTIIK Universitas Brawijaya

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 45

Multimedia Networking

#6 IP Multicast
Semester Ganjil 2012
PTIIK Universitas Brawijaya

Schedule of Class Meeting


1. Introduction
2. Applications of MN
3. Requirements of
MN
4. Coding and
Compression
5. RTP
6. IP Multicast
7. IP Multicast (contd)

8. Overlay Multicast
9. CDN: Solutions
10.CDN: Case Studies
11.QoS on the Internet:
Constraints
12.QoS on the Internet:
Solutions
13.Discussion
14.Summary

Multmedia Networking

Todays Outline
IP Multicast
Concept and components
Addressing architecture
IP Multicast Protocols

Multmedia Networking

IP Multicast

Multicast
Many receivers
Receiving the same content

Applications
Video conferencing
Online gaming
IP television (IPTV)
Financial data feeds
Multmedia Networking

Iterated Unicast
Unicast message to each recipient
Advantages
Simple to implement
No modifications to network

Disadvantages
High overhead on sender
Redundant packets on links
Sender must maintain list of receivers
Multmedia Networking

IP Multicast
Embed receiver-driven tree in network layer
Sender sends a single packet to the group
Receivers join and leave the tree

Advantages
Low overhead on the sender
Effective use of network resources
Avoids redundant network traffic

Disadvantages
Control-plane protocols for multicast groups
Overhead of duplicating packets in the routers
Multmedia Networking

Multicast Communication

10 flows
of the same packet

1 flows
of a packet

sender

sender

Multicast

Unicast

Multmedia Networking

IP Multicast Communication
Concept
Multicast data sender sends the data only once,
and only the intended recipients (who want to
receive the data) receive the data
IP multicast provides one-to-many or many-to-many
communication effectively

Each data (i.e. multicast stream) is classified by


multicast address (and source address if SSM is
used)
Non-reliable communication (i.e. on top of UDP)
IP multicast is basically applied to real-time
applications
Multmedia Networking

Data Flow
Data sender
Sender sends data once

Data receiver
Receiver that has requested getting the data receives the data

Multicast routers
Router copies and forwards the data only toward the data
receivers
Multicast
Router
Data

Data

Sender

Receiver
Multmedia Networking

10

Communication Flow
Control messages
Sender announces the session information or receivers
discover the session information
Each receiver requests to start and stop receiving data
by join and leave operations
Multicast routers maintains membership state by having
reports
Multicast
Router

Routing
protocol Multicast
Router
Query

Sender

Announcement

Join/Leav
e request
Receiver

Discovery
Multmedia Networking

11

Multicast Addresses
Multicast group defined by IP address
Multicast addresses look like unicast
addresses
224.0.0.0 to 239.255.255.255

Using multicast IP addresses


Sender sends to the IP address
Receivers join the group based on IP
address
Network sends packets along the tree
Multmedia Networking

12

Example Multicast Protocol


Receiver sends a join messages to
the sender
A tree at the nearest point
And grafts to the

B
c

D
F

E
G
Multmedia Networking

13

IP Multicast is Best Effort


Sender sends packet to IP multicast
address
A
Loss may affect multiple receivers
B
c

D
F

E
G
Multmedia Networking

14

Terminologies
Group address (or multicast address)
Used for destination address

Join and leave


Data reception state requested by receiver
hosts

Join and prune


Data reception state requested by routers

(*,G) and (S,G)


Notation of source address and group address
in join-and-leave (or join-and-prune) state
Multmedia Networking

15

Terminologies
Scope
Expected data distribution area
Classified by multicast address or TTL

TTL (Time To Live) or Hop limit


Expected maximum hop count of each packet

IIF and OIF


IIF: Incoming interface from which data is
received
OIF: Outgoing interface to which data is sent
Multmedia Networking

16

Terminologies
Multicast session
Multicast data stream classified by the
multicast address is called multicast
session

Multicast channel
Multicast data stream explicitly classified
by the pair of multicast address and
source address is called multicast
channel
Used for SSM
Multmedia Networking

17

Multicast Protocols
Multicast
Router

Multicast
Router
Query

Sender
host

Join/Leav
e request
Receiver
host

Host-to-Router Protocols
IGMPv1, IGMPv2, IGMPv3, MLDv1, MLDv2

Router-to-Router Protocols
DVMRP, MOSPF, CBT, PIM-DM, PIM-SM, PIM-SSM
Multmedia Networking

18

Multicast Address
Assignment

IP Multicast
Simple to use in applications
Multicast group defined by IP multicast address
IP multicast addresses look similar to IP unicast addrs
224.0.0.0 to 239.255.255.255 (RPC 3171)
265 M multicast groups at most

Best effort delivery only


Sender issues single datagram to IP multicast address
Routers delivery packets to all subnetworks that have a
receiver belonging to the group

Receiver-driven membership
Receivers join groups by informing upstream
routers
Internet Group Management Protocol (v3: RFC
3376)
Multmedia Networking
20

IP Multicast Address
IP multicast address

IPv4: 224.0.0.0 239.255.255.255


IPv6: FFx0::1
MUST be specified as a destination address
MUST NOT be specified as a source address

Dynamic address assignment


Regular applications select their multicast
addresses dynamically
Some multicast addresses are assigned by IANA
for special uses
Multmedia Networking

21

IPv4 Multicast Addresses


IPv4 multicast address
224.0.0.0 (0xe0000000) - 239.255.255.255
(0xefffffff)
+----+----+---------+------------+
| 4 |
28 bits
|
+----+----+---------+------------+
|1110|
group address
|
+----+----+---------+------------+

Administrative scope [RFC2365]


Local address (224/24)
Administrative scope (239/8)
Organization-Local (239.192/14)

GLOP address (233/8) [RFC3180]


EGLOP (233.252.0.0 - 233.255.255.255) [RFC3138]
SSM address (232/8) [RFC]
Multmedia Networking

22

IPv6 Multicast Addresses


IPv6 multicast address: FFxx::
+--------+----+----+---------------------------------------------+
|
8
| 4 | 4 |
112 bits
|
+--------+----+----+---------------------------------------------+
|11111111|flgs|scop|
group ID
|
+--------+----+----+---------------------------------------------+

Flags

000T (T=1: transient, T=0: well-known)

Scope

0x1:
0x2:
0x3:
0x4:
0x5:
0x8:
0xE:

Interface Local
Link-Local
Subnet-Local
Admin-Local
Site-Local
Organization-Local
Global

SSM address (FF3x::/32 (or 96)) [RFC3306]


Multmedia Networking

23

Host-to-Router
Multicast Protocols

IGMP v1
Two types of IGMP msgs (both have IP TTL of 1)
Host membership query: Routers query local
networks to discover which groups have members
Host membership report: Hosts report each group
(e.g., multicast addr) to which belong, by broadcast
on net interface from which query was received

Routers maintain group membership


Host senders an IGMP report to join a group
Multicast routers periodically issue host membership
query to determine liveness of group members
Note: No explicit leave message from clients

Multmedia Networking

25

IGMP: Improvements
IGMP v2 added:
If multiple routers, one with lowest IP elected
querier
Explicit leave messages for faster pruning
Group-specific query messages

IGMP v3 added:
Source filtering: Join specifies multicast only
from or all but from specific source
addresses
Multmedia Networking

26

IGMP: Parameters and Design


Parameters
Maximum report delay: 10 sec
Membership query internal default: 125 sec
Time-out interval: 270 sec = 2 * (query interval + max
delay)

Is a router tracking each attached peer?


No, only each network, which are broadcast media

Should clients respond immediately to queries?


Random delay (from 0..D) to minimize responses to
queries
Only one response from single broadcast domain needed

What if local networks are layer-2 switched?


L2 switches typically broadcast multicast traffic out all
ports
Or, IGMP snooping (sneak peek into layer-3 contents),
Ciscos proprietary protocols, or static forwarding tables
Multmedia Networking

27

Router-to-Router
Multicast Protocols

Multicast Tree
A

B
c

D
F

E
G

Multmedia Networking

29

Multicast routing: problem


statement
goal: find a tree (or trees) connecting
legend
routers having local mcast group members
tree: not all paths between routers used
shared-tree: same tree used by all group members

source-based: different tree from each


sender to rcvrs

group
member
not group
member
router
with a
group
member
router
without
group
member

shared tree

source-based trees
Multmedia Networking

30

Approaches for building mcast


trees
approaches:
source-based tree: one tree per source
shortest path trees
reverse path forwarding

group-shared tree: group uses one tree


minimal spanning (Steiner)
center-based trees
we first look at basic approaches, then specific
protocols adopting these approaches

Multmedia Networking

31

Single vs. Multiple Senders


Shared tree

Source-based
tree
Separate tree for
each sender
Tree is optimized
for that sender
But, requires
multiple trees for
multiple senders

One common tree


Spanning tree that
reaches all
participants
Single tree may be
inefficient
But, avoids having
many different
trees

Multmedia Networking

32

Shortest path tree


mcast forwarding tree: tree of shortest
path routes from source to all receivers
Dijkstras algorithm
LEGEND

s: source
R1
1

R2
3

router with attached


group member

R4
5

R3
R6

router with no attached


group member

R5
6
R7

Multmedia Networking

link used for forwarding,


i indicates order link
added by algorithm
33

Reverse path forwarding


rely on routers knowledge of unicast
shortest path from it to sender
each router has simple forwarding
behavior:

if (mcast datagram received on incoming link


on shortest path back to center)
then flood datagram onto all outgoing links
else ignore datagram

Multmedia Networking

34

Reverse path forwarding:


example
s: source

LEGEND
R1

R4

router with attached


group member

R2
R5

datagram will be forwarded

R3
R6

router with no attached


group member

R7
datagram will not be
forwarded

result is a source-specific reverse SPT


may be a bad choice with asymmetric
links
Multmedia Networking

35

Reverse path forwarding:


pruning
forwarding tree contains subtrees with no mcast
group members

no need to forward datagrams down subtree


prune msgs sent upstream by router with
no downstream group members
LEGEND

s: source
R1

router with attached


group member

R4

R2

P
R5

R3

P
R6
R7

Multmedia Networking

router with no attached


group member
prune message
links with multicast
forwarding
36

Internet Multicasting Routing:


DVMRP
DVMRP: distance vector multicast routing
protocol, RFC1075
flood and prune: reverse path forwarding,
source-based tree
RPF tree based on DVMRPs own routing tables
constructed by communicating DVMRP routers
no assumptions about underlying unicast
initial datagram to mcast group flooded
everywhere via RPF
routers not wanting group: send upstream
prune msgs
Multmedia Networking

37

DVMRP: continued
soft state: DVMRP router periodically (1
min.) forgets branches are pruned:
mcast data again flows down unpruned
branch
downstream router: reprune or else continue
to receive data

routers can quickly regraft to tree


following IGMP join at leaf

odds and ends


commonly implemented in commercial router
Multmedia Networking

38

Tunneling
Q: how to connect islands of multicast
routers in a sea of unicast routers?

physical topology

logical topology

mcast datagram encapsulated inside normal


(non-multicast-addressed) datagram
normal IP datagram sent thru tunnel via
regular IP unicast to receiving mcast router
(recall IPv6 inside IPv4 tunneling)
receiving mcast router
unencapsulates to get
Multmedia Networking
mcast datagram

39

PIM: Protocol Independent


Multicast
not dependent on any specific underlying
unicast routing algorithm (works with all)
two different multicast distribution scenarios :

sparse:

dense:

group members
densely packed, in
close proximity.
bandwidth more
plentiful

# networks with group


members small wrt #
interconnected
networks
group members widely
dispersed
bandwidth not plentiful

Multmedia Networking

40

Consequences of sparse-dense
dichotomy:
dense

sparse:

group membership by
routers assumed until
routers explicitly prune
data-driven
construction on mcast
tree (e.g., RPF)
bandwidth and non
group-router
processing profligate

no membership until
routers explicitly join
receiver- driven
construction of mcast
tree (e.g., centerbased)
bandwidth and nongroup-router processing
conservative

Multmedia Networking

41

PIM- dense mode


flood-and-prune RPF: similar to

DVMRP but
underlying unicast protocol provides
RPF info for incoming datagram
less complicated (less efficient)
downstream flood than DVMRP
reduces reliance on underlying
routing algorithm
has protocol mechanism for router to
detect it is a leaf-node router
Multmedia Networking

42

PIM - sparse
mode
explicit join and prune:
center-based approach,
SPT to the source
router sends join msg to
rendezvous point (RP)
intermediate routers
update state and
forward join
after joining via RP,
router can switch to
source-specific tree
increased
performance: less
concentration,
shorter paths

R1

R4

join
R2

join
R5

join

R3

R6
all data multicast
from rendezvous
point

Multmedia Networking

R7
rendezvous
point

43

PIM - sparse
mode
sender(s):
unicast data to RP,
which distributes
down RP-rooted tree
RP can extend
mcast tree upstream
to source
RP can send stop
msg if no attached
receivers

R1

R4

join
R2

join
R5

join

R3

R6
all data multicast
from rendezvous
point

R7
rendezvous
point

no one is listening!

Multmedia Networking

44

Conclusion of Todays
Lecture
IP Multicast runs on top of UDP under best-effort
IP network
suitable for real-time applications

IP Multicast is efficient-use of network resources


suitable for one-many or many-many communication

IP Multicast requires
specific address assignment
host-to-router protocols
router-to-router protocols

Multmedia Networking

45

You might also like