Mod4 sp24v3
Mod4 sp24v3
Guide to Cloud
Computing, 2e
Module 4: Cloud Networking
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned,
scanned, copied
copied or
or duplicated,
duplicated, or
or
posted to a publicly accessible website, in whole or in part. 1
Module Objectives
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 2
Section 4-1: Networking Concepts in the Cloud
• Networking in the cloud works similarly to networking in a physical data center, except at more of a
logical level rather than a physical one
• This module discusses how networking concepts work in the cloud and covers networking configurations
in AWS, Azure, and GCP
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 3
Networking Concepts (1 of 2)
• Two planes
− Control plane: Management layer
− Data plane: Where transmissions traverse physical devices
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 4
Networking Concepts (2 of 2)
• Three topologies
− Traditional network: individual control planes
− SDN (software-defined networking) : centralized control plane (SDN controller)
− NFV (network functions virtualization) takes this idea a step further by virtualizing network devices and
services
• Most of the technologies are the same but abstracted to the virtual platform
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 5
From OSI Model to Cloud Stack (1 of 2)
• The OSI model and TCP/IP model use layers to present theoretical representations of what happens
during network communication
• At each layer, information is added to the message that various devices along the way will need
• Each device reads only deep enough into the message’s headers to know where to send the message next
• These models are helpful in troubleshooting network problems and in understanding how networking
protocols relate to one another
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 6
From OSI Model to Cloud Stack (2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 7
Software-Defined Networking in the Cloud (1 of 2)
• In the public cloud, the customer is not responsible for ensuring there are enough physical devices to
guarantee availability – the cloud provider is
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 8
Software-Defined
Networking in the Cloud
(2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 9
Section 4-2: IP Address Space
• Cloud resources are given one or both of two kinds of IP addresses: public and private
• Private IP addresses are only accessible from within the cloud-based network where that resource is
located
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 10
IPv4 Addressing basics
• 32-bit address
• Uniquely identifies your computer on the network
• Written in dotted decimal notation
(172.16.254.1)
o Four sections called Octets
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 11
IPv4 Classes (A-E)
(older "classful network" system)
NETWORK ADDRESS NUMBER OF NUMBER OF
CLASS RANGE OF UNIQUE UNIQUE HOSTS
FIRST OCTET NETWORKS PER NETWORK
AVAILABLE
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 12
Network ID and Host ID
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 13
DEFAULT SUBNET MASKS
A subnet mask is a 32-bit dotted decimal number that shows the number of bits used for the
network and host portions of the address
• In Binary: one bit for each position in the network portion, zero bits for each position in the host
portion
o Network Bits are a string of continuous 1’s (eight 1's = 255 decimal)
o Host Bits are a string of continuous 0’s
o Class C in Binary: 11111111.11111111.11111111.00000000
o Default Subnet masks
• Class C: 255.255.255.0
(network part is 255.255.255, host part is 0)
• Class B: 255.255.0.0
• Class A: 255.0.0.0
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 14
Network part and host part
◦ Example: IP 10.15.67.128 , Subnet Mask 255.255.255.0
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 16
CIDR Notation
("Classless" networks)
• CIDR shows number of bits in network part of the address (/1 to /31).
• CIDR is flexible: allows dividing a network into different sizes of subnets.
• Examples (note mapping to old style subnet masks):
Convert to 1s and Right
CIDR Notation Subnet Mask
Pad
11111111.00000000.00000
/8 255.0.0.0
000.00000000
11111111.11000000.00000
/10 255.192.0.0
000.00000000
11111111.11111110.00000
/15 255.254.0.0
000.00000000
11111111.11111111.11110
/20 255.255.240.0
000.00000000
11111111.11111111.111111
/24 255.255.255.0
11.00000000
11111111.11111111.111111
/25 255.255.255.128
11.10000000
11111111.11111111.111111
/30 255.255.255.252
11.11111100
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 17
What is subnetting?
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 18
Network and Broadcast address
◦ Example: 10.15.67.128 - 10.15.67.191
Network address
◦ 10.15.67.128 - 10.15.67.191
◦ The lowest IP Address in the range
◦ Identifies a particular subnet (along with CIDR or mask)
Broadcast address
◦ 10.15.67.128 - 10.15.67.191
◦ The highest IP Address in the range
◦ Used to broadcast to every other IP within the subnet
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 19
First host and last host
◦ Example: 10.15.67.128 - 10.15.67.191
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 20
Next network
◦ Example: 10.15.67.128 - 10.15.67.191
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 21
Without subnetting
Example 1: 200.1.0.0 /24
• Binary representation:
• /24 means first 3 octets (24 bits) are used in the network ID
• 8 host bits are available (last octet)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 22
2 SUBNETS
Example 2: Network address 200.1.0.0 /25
• Binary representation:
• If we “borrow” one bit from the host ID (last octet), we can split the
network into two subnets:
• Hosts: .1 - .126
• “borrow” 2 bits from the host ID (last octet), split into four subnets:
• IPv6 also has autoconfiguration and improved security using the IPsec protocol.
• Despite its advantages, IPv4 is still used by many networks and is easier to configure.
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 25
IP Addressing in the Cloud
• In an on-prem network, the process of assigning private IP addresses is normally managed by a DHCP
server
− DHCP=Dynamic Host Configuration Protocol
• In the cloud, IP address assignment is more automatic, being assigned chronologically from specific IP
address ranges that are defined when you create the virtual network and its subnets
• In a cloud-based subnet, there may be additional reserved addresses that are not available for a host
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 26
Reserved addresses: AWS
• In a VPC in AWS, additional addresses are reserved for AWS. In this example, only 251
addresses are available in each subnet out of 256.
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 27
Cloud Network Interfaces
• Each interface on a computer or network device needs its own IP address and can be configured with
different rules
• When you create a VM, you also create a virtual network interface resource with its own ID number and
configuration settings
• The vNIC (virtual network interface card) provides a connection between the VM and its subnet in a
virtual network
• Improved network performance is achieved using a technology called SR-IOV (single root input/output
virtualization
− The host passes network traffic directly to its NIC hardware rather than processing the traffic through
the internal, virtual switch created by the hypervisor
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 28
Section 4-3: Networking in AWS
• When you create a network in a public cloud, you’re reserving your own space within that larger cloud
environment, which is known as a VPC (virtual private cloud)
− This is called a VNet in Azure
• When you first create an account, AWS creates a default VPC for you
• When you create a VM instance in AWS, the instance is automatically configured to work within your
default VPC unless you change this setting
• Within the VPC, you can configure subnets, route tables, network gateways, and network connections
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 29
Regions in AWS (1 of 2)
• AWS offers services in more than two dozen geographical regions around the world
• Each region is named for the geographic location of AWS’s physical data centers in that area and has an
identity code
• When you create an AWS account, you’re assigned a default region close to you, which you can change
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 30
Regions in AWS (2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 31
Availability Zones in
AWS
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 32
VPCs in AWS (1 of 2)
• Each default VPC is automatically assigned a /16 IPv4 CIDR range, though you can assign smaller spaces
to your custom VPCs
• DNS and DHCP options are initially set at the VPC level
• When you create a new VPC, you have options to assign CIDR ranges, plan, track and monitor IP
addresses using the Amazon IPAM (IP address management) tool
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 33
VPCs in AWS (2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 34
Subnets in AWS
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 35
AWS Summary: Region, VPC, AZ, Subnet
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 36
NAT (Network Address Translation)
• NAT (Network Address Translation) allows your network to communicate with the internet without exposing the IPs of the
individual computers in the network.
• NAT translates private IP addresses in an internal network to a public IP address before packets are sent to an external network.
• A router manages the traffic and allows multiple devices to share the same internet connection.
Private IP addresses
192.168.1.3
assigned by you
Private
Default Gateway
192.168.1.4 192.168.1.1
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 37
Gateways and Route Tables in AWS (1 of 6)
• Common virtual network devices you’ll need in your VPCs include the following:
− An IG or IGW (Internet gateway) provides a path to and from the Internet for resources hosted
within the VPC, as well as provides NAT (network address translation) services for instances that
have a public IP address within your public subnets
− A route table determines where traffic within and from the VPC is routed
− An NGW (NAT gateway) device gives resources in a connected private subnet egress-only
(outbound only) access to the Internet
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 38
Gateways and Route
Tables in AWS (2 of 6)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 39
Gateways and Route Tables in AWS (3 of 6)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 40
Gateways and Route Tables in AWS (4 of 6)
• NAT Gateways
− Instances running in a private subnet might need to communicate across the Internet, which can be
accomplished by creating an NGW in a public subnet and then routing Internet-bound traffic from
the private subnet to the NGW
− Instances in the private subnets remain protected from Internet-initiated traffic
− Instances in the private subnets can communicate outward to the Internet
− Fewer public IP addresses are required to allow this Internet-directed traffic
− Traffic can be more tightly monitored and filtered
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 41
Gateways and Route Tables in AWS (5 of 6)
• Three-Tier Architecture in the Cloud
− An additional approach to segmentation used by cloud providers is called a three-tier architecture, or
tiering
− Tiering places virtual devices into three logical areas:
The presentation tier is represented by the client devices used to access the application or
website
The logic tier is represented by the server that hosts the application or website
The data tier contains one or more databases that are not accessible from the Internet and only
communicate with resources in the logic tier
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 42
Gateways and Route Tables in AWS (6 of 6)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 43
Section 4-4: Networking in Azure
• There are many similarities between AWS’s and Azure’s networking services
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 44
Regions and Availability Zones in Azure
• Microsoft’s largest segment type is called geographies . A geography contains multiple Azure regions to
provide data residency and compliance boundaries for discrete markets.
• Availability zones contain at least three AZs where each AZ consists of one or more completely separate
physical data centers
− Not all of Azure’s regions offer availability zones
• Microsoft guarantees at least 99.99 percent uptime when VM resources are backed up across at least two
AZs
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 45
VNets and Subnets in Azure (1 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 46
VNets and Subnets in Azure (2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 47
Route Tables in Azure
• When you create a VNet, Azure automatically generates system routes that enable communication
between all resources within the VNet
− These system routes cannot be changed
• You can create a route table with routes that will override the default system routes
• Azure does not rely on IGs the way AWS does, however, you can create a NAT gateway through the
Azure Virtual Network NAT service to manage outbound Internet connectivity
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 48
Section 4-5: Networking in GCP
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 49
Regions and Zones in GCP
• A VM in one region can communicate with a VM in another region without relying on the public Internet
infrastructure
− This provides a layer of security
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 50
VPCs and Subnets in GCP (1 of 2)
• When you create a VPC using auto mode, you automatically get a subnet in each region for that VPC
• An advantage of global VPCs is that you can access distant regions from on-prem resources through a
single VPC connection
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 51
VPCs and Subnets in GCP (2 of 2)
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 52
Routes in GCP
• Routes in GCP are applied at the VPC level, not at the subnet level
• Instances within the subnet maintain their own copy of applicable routes
• When a route table is created, two types of routes are automatically generated by the system:
− System-generated
Subnet routes direct traffic between all the VPC’s subnets
A Default route sends all other traffic to the default Internet gateway
− Custom
Dynamic routes are created automatically by a Cloud Router service
Static routes are created manually by a cloud user
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 53
Summary
Now that the lesson has ended, you should be able to:
Jill West, CompTIA Cloud+ Guide to Cloud Computing, 2nd Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or
posted to a publicly accessible website, in whole or in part. 54