More details @ Virtual Private Cloud
- An Internet Gateway provides Internet connectivity to VPC
- Internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between instances in your VPC and the internet.
- Internet Gateway imposes no availability risks or bandwidth constraints on your network traffic.
- An Internet gateway serves two purposes: to provide a target in the VPC route tables for internet-routable traffic, and to perform network address translation (NAT) for instances that have not been assigned public IPv4 addresses.
- An internet gateway supports IPv4 and IPv6 traffic.
- NAT Gateway enables instances in a private subnet to connect to the internet (for example, for software updates) or other AWS services, but prevent the internet from initiating connections with the instances.
- A NAT gateway forwards traffic from the instances in the private subnet to the internet or other AWS services, and then sends the response back to the instances.
- When traffic goes to the internet, the source IPv4 address is replaced with the NAT device’s address and similarly, when the response traffic goes to those instances, the NAT device translates the address back to those instances’ private IPv4 addresses.
Egress Only Internet Gateway
- NAT devices are not supported for IPv6 traffic, use an Egress-only Internet gateway instead
- Egress-only Internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows outbound communication over IPv6 from instances in the VPC to the Internet, and prevents the Internet from initiating an IPv6 connection with your instances.
- VPC endpoint provides a private connection from VPC to supported AWS services and VPC endpoint services powered by PrivateLink without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection.
- Instances in the VPC do not require public IP addresses to communicate with resources in the service. Traffic between the VPC and the other service does not leave the Amazon network.
- VPC Endpoints are virtual devices and are horizontally scaled, redundant, and highly available VPC components that allow communication between instances in the VPC and services without imposing availability risks or bandwidth constraints on the network traffic.
- VPC Endpoints are of two types
- Interface Endpoints – is an elastic network interface with a private IP address that serves as an entry point for traffic destined to supported services.
- Gateway Endpoints – is a gateway that is a target for a specified route in your route table, used for traffic destined to a supported AWS service. Currently only Amazon S3 and DynamoDB.
More details @ VPC Endpoints
- VPC peering connection enables networking connection between two VPCs to route traffic between them using private IPv4 addresses or IPv6 addresses
- VPC peering connections can be created between your own VPCs, or with a VPC in another AWS account
- VPC peering connections can be created across regions, referred to as inter-region VPC peering connection
- VPC peering uses existing underlying AWS infrastructure; it is neither a gateway nor a VPN connection, and does not rely on a separate piece of physical hardware.
- VPC Peering does not have a single point of failure for communication or a bandwidth bottleneck.
- VPC Peering connections have limitations
- Can be used with Overlapping CIDR blocks
- Does not provide Transitive peering
- Doe not support Edge to Edge routing through Gateway or private connection
More details @ VPC Peering
- AWS VPN CloudHub allows you to securely communicate from one site to another using AWS Managed VPN or Direct Connect
- AWS VPN CloudHub operates on a simple hub-and-spoke model that can be used with or without a VPC
- AWS VPN CloudHub can be used if you have multiple branch offices and existing internet connections and would like to implement a convenient, potentially low cost hub-and-spoke model for primary or backup connectivity between these remote offices.
- AWS VPN CloudHub leverages VPC virtual private gateway with multiple gateways, each using unique BGP autonomous system numbers (ASNs).
- A transit VPC is a common strategy for connecting multiple, geographically disperse VPCs and remote networks in order to create a global network transit center.
- A transit VPC simplifies network management and minimizes the number of connections required to connect multiple VPCs and remote networks
- Transit VPC can be used to support important use cases
- Private Networking – You can build a private network that spans two or more AWS Regions.
- Shared Connectivity – Multiple VPCs can share connections to data centers, partner networks, and other clouds.
- Cross-Account AWS Usage – The VPCs and the AWS resources within them can reside in multiple AWS accounts.
- Transit VPC design helps implement more complex routing rules, such as network address translation between overlapping network ranges, or to add additional network-level packet filtering or inspection
Transit Gateway (Virtual Routing and Forwarding)
- Transit gateway enables you to attach VPCs (across accounts) and VPN connections in the same Region and route traffic between them
- Transit gateways support dynamic and static routing between attached VPCs and VPN connections
- Transit gateway removes the need for using full mesh VPC Peering and Transit VPC
Virtual Private Network (VPN)
- VPC provides the option of creating an IPsec VPN connection between remote customer networks and their VPC over the internet
- AWS managed VPN endpoint includes automated multi–data center redundancy & failover built into the AWS side of the VPN connection
- AWS managed VPN consists of two parts
- Virtual Private Gateway (VPG) on AWS side
- Customer Gateway (CGW) on the on-premises data center
- AWS Managed VPN only provides Site-to-Site VPN connectivity. It does not provide Point-to-Site VPC connectivity for e.g. from Mobile
- Virtual Private Gateway are Highly Available as it represents two distinct VPN endpoints, physically located in separate data centers to increase the availability of the VPN connection.
- High Availability on the on-premises data center must be handled by creating additional Customer Gateway.
- AWS Managed VPN connections are low cost, quick to setup and start with compared to Direct Connect. However, they are not reliable as they traverse through Internet.
More details @ Virtual Private Network
- VPC offers the flexibility to fully manage both sides of the VPC connectivity by creating a VPN connection between your remote network and a software VPN appliance running in your VPC network.
- Software VPNs help manage both ends of the VPN connection either for compliance purposes or for leveraging gateway devices that are not currently supported by Amazon VPC’s VPN solution.
- Software VPNs allows you to handle Point-to-Site connectivity
- Software VPNs, with the above design, introduces a single point of failure and needs to be handled.
- AWS Direct Connect helps establish a dedicated connection and a private connectivity from an on-premises network to VPC
- Direct Connect can reduce network costs, increase bandwidth throughput, and provide a more consistent network experience than internet-based or VPN connections
- Direct Connect uses industry-standard VLANs to access EC2 instances running within a VPC using private IP addresses
- Direct Connect lets you establish
- Dedicated Connection: A 1G or 10G physical Ethernet connection associated with a single customer through AWS.
- Hosted Connection: A 1G or 10G physical Ethernet connection that an AWS Direct Connect Partner provisions on behalf of a customer.
- Direct Connect provides following Virtual Interfaces
- Private virtual interface – to access an VPC using private IP addresses.
- Public virtual interface – to access all AWS public services using public IP addresses.
- Transit virtual interface – to access one or more transit gateways associated with Direct Connect gateways.
- Direct Connect connections are not redundant as each connection consists of a single dedicated connection between ports on your router and an Amazon router
- Direct Connect High Availability can be configured using
- Multiple Direct Connect connections
- Back-up IPSec VPN connection
More details @ Direct Connect
- Direct Connect link aggregation group (LAG) is a logical interface that uses the Link Aggregation Control Protocol (LACP) to aggregate multiple connections at a single AWS Direct Connect endpoint, allowing you to treat them as a single, managed connection.
- LAGs needs the following
- All connections in the LAG must use the same bandwidth.
- You can have a maximum of four connections in a LAG. Each connection in the LAG counts towards your overall connection limit for the Region.
- All connections in the LAG must terminate at the same AWS Direct Connect endpoint.
Direct Connect Gateway
- Direct Connect Gateway allows you to connect an AWS Direct Connect connection to one or more VPCs in your account that are located in the same or different regions
- Direct Connect gateway can be created in any public region and accessed from all other public regions
- Direct Connect gateway CANNOT be used to connect to a VPC in another account.
- Alternatively, Direct connect locations can also access the public resources in any AWS Region using a public virtual interface.
Direct Connect with VPN
- AWS Direct Connect plus VPN provides an IPsec-encrypted private connection that also reduces network costs, increases bandwidth throughput, and provides a more consistent network experience than internet-based VPN connections.