DOC PREVIEW
CORNELL CS 414 - Introduction to Distributed Systems and Networking

This preview shows page 1-2-14-15-30-31 out of 31 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 31 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Introduction to Distributed Systems and NetworkingAnnouncementsGoals for todayCentralized vs Distributed SystemsDistributed SystemsWhy use distributed systems?Distributed Systems: IssuesDistributed Systems GoalsSoftware ConceptsSome ApplicationsFew ChallengesNetworkingInternet: ExampleInternet: Locating ResourceInternet: ConnectionInternet: End-to-endInternet: PacketsInternet: BitsInternet: Points to rememberInternet : ChallengesConcepts at heart of the InternetProtocolLayered ArchitecturesSlide 24Layered ArchitectureThe OSI ModelOSI LevelsSlide 28Internet protocol stackAir travelSummaryIntroduction to Distributed Systems and Networking2Announcements•Homework 4 due today•Attempting to schedule Prelim II for Thursday, April 26th3Goals for today•Introduction to Distributed Systems•Introduction to Networking4Centralized vs Distributed Systems•Centralized System: System in which major functions are performed by a single physical computer–Originally, everything on single computer–Later: client/server model•Distributed System: physically separate computers working together on some task–Early model: multiple servers working together•Probably in the same room or building•Often called a “cluster”–Later models: peer-to-peer/wide-spread collaborationServerClient/Server ModelPeer-to-Peer Model5Distributed SystemsDefinition:Loosely coupled processors interconnected by network•Distributed system is a piece of software that ensures:–Independent computers appear as a single coherent system•Lamport: “A distributed system is a system where I can’t get my work done because a computer that I’ve never heard of has failed”6Why use distributed systems?•These are now a requirement:–Economics dictate that we buy small computers–Cheap way to provide reliability–We all need to communicate–It is much easier to share resources–Allows a whole set of distributed applications–A whole set of future problems need machine communication•Collaboration: Much easier for users to collaborate through network resources (such as network file systems)–…7Distributed Systems: Issues•The promise of distributed systems:–Higher availability: one machine goes down, use another–Better durability: store data in multiple locations–More security: each piece easier to make secure •Reality has been disappointing–Worse availability: depend on every machine being up•Lamport: “a distributed system is one where I can’t do work because some machine I’ve never heard of isn’t working!”–Worse reliability: can lose data if any machine crashes–Worse security: anyone in world can break into system•Coordination is more difficult–Must coordinate multiple copies of shared state information (using only a network)–What would be easy in a centralized system becomes a lot more difficult8Distributed Systems Goals•Connecting resources and users•Transparency: the ability of the system to mask its complexity behind a simple interface–Location: Can’t tell where resources are located–Migration: Resources may move without the user knowing–Replication: Can’t tell how many copies of resource exist–Concurrency: Can’t tell how many users there are–Parallelism: System may speed up large jobs by splitting them into smaller pieces–Fault Tolerance: System may hide various things that go wrong in the system•Openness: portability, interoperability•Scalability: size, geography, administrative•Transparency and collaboration require some way for different processors to communicate with one another9Software ConceptsSystem Description Main GoalDistributed OS Tightly coupled OS for multiprocessors and homogeneous m/csHide and manage hardware resourcesNetworked OS Loosely coupled OS for heterogeneous computers, LAN/WANOffer local services to remote clientsMiddleware Additional layer atop NOS implementing general-purpose servicesProvide distribution transparencyLocal OS Local OS Local OSMiddlewareDistributed ApplicationsNetworkMachine AMachine BMachine C10Some Applications•Air traffic control•Banking, stock markets•Military applications•Health care, hospital automation•Telecommunications infrastructure•E-commerce, e-cash•…11Few Challenges•No shared clocks–How to order events•No shared memory–Inconsistent system state•Scalability•Fault tolerance–Availability, recoverability•Consensus•Self management•Security12Networking•Middleware gives guarantees not provided by networking•How do you connect computers?–Local area network (LAN)–Wide area network (WAN)•Let us consider the example of the Internet13Internet: Example•Click -> get page•specifies - protocol (http) - location (www.cnn.com)14Internet: Locating Resource•www.cnn.com –name of a computer –Implicitly also a file (index.html)•Map name to internet protocol (IP) address–Domain name system (DNS)host localcomcnn.com?cnn.com?a.b.c.da.b.c.d15Internet: Connection•Http (hyper-text transport protocol) sets up a connection –TCP connection (transmission control protocol) –between the host and cnn.com to transfer the page•The connection transfers page as a byte stream –without errors: flow control + error controlHost www.cnn.comConnectOKGet pagePage; close16Internet: End-to-end•Byte stream flows end to end across many links/switches:–routing (+ addressing)•That stream is regulated and controlled by both ends:–retransmission of erroneous or missing bytes; flow controlHOSTCNN.COMend-to-end pacing and error controlrouting17Internet: Packets•The network transports bytes grouped into packets•Packets are “self-contained”; routers handle them 1 by 1•The end hosts worry about errors and pacing–Destination sends ACKs; Source checks lossesCHOST: BCNN.COM: AA | B | # , CRC | bytesB: toC18Internet: Bits•Equipment in each node sends packets as string of bits•That equipment is not aware of the meaning of the bits•Frames (packetizing) vs. streams01011...011...110Transmitter Physical Medium Receiver01011...011...110OpticalCopperWireless19Internet: Points to remember•Separation of tasks–send bits on a link: transmitter/receiver [clock, modulation,…]–send packet on each hop [framing, error detection,…]–send packet end to end [addressing, routing]–pace transmissions [detect congestion]–retransmit erroneous or missing packets [acks, timeout]–find destination address from name [DNS]•Scalability–routers don’t know


View Full Document

CORNELL CS 414 - Introduction to Distributed Systems and Networking

Documents in this Course
Security

Security

49 pages

Processes

Processes

24 pages

Deadlocks

Deadlocks

57 pages

Threads

Threads

5 pages

Threads

Threads

29 pages

Deadlocks

Deadlocks

36 pages

Load more
Download Introduction to Distributed Systems and Networking
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction to Distributed Systems and Networking and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Distributed Systems and Networking 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?