Jaegool_'s log

Google Cloud Platform Certification, Associate Cloud engineer 공부 #day4 본문

Data Science

Google Cloud Platform Certification, Associate Cloud engineer 공부 #day4

Jaegool 2022. 7. 15. 02:58

https://www.coursera.org/learn/gcp-fundamentals/lecture/CtUqa/virtual-private-cloud-networking

 

Virtual Private Cloud networking - Virtual Machines and Networks in the Cloud | Coursera

Video created by Google 클라우드 for the course "Google Cloud Fundamentals: Core Infrastructure". This section of the course explores how Google Compute Engine works, with a focus on virtual networking.

www.coursera.org

학습 목표

  • Identify the purpose of and use cases for Google Compute Engine.
  • Define the basics of networking in Google Cloud.

 

Virtual Private Cloud networking

VPC(Virtual private cloud)

- VPC networks connect Google Cloud resources to each other and to the internet

- segmenting networks

- Using firewall rules to restrict access to instances

- Creating static routes to forward traffic to specific destinations

- Google VPC networks are global and can have subnets in any Google Cloud region worldwide

Subnets can span the zones that make up a region. This architecture makes it easy to define network layouts with global scope. Resources can even be in different zones on the same subnets.

 
This is possible that one VPC, one network, one sub net, one region - two Compute Engine VMS(the same sub net, but in different zones)

This capability can be used to build solutions that are resilient to disruptions, yet retain a simple network layout.

 

Compute Engine

Infrastructure as a Service(Iaas) solution, Compute Engine

- Can create and run virtual machines on Google infrastructure

- No upfront investments(초기투자 X)

- Thousands of virtual CPUs can run on a system that's designed to be fast and to offer consistent performance

- Each VM(Virtual Machine) contains the power and functionality of a full-fledged operating system

- Can be configured much like a physical server

 

VM
Cloud Marketplace
billing
a, b, c

c) can save money(such as a batch job analyzing a large dataset) up to 90%

They are different in only one respect.

Compute Engine has permission to terminate a job if its resources are needed elsewhere.

Although savings are possible with preemptible VMs, you need to ensure that your job can be stopped and restarted

Compute Engine doesn't require a particular option or machine type to get high throughput between processing and persistent disks. That's the default and it comes to you at no extra cost.

 

Compute Engine properties

 

Scaling virtual machines

But most Google Cloud customers start off with scaling out not up.

quota) 몫

VM machine types) cloud.google.com/compute/docs/machine-types.

 

Important VPC compatibilities

 VPC(Virtual Private Cloud) compatibility features

VPCs have routing tables.

Firewall

 

Cloud Load Balancing

 

VPC offers a suite of load balancing options.

Global HTTP load balancing - cross regional load balancing for a web application

Global SSL Proxy load balancer - for secure sockets layer traffic

 

Global TCP Proxy - if it's other TCP traffic that doesn't use SSL

 

The last two proxy services only work for specific pork numbers and they only work for TCP.

If you want to load balance UDP traffic or traffic on any port number, you can still load balance across the Google cloud region with the regional load balancer.

Finally, what all those services have in common is that they're intended for traffic coming into the Google network from the internet.

 

But what if you want to load balance traffic inside your project?

Say between the presentation layer and the business layer of your application.

For that, use the regional internal load balancer.

 

 

Cloud DNS and Cloud CDN

DNS is what translates Internet host names to addresses.

 

 

 

 
 
 

Connecting networks to Google VPC

 IPsec VPN protocol

- Uses Cloud Router to make the connection dynamic(연결을 동적으로 만들려면)

- Lets other networks and Google VPC exchange route information over the VPN using the Border Gateway Protocol

- Not always the best option because of security concerns or bandwidth reliability(보안문제 & 대역폭 안정성)

 

Direct Peering

- Puts a router in the same public datacenter as a Google Point of presence(PoP); peering

- Uses a router to exchange traffic between networks

- More than 100 Google points of presence around the world

 

Carrier Peering

- Gives direct access from an on-premises network through a service provider's network

- Not covered by a Google Service Level Agreement(SLA)

 

Dedicated Interconnect

- If getting the highest up times for interconnection is important, using Dedicated Interconnect would be a good solution.

- Allows for one or more direct, private connections to Google

- Can be covered by up to a 99.99% SLA

- Connections can be backed up by a VPN(안정성 제고)

 

Partner Interconnect

- Useful if a data center is in a physical location that can't reach a Dedicated Interconnect colocation facility

- Useful if the data needs don't warrant an entire 10 GigaBytes per second connection

- Can be configured to support mission-critical services or applications that can tolerate some downtime

- Can be covered by up to a 99.99% SLA

 

LAB: Getting Started with VPC Networking

Objectives

In this lab, you learn how to perform the following tasks:

  • Explore the default VPC network
  • Create an auto mode network with firewall rules
  • Create VM instances using Compute Engine
  • Explore the connectivity for VM instances

 

recap)

1. Which term describes a secure, individual, private cloud-computing model hosted within a public cloud? 

 
- Virtual private cloud(VPC)
 
 
 
 
2. Select the true statement about Google’s VPC networks and subnets.
 
- Networks are global, and subnets are regional.

 

 

3. An application running in a Compute Engine virtual machine needs high-performance scratch space. Which type of storage meets this need?

 

 

 

 

4. Preemptible VMs can offer advantages over a standard Compute Engine VM. What is a reason customers choose preemptible VMs?

 
- To reduce cost
 
 
 
 
5. Which statement best describes how VPC routers and firewalls work?
 
- They are managed by Google as a built-in feature.
 
 
 
 
6. A Google Cloud customer wants to load-balance traffic among the backend VMs that form part of a multi-tier application. Which load-balancing option should this customer choose?
 

 

 

7. Which interconnect option is a service level agreement (SLA) available for?

 

- Dedicated Interconnect & Partner Interconnect