• Keine Ergebnisse gefunden

Multicast Routing

N/A
N/A
Protected

Academic year: 2022

Aktie "Multicast Routing "

Copied!
38
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

haw-hamburg.de

Multicast Routing

• The Problem of IP Mcast Routing

• Routing Algorithms

• ASM Routing Protocols

• SSM Routing

Some graphics originate (in part) from cisco

(2)

schmidt@informatik.

haw-hamburg.de

Network Internetwork Network

Multicast Routing

Receiver Multicast Application

UDP IP, IGMP,

TCP/IP Protocol Stack Network Driver Network Interface Multicast Application

(for example, videoconference, mulitcast file transfer) Dynamic Host Registration

Addressing:

source port and destination port, sender address (unicast) and multicast receiver address

Multicast Application

UDP IP, IGMP,

TCP/IP Protocol Stack Network Driver Network Interface

(3)

haw-hamburg.de

Multicast Routing

Unicast IP-Routing

• Guides IP-Datagrams stepwise to one receiver

• Routing decision on where to forward packet to

• Solely based on destination address

• Adapts to Router topology, never to IP-Packets

Multicast turns Routing upside down

(4)

schmidt@informatik.

haw-hamburg.de

Multicast Routing (2)

IPmc - Routing is receiver initiated:

• Guides IPmc-Datagrams according to a distribution tree

• Duplicates Datagrams

• Bases on Source address

• Changes according to group dynamics

• Uses ‚Reverse‘ Paths

(5)

haw-hamburg.de

Tree

R

R

R

R

R

R

R

R

R R

R

R Router im Verteilbaum Router nicht im Verteilbaum

Sender

Empfänger

Empfänger Empfänger

(6)

schmidt@informatik.

haw-hamburg.de

Receiver Based Routing

• Group initiation by sender results in an distribution tree

– Shortest Path tree originating at sender

– Shared Tree for the entire group originating at Rendezvous Point

• Calculation of Routing Information stimulated by receiver

– A receiver adds/removes branches to/from distribution tree

• Unicast routing tables usable (in symmetric Routing)

• Routing Algorithm: Reverse Path Forwarding

(7)

haw-hamburg.de

Reverse Path Forwarding (RPF)

A Router forwards a packet only, if it was received on the route to source.

RPF Check:

• active routing table searched for source-address

• Packet transmitted, if received on the interface foreseen as source address destination

• Packet discarded otherwise

(8)

schmidt@informatik.

haw-hamburg.de

RPF Check

Source 151.10.3.21

Mcast Packets

RPF Check Fails RPF Check Fails

Packet arrived on wrong interface!

Packet arrived on wrong interface!

(9)

haw-hamburg.de

RPF Check: Failure

RPF Check Fails!

Unicast

Unicast Route TableRoute Table Network

Network InterfaceInterface 151.10.0.0/16

151.10.0.0/16 S1S1 198.14.32.0/24

198.14.32.0/24 S0S0 204.1.16.0/24

204.1.16.0/24 E0E0

Packet Arrived on Wrong Interface!

E0 S1

S0

S2

S1S1

Multicast Packet from Source 151.10.3.21

X

Discard Packet!

(10)

schmidt@informatik.

haw-hamburg.de

RPF Check: Success

RPF Check Succeeds!

Unicast

Unicast Route TableRoute Table Network

Network InterfaceInterface 151.10.0.0/16

151.10.0.0/16 S1S1 198.14.32.0/24

198.14.32.0/24 S0S0 204.1.16.0/24

204.1.16.0/24 E0E0

E0 S1

S0

S2

Multicast Packet from Source 151.10.3.21

Packet Arrived on Correct Interface!

S1S1

Forward out all outgoing interfaces.

(i. e. down the distribution tree)

(11)

haw-hamburg.de

Multicast Routing Protocols

Dense Mode

– Push Model

– Flooding and Pruning

Sparse Mode

– Pull Model

– Directional traffic only

– Rendezvous Points

(12)

schmidt@informatik.

haw-hamburg.de

Distance Vector Multicast Protocol (DVMRP)

• Oldest IPmc Routing Protocol (v1: RFC 1075)

• Destination based Distance Vector Protocol

• Dense Mode Protocol

• Currently V3 (Internet Draft) allows for Mcast tunnelling

• Works along with RIP as Unicast RP

• Transmits Subnetmasks

• ∞ = 32 Hops, sometimes 16

(13)

haw-hamburg.de

DVMRP Tunnelling

DVMRP- Router

DVMRP- Router RIP-

Router Multicast-

Routing

Unicast- Routing

Multicast- Routing

MC

MC MC

MC

UC UC MC

DVMRP Tunnel

UC:

MC:

Unicast Multicast Daten

(14)

schmidt@informatik.

haw-hamburg.de

DVMRP Distribution Tree

Route for source network of metric “n”

n m

Source Network

E

X

Y

A B

C D

2 34

Poison reverse (metric + infinity) sent to upstream “parent” router.

Router depends on “parent” to receive traffic for this source.

2 2 33

33 1

1

1

35

35

Truncated Broadcast Trees Are Built using Best DVMRP Metrics Back to Source

Network.

Lowest IP Address Used in Case of a Tie.

(Note: IP Address of D < C < B < A)

3

3

mrouted mrouted mrouted

mrouted

mrouted

Resulting Truncated Broadcast Tree for Source Network

mrouted mrouted

(15)

haw-hamburg.de

E

X

Y

A B

C D

Resulting Truncated Broadcast Tree for Source Network “S1”

Source Network “S1”

mrouted mrouted

mrouted mrouted mrouted

mrouted

mrouted

S1 Source Tree

(16)

schmidt@informatik.

haw-hamburg.de

DVMRP Flood & Prune

Source “S”

Receiver 1 (Group “G”)

Initial Flooding of (S, G) Multicast Packets Down Truncated Broadcast Tree

E

X

Y

A B

C D

1

mrouted mrouted

mrouted mrouted

mrouted

mrouted mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(17)

haw-hamburg.de

Routers C is a Leaf Node so it sends an “(S, G) Prune” Message

Prune Prune

Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted

Router B Prunes interface.

mrouted mrouted

mrouted mrouted

mrouted

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(18)

schmidt@informatik.

haw-hamburg.de

DVMRP Flood & Prune

Routers X, and Y are also Leaf Nodes so they send “Prune (S, G)” Messages

Prune Prune

Prune Prune Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted mrouted

mrouted mrouted

Router E prunes interface.

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(19)

haw-hamburg.de

Router E is now a Leaf Node; it sends an (S, G) Prune message.

Prune Prune Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted mrouted

mrouted mrouted

Router D prunes interface.

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(20)

schmidt@informatik.

haw-hamburg.de

DVMRP Flood & Prune

Final Pruned State Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted mrouted

mrouted mrouted

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(21)

haw-hamburg.de

Receiver 2 joins Group “G”

Receiver 2 (Group “G”)

Router Y sends a “Graft (S, G)” Message

Graft Graft Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted mrouted

mrouted mrouted

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(22)

schmidt@informatik.

haw-hamburg.de

DVMRP Crafting

Router E Responds with a “Graft-Ack”

Graft Graft--AckAck

Sends its Own “Graft (S, G) Message

Graft Graft

Receiver 2 (Group “G”) Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted mrouted

mrouted mrouted

mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

(23)

haw-hamburg.de

Receiver 2 (Group “G”) Source “S”

Receiver 1 (Group “G”)

E

X

Y

A B

C D

mrouted mrouted

mrouted

mrouted mrouted

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow

Router D Responds with a “Graft-Ack”

Graft Graft--AckAck

Begins Forwarding (S, G) Packets

mrouted mrouted

(24)

schmidt@informatik.

haw-hamburg.de

Multicast Open Shortest Path First (MOSPF)

• Extends OSPF for Multicast Routing

• Destination based link state protocol (dense)

• Distribution of link states (OSPF)

• Group member link states flooded

• Every router learns a complete topology and calculates shortest paths

• MOSPF corresponds to OSPF-Unicast-Routing

(25)

haw-hamburg.de

Multicast (PIM)

• Protocol independence:

works with all underlying Unicast RP

• Dense und Sparse Mode PIM

• Dense Mode PIM floods & prunes

• Sparse Mode PIM uses Rendezvous Points

– Efficient for widely distributed groups – Favoured for wide area networks

– Implementations rather new

(26)

schmidt@informatik.

haw-hamburg.de

PIM SM Tree Joins

Receiver RP

(*, G) Join Shared Tree

(*, G) State created only along the Shared Tree.

(27)

haw-hamburg.de

PIM SM Sender Registration

Receiver RP

(S, G) Join Source

Shared Tree

(S, G) Register (unicast) Source Tree

(S, G) State created only along the Source Tree.

Traffic Flow

(28)

schmidt@informatik.

haw-hamburg.de

PIM SM Sender Registration

Receiver Source RP

Shared Tree Source Tree

RP sends a Register-Stop back to the first-hop router to stop the Register process.

(S, G) Register-Stop (unicast)

Traffic Flow

(S, G) Register (unicast)

(S, G) traffic begins arriving at the RP via the Source tree.

(29)

haw-hamburg.de

PIM SM Sender Registration

Receiver Source RP

Shared Tree Source Tree Traffic Flow

Source traffic flows natively along SPT to RP.

From RP, traffic flows down the Shared Tree to Receivers.

(30)

schmidt@informatik.

haw-hamburg.de

PIM SM Short Cut

Receiver RP

(S, G) Join Source

Source Tree Shared Tree

Last-hop router joins the Source Tree.

Additional (S, G) State is created along new part of the Source Tree.

Traffic Flow

(31)

haw-hamburg.de

PIM SM Short Cut

Receiver Source RP

Source Tree Shared Tree (S, G)RP-bit Prune

Traffic begins flowing down the new branch of the Source Tree.

Additional (S, G) State is created along the Shared Tree to

prune off (S, G) traffic.

Traffic Flow

(32)

schmidt@informatik.

haw-hamburg.de

PIM SM Short Cut

Receiver Source RP

Source Tree Shared Tree

(S, G) Traffic flow is now pruned off of the Shared Tree and is flowing to the Receiver via the Source Tree.

Traffic Flow

(33)

haw-hamburg.de

PIM SM Short Cut

Receiver Source RP

Source Tree Shared Tree

(S, G) traffic flow is no longer needed by the RP so it Prunes the flow of (S, G) traffic.

Traffic Flow

(S, G) Prune

(34)

schmidt@informatik.

haw-hamburg.de

PIM SM Short Cut

Receiver Source RP

Source Tree Shared Tree

(S, G) Traffic flow is now only flowing to the Receiver via a single branch of the Source Tree.

Traffic Flow

(35)

haw-hamburg.de

• Still in design process (RFC 3569, Draft Holbrook)

• Assumes source address known at receiver

– Allows for source selection

– Source discovery offline or via MSDP

• Receiver subscribes to (S,G) using IGMPv3/MLDv2

• Routing: PIM-SSM, a subset of PIM-SM

– Eliminates shared trees & RPs

• Simpler, well suited for media broadcast or interdomain apps

(36)

schmidt@informatik.

haw-hamburg.de

Domain C

Domain B

Domain D Domain E

Domain A

r

Join Data Flow

s

Join source, Get content on shortest path

r r

SSM Routing

(37)

haw-hamburg.de

QoS for Multicasting

Resource ReSerVation Protocol (RSVP)

• RFC 2205

• Destination oriented Reservations

– Sender pushes periodically PATH messages – Receiver answers with RESV packets

– Router interpret these along the paths

• Soft-State-Concept: States time out

• Sender remains unsynchronised

(38)

schmidt@informatik.

haw-hamburg.de

Further Reading

• R. Wittmann, M. Zitterbart: Multicast

Communication, Morgan Kaufmann, 2001

• www.ipmulticast.com

• www.rfc-editor.org

• ftp://ftpeng.cisco.com/ipmulticast.html

Referenzen

ÄHNLICHE DOKUMENTE

– Shared tree created according to reverse path forwarding. – Nodes hold children tables

Concast – ein Empfänger einer Gruppe von Sendern Multicast – ein Sender an eine Gruppe von Empfängern Multipeer – eine Sendergruppe an eine Empfängergruppe Anycast

– Shared tree created according to reverse path forwarding. – Nodes hold children tables

Truncated Broadcast Tree based on DVMRP route metrics (S, G) Multicast Packet Flow. DVMRP Flood

• Schmidt, Wählisch: “Morphing Distribution Trees - On the Evolution of Multicast States under Mobility and an Adaptive Routing Scheme for Mobile SSM Sources”,

– Shared tree created according to reverse path forwarding. – Nodes hold children tables

Layer 2 (Multicast) – Learning of group members, specific forwarding There are switches which block Multicast frames.. 8

Degree Degree of the k-ary distribution tree Link Wastage LW # Links used unnecessarily Link Utilization LU # Links used to transmit useful traffic Relative Performance RP