1 / 39

RPC

RPC. IMPLEMENTING REMOTE PROCEDURE CALLS. Andrew D. Birrell and Bruce Jay Nelson. Apresentado por:. André Ribeiro Claudia Carvalho Nuno Paiva. André Ribeiro. Andre.Ribeiro@cern.ch. Conteúdo. INTRODUÇÃO AOS RPC DESCRIÇÃO DA CONCRETIZAÇÃO ESTUDADA CONCLUSÕES. OBJECTIVO.

Télécharger la présentation

RPC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RPC IMPLEMENTING REMOTE PROCEDURE CALLS Andrew D. Birrell and Bruce Jay Nelson Apresentado por: • André Ribeiro • Claudia Carvalho • Nuno Paiva André Ribeiro, Claudia Carvalho, Nuno Paiva

  2. André Ribeiro Andre.Ribeiro@cern.ch André Ribeiro, Claudia Carvalho, Nuno Paiva

  3. Conteúdo • INTRODUÇÃO AOS RPC • DESCRIÇÃO DA CONCRETIZAÇÃO ESTUDADA • CONCLUSÕES André Ribeiro, Claudia Carvalho, Nuno Paiva

  4. OBJECTIVO Permitir que programas chamem procedimentos em outras máquinas. Como ? • Cliente • Stub do Cliente • Pacote de Comunicação • Stub do Servidor • Servidor André Ribeiro, Claudia Carvalho, Nuno Paiva

  5. FUNCIONAMENTO Caller Machine Callee Machine User stub server stub RPC Runtime RPC Runtime User server Call Packet local call pack argument transmit unpack result call receive wait work Result Packet local return unpack argument pack result return receive transmit André Ribeiro, Claudia Carvalho, Nuno Paiva

  6. PROBLEMAS • PASSAGEM DE PARAMETROS • BINDING • FALHAS • PROTOCOLO DE COMUNICAÇÕES André Ribeiro, Claudia Carvalho, Nuno Paiva

  7. Claudia Carvalho Cicarvalho@hotmail.com André Ribeiro, Claudia Carvalho, Nuno Paiva

  8. Server Stub RPCRuntime RPCRuntime Stub Server Servidor disponibiliza o seu interface André Ribeiro, Claudia Carvalho, Nuno Paiva

  9. Server Stub RPCRuntime RPCRuntime Stub Server Server invoca Server Stub André Ribeiro, Claudia Carvalho, Nuno Paiva

  10. Server Stub RPCRuntime RPCRuntime Stub Server Server Stub chama Exportinterface no RPCRuntime André Ribeiro, Claudia Carvalho, Nuno Paiva

  11. Server Stub RPCRuntime RPCRuntime Stub Server Exportinterface invoca Grapevine André Ribeiro, Claudia Carvalho, Nuno Paiva

  12. Server Stub RPCRuntime RPCRuntime Stub Server RPCRuntime grava numa tabela informação sobre o interface André Ribeiro, Claudia Carvalho, Nuno Paiva

  13. Server Stub RPCRuntime RPCRuntime Stub Server André Ribeiro, Claudia Carvalho, Nuno Paiva

  14. Server Stub RPCRuntime RPCRuntime Stub Server Cliente procura servidor André Ribeiro, Claudia Carvalho, Nuno Paiva

  15. Server Stub RPCRuntime RPCRuntime Stub Server Server chama user stub André Ribeiro, Claudia Carvalho, Nuno Paiva

  16. Server Stub RPCRuntime RPCRuntime Stub Server User Stub invoca Importinterface no RPCRuntime André Ribeiro, Claudia Carvalho, Nuno Paiva

  17. Server Stub RPCRuntime RPCRuntime Stub Server RPCRuntime procura no Grapevine o tipo de interface desejado André Ribeiro, Claudia Carvalho, Nuno Paiva

  18. Server Stub RPCRuntime RPCRuntime Stub Server Grapevine envia ao RPCRuntime o endereço do servidor André Ribeiro, Claudia Carvalho, Nuno Paiva

  19. Server Stub RPCRuntime RPCRuntime Stub Server User RPCRuntime envia pacote de binding ao Server RPCRuntime André Ribeiro, Claudia Carvalho, Nuno Paiva

  20. Server Stub RPCRuntime RPCRuntime Stub Server Tabela do Server RPCRuntime envia identif. único e tabela indexada André Ribeiro, Claudia Carvalho, Nuno Paiva

  21. Server Stub RPCRuntime RPCRuntime Stub Server Cliente guarda identif. e tabela indexada para posteriores chamadas André Ribeiro, Claudia Carvalho, Nuno Paiva

  22. Server Stub RPCRuntime RPCRuntime Stub Server Cliente estabelece ligação com o servidor André Ribeiro, Claudia Carvalho, Nuno Paiva

  23. Server Stub RPCRuntime RPCRuntime Stub Server Cliente faz uma chamada André Ribeiro, Claudia Carvalho, Nuno Paiva

  24. Server Stub RPCRuntime RPCRuntime Stub Server Stub empacota mensagem contendo o identificador do interface André Ribeiro, Claudia Carvalho, Nuno Paiva

  25. Server Stub RPCRuntime RPCRuntime Stub Server User RPCRuntime transmite mensagem André Ribeiro, Claudia Carvalho, Nuno Paiva

  26. Server Stub RPCRuntime RPCRuntime Stub Server Server RPCRuntime utiliza tabela para verificar identificador André Ribeiro, Claudia Carvalho, Nuno Paiva

  27. Server Stub RPCRuntime RPCRuntime Stub Server Server Stub desempacota chamada André Ribeiro, Claudia Carvalho, Nuno Paiva

  28. Server Stub RPCRuntime RPCRuntime Stub Server Server executa o interface André Ribeiro, Claudia Carvalho, Nuno Paiva

  29. Efeitos deste tipo de esquema • Importação de Interface • Identificador único • Chamadas em procedimentos exportados pelo RPC André Ribeiro, Claudia Carvalho, Nuno Paiva

  30. Protocolo de comunicações • PUP byte streams; Xerox NS “Courier” • Desenhado para este projecto André Ribeiro, Claudia Carvalho, Nuno Paiva

  31. Nuno Paiva nmpaiva@yahoo.com André Ribeiro, Claudia Carvalho, Nuno Paiva

  32. Chamada Simples Processamento ZZZZZ Enviar Chamada Enviar Resultado

  33. Chamada Simples

  34. Chamada Complexa Send #1 Send ACK#1 Send #2

  35. Tratamento de Excepções Send #1 Send ERROR#1

  36. Gestão de Processos 5 Processos Idle

  37. Segurança

  38. Conclusões

  39. Questões

More Related