Google interview question

Design an RPC protocol.