Broadcast and Multicast. Overview Last time: routing protocols for the Internet  Hierarchical routing  RIP, OSPF, BGP This time: broadcast and multicast.

Slides:



Advertisements
Similar presentations
Computer Networking A Top-Down Approach Chapter 4.7.
Advertisements

Introduction 1 Lecture 22 Network Layer (Broadcast and Multicast) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
Multicasting 1. Multicast Applications News/sports/stock/weather updates Distance learning Configuration, routing updates, service location Pointcast-type.
1  Changes in IPv6 – Expanded addressing capabilities (32 to 128 bits), anycast address – A streamlined 40-byte header – Flow labeling and priority –
Multicast on the Internet CSE April 2015.
Multicasting CSE April Internet Multicast Service Model Multicast group concept: use of indirection a host “sends” IP datagrams to multicast.
Multicast1 Instructor: Anirban Mahanti Office: ICT Slides are adapted from the companion web site of the textbook “
Multicast Routing: Problem Statement r Goal: find a tree (or trees) connecting routers having local mcast group members m tree: not all paths between routers.
1 Internet Networking Spring 2004 Tutorial 7 Multicast Routing Protocols.
1 Internet Networking Spring 2006 Tutorial 7 DVMRP.
Network Layer4-1 Spanning trees r Suppose you have a connected undirected graph m Connected: every node is reachable from every other node m Undirected:
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Chapter 4 IP Multicast Professor Rick Han University of Colorado at Boulder
Slide Set 15: IP Multicast. In this set What is multicasting ? Issues related to IP Multicast Section 4.4.
Computer Networking Lecture 24 – Multicast.
Internet Networking Spring 2002
1 IP Multicasting. 2 IP Multicasting: Motivation Problem: Want to deliver a packet from a source to multiple receivers Applications: –Streaming of Continuous.
EE689 Lecture 12 Review of last lecture Multicast basics.
1 CSE 401N:Computer Network LECTURE-14 MULTICAST ROUTING.
MULTICASTING Network Security.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
CSE679: Multicast and Multimedia r Basics r Addressing r Routing r Hierarchical multicast r QoS multicast.
1 Computer Networks IP Multicast. 2 Recall Unicast Broadcast Multicast sends to a specific group.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Computer Networks 2 Lecture 1 Multicast.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Multicast routing.
Multicast Routing Protocols NETE0514 Presented by Dr.Apichan Kanjanavapastit.
Network Layer4-1 R1 R2 R3R4 source duplication R1 R2 R3R4 in-network duplication duplicate creation/transmission duplicate Broadcast Routing r Deliver.
Multicast Sources: Kurose and Ross cast/addresstranslation_01.html.
1 IP Multicasting By Behzad Akbari These slides are based on the slides of J. Kurose (UMASS) and Shivkumar (RPI)
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
CSC 600 Internetworking with TCP/IP Unit 8: IP Multicasting (Ch. 17) Dr. Cheer-Sun Yang Spring 2001.
1 Chapter 16b Multicasting. Chapter 16b Multicasting 2 Multicasting Applications Multimedia Multimedia –television, presentations, etc. Teleconferencing.
CS 5565 Network Architecture and Protocols Godmar Back Lecture 22.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks  4.3 What ’ s inside a router r 4.4 IP: Internet.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
Chapter 15 Multicasting and Multicast Routing
Multicast Routing Protocols. The Need for Multicast Routing n Routing based on member information –Whenever a multicast router receives a multicast packet.
IPv6. r Initial motivation: 32-bit address space soon to be completely allocated. r Additional motivation: m header format helps speed processing/forwarding.
© J. Liebeherr, All rights reserved 1 Multicast Routing.
IP Multicast COSC Addressing Class D address Ethernet broadcast address (all 1’s) IP multicast using –Link-layer (Ethernet) broadcast –Link-layer.
Broadcast and multicast routing. R1 R2 R3R4 source duplication R1 R2 R3R4 in-network duplication duplicate creation/transmission duplicate Broadcast Routing.
Introduction to Multicast Routing Protocols
© J. Liebeherr, All rights reserved 1 IP Multicasting.
1 Spring Semester 2009, Dept. of Computer Science, Technion Internet Networking recitation #7 DVMRP.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
1 IP Multicasting Relates to Lab 10. It covers IP multicasting, including multicast addressing, IGMP, and multicast routing.
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 14 Multicasting And Multicast Routing.
4: Network Layer4-1 Chapter 4: Network Layer Last time: r Internet routing protocols m RIP m OSPF m IGRP m BGP r Router architectures r IPv6 Today: r IPv6.
Chapter 21 Multicast Routing
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Multicast Communications
CMPE 252A: Computer Networks Set 11:
Spring 2006CS 3321 Multicast Outline Link-state Multicast Distance-vector Multicast Protocol Independent Multicast.
2/25/20161 Multicast on the Internet CSE 6590 Fall 2009.
Internet Multicasting Routing: DVMRP r DVMRP: distance vector multicast routing protocol, RFC1075 r flood and prune: reverse path forwarding, source-based.
Communication Networks Recitation 11. Multicast & QoS Routing.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
Multicasting protocols
Computer Networking Multicast.
Multicast Outline Multicast Introduction and Motivation DVRMP.
(How the routers’ tables are filled in)
CMPE 252A: Computer Networks
ECE544: Communication Networks-II Spring 2013
IP Multicasting By Behzad Akbari Fall 2008
Multicast on the Internet
IP Multicast COSC /5/2019.
EE 122: Lecture 13 (IP Multicast Routing)
Implementing Multicast
Optional Read Slides: Network Multicast
Presentation transcript:

Broadcast and Multicast

Overview Last time: routing protocols for the Internet  Hierarchical routing  RIP, OSPF, BGP This time: broadcast and multicast

Definitions Unicast  Single source, single receiver Broadcast  Send same packet to all receivers  “all” usually limited in some way LAN, subnet, organization Multicast  Send same packet to many receivers

In-network Duplication R1 R2 R3R4 source duplication R1 R2 R3R4 in-network duplication duplicate creation/transmission duplicate Source duplication inefficient Source does not know all destinations

Flooding Loops Broadcast storms AB DC

Controlled Flooding Ignore duplicate messages  Cache to remember what’s been sent before Special case: sequence numbers  Used with broadcast updates  Source assigns increasing seq no to broadcast  Record latest seq no from each source  Discard messages with old seq no’s Ensures always use the latest update

Reverse Path Forwarding Idea: use unicast routing information Forward only messages coming from the shortest path to source  Note: problem with asymmetric paths

Reverse Path Forwarding A C B G F E D

A C B G F E D Forward Path

Reverse Path Forwarding A C B G F E D Reverse Path

Spanning Tree Subset of graph edges that forms a tree Flood messages along all edges on spanning tree, ignore all others A B G D E c F A B G D E c F (a) Broadcast initiated at A (b) Broadcast initiated at D

Minimal Spanning Tree Minimal cost spanning tree  Minimal by sum of all edge costs  Provably optimal broadcast cost, for any source in the tree  NP-complete problem (not true) Approximation:  Shortest unicast paths to some root

Minimum Spanning Tree A C B G F E D

Shortest Path Tree A C B G F E D

Multicast Motivation?

Multicast Issues Naming Membership Management Routing

IP Multicast Naming Class D address represents multicast group  E.g Datagram with destination address set to group delivered to all hosts in the group  Indirection  => , , , …  Sender may or may not be in the group No address hierarchy or subnets  How is routing done?

Membership Management Some other questions:  Who is part of the group?  How does one join?  How does one leave?  Who decides if it’s OK? Membership management answers these

IGMP Internet Group Management Protocol Runs only between host and router  Multicast routing takes care of communication between routers

IGMP hosts routers host-to-router protocol (IGMP) multicast routing protocols (various)

IGMP query IGMP membership_query  Router sends query  Find out all groups a host belongs to  Can query a specific group instead  Sent to the “all systems group” ( ) with TTL=1

IGMP report IGMP membership_report  Response from host to a query  Can send report unsolicited Join group this way! IGMP leave_group  Optional  Router will clean up membership info on next membership_query

IGMP properties Minimalist semantics  Host controlled membership No decision about:  Who controls membership  Invitations  How to find groups and join them Move these decisions to application layer

Soft state Host is authoritative on group membership Router maintains “soft state” A crashed router soon recovers  Sends a new membership_query  Misdelivers packets for a little while OK by IP service model!

Multicast Routing A number of routers have hosts that belong to a multicast group How to connect them (and others) in a tree?  Shared tree: single tree for all  Source-based tree: many trees

Core-Based Tree Tree rooted at a core To join a group, send unicast message towards core  Add all links traversed until hit existing tree

Diagram Core

Choice of Core If core close to source, efficiency is good If core far from source, efficiency falls  Delay up to twice optimal Optimal core placement is NP-hard  Use heuristics

Source-based Trees Different tree for each possible source  Why? Reverse path forwarding to figure out tree Pruning to leave out routers

Pruning Prune when no attached members or downstream routers Propagate prune messages upstream R1 R2 R3 R4 R5 R6 R7 router with attached group member router with no attached group member prune message S: source links with multicast forwarding P P P

DVMRP Distance Vector Multicast Routing Protocol DV + RPF + Pruning DV vector carries distance to multicast sources Pruning carries a timeout  Afterwards, traffic delivery is resumed Explicit graft message to reverse pruning  Done upon join

MOSPF Multicast Extensions to OSPF Link-state advertisements include multicast group membership  Only report directly connected hosts Compute shortest-path spanning tree rooted at source  On demand, when receiving packet from source for the first time  Forward multicast traffic along tree

MOSPF performance Global state allows source-based trees to be used  Faster delivery of messages Overhead  Joins and leaves flooded to all routers  Any change may cause whole tree to be recomputed

PIM Protocol Independent Multicast  Uses routing tables, but agnostic of how they are built Two settings:  Dense: most routers members of a group Use RPF flooding with pruning  Sparse: most routers not members of a group Use shared tree or source-based tree based on data characteristics Uses soft-state

Sparse vs. Dense Dense Mode Dense participants B/W plentiful Membership assumed until pruned Data driven Sparse Mode Sparse participants B/W overhead significant Membership explicitly requested Receiver driven

Shared v. Source-based Trees Shared trees used initially  Tree rooted at rendezvouz-point (RP) Can switch to source-based trees when data rate is high  RP sends a Join message to source  Each router independently decides to switch to source-based tree, sends Join to source

Shared Tree Example RP S G G G

PIM Receiver Join RP S G G G G Join *,G Report G What if join is here?

PIM Shared Tree After Join RP S G G G G G

PIM Source Based Tree RP S G G G G G Join s,g

PIM Source Based Tree RP S G G G G G

PIM routing tables Routing entries of the form (s,g)  s - source  g - group Wildcard entries (*,g) for shared-group trees Packets are routed using best match

Steiner Trees Steiner Tree: minimum cost tree connecting all routers with attached group members problem is NP-complete excellent heuristics exists not used in practice:  computational complexity  information about entire network needed  monolithic: rerun whenever a router needs to join/leave

Minimum Spanning Tree A C B G F E D

Steiner Tree A C B G F E D

Tunneling Q: How to connect “islands” of multicast routers in a “sea” of unicast routers?  mcast datagram encapsulated inside “normal” (non-multicast- addressed) datagram  normal IP datagram sent thru “tunnel” via regular IP unicast to receiving mcast router  receiving mcast router unencapsulates to get mcast datagram physical topology logical topology