
CS 451: Distributed Systems
Spring 2007
Assignment #5
Due Tuesday, May 1, 12:30 pm
No late submissions accepted!
(Answer all 14 questions)
Show all work to receive partial credit. Note: You must do these questions by yourself. 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.
1. Exercise 19.1 from the book: Compare the request reply protocol as described in Section 4.4 with the
implementation of client-server communication in SOAP. State two reasons why the use of
asynchronous messages by SOAP is more appropriate for use over the Internet. To what extent does
the use of HTTP by SOAP reduce the difference between the two approaches?
2. Exercise 19.6. Define a Java interface for the Election service suitable for use as a web service. State
why you think the interface you defined is suitable. Explain how a WSDL document for the service is
generated and how it is made available to clients.
3. Exercise 19.11. Explain why UDDI can be described as being both a name service and a directory
service, mentioning the types of enquiries that can be made. The second ‘D’ in the name UDDI refers
to ‘discovery’ – is UDDI really a discovery service?
4. Exercise 19.13. Documents protected by XML security may be signed or encrypted long before
anyone can predict who will be the ultimate recipients. What measures are taken to ensure that the
latter have access to the algorithms used by the former?
5. Exercise 10.1. Early file-sharing applications such as Napster were restricted in their scalability by
the need to maintain a central index of resources and the hosts that hold them. What other solutions to
the indexing problem can you identify?
6. Variation of Exercise 10.6. Assess the availability and trustworthiness of the personal computers
Thornton A233 (Stacks). You should estimate:
Uptime: hours per day when the computer is operating and connected to the Internet.
Software consistency: is the software managed by a competent technician?
Security: is the computer fully protected against tampering by its users or others?
Based on your assessment, discuss the feasibility of running a data-sharing service on the Thornton A233
(Stacks) computers and outline the problems that must be addressed in a peer-to-peer data sharing service.
7. Exercise 11.3. A scheme for implementing at-most-once reliable message delivery uses synchronized
clocks to reject duplicate messages. Processes place their local clock value (a ‘timestamp’) in the
messages they send. Each receiver keeps a table giving, for each sending process, the largest message
timestamp it has seen. Assume that clocks are synchronized to within 100 ms, and that messages can
arrive at most 50 ms after transmission.
(i) When may a process ignore a message bearing a timestamp T, if it has recorded the last
message received from that process as having timestamp?