6

can anyone please explain which protocol is more scalable and what the difference is between

  1. TCP (TRANSMISSION CONTROL PROTOCOL),and
  2. RPC(REMOTE PROCEDURE CALL).
joran
  • 169,992
  • 32
  • 429
  • 468
Manjula
  • 61
  • 1
  • 1
  • 5

1 Answers1

14

RPC - Remote Procedure Call basically is a form of inter-process communication that allows one program to directly call procedures in another program either on the same machine or another machine on the network.

For more details see the wikipedia article: Remote procedure call

RPC runs on top of (uses) TCP. TCP allows computers to send arbitrary length data to each other with guaranteed delivery. RPC operates at the same level as POP, SMTP, and other protocols. Those protocols also run on top of TCP.

TCP is a lower level protocol. Since RPC runs on top of TCP your question about scalability is not relevant.

hookenz
  • 36,432
  • 45
  • 177
  • 286
  • 2
    Just to be clear, RPC may run on TCP or also may run on top of other protocols. The difference is in the layer of the protocol. The OSI 7 layer architecture is good for this. RPC is layer 7 (application) and TCP is a transport at layer 4. – Francis Upton IV Dec 26 '11 at 04:57
  • Quite true @FrancisUpton. I was going to mention that, but decided that he probably doesn't know what OSI layer's are so kept it simple. – hookenz Dec 26 '11 at 05:01
  • 2
    No one knows what OSI layers are except us ancients. :) – Francis Upton IV Dec 26 '11 at 05:06