Mul$cast and Anycast. Outline today TODAY 3/11/14. Mike Freedman COS 461: Computer Networks. IP Anycast

Similar documents
ANYCAST and MULTICAST READING: SECTION 4.4

Mul7cast protocols. IP Mul7cast and IGMP SRM (Scalable Reliable Mul7cast) PGM (Pragma7c General Mul7cast)

Mul$media Streaming. Digital Audio and Video Data. Digital Audio Sampling the analog signal. Challenges for Media Streaming.

Backbone Networks. Networking Case Studies. Backbone Networks. Backbone Topology. Mike Freedman COS 461: Computer Networks.

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

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

Configuring IGMP Snooping

Multicast EECS 122: Lecture 16

Routing Concepts. IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

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?

Advanced Network Training Multicast

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

Routing Basics. ISP Workshops. Last updated 10 th December 2015

Rendezvous Point Engineering

ASM. Engineering Workshops

Broadcast and Multicast Routing

CSCI-1680 Network Layer:

Multicast Communications

Server Selection Mechanism. Server Selection Policy. Content Distribution Network. Content Distribution Networks. Proactive content replication

Interdomain Routing Design for MobilityFirst

Financial Services Design for High Availability

Multicast Technology White Paper

Routing Basics ISP/IXP Workshops

Routing Basics. ISP Workshops

Routing Basics. Campus Network Design & Operations Workshop

Multicast Quick Start Configuration Guide

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

Routing Basics. Routing Concepts. IPv4. IPv4 address format. A day in a life of a router. What does a router do? IPv4 Routing

Lecture 6: Multicast

Routing Basics ISP/IXP Workshops

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

Exercises to Communication Systems

dra$- boot- homenet- brdp

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

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

APT: A Practical Transit-Mapping Service Overview and Comparisons

Network Layer: Routing

TDC 363 Introduction to LANs

IP ADDRESSES, NAMING, AND DNS

Communication Networks

Advanced Networking. Multicast

Computer Networks. Wenzhong Li. Nanjing University

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

Improving DNS Security and Resiliency. Carlos Vicente Network Startup Resource Center

MPLS VPN. 5 ian 2010

Configuring IGMP Snooping for IPv4 Multicast Traffic

An overview of how packets are routed in the Internet

Configuring PIM. Information About PIM. Send document comments to CHAPTER

Module 7 Implementing Multicast

Distributed Systems. 21. Content Delivery Networks (CDN) Paul Krzyzanowski. Rutgers University. Fall 2018

Shim6: Network Operator Concerns. Jason Schiller Senior Internet Network Engineer IP Core Infrastructure Engineering UUNET / MCI

Configuring IGMP Snooping and MVR

A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols. Broch et al Presented by Brian Card

Configuring IP Multicast Routing

Multicast and Quality of Service. Internet Technologies and Applications

Randomization. Randomization used in many protocols We ll study examples:

Randomization used in many protocols We ll study examples: Ethernet multiple access protocol Router (de)synchronization Switch scheduling

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

! Naive n-way unicast does not scale. ! IP multicast to the rescue. ! Extends IP architecture for efficient multi-point delivery. !

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

Live-Live: A Network Solution Without Packet Loss

ETSF10 Internet Protocols Routing on the Internet

Table of Contents 1 MSDP Configuration 1-1

Internet Anycast: Performance, Problems and Potential

Configuring IP Multicast Routing

Developing IP Muiticast Networks

Mul$media Networking. #9 CDN Solu$ons Semester Ganjil 2012 PTIIK Universitas Brawijaya

Securizarea Calculatoarelor și a Rețelelor 32. Tehnologia MPLS VPN

CS4700/CS5700 Fundamentals of Computer Networks

Multicast as an ISP service

COMP/ELEC 429 Introduction to Computer Networks

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

IP MULTICAST EXPLAINED

How does a router know where to send a packet next?

Why dynamic route? (1)

Configuring a Rendezvous Point

VXLAN Overview: Cisco Nexus 9000 Series Switches

SYSC 5801 Protection and Restoration

WSN Routing Protocols

Configuring Bidirectional PIM

Communication Networks

IGMP Snooping for IPv4 Multicast Traffic

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

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

Lecture 13: Traffic Engineering

Exam Questions

Configuring MSDP. Overview. How MSDP operates. MSDP peers

CS November 2018

Auxiliary protocols. tasks that IP does not handle: Routing table management (RIP, OSPF, etc.). Congestion and error reporting (ICMP).

Overview. Overview. OTV Fundamentals. OTV Terms. This chapter provides an overview for Overlay Transport Virtualization (OTV) on Cisco NX-OS devices.

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

EE122: Multicast. Kevin Lai October 7, 2002

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Connection Oriented Networking MPLS and ATM

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

EE122: Multicast. Internet Radio. Multicast Service Model 1. Motivation

Examination 2D1392 Protocols and Principles of the Internet 2E1605 Internetworking. Date: June 1 st 2007 at 14:00 19:00 SOLUTIONS

Transcription:

Mul$cast and Anycast Mike Freedman COS 461: Computer Networks TODAY h=p://www.cs.princeton.edu/courses/archive/spr14/cos461/ Outline today 3 4 IP Anycast N desfnafons, 1 should receive the message Providing a service from mulfple network locafons Using roufng protocols for automated failover MulFcast protocols N desfnafons, N should receive the message Examples IP MulFcast SRM (Scalable Reliable MulFcast) PGM (PragmaFc General MulFcast) http://en.wikipedia.org/wiki/multicast 1

LimitaFons of DNS- based failover 5 MoFvaFon for IP anycast 6 Failover/load balancing via mulfple A records!;; ANSWER SECTION:!!www.cnn.com.!!300!IN!A!157.166.255.19!!www.cnn.com.!!300!IN!A!157.166.224.25!!www.cnn.com.!!300!IN!A!157.166.226.26!!www.cnn.com.!!300!IN!A!157.166.255.18! If server fails, service unavailable for TTL Very low TTL: Extra load on DNS Anyway, browsers cache DNS mappings What if root NS fails? All DNS queries take > 3s? Failure problem: client has resolved IP address What if IP address can represent many servers? Load- balancing/failover via IP addr, rather than DNS IP anycast is simple reuse of exisfng protocols MulFple instances of a service share same IP address Each instance announces IP address / prefix in BGP / IGP RouFng infrastructure directs packets to nearest instance of the service Can use same selecfon criteria as installing routes in the FIB No special capabilifes in servers, clients, or network 7 8 Announce /32 Announce /32 Rou$ng Table from : /32 1 /32 2 2

9 10 DNS lookup for h=p://www.server.com/ produces a single answer: www.server.com. IN A Rou$ng Table from : /32 1 /32 2 11 12 Rou$ng Table from : /32 1 /32 2 Rou$ng Table from : /32 1 /32 2 3

13 Downsides of IP anycast 14 From client/router perspecfve, topology could as well be: Many Tier- 1 ISPs ingress filter prefixes > /24 Publish a /24 to get a single anycasted address: Poor uflizafon Server Scales poorly with the # anycast groups Each group needs entry in global roufng table Rou$ng Table from : Not trivial to deploy Obtain an IP prefix and AS number; speak BGP /32 1 /32 2 Downsides of IP anycast 15 16 Subject to the limitafons of IP roufng No nofon of load or other applicafon- layer metrics Convergence Fme can be slow (as BGP or IGP converge) Failover doesn t really work with TCP TCP is stateful: if switch desfnafon replicas, other server instances will just respond with RSTs May react to network changes, even if server online MulFcast Root nameservers (UDP) are anycasted, li=le else 4

MulFcast Many receivers Receiving the same content ApplicaFons Video conferencing Online gaming IP television (IPTV) Financial data feeds 17 Iterated Unicast Unicast message to each recipient Advantages Simple to implement No modificafons to network Disadvantages High overhead on sender Redundant packets on links Sender must maintain list of receivers IP MulFcast Embed receiver- driven tree in network layer Sender sends a single packet to the group Receivers join and leave the tree Advantages Low overhead on the sender Avoids redundant network traffic Disadvantages Control- plane protocols for mulfcast groups Overhead of duplicafng packets in the routers 19 MulFcasFng messages Simple applicafon mulfcast: Iterated unicast simply unicasts message to every recipient Pros: simple to implement, no network modificafons Cons: O(n) work on sender, network Advanced overlay mulfcast ( peer- to- peer ) Build receiver- driven tree Pros: Scalable, no network modificafons Cons: O(log n) work on sender, network; complex to implement IP mulfcast Embed receiver- driven tree in network layer Pros: O(1) work on client, O(# receivers) on network Cons: requires network modificafons; scalability concerns? 20 5

MulFcast Tree 21 IP mulfcast in acfon 22 A c B 239.1.1.1 D F E 239.1.1.1 G Rou$ng Table from : 239.1.1.1 /32 1 239.1.1.1 /32 2 Single vs. MulFple Senders 23 MulFcast Addresses 24 Source- based tree Separate tree for each sender Tree is opfmized for that sender But, requires mulfple trees for mulfple senders Shared tree One common tree Spanning tree that reaches all parfcipants Single tree may be inefficient But, avoids having many different trees MulFcast group defined by IP address MulFcast addresses look like unicast addresses 224.0.0.0 to 239.255.255.255 Using mulfcast IP addresses Sender sends to the IP address Receivers join the group based on IP address Network sends packets along the tree 6

Example MulFcast Protocol 25 IGMP v1 26 Receiver sends a join messages to the sender And grams to the tree at the nearest point c A B Two types of IGMP msgs (both have IP TTL of 1) Host membership query: Routers query local networks to discover which groups have members Host membership report: Hosts report each group (e.g., mulfcast addr) to which belong, by broadcast on net interface from which query was received F E D G Routers maintain group membership Host senders an IGMP report to join a group MulFcast routers periodically issue host membership query to determine liveness of group members Note: No explicit leave message from clients IGMP v2 added: IGMP: Improvements If mulfple routers, one with lowest IP elected querier Explicit leave messages for faster pruning Group- specific query messages IGMP v3 added: Source filtering: Join specifies mulfcast only from or all but from specific source addresses 27 IGMP: Parameters and Design Parameters Maximum report delay: 10 sec Membership query internal default: 125 sec Time- out interval: 270 sec = 2 * (query interval + max delay) Router tracks each a=ached network, not each peer Should clients respond immediately to queries? Random delay (from 0..D) to minimize responses to queries Only one response from single broadcast domain needed What if local networks are layer- 2 switched? L2 switches typically broadcast mulfcast traffic out all ports Or, IGMP snooping (sneak peek into layer- 3 contents), Cisco s proprietary protocols, or stafc forwarding tables 28 7

IP MulFcast is Best Effort 29 Challenges for Reliable MulFcast 30 Sender sends packet to IP mulfcast address Loss may affect mulfple receivers Send an ACK, much like TCP? ACK- implosion if all desfnafons ACK at once A Source does not know # of desfnafons F c E B D G How to retransmit? To all? One bad link effects enfre group Only where losses? Loss near sender makes retransmission as inefficient as replicated unicast NegaFve acknowledgments more common Scalable Reliable MulFcast 31 Handling Failure in SRM 32 Data packets sent via IP mulfcast Data includes sequence numbers Receiver mulfcasts a NAK Or send NAK to sender, who mulfcasts confirmafon Upon packet failure If failures relafvely rare, use NegaFve ACKs (NAKs) instead: Did not receive expected packet Sender issues heartbeats if no real traffic. Receiver knows when to expect (and thus NAK) Scale through NAK suppression If received a NAK or NCF, don t NAK yourself Add random delays before NAK ing Repair through packet retransmission From inifal sender From designated local repairer 8

PragmaFc General MulFcast (RFC 3208) 33 Outline today 34 Similar approach as SRM: IP mulfcast + NAKs but more techniques for scalability Hierarchy of PGM- aware network elements NAK suppression: Similar to SRM NAK eliminafon: Send at most one NAK upstream Or completely handle with local repair! Constrained forwarding: Repair data can be suppressed downstream if no NAK seen on that port Forward- error correcfon: Reduce need to NAK Works when only sender is mulfcast- able IP Anycast N desfnafons, 1 should receive the message Providing a service from mulfple network locafons Using roufng protocols for automated failover MulFcast protocols N desfnafons, N should receive the message Examples IP MulFcast and IGMP SRM (Scalable Reliable MulFcast) PGM (PragmaFc General MulFcast) 9