1. In our communications lecture we talked about different ways of defining comm
ID: 3911069 • Letter: 1
Question
1. In our communications lecture we talked about different ways of defining communications:
- Persistent vs Transient
- Synchronous vs Asynchronous
- Connection-oriented vs Connectionless
- Discrete vs Streaming
Each distributed system needs to decide which one of the 4 choices to make.
a. If you are concerned with performance (in terms of response time of a distributed program), which choices would you prefer and why?
b. If you are concerned with scalability (in terms of ability to have the system span hundreds or thousands of nodes in possibly very geographically distributed areas), which choices would you prefer and why?
Explanation / Answer
a.
For systems concerned with performance considering response time Persistent Communication can be used. This is because once the media is sent by sender it will be stored with middleware and as soon as receiver is available it will be forwarded. In the mean time sender will perform other tasks and does not need to wait for response from receiver. Middleware takes care of responses.
b.
In case of scalability, discrete and streaming communication can be used according to the requirement.
Discrete communication when the data is comparitively small and requires two way communication. This type of communication enables communication at required rate regardless the scalability.
Streaming Communication when large media is to be sent one way over the medium. Here the data rate needs to be maintained and when the network is scalable this is best one to use as the bandwidth is adjusted accordingly.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.