Engineering Workshops 1 Multicast on the LAN. Engineering Workshops 2 Multicast Addressing at Layer 2 An IPv4 multicast address is 32 bits, of which the.

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

Introduction to IP Multicast 1 Cisco Systems Confidential 0810_04F7_c2.
Multicast on the Internet CSE April 2015.
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public BSCI Module 7 Lesson 2 1 IP Multicasting: IGMP and Layer 2 Issues.
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.
IP Multicasting: Explaining Multicast
Slide Set 15: IP Multicast. In this set What is multicasting ? Issues related to IP Multicast Section 4.4.
1 DYNAMIC HOST REGISTRATION -- INTERNET GROUP MANAGEMENT PROTOCOL Yi-Cheng Lin.
TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Network Protocols Multicast.
MULTICASTING Network Security.
Spanning Tree and Multicast. The Story So Far Switched ethernet is good – Besides switching needed to join even multiple classical ethernet networks Routing.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
(part 3).  Switches, also known as switching hubs, have become an increasingly important part of our networking today, because when working with hubs,
Group Management n Introduction n Internet Group Management Protocol (IGMP) n Multicast Listener Discovery (MLD) protocol.
Module 7: IP Multicasting
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
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.
UKERNA IP Multicast Mini Workshop Intra-domain Multicast Hands-on Lab Exercises Networkshop 2006.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 9 Internet Group Management Protocol (IGMP)
CSC 600 Internetworking with TCP/IP Unit 8: IP Multicasting (Ch. 17) Dr. Cheer-Sun Yang Spring 2001.
Advances in Multicast - The Promise of Single Source Multicast (SSM) (with a little on multicast DOS) Marshall Eubanks Multicast Technologies
1 CMPT 471 Networking II IGMP (IPv4) and MLD (IPv6) © Janice Regan,
IP Multicast Lecture 3: PIM-SM Carl Harris Communications Network Services Virginia Tech.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Ethernet Basics - 5 IGMP. The Internet Group Management Protocol (IGMP) is an Internet protocol that provides a way for an Internet computer to report.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
IP Multicast Part I: Fundamentals Carl Harris Communications Network Services Virginia Tech.
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.
Multicast 1 Spencer Tsai Mobile Communication & Broadband Network Lab CSIE Fu-Jen Catholic University Introduction to Multicast.
Interdomain multicast routing with IPv6 Stig Venaas University of Southampton Jerome Durand RENATER Mickael Hoerdt University Louis Pasteur - LSIIT.
Interdomain IPv6 multicast Stig Venaas UNINETT. PIM-SM and Rendezvous Points Interdomain multicast routing is usually done with a protocol called PIM-SM.
CS 4396 Computer Networks Lab IP Multicast - Fundamentals.
Engineering Workshops 40 Multicast on the LAN. Engineering Workshops 41 Multicast Addressing at Layer 2 An IPv4 multicast address is 32 bits, of which.
Björn Landfeldt School of Information Technologies NETS 3303 Networked Systems Multicast.
© 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.
Switch Features Most enterprise-capable switches have a number of features that make the switch attractive for large organizations. The following is a.
Multicast in Network Level Presented by Apichan Kanjanavapastit, PhD (Telecom) Department of Telecommunication Engineering Faculty of Engineering Mahanakorn.
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.
LAN Switching Concepts. Overview Ethernet networks used to be built using repeaters. When the performance of these networks began to suffer because too.
1 IP Multicasting Relates to Lab 10. It covers IP multicasting, including multicast addressing, IGMP, and multicast routing.
Cisco Confidential © 2010 Cisco and/or its affiliates. All rights reserved. 1 Multicasting within UCS Qiese Dides.
CS470 Computer Networking Protocols
Chapter 9: Multicast Sockets
Spring 2006CS 3321 Multicast Outline Link-state Multicast Distance-vector Multicast Protocol Independent Multicast.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
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.
Communication Networks Recitation 11. Multicast & QoS Routing.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
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
Computer Networking Multicast.
Multicast Outline Multicast Introduction and Motivation DVRMP.
CMPE 252A: Computer Networks
Implementing Multicast
Multicasting Unicast.
Presentation transcript:

Engineering Workshops 1 Multicast on the LAN

Engineering Workshops 2 Multicast Addressing at Layer 2 An IPv4 multicast address is 32 bits, of which the first 4 bits are always the same, leaving 28 bits. A MAC multicast address is 48 bits, of which the first 24 bits are always the same. One of the remaining bits is reserved, leaving 23 bits. So, one multicast MAC address maps to 32 multicast IP addresses.

Engineering Workshops bit IP address 48-bit Ethernet address = Internet multicast 1 = Reserved for other use IANA owns E vendor address block; half of it is assigned for IP multicast. IEEE Ethernet m ulticast bit 1110 ignored, leaving 28 bits 47 Ethernet Multicast Addressing 23 bits E- Class D address thru 7F-FF-FF

Engineering Workshops 4 IGMP Internet Group Management Protocol - how hosts tell routers about group membership Routers also solicit group membership from directly connected hosts RFC 1112 specifies version 1 of IGMP –Supported on Windows 95 RFC 2236 specifies version 2 of IGMP –Supported on latest service pack for Windows, newer Windows releases, and most UNIX systems RFC 3376 specifies version 3 of IGMP –Provides source include-list capabilities (SSM!) –Included in Linux kernel 2.6 and later –See

Engineering Workshops 5 IGMPv2 Router: –sends Membership Query messages to All Hosts ( ) query-interval = 125 secs default –router with lowest IP address is Querier (rest non-queriers) –If lower-IP address query heard, back off to non-querier state Other Querier Present Interval default: (robust-count x query-interval) + (0.5 x query-response-interval) = 255 secs –listens for reports (whether querier or not) and adds group to membership list for that interface query-response-interval = 10 secs default –timeout (Group member interval) default: (robust-count x query-interval) + (1 x query-response- interval) = 260 sec –robust-count - provides fine-tuning to allow for expected packet loss on a subnet. Default = 2 (tunable from 2-10)

Engineering Workshops 6 IGMPv2 Host: –sends Membership Report messages to groups it is a member of waits 0-10 sec (default) Hosts listen to other host reports Only 1 host responds –sends unsolicited Membership Reports (i.e., Join Messages) to group address (e.g ) –sends Leave messages to All Routers ( ) –reports group membership ONLY – no sources. Only the existence of local group members is reported, not the actual members themselves

Engineering Workshops 7 IGMP Protocol Flow - Join a Group Router triggers group membership request to PIM. Hosts can send unsolicited join membership messages – called reports in the RFC (usually more than 1) Or hosts can join by responding to periodic query from router I want Forwards stream Router adds group I want to JOIN!

Engineering Workshops 8 IGMP Protocol Flow - Querier Hosts respond to query to indicate (new or continued) interest in group(s) –only one host should respond per group Hosts fall into idle-member state when same-group report heard. After 260 sec with no response, router times out group Still interested ? (general query ) sec I want sec group Yes, me!

Engineering Workshops 9 IGMP Protocol Flow - Leave a Group Hosts that support IGMPv2 send leave messages to all-routers group indicating group they’re leaving. –Router follows up with 2 group-specific queries messages IGMPv1 hosts leave by not responding to queries (260 sec timeout) I don’t want anymore group I want to leave! Anyone still want this group? sec (re-transmit timer)

Engineering Workshops 10 Soft State Say I set up an active Multicast group, say by issuing a membership report. What happens if my computer goes down and never directly leaves the group ? This is fixed with “Soft State” –Everything has a timer, and if not periodically reinitiated the timer will expire and the state will be removed. –So there is no danger of some rogue group lasting forever.

Engineering Workshops 11 Source = Group = H1 - Member of R1 R3 R2 Source = Group = IGMPv3: MODE_IS_INCLUDE Join , IGMPv3 H1 wants to receive from S = but not from S = With IGMPv3, specific sources can be pruned back - S = in this case Specified in RFC 3376 Enables hosts to listen only to a specified subset of the sources sending to the group Video Server

Engineering Workshops 12 IGMPv3 Enhancements Group-Source Report message is defined. Enables hosts to specify which senders it can receive or not receive data from. Group-Source Leave message is defined. Enables host to specify the specific IP addresses of a (source,group) that it wishes to leave.

Engineering Workshops 13 Switches and Snooping IGMP host reports (Joins) tell the router to start sending multicast traffic to the LAN, since one or more hosts on the LAN are members of the group. In a conventional shared broadcast LAN using switches that have no multicast smarts, the traffic is sent to all hosts. With multiple high bandwidth multicast sources (e.g. video at 5 Mbps), this does not scale beyond approximately one source. There are a few techniques used to deal with this...

Engineering Workshops 14 IGMP Snooping Implemented by several vendors. Support for IGMPv2 is common; support for IGMPv3 is rare, but becoming more common. What happens at the MAC layer: –IGMP snoopers add a bridge table entry for each multicast group destination address (GDA) to each switch port that has the interested member's unicast source address (USA) already on it. (Remember that there are likely to be dumb hubs downstream of switches, so more than one USA can be on a single port.) –When an IGMP Leave is received, the GDA entries are pruned.

Engineering Workshops 15 Why IGMP snooping is harder than it looks The IGMP membership reports have to be captured from each host and suppressed to other hosts to prevent the others from going into idle-member state; every interested host has to be spoofed into thinking it is the only member of the group, so that it actively sends membership reports. The IGMP snooper then forwards one of these membership reports up to the router (or makes up a fake membership report for itself).

Engineering Workshops 16 Why IGMP snooping is harder than it looks, continued Since multiple USAs can be on a port (via dumb hub), the switch has to actually do the IGMP membership query/timeout before pruning a port. Since membership reports are sent to the same GDA as the (possibly high-bandwidth) multicast traffic, there is a potential for heavy loading of the switch CPU, unless you use more expensive ASICs that can separate the IGMP protocol messages from general traffic and route only the IGMP messages to the CPU. The switch has to know which is the multicast router port. It does this by snooping for IGMP queries.

Engineering Workshops 17 CGMP The proprietary Cisco Group Management Protocol puts the bulk of the Layer 3 logic in Layer 3 devices rather than cramming it into Layer 2 devices like IGMP snooping does. The router sends CGMP Joins and Leaves to the switch, specifying the USA and GDA. On receipt of an IGMP Membership Report, the router sends the switch a CGMP Join. On receipt of an IGMP Leave, the router sends the switch a CGMP Leave. IGMP membership reports still have to be suppressed so that hosts don't go into idle-member state. CGMP does not work correctly with IGMPv3. –Leaves are not implemented, resulting in channel surfers causing a multicast flooding DoS on their subnet. –See 122cgcr/fipr_c/ipcpt3/1cfmulti.htm#

Engineering Workshops 18 PIM Snooping and RGMP For Layer 2 networks with routers but no hosts (transit LANs). PIM, not IGMP, is spoken among routers, so IGMP snooping does not work in this case. PIM snooping and the Cisco-proprietary Router Group Management Protocol (RGMP) are used by the Layer 2 switch to send only the multicast flows that the router needs to the router's port. These work analogously to IGMP snooping (smarts in the switch) and CGMP (smarts in the router). PIM snooping is still mostly experimental. Some Foundry Networks switches support it.

Engineering Workshops 19 Problems with Multicast on the LAN In general, multicast on the LAN is not as well understood as multicast on the WAN. Switch behaviors are not standardized. Problems with switches: –when snooping is enabled, they may drop packets that shouldn’t be dropped. –even without snooping, sometimes they step outside their bailiwick, trying to do non-Layer-2 tasks.

Engineering Workshops 20 Case Study A few months ago I converted all our interfaces over to IGMP Version 3. Then I started getting complaints from our lab/classroom support group that Norton Ghost was failing for them. It would hang after about 3 minutes. So far the fix, without understanding why it works, has been to revert the interfaces to IGMP version 2. The switches downstream from these interfaces are running CGMP and CGMP LEAVE (which is actually a form of IGMP snooping/spoofing for IGMP Leaves sent to ). I suspect that the fact that these switches are actually looking at IGMP packets may have something to do with the problem that reverting to v2 fixed... — Alan Crosswell

Engineering Workshops 21 Case Study This author traveled to Los Alamos, New Mexico to help debug a multicast problem that had everyone stumped. Everyone was assuming the only known router on the subnet was also acting as the multicast gateway. Unfortunately, this wasn’t the case. A nominally Layer 2 switch on the subnet was accidentally configured with PIM active, and won the PIM Designated Router election. Of course, this Layer 2 switch had no upstream to anywhere. — Bill Nickless

Engineering Workshops 22 One Approach to Multicast on the LAN Avoid snooping, as it causes more problems than it solves. Keep subnets small. A smaller subnet is less likely to have people joining several different multicast groups, traffic for each of which is sent to the entire subnet. If at all possible, use routers, not switches or bridges. If you have to use switches, try to at least buy them all from the same vendor, so you won’t have inconsistent behavior as well as unexpected behavior.

Engineering Workshops 23 Another Approach to Multicast on the LAN The previous approach reflects gigaPoP/WAN bias. On a campus, it just isn't possible to use routers everywhere. Switches and snooping may be evils, but they are necessary evils. Learn to cope with them. is a good place to start.

Engineering Workshops 24 Lab 1: Multicast on the LAN

Engineering Workshops 25 SSM

Engineering Workshops 26 PIM-SM SM stands for “Sparse Mode.” –RFC 2362 and draft-ietf-pim-sm-v2-new-06.txt –There is also a Dense Mode, but we don’t recommend using it. –Cisco has a proprietary “Sparse-Dense” mode which is used for RP discovery. PIM-SM allows for both RPTs and SPTs. There are two ways to use PIM-SM…

Engineering Workshops 27 ASM and SSM ASM: Any-Source Multicast. Traditional multicast – data and joins are forwarded to an RP. –All routers in a PIM domain must have RP mapping. –When load exceeds threshold, forwarding switches to an SPT. The default threshold is one packet; in this case, the sole purpose of the RPT is to learn which sources are active. (With IGMPv2, the receiver can only specify the group, not specific sources.) –State increases (not everywhere) as number of sources and number of groups increase. –SPT state is refreshed when data is forwarded and with Join/Prune control messages. SSM: Source-Specific Multicast. PIM-SM without RPs – instead, the source is learned out-of-band, and the SPT is built directly to it.

Engineering Workshops 28 SSM Source-Specific Multicast (SSM) is a subset of ASM, so –SSM concepts apply directly to ASM, but –SSM is a lot simpler than ASM. For these reasons, we cover SSM first in this workshop. 232 / 8 is assigned to SSM as an address space. Other address ranges can also be set up for SSM — this is primarily a function of the receiving network. Source activity and IP addresses are assumed known. IGMPv3 allows for “Include” lists of (S,G) pairs.

Engineering Workshops 29 SSM SSM - draft-ietf-ssm-arch-01.txt –232/8 – IANA assigned –No RPTs –Guarantees ONE source on any delivery tree Content security – no unwanted sources –Reduced protocol dependence – more later... –Solves address allocation issues for inter-domain one-to-many tree address is 64 bits – S,G –Host must learn source address out-of-band (e.g, from a web page) –Host-to-router join request specifies source as well as group requires IGMPv3 for include-source list –SSM behavior in 232/8 by default Configurable to expand range

Engineering Workshops 30 SSM in Action Each (S,G) pair listed in the IGMPv3 include list generates a (S,G) Join directly towards the source. That’s it. It’s very simple. All you need to implement is : –Edge routers need IGMPv3 –Interior routers need filters to prevent RP (*,G) Joins & other RP state for the SSM address block

Engineering Workshops 31 SSM Group Addresses 232 / 8 is assigned to SSM as an address space. –You don’t have to ask, you can just pick one and use it. How can this be ? –Note that all joins are unique as long as the combination of S and G are unique. Not only can one source support multiple groups, but if there are two sources using the same group address, everything works just fine.

Engineering Workshops 32 SSM Receiver RP Receiver announces desire to join group G AND source S with an IGMPv3 include-list. IGMPv3 host report (S, G) Join Last-hop router joins the SPT. Source Shortest Path Tree Traffic Flow (S,G) state is built between the source and the receiver.

Engineering Workshops 33 SSM Receiver RP Data flows down the shortest path tree to the receiver. Source Shortest Path Tree Traffic Flow

Engineering Workshops 34 Lab 2: SSM