Network Foundations On AWS
Network Foundations On AWS
NT-01
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Global infrastructure
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Global infrastructure
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS global infrastructure
Region & number of Availability Zones (AZs)
GovCloud (U.S.) Europe
U.S.-East (3), US-West (3) Frankfurt (3), Paris (3),
Ireland (3), Stockholm (3),
U.S. West London (3), Milan (3)
Oregon (4)
Northern California (3)
Africa China
Cape Town (3) Beijing (3), Ningxia (3)
Announced Regions
8 Regions in Australia, Canada, India, Indonesia, Israel, Australia, Switzerland,
Spain, and United Arab Emirates (UAE)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS global network components
eu-west-2 (London)
eu-west-2a eu-west-2b
AZ AZ
eu-west-2c
Datacenter Availability
Zone AZ
Region Global network
Availabiliy Zones consist of one or more discrete data centers, Redundant, parellel 100 GbE fiber network
each with redundant power, networking, and connectivity in an A Region is a physical location in the world and low-latency private capacity between all
AWS Region. where we have multiple Availability Zones. regions except China. Includes trans-ocean
cables.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudFront has
300+ locations, 290+ Edge
locations ,13 Regional
Edge Caches across 90+
cities in 47 countries
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cloud continuum
AWS Regions
On premises
IoT
Metro centers
Rugged edge
5G networks
For most use cases For low latency, local data processing, data residency
Cloud continuum
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bringing the cloud to where you need it
AWS Regions
AWS Wavelength
For most use cases For low latency, local data processing, data residency
Cloud continuum
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Virtual Private Cloud
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building a VPC
Region (eu-west-2)
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building a VPC
Region (eu-west-2)
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability Zone IDs for your AWS resources
Account Account
111111111111 222222222222
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building a VPC
Region (us-east-1)
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building a VPC
Region (us-east-1)
VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IPv4 addressing
Availability Zone Availability Zone
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IPv4 addressing
Availability Zone Availability Zone
...
Private subnet - 10.0.128.0/24 Private subnet - 10.1.129.0/24
10.0.128.0 – Network Address
10.0.128.1 – VPC Router
10.0.128.2 – Reserved
10.0.128.3 – Reserved
10.0.128.255 – Network Broadcast
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IPv6 addressing
Availability Zone Availability Zone
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Intra-VPC routing
- 10.0.2.200
- 10.0.1.38
- 10.0.2.47
- 10.0.1.112
- 2001:db8:ec2:1::1
- 2001:db8:ec2:80::1
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Intra-VPC routing
- 10.0.2.200
- 10.0.1.38
- 10.0.2.47
- 10.0.1.112
- 2001:db8:ec2:1::1
- 2001:db8:ec2:80::1
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Basics of VPC security
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC defense in depth
VPC
Security
Public subnet group
Internet
gateway Instance
Security
Route table Network ACL group
Instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security groups
VPC - 10.0.0.0/16
Availability Zone
- 10.0.1.38 - 10.0.1.39
54.203.236.116 54.203.236.117
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security groups – default behavior
Security group
- 10.0.1.38
54.203.236.116
Inbound
Outbound
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security groups – default behavior
Security group
- 10.0.1.38
54.203.236.116 stateful
Inbound
Outbound
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security Group Chaining
Availability Zone Inbound rule
Allow HTTPS port 443
Web security group Web security group Source: 0.0.0.0/0 (any)
Web Web
Inbound rule
Allow HTTP port 80
App security group App security group Source: Web tier
Data Data
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network access control lists (NACLs)
VPC
Availability Zone 1 Inbound rules - default
Public subnet
Instance
Private subnet
Instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Additional configurations for inbound traffic
Public subnet
Security group
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Additional configurations for inbound traffic
Inbound
Public subnet
Security group
SRC Port: 22
SRC Port: 1400
Network ACL DST Port: 1400
DST Port: 22
Instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Internet gateway
Availability Zone Availability Zone
DB DB
- 2001:db8:ec2:80::1 10.1.129.245
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Internet gateway
5 Requirements Availability Zone Availability Zone
1) Public IP
2) SGs allow VPC - 10.0.0.0/16 , 10.1.0.0/16
2001:db8:ec2::/56
3) NACLs allow
4) Attached internet Public subnet - 10.0.1.0/24 Public subnet - 10.0.2.0/24
2001:db8:ec2:01::/64 2001:db8:ec2:02::/64
gateway (IGW)
5) Route to IGW
W 54.203.236.116 B EIP: 52.34.234.27
- 10.0.1.38 10.0.2.167
- 2001:db8:ec2:1::1
Inbound
DB O
- 2001:db8:ec2:80::1 10.1.129.245
Outbound
Inbound
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connecting to the internet from private subnet
Availability Zone Availability Zone
VPC - 10.0.0.0/16
2001:db8:ec2::/56
Public subnet - 10.0.1.0/24 Public subnet - 10.0.2.0/24
2001:db8:ec2:01::/64 2001:db8:ec2:02::/64
DB DB
- 2001:db8:ec2:80::1
10.1.129.245
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connecting to the internet: IPv6
VPC 10.0.0.0/16 , 10.1.0.0/16
Egress-only
2001:db8:ec2::/56 Internet gateway
Public subnet - 10.0.1.0/24 Public subnet - 10.0.2.0/24
2001:db8:ec2:01::/64 2001:db8:ec2:02::/64
W B
DB O
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connecting to the internet
W B
NAT gateway NAT gateway
DB O
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC defense in depth
VPC
Security
Public subnet group
Internet
gateway Instance
Security
Route table Network ACL group
Instance
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Peering, endpoints,
and gateways
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Peering, endpoints, and gateways
AWS Client VPN Virtual private Direct Connect NAT Internet AWS Transit Endpoints Peering
endpoint gateway gateway gateway gateway Gateway connection
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connecting multiple VPC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC Peering
VPC - 10.0.0.0/16 VPC - 10.2.0.0/16
2001:db8:ec2::/56 2001:db8:ec2:100::/56
n(n - 1)
2
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is the problem?
Complexity:
100 (100 - 1)
= 4,950
2
Service Limit:
WAN
Direct Connect +
Direct Connect gateway
VPN
AWS Transit
Gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Transit Gateway component
VPC
Transit gateway
route tables
VPN connection
Transit Gateway
Attachments
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Full Connectivity
Direct
Connect
VPC A VPC B
Transit Gateway
VPN
VPC C connection VPC D
Customer
gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Partial connectivity
Direct
Connect
VPC A VPC B
Transit Gateway
VPN
VPC C connection VPC D
Customer
gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Transit Gateway route tables and domains
1
10.1.0.0/16
2001:db8:1::/56 TGW Route table 1 TGW Route table 2
10.2.0.0/16
2001:db8:2::/56 2
10.2.0.0/16 att-2 10.1.0.0/16 att-1
10.3.0.0/16 att-3 10.2.0.0/16 att-2
10.4.0.0/16 att-4 10.3.0.0/16 att-3
2001:db8:4::/56 att-4
4 10.4.0.0/16
2001:db8:4::/56
10.3.0.0/16
2001:db8:3::/56
3
AWS Transit
TGW Route table 4 Gateway TGW Route table 2
10.1.0.0/16 att-1 10.1.0.0/16 att-1
2001:db8:1::/56 att-1 10.2.0.0/16 att-2
10.3.0.0/16 att-3
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Without VPC endpoints
10.1.2.0/24
2001:db8:ec2:110::/64 Amazon
Amazon S3 AWS KMS
API Gateway
Amazon S3 Amazon
DynamoDB
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
With VPC endpoints: Interface endpoints
AWS
10.1.2.0/24 PrivateLink
2001:db8:ec2:110::/64 Interface
Amazon S3 Amazon AWS KMS
endpoint
API Gateway
10.1.2.1
Amazon S3 Amazon
DynamoDB
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
With VPC endpoints: Gateway endpoints
AWS
10.1.2.0/24 PrivateLink
2001:db8:ec2:110::/64 Interface
Amazon S3 Amazon AWS KMS
endpoint
API Gateway
10.1.2.1
Gateway
endpoint
Destination Target
172.16.0.0/16 local
S3.prefix.list vpce-s3 Amazon S3 Amazon
DDB.prefix.list vpce-ddb DynamoDB
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
With VPC endpoints: gateway endpoints
AWS
10.1.2.0/24 PrivateLink
2001:db8:ec2:110::/64 Interface
Amazon S3 Amazon AWS KMS
endpoint
API Gateway
10.1.2.1
Gateway
endpoint
Destination Target
172.16.0.0/16 local
S3.prefix.list vpce-s3 Amazon S3 Amazon
DDB.prefix.list vpce-ddb DynamoDB
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hybrid connectivity and gateways
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Site-to-Site VPN
Public internet
VPC
Availability Availability
On-premises Zone A Zone B
VPN server Private Private
VPN connection subnet subnet
Customer Virtual
gateway
device private
gateway
Two
Corporate data center endpoints
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Site-to-Site VPN
Region
Option 1: Virtual VPC
private gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect
Region
AWS Direct Connect location
Amazon S3
Corporate
data center
VPC 10.1.0.0/16, 2001:db8:1::/56
Direct Connect
gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect
Region
AWS Direct Connect location
Amazon S3
Corporate
data center
VPC 10.1.0.0/16, 2001:db8:1::/56
Direct Connect
gateway
Virtual private
gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect
Region
AWS Direct Connect location
Amazon S3
Corporate
data center
VPC 10.1.0.0/16, 2001:db8:1::/56
Direct Connect
gateway
AWS Transit
Gateway
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bringing it all together
VPC VPC
Egress only Internet Virtual private
internet gateway gateway gateway
Public subnet Public Public
subnet subnet
Transit
NAT gateway Gateway
Peering
connection
Endpoints
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learn in-demand AWS Cloud skills
Deepen your skills with digital Join the AWS Certified community
learning on demand and get exclusive benefits
Access new
Train now exam guides
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Laura Verghote
LinkedIn:
laura-verghote-6abb27155
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete
the session survey
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.