ANNA UNIVERSITY · REGULATION 2021
Important Questions
CS 3551 — DISTRIBUTED COMPUTING
Fifth Semester · Computer Science and Engineering
Prepared from 3 previous year question papers (Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023). Every question was compared with the others of its unit; the ones asked more than once come first. "Most asked topics" shows in how many different exams a syllabus topic had a question.
UNIT 1Introduction
Most asked topics: Primitives for Distributed Communication (2/3) · Motivation (1/3) · Message-Passing Systems versus Shared Memory Systems (1/3) · Design Issues and Challenges (1/3) · Global State of a Distributed System (1/3)
Part A · 2 marks
- 1.Define concurrency and granularity.(2)
Asked in Nov/Dec 2024
- 2.What is meant by global state in a distributed system?(2)
Asked in Nov/Dec 2024
- 3.Distinguish between message passing systems and shared memory systems.(2)
Asked in Apr/May 2024
- 4.What are the motivations for distributed systems?(2)
Asked in Apr/May 2024
- 5.State the differences from synchronous and asynchronous communication along with the buffering strategy adapted in both.(2)
Asked in Nov/Dec 2023
- 6.List the role of shared memory systems.(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.Write a detailed note on the various primitives for distributed communication.(13)
Asked in Nov/Dec 2024
Free sample · model answer from the exam kit
Processes in a distributed system communicate only by messages. The two basic primitives are Send(destination, buffer) and Receive(source, buffer). Their behaviour is classified by whether the data is buffered and whether the call blocks.
Buffered and unbuffered options
- Buffered: Send() copies the data from the user buffer into a kernel buffer, and then the data is sent from the kernel buffer onto the network. This is the standard option.
- Unbuffered: the data is copied directly from the user buffer onto the network.
- For Receive(), buffering is usually needed because the data may arrive before the receive call is made.
Synchronous and asynchronous primitives
- Synchronous: a Send() and its Receive() handshake with each other. Send() completes only after the matching Receive() has been invoked and the receive operation has completed. Receive() completes when the data is copied into the receiver's buffer.
- Asynchronous: Send() returns control to the caller as soon as the data has been copied out of the user buffer; it does not wait for the receiver. (Asynchronous Receive is not meaningful in practice.)
Blocking and non-blocking primitives
- Blocking: control returns to the calling process only after the processing of the primitive (whether synchronous or asynchronous) completes.
- Non-blocking: control returns immediately after invocation, even though the operation has not completed. The call returns a system-generated handle. The process later checks completion with Wait(handle1, handle2, ...) which blocks until one handle is posted, or polls the handle in a loop.
The four versions of Send and two of Receive
- Blocking synchronous Send: data copied to kernel buffer and sent; the sender waits until an acknowledgement arrives from the receiver confirming that the matching Receive has completed.
- Non-blocking synchronous Send: control returns as soon as the copy from user buffer to kernel buffer starts; a handle is set. The handle is posted when the acknowledgement from the receiver arrives.
- Blocking asynchronous Send: the sender is blocked until the data is copied from the user buffer to the kernel buffer (or onto the network for unbuffered).
- Non-blocking asynchronous Send: control returns immediately; the handle is posted when the data has been copied out of the user buffer, so the buffer can be reused.
- Blocking Receive: blocks until the expected data arrives and is copied into the user buffer.
- Non-blocking Receive: returns at once with a handle; the handle is posted when the data has been copied into the user buffer.
Draw: Four timing diagrams side by side for process Pi (sender) and Pj (receiver), time running downward. (a) Blocking sync Send with blocking Receive: Send S starts, data goes to kernel buffer, Pi blocked until ack from Pj; Pj's Receive R blocked until data arrives. (b) Non-blocking sync Send: S returns at once with handle, W (Wait) later blocks until ack arrives. (c) Blocking async Send: S blocked only until data is copied out of user buffer. (d) Non-blocking async Send: S returns at once, W returns when copy is done. Label S = Send issued, R = Receive issued, W = Wait, P = completion posted, shaded bars = process blocked.
Why non-blocking primitives are useful
Non-blocking calls let a process overlap computation with communication: it can issue a send, do useful work, and call Wait() only when it needs the result. The cost is more complex programming, because the buffer must not be reused until the handle is posted.
Processor synchrony
Processor synchrony means all processors execute in lock-step with synchronised clocks. Since this is impossible in a real distributed system, synchronisation is done in large steps called rounds or barriers: no process starts round k + 1 until all have finished round k.
Libraries and standards
- Socket primitives on Unix, and RPC (Remote Procedure Call), which makes a remote call look like a local call.
- MPI (Message Passing Interface) and PVM (Parallel Virtual Machine) libraries for parallel programs; MPI provides MPI_Send/MPI_Recv (blocking) and MPI_Isend/MPI_Irecv (non-blocking).
- Java RMI and CORBA for remote object invocation.
The CS3551 exam kit has model answers like this for 32 of these questions.
- 2.Prove that in a distributed computation, for an event, the surface of the past cone (i.e., all the events on the surface) form a consistent cut. Does it mean that all events on the surface of the past cone are always concurrent? Give an example to make your case.(13)
Asked in Nov/Dec 2024
- 3.Explain the design issues and challenges in the design of distributed operating systems.(13)
Asked in Apr/May 2024
- 4.Explain blocking, non-blocking, synchronous and asynchronous primitives for distributed communication. Also summarize major libraries and standards for building distributed applications.(13)
Asked in Apr/May 2024
UNIT 2Logical Time and Global State
Most asked topics: Group Communication (2/3) · Causal Order (2/3) · Total Order (2/3) · Snapshot Algorithms for FIFO Channels (2/3) · A Framework for a System of Logical Clocks (1/3) · Scalar Time (1/3)
Part A · 2 marks
- 1.List down the modifications that need to be done to the Chandy-Lamport snapshot algorithm so that it records a strongly consistent snapshot (i.e., all channel states are recorded empty).(2)
Asked in Nov/Dec 2024
- 2.Distinguish casual order and total order in group communication.(2)
Asked in Nov/Dec 2024
- 3.Define global state and consistent global state.(2)
Asked in Apr/May 2024
- 4.What are the limitations of logical clock?(2)
Asked in Apr/May 2024
- 5.How do you define the scalar time and the vector time?(2)
Asked in Nov/Dec 2023
- 6.If the two events e1 and e2 of two different processes occur at same time, independently. What kind of relationship exist between e1 and e2?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) How does local state contribute to the global state in distributed system? (ii) Explain snapshot algorithm.(13)
Asked in Nov/Dec 2024
- 2.(i) How does clock synchronized physically? Explain it. (ii) Illustrate causal order and total order with example.(13)
Asked in Nov/Dec 2024
- 3.What is snapshot and what are the needs of taking snapshot in distributed systems? Outline Chandy-Lamport algorithm for snapshot and illustrate the algorithm.(13)
Asked in Apr/May 2024
- 4.Explain various ways of ordering messages in group communications. Also illustrate distributed algorithm to implement total order and causal order of messages.(13)
Asked in Apr/May 2024
UNIT 3Distributed Mutex and Deadlock
Most asked topics: Chandy-Misra-Haas Algorithm for the AND model and OR Model (3/3) · Ricart-Agrawala's Algorithm (2/3) · Token-Based Algorithms (2/3) · Models of Deadlocks (2/3) · Distributed Mutual exclusion Algorithms: Introduction (1/3) · Preliminaries (1/3)
Part A · 2 marks
- 1.List down the three requirements of mutual exclusion algorithms.(2)
Asked in Nov/Dec 2024
- 2.Mention the two issues with deadlock handling.(2)
Asked in Nov/Dec 2024
- 3.List the advantages and limitations of token-based algorithms for implementing mutual exclusion.(2)
Asked in Apr/May 2024
- 4.What is a false deadlock and when does it occurs?(2)
Asked in Apr/May 2024
- 5.What are the various deadlock detection in distributed systems? State a common factor in detecting the deadlock.(2)
Asked in Nov/Dec 2023
- 6.How beneficial is the Chandy-Misra-Haas algorithm in the AND model and OR model?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.Explain with example the response of Ricart-Agrawala algorithm with a critical section.(13)
Asked in Nov/Dec 2024
- 2.Compare and contrast Chandy-Misra-Haas algorithm for the AND model and OR model.(13)
Asked in Nov/Dec 2024
- 3.Outline the Chandy-Misra-Haas algorithm to detect deadlock in OR model and illustrate the algorithm with an example.(13)
Asked in Apr/May 2024
- 4.Outline Ricart and Agrawala's algorithm for implementing mutual exclusion in distributed systems and illustrate the algorithm.(13)
Asked in Apr/May 2024
UNIT 4Consensus and Recovery
Most asked topics: Issues in Failure Recovery (3/3) · Agreement in a Failure-Free System(Synchronous and Asynchronous) (2/3) · Agreement in Synchronous Systems with Failures (2/3) · Algorithm for Asynchronous Checkpointing and Recovery (1/3)
Part A · 2 marks
- 1.List down any four issues in failure recovery.(2)
Asked in Nov/Dec 2024
- 2.What is meant by cascaded rollback?(2)
Asked in Nov/Dec 2024
- 3.Outline the issues in failure recovery.(2)
Asked in Apr/May 2024
- 4.What are the advantages and disadvantages of asynchronous checkpointing?(2)
Asked in Apr/May 2024
- 5.What is a checkpoint in the recovery system? How is it useful?(2)
Asked in Nov/Dec 2023
- 6.State the issues in failure recovery. State the means to identify the failure at an early stage.(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.Explain in detail consensus algorithm for Byzantine failures.(13)
Asked in Nov/Dec 2024
- 2.Write a detailed note on log based rollback recovery using an algorithm.(13)
Asked in Nov/Dec 2024
- 3.What is check pointing and why it is needed in distributed systems? Illustrate the algorithm proposed by Juang and Venkatesan for asynchronous check pointing and recovery.(13)
Asked in Apr/May 2024
- 4.What is agreement in a failure free system? Explain how agreement is reached in message-passing synchronous systems with failures.(13)
Asked in Apr/May 2024
UNIT 5Cloud Computing
Most asked topics: Characteristics of Cloud (2/3) · Virtualization (2/3) · Storage Services (2/3) · Application Services (2/3) · Cloud Deployment Models (1/3) · Scalability and Elasticity (1/3)
Part A · 2 marks
- 1.List down any four salient features of cloud computing.(2)
Asked in Nov/Dec 2024
- 2.Distinguish scalability and elasticity in cloud computing.(2)
Asked in Nov/Dec 2024
- 3.What is virtualization in cloud computing?(2)
Asked in Apr/May 2024
- 4.List the characteristics of cloud computing.(2)
Asked in Apr/May 2024
- 5.What is virtualization? Why is it required in the larger organization?(2)
Asked in Nov/Dec 2023
- 6.State the relation of compute service with storage service in a cloud environment.(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.Explain in detail the various storage services in cloud computing.(13)
Asked 2 times: Nov/Dec 2024, Apr/May 2024
- 2.Explain in detail software defined networking with architecture.(13)
Asked in Nov/Dec 2024
- 3.Explain the types of cloud computing deployment models with their relative advantages and disadvantages.(13)
Asked in Apr/May 2024
- 4.A company like to have an advanced collaboration services like video, chat and web conferences for their employees, but their system does not support any of the IT resources due to insufficient infrastructure. If they could leverage cloud computing technology in their system, suggest a suitable cloud type with proper justification. List the characteristic of cloud computing.(13)
Asked in Nov/Dec 2023
PART CAny unit
Part C · 15 marks
- 1.Illustrate the various Distributed multicast algorithms at the network layer using a simulated environment.(15)
Asked in Nov/Dec 2024
- 2.Illustrate centralized and distributed algorithms for total order in message and group communication systems.(15)
Asked in Nov/Dec 2024
- 3.The management of an autonomous education institution decided to migrate its website and database from on-premises infrastructure to the Cloud. As an expert of cloud computing you are contacted by management to identify the best suited cloud deployment model and service model for the institution. Describe the important factors you can consider for selecting the cloud deployment model and service model for the institution. …(15)
Asked in Apr/May 2024
- 4.Outline the Koo and Toueg coordinated check pointing and recovery technique and apply this algorithm to a specific case study to demonstrate how this algorithm avoids the domino effect and live lock problems during the recovery.(15)
Asked in Apr/May 2024
- 5.Consider an ABC IT company wanted to provide services like scientific converter, data converter, currency converter and some of the business logic as a server side component to the developer to tailor make the application. Explain the various adaptable technologies to implement in an distributed environment. State its merit and demerits.(15)
Asked in Nov/Dec 2023
- 6.An organization has planned to implement a client module that emulates a conventional file system interface for application programs, and server modules, that perform operations for clients on directories and on files. State the best distributed architecture to deploy and deliver the system. Also explain the suitable system model to avoid failures and adapt a recovery system for the same in case of unavoidable failures.(15)
Asked in Nov/Dec 2023