DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.

Slides:



Advertisements
Similar presentations
1April 16, 2002 Layer 3 Multicast Addressing IP group addresses – “Class D” addresses = high order bits of “1110” Special reserved.
Advertisements

Computer Networking A Top-Down Approach Chapter 4.7.
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.
Introduction to IP Multicast 1 Cisco Systems Confidential 0810_04F7_c2.
IP Multicast Lecture 2: PIM-SM Carl Harris Communications Network Services Virginia Tech.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public BSCI Module 7 Lesson 3 1 IP Multicasting: Multicast Routing Protocols.
School of Information Technologies Internet Multicasting NETS3303/3603 Week 10.
COS 420 Day 18. Agenda Group Project Discussion Program Requirements Rejected Resubmit by Friday Noon Protocol Definition Due April 12 Assignment 3 Due.
COS 420 Day 14. Agenda Assignment 3 Posted Covers chapters Due March 23 Assignment 4 Posted Chap Due April 6 Individual Project Papers due.
IP Multicasting: Explaining Multicast
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.
1 IP Multicasting. 2 IP Multicasting: Motivation Problem: Want to deliver a packet from a source to multiple receivers Applications: –Streaming of Continuous.
Multicast Routing Wed. 28 MAY Introduction based on number of receivers of the packet or massage: “A technique for the efficient distribution of.
1 CSE 401N:Computer Network LECTURE-14 MULTICAST ROUTING.
MULTICASTING Network Security.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
Computer Networks 2 Lecture 1 Multicast.
Multicasting  A message can be unicast, multicast, or broadcast.
© 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.
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.
Broadcast and Multicast. Overview Last time: routing protocols for the Internet  Hierarchical routing  RIP, OSPF, BGP This time: broadcast and multicast.
Multicast Routing Algorithms n Multicast routing n Flooding and Spanning Tree n Forward Shortest Path algorithm n Reversed Path Forwarding (RPF) algorithms.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
Computer Science 6390 – Advanced Computer Networks Dr. Jorge A. Cobb Deering, Estrin, Farinacci, Jacobson, Liu, Wei SIGCOMM 94 An Architecture for Wide-Area.
Introduction to IP Multicast
Multicast Routing Protocols. The Need for Multicast Routing n Routing based on member information –Whenever a multicast router receives a multicast packet.
© 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.
CS 4396 Computer Networks Lab IP Multicast - Fundamentals.
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 © 2000, Cisco Systems, Inc _05_2000_c2 Server Router Unicast Server Router Multicast Unicast vs. Multicast.
Fundamentals of IP Multicast
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.
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.
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
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.
Chapter 9: Multicast Sockets
Multicast Communications
Spring 2006CS 3321 Multicast Outline Link-state Multicast Distance-vector Multicast Protocol Independent Multicast.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #09: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
1 Protocol Independent Multicast (PIM) To develop a scalable protocol independent of any particular unicast protocol –ANY unicast protocol to provide routing.
2/25/20161 Multicast on the Internet CSE 6590 Fall 2009.
IP Multicast Lecture 4: PIM-SM Carl Harris Communications Network Services Virginia Tech.
Multicasting EECS June Multicast One-to-many, many-to-many communications Applications: – Teleconferencing – Database – Distributed computing.
1 Group Communications: Reverse Path Multicast Dr. Rocky K. C. Chang 19 March, 2002.
Engineering Workshops 96 ASM. Engineering Workshops 97 ASM Allows SPTs and RPTs RP: –Matches senders with receivers –Provides network source discovery.
1 Group Communications: Host Group and IGMP Dr. Rocky K. C. Chang 19 March, 2002.
1 CMPT 471 Networking II Multicasting © Janice Regan,
DMET 602: Networks and Media Lab
Multicast Outline Multicast Introduction and Motivation DVRMP.
(How the routers’ tables are filled in)
CMPE 252A: Computer Networks
IP Multicasting Let one packet go to multiple addresses and you can save much bandwidth. That’s the promise of IP multicasting…
Multicast Outline Multicast revisited
Introduction to IP Multicast
IP Multicast COSC /5/2019.
EE 122: Lecture 13 (IP Multicast Routing)
Implementing Multicast
Optional Read Slides: Network Multicast
Presentation transcript:

DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek

Exp 5: Multicast

Unicast vs Multicast

 TCP Unicast but NOT Multicast – TCP is connection orientated protocol – Requires 3 way Handshake – Reliable due to sequence numbers + Ack – Flow control  UDP Unicast and Multicast – Connectionless – Unreliable (application layer awareness)

 Best Effort Delivery: Drops are to be expected. Multicast applications should not expect reliable delivery of data and should be designed accordingly. Reliable Multicast is still an area for much research. Expect to see more developments in this area. PGM offers reliability!  No Congestion Avoidance: Lack of TCP windowing and “slow-start” mechanisms can result in network congestion. If possible, Multicast applications should attempt to detect and avoid congestion conditions.  Duplicates: Some multicast protocol mechanisms (e.g. Asserts, Registers and SPT Transitions) result in the occasional generation of duplicate packets. Multicast applications should be designed to expect occasional duplicate packets.  Out of Order Delivery : Some protocol mechanisms may also result in out of order delivery of packets. Multicast is based on UDP

Multicast Advantages  Enhanced Efficiency: Controls network traffic and reduces server and CPU loads  Optimized Performance: Eliminates traffic redundancy  Distributed Applications: Makes multipoint applications possible

Multicast Architecture  Campus Multicast: IGMP used for group management (host-to-routers). PIM or DVMRP used for routing  Inter-domain multicast: PIM-SSM used for routing

1. You must be a “member” of a group to receive its data 2. If you send to a group address, all members receive it 3. You do not have to be a member of a group to send to a group How Multicast Works

Multicast IP Addresses  Source address is just the host’s IP address  Destination address is the group address. One of the D class addresses  Some addresses in the D class are reserved for control operations (ex: is reserved for IGMPv3 packets). Some addresses have local scope (within an AS), while other have a global scope (inter-domain)  Typically assigned manually or using part of the address of the AS

Choosing the TTL Value  TTL is a value that is decremented at each router along a path. When it reaches zero, the router drops the packet  In multicast, packets reach devices in different paths. How does the source choose the TTL  Some multicast IP addresses have local scope. For those, the multicast router never forwards them, regardless of the TTL TTl ValueScope 1Same subnet 32Same site 64Same region 128Same continent 255Unrestricted

Multicast MAC Addresses  Low-order 23-bits of IP address map into low-order 23 bits of IEEE address

How hosts tell routers about group membership Routers solicit group membership from directly connected hosts Internet Group Management Protocol (IGMP) IGMP v1IGMP v2IGMP v3 Queries Querier sends IGMP messages to with ttl = 1 One router on LAN designated/elected to send queries Query interval 60–120 seconds Reports IGMP report sent by one host suppresses sending by others Restrict to one report per group per LAN Unsolicited reports sent by host, when it first joins the group Host sends leave message if it leaves the group and is the last member (reduces leave latency in comparison to v1) Router sends group specific queries to make sure there are no members present before stopping to forward data for the group for that subnet Standard querier election Adds Include/Exclude Source Lists Enables hosts to listen only to a specified subset of the hosts sending to the group New Membership Report address: (IGMPv3 Routers) All IGMPv3 Hosts send reports to this address Instead of the target group address as in IGMPv1/v2 All IGMPv3 Routers listen to this address Hosts do not listen or respond to this address No Report Suppression All Hosts on wire respond to Queries (Host’s complete IGMP state sent in single response) Response Interval may be tuned over broad range (Useful when large numbers of hosts reside on subnet)

Joining a Group IGMP v1/v2 IGMP v3 Include/exclude sources

Leaving a Group (IGMP v2) 1. Host sends Leave message to Router sends Group specific query to 3. No IGMP Report is received within ~3 seconds 4. Group times out

Maintaining a Group (IGMP v3) Router sends periodic queries All IGMPv3 members respond Reports contain multiple Group state records

IGMPv3 Message Format Query Report

Multicast Routing  Multicast Routing is backwards from Unicast Routing  Unicast Routing is concerned about where the packet is going  Multicast Routing is concerned about where the packet came from  Unicast Forwarding  Destination IP address directly indicates where to forward packet  Forwarding is hop-by-hop  Unicast routing table determines interface and next-hop router to forward packet  Multicast Forwarding  Destination IP address (group) doesn’t directly indicate where to forward packet  Forwarding is connection-oriented  Receivers must first be “connected” to the source before traffic begins to flow  Connection messages (PIM Joins) follow unicast routing table toward multicast source  Build Multicast Distribution Trees that determine where to forward packets  Distribution Trees rebuilt dynamically in case of network topology changes

Reverse Path Forwarding  A router forwards a multicast datagram if received on the interface used to send unicast datagrams to the source  RPF Calculation  The multicast source address is checked against the unicast routing table.  This determines the interface and upstream router in the direction of the source to which PIM Joins are sent  This interface becomes the “Incoming” or RPF interface  A router forwards a multicast datagram only if received on the RPF interface

 Based on Source Address  Best path to source found in Unicast Route Table  Determines where to send Join  Joins continue towards Source to build multicast tree  Multicast data flows down tree  Repeat for other receivers RPF Calculation First receiver Tie Breaker Second receiver

Spanning Tree Broadcast initiated at A Broadcast initiated at D  First construct a spanning tree  Nodes forward copies only along spanning tree  To create: define a center node  Each node sends “join” unicast message to center node  Nodes forward the message until it reaches a node that already belongs to the spanning tree Stepwise construction of tree Constructed tree

Goal: find a tree (or trees) connecting routers having local mcast group members Tree: not all paths between routers used Multicast Routing: Problem Statement Source distribution:  Different tree from each sender to (one tree per source)  Reverse path forwarding  More memory but optimal paths to all receivers (minimum delay) Group shared-tree:  Same tree used by all group members  Less memory but sub-optimal paths

Distribution Trees Source Tree Shared Tree

 PIM Join/Prune Control Messages Used to create/remove Distribution Trees  Shortest Path trees PIM control messages are sent toward the Source  Shared trees PIM control messages are sent toward RP RP can be static (problematic in case of failures) or using auto discovery Joining a Tree

Types of Multicast Protocols Dense ModeSparse mode Broadcast and prune behavior Similar to radio broadcast Assumes dense group membership Branches that are pruned don’t get data Pruned branches can later be grafted to reduce join latency Ex: DVMRP—Distance Vector Multicast Routing Protocol and Dense-mode PIM—Protocol Independent Multicast DVMRP: source tree created on-demand based on RPF Dense PIM: same as DVMRP but if source goes inactive, the tree is torn down. Also, branches that do not care for data are pruned and grafts are used to join existing trees Explicit join behavior Similar to pay-per-view Assumes group membership is sparsely populated across a large region Uses either source or shared distribution trees Explicit join behavior—assumes no one wants the packet unless asked Joins propagate from receiver to source or Rendezvous Point Ex: Sparse mode PIM or CBT (Core Based Tree)

RPF: 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

Dense PIM: Example

 Explicit join model Receivers join to the Rendezvous Point (RP) Senders register with the RP Data flows down the shared tree and goes only to places that need the data from the sources Last hop routers can join source tree if the data rate warrants by sending joins to the source  RPF check for the shared tree uses the RP  RPF check for the source tree uses the source  Only one RP is chosen for a particular group  RP statically configured or dynamically learned (Auto-RP, PIM v2 candidate RP advertisements)  Data forwarded based on the source state (S, G) if it exists, otherwise use the shared state (*, G) Sparse PIM

Sparse PIM: Example