ANYCAST and MULTICAST READING: SECTION 4.4

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

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

Network Layer. IP Protocol Stack: Key AbstracHons. Best- Effort Global Packet Delivery. Circuit Switching (e.g., Phone Network)

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

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

IP Multicast. What is multicast?

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

ASM. Engineering Workshops

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

Configuring IGMP Snooping

Multicast Quick Start Configuration Guide

Multicast Communications

Multicast EECS 122: Lecture 16

CSCI-1680 Network Layer:

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

Multicast Technology White Paper

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

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

Advanced Network Training Multicast

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

Rendezvous Point Engineering

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

Internet Protocols Fall Lectures Inter-domain routing, mobility support, multicast routing Andreas Terzis

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

Broadcast and Multicast Routing

Financial Services Design for High Availability

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

Configuring IP Multicast Routing

CS November 2018

Lecture 6: Multicast

Configuring IP Multicast Routing

ECE 158A: Lecture 7. Fall 2015

Interdomain Routing Design for MobilityFirst

Configuring IP Multicast Routing

Configuring IP Multicast Routing

ETSF10 Internet Protocols Routing on the Internet

Communication Networks

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

Configuring PGM Host and Router Assist

Configuring Basic IP Multicast

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

TDC 363 Introduction to LANs

MULTICAST AND IGMPv3. Announcements. Today s Lecture. Multicast (No Sharing) Unicast. I. HW5 will be online today CIDR, subnets, routing

Table of Contents 1 IGMP Configuration 1-1

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

Module 7 Implementing Multicast

MULTICAST USE IN THE FINANCIAL INDUSTRY

UDLR Unidirectional Link Routing overview and examples

Table of Contents 1 MSDP Configuration 1-1

Internetworking. Problem: There is more than one network (heterogeneity & scale)

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

IP ADDRESSES, NAMING, AND DNS

Exercises to Communication Systems

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

FSOS Multicast Configuration Guide

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

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

CS November 2017

Bayeux: An Architecture for Scalable and Fault Tolerant Wide area Data Dissemination

CSCE 463/612 Networks and Distributed Processing Spring 2018

MLD. MLDv1 (defined in RFC 2710), which is derived from IGMPv2. MLDv2 (defined in RFC 3810), which is derived from IGMPv3.

Multicast and Quality of Service. Internet Technologies and Applications

Different Layers Lecture 20

Objectives. Chapter 10. Upon completion you will be able to:

Configuring Basic IP Multicast

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

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

Lecture 19: Multicast. CSE 123: Computer Networks Stefan Savage

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

Configuring MSDP. Overview. How MSDP operates. MSDP peers

Stateless Multicast with Bit Indexed Explicit Replication

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

Advanced Networking. Multicast

Computer Networks. Wenzhong Li. Nanjing University

Chapter 12 Network Protocols

Implementing IPv6 Multicast

An overview of how packets are routed in the Internet

Internet2 Multicast Workshop

Routing Protocols. Autonomous System (AS)

EECS 122, Lecture 13. Multicast Delivery. Multicast Delivery. Reasons for Multicast. Why not just Machine Gun? Multicast Example

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

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Configuring SSM. Finding Feature Information. Prerequisites for Configuring SSM

Chapter 5. RIP Version 1 (RIPv1) CCNA2-1 Chapter 5

IP Multicast Technology Overview

MPLS VPN. 5 ian 2010

ETSF10 Internet Protocols Routing on the Internet

This chapter describes how to configure the Cisco ASA to use the multicast routing protocol.

Configuring EIGRP. 2001, Cisco Systems, Inc.

IPv6 PIM. Based on the forwarding mechanism, IPv6 PIM falls into two modes:

Multicast Tool and Utility Commands

Routing Basics ISP/IXP Workshops

Multicast as an ISP service

Overlay and P2P Networks. Introduction and unstructured networks. Prof. Sasu Tarkoma

Ossification of the Internet

ITEC310 Computer Networks II

Lecture 19: Network Layer Routing in the Internet

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

Protecting DNS from Routing Attacks -Two Alternative Anycast Implementations

Transcription:

1 ANYCAST and MULTICAST READING: SECTION 4.4 COS 461: Computer Networks Spring 2011 Mike Freedman h>p://www.cs.princeton.edu/courses/archive/spring11/cos461/

2 Outline today IP Anycast N deshnahons, 1 should receive the message Providing a service from mulhple network locahons Using rouhng protocols for automated failover MulHcast protocols N deshnahons, N should receive the message Examples IP MulHcast and IGMP SRM (Scalable Reliable MulHcast) PGM (PragmaHc General MulHcast)

3 http://en.wikipedia.org/wiki/multicast

4 LimitaHons of DNS based failover Failover/load balancing via mulhple A records ;; ANSWER SECTION: www.cnn.com. 300 INA 157.166.255.19 www.cnn.com. 300 INA 157.166.224.25 www.cnn.com. 300 INA 157.166.226.26 www.cnn.com. 300 INA 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?

5 MoHvaHon for IP anycast 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 exishng protocols MulHple instances of a service share same IP address Each instance announces IP address / prefix in BGP / IGP RouHng infrastructure directs packets to nearest instance of the service Can use same selechon criteria as installing routes in the FIB No special capabilihes in servers, clients, or network

6 IP anycast in achon Announce 10.0.0.1/32 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B Announce 10.0.0.1/32

7 IP anycast in achon 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 10.0.0.1 /32 192.168.0.1 1 10.0.0.1 /32 192.168.0.2 2

8 IP anycast in achon 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B DNS lookup for h>p://www.server.com/ produces a single answer: www.server.com. IN A 10.0.0.1

9 IP anycast in achon 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 10.0.0.1 /32 192.168.0.1 1 10.0.0.1 /32 192.168.0.2 2

10 IP anycast in achon 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 10.0.0.1 /32 192.168.0.1 1 10.0.0.1 /32 192.168.0.2 2 Client

11 IP anycast in achon 192.168.0.1 Router 2 10.0.0.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 10.0.0.1 Server Instance B Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 10.0.0.1 /32 192.168.0.1 1 10.0.0.1 /32 192.168.0.2 2 Client

12 IP anycast in achon From client/router perspechve, topology could as well be: 192.168.0.1 Client Router 1 Router 2 10.0.0.1 Server Router 3 192.168.0.2 Router 4 Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 10.0.0.1 /32 192.168.0.1 1 10.0.0.1 /32 192.168.0.2 2

13 Downsides of IP anycast Many Tier 1 ISPs ingress filter prefixes > /24 Publish a /24 to get a single anycasted address: Poor uhlizahon Scales poorly with the # anycast groups Each group needs entry in global rouhng table Not trivial to deploy Obtain an IP prefix and AS number; speak BGP

14 Downsides of IP anycast Subject to the limitahons of IP rouhng No nohon of load or other applicahon layer metrics Convergence Hme can be slow (as BGP or IGP converge) Failover doesn t really work with TCP TCP is stateful: if switch deshnahon replicas, other server instances will just respond with RSTs May react to network changes, even if server online Root nameservers (UDP) are anycasted, li>le else

MulHcast protocols 15

16 MulHcasHng messages Simple applicahon mulhcast: Iterated unicast Client simply unicasts message to every recipient Pros: simple to implement, no network modificahons Cons: O(n) work on sender, network Advanced overlay mulhcast ( peer to peer ) Build receiver driven tree Pros: Scalable, no network modificahons Cons: O(log n) work on sender, network; complex to implement IP mulhcast Embed receiver driven tree in network layer Pros: O(1) work on client, O(# receivers) on network Cons: requires network modificahons; scalability concerns?

17 IP mulhcast in achon 192.168.0.1 Router 2 239.1.1.1 Server Instance A Client Router 1 Router 3 192.168.0.2 Router 4 239.1.1.1 Server Instance B Rou@ng Table from Router 1: Des@na@on Mask Next Hop Distance 192.168.0.0 /29 127.0.0.1 0 239.1.1.1 /32 192.168.0.1 1 239.1.1.1 /32 192.168.0.2 2

18 IP MulHcast Simple to use in applicahons MulHcast group defined by IP mulhcast address IP mulhcast addresses look similar to IP unicast addrs 224.0.0.0 to 239.255.255.255 (RPC 3171) 265 M mulhcast groups at most Best effort delivery only Sender issues single datagram to IP mulhcast address Routers delivery packets to all subnetworks that have a receiver belonging to the group Receiver driven membership Receivers join groups by informing upstream routers Internet Group Management Protocol (v3: RFC 3376)

19 IGMP v1 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., mulhcast addr) to which belong, by broadcast on net interface from which query was received Routers maintain group membership Host senders an IGMP report to join a group MulHcast routers periodically issue host membership query to determine liveness of group members Note: No explicit leave message from clients

20 IGMP v2 added: IGMP: Improvements If mulhple routers, one with lowest IP elected querier Explicit leave messages for faster pruning Group specific query messages IGMP v3 added: Source filtering: Join specifies mulhcast only from or all but from specific source addresses

21 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) Is a router tracking each a>ached peer? No, only each network, which are broadcast media 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 mulhcast traffic out all ports Or, IGMP snooping (sneak peek into layer 3 contents), Cisco s proprietary protocols, or stahc forwarding tables

22 IP mulhcast oqen best effort ApplicaHon protocols on top of UDP Within enterprises Commercial stock exchanges MulHmedia content delivery Streaming audio, video, etc. Everybody in group listening/watching same content IPTV Many applicahons insensihve to loss, and networks managed/provisioned so li>le/no loss

What if we want reliability? 23

24 Challenges for reliable mulhcast Send an ACK, much like TCP? ACK implosion if all deshnahons ACK at once Source does not know # of deshnahons How to retransmit? To all? One bad link effects enhre group Only where losses? Loss near sender makes retransmission as inefficient as replicated unicast Once size fits all? Heterogeneity: receivers, links, group sizes Not all mulhcast apps need reliability of type offered by TCP. Some can tolerate reordering, delay, etc.

25 Scalable Reliable MulHcast Receives all packets or unrecoverable data loss Data packets sent via IP mulhcast ODATA includes sequence numbers Upon packet failure ACK s don t scale, so If failures relahvely rare, use NegaHve ACKs (NAKs) instead: Did not receive expected packet What if it s the last packet? Sender issues heartbeats if no real traffic. Receiver knows when to expect (and thus NAK)

26 Handling failure in SRM Receiver mulhcasts a NAK Or send NAK to sender, who mulhcasts NAK confirmahon (NCF) Scale through NAK suppression If received a NAK or NCF, don t NAK yourself What do we need to do to get adequate suppression? Add random delays before NAK ing But what if the mulhcast group grows big? Delay needs to grow lack of efficiency Repair through packet retransmission (RDATA) From inihal sender From designated local repairer (DLR IETF loves acronyms!)

27 PragmaHc General MulHcast (RFC 3208) Similar approach as SRM: IP mulhcast + NAKs but more techniques for scalability Hierarchy of PGM aware network elements NAK suppression: Similar to SRM NAK eliminahon: 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 correchon: Reduce need to NAK Works when only sender is mulhcast able

28 Outline today IP Anycast N deshnahons, 1 should receive the message Providing a service from mulhple network locahons Using rouhng protocols for automated failover MulHcast protocols N deshnahons, N should receive the message Examples IP MulHcast and IGMP SRM (Scalable Reliable MulHcast) PGM (PragmaHc General MulHcast)