0% found this document useful (0 votes)
31 views25 pages

Topic - 3 DIS

Uploaded by

Parth Suru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
31 views25 pages

Topic - 3 DIS

Uploaded by

Parth Suru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 25
: Tssignment No.3. Pase No. 16 2. Explain, Transparency of RPC Transparency of -RP¢ A_Avansparent RPC mechanism ts one in hich local procedure § remote procedure etre inelisaguishable ts Program mers. There yequives the Ffellowing “fuse types © syntahic_:tyansparency a G@__ Semantic _ transparency O-syntatic transparency. Li : pared Ie + “means thal the semantics of sod ei wemnter procedure call shouted have exachy the _ Same syntax as a__local cece Coy Mewest oe ott SES —@ Semankc 4ransparency ae = _means- thar. the semanhics of a Tremote— procedure call_ave_idenical_ts these of a —lecal_proceclure call x _Unfer tunately “ochieuing “exadly. the “Same_semantics fer temate— procedure calls _a5_for_local procedure —tlose to on at is manly beeause of the following. “difference. yemobe procedure Calls 8 local procedure a Unlike local Procedure Call with remate procedure cat hak dalle el oe nis. execubed -Fn-An— a delves space that is clisyoint ham thecal ia SVERI's COLLEGE OF SanEeRH, PANDHARPUR, i I | Program. address...space.-.Due te this. reason, | the Called _proceclure cannot have. access to any Variables oy data values sin the. calling: pregran, environments - aes ,ex. linked lists. @_ Remote procedure calls are more vulnerable te | Failure. than local. procedure. Call since they inveiue two diff. Processes." possiblya_n/uw ~—. $_ twoo_eliFferent tempound. — "Therefor e_pgm thak. make. -use of remote “preced- sUre—cal must have the capability or handling - — euen_these errors. thas cannes ocr in_tecal 1 Procedur #_Couls.; ——__| —_@_ Remote procedure calls Consume —tmuch_maore_Hme o4 Than.locol procedure: cals. ~ ——— This-is—mainiy clue ty invowed) of a comm? Network in RPCs seis yee tae! —Therefore _cipp®s__Using Pc _mush_alse have the Capability: tohandte the tong delays: that may possible. oceux due ts Niu. Cen gestion. Explain _RPc_mechanism_wsith C x PV —steces f The RPc_model is similar, tothe welt know § ell Understood procedure —Call_ model aU per raking ia coll the caller. place- - Hula. argument to the t = tire. 4 |_—_——- | SVERI's Co eseAua ein RA SPIe [ k RING, PANDHARPUR CUT TT Pago No.: 17 _Specifieel location « 2) Controiis. then’ transferred . to the sequence of -Linstvucion.thak constitules the bod of the --precedure. H 3) The procecluve body is executed in a Newly trea- Fed execution.‘ envinenment.othakinciudes Gpies of the arqument——dqiven—in_the calling _instructien, ___0_ After the -proceclure's execution is over, Contrel_return tothe _cauling point, pessibly returning result. The rec_mechanism 15. the procedure calt_mechanism thas _jh_enables_a_coll_te be made te_a_precedure tha} dees _not_eside in the address space of olin 9 process: = pie _ au The called procedure may be on the Same. Compuler_as_the Calling Precess_6r_ ana different tom puter. ee ae aay —___ fig. show when _a_remite procedure call_is_made the taller _Ond_callee processes interac} in Following manner. ~ “The Caller Client process). sends a_call trequest? msg tothe callee (server process). § waits —-for_a_reply msg. ae Lee _ The reques} ms5q--@ntains the» remele Procedures... parameler amen other things. ~—@._The_server_process execute the procedure $ then returns the resull of procedure _exewtion—in-a— SVERI's COLLEGE OF ENGINEERING, PANDHARPUR —neply msg te the dient. Prectss. in 8M Once thie veply msg—is yeceiied the veswt of iz _ procedure. exeuuion is exacted 4 the. Caller's —— execution. is resumed. = vel 2 § a2 LTT e- Servers Process. 1 the arrival. “normally dlermant atoaiting * OF a _yequesk- msg. . ; siiimsge( contain re, fe, Proced ty i Pavamerer). } Tepy msg. Cwnlain yesur of Protedune execuneny 4D Eyple ah mocked of remete Prcecdlune call BE Adhen one anvives the Server process ex aus 5 Oa Cer Gmpubers the. > esults. E “ade A peut “coll_msg : a a Walls the be eae + : Ms invogrte a vs ait OLLEGE OF ENGINEERING, PANDHAREUR A Bert ie Pago No.: 18 3) Lis} § explain the step tised in fer RP¢ 8 Explain implementation of Pein cfetail with digs —-Tmplementaton of ree mechanism. t Th achieve the ‘geal of semahtc ————transpenenty_the implementation 6 F an RPc ~Methanisin ‘is done. | «Tol thide the existence § funcional deiails of the _undettying networle an RPC Communicatisn package is Used on beth the client. server — side. ___ Like Ft “Thus—implementation of on RPc_mecheinism usually involves the followin: 2) “tient stub. aff 8). RPC Runtime end BG ot. hy aia! JDL Gervewas tub ny alot i ate eration bet? them is shown in fig i The Client stub p-and—6pe- instance. oF Rec _ Runtime execute onthe Client mathine while the Server the server stubs and. anether instance ofl RPC Runtimeexecubke .on the server machine— aibed = The job of each of these elements 15— Proto wl 21} Shs least +-once = Call semanties 1 aos oe ety a This: sn Ain preven tweaker. Cel sema- nics than_the last of many call semantics. Ta just guvantees thot the colt is executed one or more time bul. does nor spetity which result are returned te the Callernon ety + Fi_can_be-implemented simply by using timesul based retransmission —withoul caring fer the orphan cells aa Y= Once — call semantics : fesse nated ia “This..i5\ the shrengest 8) themes! — Sesirable coll semantics. because it éliminates the possibility of the procedure. being exetuted mere than _¢nce__he matter hoes many times a call is. retransmitted: : ssthnod 6h —— Thelast_one last~ Of = many. s,ab- leash once col | semantics connet._qurankee. this i SVERI's COLLEGE OF ENGINEERING, PANOHARPUR 8) Wha) is RP 2. Explain, clienl = server binding — oe mechanism in RPe ! " ral Me RPcis_vemete_proceclttre call: Th is_sas Communiccdion protecel thab /one pgm a ‘be Used tol vequesl a sover From. a pgm locabed in _anothey, " -Campiter on N/w. witheul having te understand the nile details +--+ + ae, RPC Uses the clien}= server smocdel.the ‘requesting isa thent§ the service Proving pgm-_is = cthe ooserver, xu fate cit as : L Reis synchrenousoperayion requesting the reques- ing’ lpgm tes bet Suspendtel until the vest of ——-Femole_precedure _aresyveturned s ~~ -F_is- necessary for q_ client to “the_lecation OF a server before a. remote. Vea Callan take place bet? them. The prcess —byushich a clrent be tames. Associated ——— with Server ise that calls Con tare: Mownp as. binclip. oO NoAE hs acsih vane sa Liscet nae i handle Peper issues. ae 7 yl Hom does a tlient_ SpeciEY a server te which it ——— Silas woands> te ge} bound 2. $0 - Holo. does-the. Place_is___—_— Page No.: 26 9 When it proper te bind a dient te..o. server 4) 7s 4 possible. Fora dient to than ge a. binding . during exetuttion 2 1. Jona : 13 5)_can dient be simullaneousty bound. 4s. muttiple Servers. thal provide the same service 7 —in_binding Aeaddsay ty Server __N.amin. e. specification by a client of serv~ wants. ts__temmuni-cake is primarily — naming issues _—__. The_type—par}_of_an_interface usual y—culse_has. A=} -_______Version mo. _fieid te dislinugish + bei? “ore § new + Versian of ithe, _interPace- that the different sef Sth ofa procediire swith yo Be caltihenintertachs mame sctemantics “ave based on _ “3 = Larrangmens. bet? the exporter 16 dhe im perter_ = Es i bes found by locking up the server name in He- The tent $ seer medules are —— Page No.: 27 A_ client then _.make.an import request to the binding —ageni_fer the service before _meucing aco. _ jor th inding ab call Hme yh act a A_Uient_is bound te_a_server_ak the time when i} calls the server for the first Aime during ifs _execuHon.. AL Commenly “used apprmach- fas binding au_calt ime is the indixect cali method As shown_in fig _|gm_thismethed when a_clientcalis server for the — | fixsk time, iH passes the Severs inlerface name— -RPC_call_te the bineling |» Binding s99| [server e_ | Precess SVERI's COLLEGE OF ENGINEERING, PANOHARPUR » interface ___)). The Client cess passes the server in name Dascaaqucents of the Rec cet) te the binding agent 2) The binding agen sends_as RPC Call_msg to the servers induding— in _it_argument_veceiue From __ the client oot sti. de vail gh See 3), “The server returns the vest of “request processing te the binding agent. as ___4) “The binding agent_veturns. this. “nesult_te the lent aleng ith server hand S13} Subsequent Calis ave enh dinaity” fe from the dient __process_te_the Server process is 3) tite nete_on REC prokecel — —RPeAis eee ea = {5 sw Comm? produt “thal ene pgm Can Use fee vequest_a_senvice_frem_o pgm tecated in —_ Cansther_Gmpujer_on N/a bsithout having te Understand the N/u details. ° state aes is used fax clienbie dey sie “are_ustd when a Computer | ge sub muting te — spate. — _ —— VERS COLLEGE OF EweINeRs OF ENGINE! | 'ERING, PANDHARPUR ver Appl? RPC mechanism P4m_cause a_precedlure exeaue in ditteyent Pee soe \ Pago No.: 28 { This pretedtire cell alse manage low ltvel Iyan- sport _protocels Suth a5 OPP, TePs dP> THis Used fer anaying the weg elala bel? | Abe pgm E Reatuves simple Coul syntax 2_ Familiar semantics — ye. _Tis_erficient —

You might also like