0
7.3kviews
What do you mean by marshalling of arguments and results in RPC? List the actions involved in marshalling.

This question appears in Mumbai University > Distributed System Subject

Marks: 5 M

Year: May 2015

1 Answer
5
90views

1) Marshalling or marshaling is the process of transforming the memory representation of an object to a data format suitable for storage or transmission, and it is typically used when data must be moved between different parts of a computer program or from one program to another.

2) Marshalling is similar to serialization and is used to communicate to remote objects with an object, in this case a serialized object.

3) It simplifies complex communication, using custom/complex objects to communicate instead of primitives.

4) The opposite, or reverse, of marshalling is called un-marshalling (or de-marshalling, similar to deserialization).

Actions involved in marshalling:

  1. First, an application issues an invocation request by locally calling the associated method, just like calling a procedure in an RPC.

  2. The control sub object checks the user permissions with the information stored in the local security object. In this case, the security object should have a valid user certificate.

  3. The request is marshaled and passed on.

  4. The replication sub object requests the middleware to set up a secure channel to a suitable replica.

  5. The security object first initiates a replica lookup. To achieve this goal, it could use any naming service that can look up replicas that have been specified to be able to execute certain methods. The Globe location service has been modified to handle such lookups.

  6. Once a suitable replica has been found, the security sub object can set up a secure channel with its peer, after which control is returned to the replication sub object. Note that part of this establishment requires that the replica proves it is allowed to carry out the requested invocation.

  7. The request is now passed on to the communication sub object.

  8. The sub object encrypts and signs the request so that it can pass through the channel.

  9. After its receipt, the request is decrypted and authenticated.

  10. The request is then simply passed on to the server-side replication sub object.

  11. Authorization takes place: in this case the user certificate from the client-side stub has been passed to the replica so that we can verify that the request can indeed be carried out.

  12. The request is then un-marshaled.

  13. Finally, the operation can be executed.
Please log in to add an answer.