Skip navigation

Please use this identifier to cite or link to this item: http://localhost:8080/xmlui/handle/123456789/634
Title: Certain investigations on performance enhancement of stub code in corba based applications
Other Titles: 30/09/2005
Authors: G Sudha, Sadasivam
Chitra, A
Keywords: Analysis
Assembly
Object
Scope
Standards
Issue Date: 30-Sep-2005
Publisher: Anna University
Abstract: VABSTRACTDistributedObjectSystemsprovideanexcellentsupportforevolutionarydevelopmentofsoftwarefordistributedapplicationsthroughsoftwarereuse.RequestbrokerslikeCommonObjectBrokerArchitecture(CORBA)shieldtheapplicationdevelopersfromlow-level,tediousanderrorproneplatformdetails.Theyprovideplatform,language,network,hardware,protocolandobjectlocationtransparencybyincludinganabstractionlayerbetweentheapplicationprogramsandthenetworkingprotocols.JavaRemoteMethodInvocation(RMI)islanguagedependentandDistributedComponentObjectModel(DCOM)isplatformdependent.ButCORBAistransparenttoprogramminglanguageandplatform.CORBAusesGeneralInteroperableProtocol(GIOP)asitscommunicationprotocol.Itfitsintotheapplication,presentationandsessionlayersintheOpenSystemsInterconnection(OSI)model.Presentationconversiondealswiththeconversionofdatafromlocalmachinerepresentationtoacommonnetworkformat.ThisprocessofmarshallingiscarriedoutusingstaticstubsgeneratedbytheInterfaceDefinitionLanguage(IDL)compilerorgenericdynamicstubs.ThestubcodegeneratedfromtheIDLtakescareofmarshallingtherequeststransparentlytotheuser.MajorlimitationsofcoreCORBAincludelackofselectiveinheritance,creation/destructionoftheobjectsbytheclientandinefficientmarshalling,alignandcheck,bufferinganddatacopyingprocedures.AlsoCORBAlackssupportforgenerationoftime-efficientandcompactstubcode.OtherinefficienciesinCORBAincludeThemajorobjectiveofthisthesisistostudy,analyseandproposemethodstoenhancetheperformanceofstubcode.Theresearchworkisfocusedonthefollowingissues:•EnhancementsonCORBAstandard:1.AmethodtoachieveselectivemultipleinheritanceinCORBAstatically. VISelectivemultipleinheritancecannotbedirectlyimplementedinCORBA,becausefunctionredefinitionisnotallowedinderivedinterface.AmethodusingconditionalinterfacestoimplementselectivemultipleinheritanceinCORBAisproposed.Thisusesacontainerclassderivedfromthebaseinterfacebasedonthecondition.2.AmethodforcreationanddestructionofCORBAobjectsusingabaseinterface.DeactivationoftheCORBAobjectoccurswhentheserverterminates.Thisleadstounder-utilizationofresources.Henceabaseinterfacewithoperationsforreferencecounting,instantiationand destructionofCORBA objectsisimplemented.•IdentificationofthecommonsourcesofoverheadinmarshallinginCORBA-basedapplications.•Improvementsintheefficiencyofmarshallingusingthefollowingapproaches:1. Incorporatingchangesinthetransmissionmedium.2.Introducingnewencodingrulestotakecareofreductionofsizeofthedatapassedinthenetworkandthemarshallingtime.3.Improvingthesecurityinlinklevelcommunicationofthemarshaleddata.4.Optimisedencode/decodesoftwaretogeneratetime-efficientandcompactencoding/decodingmarshallingroutines.CommonsourcesofoverheadinmarshallinginCORBA-based applicationshavebeenidentified.Thisincludesinefficientalignandcheck, multiplexinganddatacopyingalgorithmswhichreducesthespeedofInternet InteroperableProtocol(HOP),presenceofextrapaddingbytesinCommon DataRepresentation(CDR)foralignmentandlackoftime-efficientandcompactstubcode.Basedonthisstudy,changeswereproposedinthetransmissionmedium,encodingformatandencodingproceduresinCORBA. VllHOPisthetransmissionmediumforCORBAbasedapplications. Thoughitbringsaboutinteroperability,itisslow.Hencechangesinthetransmissionmediumtoimprovetheperformanceofthestubcodehavebeenproposed.Toachievethis,componentizedIDLcompilerisdesigned.Ithasthreephases-frontend,presentationgeneratorandbackend.Thebackendofthecompilergeneratesstubsandskeletonsforaparticulartransmissionmechanismandmessageformat.ConventionalCORBAstubsuseTCP/IP socketsoverHOP.Sinceitisslow,modulesareincorporatedinthebackendtoproducestubswithfasterIPCmechanismslikesharedmemory,multiplesharedmemorysegments,threadingmultiplesharedmemorysegments,socketsover TCP/IPandmultiplesockets.ThecomponentizeddesignoftheIDLcompilerfacilitatestheusageofmultipleIDLs,backendsandtargetlanguages.Usingthismodel,interoperabilitybetweenCORBAandRMIusingRMI/IIOPisachieved.AstaticbridgebetweenCORBAandCOMhasbeenimplementedusingthismodel.Encodingmechanismsalsoinfluencetheefficiencyofpresentationcode.CORBAusesCommonDataRepresentation(CDR)mechanismtoencodedata.SinceCDRusesexcessivealignmentatthewordboundaries,newencodingrulestogenerateefficientstubcodehavebeenproposed.Thisincludes thefollowing:1)Representationofbooleandatainbitformatinanarray.2) Removingthealignmentatthenaturalwordboundariestoeliminate theextrapaddingbytes.3)Correctallocationofthesendandreceivebufferspacedependinguponthesizeofthedatabeingtransmitted.4)ReorderingofparametersinthedescendingorderofsizetoreducethenumberofpaddingbitsinCDR.5)AnovellinklevelencryptionschemetobringaboutsecurityinCORBAbasedapplicationshasbeenproposed.Encryptionisperformedbychoosingasetoffunctionsfromadomainoffunctionsbasedon vinvalidation.Thevalidationprocessisdonebymappingeverybitoftheplaintextblocktoabasestringforamatch.Fasterandcompactencodingproceduresbyoptimizingtheimplementationoftheencode/decodesoftwarehavebeenproposed.Thetechniquesusedtoimplementpresentationconversionroutinescanbeinterpretedandproceduredriven.Interpretedroutinesresultinsmallercode,whileprocedure-drivenroutinesexecutefaster.Sothelatercanbeusedformorefrequentlyoccurringtypes.AnoptimizerimplementedinthepresentationgenerationstageoftheIDLcompilergeneratesahybridstubcode.Itachievesabalancebetweencodesizeandexecutionspeedofthestubcode.Theoptimizerusessingleandmultipleobjectivegeneticalgorithms.ThesuitabilityofMultipleObjectiveCross-overMutation,SelfReproductionMutation(MOCM-SRM)andGeneticLocalSearch(GLS)methodshavebeenstudied.ParallelimplementationofMOCM-SRMmethodhasbeenidentifiedtobesuitable.Theperformanceofthehybridstubcodegeneratedusingthisapproachhasbeeninvestigated.Further,CORBAtreatsDllandSllastwodifferentinvocationmechanisms.Sllstubslikecompiled,interpretedandinlinedcompilationdifferintheircodesizeandexecutionspeed.Sotheproposedmethodisextendedtogenerateahybridizedstubcodetostrikeabalancebetweenthesefourinvocationmechanisms.Sincepresentationconversionisanexpensivepartofnetworkcommunication,thefollowingmethodsareimplementedtoimprovetheefficiencyofpresentationlayerconversion:1.EfficientIPCmechanismslikesharedmemory,multiplesegmentsofsharedmemory,threadedsharedmemorysegmentsandmultiplesocketswereimplemented2.Efficienthybridstubcodewasgeneratedbyoptimizingtheencoder/decodersoftwareconsideringstaticanddynamicfrequencyofthedatatypes.3.ChangeswereimplementedintheencodingmechanismofCORBA.ThefollowingapproacheswereusedtoimprovetheefficiencyofencodinginCORBA: IX•Representationofthebooleanarraysinbitformat.•Removalofthe extrapaddingbitsinCDR.•Reorderingtheparametersinthedescendingorderoftheirsizetominimizethenumberofpaddingbytes.• ImplementingsecurecommunicationbetweenCORBAobjectsatthelinklevelusinganovelsymmetrickeyencryptionmethod.
URI: http://localhost:8080/xmlui/handle/123456789/634
Appears in Collections:Computer Science & Engineering

Files in This Item:
File Description SizeFormat 
abstract 7.pdfABSTRACT152.27 kBAdobe PDFView/Open
Show full item record


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.