CS514: Intermediate Course in Operating Systems Professor Ken Birman Ben Atkin: TA Lecture 5: Sept. 7.

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.
Multicast on the Internet CSE April 2015.
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
1 Internet Networking Spring 2004 Tutorial 7 Multicast Routing Protocols.
School of Information Technologies Internet Multicasting NETS3303/3603 Week 10.
588 Section 6 Neil Spring May 11, Schedule Notes – (1 slide) Multicast review –(3slides) RLM (the paper you didn’t read) –(3 slides) ALF & SRM –(8.
COS 420 Day 18. Agenda Group Project Discussion Program Requirements Rejected Resubmit by Friday Noon Protocol Definition Due April 12 Assignment 3 Due.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 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.
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.
Link-State Routing Reading: Sections 4.2 and COS 461: Computer Networks Spring 2011 Mike Freedman
Wolfgang EffelsbergUniversity of Mannheim1 Multicast IP Wolfgang Effelsberg University of Mannheim September 2001.
UDP, TCP/IP, and IP Multicast COM S 414 Sunny Gleason, Vivek Uppal Tuesday, October 23 rd, 2001.
1 CSE 401N:Computer Network LECTURE-14 MULTICAST ROUTING.
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.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
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.
Network Administration
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Multicasting  A message can be unicast, multicast, or broadcast.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Multicast routing.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
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.
Section 4 : The OSI Network Layer CSIS 479R Fall 1999 “Network +” George D. Hickman, CNI, CNE.
AD HOC WIRELESS MUTICAST ROUTING. Multicasting in wired networks In wired networks changes in network topology is rare In wired networks changes in network.
CSC 600 Internetworking with TCP/IP Unit 8: IP Multicasting (Ch. 17) Dr. Cheer-Sun Yang Spring 2001.
CS 5565 Network Architecture and Protocols Godmar Back Lecture 22.
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.
Chapter 15 Multicasting and Multicast Routing
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
© J. Liebeherr, All rights reserved 1 Multicast Routing.
Multicast Routing, Error Control, and Congestion Control.
IP Multicast COSC Addressing Class D address Ethernet broadcast address (all 1’s) IP multicast using –Link-layer (Ethernet) broadcast –Link-layer.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
Björn Landfeldt School of Information Technologies NETS 3303 Networked Systems Multicast.
© J. Liebeherr, All rights reserved 1 IP Multicasting.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
CIS679: Multicast and Multimedia (more) r Review of Last Lecture r More about Multicast.
1 Spring Semester 2009, Dept. of Computer Science, Technion Internet Networking recitation #7 DVMRP.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
1 IP Multicasting Relates to Lab 10. It covers IP multicasting, including multicast addressing, IGMP, and multicast routing.
Multicast Routing in Datagram Internetworks and Extended LANs Stephen E. Deering and David R. Cheriton ACM Trans. On Cpt. System, vol 8, no. 2.
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.
CS 6401 Overlay Networks Outline Overlay networks overview Routing overlays Resilient Overlay Networks Content Distribution Networks.
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
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.
2/25/20161 Multicast on the Internet CSE 6590 Fall 2009.
Unnecessary Multicast Flooding Problem Statement
Multicasting EECS June Multicast One-to-many, many-to-many communications Applications: – Teleconferencing – Database – Distributed computing.
1 Group Communications: Host Group and IGMP Dr. Rocky K. C. Chang 19 March, 2002.
Multicast Outline Multicast Introduction and Motivation DVRMP.
(How the routers’ tables are filled in)
Multicasting and Multicast Routing Protocols
Other Routing Protocols
IP Multicast COSC /5/2019.
EE 122: Lecture 13 (IP Multicast Routing)
Optional Read Slides: Network Multicast
Presentation transcript:

CS514: Intermediate Course in Operating Systems Professor Ken Birman Ben Atkin: TA Lecture 5: Sept. 7

IP multicast Has already been briefly mentioned by Professor Birman Today we’ll see how it works –rationale for multicast –multicast between LANs –multicast on the Internet –a few words about reliability

Unicast to multiple hosts

Multicast to multiple hosts “to group”

Why do multicast? Send to a group, not to individual hosts –Reduces overhead in sender –Reduces bandwidth consumption in network –Reduces latency seen by receivers (all receive “at the same time”, in theory)

Logical addressing Multicast groups “handled by network” Senders, receivers do not need to know each others’ identities Group persists as long as it has at least one member a “rendezvous” mechanism

Applications Teleconferencing Distance learning Multimedia streaming Directory service lookup...

Multicasting for resource location Expanding-ring search We want to find an instance of a resource (database, etc) which is close by Use multicast with IP time-to- live (TTL) values

Time-to-live and hop counts TTL is a counter in the packet header –Decrement at each “hop” through a router –When TTL reaches zero, the packet is dropped –special values for “global” and “regional” TTL (use with care!)

Expanding-ring search “Find me a database”, TTL=1

Expanding-ring search “Find me a database”, TTL=2 “I’m a database, what can I do for you?”

Multicast addresses Class D IP addresses for group – to Treated like any other IP address: can send from it or listen to it In practice, use UDP as well (more on this later)

Multicast at the LAN level Ethernet is a broadcast medium: all network cards see all packets Register the multicast address in the network card –only pass matching packets to OS –all other packets are ignored

Multicast beyond the LAN We would like to multicast between hosts on different LANs –LANs are joined together directly by bridges –or can be connected through the Internet by a sequence of routers –need an inter-LAN (WAN) protocol (in fact, this is rarely enabled!)

A naive approach We want to send multicasts everywhere where there are group members –use flooding to send multicast between routers –when we get to a LAN, use regular (Ethernet) multicast

Multicast by flooding non-membergroup memberrouter

Multicast by flooding non-membergroup memberrouter

Why simple flooding doesn’t work non-membergroup memberrouter

Why simple flooding doesn’t work non-membergroup memberrouter wasted!

Multicast flooding Not a scalable mechanism –every LAN sees every multicast –every WAN router sees every multicast: wastes bandwidth, CPU Requires a two-part solution –determining LAN group members –omitting WAN routers from multicast

Multicast trees Shortest-path tree to all multicast members, rooted at sender But must be computed independently by each router And must be dynamically adjusted for joins and leaves

A multicast tree

IGMP Internet Group Management Protocol (Deering and Cheriton) Developed from work in V distributed operating system –introduced notion of process groups (Cheriton and Zwaenepol) –groups for services, e.g. name resolution, remote paging

IGMP Detects if a multicast group has any members within a LAN Query and report messages –router sends query of group membership periodically –hosts report groups they’re in

IGMP Internet “Who is a member?”

IGMP Internet “I am”

IGMP Internet “I am”

Avoiding overloading Report packets may overload router –upon getting a query, each group member sets a timer –if it sees a report for its group before the timer expires, it suppresses its report –otherwise reports on expiration

Building multicast trees Want to avoid loops, duplicates Dalal and Metcalfe: reverse path forwarding –relies on existing (point-to-point) shortest-path data for next hops to decide where to forward to –forward a packet only if it arrived on the shortest path to its source

Reverse shortest-path forwarding

Doesn’t eliminate all duplicates A further enhancement is to only forward a packet to a neighbour if you’re on its shortest-path to the source

Pruning nodes from the tree When they get a multicast, routers decide if they should prune themselves out –LAN routers can use IGMP to find if they have members –tell preceding node on the shortest-path tree not to forward to you –recursive

Pruning

Rejoining a group A LAN router with a group member may find it has no link into the multicast tree –either sends a graft message to add itself to the tree –or use flood-and-prune: routers are periodically added back into the tree; they prune themselves again if they still have no members

The MBONE Multicast Backbone Layer over the Internet –permitted rapid deployment –only certain routers participate –“tunnel” between MBONE routers –has to do its own routing –upper limit on bandwidth consumption

Multicast reliability Best-effort reliability, “as good as UDP” But has some additional problems not shared by unicast UDP –fragmentation –interlinked failures

UDP fragmentation Recall that UDP packets are bigger than IP packets –With a fixed loss probability, more members = more losses –losing one IP packet drops the entire UDP packet –makes repairing failures more expensive, not used in practice (use IP-sized packets)

Interlinked failures Traditionally we assume that packets p, q being lost could be independent events –but with IP multicast they could be very correlated –an omission at a parent node causes all children to miss the packet

Interlinked failures

Multicast behaviour A “bad Internet citizen” No backoff, unlike TCP Runs on MBONE, not Internet! Only really usable in an intranet –Problems with bridges –Multicast flooding/storms –Everybody gets them

Multicast problems Even if routers don’t forward multicasts, they still have to process them Similarly, a network card may be forced to drop packets if it gets too many So too many simultaneous multicasts can cause problems!

Multicast storms Retransmissions to fix losses must be carefully controlled –too many can just aggravate the problem –and can affect the performance of non-multicasting hosts –Bridges typically drop multicasts to stop storms propagating Want to avoid “router collapse”

Retransmission requests

Making IP multicast a good citizen A hot area for research Sender-based and receiver- based schemes –forward error correction –combining retransmission requests

Forward error correction (FEC) Sender-based mechanism –repeat multicasts in order to overcome the likelihood of packet loss: anticipate retransmission requests –or use parity, Hamming codes, etc, to generate parity packets, and receiver reconstructs dropped packets

Combining retransmission requests Receivers are more intelligent about when to make requests for retransmissions –e.g. watch to see if others make requests, if so, suppress ours –can still cause storms! e.g. SRM, RTP2, PGM: we will return to these later

Further reading S. Keshav. An Engineering Approach to Computer Networking. Addison Wesley, 1997 Internet Group Management Protocol, Version 3 (Cain, Deering, Kouvelas, Thyagarajan) idmr-igmp-v3-04.txt S. Deering. "Host Extensions for IP Multicasting", RFC 1112, SRI "requests for comments" repository, August Yogan K. Dalal and Robert M. Metcalfe. "Reverse Path Forwarding of Broadcast Packets". Communications of the ACM 21:12, pp , December 1978.