chapter 3 [ RPC ] Flashcards
what is the most used model for organizing distributed applications?
client-server model
what is a Chained Client-Server Interactions?
when a server acts as a client for another server
what is the downside of a Client-Server Model?
- usually doesn’t run faster than a centralized application
- client waits while server works
what are advantages of a Client-Server Model?
- specialized resources [ faster cpu, larger memory ]
- splits up the application
- allows server use by multiple clients
what is RPC?
the extension of local procedure calls into the context of a distributed system
how does RPC work?
by converting procedure call invocations into network messages and vice versa
what is a stub?
a piece of code on the client side that converts:
- function call to network req
- network resp to function returns
what is a skeleton?
is a piece of code on the server side that converts:
- net req to function call
- function return to net response
how are stubs and skeletons generated?
automatically by the RPC
what are limitations of RPC?
clients and servers do not share:
- address space
- file descriptors
- global vars
- func params
what constraints does RPC place on client-server model?
- server needs to have function prototypes
- both client and server can have internal data that can not be accessed by the other
what is sun RPC?
is a mechanism that automatically generates client stub and server skeleton using RPC compiler rpcgen.
sun rpc is _________ dependent and ________ independent?
language [ c ] and platform
what is port mapper?
a protocol that permits a client to look up the port number of programs hosted on the server
What port is port mapper?
port 111