Network Technologies essentials Week 9: Distributed file sharing & multimedia Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,

Slides:



Advertisements
Similar presentations
Network Technologies essentials Week 2: Physical layer & direct links Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,
Advertisements

Incentives Build Robustness in BitTorrent Bram Cohen.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 28 Real-Time Traffic over the Internet.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
User Control of Streaming Media: RTSP
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Application Layer – Lecture.
UNCW UNCW SIGGRAPH 2002 Topic #3: Continuous Media in Wired and Wireless Environments Ronald J. Vetter Department of Computer Science University of North.
VoIP Using SIP/RTP by George Fu, UCCS CS 522 Semester Project Fall 2004.
Part 1: Overview of Web Systems Part 2: Peer-to-Peer Systems Internet Computing Workshop Tom Chothia.
SIP, Session Initiation Protocol Internet Draft, IETF, RFC 2543.
Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss r RTP r Diff-serv, Int-serv, RSVP.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
1 Computer Networks Transport Layer Protocols. 2 Application-layer Protocols Application-layer protocols –one “piece” of an app –define messages exchanged.
CSE 461 University of Washington1 Topic Peer-to-peer content delivery – Runs without dedicated infrastructure – BitTorrent as an example Peer.
CS640: Introduction to Computer Networks
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
RTSP Real Time Streaming Protocol
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Application Layer Chapter 7.
Network Technologies essentials Week 4: Internetworking Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of.
Network Technologies essentials Week 8: TCP congestion control Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
Network Technologies essentials Week 9: Applications: DNS and HTTP Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Transport Layer Chapter 6.
What makes a network good? Ch 2.1: Principles of Network Apps 2: Application Layer1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
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.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
2: Application Layer 1 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,
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Part.
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Network Technologies essentials Week 5: Routing Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of Washington.
The Application Layer Chapter Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall,
HUAWEI TECHNOLOGIES CO., LTD. Page 1 Survey of P2P Streaming HUAWEI TECHNOLOGIES CO., LTD. Ning Zong, Johnson Jiang.
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
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.
Network Technologies essentials Week 3: Retransmission, sharing links, switching Compilation made by Tim Moors, UNSW Australia Original slides by David.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 28 Multimedia.
Chapter 28. Network Management Chapter 29. Multimedia
Omar A. Abouabdalla Network Research Group (USM) SIP – Functionality and Structure of the Protocol SIP – Functionality and Structure of the Protocol By.
B IT T ORRENT T ECHNOLOGY Anthony Pervetich. H ISTORY Bram Cohen Designed the BitTorrent protocol in April 2001 Released July 2, 2001 Concept Late 90’s.
Multimedia and Networks. Protocols (rules) Rules governing the exchange of data over networks Conceptually organized into stacked layers – Application-oriented.
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
PPSP BAR BOF meeting 74th IETF – San Francisco, CA, USA March, 2009 P2P Streaming Protocol (PPSP) Requirements Ning Zong,Huawei Technologies Yunfei Zhang,China.
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Ch 6. Multimedia Networking Myungchul Kim
Bit Torrent Nirav A. Vasa. Topics What is BitTorrent? Related Terms How BitTorrent works Steps involved in the working Advantages and Disadvantages.
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
Communication Networks NETW 501 Tutorial 2
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
An example of peer-to-peer application
Chapter 1 Introduction Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011.
The Transport Layer Chapter
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Chapter 25 Multimedia TCP/IP Protocol Suite
Multimedia and Networks
Content Distribution Networks + P2P File Sharing
Networking for Home and Small Businesses – Chapter 6
Content Distribution Networks + P2P File Sharing
Presentation transcript:

Network Technologies essentials Week 9: Distributed file sharing & multimedia Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of Washington ISBN-10: © 2014 For the book A. Tanenbaum and D. Wetherall: Computer Networks, 5 th ed, Prentice-Hall, 2011A. Tanenbaum and D. Wetherall: Computer Networks, 5 th ed, Prentice-Hall, 2011 Videos 8-6, 8-7, 8-9 and 9-1 to 9-3

Computer Networks2 Web Caching Users often revisit web pages – Big win from reusing local copy! – This is caching Key question: – When is it OK to reuse local copy? Network Cache Local copies Server 8-6.3

Web Caching (4) Putting the pieces together: Computer Networks

Computer Networks4 After CDNs (2) Benefits assuming popular content: – Reduces server, network load – Improves user experience (PLT) Source User... Replica 8-7.6

Content Delivery Network Computer Networks

Content Delivery Network (2) DNS resolution of site gives different answers to clients – Tell each client the site is the nearest replica (map client IP) Computer Networks

Computer Networks7 P2P Challenges No servers on which to rely – Communication must be peer-to-peer and self-organizing, not client-server – Leads to several issues at scale … Peer 8-9.5

Computer Networks8 P2P Challenges (2) 1.Limited capabilities – How can one peer deliver content to all other peers? 2.Participation incentives – Why will peers help each other? 3.Decentralization – How will peers find content? 8-9.6

Computer Networks9 BitTorrent Protocol Steps to download a torrent: 1.Start with torrent description 2.Contact tracker to join and get list of peers (with at least seed peer) 2.Or, use DHT index for peers 3.Trade pieces with different peers 4.Favor peers that upload to you rapidly; “choke” peers that don’t by slowing your upload to them

BitTorrent Protocol (2) All peers (except seed) retrieve torrent at the same time Computer Networks

Computer Networks11 Network Delay (2) Network delay is variable – Message latency plus queuing delay – Variability in delay is called jitter Delay (msec) Fraction (PDF) Latency Queuing 9-2.4

Computer Networks12 Playout Buffer (2) Media arrival curve determines time in playout buffer and deadline Time Media timestamp Playout Buffering Too late! 9-2.9

RTP (Real-time Transport Protocol) Used to carry media on top of best effort UDP (§6.4.3) – Header has media format, timestamp, sequence number, etc. – Media follows in standard formats, e.g., G.711, MP4 Computer Networks

Computer Networks14 SIP Signaling (2) Signaling for call control – Like HTTP, uses simple method/response codes – Runs on UDP or TCP – SIP proxy servers and registrars provide mobility (not shown) INVITE 180 RINGING 200 OK Accept call BYE RTP media 200 OK ACK Hang up

Handling Bandwidth Send file in one of multiple encodings – Higher quality encodings require more bandwidth – Select best encoding given available bandwidth Computer Networks15 By Toytoy, CC-BY-SA-3.0, from Wikimedia Commons 23:1 46:1 144:1 15:1 Higher quality More bandwidth Lower quality Less bandwidth (JPEG example) 9-3.6

Computer Networks16 Streaming with HTTP Fetch media description data – Gives index of clips, rates Fetch small segments – Put in playout buffer Adapt selection of encoding – Based on buffer occupancy Evolving standards, e.g., DASH – Leverages HTTP and HTML5 – Server is otherwise stateless GET INDEX GET MEDIA

END © 2013 D. Wetherall Slide material from: TANENBAUM, ANDREW S.; WETHERALL, DAVID J., COMPUTER NETWORKS, 5th Edition, © Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey Computer Networks17