Docsity

Exam 2 Questions for Distributed Computing Systems | CS 843, Exams of Computer Science

Toggle sidebar
bg1
CS 843 - Distributed Computing Systems - Final Exam - Name:
Date: Friday, May 16, 2003, 10:00 - 11:50 AM
(200 + 20 (bonus) points)
1. Briefly explain these terminologies. If they are acronyms, also write what they stand for. (24 points)
(a) Software agent
(b) LDAP
(c) NTP
(d) 2PL
(e) PGP
(f) IIOP
2. Fill out the following table of a comparison between different systems: (20 points)
Item Distributed OS Network OS Middleware-based DS
Multicomputer
Degree of transparency
Same OS on all nodes
Number of copies of OS
Basis for communication Files
Resource management Global,
distributed
Scalability
Openness Closed
3. Complete the following table listing the seven layers in the OSI 7-Layer Reference Model. Give an example
protocol for each layer. (10 points)
Layer level Layer Name Example
Layer 7 Application Layer
Layer 6 ASN.1
Layer 5
Layer 4
Layer 3
Layer 2
Layer 1 Physical Layer RS-232-C
pf3
pf4
pf5

Partial preview of the text

Download Exam 2 Questions for Distributed Computing Systems | CS 843 and more Exams Computer Science in PDF only on Docsity!

CS 843 - Distributed Computing Systems - Final Exam - Name: Date: Friday, May 16, 2003, 10:00 - 11:50 AM (200 + 20 (bonus) points)

  1. Briefly explain these terminologies. If they are acronyms, also write what they stand for. (24 points)

(a) Software agent

(b) LDAP

(c) NTP

(d) 2PL

(e) PGP

(f) IIOP

  1. Fill out the following table of a comparison between different systems: (20 points)

Item Distributed OS Network OS Middleware-based DS

Multicomputer

Degree of transparency

Same OS on all nodes

Number of copies of OS

Basis for communication Files

Resource management Global,

distributed

Scalability

Openness Closed

  1. Complete the following table listing the seven layers in the OSI 7-Layer Reference Model. Give an example protocol for each layer. (10 points)

Layer level Layer Name Example

Layer 7 Application Layer

Layer 6 ASN.

Layer 5

Layer 4

Layer 3

Layer 2

Layer 1 Physical Layer RS-232-C

  1. Consider the following code:

int f(x,y) { x = x + 1 ; y = x * y - 5; return(x + y); }

main() { int a, b; a = 2; b = f(a, a); printf("a = %d, b = %d \n",a,b); }

What will be printed if the parameters are passed using:

(a) call-by-value? (b) call-by-reference? (c) call-by-copy/restore using Pascal semantics?

Which of the above parameter passing method(s) cannot be easily implemented using remote procedure calls? Explain. (8 points)

  1. (a) What is an idempotent operation? (3 points)

(b) For each of the following applications, do you think at-least-once semantics or at most once semantics is best? Discuss. (6 points) i. Write a block of data into a file ii. Request the number of users currently logged into a remote system iii. Deposit money into a bank account

  1. Briefly explain crash, omission, and arbitrary failures and give an example for each of them. (18 points)
  2. (a) Describe reasons for replication. What is main problem of replication? (9 points) (b) Explain how replication in DNS takes place, and why it actually works so well. (6 points)
  3. (a) Encrypt the following plaintext using a transposition cipher based on the key COUGAR. (8 points) plaintext = E N J O Y Y O U R S U M M E R V A C A T I O N S

ciphertext =

(b) Using the RSA public key cryptography algorithm. (8 points) i. If p = 5 and q = 11, list four legal values for d. ii. If p = 7, q = 13, and d = 7, find e.

(c) Why are asymmetric encryption algorithms usually used for authentication and symmetric encryption algorithms for document secrecy? (4 points)

  1. (a) What is the topic of your research project? (4 points)

(b) What are the major goals of your research project? (6 points) (c) What is the scope of your research project? (6 points)

  1. Consider the following header file (day.h) and C code. (24 points)

#define NAMESIZE 40

typedef struct { int day; int month; int year; } date;

struct person { char name[NAMESIZE]; date birthdate; };

#include <day.h> extern date birthday_dblookup(char ); / database lookup by name */ extern char *list_dblookup(date); / database lookup by date */

date birthday_lookup (char *name) { return(birthday_dblookup(name)); }

char **list_lookup(date birthday) { return(list_dblookup(birthday)); }

main() { char name[NAMESIZE]; date birthday; char **list; int i = 0;

printf("Name: "); scanf("%s", name); birthday = birthday_lookup(name); printf("Hello! %s, your birthday is %d-%d-%d.\n", name, birthday.day, birthday.month, birthday.year); list = list_lookup(birthday); printf("Following persons have the same birtday as you:\n"); while (list[i] != โ€™\0โ€™) printf("%s\n", list[i++]); }

(a) Use CORBA IDL to specify this application (The main function is not required). (b) Suppose BirthdayDBLookup and ListDBLookup are two available Java methods corresponding to C birthday dblookup and list dblookup functions respectively. Write the Java servant class that im- plements the interfaces and methods defined in the above COBRA IDL file.