SlideShare a Scribd company logo
1 of 97
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Connecting Many VPCs
S h a r e d a n d T r a n s i t A r c h i t e c t u r e s
N i c k M a t t h e w s , P a r t n e r S o l u t i o n s A r c h i t e c t
V i c e n t e D e L u c a , S t a f f S o f t w a r e E n g i n e e r , Z e n d e s k
D e c e m b e r 1 , 2 0 1 7
N E T 4 0 4
AWS re:INVENT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN
WAN
AWS Direct
Connect
Transit VPCVPN
WAN
AWS Direct
Connect
Transit VPC
Shared Services
VPC Peering
Authentication,
Security, Logging
Shared Services
VPC Peering
Authentication,
Security, Logging
Many VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“A virtual network that
closely resembles a
traditional network that
you'd operate in your own
data center”
What is a Virtual Private Cloud (VPC)?
Instance
Availability Zone
Instance
Availability Zone
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Traditional Network
VPN VPN
WAN
Fiber
Applications Applications
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN VPN
(VPC Peering)
WAN
Fiber
(AWS Direct Connect)
Applications Applications
AWS Network
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Ease of creation Access models Diverse ownership
VPC Management Differences
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Less accounts and networks to setup
• Tighter control within the account or
VPC
• Identity and Access
Management (IAM)
• Strict security groups and
routing
• Identifying resources with tags
• Billing and ownership complexity
• Larger account or VPC blast radius
• User privileges, AWS limits
• More accounts and infrastructure to setup
• Tighter control of provisioning and
standards
• Automation of infrastructure
• AWS Direct Connect and VPN
standards
• Subnet and routing standards
• Simpler billing
• Smaller blast radius for users and networks
• Larger blast radius for shared
infrastructure and services
S m a l l e r V P C s o r a c c o u n t sL a r g e r V P C s o r a c c o u n t s
Account and VPC Segmentation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Automation of infrastructure
• AWS Direct Connect and VPN
standards
• Subnet and routing standards
• Identity and Access
Management (IAM)
• Strict security groups and
routing
• Identifying resources with tags
S m a l l e r V P C s o r a c c o u n t sL a r g e r V P C s o r a c c o u n t s
Account and VPC Segmentation
Infrastructure and NetworkingPolicy and IAM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Related Sessions
Breakout Sessions:
ENT323: Enabling Governance, Compliance, and Operational and Risk Auditing with AWS Management Tools
ENT324: Automating and Auditing Cloud Governance and Compliance in Multi-Account Environments
SID206: Best Practices for Managing Security Operation on AWS
SID314: IAM Policy Ninja
SID331: Architecting Security and Governance Across a Multi-Account Strategy
Chalk Talks:
SID208: Less (Privilege) Is More: Getting Least-Privilege Right in AWS
SID308: Multi-Account Strategies
SID309: Credentials, Credentials, Credentials, Oh My!
Workshops:
NET308: VPC Design Scenarios for Real-Life Use Cases
SID311: Designing Security and Governance Across a Multi-Account Strategy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What to Expect
Compare VPC designs that:
• Scale
• Connect multiple VPCs together
• Provide automation
With these design patterns:
Transit VPC
VPN
WAN
AWS Direct
Connect
Transit VPC
Transit VPC
with firewalls
AWS Direct
Connect
WAN
Shared Services Multi-Region
Options
VGW
VGW
VGW
VGW
VGW
VGW
VGW
VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Our Starting Point
VPN
WAN
AWS Direct
Connect
Virtual private
gateway
Dev Prod
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Challenge: Adding more VPCs
VPN
WAN
AWS Direct
Connect
Lots of connections
Dev Prod Dev Prod Dev Prod
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Challenge: Peering VPCs
VPN
WAN
AWS Direct
Connect
VPC to VPC connections?
Dev Prod Dev Prod Dev Prod
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Challenge: Peering VPCs
VPN
WAN
AWS Direct
Connect
Dev Prod Dev Prod Dev Prod
Connect Dev and Prod
VPC Peering
Connect the blue environment
How does this scale?
Let’s:
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN
WAN
AWS Direct
Connect
Dev Prod Dev Prod Dev Prod
Dev Prod Dev Prod Dev Prod
Scaling connections?
Scaling VPC peering?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC VPN
WAN
AWS Direct
Connect
Transit VPC
Dev Prod Dev Prod Dev Prod
Dev Prod Dev Prod Dev Prod
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Familiarity and visibility Firewall insertion Encryption everywhere
Centralization Higher scale Inter-region connectivity
Benefits of the Transit VPC
VPN
WAN
AWS Direct
Connect
Transit VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN
WAN
AWS Direct
Connect
Transit VPC
Transit VPC
Architecture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Hub
Availability Zone 1
Subnet 1
VPN Instance
Availability Zone 2
Subnet 2
VPN Instance
• Instances running VPN software
• Deployed in two Availability Zones
Internet gateway
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Routing
Virtual Private
Gateway (VGW)
VGW
VGW
Virtual Private
Network (VPN)
Border Gateway
Protocol (BGP)
Transit VPC
10.0.0.0/16
10.1.0.0/16
The VGW advertises the VPC CIDR to the
VPN instance (10.1.0.0/16)
Customer Gateway
(CGW)
So far, this works exactly like a typical VPN
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Routing
Virtual Private
Gateway (VGW)
VGW
VGW
Virtual Private
Network (VPN)
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 VGW
Internet
The VPN Instances
advertise routes to each
VGW. This can be a default
route or individual routes.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Doesn’t Peering Work?
VPC Peering
Transit VPC
10.0.0.0/16
10.1.0.0/16 10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 PCX
Internet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Doesn’t Peering Work?
VPC Peering
Transit VPC
10.0.0.0/16
10.1.0.0/16 10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 PCX
Internet
Destination: Internet Traffic must either originate or
terminate on a network
interface in the VPC
Transitive Routing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Does VPN Work?
Transit VPC
10.0.0.0/16
10.1.0.0/16 10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 VGW
Internet
Destination: Internet
VGW
VGW
Virtual Private
Network (VPN)
VGW
VGW
Traffic must either originate or
terminate on a network
interface in the VPC
Transitive Routing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Availability
Virtual Private
Gateway (VGW)
VGW
VGW
Virtual Private
Network (VPN)
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 VGW
BGP and Dead Peer Detection (DPD)
detect the failure
The VGW route automatically fails
over to the other tunnel
Internet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Availability
VGW
VGW
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/0 VGW
Route Table
Destination Target
10.2.0.0/16 Local
0.0.0.0/0 VGW
BGP and Dead Peer Detection (DPD)
detect the failure
BGP and Dead Peer Detection (DPD)
detect the failure
Internet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Options for On-Premises Connectivity
Transit VPC
Internet
On-premises
Virtual Private
Network (VPN)
Internet Gateway
WAN
Virtual Private
Network (VPN)
VGW
VGW
Detached
VGW
AWS
Direct
Connect
Customer
Gateway
VPN over the internet
WANVGW
VGW
Customer
Gateway
VGW
Virtual Private
Network (VPN)
AWS
Direct
Connect
VPN over AWS Direct
Connect
Detached VGW with AWS
Direct Connect
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN Over the Internet
VGW
VGW
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Internet
172.16.0.0/16
On-premises
Virtual Private
Gateway (VGW)
Virtual Private
Network (VPN)
Virtual Private
Network (VPN)
• Use this design for more
control and visibility
• Supports alternative tunnels
such as DMVPN and GRE
• Manually configured and
operated
+
-
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN Over AWS Direct Connect
VGW
VGW
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Virtual Private
Gateway (VGW)
Virtual Private
Network (VPN)
WAN
172.16.0.0/16
On-premises
Virtual Private Network (VPN)
VGW
VGW
Customer
Gateway
(CGW)
VGW
• Useful for encrypting
connections or inserting services
• More control over latency and
quality of the connectivity
• Supports alternative tunnels
such as DMVPN and GRE
• Manually configured and
operated
AWS
Direct
Connect
Private Virtual
Interface (VIF)
+
-
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Detached VGW with AWS Direct Connect
VGW
VGW
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Virtual Private
Gateway (VGW)
Virtual Private
Network (VPN)
WAN
172.16.0.0/16
On-premises
Virtual Private Network (VPN)
VGW
VGW
Customer
Gateway
(CGW)
Detached
VGW AWS
Direct
Connect
Private Virtual
Interface (VIF)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Detached VGW with AWS Direct Connect
VGW
VGW
Transit VPC
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
WAN
172.16.0.0/16
On-premises
Virtual Private
Gateway (VGW)
Customer
Gateway
(CGW)
Detached
VGW
On-premises looks like another spoke
AWS
Direct
Connect
VGW
VGW
• Use this design if consistency
and automation are important
• Less management overhead
• Traffic can take multiple
routes out from AWS
• Traffic is unencrypted on the
private network
+
-
Virtual Private Network (VPN)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC
Automation
AWS CloudFormation and
Implementation Guide
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Hub
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
• Uses the Cisco CSR
• Available in BYOL or Hourly billing
from AWS Marketplace
• Full featured IOS-XE device
• Deployed in two Availability Zones
• Support for duplicate tunnel addresses
Internet gateway
https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/aws/b_csraws_transitVPC/b_csraws_transitVPC_chapter_01.html
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Region
Transit VPC
S3 Bucket
for
VPN
Config
Route Table
Destination Target
100.64.127.224/27 Local
0.0.0.0 IGW
Prefix List for S3 VPCE
100.64.127.224 / 27
Transit
VPC:
Creation
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
EC2 Auto-recovery
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC
S3 Bucket
for
VPN Config
Spoke VPC
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW Poller
transitvpc:spoke = true
Transit VPC:
Add Spoke
SSH Only to CSR Security Group
VGW
AWS Key
Management
Service (KMS)
AWS Region
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC
S3 Bucket
for
VPN Config
Spoke VPC
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW Poller
transitvpc:spoke = falseVGW
AWS Region
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
Transit VPC:
Remove Spoke
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW
Poller
transitvpc:spoke = true
Transit VPC:
Add Spoke in
Another Region
AWS Region
S3 Bucket
for
VPN Config
Transit VPC
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
AWS Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda
Cisco
Configurator
transitvpc:spoke = true
AWS Region
Transit VPC
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
AWS Region
AWS Account
1. Setup the VGW
Poller
2. Allow bucket access
3. Allow KMS access
Transit VPC:
Add Spoke in
Another Account S3 Bucket
for
VPN Config
AWS Key
Management
Service (KMS)
AWS Lambda
VGW
Poller
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Account
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
AWS Region
Transit VPC
AWS Region
S3 Bucket
for
VPN Config
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW
Poller
Transit VPC:
Add Spoke in
Another Account
AWS Key
Management
Service (KMS)
Launch CloudFormation in Spoke Account
1. Setup the VGW
Poller
2. Allow bucket access
3. Allow KMS access
transitvpc:spoke = true
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S3 Bucket
for
VPN Config
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW
Poller
Transit VPC:
Add Spoke in
Another Account
AWS Key
Management
Service (KMS)
1. Setup the VGW
Poller
2. Allow bucket access
3. Allow KMS access
AWS Region
transitvpc:spoke = true
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
Transit VPC
AWS Region
AWS Account
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
{
"Version": "2008-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::<account-1-ID>:root",
"arn:aws:iam::<account-2-ID>:root"
]
},
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::<S3 bucket name>/<bucket prefix>/*"
}
]
}
S3 Bucket Policy for a Spoke Account
One additional account can be defined at launch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S3 Bucket
for
VPN Config
AWS Lambda
Cisco
Configurator
AWS Lambda
VGW
Poller
Transit VPC:
Add Spoke in
Another Account
AWS Key
Management
Service (KMS)
1. Setup the VGW
Poller
2. Allow bucket access
3. Allow KMS access
AWS Region
transitvpc:spoke = true
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
Transit VPC
AWS Region
AWS Account
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
{
"Sid": "Allow use of the key",
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-TransitVpcPollerRole-[cloudformation-id]",
"arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-CiscoConfigFunctionRole-[cloudformation-id]",
"arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-LambdaLoaderRole-[cloudformation-id]",
"arn:aws:iam::<account-1-id>:root",
"arn:aws:iam::<account-2-id>:root"
]
},
Key Management System: Key Policy
One additional account can be defined at launch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda
Cisco
Configurator
transitvpc:spoke = true
AWS Region
Transit VPC
Availability Zone 1
Subnet 1
Cisco CSR
Availability Zone 2
Subnet 2
Cisco CSR
AWS Region
AWS Account
1. Setup the VGW
Poller
2. Allow bucket access
3. Allow KMS access
Transit VPC:
Add Spoke in
Another Account S3 Bucket
for
VPN Config
AWS Key
Management
Service (KMS)
AWS Lambda
VGW
Poller
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Firewalls and the
Transit VPC
VGW
VGW VGW
VGW
Internet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Firewall Use Cases
“We need a firewall for all traffic between on-premises and AWS.”
“We have compliance requirements for intrusion detection in our VPCs.”
“Our security organization requires application-level inspection.”
“We would like to centralize security appliances for any internet traffic.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC: Security Services
VGW
VGW
Virtual Private
Network (VPN)
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
Active/Passive
AS-path prepend
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN Configuration
Transit VPC: Duplicate Tunnel Addresses
VGW
VGW
10.0.0.0/16
10.1.0.0/16
VGW
VGW
10.2.0.0/16
edit network interface tunnel units tunnel.2
set ip 169.254.45.210/30
set mtu 1427
top top
edit network virtual-router default protocol bgp
set router-id 52.1.1.1
set install-route yes
set enable yes
set local-as 65000
edit peer-group AmazonBGP
edit peer amazon-tunnel-vpn-30c1d051-1
set peer-as 7224
set connection-options keep-alive-interval 10
set connection-options hold-time 30
set enable yes
set local-address ip 169.254.45.210/30
set local-address interface tunnel.2
set peer-address ip 169.254.45.209
top
edit network interface tunnel units tunnel.2
set ip 169.254.45.210/30
set mtu 1427
top top
edit network virtual-router default protocol bgp
set router-id 52.1.1.1
set install-route yes
set enable yes
set local-as 65000
edit peer-group AmazonBGP
edit peer amazon-tunnel-vpn-30c1d051-1
set peer-as 7224
set connection-options keep-alive-interval 10
set connection-options hold-time 30
set enable yes
set local-address ip 169.254.45.210/30
set local-address interface tunnel.2
set peer-address ip 169.254.45.209
top
Same Address
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Define Your Own Tunnel Address
Math time: Use after creating 10-15 VPNs to the same device
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance-Based Transit VPC
Virtual Private
Network (VPN)
Spoke VPC Route
Table
Destination Target
10.1.0.0/16 Local
0.0.0.0 ENI
• Use this design for more control
of both sides of the connection
• A wider set of solutions can be
used, like firewalls
• Failover and management at
scale can be challenging
• Use more than one device in
each VPC for better availability
• Instances inside spoke VPCs can
be intrusive
• No dynamic routing with BGP to
the route tables
+
-
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Spoke VPC Route
Table
Destination Target
10.1.0.0/16 Local
0.0.0.0 ENI
• Design is highly scalable
• Design for failover in each
Availability Zone
• Requires centralized
management
• Devices must support many
tunnels
• Licensing costs may be
prohibitive
• High management overhead
• Route propagation is more
difficult
VPN
Mesh
Full-mesh VPN
Connectivity
+
-
Bandwidth
Licensing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC ecosystem
AWS VPN in Spoke VPCs
Instance VPN
in Spoke VPCs
Continuous Automation
One-time Automation
Manual Deployment
Routing
Firewalls
Anything with
BGP and VPN
Anything with
BGP and VPN
vSRX
CSR
Anything with
tunnels
vMX
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC:
Cost, Scale, and
Performance
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transit VPC Costs
VPN
WAN
AWS Direct
Connect
Transit VPC
Per Spoke:
VPN Hourly Charges
VPN Egress Charges
Hub Traffic:
Spoke Destination Egress
Egress Charges
Transit Instances:
Amazon EC2 Charges
Licensing Costs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reference: Cisco CSR Bandwidth Tests
Size Routing
(Mbps)
1500B
VPN (Mbps)
1400B
T2.medium 390 300
M3.medium 300 250
C4.large 575 550
C4.xlarge 860 860
C3.2xlarge 1330 1000
C4.2xlarge 2300 2200
C4.4xlarge 4600 4100
C4.8xlarge 5000 4700
Note: Large packets
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN
WAN
AWS Direct
Connect
Transit VPC
Transit VPC Performance
Use Security Groups inside the VPC
Use VPC Peering better performance
Each VPN instance can forward ~1-
3 Gbps aggregate on traffic and
instance size
Then what?
Each spoke can forward ~1.25 Gbps
per VPN tunnel
At 100 spokes, aggregate routes
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling the Transit VPC
VPN
WAN
AWS Direct
Connect
Transit VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling the Transit VPC
VPN
WAN
AWS Direct
Connect
Transit VPC
VPN
WAN
AWS Direct
Connect
Transit VPC
Use pods of independent Transit VPCs
Connect the pods with tunnels for East-West traffic
VPN
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Direct Connect
for Many VPCs
WAN
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Direct Connect to Many VPCs
AWS Region
VGW
VGW
10.1.0.0/16
WAN
On-premises
AWS Direct Connect
Location
Private Virtual Interface
(VIF)
Customer
Router
AWS
Router
Customer
Router
AWS
Router
VGW
VGW
10.2.0.0/16
Up to 50 VIFs per port
AWS Direct Connect
Location 2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Direct Connect: Link Aggregation
AWS Region
VGW
VGW
10.1.0.0/16
WAN
On-premises
Link Aggregation
(LAG)
Private Virtual Interface
(VIF)
Customer
Router
AWS
Router
Customer
Router
AWS
Router
VGW
VGW
10.2.0.0/16
Up to 4 ports in a LAG,
each with 50 VIFs
AWS Direct Connect
Location 2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Direct Connect Gateway
AWS Region
VGW
VGW
10.1.0.0/16
WAN
On-premises
AWS Direct Connect
location
Private Virtual
Interface (VIF)
Customer
Router
AWS
Router
Customer
Router
AWS
Router
VGW
VGW
10.2.0.0/16
Up to 10 VGWs per direct
connect gateway
AWS Direct Connect
location 2
Direct
connect
gateway
Account
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Multiple Regions
WAN
On-premises
AWS Direct Connect
Location
Private Virtual
Interface (VIF)
Customer
Router
AWS
Router
Customer
Router
AWS
Router
AWS Region
VGW
VGW
VGW
VGW
AWS Direct Connect
Location 2
Direct
connect
gateway
Account
AWS Region
VGW
VGW
VGW
VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shared Services VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shared Services VPC
• Authentication
• Logging
• DevOps tools
• Security resources
• Deployed in each AWS Region
Shared Services
VPC Peering
Authentication,
Security, Logging
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC Peering
Challenges
VPN
WAN
AWS Direct
Connect
Shared Services
VPC Peering
Full VPC connectivity
172.16.0.0/16 172.16.0.0/16
No overlapping addresses
…125
Scale
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introducing: PrivateLink
Shared
Services VPC
10.1.0.0/16
10.1.1.0/24
Availability Zone
10.1.1.127
10.1.2.0/24
Availability Zone
10.1.2.35
172.16.0.0/16
172.16.1.0/24
Availability Zone
172.16.2.0/24
Availability Zone
Network Load
Balancer
API API
One IP Address for each
Availability Zone
The endpoint is a local IP address
Access is unidirectional
172.16.1.9 172.16.2.41
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introducing: PrivateLink
Shared
Services VPC
10.1.0.0/16
10.1.1.0/24
Availability Zone
10.1.1.127
10.1.2.0/24
Availability Zone
10.1.2.35
172.16.0.0/16
172.16.1.0/24
Availability Zone
172.16.2.0/24
Availability Zone
172.16.1.9 172.16.2.41
API API
10.1.0.0/16
10.1.1.0/24
Availability Zone
10.1.1.162
10.1.2.0/24
Availability Zone
10.1.2.22
Support for
overlapping IP address
ranges
…thousands
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN
WAN
AWS Direct
Connect
Transit VPC
Shared
Services
Transit VPC with Services VPC:
It’s just a spoke
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shared Services Options
VPN
WAN
AWS Direct
Connect
Shared Services
VPC Peering
VPC Peering
• Bidirectional services
• Broad VPC access
• No load balancers required
+
PrivateLink
• Unidirectional services
• More granular access
• Scale beyond 125 spokes
• Overlapping addresses
+
Transit VPC
• Transit VPC consistency
• Automation is built-in
• Lower performance
• More complex to manage
+
VPN
WAN
AWS Direct
Connect
Transit VPC
Shared
Services
-
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Multiple Regions
AWS Region
VGW
VGW
VGW
VGW
AWS Region
VGW
VGW
VGW
VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Inter-Region VPC Peering
AWS Region AWS Region
VPC
Peering
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Global Connectivity Options
VPN
WAN
AWS Direct
Connect
Transit VPC
Cross-Region VPNDirect Connect Gateway Inter-Region Peering
• Native connectivity
• No management required
• One-to-one VPC
configuration
+• AWS Direct Connect only
• High performance
• No management required
+ • Transit VPC consistency
• Full control of connectivity
• Lower performance
• More complex to manage
+
--
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC Inflection Points
VPN Direct Connect VPC
5
15
50
100
125
200+
Transit VPC
Define your own
tunnel addresses
Automation Automation
VIF to port Limit Route and peering limit
Max route limit
Max peer limit
Limit on 4x LAG
Transit VPC
Customization
1
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
200+
Internet
Secure protocols
Secure authentication
Bastion hosts
Use PrivateLink
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tips and Tricks
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Advice
• Networking changes fast, no more crystal balls
• Segment as needed
• Experiment and test
• Mix and match! These are starting points not dogma!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Upgrading or modifying the Transit VPC
• Resize:
1. Stop the instance
2. Choose a different size
3. Start the instance
• Cisco CSR 16.5.1b (Apr ’17) and later support inline .BIN upgrades
• Same upgrade procedure as typical Cisco upgrades
• Before 16.5.1b you must use new Amazon EC2 instances
• Reuse existing Elastic IP Addresses and CLI configuration
• Hourly to BYOL also requires new instances
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customizing the Transit VPC
• Two AWS Lambda functions:
• https://<S3region>/solutions-reference/transit-vpc/v4/transit-vpc-poller.py1
• https://<S3region>/solutions-reference/transit-vpc/v4/transit-vpc-push-cisco-
config.zip1
• Use cases
• Create your own tags and policies
• Customize BGP policy
• Advertise different routes
• Aggregate or 0.0.0.0/0 after 100 routes
• Cisco DMVPN and other features
1: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Interconnecting
VICENTE DE LUCA, STAFF SOFTWARE ENGINEER, ZENDESK
vdeluca@zendesk.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
About us
Zendesk builds software for better customer relationships
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Traditional backbone architecture
• Multiple providers
• BGP
United
States
Europe
2015 Zendesk internal backbone
MPLS
High-availability
Multiple circuits
United
States
Europe
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transitioning to a Hybrid Model
2016 Zendesk internal backbone
VPC Managed VPN
over Internet and
public peering
2 Firewalls per data center
active/standby
VPN
High Availability Best Practices
2 IPsec tunnels per VPN connection
active/standby
16 IPsec Tunnels: 4 active
16 BGP peers:
- AS prepend
- Local preference
VGW
VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC: One more, please !
2016 Zendesk internal backbone
EC2 VPN instances
Complex environment:
Configuration changes touch
all environments
33 IPsec Tunnels: 9 active
VGW
VGWVGW
VGW
VPN
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Fast growing
VPN
VGW
VGW
VPN
VGW
VGW
VPN
VGW
VGW
Early 2017 Zendesk internal backbone
VGW
VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Proposed solution and requirements
Build a location agnostic network. Make it simple, cost-effective, and quick to deploy.
Project Medusa
Provides full-mesh encrypted dual stack connectivity
Support on-premises data centers and multi-cloud providers
Scalable for growth: bandwidth / packets per second
Describe the network stack as code
Fully automated – bootstrap, scaling and self-healing
Kubernetes Pods native routing – no NAT !
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S h a r e d S e r v i c e s V P C s a n d D y n a m i c M u l t i - p o i n t V P N
Shared Services VPC:
• Authentication, Service Discovery, Logging
• CSR1000V as DMVPN Hubs
What’s in the DMVPN standard?
• IPsec
• Generic Routing Encapsulation (GRE)
• Next Hop Resolution Protocol (NHRP)
• Internal BGP (iBGP)
LDAP
Master
Consul
Vault
Splunk LDAP
Master
Consul
Vault
Splunk
US-EAST
EU-CENTRAL
DMVPN
HUBs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A r c h i t e c t u r e : C o n n e c t a d a t a c e n t e r
DATA CENTER
DMVPN SPOKE
• Deploy 2x Routers (IOS-XE)
• Standard DMVPN configuration
• Spokes: Hubs are statically configured
• Hubs: No change required for new spokes
• Initially a Hub and Spoke topology
• iBGP with additional paths extension
• Equal Cost Multipath (ECMP) active/active
LDAP
Master
Consul
Vault
Splunk LDAP
Master
Consul
Vault
Splunk
US-EAST
EU-CENTRAL
DMVPN
Spoke
Data center 1
DMVPN
HUBs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A r c h i t e c t u r e : C o n n e c t a V P C
LDAP
Master
Consul
Vault
Splunk LDAP
Master
Consul
Vault
Splunk
US-EAST
EU-CENTRAL
DMVPN
HUBs
AZ 1 (public) AZ n (public)
ASG
Medusa Routers
ASG
Medusa Routers
DMVPN
Spokes
?
VPC ACME
DMVPN SPOKE
Medusa Routers:
• EC2 Instance: C4.xlarge + Ubuntu 17
• Auto scaling group (ASG): min. 2 instances per AZ
• DMVPN: Racoon (IPsec) + OpenNHRP + BIRD (BGP)
• Kernel: >=4.12 for ECMP Layer4 hash
• Custom: Python(boto3): AWS Routing Table BGP
propagation
Motivations:
• Linux portability
• Cost-effective (open source)
• Tooling ecosystem integration
• Flexible foundation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A r c h i t e c t u r e : H o w d y n a m i c V P N t u n n e l s a r e b u i l t
1. First packet from Spoke A to Spoke B is forwarded to a hub router
The hub forwards the packet to Spoke B (+latency)
2. The hub sends a redirect message to Spoke A with Spoke B’s public address
3. Spoke A initiates a dynamic IPsec tunnel to Spoke B
Further communication takes the new direct IPsec tunnel Aó B
NHRP
Hub
NHRP
Spoke A
NHRP
Spoke B
IPsec
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S c a l i n g N x V P C s u s i n g D M V P N
LDAP
Master
Consul
Vault
Splunk LDAP
Master
Consul
Vault
Splunk
US-EAST
EU-CENTRAL
AZ 1 (public)
ASG
Medusa Routers
ASG
Medusa Routers
AZ 1 (public)
ASG
Medusa Routers
ASG
Medusa Routers
AZ n (public)AZ n (public)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A r c h i t e c t u r e : B u i l d i n g t h e C l o u d S t a c k s
VPC and infrastructure:
• Provisioned using Hashicorp Terraform
Medusa Router:
• Custom AMI built with Packer
• Linux bootstrap: bash + python scripts
• Terraform module
New VPC required configuration:
1. Name
2. Environment
3. AWS Region
4. Availability Zones
5. VPC CIDR
6. VPC Public/Private/Custom subnets
terraform apply && echo NetOps rocks!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
D e p l o y m e n t s t a t u s , D I Y c h a l l e n g e s a n d t h e f u t u r e
• Gradually cutting over production from legacy VPN to Medusa
• 4 data centers, 12 VPCs into 6 regions and 2 cloud providers
Performance tests:
• us-east ó us-west (latency avg. 73ms)
• TCP uni-directional throughput: ~3.5Gbps
(iperf: 20 connections, 4 Medusa Routers each VPC)
• Legacy VPN: ~400Mbps
DIY challenges:
• Router bootstrap requires a next available IP function: use IPAM or Lambda
• VPC Routing Table limit: propagate rfc1918 summary routes + exceptions
• Kernel >=4.12 bug in IPsec hw offload: kernel bugzilla id:197513 w/ patch
2018 Q1:
• Stay tuned at Zendesk Engineering blog. NetOps will publish an article in detail
• https://medium.com/zendesk-engineering
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Take This Home
• Transit VPC for centralizing VPN configuration
• AWS Direct Connect can be used in addition to VPN
• Automation is important
• There are many options, and they change over time
• Customize, mix and match
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Available February 2018
Networking Study Guide
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
Pl e ase su b m i t yo ur f e e db ac k!

More Related Content

What's hot

AWS VPC & Networking basic concepts
AWS VPC & Networking basic conceptsAWS VPC & Networking basic concepts
AWS VPC & Networking basic conceptsAbhinav Kumar
 
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAmazon Web Services
 
VPC Design and New Capabilities for Amazon VPC
VPC Design and New Capabilities for Amazon VPCVPC Design and New Capabilities for Amazon VPC
VPC Design and New Capabilities for Amazon VPCAmazon Web Services
 
SID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CASID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CAAmazon Web Services
 
Introduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best PracticesIntroduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best PracticesGary Silverman
 
AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019Amazon Web Services
 
(SEC318) AWS CloudTrail Deep Dive
(SEC318) AWS CloudTrail Deep Dive(SEC318) AWS CloudTrail Deep Dive
(SEC318) AWS CloudTrail Deep DiveAmazon Web Services
 
AWS VPN Solutions (NET304) - AWS re:Invent 2018
AWS VPN Solutions (NET304) - AWS re:Invent 2018AWS VPN Solutions (NET304) - AWS re:Invent 2018
AWS VPN Solutions (NET304) - AWS re:Invent 2018Amazon Web Services
 
Building Event-driven Architectures with Amazon EventBridge
Building Event-driven Architectures with Amazon EventBridge Building Event-driven Architectures with Amazon EventBridge
Building Event-driven Architectures with Amazon EventBridge James Beswick
 
Aws 101 A walk-through the aws cloud (2013)
Aws 101  A walk-through the aws cloud (2013)Aws 101  A walk-through the aws cloud (2013)
Aws 101 A walk-through the aws cloud (2013)Martin Yan
 
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Amazon Web Services
 
Amazon EventBridge
Amazon EventBridgeAmazon EventBridge
Amazon EventBridgeDhaval Nagar
 
Deep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateDeep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateAmazon Web Services
 
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon Web Services
 
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarRunning Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarAmazon Web Services
 

What's hot (20)

AWS VPC & Networking basic concepts
AWS VPC & Networking basic conceptsAWS VPC & Networking basic concepts
AWS VPC & Networking basic concepts
 
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
 
VPC Design and New Capabilities for Amazon VPC
VPC Design and New Capabilities for Amazon VPCVPC Design and New Capabilities for Amazon VPC
VPC Design and New Capabilities for Amazon VPC
 
SID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CASID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CA
 
Introduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best PracticesIntroduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best Practices
 
IAM Introduction
IAM IntroductionIAM Introduction
IAM Introduction
 
Security Architectures on AWS
Security Architectures on AWSSecurity Architectures on AWS
Security Architectures on AWS
 
Deep dive - AWS Fargate
Deep dive - AWS FargateDeep dive - AWS Fargate
Deep dive - AWS Fargate
 
AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019
 
(SEC318) AWS CloudTrail Deep Dive
(SEC318) AWS CloudTrail Deep Dive(SEC318) AWS CloudTrail Deep Dive
(SEC318) AWS CloudTrail Deep Dive
 
AWS VPN Solutions (NET304) - AWS re:Invent 2018
AWS VPN Solutions (NET304) - AWS re:Invent 2018AWS VPN Solutions (NET304) - AWS re:Invent 2018
AWS VPN Solutions (NET304) - AWS re:Invent 2018
 
Building Event-driven Architectures with Amazon EventBridge
Building Event-driven Architectures with Amazon EventBridge Building Event-driven Architectures with Amazon EventBridge
Building Event-driven Architectures with Amazon EventBridge
 
AWS Account Best Practices
AWS Account Best PracticesAWS Account Best Practices
AWS Account Best Practices
 
Aws 101 A walk-through the aws cloud (2013)
Aws 101  A walk-through the aws cloud (2013)Aws 101  A walk-through the aws cloud (2013)
Aws 101 A walk-through the aws cloud (2013)
 
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
 
Amazon EventBridge
Amazon EventBridgeAmazon EventBridge
Amazon EventBridge
 
Deep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & FargateDeep Dive into Amazon ECS & Fargate
Deep Dive into Amazon ECS & Fargate
 
AWS EC2 Fundametals
AWS EC2 FundametalsAWS EC2 Fundametals
AWS EC2 Fundametals
 
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
 
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarRunning Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
 

Similar to Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017

DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...Amazon Web Services
 
NET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data CenterNET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data CenterAmazon Web Services
 
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018Amazon Web Services
 
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...Amazon Web Services
 
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City Summit
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City SummitPlanificación de arquitecturas de red de AWS - MXO211 - Mexico City Summit
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City SummitAmazon Web Services
 
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...Amazon Web Services
 
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...Amazon Web Services
 
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitPlan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitAmazon Web Services
 
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...AWS Summits
 
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...Amazon Web Services
 
Networking and Edge Services on AWS
Networking and Edge Services on AWSNetworking and Edge Services on AWS
Networking and Edge Services on AWSAmazon Web Services
 
AWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAmazon Web Services
 
高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)Amazon Web Services
 
AWS Transit Gateway-Benefits and Best Practices
AWS Transit Gateway-Benefits and Best PracticesAWS Transit Gateway-Benefits and Best Practices
AWS Transit Gateway-Benefits and Best PracticesJohn Varghese
 
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...Extending Datacenters to the Cloud: Connectivity Options and Considerations f...
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...Amazon Web Services
 
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...Amazon Web Services
 
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...Learn How Salesforce used ADCs for App Load Balancing for an International Ro...
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...Amazon Web Services
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...Amazon Web Services
 
Enterprise Network Architectures on AWS
Enterprise Network Architectures on AWSEnterprise Network Architectures on AWS
Enterprise Network Architectures on AWSAmazon Web Services
 
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?Securing Your AWS Global Transit Network: Are You Asking the Right Questions?
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?Khash Nakhostin
 

Similar to Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017 (20)

DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
 
NET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data CenterNET201_Creating Your Virtual Data Center
NET201_Creating Your Virtual Data Center
 
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018
Become an AWS VPN and AWS Direct Connect Expert (NET306-R1) - AWS re:Invent 2018
 
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
 
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City Summit
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City SummitPlanificación de arquitecturas de red de AWS - MXO211 - Mexico City Summit
Planificación de arquitecturas de red de AWS - MXO211 - Mexico City Summit
 
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...
AWS re:Invent 2018: [NEW LAUNCH] AWS Transit Gateway & Transit VPCs, Ref Arch...
 
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
 
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitPlan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
 
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...
AWS Networking – Advanced Concepts and new capabilities | AWS Summit Tel Aviv...
 
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...
Connecting Many VPCs: Network Design Patterns at Scale (ARC405) - AWS re:Inve...
 
Networking and Edge Services on AWS
Networking and Edge Services on AWSNetworking and Edge Services on AWS
Networking and Edge Services on AWS
 
AWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid Environments
 
高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)
 
AWS Transit Gateway-Benefits and Best Practices
AWS Transit Gateway-Benefits and Best PracticesAWS Transit Gateway-Benefits and Best Practices
AWS Transit Gateway-Benefits and Best Practices
 
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...Extending Datacenters to the Cloud: Connectivity Options and Considerations f...
Extending Datacenters to the Cloud: Connectivity Options and Considerations f...
 
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...
AWS re:Invent 2016: Extending Datacenters to the Cloud: Connectivity Options ...
 
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...Learn How Salesforce used ADCs for App Load Balancing for an International Ro...
Learn How Salesforce used ADCs for App Load Balancing for an International Ro...
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
 
Enterprise Network Architectures on AWS
Enterprise Network Architectures on AWSEnterprise Network Architectures on AWS
Enterprise Network Architectures on AWS
 
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?Securing Your AWS Global Transit Network: Are You Asking the Right Questions?
Securing Your AWS Global Transit Network: Are You Asking the Right Questions?
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Connecting Many VPCs S h a r e d a n d T r a n s i t A r c h i t e c t u r e s N i c k M a t t h e w s , P a r t n e r S o l u t i o n s A r c h i t e c t V i c e n t e D e L u c a , S t a f f S o f t w a r e E n g i n e e r , Z e n d e s k D e c e m b e r 1 , 2 0 1 7 N E T 4 0 4 AWS re:INVENT
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN WAN AWS Direct Connect Transit VPCVPN WAN AWS Direct Connect Transit VPC Shared Services VPC Peering Authentication, Security, Logging Shared Services VPC Peering Authentication, Security, Logging Many VPCs
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “A virtual network that closely resembles a traditional network that you'd operate in your own data center” What is a Virtual Private Cloud (VPC)? Instance Availability Zone Instance Availability Zone
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Traditional Network VPN VPN WAN Fiber Applications Applications
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN VPN (VPC Peering) WAN Fiber (AWS Direct Connect) Applications Applications AWS Network
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Ease of creation Access models Diverse ownership VPC Management Differences
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Less accounts and networks to setup • Tighter control within the account or VPC • Identity and Access Management (IAM) • Strict security groups and routing • Identifying resources with tags • Billing and ownership complexity • Larger account or VPC blast radius • User privileges, AWS limits • More accounts and infrastructure to setup • Tighter control of provisioning and standards • Automation of infrastructure • AWS Direct Connect and VPN standards • Subnet and routing standards • Simpler billing • Smaller blast radius for users and networks • Larger blast radius for shared infrastructure and services S m a l l e r V P C s o r a c c o u n t sL a r g e r V P C s o r a c c o u n t s Account and VPC Segmentation
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Automation of infrastructure • AWS Direct Connect and VPN standards • Subnet and routing standards • Identity and Access Management (IAM) • Strict security groups and routing • Identifying resources with tags S m a l l e r V P C s o r a c c o u n t sL a r g e r V P C s o r a c c o u n t s Account and VPC Segmentation Infrastructure and NetworkingPolicy and IAM
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Related Sessions Breakout Sessions: ENT323: Enabling Governance, Compliance, and Operational and Risk Auditing with AWS Management Tools ENT324: Automating and Auditing Cloud Governance and Compliance in Multi-Account Environments SID206: Best Practices for Managing Security Operation on AWS SID314: IAM Policy Ninja SID331: Architecting Security and Governance Across a Multi-Account Strategy Chalk Talks: SID208: Less (Privilege) Is More: Getting Least-Privilege Right in AWS SID308: Multi-Account Strategies SID309: Credentials, Credentials, Credentials, Oh My! Workshops: NET308: VPC Design Scenarios for Real-Life Use Cases SID311: Designing Security and Governance Across a Multi-Account Strategy
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What to Expect Compare VPC designs that: • Scale • Connect multiple VPCs together • Provide automation With these design patterns: Transit VPC VPN WAN AWS Direct Connect Transit VPC Transit VPC with firewalls AWS Direct Connect WAN Shared Services Multi-Region Options VGW VGW VGW VGW VGW VGW VGW VGW
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Our Starting Point VPN WAN AWS Direct Connect Virtual private gateway Dev Prod
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Challenge: Adding more VPCs VPN WAN AWS Direct Connect Lots of connections Dev Prod Dev Prod Dev Prod
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Challenge: Peering VPCs VPN WAN AWS Direct Connect VPC to VPC connections? Dev Prod Dev Prod Dev Prod
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Challenge: Peering VPCs VPN WAN AWS Direct Connect Dev Prod Dev Prod Dev Prod Connect Dev and Prod VPC Peering Connect the blue environment How does this scale? Let’s:
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN WAN AWS Direct Connect Dev Prod Dev Prod Dev Prod Dev Prod Dev Prod Dev Prod Scaling connections? Scaling VPC peering?
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC VPN WAN AWS Direct Connect Transit VPC Dev Prod Dev Prod Dev Prod Dev Prod Dev Prod Dev Prod
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Familiarity and visibility Firewall insertion Encryption everywhere Centralization Higher scale Inter-region connectivity Benefits of the Transit VPC VPN WAN AWS Direct Connect Transit VPC
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN WAN AWS Direct Connect Transit VPC Transit VPC Architecture
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Hub Availability Zone 1 Subnet 1 VPN Instance Availability Zone 2 Subnet 2 VPN Instance • Instances running VPN software • Deployed in two Availability Zones Internet gateway
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Routing Virtual Private Gateway (VGW) VGW VGW Virtual Private Network (VPN) Border Gateway Protocol (BGP) Transit VPC 10.0.0.0/16 10.1.0.0/16 The VGW advertises the VPC CIDR to the VPN instance (10.1.0.0/16) Customer Gateway (CGW) So far, this works exactly like a typical VPN
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Routing Virtual Private Gateway (VGW) VGW VGW Virtual Private Network (VPN) Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 VGW Internet The VPN Instances advertise routes to each VGW. This can be a default route or individual routes.
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Doesn’t Peering Work? VPC Peering Transit VPC 10.0.0.0/16 10.1.0.0/16 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 PCX Internet
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Doesn’t Peering Work? VPC Peering Transit VPC 10.0.0.0/16 10.1.0.0/16 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 PCX Internet Destination: Internet Traffic must either originate or terminate on a network interface in the VPC Transitive Routing
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Does VPN Work? Transit VPC 10.0.0.0/16 10.1.0.0/16 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 VGW Internet Destination: Internet VGW VGW Virtual Private Network (VPN) VGW VGW Traffic must either originate or terminate on a network interface in the VPC Transitive Routing
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Availability Virtual Private Gateway (VGW) VGW VGW Virtual Private Network (VPN) Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 VGW BGP and Dead Peer Detection (DPD) detect the failure The VGW route automatically fails over to the other tunnel Internet
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Availability VGW VGW Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/0 VGW Route Table Destination Target 10.2.0.0/16 Local 0.0.0.0/0 VGW BGP and Dead Peer Detection (DPD) detect the failure BGP and Dead Peer Detection (DPD) detect the failure Internet
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Options for On-Premises Connectivity Transit VPC Internet On-premises Virtual Private Network (VPN) Internet Gateway WAN Virtual Private Network (VPN) VGW VGW Detached VGW AWS Direct Connect Customer Gateway VPN over the internet WANVGW VGW Customer Gateway VGW Virtual Private Network (VPN) AWS Direct Connect VPN over AWS Direct Connect Detached VGW with AWS Direct Connect
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN Over the Internet VGW VGW Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Internet 172.16.0.0/16 On-premises Virtual Private Gateway (VGW) Virtual Private Network (VPN) Virtual Private Network (VPN) • Use this design for more control and visibility • Supports alternative tunnels such as DMVPN and GRE • Manually configured and operated + -
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN Over AWS Direct Connect VGW VGW Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Virtual Private Gateway (VGW) Virtual Private Network (VPN) WAN 172.16.0.0/16 On-premises Virtual Private Network (VPN) VGW VGW Customer Gateway (CGW) VGW • Useful for encrypting connections or inserting services • More control over latency and quality of the connectivity • Supports alternative tunnels such as DMVPN and GRE • Manually configured and operated AWS Direct Connect Private Virtual Interface (VIF) + -
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Detached VGW with AWS Direct Connect VGW VGW Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Virtual Private Gateway (VGW) Virtual Private Network (VPN) WAN 172.16.0.0/16 On-premises Virtual Private Network (VPN) VGW VGW Customer Gateway (CGW) Detached VGW AWS Direct Connect Private Virtual Interface (VIF)
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Detached VGW with AWS Direct Connect VGW VGW Transit VPC 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 WAN 172.16.0.0/16 On-premises Virtual Private Gateway (VGW) Customer Gateway (CGW) Detached VGW On-premises looks like another spoke AWS Direct Connect VGW VGW • Use this design if consistency and automation are important • Less management overhead • Traffic can take multiple routes out from AWS • Traffic is unencrypted on the private network + - Virtual Private Network (VPN)
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC Automation AWS CloudFormation and Implementation Guide
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Hub Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR • Uses the Cisco CSR • Available in BYOL or Hourly billing from AWS Marketplace • Full featured IOS-XE device • Deployed in two Availability Zones • Support for duplicate tunnel addresses Internet gateway https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/aws/b_csraws_transitVPC/b_csraws_transitVPC_chapter_01.html
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Region Transit VPC S3 Bucket for VPN Config Route Table Destination Target 100.64.127.224/27 Local 0.0.0.0 IGW Prefix List for S3 VPCE 100.64.127.224 / 27 Transit VPC: Creation Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR EC2 Auto-recovery
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC S3 Bucket for VPN Config Spoke VPC AWS Lambda Cisco Configurator AWS Lambda VGW Poller transitvpc:spoke = true Transit VPC: Add Spoke SSH Only to CSR Security Group VGW AWS Key Management Service (KMS) AWS Region Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC S3 Bucket for VPN Config Spoke VPC AWS Lambda Cisco Configurator AWS Lambda VGW Poller transitvpc:spoke = falseVGW AWS Region Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR Transit VPC: Remove Spoke
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Cisco Configurator AWS Lambda VGW Poller transitvpc:spoke = true Transit VPC: Add Spoke in Another Region AWS Region S3 Bucket for VPN Config Transit VPC Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR AWS Region
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Cisco Configurator transitvpc:spoke = true AWS Region Transit VPC Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR AWS Region AWS Account 1. Setup the VGW Poller 2. Allow bucket access 3. Allow KMS access Transit VPC: Add Spoke in Another Account S3 Bucket for VPN Config AWS Key Management Service (KMS) AWS Lambda VGW Poller
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Account Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR AWS Region Transit VPC AWS Region S3 Bucket for VPN Config AWS Lambda Cisco Configurator AWS Lambda VGW Poller Transit VPC: Add Spoke in Another Account AWS Key Management Service (KMS) Launch CloudFormation in Spoke Account 1. Setup the VGW Poller 2. Allow bucket access 3. Allow KMS access transitvpc:spoke = true
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S3 Bucket for VPN Config AWS Lambda Cisco Configurator AWS Lambda VGW Poller Transit VPC: Add Spoke in Another Account AWS Key Management Service (KMS) 1. Setup the VGW Poller 2. Allow bucket access 3. Allow KMS access AWS Region transitvpc:spoke = true Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR Transit VPC AWS Region AWS Account
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. { "Version": "2008-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::<account-1-ID>:root", "arn:aws:iam::<account-2-ID>:root" ] }, "Action": [ "s3:GetObject", "s3:PutObject", "s3:PutObjectAcl" ], "Resource": "arn:aws:s3:::<S3 bucket name>/<bucket prefix>/*" } ] } S3 Bucket Policy for a Spoke Account One additional account can be defined at launch
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S3 Bucket for VPN Config AWS Lambda Cisco Configurator AWS Lambda VGW Poller Transit VPC: Add Spoke in Another Account AWS Key Management Service (KMS) 1. Setup the VGW Poller 2. Allow bucket access 3. Allow KMS access AWS Region transitvpc:spoke = true Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR Transit VPC AWS Region AWS Account
  • 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. { "Sid": "Allow use of the key", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-TransitVpcPollerRole-[cloudformation-id]", "arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-CiscoConfigFunctionRole-[cloudformation-id]", "arn:aws:iam:: <transit-vpc-primary-account-id>:role/TransitVPC-LambdaLoaderRole-[cloudformation-id]", "arn:aws:iam::<account-1-id>:root", "arn:aws:iam::<account-2-id>:root" ] }, Key Management System: Key Policy One additional account can be defined at launch
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda Cisco Configurator transitvpc:spoke = true AWS Region Transit VPC Availability Zone 1 Subnet 1 Cisco CSR Availability Zone 2 Subnet 2 Cisco CSR AWS Region AWS Account 1. Setup the VGW Poller 2. Allow bucket access 3. Allow KMS access Transit VPC: Add Spoke in Another Account S3 Bucket for VPN Config AWS Key Management Service (KMS) AWS Lambda VGW Poller
  • 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Firewalls and the Transit VPC VGW VGW VGW VGW Internet
  • 46. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Firewall Use Cases “We need a firewall for all traffic between on-premises and AWS.” “We have compliance requirements for intrusion detection in our VPCs.” “Our security organization requires application-level inspection.” “We would like to centralize security appliances for any internet traffic.”
  • 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Security Services VGW VGW Virtual Private Network (VPN) 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 Active/Passive AS-path prepend
  • 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN Configuration Transit VPC: Duplicate Tunnel Addresses VGW VGW 10.0.0.0/16 10.1.0.0/16 VGW VGW 10.2.0.0/16 edit network interface tunnel units tunnel.2 set ip 169.254.45.210/30 set mtu 1427 top top edit network virtual-router default protocol bgp set router-id 52.1.1.1 set install-route yes set enable yes set local-as 65000 edit peer-group AmazonBGP edit peer amazon-tunnel-vpn-30c1d051-1 set peer-as 7224 set connection-options keep-alive-interval 10 set connection-options hold-time 30 set enable yes set local-address ip 169.254.45.210/30 set local-address interface tunnel.2 set peer-address ip 169.254.45.209 top edit network interface tunnel units tunnel.2 set ip 169.254.45.210/30 set mtu 1427 top top edit network virtual-router default protocol bgp set router-id 52.1.1.1 set install-route yes set enable yes set local-as 65000 edit peer-group AmazonBGP edit peer amazon-tunnel-vpn-30c1d051-1 set peer-as 7224 set connection-options keep-alive-interval 10 set connection-options hold-time 30 set enable yes set local-address ip 169.254.45.210/30 set local-address interface tunnel.2 set peer-address ip 169.254.45.209 top Same Address
  • 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Define Your Own Tunnel Address Math time: Use after creating 10-15 VPNs to the same device
  • 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance-Based Transit VPC Virtual Private Network (VPN) Spoke VPC Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0 ENI • Use this design for more control of both sides of the connection • A wider set of solutions can be used, like firewalls • Failover and management at scale can be challenging • Use more than one device in each VPC for better availability • Instances inside spoke VPCs can be intrusive • No dynamic routing with BGP to the route tables + -
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Spoke VPC Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0 ENI • Design is highly scalable • Design for failover in each Availability Zone • Requires centralized management • Devices must support many tunnels • Licensing costs may be prohibitive • High management overhead • Route propagation is more difficult VPN Mesh Full-mesh VPN Connectivity + - Bandwidth Licensing
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC ecosystem AWS VPN in Spoke VPCs Instance VPN in Spoke VPCs Continuous Automation One-time Automation Manual Deployment Routing Firewalls Anything with BGP and VPN Anything with BGP and VPN vSRX CSR Anything with tunnels vMX
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC: Cost, Scale, and Performance
  • 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transit VPC Costs VPN WAN AWS Direct Connect Transit VPC Per Spoke: VPN Hourly Charges VPN Egress Charges Hub Traffic: Spoke Destination Egress Egress Charges Transit Instances: Amazon EC2 Charges Licensing Costs
  • 55. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reference: Cisco CSR Bandwidth Tests Size Routing (Mbps) 1500B VPN (Mbps) 1400B T2.medium 390 300 M3.medium 300 250 C4.large 575 550 C4.xlarge 860 860 C3.2xlarge 1330 1000 C4.2xlarge 2300 2200 C4.4xlarge 4600 4100 C4.8xlarge 5000 4700 Note: Large packets
  • 56. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN WAN AWS Direct Connect Transit VPC Transit VPC Performance Use Security Groups inside the VPC Use VPC Peering better performance Each VPN instance can forward ~1- 3 Gbps aggregate on traffic and instance size Then what? Each spoke can forward ~1.25 Gbps per VPN tunnel At 100 spokes, aggregate routes
  • 57. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scaling the Transit VPC VPN WAN AWS Direct Connect Transit VPC
  • 58. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scaling the Transit VPC VPN WAN AWS Direct Connect Transit VPC VPN WAN AWS Direct Connect Transit VPC Use pods of independent Transit VPCs Connect the pods with tunnels for East-West traffic VPN
  • 59. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Direct Connect for Many VPCs WAN
  • 60. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Direct Connect to Many VPCs AWS Region VGW VGW 10.1.0.0/16 WAN On-premises AWS Direct Connect Location Private Virtual Interface (VIF) Customer Router AWS Router Customer Router AWS Router VGW VGW 10.2.0.0/16 Up to 50 VIFs per port AWS Direct Connect Location 2
  • 61. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Direct Connect: Link Aggregation AWS Region VGW VGW 10.1.0.0/16 WAN On-premises Link Aggregation (LAG) Private Virtual Interface (VIF) Customer Router AWS Router Customer Router AWS Router VGW VGW 10.2.0.0/16 Up to 4 ports in a LAG, each with 50 VIFs AWS Direct Connect Location 2
  • 62. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Direct Connect Gateway AWS Region VGW VGW 10.1.0.0/16 WAN On-premises AWS Direct Connect location Private Virtual Interface (VIF) Customer Router AWS Router Customer Router AWS Router VGW VGW 10.2.0.0/16 Up to 10 VGWs per direct connect gateway AWS Direct Connect location 2 Direct connect gateway Account
  • 63. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Multiple Regions WAN On-premises AWS Direct Connect Location Private Virtual Interface (VIF) Customer Router AWS Router Customer Router AWS Router AWS Region VGW VGW VGW VGW AWS Direct Connect Location 2 Direct connect gateway Account AWS Region VGW VGW VGW VGW
  • 64. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shared Services VPCs
  • 65. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shared Services VPC • Authentication • Logging • DevOps tools • Security resources • Deployed in each AWS Region Shared Services VPC Peering Authentication, Security, Logging
  • 66. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC Peering Challenges VPN WAN AWS Direct Connect Shared Services VPC Peering Full VPC connectivity 172.16.0.0/16 172.16.0.0/16 No overlapping addresses …125 Scale
  • 67. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Introducing: PrivateLink Shared Services VPC 10.1.0.0/16 10.1.1.0/24 Availability Zone 10.1.1.127 10.1.2.0/24 Availability Zone 10.1.2.35 172.16.0.0/16 172.16.1.0/24 Availability Zone 172.16.2.0/24 Availability Zone Network Load Balancer API API One IP Address for each Availability Zone The endpoint is a local IP address Access is unidirectional 172.16.1.9 172.16.2.41
  • 68. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Introducing: PrivateLink Shared Services VPC 10.1.0.0/16 10.1.1.0/24 Availability Zone 10.1.1.127 10.1.2.0/24 Availability Zone 10.1.2.35 172.16.0.0/16 172.16.1.0/24 Availability Zone 172.16.2.0/24 Availability Zone 172.16.1.9 172.16.2.41 API API 10.1.0.0/16 10.1.1.0/24 Availability Zone 10.1.1.162 10.1.2.0/24 Availability Zone 10.1.2.22 Support for overlapping IP address ranges …thousands
  • 69. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN WAN AWS Direct Connect Transit VPC Shared Services Transit VPC with Services VPC: It’s just a spoke
  • 70. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shared Services Options VPN WAN AWS Direct Connect Shared Services VPC Peering VPC Peering • Bidirectional services • Broad VPC access • No load balancers required + PrivateLink • Unidirectional services • More granular access • Scale beyond 125 spokes • Overlapping addresses + Transit VPC • Transit VPC consistency • Automation is built-in • Lower performance • More complex to manage + VPN WAN AWS Direct Connect Transit VPC Shared Services -
  • 71. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Multiple Regions AWS Region VGW VGW VGW VGW AWS Region VGW VGW VGW VGW
  • 72. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Inter-Region VPC Peering AWS Region AWS Region VPC Peering
  • 73. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Global Connectivity Options VPN WAN AWS Direct Connect Transit VPC Cross-Region VPNDirect Connect Gateway Inter-Region Peering • Native connectivity • No management required • One-to-one VPC configuration +• AWS Direct Connect only • High performance • No management required + • Transit VPC consistency • Full control of connectivity • Lower performance • More complex to manage + --
  • 74. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC Inflection Points VPN Direct Connect VPC 5 15 50 100 125 200+ Transit VPC Define your own tunnel addresses Automation Automation VIF to port Limit Route and peering limit Max route limit Max peer limit Limit on 4x LAG Transit VPC Customization 1
  • 75. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 200+ Internet Secure protocols Secure authentication Bastion hosts Use PrivateLink
  • 76. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tips and Tricks
  • 77. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Advice • Networking changes fast, no more crystal balls • Segment as needed • Experiment and test • Mix and match! These are starting points not dogma!
  • 78. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Upgrading or modifying the Transit VPC • Resize: 1. Stop the instance 2. Choose a different size 3. Start the instance • Cisco CSR 16.5.1b (Apr ’17) and later support inline .BIN upgrades • Same upgrade procedure as typical Cisco upgrades • Before 16.5.1b you must use new Amazon EC2 instances • Reuse existing Elastic IP Addresses and CLI configuration • Hourly to BYOL also requires new instances
  • 79. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Customizing the Transit VPC • Two AWS Lambda functions: • https://<S3region>/solutions-reference/transit-vpc/v4/transit-vpc-poller.py1 • https://<S3region>/solutions-reference/transit-vpc/v4/transit-vpc-push-cisco- config.zip1 • Use cases • Create your own tags and policies • Customize BGP policy • Advertise different routes • Aggregate or 0.0.0.0/0 after 100 routes • Cisco DMVPN and other features 1: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
  • 80. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Interconnecting VICENTE DE LUCA, STAFF SOFTWARE ENGINEER, ZENDESK vdeluca@zendesk.com
  • 81. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. About us Zendesk builds software for better customer relationships
  • 82. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Traditional backbone architecture • Multiple providers • BGP United States Europe 2015 Zendesk internal backbone MPLS High-availability Multiple circuits United States Europe
  • 83. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transitioning to a Hybrid Model 2016 Zendesk internal backbone VPC Managed VPN over Internet and public peering 2 Firewalls per data center active/standby VPN High Availability Best Practices 2 IPsec tunnels per VPN connection active/standby 16 IPsec Tunnels: 4 active 16 BGP peers: - AS prepend - Local preference VGW VGW
  • 84. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC: One more, please ! 2016 Zendesk internal backbone EC2 VPN instances Complex environment: Configuration changes touch all environments 33 IPsec Tunnels: 9 active VGW VGWVGW VGW VPN
  • 85. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Fast growing VPN VGW VGW VPN VGW VGW VPN VGW VGW Early 2017 Zendesk internal backbone VGW VGW
  • 86. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 87. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Proposed solution and requirements Build a location agnostic network. Make it simple, cost-effective, and quick to deploy. Project Medusa Provides full-mesh encrypted dual stack connectivity Support on-premises data centers and multi-cloud providers Scalable for growth: bandwidth / packets per second Describe the network stack as code Fully automated – bootstrap, scaling and self-healing Kubernetes Pods native routing – no NAT !
  • 88. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S h a r e d S e r v i c e s V P C s a n d D y n a m i c M u l t i - p o i n t V P N Shared Services VPC: • Authentication, Service Discovery, Logging • CSR1000V as DMVPN Hubs What’s in the DMVPN standard? • IPsec • Generic Routing Encapsulation (GRE) • Next Hop Resolution Protocol (NHRP) • Internal BGP (iBGP) LDAP Master Consul Vault Splunk LDAP Master Consul Vault Splunk US-EAST EU-CENTRAL DMVPN HUBs
  • 89. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A r c h i t e c t u r e : C o n n e c t a d a t a c e n t e r DATA CENTER DMVPN SPOKE • Deploy 2x Routers (IOS-XE) • Standard DMVPN configuration • Spokes: Hubs are statically configured • Hubs: No change required for new spokes • Initially a Hub and Spoke topology • iBGP with additional paths extension • Equal Cost Multipath (ECMP) active/active LDAP Master Consul Vault Splunk LDAP Master Consul Vault Splunk US-EAST EU-CENTRAL DMVPN Spoke Data center 1 DMVPN HUBs
  • 90. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A r c h i t e c t u r e : C o n n e c t a V P C LDAP Master Consul Vault Splunk LDAP Master Consul Vault Splunk US-EAST EU-CENTRAL DMVPN HUBs AZ 1 (public) AZ n (public) ASG Medusa Routers ASG Medusa Routers DMVPN Spokes ? VPC ACME DMVPN SPOKE Medusa Routers: • EC2 Instance: C4.xlarge + Ubuntu 17 • Auto scaling group (ASG): min. 2 instances per AZ • DMVPN: Racoon (IPsec) + OpenNHRP + BIRD (BGP) • Kernel: >=4.12 for ECMP Layer4 hash • Custom: Python(boto3): AWS Routing Table BGP propagation Motivations: • Linux portability • Cost-effective (open source) • Tooling ecosystem integration • Flexible foundation
  • 91. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A r c h i t e c t u r e : H o w d y n a m i c V P N t u n n e l s a r e b u i l t 1. First packet from Spoke A to Spoke B is forwarded to a hub router The hub forwards the packet to Spoke B (+latency) 2. The hub sends a redirect message to Spoke A with Spoke B’s public address 3. Spoke A initiates a dynamic IPsec tunnel to Spoke B Further communication takes the new direct IPsec tunnel Aó B NHRP Hub NHRP Spoke A NHRP Spoke B IPsec
  • 92. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S c a l i n g N x V P C s u s i n g D M V P N LDAP Master Consul Vault Splunk LDAP Master Consul Vault Splunk US-EAST EU-CENTRAL AZ 1 (public) ASG Medusa Routers ASG Medusa Routers AZ 1 (public) ASG Medusa Routers ASG Medusa Routers AZ n (public)AZ n (public)
  • 93. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A r c h i t e c t u r e : B u i l d i n g t h e C l o u d S t a c k s VPC and infrastructure: • Provisioned using Hashicorp Terraform Medusa Router: • Custom AMI built with Packer • Linux bootstrap: bash + python scripts • Terraform module New VPC required configuration: 1. Name 2. Environment 3. AWS Region 4. Availability Zones 5. VPC CIDR 6. VPC Public/Private/Custom subnets terraform apply && echo NetOps rocks!
  • 94. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. D e p l o y m e n t s t a t u s , D I Y c h a l l e n g e s a n d t h e f u t u r e • Gradually cutting over production from legacy VPN to Medusa • 4 data centers, 12 VPCs into 6 regions and 2 cloud providers Performance tests: • us-east ó us-west (latency avg. 73ms) • TCP uni-directional throughput: ~3.5Gbps (iperf: 20 connections, 4 Medusa Routers each VPC) • Legacy VPN: ~400Mbps DIY challenges: • Router bootstrap requires a next available IP function: use IPAM or Lambda • VPC Routing Table limit: propagate rfc1918 summary routes + exceptions • Kernel >=4.12 bug in IPsec hw offload: kernel bugzilla id:197513 w/ patch 2018 Q1: • Stay tuned at Zendesk Engineering blog. NetOps will publish an article in detail • https://medium.com/zendesk-engineering
  • 95. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Take This Home • Transit VPC for centralizing VPN configuration • AWS Direct Connect can be used in addition to VPN • Automation is important • There are many options, and they change over time • Customize, mix and match
  • 96. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Available February 2018 Networking Study Guide
  • 97. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! Pl e ase su b m i t yo ur f e e db ac k!