Computer Networks CSE 434 Fall 2009 Sandeep K. S. Gupta Arizona State University Research Experience.

Slides:



Advertisements
Similar presentations
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April A note on the use.
Advertisements

Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
CompSci 356: Computer Network Architectures Lecture 21: Content Distribution Chapter 9.4 Xiaowei Yang
Peer-to-Peer Networking Marina Papatriantafilou CSE Department, Distributed Computing and Systems group Ack: Many of the slides are adaptation of slides.
Road Map Application basics Web FTP DNS P2P DHT.
No Class on Friday There will be NO class on: FRIDAY 1/30/15.
2: Application Layer P2P applications and Sockets.
CSE 124 Networked Services Fall 2009 B. S. Manoj, Ph.D 11/03/2009CSE 124 Network Services FA 2009 Some of these.
1CS 6401 Peer-to-Peer Networks Outline Overview Gnutella Structured Overlays BitTorrent.
CS1652 September 10 th, 2013 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights.
Chapter 2, slide: 1 ECE/CS 372 – introduction to computer networks Lecture 5 Announcements: r Lab1 is due today r Lab2 is posted and is due next Tuesday.
Lecture 6 Chapter 2 Application Layer
Introduction 1 Lecture 8 Application Layer (DNS, p2p) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
P2P File Sharing Systems
Content Distribution March 8, : Application Layer1.
INTRODUCTION TO PEER TO PEER NETWORKS Z.M. Joseph CSE 6392 – DB Exploration Spring 2006 CSE, UT Arlington.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Lecture05: Application layer r Principles of network applications r DNS r P2P and DHT.
By Shobana Padmanabhan Sep 12, 2007 CSE 473 Class #4: P2P Section 2.6 of textbook (some pictures here are from the book)
Application Layer – Peer-to-peer UIUC CS438: Communication Networks Summer 2014 Fred Douglas Slides: Fred, Kurose&Ross (sometimes edited)
Throughput: Internet scenario
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Application Layer2-1 Chapter 2: outline 2.1 principles of network applications – app architectures – app requirements 2.2 Web and HTTP 2.3 FTP 2.4 electronic.
Application layer Zeinab Movahedi Some slides are from Computer networks course thought by Jennifer Rexford at Princeton University.
Content Distribution March 6, : Application Layer1.
Introduction of P2P systems
Computer Networks CSE 434 Fall 2009 Sandeep K. S. Gupta Arizona State University Research Experience.
Chapter 2: Application layer
2: Application Layer1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
P2P Networking and Content Distribution
2: Application Layer1 Chapter 2 outline r 2.1 Principles of app layer protocols r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail r 2.5 DNS r 2.6 Socket.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking DNS 0.
Content Distribution March 2, : Application Layer1.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
1 Peer-to-Peer Systems r Application-layer architectures r Case study: BitTorrent r P2P Search and Distributed Hash Table (DHT)
2: Application Layer1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP r.
Peer-to-Peer (P2P) networks and applications. What is P2P? r “the sharing of computer resources and services by direct exchange of information”
Peer-to-Peer File Sharing Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Peer-to-Peer Networks Hongli Luo CEIT, IPFW. r Topics m Application architecture m P2P file sharing m P2P networks: Napster Gnutella KaAzA Bittorrent.
Lecture 2 Distributed Hash Table
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
2: Application Layer 1 Chapter 2 Application Layer Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April.
Advance Computer Networks Lecture#06
ADVANCED COMPUTER NETWORKS Peer-Peer (P2P) Networks 1.
Chapter 2 Application Layer Application 2-1. Chapter 2: Application layer 2.1 Principles of network applications 2.2 Web and HTTP 2.3 FTP 2.4 Electronic.
INTERNET TECHNOLOGIES Week 10 Peer to Peer Paradigm 1.
No Class on Friday There will be NO class on: FRIDAY 1/29/15 1.
2: Application Layer 1 CMPT 371 Data Communications and Networking Chapter 2 Application Layer - 2.
P2P Search COP6731 Advanced Database Systems. P2P Computing  Powerful personal computer Share computing resources P2P Computing  Advantages: Shared.
P2P Search COP P2P Search Techniques Centralized P2P systems  e.g. Napster, Decentralized & unstructured P2P systems  e.g. Gnutella.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
PEAR TO PEAR PROTOCOL. Pure P2P architecture no always-on server arbitrary end systems directly communicate peers are intermittently connected and change.
CS1652 September 6 th, 2012 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 24 – Introduction to Peer-to-Peer (P2P) Systems Klara Nahrstedt (presented by Long Vu)
II -a: Application Layer II. Application Layer (part b) lectured by Chang-jin Suh Soongsil University, Dep. of Computer Science Tel :
05 - P2P applications and Sockets
An example of peer-to-peer application
Server-client vs. P2P: example
Chapter 2: outline 2.1 principles of network applications
Communication Networks
CMPE 252A : Computer Networks
Part 4: Peer to Peer - P2P Applications
Chapter 2 Application Layer
CMPE 252A : Computer Networks
Pure P2P architecture no always-on server
Chapter 2 Application Layer
Chapter 2 Application Layer - 2
Presentation transcript:

Computer Networks CSE 434 Fall 2009 Sandeep K. S. Gupta Arizona State University Research Experience for Undergraduates (REU)

Announcements and Agenda  Midterm 1: Oct 14 th, 2009 (revised)  Review for Midterm Oct 12 th  HW 3 – due Oct 12 th.  Term Project Group membership and topic due today.  Summary last class  P2P cont.  File distribution Bit-Torrent  Distributed Index (database) maintenance using DHT  Skype – using P2P for user location and NAT traversal  App Layer Recap

2: Application Layer 3 Pure P2P architecture  no always-on server  arbitrary end systems directly communicate  peers are intermittently connected and change IP addresses  Three topics:  File distribution  Searching for information  Case Study: Skype peer-peer

File Distribution: Server-Client vs P2P Question : How much time to distribute file from one server to N peers? usus u2u2 d1d1 d2d2 u1u1 uNuN dNdN Server Network (with abundant bandwidth) File, size F u s : server upload bandwidth u i : peer i upload bandwidth d i : peer i download bandwidth

Remember Throughput: Internet scenario 10 connections (fairly) share backbone bottleneck link R bits/sec RsRs RsRs RsRs RcRc RcRc RcRc R  End-to-end throughput constrained by bottleneck link  per-connection end-end throughput: min(R c,R s,R/10)  in practice: R c or R s is often bottleneck

Note on Lower Bound Analysis  Lower Bound (LB) on performance: No algorithm (protocol) can do better than a LB.  Tight Lower Bound: A LB is tight (achievable) when there exists an algorithm which achieves that LB  Scheme (organization) A is necessarily better than scheme B  if (tight) LB A < (tight) LB B  If LB1 and LB2 are two lower bounds for a scheme then max(LB1, LB2) is a tighter LB for the scheme

Following slides  Establish lower bound on CS file download (dcs) and lower bound on P2P file (dp2p)  These can be shown to be tight (under some assumptions)  show that dcs >> dp2p  Show that p2p download is scalable – download time is insensitive to client population size - whereas cs download is not – download time increases linearly with the client population

File distribution time: server-client usus u2u2 d1d1 d2d2 u1u1 uNuN dNdN Server Network (with abundant bandwidth) F  server sequentially sends N copies:  NF/u s time  client i takes F/d i time to download increases linearly in N (for large N) = d cs = max { NF/u s, F/min(d i ) } i Time to distribute F to N clients using client/server approach

2: Application Layer 9 File distribution time: P2P usus u2u2 d1d1 d2d2 u1u1 uNuN dNdN Server Network (with abundant bandwidth) F  server must send one copy: F/u s time  client i takes F/d i time to download  NF bits must be downloaded (aggregate)  fastest possible upload rate: u s +  u i d P2P = max { F/u s, F/min(d i ), NF/(u s +  u i ) } i

2: Application Layer 10 Server-client vs. P2P: example Client upload rate = u, F/u = 1 hour, u s = 10u, d min ≥ u s

2: Application Layer 11 File distribution: BitTorrent tracker: tracks peers participating in torrent torrent: group of peers exchanging chunks of a file obtain list of peers trading chunks peer r P2P file distribution

2: Application Layer 12 BitTorrent (1)  file divided into 256KB chunks.  peer joining torrent:  has no chunks, but will accumulate them over time  registers with tracker to get list of peers, connects to subset of peers (“neighbors”)  while downloading, peer uploads chunks to other peers.  peers may come and go  once peer has entire file, it may (selfishly) leave or (altruistically) remain

2: Application Layer 13 BitTorrent (2) Pulling Chunks  at any given time, different peers have different subsets of file chunks  periodically, a peer (Alice) asks each neighbor for list of chunks that they have.  Alice sends requests for her missing chunks  rarest first Sending Chunks: tit-for-tat r Alice sends chunks to four unchoked neighbors currently sending her chunks at the highest rate  re-evaluate top 4 every 10 secs r every 30 secs: randomly select another peer, starts sending chunks  newly chosen peer may join top 4  “optimistically unchoke”

BitTorrent: Tit-for-tat (1) Alice “optimistically unchokes” Bob (2) Alice becomes one of Bob’s top-four providers; Bob reciprocates (3) Bob becomes one of Alice’s top-four providers With higher upload rate, can find better trading partners & get file faster!

Distributed Hash Table (DHT)  Index (simple database) is crucial for many P2P applications – it is useful in locating an item (e.g. a file (song) ).  DHT = distributed (structured) P2P database  Database has (key, value) pairs;  key: ss number; value: human name  key: content type; value: IP address  Peers query DB with key  DB returns values that match the key  Peers can also insert (key, value) peers

Example: Bit-Torrent Tracker  Uses (Kandemlia) DHT  Key is torrent identifier  Value is IP addresses of all the peers currently participating in the torrent  A newly arriving BT peer: queries the tracker with torrent ID to find a peer responsible for the identifier  It then queries the peer to get a list of other peers in the torrent.

Important Issues  Decentralization  Scalability  Fault-Tolerance

DHT Identifiers  Assign integer identifier to each peer in range [0,2 n -1].  Each identifier can be represented by n bits.  Require each key to be an integer in same range.  To get integer keys, hash original key.  Hash Function: many-to-one function for which two different inputs can have the same output, but the likelihood of this is extremely small  eg, key = h(“Led Zeppelin IV”)  This is why they call it a distributed “hash” table

How to assign keys to peers?  Central issue:  Assigning (key, value) pairs to peers.  Rule: assign key to the peer that has the closest ID.  Convention in lecture: closest is the immediate successor of the key.  Ex: n=4; peers: 1,3,4,5,8,10,12,14;  key = 13, then successor peer = 14  key = 15, then successor peer = 1

Circular DHT (1)  Each peer only aware of immediate successor and predecessor.  “Overlay network” over “underlay network”

Circle DHT (2) Who’s resp for key 1110 ? I am O(N) messages on avg to resolve query, when there are N peers 1110 Define closest as closest successor

Circular DHT with Shortcuts  Each peer keeps track of IP addresses of predecessor, successor, short cuts.  Reduced from 6 to 2 messages.  Possible to design shortcuts so O(log N) neighbors, O(log N) messages in query Who’s resp for key 1110?

Peer Churn  Peer 5 abruptly leaves  Peer 4 detects; makes 8 its immediate successor; asks 8 who its immediate successor is; makes 8’s immediate successor its second successor.  What if peer 13 wants to join? To handle peer churn, require each peer to know the IP address of its two successors. Each peer periodically pings its two successors to see if they are still alive.

2: Application Layer 24 P2P Case study: Skype  inherently P2P: pairs of users communicate.  proprietary application-layer protocol (inferred via reverse engineering)  hierarchical overlay with SNs  Index maps usernames to IP addresses; distributed over SNs Skype clients (SC) Supernode (SN) Skype login server

2: Application Layer 25 Peers as relays  Problem when both Alice and Bob are behind “NATs”.  NAT prevents an outside peer from initiating a call to insider peer  Solution:  Using Alice’s and Bob’s SNs, Relay is chosen  Each peer initiates session with relay.  Peers can now communicate through NATs via relay

Summary Application Layer  At the edge of the network, Programmable, Open  Application Layer Protocols  Structure: Client-Server, P2P  Core Intenet Fuctionality at App Layer: DNS  Examples: HTTP, FTP, SMTP  Issues: Addressing, Service needed along different dimensions: reliability, throughput, security, communication abstraction (different types of group communication) Support from Transport Layers  Protocol Design Issues:  Separate or Combined Data and Control Channel  Stateful versus Stateless  Push versus Pull  Getting across NAT  Performance,  Scalability,  Fault-tolerance

What’s Next?  HW 3 has been posted – make sure you start working on it ASAP:  Some optional questions to help you prepare for midterm  Next Class:  Programming Assignment Due  Quiz on App Layer  Chapter 4: Routing