sistem terdistribusi 2

Upload: misael-boanerges-sesa

Post on 06-Jul-2018

236 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 Sistem terdistribusi 2

    1/36

    Sistem Terdistribusi 2

     

  • 8/18/2019 Sistem terdistribusi 2

    2/36

     • er u ungan engan pe e a an omponen-

    komponen dan juga relasi antar komponen• emas an s ru ur ars e ur sa memenu

    kebutuhan dan membuat sistem reliable,, ,

    • Sistem hrs melakukan klasifikasi terhadap proses, ,

    • Sister memiliki banyak sekali variasi, tergantung, , ,

    keamanan, dan biaya

  • 8/18/2019 Sistem terdistribusi 2

    3/36

    -• ar s s mo e pema a an

     – Variasi yang beragam terhadap karakteristikemakaian sistem• Berapa kali suatu halaman dikunjungi?

    • Seberapa sibuk suatu server?

    • e – Masalah konkurensi akses 

     – Masalah heterogenitas: hardware, sistem operasi dan

     jaringan• Dari sisi masalah ancaman eksternal

     – Masalah keamanan data

  • 8/18/2019 Sistem terdistribusi 2

    4/36

     •  

     – Organisasi logika dari komponen-komponen

     –  Ada 4 jenis:

     

    • Object-based architectures

     

    • Event-based architectures

     

     – Placement of machines

     – Placement of software on machines

  • 8/18/2019 Sistem terdistribusi 2

    5/36

    Software architecture

    Layered system- Breaking up the complexity of systems by

    designing them through layers and services- layer: group of closely related and highly coherent

    functionalities

    - service: functionality provided to a superior layer 

    - Exam les of la ered architectures

    - operating systems (kernel, other services),

    -

  • 8/18/2019 Sistem terdistribusi 2

    6/36

     

    Contoh OS:

     – Windows

     – Linux – Macintosh

    Contoh lain: OSI dan

    TCP/IP

  • 8/18/2019 Sistem terdistribusi 2

    7/36

    Typical layering in Distributed

    Systems- a orm: ar ware an opera ng sys em

    - Windows NT / Pentium processor - Solaris / SPARC processor 

    - Middleware: achieve trans arenc of

    heterogeneity at platform level- Achieve communication and resource sharin

    ie.g., remote method invocation

    - Examples- CORBA (OMG), DCOM (Microsoft), Java Remote

    Method Invocation (Sun)

  • 8/18/2019 Sistem terdistribusi 2

    8/36

     

    ,

  • 8/18/2019 Sistem terdistribusi 2

    9/36

    -Dikenal sbg: Publish/Subscribe System

    Proses Berkomunikasi berdasarkan event yg terjadi

  • 8/18/2019 Sistem terdistribusi 2

    10/36

     

    Proses-proses berkomunikasi melalui repository data (database terdistribusi)

  • 8/18/2019 Sistem terdistribusi 2

    11/36

     • roses erver  

     – Menyediakan layanan dan menangani request  – Proses membuat melakukan request

    • – Proses yang saling bekerja sama dan berkomunikasi

    • – Menyediakan transparansi terhadap

    keanekaragaman platform proses dan objek padaaplikasi terdistribusi

     – Cth: CORBA, Java RMI, DCOM

  • 8/18/2019 Sistem terdistribusi 2

    12/36

     -

    Client invocation Server 

    invocation

    Server result result

    ClientKey:

    • Bersifat: centralized architecture

    • Terjadi invocation dari client ke server 

    • Contoh: client (browser) meminta HTML ke HTTP Server 

  • 8/18/2019 Sistem terdistribusi 2

    13/36

      -

  • 8/18/2019 Sistem terdistribusi 2

    14/36

     • erv ce : enye a an ayanan erp sa yang

    berbeda• Shared resource : erver dapat melayani

    beberapa client pada saat yang sama dan

    •  Asymmetrical Protocol : antara client dan server- - .

    Mix-and-match : tidak tergantung pada platform• Encapsulation of service : message

    memberitahu server apa yang akan dikerjakan

  • 8/18/2019 Sistem terdistribusi 2

    15/36

     • ransparency oca on : proses server apa

    ditempatkan pada mesin yang sama atau

    akan menyembunyikan lokasi server dari client.

    • Messa e-based-exchan e : antara client dan

    server berkomunikasi dengan mekanismepertukaran message.

    • ca a y : s s em apa me ar an avertikal maupun horisontal

     terpusat, sedangkan pada client tetap padakom uter tersendiri

  • 8/18/2019 Sistem terdistribusi 2

    16/36

    Multiple

    server 

    • Service disediakan oleh beberapa server 

    • Contoh: sebagian besar layanan web komersialditerapkan melalui server fisik yang berbeda

      ,

    • Server menggunakan replikasi atau databaseterdistribusi

  • 8/18/2019 Sistem terdistribusi 2

    17/36

     Client

    Proxy

    Web

    server 

    server 

     

    server 

    Client

    •sebagai proxy

    • Cache:• menyimpan informasi lokal yg sering digunakan• Mengurangi beban kerja server 

    • Meningkatkan kinerja

    • Wajib digunakan pada search engine

  • 8/18/2019 Sistem terdistribusi 2

    18/36

  • 8/18/2019 Sistem terdistribusi 2

    19/36

     a c en reques resu s n e own oa ng o app e co e

    Web

    server  Applet code

    Client

    b) client interacts with the applet

    Webserver 

  • 8/18/2019 Sistem terdistribusi 2

    20/36

     • Executing program (code + data) in client side,

    carrying out of an autonomous task & interactive• Advantages: flexibility and savings in

    communications cost

    • Disadvantages: worm programs and cannot

  • 8/18/2019 Sistem terdistribusi 2

    21/36

     

  • 8/18/2019 Sistem terdistribusi 2

    22/36

     

    • The simplified organization of an Internet search engine into threedifferent layers.

  • 8/18/2019 Sistem terdistribusi 2

    23/36

     •

    architecture

    • e s mp es organ za on s o ave on ytwo types of machines:

     –  A client machine containing only theprograms implementing (part of) the user-

    interface level

     –  A server machine containin the rest• the programs implementing the processing and

    data level

  • 8/18/2019 Sistem terdistribusi 2

    24/36

     Thin Client Thick Client

    onto n ent:

    • VNC client (Virtual Network Controller)

    • VNC is remote control software which allows ou to view and full interact with one computer desktop

  • 8/18/2019 Sistem terdistribusi 2

    25/36

     

  • 8/18/2019 Sistem terdistribusi 2

    26/36

    • Sebuah komponen untuk

     – Men amarkan hetero eneit

     – Melakukan message passing

    • represen as an a am en u o ec• Contoh: Sun RPC CORBA RMI DCOM

    • Keuntungan: OS + Hardware independen

  • 8/18/2019 Sistem terdistribusi 2

    27/36

    - -

  • 8/18/2019 Sistem terdistribusi 2

    28/36

    - -• Static structure

     – LAN – Example: Borgchat

    • D namic structure

     – Structured• Distributed hash table

     – Unstructured

     – Example JXTA, Torrent

  • 8/18/2019 Sistem terdistribusi 2

    29/36

      - -

  • 8/18/2019 Sistem terdistribusi 2

    30/36

    • Gabun an eer-to- eer & client server 

  • 8/18/2019 Sistem terdistribusi 2

    31/36

    Collaborative Distributed Systems -

    bitTorrent

    • Download file .torrent dari website, yang berisi

    • Sisterm akan mencari penyedia file (seeder)

    • ,

    dalam node seed dan peer 

  • 8/18/2019 Sistem terdistribusi 2

    32/36

     • Interaction model: sistem dipandang

    terdiri dari ban ak roses an salinberinteraksi

     

    • Security model: sistem harus diamankan

  • 8/18/2019 Sistem terdistribusi 2

    33/36

     

    it is impossible for any process to have a view on the current global state ofthe system

  • 8/18/2019 Sistem terdistribusi 2

    34/36

    -• a ency, e ay an ara peng r m an pener ma message

     – Network access time (cth: ethernet delay)

     –pengirim ke Network Interface Penerima

     – Waktu pemrosesan pada proses pengiriman dan penerimaan

    • roug pu , um a pa e yang eran ar per sa uan

    waktu

    • ,satuan waktu

    • Delay jitter , variasi delay antar pesan bertipe samayang berbeda (cth: video frame delay)

  • 8/18/2019 Sistem terdistribusi 2

    35/36

    -• Process failure: crash

    • Deteksi d n timeout

    • Communication failure: message drop

    • arena: transm ss on error, u er over ow•  Arbitrar failure: roses melewatkan ste

    yang harus dilakukan atau membawa data

    • Data korup, data double

  • 8/18/2019 Sistem terdistribusi 2

    36/36

    Interprocess Communication:

    • , ,communication, karakteristik IPC, macam-

      ,

    • Komunikasi jaringan: OSI, TCP, UDP

    • Failure model of IPC

    • epresen as a a

    • Sumber: cha ter 4