cma. tca srinivasa prasad computing basics.pdf · tca srinivasa prasad 5. 6 architecture •the...

Post on 27-Sep-2020

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

CMA. TCA Srinivasa Prasad+91 947 770 222710996tcasp@icmaim.comwww.tcasprasad.in

09/12/17 CMA. TCA Srinivasa Prasad

CloudComputing

3

WhatisCloudComputing?

• CloudComputingisageneraltermusedtodescribeanew

classofnetworkbasedcomputingthattakesplaceoverthe

Internet,

– basicallyasteponfromUtilityComputing

– acollection/groupofintegratedandnetworkedhardware,

softwareandInternetinfrastructure(calledaplatform).

– UsingtheInternetforcommunicationandtransport

provideshardware,softwareandnetworkingservicesto

clients

• Theseplatformshidethecomplexityanddetailsofthe

underlyinginfrastructurefromusersandapplicationsby

providingverysimplegraphicalinterfaceorAPI(Applications

ProgrammingInterface).09/12/17 CMA. TCA Srinivasa Prasad

4

WhatisCloudComputing?

• Inaddition,theplatformprovidesondemand

services,thatarealwayson,anywhere,

anytimeandanyplace.

• Payforuseandasneeded,elastic

– scaleupanddownincapacityandfunctionalities

• Thehardwareandsoftwareservicesare

availableto

– generalpublic,enterprises,corporationsand

businessesmarkets

409/12/17 CMA. TCA Srinivasa Prasad

5

CloudSummary

• Cloudcomputingisanumbrellatermusedtoreferto

Internetbaseddevelopmentandservices

• Anumberofcharacteristicsdefineclouddata,

applicationsservicesandinfrastructure:

– Remotelyhosted:Servicesordataarehostedonremote

infrastructure.

– Ubiquitous:Servicesordataareavailablefromanywhere.

– Commodified:Theresultisautilitycomputingmodel

similartotraditionalthatoftraditionalutilities,likegas

andelectricity- youpayforwhatyouwouldwant!

509/12/17 CMA. TCA Srinivasa Prasad

6

Architecture

• Thearchitecturebehindcloudcomputingisa

massivenetwork.

• Thecloudcomputinginfrastructureconsistsof

reliableservices.

• TheCloudappearsasasinglepointofaccess

forallthecomputingneedsofconsumers.

8

CloudArchitecture

809/12/17 CMA. TCA Srinivasa Prasad

9

WhatisCloudComputing

9Adopted from: Effectively and Securely Using the Cloud Computing Paradigm by peter Mell, Tim Grance

• Sharedpoolofconfigurablecomputingresources

• On-demandnetworkaccess

• ProvisionedbytheServiceProvider09/12/17 CMA. TCA Srinivasa Prasad

10

CloudComputingCharacteristics

10

Common Characteristics:

Low Cost Software

Virtualization Service Orientation

Advanced Security

Homogeneity

Massive Scale Resilient Computing

Geographic Distribution

Essential Characteristics:

Resource Pooling

Broad Network Access Rapid Elasticity

Measured Service

On Demand Self-Service

Adopted from: Effectively and Securely Using the Cloud Computing Paradigm by peter Mell, Tim Grance

09/12/17 CMA. TCA Srinivasa Prasad

11

CloudServiceModels

11

Software as a Service (SaaS)

Platform as a Service (PaaS)

Infrastructure as a Service (IaaS)

Google App Engine

SalesForce CRM

LotusLive

Adopted from: Effectively and Securely Using the Cloud Computing Paradigm by peter Mell, Tim Grance

09/12/17 CMA. TCA Srinivasa Prasad

12

SaaSMaturityModel

12Source: Frederick Chong and Gianpaolo Carraro, “Architectures Strategies for Catching the Long Tail”

Level2:Configurableper

customer

Level3:configurable&

Multi-Tenant-Efficient

Level1:Ad-Hoc/Custom–OneInstancepercustomer

Level4:Scalable,Configurable

&Multi-Tenant-Efficient

09/12/17 CMA. TCA Srinivasa Prasad

13

DifferentCloudComputingLayers

Application Service(SaaS)

Application Platform

Server Platform

Storage Platform Amazon S3, Dell, Apple, ...

3Tera, EC2, SliceHost, GoGrid, RightScale, Linode

Google App Engine, Mosso,Force.com, Engine Yard,Facebook, Heroku, AWS

MS Live/ExchangeLabs, IBM, Google Apps; Salesforce.comQuicken Online, Zoho, Cisco

1309/12/17 CMA. TCA Srinivasa Prasad

14

Services

Application

Development

Platform

Storage

Hosting

CloudComputingServiceLayersDescriptionServices – Complete business services such as PayPal, OpenID, OAuth, Google Maps, Alexa

Services

ApplicationFocused

InfrastructureFocused

Application – Cloud based software that eliminates the need for local installation such as Google Apps, Microsoft Online

Storage – Data storage or cloud based NAS such as CTERA, iDisk, CloudNAS

Development – Software development platforms used to build custom cloud based applications (PAAS & SAAS) such as SalesForce

Platform – Cloud based platforms, typically provided using virtualization, such as Amazon ECC, Sun Grid

Hosting – Physical data centers such as those run by IBM, HP, NaviSite, etc.

1409/12/17 CMA. TCA Srinivasa Prasad

15

BasicCloudCharacteristics

• The“no-need-to-know”intermsoftheunderlying

detailsofinfrastructure,applicationsinterfacewith

theinfrastructureviatheAPIs.

• The“flexibilityandelasticity”allowsthesesystems

toscaleupanddownatwill

– utilisingtheresourcesofallkinds

• CPU,storage,servercapacity,loadbalancing,anddatabases

• The“payasmuchasusedandneeded”typeofutilitycomputingandthe“alwayson!,anywhereandanyplace”typeofnetwork-basedcomputing.

1509/12/17 CMA. TCA Srinivasa Prasad

16

BasicCloudCharacteristics

• Cloudaretransparenttousersand

applications,theycanbebuiltinmultiple

ways

– brandedproducts,proprietaryopensource,

hardwareorsoftware,orjustoff-the-shelfPCs.

• Ingeneral,theyarebuiltonclustersofPC

serversandoff-the-shelfcomponentsplus

OpenSourcesoftwarecombinedwithin-

houseapplicationsand/orsystemsoftware.

1609/12/17 CMA. TCA Srinivasa Prasad

17

SoftwareasaService(SaaS)

• SaaSisamodelofsoftwaredeploymentwherean

applicationishostedasaserviceprovidedto

customersacrosstheInternet.

• Saasalleviatestheburdenofsoftware

maintenance/support

– butusersrelinquishcontroloversoftwareversionsand

requirements.

• Termsthatareusedinthissphereinclude

– PlatformasaService(PaaS)and– InfrastructureasaService(IaaS)

1709/12/17 CMA. TCA Srinivasa Prasad

18

Virtualization

• Virtualworkspaces:

– Anabstractionofanexecutionenvironmentthatcanbemade

dynamicallyavailabletoauthorizedclientsbyusingwell-defined

protocols,

– Resourcequota(e.g.CPU,memoryshare),

– Softwareconfiguration(e.g.O/S,providedservices).

• ImplementonVirtualMachines(VMs):

– Abstractionofaphysicalhostmachine,

– HypervisorinterceptsandemulatesinstructionsfromVMs,andallows

managementofVMs,

– VMWare,Xen,etc.

• ProvideinfrastructureAPI:

– Plug-instohardware/supportstructures Hardware

OS

App App App

Hypervisor

OS OS

Virtualized Stack1809/12/17 CMA. TCA Srinivasa Prasad

19

VirtualMachines

• VMtechnologyallowsmultiplevirtual

machinestorunonasinglephysicalmachine.

Hardware

Virtual Machine Monitor (VMM) / Hypervisor

Guest OS(Linux)

Guest OS(NetBSD)

Guest OS(Windows)

VM VM VM

AppApp AppAppAppXen

VMWare

UML

Denalietc.

Performance: Para-virtualization (e.g. Xen) is very close to raw physical performance!

1909/12/17 CMA. TCA Srinivasa Prasad

20

VirtualizationinGeneral

• Advantagesofvirtualmachines:

– Runoperatingsystemswherethephysicalhardwareis

unavailable,

– Easiertocreatenewmachines,backupmachines,etc.,

– Softwaretestingusing“clean”installsofoperatingsystems

andsoftware,

– Emulatemoremachinesthanarephysicallyavailable,

– Timesharelightlyloadedsystemsononehost,

– Debugproblems(suspendandresumetheproblemmachine),

– Easymigrationofvirtualmachines(shutdownneededornot).

– Runlegacysystems!

2009/12/17 CMA. TCA Srinivasa Prasad

21

Whatisthepurposeandbenefits?

• Cloudcomputingenablescompaniesand

applications,whicharesysteminfrastructure

dependent,tobeinfrastructure-less.

• ByusingtheCloudinfrastructureon“payasused

andondemand”,allofuscansaveincapitaland

operationalinvestment!

• Clientscan:

– Puttheirdataontheplatforminsteadofontheirown

desktopPCsand/orontheirownservers.

– Theycanputtheirapplicationsonthecloudandusethe

serverswithinthecloudtodoprocessinganddata

manipulationsetc.2109/12/17 CMA. TCA Srinivasa Prasad

22

Cloud-Sourcing

• WhyisitbecomingaBigDeal:

– Usinghigh-scale/low-costproviders,

– Anytime/placeaccessviawebbrowser,

– Rapidscalability;incrementalcostandloadsharing,

– CanforgetneedtofocusonlocalIT.

• Concerns:

– Performance,reliability,andSLAs,

– Controlofdata,andserviceparameters,

– Applicationfeaturesandchoices,

– InteractionbetweenCloudproviders,

– NostandardAPI– mixofSOAPandREST!

– Privacy,security,compliance,trust…2209/12/17 CMA. TCA Srinivasa Prasad

23

SomeCommercialCloudOfferings

2309/12/17 CMA. TCA Srinivasa Prasad

24

CloudTaxonomy

2409/12/17 CMA. TCA Srinivasa Prasad

25

CloudStorage

• SeverallargeWebcompaniesarenowexploitingthe

factthattheyhavedatastoragecapacitythatcanbe

hiredouttoothers.

– allowsdatastoredremotelytobetemporarilycachedon

desktopcomputers,mobilephonesorotherInternet-

linkeddevices.

• Amazon’sElasticComputeCloud(EC2)andSimple

StorageSolution(S3)arewellknownexamples

– MechanicalTurk

2509/12/17 CMA. TCA Srinivasa Prasad

26

AmazonSimpleStorageService(S3)

• UnlimitedStorage.

• Payforwhatyouuse:

– $0.20perGByteofdatatransferred,

– $0.15perGByte-Monthforstorageused,

– SecondLifeUpdate:

• 1TBytes,40,000downloadsin24hours- $200,

2609/12/17 CMA. TCA Srinivasa Prasad

27

UtilityComputing– EC2

• AmazonElasticComputeCloud(EC2):

– Elastic,marshal1to100+PCsviaWS,

– MachineSpecs…,

– Fairlycheap!

• PoweredbyXen– aVirtualMachine:

– DifferentfromVmwareandVPCasuses“para-virtualization”where

theguestOSismodifiedtousespecialhyper-calls:

– HardwarecontributionsbyIntel(VT-x/Vanderpool)andAMD(AMD-V).

– Supports“LiveMigration”ofavirtualmachinebetweenhosts.

• Linux,Windows,OpenSolaris

• ManagementConsole/AP

2709/12/17 CMA. TCA Srinivasa Prasad

28

EC2– TheBasics

• LoadyourimageontoS3andregisterit.

• BootyourimagefromtheWebService.

• Openuprequiredportsforyourimage.

• ConnecttoyourimagethroughSSH.

• Executeyouapplication…

2809/12/17 CMA. TCA Srinivasa Prasad

29

OpportunitiesandChallenges

• Theuseofthecloudprovidesanumberof

opportunities:

– Itenablesservicestobeusedwithoutanyunderstanding

oftheirinfrastructure.

– Cloudcomputingworksusingeconomiesofscale:

• Itpotentiallylowerstheoutlayexpenseforstartupcompanies,as

theywouldnolongerneedtobuytheirownsoftwareorservers.

• Costwouldbebyon-demandpricing.

• VendorsandServiceprovidersclaimcostsbyestablishingan

ongoingrevenuestream.

– Dataandservicesarestoredremotelybutaccessiblefrom

“anywhere”.

2909/12/17 CMA. TCA Srinivasa Prasad

30

OpportunitiesandChallenges• Inparalleltherehasbeenbacklashagainstcloudcomputing:

– Useofcloudcomputingmeansdependenceonothersandthatcould

possiblylimitflexibilityandinnovation:

• TheothersarelikelybecomethebiggerInternetcompanieslikeGoogle

andIBM,whomaymonopolisethemarket.

• Somearguethatthisuseofsupercomputersisareturntothetimeof

mainframecomputingthatthePCwasareactionagainst.

– Securitycouldprovetobeabigissue:

• Itisstillunclearhowsafeout-sourceddataisandwhenusingthese

servicesownershipofdataisnotalwaysclear.

– Therearealsoissuesrelatingtopolicyandaccess:

• Ifyourdataisstoredabroadwhosepolicydoyouadhereto?

• Whathappensiftheremoteservergoesdown?

• Howwillyouthenaccessfiles?

• Therehavebeencasesofusersbeinglockedoutofaccountsandlosing

accesstodata.

3009/12/17 CMA. TCA Srinivasa Prasad

31

AdvantagesofCloudComputing

• Lowercomputercosts:

– Youdonotneedahigh-poweredandhigh-pricedcomputer

toruncloudcomputing'sweb-basedapplications.

– Sinceapplicationsruninthecloud,notonthedesktopPC,

yourdesktopPCdoesnotneedtheprocessingpowerorhard

diskspacedemandedbytraditionaldesktopsoftware.

– Whenyouareusingweb-basedapplications,yourPCcanbe

lessexpensive,withasmallerharddisk,lessmemory,more

efficientprocessor...

– Infact,yourPCinthisscenariodoesnotevenneedaCDor

DVDdrive,asnosoftwareprogramshavetobeloadedand

nodocumentfilesneedtobesaved.

3109/12/17 CMA. TCA Srinivasa Prasad

32

AdvantagesofCloudComputing

• Improvedperformance:

– Withfewlargeprogramshoggingyourcomputer's

memory,youwillseebetterperformancefromyourPC.

– Computersinacloudcomputingsystembootandrun

fasterbecausetheyhavefewerprogramsandprocesses

loadedintomemory…

• Reducedsoftwarecosts:

– Insteadofpurchasingexpensivesoftwareapplications,you

cangetmostofwhatyouneedforfree-ish!• mostcloudcomputingapplicationstoday,suchastheGoogleDocssuite.

– betterthanpayingforsimilarcommercialsoftware• whichalonemaybejustificationforswitchingtocloudapplications.

3209/12/17 CMA. TCA Srinivasa Prasad

33

AdvantagesofCloudComputing

• Instantsoftwareupdates:

– Anotheradvantagetocloudcomputingisthatyouarenolongerfaced

withchoosingbetweenobsoletesoftwareandhighupgradecosts.

– Whentheapplicationisweb-based,updateshappenautomatically

• availablethenexttimeyoulogintothecloud.

– Whenyouaccessaweb-basedapplication,yougetthelatestversion

• withoutneedingtopayforordownloadanupgrade.

• Improveddocumentformatcompatibility.

– Youdonothavetoworryaboutthedocumentsyoucreateonyour

machinebeingcompatiblewithotherusers'applicationsorOSes

– Therearepotentiallynoformatincompatibilitieswheneveryoneis

sharingdocumentsandapplicationsinthecloud.

3309/12/17 CMA. TCA Srinivasa Prasad

34

AdvantagesofCloudComputing

• Unlimitedstoragecapacity:

– Cloudcomputingoffersvirtuallylimitlessstorage.

– Yourcomputer'scurrent1Tbyte harddriveissmall

comparedtothehundredsofPbytes availableinthecloud.

• Increaseddatareliability:

– Unlikedesktopcomputing,inwhichifaharddiskcrashes

anddestroyallyourvaluabledata,acomputercrashingin

thecloudshouldnotaffectthestorageofyourdata.

• ifyourpersonalcomputercrashes,allyourdataisstillouttherein

thecloud,stillaccessible

– InaworldwherefewindividualdesktopPCusersbackup

theirdataonaregularbasis,cloudcomputingisadata-

safecomputingplatform!3409/12/17 CMA. TCA Srinivasa Prasad

35

AdvantagesofCloudComputing

• Universaldocumentaccess:

– Thatisnotaproblemwithcloudcomputing,becauseyou

donottakeyourdocumentswithyou.

– Instead,theystayinthecloud,andyoucanaccessthem

wheneveryouhaveacomputerandanInternetconnection

– Documentsareinstantlyavailablefromwhereveryouare

• Latestversionavailability:

– Whenyoueditadocumentathome,thateditedversionis

whatyouseewhenyouaccessthedocumentatwork.

– Thecloudalwayshoststhelatestversionofyourdocuments• aslongasyouareconnected,youarenotindangerofhavinganoutdated

version

3509/12/17 CMA. TCA Srinivasa Prasad

36

AdvantagesofCloudComputing

• Easiergroupcollaboration:

– Sharingdocumentsleadsdirectlytobettercollaboration.

– Manyusersdothisasitisanimportantadvantagesofcloud

computing

• multipleuserscancollaborateeasilyondocumentsandprojects

• Deviceindependence.

– Youarenolongertetheredtoasinglecomputerornetwork.

– Changestocomputers,applicationsanddocumentsfollow

youthroughthecloud.

– Movetoaportabledevice,andyourapplicationsand

documentsarestillavailable.

3609/12/17 CMA. TCA Srinivasa Prasad

37

DisadvantagesofCloudComputing

• RequiresaconstantInternetconnection:

– Cloudcomputingisimpossibleifyoucannotconnecttothe

Internet.

– SinceyouusetheInternettoconnecttobothyour

applicationsanddocuments,ifyoudonothaveanInternet

connectionyoucannotaccessanything,evenyourown

documents.

– AdeadInternetconnectionmeansnoworkandinareas

whereInternetconnectionsarefeworinherently

unreliable,thiscouldbeadeal-breaker.

3709/12/17 CMA. TCA Srinivasa Prasad

38

DisadvantagesofCloudComputing

• Doesnotworkwellwithlow-speedconnections:

– Similarly,alow-speedInternetconnection,suchasthat

foundwithdial-upservices,makescloudcomputing

painfulatbestandoftenimpossible.

– Web-basedapplicationsrequirealotofbandwidthto

download,asdolargedocuments.

• Featuresmightbelimited:

– Thissituationisboundtochange,buttodaymanyweb-

basedapplicationssimplyarenotasfull-featuredastheir

desktop-basedapplications.

• Forexample,youcandoalotmorewithMicrosoftPowerPoint

thanwithGooglePresentation'sweb-basedoffering

3809/12/17 CMA. TCA Srinivasa Prasad

39

DisadvantagesofCloudComputing

• Canbeslow:

– Evenwithafastconnection,web-basedapplicationscan

sometimesbeslowerthanaccessingasimilarsoftware

programonyourdesktopPC.

– Everythingabouttheprogram,fromtheinterfacetothe

currentdocument,hastobesentbackandforthfromyour

computertothecomputersinthecloud.

– Ifthecloudservershappentobebackedupatthat

moment,oriftheInternetishavingaslowday,youwould

notgettheinstantaneousaccessyoumightexpectfrom

desktopapplications.

3909/12/17 CMA. TCA Srinivasa Prasad

40

DisadvantagesofCloudComputing

• Storeddatamightnotbesecure:

– Withcloudcomputing,allyourdataisstoredonthecloud.

• ThequestionsisHowsecureisthecloud?

– Canunauthorisedusersgainaccesstoyourconfidentialdata?

• Storeddatacanbelost:

– Theoretically,datastoredinthecloudissafe,replicated

acrossmultiplemachines.

– Butontheoffchancethatyourdatagoesmissing,youhave

nophysicalorlocalbackup.

• Putsimply,relyingonthecloudputsyouatriskifthecloudletsyou

down.

4009/12/17 CMA. TCA Srinivasa Prasad

41

DisadvantagesofCloudComputing

• HPCSystems:

– Notclearthatyoucanruncompute-intensiveHPC

applicationsthatuseMPI/OpenMP!

– Schedulingisimportantwiththistypeofapplication

• asyouwantalltheVMtobeco-locatedtominimizecommunication

latency!

• GeneralConcerns:

– EachcloudsystemsusesdifferentprotocolsanddifferentAPIs

• maynotbepossibletorunapplicationsbetweencloudbasedsystems

– AmazonhascreateditsownDBsystem(notSQL92),and

workflowsystem(manypopularworkflowsystemsoutthere)

• soyournormalapplicationswillhavetobeadaptedtoexecuteon

theseplatforms.4109/12/17 CMA. TCA Srinivasa Prasad

42

TheFuture

• Manyoftheactivitieslooselygroupedtogetherundercloud

computinghavealreadybeenhappeningandcentralised

computingactivityisnotanewphenomena

• GridComputingwasthelastresearch-ledcentralised

approach

• Howeverthereareconcernsthatthemainstreamadoptionof

cloudcomputingcouldcausemanyproblemsforusers

• Manynewopensourcesystemsappearingthatyoucaninstall

andrunonyourlocalcluster

– shouldbeabletorunavarietyofapplicationsonthesesystems

4209/12/17 CMA. TCA Srinivasa Prasad

43

CMA. TCA Srinivasa Prasad+91 947 770 222710996tcasp@icmaim.comwww.tcasprasad.in

09/12/17 CMA. TCA Srinivasa Prasad

top related