Docsity

Midterm Exam | Distributed Computing 2007 | CS 7210, Study notes of Computer Science

Toggle sidebar
bg1
CS 7210 - Midterm – March 2007
Closed book and closed notes
Your Name:
Prof. Schwan
Please make time to work on each question in this exam. Partial credit
will be given whenever possible.
1) Short questions: 60 mins. (questions marked with * have more
weight)
a*. A certain class of actions in multi-player games and in other
applications concerns what is typically termed ‘presence’, which is
knowledge about what other actors are doing (i.e., about their current
state) useful for guiding current action. Outline two theoretical issues you
would have to solve for distributed algorithms that implement the notion
of `presence’ in peer to peer applications (i.e., no servers). Also mention
at least one practical implementation issue. (Hint: consider the MyMaze
paper).
b. Game servers that use partitioned state spaces are subject to load
imbalances. Explain that, then come up with one approach to deal with
them.
1
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam | Distributed Computing 2007 | CS 7210 and more Study notes Computer Science in PDF only on Docsity!

CS 7210 - Midterm – March 2007 Closed book and closed notes Your Name: Prof. Schwan Please make time to work on each question in this exam. Partial credit will be given whenever possible. 1) Short questions: 60 mins. (questions marked with * have more weight) a*. A certain class of actions in multi-player games and in other applications concerns what is typically termed ‘presence’, which is knowledge about what other actors are doing (i.e., about their current state) useful for guiding current action. Outline two theoretical issues you would have to solve for distributed algorithms that implement the notion of `presence’ in peer to peer applications (i.e., no servers). Also mention at least one practical implementation issue. (Hint: consider the MyMaze paper). b. Game servers that use partitioned state spaces are subject to load imbalances. Explain that, then come up with one approach to deal with them.

c. Explain why scalar clocks, as defined by Lamport, are not strongly consistent. Present the argument both formally and informally. d. In Reference Broadcasts, certain assumptions are made about the underlying physical systems to attain synchronization. Recalling the categories Send Time, Access Time, Propagation Time, and Receive Time, explain those assumptions.

therefore, could not be the ones to cause bugs or give rise to race conditions). Speculate on whether algorithms that identify concurrency or not concurrency for events are/are not less complex to implement than algorithms that determine causality. g. Explain the Failstop and Byzantine failure models. Then argue why in asynchronous systems, N> 3F processes are needed for when no more than F processes can be faulty in a system of N processes (in an asynchronous system for which we wish to guarantee liveness and safety) h. Explain the notion of fault scalability in systems trying to attain fault tolerance for a byzantine (or for that matter, for any) fault tolerant system. Then, rather than commenting on the paper studied in the course, construct an example of and solution for fault scalability in a failstop system (Hint: consider fault prediction and/or number of faults per time).

2) Medium Length Question (20 mins.):

  1. Consider a simple ‘distributed application’, which is a collective decision to be made by a set of network routers about truth in some shared facts (e.g., their current routing tables).  Ignoring anything you might know about how current networks operate, you can of course, use the marker-based distributed snapshot algorithm to create a global state that is consistent.  For this question, however, just to make it interesting, assume that processes independently record their states without any coordination and also maintain several recorded states. A collector node (e.g., network manager) periodically gathers recorded states of individual processes and attempts