COMPSCI 677 Distributed and Operating Systems

Spring 2016

Programming Assignment 3: Asterix and Double Trouble: Replication, Fault Tolerance and Cache Consistency

Due: Tue Apr 27, 2016



  • A: The problem


  • B. Evaluation and Measurement

    1. Deploy at least 6 peers. They can be setup on the same machine (different directories) or different machines. .
    2. Do a simple experiment study to evaluate the behavior of your system. Compute the average response time per client search request by measuring the response time seen by a client for, say, 1000 sequential requests. Also, observe the performance change due to the replication (you may simulate a one trader system with your system by letting one trader handle all the requests and another trader be request free). Make necessary plots to support your conclusions.

  • C. What you will submit

  • When you have finished implementing the complete assignment as described above, you will submit your solution in the form of a zip file that you will upload into Moodle.
  • Each program must work correctly and be documented. The zip file you upload to Moodle should contain:
    1. A copy of the output generated by running your program. When it receives a product, have your program print a message "bought product_name from peerID via TraderID". When a peer issues a query, having your program print the returned results in a nicely formatted manner including the local time that the result is received. When a new coordinator is elected intitially (or takes over the duties of a failed one), print a message like " Dear buyers and sellers, My ID is ..., and I am a new coordinator (or I have taken over duties of cordinator N)".
    2. A seperate document/file of approximately two pages describing the overall program design, a description of "how it works", and design tradeoffs considered and made. Also describe possible improvements and extensions to your program (and sketch how they might be made).
    3. A program listing containing in-line documentation.
    4. A seperate description of the tests you ran on your program to convince yourself that it is indeed correct. Also describe any cases for which your program is known not to work correctly.
    5. Performance results.
    6. A readme file about how to run your code.
  • Once complete, celebrate the successful completion of all your assignments by joining the Gauls in the usual village feast. :-)


  • D. Grading policy for all programming assignments

    1. Program Listing
        works correctly ------------- 50%
        in-line documentation -------- 15%
    2. Design Document
        quality of design ------------ 15%
        understandability of doc ------- 10%
    3. Thoroughness of test cases ---------- 10%
    4. Grades for late programs will be lowered 12 points per day late.