DOC PREVIEW
U of I CS 425 - Homework - Distributed Systems

This preview shows page 1 out of 3 pages.

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

Unformatted text preview:

Homework 3 (Failure Detection, Consensus, Peer-to-Peer, Routing, DistributedObject) - 100 PointsCS425/ECE 428 Distributed Systems, Fall 2009, Instructor: Klara NahrstedtOut: Thursday, October 15, Due Date: Thursday, October 29Instructions: (1) Please, hand in hardcopy solutions that are typed (you may use your favoriteword processor). We will not accept handwritten solutions. Figures and equations (if any) maybe drawn by hand. (2) Please, start each problem on a fresh sheet and type your name at thetop of each sheet. (3) Homework will be due at the beginning of class on the day of thedeadline. Problem 1: Failure Detection (20 Points) Centralized heart-beating and ring heart-beating may not detect simultaneous multiple failures ofprocesses, while all-to-all heart-beating is too expensive (in terms of messages sent pertime unit). Suppose, in an asynchronous system that initially has N processes, you are given thatat most N/4 processes may crash. (a) Design an efficient failure detector algorithm for this system. Your failure detector shouldsatisfy completeness. Either give pseudo-code for your algorithm, or explain it using a figure.(b) How many failure detector messages are sent by your algorithm if no failures occur? (c) Calculate the best-case and worst-case detection times for your failure detector (hint: These are likely to occur with 1 and N/4 simultaneous failures respectively.)Problem 2: Distributed Graph Algorithms – Routing (20 Points) Consider a subnet that consists of routers A, B, C, D, and E (with links having symmetricalcosts, where a lower cost is more desirable).(a) Suppose the subnet uses link state routing. If router A receives the above link state advertisement (LSA) packets from all the other routers, derive the network topology. Note that an entire LSA packet contains a single age field that describes how long the information willbe valid. Each entry in the LSA packet then specifies a neighbor and the link cost to theneighbor.(b) Suppose the subnet uses distance vector routing instead, then consider the converged state, where all routes are optimal. Now, if the link E − D goes down, then list all the distance vector entries throughout the system that will change due to this link going down. For each changed entry, state the (old and new) next hop and the (old andnew) cost of the entry.Problem 3: Consensus (20 Points) Explain briefly why the impossibility of consensus proof (proofs of Lemmas 2 and 3 in the FLP paper) would break if the system were synchronous. Specifically, give at least one statement in the proof that may not hold in a synchronous system.Problem 4: Unstructured Peer-to-Peer Systems (20 Points) Consider a Gnutella p2p system with 1023 total nodes that has become structured as a binary treewith height =9 (from a given root node.) What are the maximum and minimum number of nodes that can receive a Query message that is initiated with a TTL=7 from a leaf node of the tree?Problem 5: Distributed Objects (20 Points) Consider distributed objects in the distributed systems. (a) Specify where (component(s)) and how (protocol) does the translation between local andremote procedure/object references happen when the distributed system is using remoteprocedure call (RPC)?(b) Specify where (component(s)) and how (protocol) does the translation between local andremote object references happen when the distributed system is using remote methodinvocation


View Full Document

U of I CS 425 - Homework - Distributed Systems

Documents in this Course
Lecture 8

Lecture 8

23 pages

TIPS

TIPS

3 pages

The Grid

The Grid

41 pages

Lecture 4

Lecture 4

27 pages

Lecture 4

Lecture 4

20 pages

The Grid

The Grid

41 pages

LECTURE 5

LECTURE 5

25 pages

Multicast

Multicast

23 pages

LECTURE

LECTURE

34 pages

Load more
Download Homework - Distributed Systems
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 Homework - Distributed Systems 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 Homework - Distributed Systems 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?