Propose the interaction and failure models for system

Assignment Help JAVA Programming
Reference no: EM131220966

This assignment is based on the principles of clock consistency and associated drifts in a distributed system. You have to create a simulation, running on a single machine, of a simple distributed system involving four process objects (PO).

Each PO will contain a logical clock, a concept first proposed by Lamport.1 The concept of the logical clocks and associated synchronization, based on the following rules, will attempt to resolve the clock consistency in this system:

1. Each event (internal, send, or receive) in the system is associated with a time-stamp, based on logical clocks.

2. Each PO, Pi, will have an associated logical clock, LCi. This logical clock is implemented as a simple counter that is incremented whenever an event takes place within that PO. Since a logical clock has a monotonically increasing value, it assigns a unique number to every event. The time stamp of an event is the value of the logical clock for that event. Hence, if an event A occurs before an event B in Pi, then LCi(A) < LCi(B).

3. A Pi will randomly decide if it wants to carry out an internal event or send a message to some other Pj. If it decides to send a message to a randomly selected Pj then it will attach the value of its logical clock to that message. A Pi may also decide to receive a message from another Pj if that Pj has sent a message to the Pi earlier.

4. Whenever a Pj receives a message from another Pi, it will advance its logical clock if the time stamp associated with the incoming message is greater than or equal to the current value of its logical clock, i.e., if Pj, receives a message (event B) from Pi with a time stamp t and LCj(B) ? t then Pj should advance its logical clock such that LCj (B) is equal to t + 1.

5. Any Pi, in the system, may exhibit Byzantine or arbitrary failures when it receives a message - e.g., it may choose not to advance its logical clock at all.

Your task is to:

1. Propose the interaction and failure models for this system. Discuss the pros and cons of your design.

2. Simulate this entire environment in C++ or Java using threads. Allow the simulation to reach a steady-state, i.e., run the program for a large number of iterations. During each iteration and at the end of the simulation compare the values of the logical clocks of POs - this comparison should indicate the clock drifts and their synchronizations. Repeat the simulation with different probabilities and access their effects on the clock drifts.

3. Create a brief report that indicates the aforementioned models and the analyses of the results of your simulation.

Verified Expert

This assignment is about the implementation of the lamport logical clock. It contains the make file "build.xml" and the source file " lamport.java" which is the gui application. It also contain the document that describes the pros and the cons of the design as well as the screenshot of the application.

Reference no: EM131220966

Questions Cloud

Understanding of cultural competency in health care practice : NMIH205: Cultural Competence in Health Care Practice Autumn 2015 Assessment tasks. Task Description - "Achieving cultural competence in health care is everybody's responsibility". (National Health and Medical Research Council (NHMRC) 2006, p. 3). B..
Provide an example of how to use the formula : What explanation would you give so that your staff understands that formula? Provide an example of how to use the formula. Develop a matrix using the formula as part of your example.
Residents of chelsea about the bombing : For the first time ever, the NYPD (through the Mayor's office) used the CMAS messaging this week first on Saturday night to alert the residents of Chelsea about the bombing and then again on Monday morning to alert all residents of NYC about the s..
Can the eastern religions of buddhism and hinduism : Can the Eastern religions of Buddhism and Hinduism and the monotheistic religions of Judaism, Christianity, and Islam produce the same ethical results? Why or why not? What is the determining factor?
Propose the interaction and failure models for system : Propose the interaction and failure models for this system. Discuss the pros and cons of your design - Simulate this entire environment in C++ or Java using threads. Allow the simulation to reach a steady-state, i.e., run the program for a large nu..
Zlow glow corporation regarding a licensing agreement : Topic 1: The Letter Offer? The Core Corporation is in negotiations with the Zlow Glow Corporation regarding a licensing agreement. The Core Corporation sent the following letter to the ZlowGlow Corporation
What is a development provisioning profile : What's a Development Provisioning Profile? What are some Application Resource Constraints when developing an iOS app? What are some iOS hardware limitations you face when developing an app?
Make a graph with variable on horizontal axis and variable : Make a graph with variable (a) on the horizontal axis and variable (b) on the vertical axis and plot each country. What might explain the relationship between these variables?
Create a single view iphone project using swift : Create a Single View iPhone project using SWIFT. Add a single .PNG image to the project asset catalog. Ensure that the application can support multiple orientations such as Portrait and Landscape.

Reviews

inf1220966

9/28/2016 7:25:37 AM

Thank you. I think this is what I wanted. I will let you know if I face any other issues before by submission. Perfect Thanks. This looks great. Thanks a lot for your help. I think I am good to go.

inf1220966

9/28/2016 7:25:20 AM

I asked the professor today about the approach I should follow and he mentioned that there is no need for GUI in this assignment. We just have to print the values in console part and no need to include GUI as that will be extra effort. And there was nothing mentioned in assignment to include GUI as such as well. I thin we have to take out part of GUI from that and just have to create threads and communicate between them and then compare the values. I was not sure which part to delete for GUI. Can you please ask your expert to take out GUI code so that I can just print values in the console as that part was not required.

inf1220966

9/28/2016 7:24:50 AM

1) The assignment asked to put the comments in the code that what code line does what because it will help me as well to understand the code when my teacher asks me that what and why I have done this. 2) I was asked to submit makefile for the code as well. Can you please ask your expert, he might know better what I am taking about here. Please let me know if you have any questions for the same or you want to know anything else. Also please confirm that this is surely plagiarism free because in my university they do a lot of plagiarism check and if I found guilty, I may be restigated. Please confirm the same. Also please confirm that concept of the thread was implemented as assignment strictly said that we have to use threads. and again while putting the comments we can specify that here concept of threads was implemented and that won't be a problem. Thanks for helping me. I will let you know if I face any difficulty as I will be having a more closer look at it tomorrow. But everything seems fine as of now. Thanks

inf1220966

9/28/2016 7:07:04 AM

I have submitted the payment. This is the critical assignment for me as if this doesn't go well, I will not be passed this subject. I need to score the most in this. Please make it plagiarism free for sure. I look to maintain good and future relations with you. Please provide me with updates whenever there is so that I can have a track where my assignment is. I am really worried about this one. Hope you understand. I just found out that I missed couple of lines of this assignment at the last : "Provide adequate documentation of your programs. Create a makefile for your program." I don't think this will be a problem as they are just asking to provide comments to the code . like we have to write a small comment with code that what is this code for. And the other one is to create a makefile for it. I am really sorry missed this one but that won't put any extra effort I guess. If you can please notify your expert for the same. That will be a great help.

inf1220966

9/28/2016 6:52:21 AM

Can you please let me know if this question of my assignment can be solved as directed in question and if yes. What is the time I can expect with the solution and how much will I get charged for this question. Please get back to me as soon as possible. I just want to confirm that will you will be working on all 3 parts of questions right? And as you know my last date for submission is 2nd but i don't want to wait till the last time in case I am not satisfied by your answer so that i have some time by my own. If you can please provide me an estimate that how much time it will take to you to complete the assignment and send it back to me if i make a payment right away. Sorry for being much over but i'm really anxious as i am using such kind of service for first time.

Write a Review

 

JAVA Programming Questions & Answers

  Define a car structure type

For this assignment you will write a program that determines which of a set of rental cars the user can rent for a user-specified rental rate. The rental car data is contained in a text file which will be fed into your program using stdin redirect..

  Write a java program called calctickets

write a java program called CalcTickets that prompts (asks) the user to enter a ticket number. The format of a valid ticket is C[C]DDDDD[C][C]

  Java class that represents your favorite musical instrument

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 5 private data fields, getters and setters for each private data field, a to String() method, and three ad..

  Write the definitions of the methods to implement operations

Calculate and return the day by adding certain days to the current day. For example, if the current day is Monday and we add four days, the day to be returned is Friday. Similarly, if today is Tuesday and we add 13 days, the day to be returned i..

  The user for number of letters

Write a java program that asks the user for number of letters in a word followed by those letters. Store those letters in an array. Then it calls a method called public static void toNumerals(char[] word) to determine the corresponding number for eac..

  Program that simulates the rolling of a single die1000 times

Write a program that simulates the rolling of a single die 1000 times. The program must use an array of size 6 and not 1000 to store the occurrences of each side or face on the six-sided die. The program should output the particular die face and the ..

  How do i use an ejb to handle simple authentication

What is the difference between an Application server and a Portal server? How do I use an EJB to handle simple authentication to an LDAP directory?

  Write a program that lets the user click on the panel

Write a program that lets the user click on the panel to dynamically create points. Initially, the panel is empty. When a panel has two or more points, highlight the pair of closest points. Whenever a new point is created, a new pair of closest po..

  Calculates profits and sales prices for a furniture company

First calculate the profit, then calculate the sales price, then calculate the profit when the sale price used.

  Design of client-server protocols

Design of client-server protocols by reviewing the implementation of one. And you can develop an even greater understanding by extending or updating that implementation.

  Prepare a program to implement array

Write a method, insertAt, that takes four parameters: an array of integers; the length of the array; an integer, say insertItem; and an interger, say, index.

  Java :a user-defined starting position (other than 0,0)

modifying the program so that it can start from a user-defined starting position (other than 0,0) and search for a user defined ending point (other than row-1, column-1) .

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd