Routing on Overlay Networks. EECS 228 Abhay Parekh October 28, 2002

Similar documents
Distributed Computing over Communication Networks: Topology. (with an excursion to P2P)

Using Peer to Peer Dynamic Querying in Grid Information Services

Topological Properties

Architectural Framework for Large- Scale Multicast in Mobile Ad Hoc Networks

Data Center Content Delivery Network

8 Conclusion and Future Work

Adapting Distributed Hash Tables for Mobile Ad Hoc Networks

Content Delivery Network (CDN) and P2P Model

Introduction to Metropolitan Area Networks and Wide Area Networks

Definition. A Historical Example

PEER TO PEER FILE SHARING USING NETWORK CODING

Extending Networking to Fit the Cloud

Greedy Routing on Hidden Metric Spaces as a Foundation of Scalable Routing Architectures

Video Streaming with Network Coding

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

The Feasibility of Supporting Large-Scale Live Streaming Applications with Dynamic Application End-Points

Chapter 15: Distributed Structures. Topology

Lecture 23: Interconnection Networks. Topics: communication latency, centralized and decentralized switches (Appendix E)

Anonymous Communication in Peer-to-Peer Networks for Providing more Privacy and Security

Some questions... Graphs

Introducing Basic MPLS Concepts

OVERLAYING VIRTUALIZED LAYER 2 NETWORKS OVER LAYER 3 NETWORKS

RARP: Reverse Address Resolution Protocol

Peer-to-Peer Networks. Chapter 6: P2P Content Distribution

CS514: Intermediate Course in Computer Systems

Network layer: Overview. Network layer functions IP Routing and forwarding

Mapping the Gnutella Network: Macroscopic Properties of Large-Scale Peer-to-Peer Systems

VXLAN Bridging & Routing

Technology White Paper Capacity Constrained Smart Grid Design

Broadband Networks. Prof. Karandikar. Department of Electrical Engineering. Indian Institute of Technology, Bombay. Lecture - 26

Interconnection Networks. Interconnection Networks. Interconnection networks are used everywhere!

Behavior Analysis of TCP Traffic in Mobile Ad Hoc Network using Reactive Routing Protocols

File sharing using IP-Multicast

HPAM: Hybrid Protocol for Application Level Multicast. Yeo Chai Kiat

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

CS335 Sample Questions for Exam #2

How To Create A P2P Network

TOPOLOGIES NETWORK SECURITY SERVICES

Internet Content Distribution

5. Peer-to-peer (P2P) networks

Department of Computer Science Institute for System Architecture, Chair for Computer Networks. File Sharing

Naming vs. Locating Entities

A Peer-to-Peer File Sharing System for Wireless Ad-Hoc Networks

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

IPTV AND VOD NETWORK ARCHITECTURES. Diogo Miguel Mateus Farinha

Computer Networks. Main Functions

A Review on Efficient File Sharing in Clustered P2P System

Network Architecture and Topology

Intelligent Content Delivery Network (CDN) The New Generation of High-Quality Network

Router and Routing Basics

International Journal of Scientific & Engineering Research, Volume 4, Issue 11, November ISSN

An Introduction to Peer-to-Peer Networks

Internet Infrastructure Measurement: Challenges and Tools

Internet Protocol: IP packet headers. vendredi 18 octobre 13

The Role and uses of Peer-to-Peer in file-sharing. Computer Communication & Distributed Systems EDA 390

Disaster Recovery Design Ehab Ashary University of Colorado at Colorado Springs

Simple Solution for a Location Service. Naming vs. Locating Entities. Forwarding Pointers (2) Forwarding Pointers (1)

Peer-to-Peer Networks 02: Napster & Gnutella. Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg

P2P: centralized directory (Napster s Approach)

Module 5. Broadcast Communication Networks. Version 2 CSE IIT, Kharagpur

Level 2 Routing: LAN Bridges and Switches

Internetworking and Internet-1. Global Addresses

Efficient Content Location Using Interest-Based Locality in Peer-to-Peer Systems

System Interconnect Architectures. Goals and Analysis. Network Properties and Routing. Terminology - 2. Terminology - 1

SuperViz: An Interactive Visualization of Super-Peer P2P Network

Network Security TCP/IP Refresher

Limitations of Packet Measurement

Introduction to LAN/WAN. Network Layer

Chapter 4. Distance Vector Routing Protocols

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Evolution of Peer-to-Peer Systems

Large-Scale Distributed Systems. Datacenter Networks. COMP6511A Spring 2014 HKUST. Lin Gu

Location Information Services in Mobile Ad Hoc Networks

Internetworking II: VPNs, MPLS, and Traffic Engineering

QUALITY OF SERVICE METRICS FOR DATA TRANSMISSION IN MESH TOPOLOGIES

RESOURCE DISCOVERY IN AD HOC NETWORKS

Overview of Routing between Virtual LANs

Administrative Distance

Lecture 12: Link-state Routing"

1. Comments on reviews a. Need to avoid just summarizing web page asks you for:

Introduction to Computer Networks

Hyper Node Torus: A New Interconnection Network for High Speed Packet Processors

Overlay Networks and Tunneling Reading: 4.5, 9.4

DEMYSTIFYING ROUTING SERVICES IN SOFTWAREDEFINED NETWORKING

Layer 3 Routing User s Manual

Lecture 3: Scaling by Load Balancing 1. Comments on reviews i. 2. Topic 1: Scalability a. QUESTION: What are problems? i. These papers look at

Introduction to IP v6

TRILL Large Layer 2 Network Solution

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Giving life to today s media distribution services

Decentralized Peer-to-Peer Network Architecture: Gnutella and Freenet

Multiprotocol Label Switching (MPLS)

An integrated approach for P2P file sharing on multi-hop wireless networks

How To Provide Qos Based Routing In The Internet

IP Multicasting. Applications with multiple receivers

A Framework for Scalable Global IP-Anycast (GIA)

PSON: A Scalable Peer-to-Peer File Sharing System Supporting Complex Queries

VPN. Date: 4/15/2004 By: Heena Patel

Internetworking II: MPLS, Security, and Traffic Engineering

Internet Protocol Address

Transcription:

Routing on Overlay Networks EECS 228 Abhay Parekh parekh@eecs.berkeley.edu October 28, 2002

What is an overlay network? A network defined over another set of networks he overlay addresses its own nodes Links on one layer are network segments of lower layers Requires lower layer routing to be utilized A Overlaying mechanism is called tunneling Example: Virtual Private Networks Virtual topology defined via VPN nodes elecommuters appear as though they are on the corporate network Sessions are more secure Bits may traverse various kinds of underlying networks PSN, Frame Relay etc. A A October 28, 2002 Abhay K. Parekh: opics in Routing 2

Routing On the overlay Underlying Network October 28, 2002 Abhay K. Parekh: opics in Routing 3

Routing on the Overlay he underlying network induces a complete graph of connectivity No routing required! Underlying Network October 28, 2002 Abhay K. Parekh: opics in Routing 4

Routing on the Overlay he underlying network induces a complete graph of connectivity 100 10 200 90 But No routing required! One virtual hop may be many underlying hops away. 10 90 20 100 100 Latency and cost vary significantly over the virtual links State information may grow with E (n^2) 10 October 28, 2002 Abhay K. Parekh: opics in Routing 5

Routing Issues Underlying Network he underlying network induces a complete graph of connectivity But No routing required! One virtual hop may be many underlying hops away. Latency and cost vary significantly over the virtual links State information may grow with E (n^2) At any given time, the overlay network picks a connected sub-graph based on nearest neighbors How often can vary Also, structured (Chord) v/s unstructured (Gnutella) October 28, 2002 Abhay K. Parekh: opics in Routing 6

Routing Issues 3 1 4 2 5 he underlying network induces a complete graph of connectivity But No routing required! One virtual hop may be many underlying hops away. Latency and cost vary significantly over the virtual links State information may grow with E (n^2) At any given time, the overlay network picks a connected sub-graph based on nearest neighbors How often can vary Also, structured (Chord) v/s unstructured (Gnutella) he overlay network must ROUE! October 28, 2002 Abhay K. Parekh: opics in Routing 7

Routing Issues 1 2 Overlay network users may not be directly connected to the overlay nodes E.g. Akamai 3 4 5 October 28, 2002 Abhay K. Parekh: opics in Routing 8

Overlay Routing: Edge Mapping 3 1 4 2 5? IP(5) Overlay network users may not be directly connected to the overlay nodes E.g. Akamai User must be redirected to a close by overlay node Edge-Mapping, or redirection function is hard since # potential users enormous User clients not under direct control When overlay clients are directly connected the edge mapping function is obviated E.g. P2P: users/nodes colocated October 28, 2002 Abhay K. Parekh: opics in Routing 9

Overlay Routing: Edge Mapping 3 1 2? IP(5) Overlay nodes interconnect clients Enhance nature of connection Multicast Secure Low Loss Much easier to add functionality than to integrate into a router 4 5 October 28, 2002 Abhay K. Parekh: opics in Routing 10

Overlay Routing: Adding Function to the route 3 1 4 2 5 Overlay nodes interconnect clients Enhance nature of connection Multicast Secure Low Loss Much easier to add functionality than to integrate into a router Overlay nodes can become bottlenecks October 28, 2002 Abhay K. Parekh: opics in Routing 11

Overlay Routing: Resource Location B F B 3 1 4 A B C A D 2 D E 5 B? Overlay network may contain resources. Eg. Servers Files Client makes request for resource Overlay must search for closest node that has the resource E.g. find the least loaded server that has a piece of content and that is has low network latency to client October 28, 2002 Abhay K. Parekh: opics in Routing 12

Overlay Routing: Resource Location B F B F C 3 D E 1 4 D A B C B A D 2 D E A C 5 B? Overlay network may contain resources. Eg. Servers Files Client makes request for resource Overlay must search for closest node that has the resource E.g. find the least loaded server that has a piece of content and that is has low network latency to client A single index is not scalable Overlay launches a query to locate resource October 28, 2002 Abhay K. Parekh: opics in Routing 13

Overlay Routing: Resource Location B F B F C 3 D E 1 4 D A B C B A D 2 D E A C 5 B? Overlay network may contain resources. Eg. Servers Files Client makes request for resource Overlay must search for closest node that has the resource E.g. find the least loaded server that has a piece of content and that is has low network latency to client A single index is not scalable Overlay launches a query to locate resource Query is Routed through the overlay until object is located October 28, 2002 Abhay K. Parekh: opics in Routing 14

Overlay Routing: Resource Location B F B F C 3 D E 1 4 D A B C 4 4 B A D 2 D E A C 5 B? 4 Overlay network may contain resources. Eg. Servers Files Client makes request for resource Overlay must search for closest node that has the resource E.g. find the least loaded server that has a piece of content and that is has low network latency to client A single index is not scalable Overlay launches a query to locate resource Query is Routed through the overlay until object is located October 28, 2002 Abhay K. Parekh: opics in Routing 15

Overlay Routing: Resource Location B F B F C 3 D E 1 4 D A B C 4 4 B A D 2 D E A C 5 B? 4 Overlay network may contain resources. Eg. Servers Files Client makes request for resource Overlay must search for closest node that has the resource E.g. find the least loaded server that has a piece of content and that is has low network latency to client A single index is not scalable Overlay launches a query to locate resource Query is Routed through the overlay until object is located October 28, 2002 Abhay K. Parekh: opics in Routing 16

Summary wo kinds of overlays functions Overlay contains resources Overlay facilitates communication among other client applications wo kinds of virtual topologies Structured Unstructured wo kinds of client connectivty Direct: P2P Not direct: Akamai Overlay Network Functions Select Virtual Edges (fast or slow timescales) Overlay Routing Protocol Edge Mapping Resource Location Edge Mapping and Resource Location can be combined October 28, 2002 Abhay K. Parekh: opics in Routing 17

Example: Application Level Multicast Content Producer Media Distribution Network Content Producer Media Clients October 28, 2002 Abhay K. Parekh: opics in Routing 18

he Broadcast Internet Content Producer Content Producer October 28, 2002 Abhay K. Parekh: opics in Routing 19

Broadcast Overlay Architecture content management Media Delivery System Redirection Management Platform injection & real-time control network management monitoring & provisioning server management redirection management load balancing system availability viewer management subscriptions, PPV, monitoring, Neilson ratings, targeted advertising October 28, 2002 Abhay K. Parekh: opics in Routing 20

Broadcast Management Scales to millions Application-level information for management and tracking Works across multiple networks Content Producer event programming with ad-hoc query audience statistics October 28, 2002 Abhay K. Parekh: opics in Routing 21

Broadcast Manager Node Information Stream Switchover October 28, 2002 Abhay K. Parekh: opics in Routing 22

Policy Management October 28, 2002 Abhay K. Parekh: opics in Routing 23

Example: Content Addressable P2P Networks (CAN) Ratnaswamy et. al First generation P2P (Napster, Gnutella not scalable) CAN is one of several recent P2P architectures that impose a structure on the virtual topology locate objects via distributed hash tables DH Routes queries through the structured overlay attempt to distribute (object, location) pairs uniformly throughout the network support object lookup, insertion and deletion of objects efficiently. Others: Chord, Pastry, apestry October 28, 2002 Abhay K. Parekh: opics in Routing 24

CAN Virtual opology Pick a uniform hash function that maps an object to a point in [0,1] d. Divide the d-cube into zones and assign a node to a zone Store (object,location) pair in the zone that owns the zone for the hashed value of the object. he neighbors of a zone are defined as those nodes whose zones overlap over d-1 dimensions Neighbors of C are A and D Each node stores the addresses of its neighbors October 28, 2002 Abhay K. Parekh: opics in Routing 25

CAN Routing If node i wants to find out where object j is stored, it computes h(j) and then sends a lookup message to its neighbor that is closest to h(j). For efficiency assume that the space wraps around (is a torus) his continues until the message reaches the node that owns h(j). It then returns the location for object j For n equal zones in a d-can, each zone has about 2d neighbors Routing path lengths are O(n -d ). October 28, 2002 Abhay K. Parekh: opics in Routing 26

Adding/Deleting nodes New node picks a point P at random Assuming it can find some overlay node, it sends a join message which is routed to the node that owns that point When the message has reached P, the node divides itself in half along one of the dimensions (first x then y etc) Pairs are transferred and neighbor sets updated Similar reasoning handles departures and failures October 28, 2002 Abhay K. Parekh: opics in Routing 27

Relating Virtual opology to the Underlying Network Example: hree landmarks 0-30ms: level 0 31-100ms: level 1 101-300ms: level 2 Node j measures latencies of 10ms, 110ms, 40ms to the three landmarks. he bin of node j is (l 1,l 3,l 2 : 021) Neighbors should be close to each other in terms of latency on the underlying network Pick a set of well known landmark hosts Each node distributively computes its bin Orders the landmark set in increasing order of R from it. Latency is partitioned into levels hus, associated with each landmark, at each node is a rank and a level. hese values identify the bin October 28, 2002 Abhay K. Parekh: opics in Routing 28

Constructing the CAN overlay from Bins Let us say that there are B bins possible E.g. ignoring levels and assuming m landmarks there are B=m! bins Partition the CAN space into B equal parts Allocate nodes in bin b to points at random in the space corresponding to b. Popular values of b will have more neighbors Space not uniformly populated State requirements could be higher But the overlay routing paths will be more comensurate to the underlying network latencies October 28, 2002 Abhay K. Parekh: opics in Routing 29

Constructing Overlays with the Small World Property Suppose you were given the name of a person randomly chosen from anywhere in the world. How long is the acquaintance chain between you and this person? Stanley Miligram (kind of) showed empirically that on average the answer is SIX, even though most people don t know that many people (small # of neighbors) there is considerable overlap between the people two aquaintences know (neighborhoods overlap) he small world property is great for routing! Need he right topology A distributed routing algorithm to exploit the topology October 28, 2002 Abhay K. Parekh: opics in Routing 30

What are the requirements on the opology? Must have Low average degree Small diameter Neighborhood overlap (Clustering) wo extreme topologies Random graphs have the small world effect (small avg distance) but no clustering D-Lattice has all three properties but does not have the small world effect Watts and Strogatz Rewired lattice. Replace some lattice links with random edges (long range neighbors) Possess the small world property Path is polynomial in log n October 28, 2002 Abhay K. Parekh: opics in Routing 31

General Model Model J. Kleinberg 2x2 grid, and p,q,r Each node has an edge to all of its neighbors p hops away Each node has q edges picked such that prob that (j,k) is an edge is inversely proportional to d(j,k)^r r=0 yields the Watts Strogatz Model Question: If a message is to be routed between two nodes that have local information how many hops would it take on average? Should be at least polynomial in log n When routing table size constraints exist this is a critical question! Suppose the originating node knows its neighbors and the grid Best routing algorithm is exponential in minimum distance UNLESS r=2. Result holds even if the each node also knows the set of q edges thus far traversed by the message!! p=1, q=0 p=1, q=2 October 28, 2002 Abhay K. Parekh: opics in Routing 32

Intuition for negative result for extreme values of r Picking the right long contacts is crucial Chances are, need to pick several long contacts Distributed algorithm is blind in this respect If r<<2, the long contacts have very little to do with the grid, and can lead message on a random walk If r>>2, the long contacts are too clustered and are actually short themselves October 28, 2002 Abhay K. Parekh: opics in Routing 33

Somewhat finer grained reasoning Level sets from node u: A j is the set of nodes whose dist from dest is between 2 j+1 and 2 j When r=2, u s long contacts are equally likely to be in any A j A greedy algorithm that tries to route towards the destination has a good chance of being able to pick a useful long contact When r>2, bias is towards closer A j s so once far message tends to stay far for a while When r<2 bias is towards further A j s so even after the message is close, it may have to move away further (jump away) from the destination October 28, 2002 Abhay K. Parekh: opics in Routing 34

Recall Routing Subfunctions Addressing: Uniquely identify the nodes host IP address, group address, attributes set is dynamic! opology Update: Characterize and maintain connectivity Discover topology Measure distance metric(s) Dynamically provision (on slower timescale) Destination Discovery: Find node identifiers of the destination set Route Computation: Pick the tree (path) Kind of path: Multicast, Unicast Global or Distributed Algorithm Policy Hierarchy Switching: Forward the packets at each node October 28, 2002 Abhay K. Parekh: opics in Routing 35

Routing Subfunctions Addressing: Uniquely identify the nodes host IP address, group address, attributes Structured opology set is dynamic! opology Update: Characterize and maintain connectivity Discover topology Measure Add/Insert distance Nodes, metric(s) Binning Dynamically provision (on slower timescale) Destination Discovery: Find Resource node identifiers Location of the Edge destination Mapping set Route Computation: Pick the tree (path) Kind of path: Multicast, Unicast Application Level Routing. E..g streaming broadcast Global or Distributed Algorithm Policy Structured opology Hierarchy Switching: Forward the packets at each node October 28, 2002 Abhay K. Parekh: opics in Routing 36

Overlay Effectiveness: Performance v/s New Function Overlays add new functions to the network infrastructure much faster than by trying to integrate them in the router But when they are in the path (process every packet) Overlay nodes can create performance bottlenecks New end-to-end protocols may not work Peer-to-Peer networks in which the overlay nodes are end hosts of the underlying network are not in the path Generally better to improve performance by building an underlay and add functionality by building an overlay October 28, 2002 Abhay K. Parekh: opics in Routing 37

Routing Lectures Summary Routing is the most critical function of a network For it to scale it must be distributed and resilient to topological changes Routing in large systems is hierarchical for reasons of performance, administration and governance It is currently unknown how to design a robust routing protocol that yields low latency paths and that takes into account the dynamic nature of a large network It is currently unknown how to design a policy routing protocol for the internet that is resilient to router misconfiguration Overlay networks are quick and effective ways to add new functionality to the network he central problem in designing P2P networks involves solving a distributed search problem that involves routing. Routing is a wide open research area October 28, 2002 Abhay K. Parekh: opics in Routing 38