Stanford University
Computer Science Department
CS 444N M. Baker
Exam Spring 2000
CS 444N Exam
Name:_______________________________________________________________
This is a closed-book examination (i.e. no assistance from textbooks, notes, other people, etc.) You have 45 minutes to answer as many questions as possible. Write all of your answers directly on this paper. Make your answers as concise as possible. (You neednt cover every available nano-acre with writing.)
Stanford University Honor Code:
In accordance with both the letter and spirit of the Honor Code, I didnt cheat on this exam.
Signature:____________________________________________________________
Problem |
Points |
Score |
1 |
15 |
|
2 |
10 |
|
3 |
15 |
|
4 |
5 |
|
Total |
45 |
Problem 1: (15 points)
Bayou supports four session guarantees to aid users and applications working with weakly consistent replicated data:
Consider a bulletin board application to which users can read messages, post new messages, and post replies to existing messages, but cannot edit messages once they have been posted. If the user reads a reply to a message, she should also be able to read the original message. Which of these session guarantees would this application require?
Session guarantee |
Required? (yes/no) |
Why or why not? |
RYW |
||
MR |
||
WFR |
||
MW |
Problem 2: (10 points)
Consider a wireless network that guarantees in-order delivery and retransmits lost or delayed packets for up to 500 ms (both at the link layer). How would these characteristics affect the following applications, either negatively or positively, and why?
Problem 3: (15 points)
What are the advantages of handling mobility at each of these layers? Keep in mind that handling mobility at layer N means enabling movement while maintaining the same layer-N address.
(continued )
Problem 4: (5 points)
Consider the problem of scheduling a CPU to execute a certain set of instructions while minimizing energy consumption. Why is it better to reduce the clock speed by half, than to have the CPU do the same work at normal speed in half the time and then sit idle for the other half the time?
Problem 5: (extra credit)
WAP is: