Study Guide1,054 words

Advanced AWS Networking: Implementing Connectivity Solutions

Implementing a solution on an appropriate network connectivity service (for example, VPC peering, Transit Gateway, VPN connection) to meet network requirements

Advanced AWS Networking: Implementing Connectivity Solutions

This guide focuses on the critical decision-making process and implementation details for AWS network connectivity services, specifically tailored for the AWS Certified Advanced Networking Specialty (ANS-C01) exam.

Learning Objectives

After studying this guide, you should be able to:

  • Differentiate between VPC Peering, Transit Gateway, and PrivateLink based on technical requirements.
  • Explain the concept of transitive routing and why it is absent in VPC Peering.
  • Implement hub-and-spoke architectures using AWS Transit Gateway.
  • Optimize network throughput by selecting the appropriate network interface (ENI, ENA, EFA).
  • Evaluate cost-effective connectivity options for hybrid cloud environments.

Key Terms & Glossary

  • Transitive Routing: The ability for traffic to pass through an intermediate network hop (e.g., A -> B -> C). VPC Peering does NOT support this.
  • Quotas/Limits: Hard or soft caps on resources, such as the 125 active peering connections per VPC limit.
  • VRF (Virtual Router Forwarder): Separate routing instances within a Transit Gateway that allow for network segmentation and isolation.
  • SD-WAN (Software-Defined Wide Area Network): A decoupled network layer that manages connectivity; often integrated via Transit Gateway Connect.
  • Multicast: One-to-many communication; supported by Transit Gateway but not by standard VPC routing or Peering.

The "Big Idea"

As AWS environments grow from a few VPCs to hundreds or thousands across multiple accounts and regions, the connectivity strategy must shift from point-to-point (VPC Peering) to centralized hub-and-spoke (Transit Gateway). The goal is to balance low latency and high performance against the complexity of management and the need for advanced features like multicast or centralized security inspection.

Formula / Concept Box

FeatureVPC PeeringTransit Gateway (TGW)PrivateLink
ModelPoint-to-Point (Mesh)Hub-and-SpokeProvider-Consumer
Transitive?NoYesNo
ThroughputNo Aggregate Limit50 Gbps per VPC attachment10 Gbps+ per endpoint
IP OverlapsNot allowedSupported (via NAT/Multiple VRFs)Supported (Native)
ComplexityO(N2)O(N^2) (at scale)O(N)O(N) (Centralized)Low (Service specific)

Hierarchical Outline

  1. Intra-Region & Inter-Region VPC Connectivity
    • VPC Peering: Direct connection between two VPCs using AWS backbone.
      • Pros: Low latency, no bandwidth bottlenecks, no single point of failure.
      • Cons: Complexity at scale, non-transitive.
    • AWS Transit Gateway: A regional network transit hub.
      • Pros: Simplifies routing, supports multicast, connects on-premises via VPN/DX.
      • Cons: Hourly attachment costs + data processing fees.
  2. Hybrid Connectivity (AWS to On-Premises)
    • Site-to-Site VPN: Encrypted IPsec tunnels over the public internet.
    • Direct Connect (DX): Private, dedicated physical connection (1Gbps, 10Gbps, 100Gbps).
    • Transit Gateway Connect: Uses GRE tunnels to integrate SD-WAN appliances.
  3. Application-Specific Connectivity
    • AWS PrivateLink: Access services privately without exposing traffic to the internet or needing Peering/TGW.

Visual Anchors

Choosing a Connectivity Service

Loading Diagram...

Hybrid Routing Architecture

\begin{tikzpicture}[node distance=2cm, every node/.style={draw, rectangle, align=center, minimum height=1cm}] \node (vpc) [fill=blue!10] {AWS VPC$Workload)}; \node (tgw) [right of=vpc, xshift=2cm, fill=orange!10] {Transit\Gateway}; \node (dxc) [right of=tgw, xshift=2cm, fill=green!10] {Direct Connect\Gateway}; \node (onprem) [right of=dxc, xshift=2cm, fill=gray!10] {On-Premises\Data Center};

code
\draw[<->, thick] (vpc) -- node[above] {Attachment} (tgw); \draw[<->, thick] (tgw) -- node[above] {Association} (dxc); \draw[<->, thick, dashed] (dxc) -- node[above] {VIF} (onprem); \node[draw=none, below of=tgw, yshift=1cm] {\tiny Hub};

\end{tikzpicture}

Definition-Example Pairs

  • VPC Peering: A networking connection between two VPCs that enables you to route traffic between them using private IPv4 or IPv6 addresses.
    • Example: A Production VPC needing to access a shared Logging VPC within the same region where the number of connections is small and fixed.
  • Transit Gateway Connect: A feature that enables native integration of SD-WAN appliances into AWS.
    • Example: A company uses Cisco or Silver Peak SD-WAN on-premises and wants to extend the same routing fabric into their AWS TGW using GRE tunnels.
  • Secondary CIDR: Adding additional IP address ranges to an existing VPC.
    • Example: A VPC is running out of IPs for its Lambda functions; the admin adds 100.64.0.0/16 as a secondary block to expand capacity.

Worked Examples

Scenario: The Transitive Routing Trap

Problem: VPC A is peered with VPC B. VPC B is peered with VPC C. Traffic from VPC A needs to reach VPC C.

Step-by-Step Breakdown:

  1. Analyze Current State: VPC A -> Peer -> VPC B -> Peer -> VPC C.
  2. Identify Restriction: AWS VPC Peering is non-transitive. Traffic arriving at VPC B from A cannot be "forwarded" to C.
  3. Propose Solution 1 (Peering): Create a direct peering connection between VPC A and VPC C.
  4. Propose Solution 2 (TGW): Replace peering with a Transit Gateway. Attach VPC A, B, and C to the TGW. Traffic will now flow A -> TGW -> C.
  5. Selection: If there are only 3 VPCs, Peering is cheaper. If there are 50 VPCs, TGW is more manageable.

Checkpoint Questions

  1. True or False: VPC Peering supports multicast traffic within the peered connection.
  2. What protocol is used by Transit Gateway to exchange routing information with on-premises routers?
  3. Which network interface should be chosen for high-performance computing (HPC) and MPI applications requiring sub-millisecond latency?
  4. How does PrivateLink solve the issue of overlapping IP addresses between two companies?
Click to see answers
  1. False (Only Transit Gateway supports multicast).
  2. BGP (Border Gateway Protocol).
  3. Elastic Fabric Adapter (EFA).
  4. PrivateLink uses NLB and VPC Endpoints; traffic is mapped via service names rather than direct IP routing, making the underlying CIDR irrelevant.

Muddy Points & Cross-Refs

  • Peering vs. TGW Cost: Peering has no hourly fee (only data transfer), whereas TGW has an hourly attachment fee + data processing fee ($0.02/GB). For high-volume data replication, Peering is often significantly cheaper.
  • MTU Issues: VPC Peering supports jumbo frames (9001 MTU) within a region. Inter-region peering and VPNs typically drop to 1500 MTU. Always verify path MTU to avoid fragmentation.
  • Route Propagation: Remember that for VPNs over TGW, BGP propagation must be enabled in the TGW route table, or static routes must be manually added.

Comparison Tables

Network Interfaces Comparison

InterfaceTypical Use CaseKey Characteristic
ENIStandard networkingBasic connectivity, management traffic.
ENAHigh throughputSupports up to 100 Gbps, enhanced networking.
EFAHPC / Machine LearningOS-bypass, lowest latency, supports MPI/libfabric.

Connectivity Scalability

RequirementBest ChoiceWhy?
1000+ VPCsTransit GatewayCentralized management and transitive routing.
2 VPCs (High Traffic)VPC PeeringLowest cost and no throughput bottleneck.
Third-party SaaSPrivateLinkSecure, one-way, handles overlapping IPs.

Ready to study AWS Certified Advanced Networking - Specialty (ANS-C01)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free