Lecture 6 - Other Distributed Systems CSE 490h – Introduction to Distributed Computing, Spring 2007 Except as otherwise noted, the content of this presentation.

Slides:



Advertisements
Similar presentations
Inference without the Engine!. What is EZ-Xpert 3.0? EZ-Xpert is a Rapid Application Development (RAD) environment for creating fast and accurate rule-based.
Advertisements

CS 443 Advanced OS Fabián E. Bustamante, Spring 2005 Resource Containers: A new Facility for Resource Management in Server Systems G. Banga, P. Druschel,
NDN in Local Area Networks Junxiao Shi The University of Arizona
Using DSVM to Implement a Distributed File System Ramon Lawrence Dept. of Computer Science
By: Chris Hayes. Facebook Today, Facebook is the most commonly used social networking site for people to connect with one another online. People of all.
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
Name Services Jessie Crane CPSC 550. History ARPAnet – experimental computer network (late 1960s) hosts.txt – a file that contained all the information.
CSCD 433/533 Advanced Computer Networks Lecture 1 Course Overview Fall 2011.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Election AlgorithmsCS-4513 D-term Election Algorithms CS-4513 Distributed Computing Systems (Slides include materials from Operating System Concepts,
Application Layer At long last we can ask the question - how does the user interface with the network?
EEC-681/781 Distributed Computing Systems Lecture 3 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Distributed Information Systems - The Client server model
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
Virtual Network Servers. What is a Server? 1. A software application that provides a specific one or more services to other computers  Example: Apache.
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
ES 101. Module 3 Domain Name System (DNS). Last Lecture Routing and IP addressing.
1 Content Distribution Networks. 2 Replication Issues Request distribution: how to transparently distribute requests for content among replication servers.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
For more notes and topics visit:
Research on cloud computing application in the peer-to-peer based video-on-demand systems Speaker : 吳靖緯 MA0G rd International Workshop.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
1 Chapter Client-Server Interaction. 2 Functionality  Transport layer and layers below  Basic communication  Reliability  Application layer.
1 Lecture 20: Parallel and Distributed Systems n Classification of parallel/distributed architectures n SMPs n Distributed systems n Clusters.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED.
Internet Application. understanding Addresses Routing of Instant Messaging Collaborative Computing Grid Social networking Forums Societies.
Microsoft Active Directory(AD) A presentation by Robert, Jasmine, Val and Scott IMT546 December 11, 2004.
Scalable Web Server on Heterogeneous Cluster CHEN Ge.
Loosely Coupled Parallelism: Clusters. Context We have studied older archictures for loosely coupled parallelism, such as mesh’s, hypercubes etc, which.
Introduction. Readings r Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 3 m Note: All figures from this book.
Introduction to dCache Zhenping (Jane) Liu ATLAS Computing Facility, Physics Department Brookhaven National Lab 09/12 – 09/13, 2005 USATLAS Tier-1 & Tier-2.
BOINC.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
DISTRIBUTED COMPUTING Introduction Dr. Yingwu Zhu.
Server Virtualization
Lecture 6 Page 1 Advanced Network Security Review of Networking Basics Advanced Network Security Peter Reiher August, 2014.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
NUOL Internet Application Services Midterm presentation 22 nd March, 2004.
1 Client-Server Interaction. 2 Functionality Transport layer and layers below –Basic communication –Reliability Application layer –Abstractions Files.
ITGS Network Architecture. ITGS Network architecture –The way computers are logically organized on a network, and the role each takes. Client/server network.
Lecture 4 Page 1 CS 111 Online Modularity and Virtualization CS 111 On-Line MS Program Operating Systems Peter Reiher.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
3/12/2013Computer Engg, IIT(BHU)1 CLOUD COMPUTING-1.
Component 4: Introduction to Information and Computer Science Unit 7: Networks & Networking Lecture 1 This material was developed by Oregon Health & Science.
Web Technologies Lecture 13 Introduction to cloud computing.
G046 Lecture 04 Task C Briefing Notes Mr C Johnston ICT Teacher
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
PARALLEL AND DISTRIBUTED PROGRAMMING MODELS U. Jhashuva 1 Asst. Prof Dept. of CSE om.
Building Preservation Environments with Data Grid Technology Reagan W. Moore Presenter: Praveen Namburi.
Introduction. Internet Worldwide collection of computers and computer networks that link people to businesses, governmental agencies, educational institutions,
CSCD 433/533 Advanced Computer Networks Lecture 1 Course Overview Spring 2016.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
BIG DATA/ Hadoop Interview Questions.
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CLOUD COMPUTING
Principles of Network Applications
Software Design and Architecture
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
CHAPTER 3 Architectures for Distributed Systems
Introduction to Cloud Computing
Chapter 16: Distributed System Structures
Advanced Operating Systems
Parallel and Multiprocessor Architectures – Shared Memory
Database System Architectures
Message Passing Systems Version 2
Message Passing Systems
Presentation transcript:

Lecture 6 - Other Distributed Systems CSE 490h – Introduction to Distributed Computing, Spring 2007 Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.

Outline DNS BOINC PlanetLab OLPC & Ad-hoc Mesh Networks Lecture content wrap-up

DNS: The Distributed System in the Distributed System

Domain Name System Mnemonic identifiers work considerably better for humans than IP addresses “ Surely you mean !” Who maintains the mappings from name  IP?

A Manageable Problem © 2006 Computer History Museum. All rights reserved.

In the beginning… Every machine had a file named hosts.txt Each line contained a name/IP mapping New hosts files were updated and distributed via … This clearly wasn’t going to scale

DNS Implementations Modern DNS system first proposed in 1983 First implementation in 1984 (Paul Mockapetris) BIND (Berkeley Internet Name Domain) written by four Berkeley students in Many other implementations today

Hierarchical Naming DNS names are arranged in a hierarchy: Entries are either subdomains or hostnames subdomains contain more subdomains, or hosts (up to 127 levels deep!) Hosts have individual IP addresses

Mechanics: Theory DNS Recurser (client) parses address from right to left Asks root server (with known, static IP address) for name of first subdomain DNS server Contacts successive DNS servers until it finds the host

Mechanics: In Practice ISPs provide a DNS recurser for clients DNS recursers cache lookups for period of time after a request Greatly speeds up retrieval of entries and reduces system load

BOINC

What is BOINC? “Berkeley Open Infrastructure for Network Computing” Platform for Internet-wide distributed applications Volunteer computing infrastructure  Relies on many far-flung users volunteering spare CPU power

Some Facts 1,000,000+ active nodes 521 TFLOPS of computing power 20 active projects Malaria Control…) and several more in development (Current as of March 2007)

Comparison to MapReduce Both are frameworks on which “useful” systems can be built Does not prescribe particular programming style Much more heterogeneous architecture Does not have a formal aggregation step Designed for much longer-running systems (months/years vs. minutes/hours)

Architecture Central server runs LAMP architecture for web + database End-users run client application with modules for actual computation BitTorrent used to distribute data elements efficiently

System Features Homogenous redundancy Work unit “trickling” Locality scheduling Distribution based on host parameters

Client software Available as regular application, background “service”, or screensaver Can be administered locally or LAN- administered via RPC Can be configured to use only “low priority” cycles

Client/Task Interaction Client software runs on variety of operating systems, each with different IPC Uses shared memory message passing to transmit information from “manager” to actual tasks and vice versa

Why Participate? Sense of accomplishment, community involvement, or scientific duty Stress testing machines/networks Potential for fame (if your computer “finds” an alien planet, you can name it!) “Bragging rights” for computing more units  “BOINC Credits”

Credit & Cobblestones Work done is rewarded with “cobblestones” 100 cobblestones = 1 day of CPU time for a computer with performance equaling 1,000 double-precision floating-point MIPS (Whetstone) & 1,000 integer VAX MIPS (Dhrystone) Computers are benchmarked by the BOINC system and receive credit appropriate to their machine

Anti-Cheating Measures Work units are computed redundantly by several different machines, and results are compared by the central server for consistency Credit is awarded after the internal server validates the returned work units Work units must be returned before a deadline

Conclusions Versatile infrastructure  SETI tasks take a few hours  Climate simulation tasks take months  Network monitoring tasks are not CPU-bound at all! Scales extremely well to internet-wide applications Provides another flexible middleware layer to base distributed applications on Volunteer computing comes with add’l considerations (rewards, cheating)

PlanetLab

What if you wanted to: Test a new version of Bittorrent that might generate GB’s and GB’s of data? Design a new distributed hashtable algorithm for thousands of nodes? Create a gigantic caching structure that mirrored web pages in several sites across the USA?

Problem Similarities Each of these problems requires:  Hundreds or thousands of servers  Geographic distribution  An isolated network for testing and controlled experiments Developing one-off systems to support these would be  Costly  Redundant

PlanetLab A multi-university effort to build a network for large-scale simulation, testing, and research “Simulate the Internet”

Usage Stats Servers: 722+ Slices: 600+ Users: Bytes-per-day: TB IP-flows-per-day: 190M Unique IP-addrs-per-day: 1M As of Fall, 2006

Project Goals Supports short- and long-term research goals System put up “as fast as possible” – PlanetLab design evolves over time to meet changing needs  PlanetLab is a process, not a result

Simultaneous Research Projects must be isolated from one another Code from several researchers:  Untrustworthy? Possibly buggy?  Intellectual property issues? Time-sensitive experiments must not interfere with one another Must provide realistic workload simulations

Architecture Built on Linux, ssh, other standard tools  Provides “normal” environment for application development Hosted at multiple universities w/ separate admins  Requires trust relationships with respect to previous goals

Architecture (cont.) Network is divided into “slices” – server pools created out of virtual machines Trusted intermediary “PLC” system grants access to network resources  Allows universities to specify who can use slices at each site  Distributed trust relationships  Central system control  Federated control

Resource allocation PLC authenticates users and understands relationships between principals; issues tickets SHARP system at site validates ticket + returns lease

User Verification Public-key cryptography used to sign modules entered into PlanetLab  X SSL keys are used by PLC + slices to verify user authenticity  Keys distributed “out of band” ahead of time

Final Thoughts Large system with complex relationships Currently upgrading to version 4.0 New systems (GENI) are being proposed Still provides lots of resources to researchers  CoralCache, several other projects run on PlanetLab

OLPC “They want to deliver vast amounts of information over the Internet. And again, the Internet is not something you just dump something on. It's not a big truck. It's a series of tubes.”

The Internet is a series of tubes The internet is composed of a lot of infrastructure:  Clients and servers  Routers and switches  Fiber optic trunk lines, telephone lines, tubes and trucks And if we map the density of this infrastructure…

… it probably looks something like this Photo: cmu.edu

How do we distribute knowledge when there are no tubes? What if we wanted to share a book?  Pass it along, door-to-door. What if we wanted to share 10,000 books?  Build community library. How about 10 million books? Or 300 copies of one book?  A very large library?

Solutions We need to build infrastructure to make large-scale distribution easy (i.e., computers and networking equipment) We need to be cheap  Most of those dark spots don’t have much money We need reliability where reliable power is costly  Again, did you notice that there weren’t so many lights? It’s because there’s no electricity!

The traditional solution: a shared computer with Internet India  75% of people in rural villages  90% of phones in urban areas Many villagers share a single phone, usually located in the town post office Likewise, villages typically share a few computers, located at the school (or somewhere with reliable power) What’s the downside to this model?  It might provide shared access to a lot of information, but it doesn’t solve the “300 copies of a book” case

The distributed solution: the XO AKA: Children’s Machine, OLPC, $100 laptop A cheap (~$150) laptop designed for children in developing countries OLPC = One Laptop Per Child. Photo: laptop.org

XO design Low power consumption  No moving parts (flash memory, passive cooling)  Dual-mode display In color, the XO consumes 2-3 watts In high-contrast monochrome, less than 1 watt  Can be human powered by a foot-pedal Rugged, child-friendly design Low material costs Open-source software

XO networking The XO utilizes far-reaching, low-power wireless networking to create ad-hoc mesh networks  If any single XO is connected to the Internet, other nearby computers can share the connection in a peer-to-peer scheme Networks can theoretically sprawl as far as ten miles, even connecting nearby villages

XO storage and sharing XO relies on network for content and collaboration  Content is stored on a central servers Textbooks Cached websites (Wikipedia) User content  Software makes it easy to see other users on the network and share content

XO distribution XO must be purchased in orders of 1 million units by governments in developing nations (economies of scale help to lower costs) Governments are responsible for distribution of laptops Laptops are only for children, designed solely as a tool for learning

XO downfalls Distribution downfalls  What about children in developed nations? Sell to developed markets at a higher price to subsidize costs for developing nations.  Can governments effectively distribute? What about black markets? OLPC could perhaps partner with local schools and other NGOs to aid in distribution, training and maintenance Too expensive?  Some nations can only afford as much $20 per child per year. How can we cater to them?

What can the XO achieve? Today, only 16 percent of the world’s population is estimated to have access to the Internet Develop new markets  Microcredit Make small loans to the impoverished without requiring collateral Muhammad Yunus and the Grameen Bank won the 2006 Nobel Peace Prize for their work here  The power of the village economy As millions of users come online in developing nations, there will be many new opportunities for commerce. Helps those in developing nations to advance their economies and develop stronger economic models

Why give the XO to children? UN Millennium Development Goal #2: “achieve universal primary education” Empower children to think and compete in a global space  Children are a nations greatest resource  Backed by a bolstered economy, they will grow to solve other issues (infrastructure, poverty, famine)

The Course Again (in 5 minutes) So what did we see in this class?  Moore’s law is starting to fail  More computing power means more machines  This means breaking problems into sub problems Sub-problems cannot interfere with or depend on one another Have to “play nice” with shared memory

MapReduce MapReduce is one paradigm for breaking problems up  Makes the “playing nice” easy by enforcing a decoupled programming model  Handles lots of the behind-the-scenes work

Distributed Systems & Networks The network is a fundamental part of a distributed system  Have to plan for bandwidth, latency, etc We’d like to think of the network as an abstraction  Sockets = pipes  RPC looks like a normal procedure call, handles tricky stuff under the hood Still have to plan for failures of all kinds

Distributed Filesystems The network allows us to make data available across many machines  Network file systems can hook into existing infrastructure  Specialized file systems (like GFS) can offer better performance with loss of generality Raises issues of concurrency, process isolation, and how to combat stale data

And finally… There are lots of distributed systems out there MapReduce, BOINC, MPI, several other architectures, styles, problems to solve You might be designing an important one soon yourself!