Aws VPC
Aws VPC
– Subnets
– Route Tables
– Access Control Lists
– Network Gateways
Route Tables – Define how traffic should be routed from/to each subnet
Internet Gateway – A logical device enabling traffic to be routed to/from the public internet
Managed NAT – Provide Network Address Translation to private instances for 10Gbps traffic
Virtual Private Gateway - The Amazon end of a VPN connection
Customer Gateway - The router at the customer end of a VPN connection
VPCs span an entire region
VPC CIDR: 10.1.0.0 / 16
172.31.0.0/16
Recommended:
Recommended:
/16
RFC1918 range
(64K addresses)
Subnet Design
Public / Private Subnets
VPC CIDR: 10.1.0.0 / 16
PUBLIC PUBLIC
PRIVATE PRIVATE
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
Web
(public)
Web
(public)
Web
(public)
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
Route Table
Destination Target
10.1.0.0/16 Local
Web
0.0.0.0/0 Internet Gateway Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Route Table
Destination Target
10.1.0.0/16 Local
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
N
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
N
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Route Table
Destination Target
10.1.0.0/16 Local
Database Database
0.0.0.0/0
Subnet (10.1.3.0/24) NAT Endpoint Subnet (10.1.4.0/24)
(private) (private)
N
Web Web
Subnet (10.1.1.0/24) (public) Subnet (10.1.2.0/24) (public)
Database Database
Subnet (10.1.3.0/24) (private) Subnet (10.1.4.0/24) (private)
• You can connect VPCs together within a Region without having to
– Maintain all the VPN overhead between multiple VPCs
– Expose the destination VPC to the Internet and all that entails
|+----------------------------------------------------+|
||| Routes |||
||+-----------------------+------------+-------------+||
||| DestinationCidrBlock | GatewayId | State ||
||+-----------------------+------------+--------------||
||| 10.10.0.0/16 | local | active ||
||| 0.0.0.0/0 | igw-5a1ae13f | active ||
+----------------------------------------------------+||
|+-------------------------------------------------------------------+|
||| Routes |||
||+-----------------------+-----------------------------------------+||
||| DestinationCidrBlock | DestinationPrefixListId | GatewayId ||
||+-----------------------+-------------------------+----------------||
||| 10.10.0.0/16 | | local ||
||| | pl-68a54001 | vpce-a610f4cf ||
+-------------------------+-------------------------+---------------+||
The Amazon S3 Prefix list
aws ec2 describe-prefix-lists --prefix-list-ids pl-68a54001
--------------------------------------------------
| DescribePrefixLists |
+------------------------------------------------+
|| PrefixLists ||
|+---------------+------------------------------+|
|| PrefixListId | PrefixListName ||
|+---------------+------------------------------+|
|| pl-68a54001 | com.amazonaws.us-west-2.s3 ||
|+---------------+------------------------------+|
||| Cidrs |||
IP range for Amazon S3
||+--------------------------------------------+||
Changes over time and is managed by
||| 54.231.160.0/19 |||
AWS
||+--------------------------------------------+||
Rich security controls
10.1.0.0/16
or
Connect to your data center
Internal S erver
10.1.0.0/16
or
Connect to your data center
Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/16 IGW
Subnet (10.1.1.0/24) Subnet (10.1.2.0/24)
Route Table
10.1.0.0/16
or
AWS Hardware VPN
Static VPN
10.0.0.0 /16
172.16.0.0 /16
172.16.0.0 /16
10.0.0.0 /16
Tunnel 2
IP 169.254.169.6 /30
Tunnel 2
BGP AS 65001
IP 169.254.169.5 /30
BGP AS 7224 Route Table (propagated)
Destination Target
10.0.0.0/16 Local
CORP
172.16.0.0/16 VGW
Resilient Dynamic VPN
OSPF
iBGP
eBGP
CORP
Resilient Dynamic VPN – Multiple VPC’s
CORP
AWS Direct Connect
What is AWS Direct Connect…
Dedicated, private pipes into AWS
Create private (VPC) or public virtual interfaces to AWS
Reduced data-out rates (data-in still free)
Consistent network performance
At least 1 location to each AWS region
Option for redundant connections
Multiple AWS accounts can share a connection
Uses BGP to exchange routing information over a VLAN
At the Direct Connect Location
Demarcation
DX Location
Colocation
Customer
`
Network
CORP
Dedicated Port via Direct Connect Partner
Demarcation
DX Location
Colocation
Partner Network
AWS Direct
Connect
Routers
CORP
DX Location
Colocation
MPLS Core
` ` CE Router
Connect PE Router
Routers
CE Router
CORP
Dual DX – Single Location
DX Location
Colocation
Service P rovider
`
Network
Customer
Router
AWS Direct
Connect
Routers
CORP
Dual DX – Single Location / Dual Routers
DX Location
Colocation
Service P rovider
Network
CORP
Single DX – Dual Location / Dual Routers
DX Location 1
Colocation
Service P rovider
DX Location 2 Network
Colocation
Colocation
Service P rovider
DX Location 2 Network
Colocation
• All Direct Connect locations are at 3rd party data centers
• You will have to work with at least one other organisation
– Could be just the Data Center
– Could be a Network Provider / Direct Connect Partner
– Could be multiple Network Providers AND the Data Center
• There are a number of possible connection speeds
– 1G and 10G links can connect to multiple VIFs (=> multiple VPCs)
– Sub-1G Hosted Connections from Partners support just a single VIF (=> single VPC)
• VIFs could be attached to other accounts in the same AWS Region
• Public VIF’s include the Hardware VPN Endpoints
– Use Direct Connect to transport an IPsec VPN connection
in the Cloud
AKA “Video Factory”
Sources:
BBC iPlayer Performance Pack August 2013
http://www.bbc.co.uk/blogs/internet/posts /Video-Fac tory
Amazon Elastic
SDI Broadcast Transcoder
Video F eed
x 24 Broadcast
Encoder Elemental
Cloud
Amazon S 3
Distribution
Mezzanine Transcode QC Renditions
Live Ingest
Abstraction
Playout Video Logic
Layer Editorial
Transcoded V ideo
Clipping
Metadata
Playout
Data F eed MAM
Sources:
AWS UK UK – 24/09/14 – Rachel Evans, BBC