Remote Procedure Call (RPC)

Nama        : Wisnu Priambodo
Nim           : 10.01.53.0040
Kelas         : A1
kelompok  : 12



Remote Procedure Call (RPC)

Remote Procedure Call (RPC) adalah sebuah metode yang memungkinkan kita untuk mengakses sebuah prosedur yang berada di komputer lain. Untuk dapat melakukan ini sebuah server harus menyediakan layanan remote procedure. Pendekatan yang dilakuan adalah sebuah server membuka socket, lalu menunggu client yang meminta prosedur yang disediakan oleh server. Bila client tidak tahu harus menghubungi port yang mana,client bisa me- request kepada sebuah matchmaker pada sebuah RPC port yang tetap.Matchmaker akan memberikan port apa yang digunakan oleh prosedur yang dimintaclient.
RPC masih menggunakan cara primitif dalam pemrograman, yaitu menggunakan paradigma procedural programming. Hal itu membuat kita sulit ketika menyediakan banyak remote procedure. RPC menggunakan socket untuk berkomunikasi dengan proses lainnya. Pada sistem seperti SUN, RPC secara default sudah ter- install kedalam sistemnya, biasanya RPC ini digunakan untuk administrasi sistem. Sehingga seorang administrator jaringan dapat mengakses sistemnya dan mengelola sistemnya dari mana saja, selama sistemnya terhubung ke jaringan.
Umumnya protokol RPC yang digunakan pada saat ini adalah DCOM (Distributed Component Object Model). Saat ini ada alternatif protokol baru, yakni SOAP (Simple Object Access Protocol), yang berdasarkan pada teknologi XML.
Implementasi RPC
Sun Microsystems Open Network Computing (ONC) : RPC specification, XDR (eXternal Data Representation) standard, UDP atau TCP transport protocol.
Xerox Courier : RPC model, Data representation standard, XNS (Xerox Network Systems) SPP (Sequenced Packet Protocol) sebagai transport protocol, Apollo’s Network Computing Architecture (NCA), RPC protocol, NDR (Network Data Representation).
Kelebihan RPC
• Relatif mudah digunakan
Pemanggilan remote procedure tidak jauh berbeda dibandingkan pemanggilan local procedure. Sehingga pemrogram dapat berkonsentrasi pada software logic, tidak perlu memikirkan low level details seperti soket, marshalling & unmarshalling.
• Robust (Sempurna)
Sejak th 1980-an RPC telah banyak digunakan dlm pengembangan mission-critical application yg memerlukan scalability, fault tolerance, & reliability.
Kekurangan RPC
• Tidak fleksibel terhadap perubahan
- Static relationship between client & server at run-time.
- Berdasarkan prosedural/structured programming yang sudah ketinggalan jaman dibandingkan OOP.
• Kurangnya location transparency
- Misalnya premrogram hanya boleh melakukan pass by value, bukan pass by reference.
- Komunikasi hanya antara 1 klien & 1 server (one-to-one at a time).
- Komunikasi antara 1 klien & beberapa server memerlukan beberapa koneksi yg terpisah.


Prinsip RPC dalam program clien-server 

Langkah-langkah dalam RPC

1. Client procedure memanggil client stub secara normal
2. Client stub membuat pesan, memanggil local OS
3. Clients OS mengirim pesan ke remote OS
4. Remote OS member pesan ke server stub
5. Server stub membuka parameters, memanggil server
6. Server bekerja, mengembalikan hasil ke stub
7. Server stub mengepak itu kedalam pesan, memanggil local OS
8. Server OS mengirim pesan ke client OS
9. Client OS member pesan client stub
10. Stub membuka hasil, mengembalikan ke client
Contoh Implementasi RPC dengan SUN RPC

• Fungsi yg dipanggil client melalui RPC:
- bin_date_1:
No arguments.
Result in long integer: waktu saat ini, dlm jumlah detik sejak 00:00:00 GMT, January 1, 1970.
- str_date_1
Mengkonversi hasil bin_date_1 menjadi readable ASCII sring.
• Berkas yg dibuat programmer:
- Server procedure: date_proc.c
- RPC specification file: date.x
- Client main function: rdate.c
• date.x -> rpcgen ->
- Server stub: date_svc.c
- date.h
- Client stub: date_clnt.c
• Generate executable client program:
- cc o rdate rdate.c date_clnt.c lrpclib
• Generate executable server program:
- cc o date_svc date_proc.c date_svc.c lrpclib
thumbnail Dipost oleh : nunuinux
Judul : Remote Procedure Call (RPC)
Terbit :2013-04-03T14:55:00+07:00


Anda sedang membaca artikel Remote Procedure Call (RPC). Jika ingin mengutip, harap memberikan link aktif dofollow ke URL http://wischain.blogspot.com/2013/04/remote-procedure-call-rpc.html. Jika tidak akan diproses secara DMCA Takedown yang tentu saja tidak baik akibatnya bagi blog saudara. Terima kasih sudah singgah di blog ini.

4.5 401 Remote Procedure Call (RPC)

8 komentar

Anonim Admin delete 13 April 2013 pukul 06.39

Tips To Give You A Better Understanding Of Pine Needle Mulch How To Mulch

my homepage; social.toptecheng.net

Anonim Admin delete 18 April 2013 pukul 02.22

Its like you read my mind! You seem to know a lot
about this, like you wrote the book in it or something.
I think that you can do with some pics to drive the message home a bit, but other than that, this is magnificent blog.
An excellent read. I'll definitely be back.

Also visit my web site :: cheap dental Implants

Anonim Admin delete 18 April 2013 pukul 19.56

I'm impressed, I must say. Rarely do I come across a blog that's equally educative and entertaining,
and without a doubt, you have hit the nail on the head.
The problem is something that not enough folks are speaking intelligently
about. Now i'm very happy that I stumbled across this in my hunt for something regarding this.

My blog post: dental implant costs

Anonim Admin delete 26 April 2013 pukul 01.09

Hi there! I just wanted to ask if you ever have any problems with
hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no back up.

Do you have any solutions to stop hackers?

Visit my page :: business oportunities

ZoToZ SEO Admin delete 29 April 2013 pukul 04.15

Bagus sekali ini yah blognya keren banget ...http://zotoz.blogspot.com/

Obat Kolesterol Tinggi Admin delete 9 Mei 2013 pukul 15.31

Kunjungan pertama gan, salam perkenalan dari saya ya :)

Anonim Admin delete 19 Mei 2013 pukul 16.54

Your diary is so informative ... Get your superior practice!


my web-site; reisen türkei side

Anonim Admin delete 25 Mei 2013 pukul 21.48

So much fοr hаving а gο at this myself, I won't be able to do it. I'll just read about it.


Feel free tо surf to my homepage ... unsecured personal loans

Berkomentarlah dengan bijak dan sopan, Dilarang menggunakan Link Mati, Promo, dll.
boleh dikasih emoticon biar kelihatan unyu-unyu
Emoticon Kode Konversi

Terjemahkan



Mengenai Saya

Foto Saya

The great pleasure in life is doing what people say you cannot do.

Kategori

Back-to-top