Docsity

Midterm Exam - Distributed Computing Systems | CS 843, Exams of Computer Science

Toggle sidebar
bg1
CS 843 - Distributed Computing Systems - Mid-Term Exam - Name:
Date: Thursday, March 14, 2002, 7:05 - 9:05 PM
Instructions to Examinees:
•This is a close book and close note exam.
•Honesty policy is strictly enforced. You could get zero mark because of dishonesty.
•Please show all work on exam sheets. You can write on the backside of the exam sheets.
•Time is limited. Please write the key points.
•Any assumption made in answering questions should be stated.
•Points for this paper total 150.
1. Basis of Distributed Systems (20 points)
Briefly explain these terminologies. If they are acronyms, also write what they stand for.
(a) Mobile Code - Code that can be sent from one computer to another and run at the destination. Java
applets are an example.
(b) Mobile Agent - A running program that travels from one computer to another in a network carrying out
a task on someone’s behalf.
(c) Spontaneous Networking - The form of distribution that integrates mobile devices and other devices into
a given network.
(d) WAP - Wireless Application Protocol is a set of protocols that have been developed specifically for use on
wireless portable devices.
(e) ATM - Asynchronous Transfer Mode is a dedicated-connection switching technology that organizes digital
data into 53-byte cell units and transmits them over a physical medium using digital signal technology.
2. System Models (20 points)
Consider a communication service used in asynchronous distributed systems. In this service, messages may be
lost, duplicated, delayed, or delivered too faster for the recipient to handle them, but those that are delivered
arrive with the correct contents. In addition, checksums apply to both headers and bodies.
(a) Describe the classes of failure exhibited by this service. (8 points)
(b) Classify their failures according to their effect on the properties of validity and integrity. (8 points)
(c) Can this service be described as a reliable communication service? (4 points)
(a) Failures:
•Arbitrary failures: duplicated messages.
•Omission failures: lost messages.
•Because the distributed system in which it is used is asynchronous, it cannot suffer from timing
failures.
(b) Properties of validity and integrity:
•Validity is denied by lost messages.
•Integrity is denied by duplicated messages.
(c) It cannot be called reliable from the above analysis.
3. Networking and Internetworking (16 points)
(a) What is the purpose of a firewall? (4 points)
(b) What are the aims of a firewall security policy? (6 points)
(c) What are advantages when two router/filters are employed in series with bastion and any public servers
located on a separate subnet linking the router/filters? (6 points)
pf3
pf4

Partial preview of the text

Download Midterm Exam - Distributed Computing Systems | CS 843 and more Exams Computer Science in PDF only on Docsity!

CS 843 - Distributed Computing Systems - Mid-Term Exam - Name: Date: Thursday, March 14, 2002, 7:05 - 9:05 PM

Instructions to Examinees:

  • This is a close book and close note exam.
  • Honesty policy is strictly enforced. You could get zero mark because of dishonesty.
  • Please show all work on exam sheets. You can write on the backside of the exam sheets.
  • Time is limited. Please write the key points.
  • Any assumption made in answering questions should be stated.
  • Points for this paper total 150.
  1. Basis of Distributed Systems (20 points)

Briefly explain these terminologies. If they are acronyms, also write what they stand for.

(a) Mobile Code - Code that can be sent from one computer to another and run at the destination. Java applets are an example. (b) Mobile Agent - A running program that travels from one computer to another in a network carrying out a task on someone’s behalf. (c) Spontaneous Networking - The form of distribution that integrates mobile devices and other devices into a given network. (d) WAP - Wireless Application Protocol is a set of protocols that have been developed specifically for use on wireless portable devices. (e) ATM - Asynchronous Transfer Mode is a dedicated-connection switching technology that organizes digital data into 53-byte cell units and transmits them over a physical medium using digital signal technology.

  1. System Models (20 points)

Consider a communication service used in asynchronous distributed systems. In this service, messages may be lost, duplicated, delayed, or delivered too faster for the recipient to handle them, but those that are delivered arrive with the correct contents. In addition, checksums apply to both headers and bodies.

(a) Describe the classes of failure exhibited by this service. (8 points) (b) Classify their failures according to their effect on the properties of validity and integrity. (8 points) (c) Can this service be described as a reliable communication service? (4 points)

(a) Failures:

  • Arbitrary failures: duplicated messages.
  • Omission failures: lost messages.
  • Because the distributed system in which it is used is asynchronous, it cannot suffer from timing failures. (b) Properties of validity and integrity:
  • Validity is denied by lost messages.
  • Integrity is denied by duplicated messages. (c) It cannot be called reliable from the above analysis.
  1. Networking and Internetworking (16 points)

(a) What is the purpose of a firewall? (4 points) (b) What are the aims of a firewall security policy? (6 points) (c) What are advantages when two router/filters are employed in series with bastion and any public servers located on a separate subnet linking the router/filters? (6 points)

(a) Its purpose is to monitor and control all communication into and out of an intranet. (b) The aims of a firewall policy may include:

  • Service control determines services accessible from external requests.
  • Behavior control prevents behavior that violates the organization policies.
  • User control determines the right and privilege among users. (c) This configuration has following advantages:
  • If the bastion policy is strict, the IP addresses of hosts in the intranet need not be published, and the addresses outside of the intranet need not to be known to Internet computers, because all external communication will pass through proxy processes in the bastion.
  • If the first router/filter is penetrated or compromised, the second, which is invisible from outside the intranet and hence less vulnerable.
  1. Networking and Internetworking (20 points)

(a) Describe the method of operation of Ethernets. (6 points) (b) What problems are there when the method of operation of Ethernets is employed in a wireless LAN? ( points) (c) What scheme can be used to avoid those problems mentioned above in a wireless LAN? (6 points)

(a) Ethernets use a method called carrier sensing, multiple access with collision detection (CSMA/CD). The packets are broadcasted to the transmission medium with the following mechanism to deal with the collisions:

  • Carrier sensing refers to sense if the line is busy.
  • Collision detection refers to detect if the collisions occur.
  • Back-off refers to wait for some time to retransmit. (b) These problem could occurs:
  • Hidden stations: Carrier sensing may fail to detect another station.
  • Fading signals: The strength of radio signals diminished rapidly with the distance from the trans- mitter.
  • Collision masking: The local signal might drown out the remote transmission. (c) The result scheme is carrier sensing multiple access with collision avoidance (CSMA/CA). When a station is ready for transmission, it sends a request to send (RTS) frame to the receiver and waits to receive a clear to send (CTS) frame from the receiver. As a result, all stations within the range will refrain from transmitting a data frame. Once CTS is received, the sender can send packets.
  1. Interprocess Communication (20 points)

(a) Describe a time line of the typical scenario that takes place between a UDP client and server communication in UNIX. (b) Describe a time line of the typical scenario that takes place between a TCP client and server communication in UNIX. (a) UDP client and server communication:

| socket() | +-----+------+ | V well-known +------------+ port | bind() | +-----+------+ | V +------------+ | recvfrom() |<---+ +------------+ +------------+ | | socket() | | | +------+-----+ V | | blocks until datagram | V received from client | +------------+ data (request) | | | sendto() |--------------------------------------->| | +------+-----+ V | | process request | | | | V V | +------------+ data (reply) +-----------+ | | recvfrom() |<---------------------------------| sendto() |-----+

  1. Idempotent Operation (17 points) (a) What is an idempotent operation? (4 points) (b) Discuss whether the following operations are idempotent? (9 points)
  • Writing a data to a file.
  • Appending a data to a file.
  • Remote banking transactions. (c) Consider a client and server communication. In what situations do we need an idempotent operation? ( points)

(a) An idempotent operation is an operation that can be performed repeatedly with the same effect. (b) • Writing a data to a file is an idempotent operation because the result file is same.

  • Appending a data to a file is not an idempotent operation because each appending changes the file.
  • Remote banking transactions is not an idempotent operation because each transaction could either add or deduct the account balance. (c) If a client need to invoke a server more than once because of lost messages, then a server whose operations are all idempotent need not take special measures to avoid executing its operations more than once.
  1. Remote Method Invocation (17 points) (a) Why do we need to consider the number of times of invocations and location transparency when we extend local method invocations to remote method invocations? (5 points) (b) What kind of invocation semantics are there for remote method invocations? Briefly explain each seman- tics. (12 points)

(a) When a local method invocation is extended to a remote one, a method invocation might have to be executed more than once and the remote location information might have to be provided because of the unreliable intrinsics of the communication networks. (b) Invocation semantics:

  • Maybe invocation semantics: The invoker can not determine whether or not the remote method has been executed.
  • At-least-once invocation semantics: The invoker either receives a result (in which case the user knows the method was executed at least once) or an exception.
  • At-most-once invocation semantics: The invoker either receives a result (and the user knows the the method was executed exactly at most once) or an exception.

Appendix - Comparing TCP and UDP

  • Advantages of TCP:
    • Has high reliability
    • Is the industry standard
    • Allows message verification
    • Allows database access and manipulation
    • Allows group attribute access and manipulation
    • Provides clean network environment messaging (through firewalls)
    • Provides a reliable way to send chat text
    • Provides a reliable way to send animation key frames
  • Advantages of UDP:
    • Very high speed
    • Excellent way to broadcast position information
    • Excellent performance under noisy network conditions
    • Efficient way to send animation subframes
    • Very useful for sending information that will be updated at short intervals

Because TCP is a connection-based protocol and UDP is connectionless, you should program your application to include error detection and correction for UDP messages. Otherwise, there may be problems with incorrect data