CLOUD COMPUTING ANDVIRTUALIZATION TECHNIQUES               By        Vikash Kushwaha          2010UIT146          MNIT Jai...
CONTENTS• Cloud Computing  • Need And Features• Virtualization  • what is it  • benefits  • VM Implementation Techniques• ...
CLOUD COMPUTING•   Cloud computing really is accessing resources and services    needed to perform functions with dynamica...
RESOURCE PROVISIONING –COMPANYS/CUSTOMERS VIEW  Resource Wastage                              Unserved Requests           ...
RESOURCE PROVISIONING –       DATACENTER/CLOUD PROVIDERS                  VIEW2000                      2050   0          ...
WHAT IS REQUIREDBy Cloud Provider●   Fast scalability – Quick addition and removal    of servers.●   Service to customers ...
WHAT IS VIRTUALIZATION“Virtualization, in computing, is the creation of  a virtual (rather than actual) version of  someth...
SIMILARITIES AND DIFFERENCES WITH           MULTIPROGRAMMING●   Multi Programming            ●   Virtualization    –   CPU...
VIRTUALIZATION                     ARCHITECTURE●   OS assumes complete control of the underlying hardware.●   Virtualizati...
PHYSICAL VS. VIRTUAL MACHINE●   Single OS                    ●   Machine view to OS is                                    ...
IMPORTANCE OF VIRTUALIZATION IN       CLOUD COMPUTING●   Cloud can exist without Virtualization, although it    will be di...
REQUIREMENT FOR              VIRTUALIZABILITYPopek and Goldberg mentioned a set ofrequirements● They divided instructions ...
REQUIREMENT FOR             VIRTUALIZABILITY●   They said that all sensitive instructions must    also be privileged instr...
VM IMPLEMENTATION             TECHNIQUES1. Binary Translation2. Paravirtualization3. Hardware Supported Virtualization
BINARY TRANSLATION●   Binary image of OS is manipulated at the runtime.●   Privileged instructions are rewritten to point ...
PARAVIRTUALIZATION●   Make OS aware of underlying Virtualization env.●   OSs code is manipulated.●   Important system call...
HW SUPPORTED VIRTUALIZATION• OS stays in its original privilege level 0.• Attempts to access the hardware directly are  ca...
XEN DOMAINS• Xen runs guests in environments known as domains which encapsulate a  complete running virtual environment• T...
CPU SHARING • VMM or Hypervisor provides a virtual view of CPU to VMs. • In multi processing, CPU is alloted to the differ...
MEMORY SHARING• In Multiprogramming there is a single level of indirection mainatained by  Kernel.• In case of Virtual Mac...
XEN IO SPLIT DEVICE DRIVER
IO RING          Back
FUTURE ASPECTS• Currently SalesForce CRM has 97,700 customers across  the global.  As per survey across the global 41,546 ...
THANK YOU
Upcoming SlideShare
Loading in...5
×

Cloud Computing

173

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
173
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Cloud Computing

  1. 1. CLOUD COMPUTING ANDVIRTUALIZATION TECHNIQUES By Vikash Kushwaha 2010UIT146 MNIT Jaipur
  2. 2. CONTENTS• Cloud Computing • Need And Features• Virtualization • what is it • benefits • VM Implementation Techniques• XEN Internals • XEN Domains • CPU Sharing • Memory Sharing • IO Sharing
  3. 3. CLOUD COMPUTING• Cloud computing really is accessing resources and services needed to perform functions with dynamically changing needs. ... The cloud is a virtualization of resources that maintains and manages itself• Scale your infrastructure on demand within minutes or even seconds, instead of days or weeks, thereby avoiding underutilization (idle servers) and overutilization.• A broad array of webbased services aimed at allowing users to obtain a wide range of functional capabilities on a pay as you go basis. – On-demand service – Networked Shared Resources – Flexible Provisioning – Fine-grained metering
  4. 4. RESOURCE PROVISIONING –COMPANYS/CUSTOMERS VIEW Resource Wastage Unserved Requests Loss of Customers
  5. 5. RESOURCE PROVISIONING – DATACENTER/CLOUD PROVIDERS VIEW2000 2050 0 0 Company - BLUE Company - RED3000 ● Charge for 4050 machines, Work with 3000 ● Good Business ● Computing as a service or utility. 0 Cloud Provider
  6. 6. WHAT IS REQUIREDBy Cloud Provider● Fast scalability – Quick addition and removal of servers.● Service to customers should not be denied.● SLA should not be Violated.● Efficient Resource Utilization.
  7. 7. WHAT IS VIRTUALIZATION“Virtualization, in computing, is the creation of a virtual (rather than actual) version of something, such as a hardware platform, operating system, a storage device or network resources” Concept is not new.● Multi Programming – Each Process thinks it has complete control on all of the resources. – Virtual Memory – CPU Sharing
  8. 8. SIMILARITIES AND DIFFERENCES WITH MULTIPROGRAMMING● Multi Programming ● Virtualization – CPU is shared among – CPU is shared among processes OSs. – Memory is shared using – Memory is shared using Page Tables. more level of indirections. Multiple – Process knows it is Page tables. being managed- uses system calls. – OS may or may not know that it is being managed.
  9. 9. VIRTUALIZATION ARCHITECTURE● OS assumes complete control of the underlying hardware.● Virtualization architecture provides this illusion through a hypervisor/VMM.● Hypervisor/VMM is a software layer which: – Allows multiple Guest OS (Virtual Machines) to run simultaneously on a single physical host – Provides hardware abstraction to the running Guest OSs and efficiently multiplexes underlying hardware resources.
  10. 10. PHYSICAL VS. VIRTUAL MACHINE● Single OS ● Machine view to OS is independent of hardware● h/w + s/w tightly coupled ● Multiple OS (isolated apps)● Application crashes affect all ● Safely multiplex resources across VMs● Resource under-utilization
  11. 11. IMPORTANCE OF VIRTUALIZATION IN CLOUD COMPUTING● Cloud can exist without Virtualization, although it will be difficult and inefficient.● Cloud makes notion of “Pay for what you use” , “infinite availability- use as much you want”.● These notions are practical only if we have – lot of flexibility – efficiency in the back-end. IO Ring
  12. 12. REQUIREMENT FOR VIRTUALIZABILITYPopek and Goldberg mentioned a set ofrequirements● They divided instructions into threecategories:● Privileged instructions: execute in a privileged mode, but will trap otherwise.● Control sensitive instructions: attempt to change the config of resources.● Behavior sensitive instructions: are those that behave in a different way depending on the config of resources.
  13. 13. REQUIREMENT FOR VIRTUALIZABILITY● They said that all sensitive instructions must also be privileged instructions.● Hypervisor must be able to intercept any instructions that changes the state of the machine in a way that impacts other processes.
  14. 14. VM IMPLEMENTATION TECHNIQUES1. Binary Translation2. Paravirtualization3. Hardware Supported Virtualization
  15. 15. BINARY TRANSLATION● Binary image of OS is manipulated at the runtime.● Privileged instructions are rewritten to point to their emulated versions.● Performance from this approach is not ideal, particularly when doing anything I/O intensive.● Caching of the locations of unsafe instructions can speed Up.● Used in VMWare.
  16. 16. PARAVIRTUALIZATION● Make OS aware of underlying Virtualization env.● OSs code is manipulated.● Important system calls are changed to point to the implementation provided by the VMM.
  17. 17. HW SUPPORTED VIRTUALIZATION• OS stays in its original privilege level 0.• Attempts to access the hardware directly are caught and passed to VMM.• In other words a new privilege ring is setup for the VMM.• Added new instructions which makes Virtualization considerably easier for x86. • Intel – IVT(Intel Virtualization Technology) • AMD – introduced AMD-V
  18. 18. XEN DOMAINS• Xen runs guests in environments known as domains which encapsulate a complete running virtual environment• There are two types pf Domains: • DomU – • the “U” stands for unprivileged. • Guest OSs run in this domain. • Dom0 • has elevated privileges • Provides device drivers • Provides tools/mechanisms to configure Virtualization environment Privileged Domain UnPrivileged Domains Dom0 DomU DomU XEN Hardware
  19. 19. CPU SHARING • VMM or Hypervisor provides a virtual view of CPU to VMs. • In multi processing, CPU is alloted to the different processes in form of time slices by the OS. • Similarly VMM or Hypervisor allots CPU to different VMs. App1 App2 App1 App2 App3 App1 App2VM1 OS VM2 OS VM3 OS VM1 VM2 VM3 VMM CPU Time
  20. 20. MEMORY SHARING• In Multiprogramming there is a single level of indirection mainatained by Kernel.• In case of Virtual Machines there is one more level of indirection maintained by VMM Applications use Virtual Addresses Page Table Kernel translates Virtual Addresses to PseudoPhysical Addresses Page Table Hypervisor translates PseudoPhysical Addresses to Machine addresses
  21. 21. XEN IO SPLIT DEVICE DRIVER
  22. 22. IO RING Back
  23. 23. FUTURE ASPECTS• Currently SalesForce CRM has 97,700 customers across the global. As per survey across the global 41,546 companies are willing to move to SalesForce CRM by end of 2013.• “World should follow India & Japan in cloud computing” Vivek Kundra, Chief information officer, US
  24. 24. THANK YOU
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×