1
$\begingroup$

What's the difference between a protocol and a distributed algorithm? My internship supervisor told me they are not exactly alike.

A protocol is more communication-oriented (e.g. TCP), whereas a distributed algorithm allows more complex interactions (e.g. a cryptocurrency system).

However, I still can't fully grasp this difference. Can someone enlighten me? Is it important to not conflate the two?

asked Jun 14, 2021 at 8:37
$\endgroup$
2
  • $\begingroup$ This is indeed confusing. After some thoughts of it, a "protocol" is not a very well-defined terminology and it sometimes used to denote a distributed algorithm, sometimes to denote the communication layer of interacting nodes, and sometimes to denote a tuple of algorithms executed over a given network (not necessarily distributed algorithms, i.e., algorithms that might be aware of the specific topology and differ per node; although some will call such algorithms distributed as well). $\endgroup$ Commented Jun 14, 2021 at 20:08
  • $\begingroup$ As mentioned in the previous comment, "protocol" is a bit overloaded and the answer will depend on the field. In Secure Multiparty Computation (en.wikipedia.org/wiki/Secure_multi-party_computation) we use the term protocol exclusively, and we really mean a distributed algorithm (with security guarantees). $\endgroup$ Commented Jun 15, 2021 at 7:59

1 Answer 1

2
$\begingroup$

A protocol and a distributed algorithm are completely different things.

A protocol is defined mechanism for communication that the communicating parties use to exchange information. It is the rules of the language used to carry the information.

An algorithm is a recipe for solving a problem that is made of a sequence of steps to follow that will lead to a solution.

A distributed algorithm is a recipe that uses many parties to contribute to the solution of the problem.

In a distributed algorithm the different parties may need to communicate either with each other or back to some central location where the solution is collected. They will use a communication protocol to achieve that transfer of information, so a distributed algorithm is very likely to use a protocol, but that is not the sole purpose of the protocol and that protocol can be used for many other things besides distributed algorithms.

It is very important not to conflate the two, in the same way that it is essential not to confuse chalk with cheese, otherwise it would be bad for the recipe.

answered Jun 14, 2021 at 18:37
$\endgroup$
2
  • $\begingroup$ But protocols (such as the DNS for instance) can involve quite complex behaviours. From my point of view, it seems more like a difference of degree rather than a difference of kind. $\endgroup$ Commented Jun 14, 2021 at 19:25
  • $\begingroup$ According to your definitions, any non-trivial protocol is a distributed algorithm: the parties contribute step-by-step to solve the problem of gaining common knowledge. $\endgroup$ Commented Jun 15, 2021 at 8:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.