Link to home
Start Free TrialLog in
Avatar of PeraHoman
PeraHoman

asked on

Where does consensus algorithsm (RAFT) fit in the TCP/IP model?

Can someone explain to me where consensus algorithms fit within the TCP/IP model?  Let use Raft as an example.  Does it use multicast?  Does it use it's own transport number or TCP/UDP?  Does it live on the application layer?

Thanks
Avatar of Martyn Spencer
Martyn Spencer
Flag of United Kingdom of Great Britain and Northern Ireland image

Interesting question and one in which I would not consider myself "expert", so perhaps I should not be answering. However, by my reading, it has been argued that TCP/IP is an under specified two node consensus model. The application layer contains services like telnet, smtp and ftp and these by my understanding are fixed protocols that do not make use of anything more than two nodes in a consensus model either.

You could create something at the application layer that implements a consensus protocol such as RAFT, and I imagine that such a protocol could be used to control servers providing services. With that in mind, I would argue that it would reside in the application layer, or it could be built on top of an existing tcp/ip application layer component.

I am happy to concede that this may be inaccurate if a more knowledgeable individual steps forward.
Avatar of noci
noci

Raft specifies NOTHING w.r.t.network, the RAFT papers only talk about an RPC protocol... that can be Anything.


The protocol is just a service wrt. the IP stack. That it is implemented using UDP or TCP has nothing to do with it.
So OSI Layer 7 protocol according to the docmentation i could find it uses plain UDP or TCP ports.
Multicast may make it more efficient for some type of messages and that still leaves it as layer 7, application.
(arguably level 8).

RAFT is more avout the voting process, and that in itself is just an application.   That the application can cause a system to cease actions for anything else is not in scope of the network.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.