What is Multicasting? Multicasting Fundamentals. Unicast Transmission. Agenda. L70 - Multicasting Fundamentals. L70 - Multicasting Fundamentals

Similar documents
IP Multicast Technology Overview

Multicast Communications

Why multicast? The concept of multicast Multicast groups Multicast addressing Multicast routing protocols MBONE Multicast applications Conclusions

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

IP Multicast. What is multicast?

IP Multicast Technology Overview

DATA COMMUNICATOIN NETWORKING

Multicast Communications. Slide Set were original prepared by Dr. Tatsuya Susa

CSE 123A Computer Networks

Broadcast Routing. Multicast. Flooding. In-network duplication. deliver packets from source to all other nodes source duplication is inefficient:

Advanced Network Training Multicast

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

Multicast service model Host interface Host-router interactions (IGMP) Multicast Routing Distance Vector Link State. Shared tree.

Topic: Multicast routing

Configuring IP Multicast Routing

IP Multicast. Overview. Casts. Tarik Čičić University of Oslo December 2001

Multicast EECS 122: Lecture 16

PIM Configuration. Page 1 of 9

IP Multicast. Falko Dressler Regionales Rechenzentrum Grundzüge der Datenkommunikation IP Multicast

DD2490 p IP Multicast routing. Multicast routing. Olof Hagsand KTH CSC

Advanced Networking. Multicast

Module 7 Implementing Multicast

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

IP Multicast Routing Protocols

IPv6 PIM. Based on the forwarding mechanism, IPv6 PIM falls into two modes:

Exercises to Communication Systems

ICS 351: Today's plan. routing protocol comparison encapsulation network dynamics multicasting in general IP multicasting IGMP PIM

Multicast Technology White Paper

FSOS Multicast Configuration Guide

Table of Contents 1 PIM Configuration 1-1

ETSF10 Internet Protocols Routing on the Internet

Configuring Bidirectional PIM

Configuring IP Multicast Routing

Multicast routing protocols

Multicast Communications. Tarik Čičić, 4. March. 2016

Configuring IP Multicast Routing

MULTICAST EXTENSIONS TO OSPF (MOSPF)

IP Multicast: PIM Configuration Guide, Cisco IOS Release 12.4T

Configuring IP Multicast Routing

CS 268: IP Multicast Routing

IP MULTICAST EXPLAINED

ITEC310 Computer Networks II

Distributed Core Multicast (DCM): a multicast routing protocol for many groups with few receivers

Developing IP Muiticast Networks

Distributed Core Multicast (DCM): a multicast routing protocol for many groups with few receivers

IP Multicast: Does It Really Work? Wayne M. Pecena, CPBE, CBNE

CSCE 463/612 Networks and Distributed Processing Spring 2018

Lecture 6. TCP/IP Network Layer (4)

ETSF10 Internet Protocols Routing on the Internet

Fundamentals of IP Multicast

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15S

ASM. Engineering Workshops

Multicast H3C Low-End Ethernet Switches Configuration Examples. Table of Contents

IP Multicast: PIM Configuration Guide, Cisco IOS XE Release 3S

Internet2 Multicast Workshop

IPv6 PIM-DM configuration example 36 IPv6 PIM-SM non-scoped zone configuration example 39 IPv6 PIM-SM admin-scoped zone configuration example 42 IPv6

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15M&T

ETSF10 Internet Protocols Routing on the Internet

HP 5920 & 5900 Switch Series

IP Multicasting: Explaining Multicast Cisco Systems, Inc. All rights reserved. Cisco Academy

Multicast VPN C H A P T E R. Introduction to IP Multicast

Multicast routing Draft

HP 6125G & 6125G/XG Blade Switches

IP Multicast Optimization: Optimizing PIM Sparse Mode in a Large IP Multicast Deployment

HP 5500 HI Switch Series

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15SY

BASIC MULTICAST TROUBLESHOOTING. Piotr Wojciechowski (CCIE #25543)

Lecture 19: Multicast. CSE 123: Computer Networks Stefan Savage

Contents. Overview Multicast = Send to a group of hosts. Overview. Overview. Implementation Issues. Motivation: ISPs charge by bandwidth

Distributed Conditional Multicast Access for IP TV in High-Speed Wireless Networks (Destination Specific Multicast)

Broadcast and Multicast Routing

HP 5500 EI & 5500 SI Switch Series

Table of Contents Chapter 1 IPv6 PIM Configuration

CS4700/CS5700 Fundamentals of Computer Networks

! Purpose of Multicasting Routing is to reduce cost for applications that send same data to Multiple recipients.

Enhancement of the CBT Multicast Routing Protocol

FiberstoreOS IPv6 Multicast Configuration Guide

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Table of Contents Chapter 1 Multicast Routing and Forwarding Configuration

4.2 Multicast IP supports multicast to support one-to-many (radio, news, IP multicast was originally a many-to-many (any source MC or

Table of Contents 1 MSDP Configuration 1-1

Lab 7-3 Routing IP Multicast with PIM Sparse Mode

Exercises to Communication Systems

Implementing IPv6 Multicast

This chapter describes how to configure the Cisco ASA to use the multicast routing protocol.

Network Layer II. Getting IP addresses. DHCP client-server scenario. DHCP client-server scenario. C compiler. You writing assignment 2

IP-Multicast Service-Model Summary. IP Multicasting. Agenda. IP Multicasting. L71 - IP Multicasting. L71 - IP Multicasting

Institute of Computer Technology - Vienna University of Technology. L71 - IP Multicasting

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Framework for IP Multicast in Satellite ATM Networks

Computer Networks. Routing

Muhammad Jaseemuddin Dept. of Electrical & Computer Engineering Ryerson University Toronto, Canada

HPE FlexNetwork HSR6800 Routers

IP Multicast: PIM Configuration Guide

IP Multicast: Multicast Configuration Guide, Cisco IOS XE Everest (Cisco ASR 900 Series)

HPE FlexNetwork 7500 Switch Series

PIM-SM Multicast Routing

Viewing IP and MPLS Multicast Configurations

Multicast Protocol Configuration Examples H3C S7500 Series Ethernet Switches Release Table of Contents

Examination IP routning inom enkla datornät, DD2490 IP routing in simple networks, DD2490 KTH/CSC. Date: 20 May :00 19:00 SOLUTIONS

Transcription:

What is Multicasting? Multicasting Fundamentals Unicast transmission transmitting a packet to one receiver point-to-point transmission used by most applications today Multicast transmission transmitting a packet to a group of receivers point-to-multipoint transmission used for example by multimedia applications in experimental environment nowadays (MBONE) will be the future base-technology for multimedia applications (video conferences, legacy television etc.) in the Internet MC_Fundamentals, v4.4 1 MC_Fundamentals, v4.4 3 Agenda Unicast Transmission Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees of Unicast Path of one unicast packet crossing the corresponding physical networks Destination of Unicast MC_Fundamentals, v4.4 2 MC_Fundamentals, v4.4 4 Page 70-1 Page 70-2

Multicast Transmission Multiple Unicast Packets of Multicast Destinations of Multicast Path of one multicast packet crossing the corresponding physical networks = Multicast Distribution Tree MC_Fundamentals, v4.4 5 MC_Fundamentals, v4.4 7 Why Multicasting? Sending to a group of receivers can be done in principle by sending multiple copies of the same packet using normal unicast transmission multiple unicast packets the same packet will appear more than once on one physical network Compared to multiple unicast packets multicasting minimizes link bandwidth consumption network load sender and router processing delivery delay Comparison vs. Multicast vs. Unicast Example: Streaming All clients listening to the same stream (e.g. 8 Kbps audio) Unicast Multicast Traffic Mbps 1.6 1.2 0.8 0.4 0 1 40 80 120 160 200 Number of Clients MC_Fundamentals, v4.4 6 MC_Fundamentals, v4.4 8 Page 70-3 Page 70-4

Why Multicasting? Multicasting fits well with multimedia conferences Multicasting allows easier handling of variable membership of listeners than doing it with a set of point-to-point addresses Multicasting can be used when individual addresses of receivers are unknown or changeable for locating services or functions for advertising services or functions resource discovery MC_Fundamentals, v4.4 9 Components of Multicasting Group address identifies multicast traffic for a group of receivers host sender of multicast packets using group address as destination address Multicast routers responsible for forwarding of multicast packets to all networks where members of a certain group are located duplicate packets if necessary Destination hosts receiver of multicast packets listen to group address MC_Fundamentals, v4.4 11 Why Multicasting? For such requirements multicasting is simpler and more robust than alternatives centralized directory servers configuration files with high administrative overhead exhaustive search Multicasting has been used already for resource discovery in local networks e.g. finding TFTP server, DNS server, BOOTP/DHCP server, all OSPF routers, all RIPv2 routers etc. using limited IP broadcast (255.255.255.255) or certain class D IP addresses (224.x.x.x) scope of these multicasts were limited to local network TTL is set to 1 MBONE MBONE experimental Multicast BackbONE of the Internet interconnected set of multicast routers virtual network overlaid on the Internet overlay network using its own multicast routing protocols multicast island consists of multicast hosts and multicast routers provides multicast service for testing multimedia applications multicast islands are connected via tunnels virtual point-to-point links using normal IP unicast routing for transport of IP encapsulated multicast traffic tunnels carry multicast routing traffic too, in order to enable multicast routing in the MBONE MC_Fundamentals, v4.4 10 MC_Fundamentals, v4.4 12 Page 70-5 Page 70-6

Multicast Routing Multicast routers must be able to deliver multicast datagram's over the network several principle options for multicast routing were developed and tested in the MBONE during the last years in order to gain experience with IP multicasting Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Flooding simplest multicast routing algorithm node receives a packet sent to multicast destination if particular packet is the first reception forward a copy of the packet to all interfaces except the incoming interface if particular packet is a duplicate discard it ensures that particular packet reaches all network destinations well known technique e.g. used for propagation of LSA to all OSPF routers in an area e.g. propagation of Usenet news MC_Fundamentals, v4.4 13 MC_Fundamentals, v4.4 15 Agenda Flooding Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees of Multicast is the first reception of a given multicast datagram received by a router is a later reception of a given multicast datagram received by a router and hence must be discarded by algorithm MC_Fundamentals, v4.4 14 MC_Fundamentals, v4.4 16 Page 70-7 Page 70-8

Flooding flooding principle does not depend on any kind of routing table principle problem with flooding how to avoid looping and "broadcast-storm"? either delete redundant paths (-> done with spanning tree) or delete duplicate packets but how to test for first reception of a given packet? OSPF solution LSA identified by sequence number (and age) received LSA compared with entries in local link state database sequence numbers of LSA s used for decision what is first (new) LSA message and what is duplicate (old, already stored in database) LSA message MC_Fundamentals, v4.4 17 Agenda Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees MC_Fundamentals, v4.4 19 Flooding possible IP multicast solution list of recently seen (last-seen) multicast packets containing IP identifier, group address of multicast packet entry of list will be discarded after maximum lifetime of a packet maximum lifetime of IP packets specified by TTL last-seen lists guarantee that a router will not forward a packet twice but do not guarantee that a router will receive a certain packet only once but very memory greedy last-seen list can be fairly long on a high speed network and very transmission greedy use of all available paths instead of just one NOT A PRACTICABLE SOLUTION MC_Fundamentals, v4.4 18 Spanning Tree more efficient solution than flooding loop avoidance by marking some links as part of a tree and other links as unused set of selected links forms a loop-less tree that spans to all nodes in the network done by spanning tree protocol communication between multicast routers multicast datagram's follow the tree will not loop all networks are reached visit every network only once does not depend on any kind of routing table MC_Fundamentals, v4.4 20 Page 70-9 Page 70-10

Spanning Tree physical links which are not part of spanning tree Spanning Tree well known technique used for transparent IEEE 802.2 MAC bridges spanning tree built during network initialization first selecting a root bridge as center of the spanning tree then marking links that are on the shortest path between any other bridge and that center two drawbacks for multicasting concentrates traffic into same subset of network links group membership of receivers is not taken into account can lead to suboptimal propagation of packets MC_Fundamentals, v4.4 21 MC_Fundamentals, v4.4 23 Spanning Tree Spanning Tree Drawbacks of Multicast of intensively used links Destination of not used link of Multicast B Destination of Multicast B MC_Fundamentals, v4.4 22 MC_Fundamentals, v4.4 24 Page 70-11 Page 70-12

Agenda Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees Reverse Path Forwarding (RPF) RPF algorithm of a given multicast router uses a routing table to consider network topology computes implicit spanning tree per network source routing table can be separate multicast routing table calculating shortest path from S to the router necessary when links are not symmetric forward path metric different from reverse path metric separate routing process for multicasts needed normal unicast routing table calculating shortest path from the router to S sufficient when links are symmetric unicast routing process can be used for multicasts too MC_Fundamentals, v4.4 25 MC_Fundamentals, v4.4 27 Reverse Path Forwarding (RPF) RPF-Check Based on Unicast Routing Table drawbacks of spanning tree teach better to use an routing algorithm that computes tree according to location of the source -> source tree leads to Reverse Path Forwarding (RPF) principle of RPF if multicast packet is received note source network (S) and incoming interface (I) if interface I belongs to the shortest path towards S forward multicast packet to all interfaces except I otherwise discard the packet S1 RPF Check Fails! S0 E0 Packet arrived on wrong interface! Discard Packet. Multicast Packet from 151.10.3.21 S2 Routing Table Network Interface 151.10.0.0 /16 198.14.32.0 /24 204.1.16.0 /24 Multicast Packet from 151.10.3.21 S1 S0 E0 RPF Check Succeeds! S1 S0 E0 S2 Packet arrived on correct interface! Forward Packet. MC_Fundamentals, v4.4 26 MC_Fundamentals, v4.4 28 Page 70-13 Page 70-14

RPF Tree for Group A RPF Tree for Group A (one-step-further) metric 1 metric 1 metric 6 metric 4 metric 5 metric 2 metric 6 metric 4 metric 5 metric 2 Multicast packet discarded by RPF- Check done by receiving router MC_Fundamentals, v4.4 29 MC_Fundamentals, v4.4 31 Reverse Path Forwarding (RPF) RPF Tree for Group B RPF algorithm could be improved if a router is able to look one-step-further packets are forwarded to neighboring router only when the local router is on the shortest path between source S and the neighboring router is sometimes easily available when using link state routing technique like OSPF one-step-further information in OSPF requires only one bit of additional storage per source and interface one-step-further information improves link efficiency by avoiding transmission of multicasts to neighbors which are farther away compare it with flooding example metric 1 metric 6 metric 4 metric 5 metric 2 Multicast B MC_Fundamentals, v4.4 30 MC_Fundamentals, v4.4 32 Page 70-15 Page 70-16

RPF Tree for Group C metric 1 metric 6 metric 4 metric 5 metric 2 Multicast C MC_Fundamentals, v4.4 33 Reverse Path Forwarding (RPF) RPF advantages fastest possible delivery as multicasting follows shortest path from source to destination better network utilization compared to spanning tree because packets are spread over multiple links remaining problem group membership is not taken into account are there any group members downside the tree at all? packets are flooded through whole network general experience learned from tests multicast routers should know if there are group members attached to the leaves of the network if multicasts must be forwarded on branches of the tree MC_Fundamentals, v4.4 35 RPF Tree for Group A, B, C RPF and Truncated Broadcast Multicast C Multicast B one method for membership discovery in case of IP multicasting IGMP (Internet Group Membership Protocol) protocol between multicast router and multicast receiver on a local network multicast router query periodically if there are members of a multicast group present on the local network or not if there are no members in the leafs of the network multicasts for this group should not be transmitted to such a network truncated broadcast MC_Fundamentals, v4.4 34 MC_Fundamentals, v4.4 36 Page 70-17 Page 70-18

RPF with Flood and Prune variant which also takes in account the group membership when building branches of the tree and use prune (cut off)- message in upstream direction in case no members are active in the leaf principle first multicast packet of source S is propagated to all nodes (multicast router) of the network flooding nodes that have no point behind them in the RPF tree are called leaf nodes border of the network leaf nodes use IGMP to discover group members if there is no group member attached to a leaf node a prune message is sent back to the upstream node RPF with Grafting joining of new members can be done either by grafting if a router recognizes a certain group which was already pruned a graft message is sent to the upstream router graft message will delete corresponding state for this group immediately next multicast packet for this group will be transmitted to the downstream router or by removing soft states after timeout and flooding multicast packet again over the whole network tree will be pruned according the new membership distribution MC_Fundamentals, v4.4 37 MC_Fundamentals, v4.4 39 RPF with Flood and Prune RPF: Flooding First Packet principle (cont.) on reception of a prune message upstream router will not send multicast packets for this group through this interface any longer intermediate routers memorize reception of prune messages of a certain interface a so called soft state is created for a specific time period ages out after this period if prune messages are received through all downstream interfaces of the tree intermediate router will sent a prune message to its upstream router too prune method used to decide if multicast packets of a certain group must be forwarded on branches of the tree no -> truncated broadcast MC_Fundamentals, v4.4 38 MC_Fundamentals, v4.4 40 Page 70-19 Page 70-20

RPF: Pruning RPF: State Lifetime Exceeded state established prune message no no -> truncated broadcast MC_Fundamentals, v4.4 41 MC_Fundamentals, v4.4 43 RPF: State Active RPF: Pruning Repeated state active state reestablished prune message no no MC_Fundamentals, v4.4 42 MC_Fundamentals, v4.4 44 Page 70-21 Page 70-22

RPF with Grafting RPF with Flood and Prune graft message state deleted drawbacks first packet is flooded to the whole network routers must keep state information per group and source state must be kept transient varies with joining and leaving of members and with network topology therefore every state information has only limited lifetime if lifetime is exceeded the state is deleted next multicast packet will be flooded again soft states are created even if no receivers exist multicast packets for a given source are flooded periodically to the whole network for refreshing or actualizing states MC_Fundamentals, v4.4 45 MC_Fundamentals, v4.4 47 RPF: Delivering Next Packet RPF and Rerouting in case of topology change unicast routing or special multicast routing will converge packets will follow the new shortest paths states on old paths will age out multicast packets are flooded pruning will built new states along new paths MC_Fundamentals, v4.4 46 MC_Fundamentals, v4.4 48 Page 70-23 Page 70-24

Agenda Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees Core Based Trees (CBT) original CBT principle (cont.) in this way joining members create a core tree for a certain group could be compared with establishing a source tree between the core as source and all members of a group if a source transmits multicast packets packets are encapsulated by first-hop multicast router in special register packets and are delivered hop-by-hop to the core using normal unicast transmission core will decapsulate the multicast packet from the register packet and multicasting will proceed along the already established core tree in the same way as it is done along a usual source tree MC_Fundamentals, v4.4 49 MC_Fundamentals, v4.4 51 Core Based Trees (CBT) RPF with flood and prune periodic transmission to all network sites in order to trigger pruning and to keep states active CBT proposed a potential solution to this problem original CBT principle a fixed point in the network (core-, rendezvous-point) is the center of a multicast group a member sends a join message towards the core using the shortest path to the core intermediate routers process join message if group is already installed incoming interface is marked if group does not exist, a hard state for this group is installed and a join message is forwarded one step further to the core Core Based Trees (CBT) CBT advantages core tree is the same for all sources therefore state information only per group is necessary (RPF needs state per group/source pair) first packet will not be flooded to the whole network and also periodic flooding for refreshing is not needed hard-states are acknowledged and repeated after a timeout states are created on demand (if receivers exist) may depend on unicast routing to calculate shortest path CBT disadvantages path may be suboptimal for some multicast traffic traffic of all sources uses same set of links which means multicast traffic concentration MC_Fundamentals, v4.4 50 MC_Fundamentals, v4.4 52 Page 70-25 Page 70-26

CBT: Joining Core CBT and Rerouting in case of a topology change unicast routing or special multicast routing will converge join packets will be sent on the new shortest path towards the core a new core tree will result packets will follow the new tree join message join message MC_Fundamentals, v4.4 53 MC_Fundamentals, v4.4 55 CBT: Multicast Traffic Agenda multicast A encapsulated in register packet to the core Core multicast A (decapsulated from register packet) to all members of the group Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees MC_Fundamentals, v4.4 54 MC_Fundamentals, v4.4 56 Page 70-27 Page 70-28

Types of Multicast Protocols Dense-mode Flood and Prune behavior Multicast traffic is flooded through whole network Routers with no listeners cut branches to stop traffic Pruned branches can later be grafted to reduce join latency Similar to radio broadcast Best for large number of members in a large number of places Sparse-mode Explicit Join behavior Assumes no one wants traffic unless asked Routers with active listeners build tree to receive traffic Best for few members only in a small number of places Multicast Distribution Trees - Trees Trees each source is the root of a unidirectional spanning tree uses the shortest path through the network often called: SPT-Shortest Path Tree separate SPT for every individual source Notation: (S, G) "S comma G" S... IP address of the source G... multicast group address typically used for RPF with flood and prune note: router has to keep one state per source/group pair are used in IP multicast routing protocols DVMRP, PIM MC_Fundamentals, v4.4 57 MC_Fundamentals, v4.4 59 Agenda Tree for A (S,G) Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees A 192.1.1.1 Sender 192.2.2.2 Receiver 224.1.1.1 Multicast Traffic (192.1.1.1, 224.1.1.1) - Tree 192.4.4.4 Receiver MC_Fundamentals, v4.4 58 Receiver 192.3.3.3 MC_Fundamentals, v4.4 60 Page 70-29 Page 70-30

Tree for B (S,G) Trees for A, B, C (192.3.3.3, 224.1.1.1) - Tree A (192.1.1.1,224.1.1.1) - Tree (192.3.3.3,224.1.1.1) - Tree (192.4.4.4,224.1.1.1) - Tree 192.1.1.1 Receiver 192.1.1.1 C 192.4.4.4 Receiver 192.4.4.4 192.2.2.2 Receiver 224.1.1.1 Multicast Traffic 192.2.2.2 B Sender 192.3.3.3 MC_Fundamentals, v4.4 61 B 192.3.3.3 MC_Fundamentals, v4.4 63 Tree for C (S,G) Agenda 192.1.1.1 Receiver 192.2.2.2 Receiver (192.4.4.4,224.1.1.1) - Tree 224.1.1.1 Multicast Traffic C 192.4.4.4 Sender Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees Receiver 192.3.3.3 MC_Fundamentals, v4.4 62 MC_Fundamentals, v4.4 64 Page 70-31 Page 70-32

Multicast Distribution Trees - Shared Trees Shared Trees the source is not the root root is somewhere in the network this center is called "RP-Rendezvous Point" or "Core" one tree per multicast group for all sources all sources share the same tree Notation: (*, G) "Star comma G" *... means all sources G... multicast group address 2 types: bidirectional (used in CBT-Core Based Tree) unidirectional (used in PIM-SM) MC_Fundamentals, v4.4 65 Shared Trees - Evaluation Advantages shared tree is the same for all sources (*, G) therefore state information only per group is necessary (RPF needs state per group/source pair) first packet will not be flooded to the whole network and also periodic flooding for refreshing is not needed hard-states are acknowledged and repeated after a timeout states are created on demand (if receivers exist) may depend on unicast routing to calculate shortest path Disadvantages path may be suboptimal for some multicast traffic placement of root is key issue to performance traffic of all sources uses same set of links which means multicast traffic concentration near the root MC_Fundamentals, v4.4 67 Shared Trees - Principle Principle a member sends a join message towards the root using the shortest path to the core intermediate routers process join message if group is already installed incoming interface is marked if group does not exist, a state for this group is instantiated and a join message is forwarded one step further to the root in this way joining members create a shared tree for a certain group Types of Shared Trees Bidirectional Shared Trees multicast traffic flows up and down the tree Unidirectional Shared Tree multicast traffic is first brought to root and then forwarded down the shared tree MC_Fundamentals, v4.4 66 MC_Fundamentals, v4.4 68 Page 70-33 Page 70-34

Agenda Bidirectional Shared Tree - CBT Introduction Multicasting Multicast Routing Principles Flooding Spanning Tree Reverse Path Forwarding (RPF) Core Based Tree (CBT) Dense Mode / Sparse Mode Multicast Distribution Trees Trees Shared Trees Bidirectional / Unidirectional Shared Trees Join mechanism: Host A joins CBT Host A join (*,G) message Host B Host C join Host D active CBT shared root (Core) Host E MC_Fundamentals, v4.4 69 MC_Fundamentals, v4.4 71 Bidirectional Shared Tree Bidirectional Shared Tree - CBT Bidirectional Shared Tree multicast traffic is forwarded up and down the tree router keeps list of participating interfaces of a group incoming packet is forwarded to all other interfaces active for that group source-only host, which has not joined group, unicasts traffic via IP-in-IP tunnel to core suboptimal routes and increased latency, if core is placed badly Core Based Tree, CBTv1, CBTv2, CBTv3 no actual network implementation Host A joined, Host B joins: Host A join (*,G) message Host B active CBT shared root (Core) Host E Host C Host D MC_Fundamentals, v4.4 70 MC_Fundamentals, v4.4 72 Page 70-35 Page 70-36

Bidirectional Shared Tree - CBT final tree: Host B send multicast traffic Unidirectional Shared Tree Join process of receivers towards the shared root: Host A Host B Host A Host B multicast packet Core Host E join (*,G) message join (*,G) join (*,G) Shared Root (RP) Host E join (*,G) join (*,G) Building unidirectional (*,G) Tree Host C Host D Host C Host D MC_Fundamentals, v4.4 73 MC_Fundamentals, v4.4 75 Unidirectional Shared Trees Unidirectional Shared Tree Unidirectional Shared Tree multicast traffic is first forwarded to root, then flows down the shared tree to all members of the group distribution tree could be compared with establishing a source based tree between the root as source and all members of a group. Remember one tree per group for every source! How to get traffic to the root? can be done by unicast IP-in-IP tunneling packets are encapsulated by first-hop multicast router in special register packets and are delivered hop-by-hop to the core using normal unicast transmission. or with a separate (S,G) - Tree root joins a SPT towards the source to pull source's multicast traffic to the root. Used by Protocol Independent Multicast (PIM) Root forwards multicast traffic down the tree MC_Fundamentals, v4.4 74 final tree: every router sets according state Host A Host B Host C Shared Root (RP) Unidirectional (*,G) Tree Host D Host E MC_Fundamentals, v4.4 76 Page 70-37 Page 70-38

Unidirectional Shared Tree Host B sends multicast, First hop router encapsulates multicast packet, forwards it to root. Root decapsulates and distributes traffic via (*,G) tree. unicast Host A Host B Unidirectional Shared Tree Root joins SPT (S,G) with Host B as source Host A Host B multicast packet Shared Root (RP) Host E join join (S,G) message Shared Root (RP) Host E Unidirectional (*,G) Tree Unidirectional (*,G) Tree Host C Host D MC_Fundamentals, v4.4 77 Host C Host D MC_Fundamentals, v4.4 79 Unidirectional Shared Tree Host B sends multicast, First hop router encapsulates multicast packet, forwards it to root. Root decapsulates and distributes traffic via (*,G) tree. unicast Host A Host B Unidirectional Shared Tree Root joined SPT with Host B as source Host A Host B multicast packet Shared Root (RP) Host E (S,G) Tree Shared Root (RP) Host E Unidirectional (*,G) Tree Unidirectional (*,G) Tree Host C Host D MC_Fundamentals, v4.4 78 Host C Host D MC_Fundamentals, v4.4 80 Page 70-39 Page 70-40

Unidirectional Shared Tree Additional Aspects of (S,G) and (*,G) Host B sends multicast packet. up to root via (S,G) down the tree via (*,G) Host A Host B multicast packet (S,G) Tree Shared Root (RP) Unidirectional (*,G) Tree Host E in case of PIM-SM first-hop multicast router of a multicast receiver can force building of source based tree (S, G) new join message on shortest path to source and prune to RP see following example also any intermediate router can force building of a source-based distribution tree e.g. if too much traffic from a given source coming along a suboptimal path is recognized remember: multicast router are able to calculate shortest path to the RP and hence to any other network address Host C Host D for such a behavior soft-states are used instead of hard-states refreshed by periodic join messages disappear if the information is not refreshed MC_Fundamentals, v4.4 81 MC_Fundamentals, v4.4 83 Shared Trees and Rerouting in case of a topology change unicast routing or special multicast routing will converge join packets will be sent on the new shortest path towards the core a new (*, G) tree will result packets will follow the new tree PIM-SM: Joining 1 RP join message Note: join message is sent on shortest path to RP MC_Fundamentals, v4.4 82 MC_Fundamentals, v4.4 84 Page 70-41 Page 70-42

PIM-SM: Joining 2 Example 1: Based Tree join message join message RP RP join message Note: join message is sent on shortest path to RP Note: join message is sent on shortest path to source S MC_Fundamentals, v4.4 85 MC_Fundamentals, v4.4 87 PIM-SM: Multicast Traffic Example 1: Multicast Traffic multicast encapsulated in register packet (S, G) shared tree (S, G) shared tree RP RP (*, G) shared tree (*, G) shared tree (*, G) shared tree (*, G) shared tree MC_Fundamentals, v4.4 86 MC_Fundamentals, v4.4 88 Page 70-43 Page 70-44

Example 2: Based Tree RP join message prune message Note: join message is sent on shortest path to source S MC_Fundamentals, v4.4 89 Example 2: Multicast Traffic (S, G) shared tree (S, G) shared tree RP (S, G) source tree (*, G) shared tree MC_Fundamentals, v4.4 90 Page 70-45