


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Show all work to receive partial credit. Note: You must do these questions by yourself (NOT with your partner of Part 2). You are required to use a word processing program to write your answers to homework assignments in this class (submissions should be in PDF). Whenever something is unclear in the question, form assumptions, and make those assumptions explicit in your answers. In all answers, be as specific as possible. Limit your answer to each question or each part of a question to a maximum of approximately 1/4 page.
[Latency per packet (local or remote, incurred on both send and receive):5 milliseconds Connection setup time (TCP only):5 milliseconds Data transfer rate:10 megabits per second MTU:1000 bytes Server request processing time:2 milliseconds Assume that the network is lightly loaded.]
You are encouraged to do this assignment with one other person from our class. You can do this assignment by yourself if you wish.
Your boss has come to you with the following dilemma: She loves your IM client that you recently developed but is not so thrilled with the (outsourced) IM server. There are two problems with the IM server that she wants you to fix:
Although it would be great if you could just modify the source code for the previous IM server to solve these problems, because of legal disputes with the outsourced company, this source code is unfortunately unavailable. Your boss points out that because this is an open protocol, and because you’re such a wizard at software design and development ( after all, you received your degree from the University of Virginia!), she has the utmost confidence that you can write the server from scratch (she points out that you already have a client to test against!)
With regard to the second problem, above, you come up with the following design:
The purpose of the server “frontend” is to be the “outward-facing service” that the clients see (the clients are unaware of the existence of multiple back-end services). This server “frontend” accepts the messages enumerated in the first assignment in the section 2.1 (“Messages to/from the IM Directory Server”). The “server frontend” interacts with the two servers on the right of the figure – essentially if one of them is down, then there’s another one to contact. Note that the purpose of two “backend servers” is not for performance reasons (e.g., load-balancing between the servers) but rather for reliability.
You are required to solve both problems identified above, using this software architecture. The “Server fronted” must open a Java socket, waiting for contact from a potential client. All communication between the server frontend and the “IM Servers” MUST use Java RMI. Reasonable options for persistence include using the file system or using a database system (there are pros and cons for each). It is up to you how many IM servers you use – note that there is a law of diminishing returns here. You are required to support 2 servers, but a “more robust” architecture can earn some measure of extra credit, if you present a reasonable design and justify its existence (in other words, extra credit cannot be earned simply by adding “more”). You determine which information to replicate between the IM servers, and when and how. You also have to design algorithms to run when one of the IM servers goes down (and similarly when one of them comes back on-line). The client programs that you wrote for the first assignment in CS451 MUST run unmodified with this new server system.
The due date for this assignment is 12:30pm on Thursday Mar 1. Note that the submission requirements are stricter this time, to help us grade: Partner 1 must :