Web_Service

AWS와 가상화 기술 / AWS and virtualization technology

옥뀨 2021. 1. 15. 16:19

필자는 클라우드와 서버를 이해하기 위해 "AWS(Amazon Web Services)" 를 공부하고자 한다.

I will study "Amazon Web Services (AWS)" to understand cloud and server.

 

 

아마존 로고 / Amazon logo

 

 

많은 웹서비스들이 존재하겠지만 AWS가 많이 쓰이기도 하고 무엇보다 무려 12개월을 무료로 사용할 수 있다.

There will be many other web services, but AWS is also used a lot, and above all,

we can use 12 months for free.

 

그 외에도,

사용한 만큼 돈을 내는 AWS.

서버 증설이 빠르다.

서버 폐기도 빠르다.

등의 장점이 있다고 하는데 그건 아마 추후에 서버를 구축해보며 알아보지 않을까 싶다.

Besides,

AWS pays for what you use.

Server expansion is fast.

Server retirement is also fast.

It is said that there are advantages such as such, but I will feel it by building a server later.

 

AWS와 클라우드는 과연 무슨 관계일까 라는 생각이 들 수 있다.

We may be wondering what the relationship between AWS and the cloud is.

 

간단하게 설명하자면 AWS는 아마존에서 제공하는 클라우드 서비스이고

네트워킹을 기반으로 가상 컴퓨터와 스토리지, 네트워크 인프라 등 다양한 서비스를 제공하고 한다.

In short, AWS is a cloud service provided by Amazon and provides a variety of services

such as virtual computers, storage, and network infrastructure based on networking.

 

클라우드 서비스이기 때문에 직접 하드웨어에 물리적으로 서버를 구축하는 것이 아닌

아마존에서 제공하는 가상 컴퓨터에 서버를 구축함으로써 속도와 용량 면에서는 부담없이 쓸 수

있다는 장점이 있다.

Since it is a cloud service, it has the advantage of being able to use it without burden in terms of speed

and capacity by building a server on a virtual computer provided by Amazon,

rather than building a server physically on hardware.

 

그럼 클라우드를 이해해야 하는데 클라우드를 이해하기 전에 먼저 가상화를 이해하는 것이 좋다.

We need to understand the cloud, but before we understand the cloud,

it's good to understand virtualization first.

 

가상화에는 "전가상화" 와 "반가상화" 가 있다.

There are two types of virtualization: "Full-Virtualization" and "Para-Virtualization".

 

그림을 먼저 보고 각각의 특징을 알아보자.

Let's first look at the pictures and find out their characteristics.

 

전가상화(Full-Virtualization)                                                       반가상화(Para-Virtualization)

전가상화

Full-Virtualization

 

- 하드웨어를 완전히 가상화

- Completely virtualize the hardware

 

- OS의 제약 없이 사용 가능

- Can be used without OS restrictions

 

- 게스트 OS는 자신이 가상머신 위에서 작동하고 있는 것(인식 불가)

- Guest OS does not recognize that it is running on a virtual machine

 

- 시스템에 물리적인 가상화 기능 필요 (VMware, VirtualBox 등)

- The system needs a function of physical virtualization (VMware, VirtualBox, etc.)

 

- 게스트 OS에서 물리자원 직접 접근 불가

    - 반드시 Hypervisor를 통해 접근해야 함 -> 성능 저하

- Cannot directly access physical resources from guest OS

    - Must be accessed through hypervisor-poor performance -> Poor performance

 

전가상화는 게스트 OS가 하드웨어에 접근하기 위해 기존의 OS를 통해 접근해야 한다.

In Full-Virtualization, the guest OS must access the hardware through the existing OS.

 

다양한 OS(Windows, Linux 등)를 지원한다는 장점이 있고 Hypervisor가 가상화된 OS들이

내리는 명령어를 알아들을 수 있고 변역해주는 역할을 함과 동시에

가상화된 OS들에게 자원을 할당해주는 역할을 한다는 장점이 있다.

It has the advantage of supporting a variety of OSs (Windows, Linux, etc.),

and the hypervisor has the advantage that it can understand and translate commands

issued by virtualized OSs, and at the same time, it allocates resources to the virtualized OSs.

 

그러나 Hypervisor가 직접 CPU에 접근하기 때문에 부하가 많이 발생하고

성능 저하가 생길 수 있다는 단점이 있다.

However, since the hypervisor directly accesses the CPU, there is a drawback that a lot of load

and performance degradation may occur.

 

반가상화

Para-Virtualization

 

- 하드웨어를 완전히 가상화하지 않음

- Not fully virtualized hardware

 

- 게스트 OS가 자신이 가상머신 위에서 동작하고 있다는 것을 인식
- The guest OS recognizes that it is running on a virtual machine

 

- 각 게스트 OS의 커널 수정 필요

    - 오픈소스 OS가 아니면 반가상화를 이용하기가 쉽지 않음

- Kernel modification of each guest OS is required

    - It is not easy to use paravirtualization unless it is an open source OS

 

- 게스트 OS에서 물리자원 직접 접근 가능 (Passthrough)

    - 성능 개선

- Direct access to physical resources from guest OS (Passthrough)

    - Improve performance

 

반가상화는 하드웨어 위에서 직접 실행되기 때문에 하드웨어에 대한 제어권을 Hypervisor가

가지고 있다.

Since paravirtualization is executed directly on the hardware,

the hypervisor has control over the hardware.

 

그러기 때문에 하드웨어와의 입출력(Input/Output) 처리에 있어서 전가상화보다 직접적인

루틴을 사용하고 전가상화보다 성능이 빠르다는 장점이 있다.

Therefore, it has the advantage of using a direct routine in processing input/output

with the hardware and having faster performance than full virtualization.

 

하지만 Hypervisor에게 Hyper Call 요청을 할 수 있도록 각 OS의 커널을 수정해야 하며

오픈소스 OS가 아니면 반가상화를 이용하기 쉽지 않다는 단점이 존재한다.

However, there is a disadvantage that it is not easy to use paravirtualization

unless it is an open source OS, and it is necessary to modify the kernel of each OS

so that it can make a Hyper Call request to the hypervisor.

 

간단한 표로 설명하면 이렇다.

전가상화와 반가상화 비교

 

가상화에 대해 알아보았다면 다음 포스팅에선 AWS(Amazon Web Services)를

알아보고 서버를 구축해보도록 하자.

Now that we have learned about virtualization, in the next post,

let's look at AWS (Amazon Web Services) and build a server.

'Web_Service' 카테고리의 다른 글

클라우드 서비스란 / What is Cloud Service  (0) 2021.01.25