Sunday, November 9, 2025

AWS Direct Connect (DX) | Overview.

AWS Direct Connect (DX) - Overview.

Scope:

  • The concept of AWS Direct Connect (DX),
  • Key Benefits & Description,
  • Core Components & Description,
  • Types of Virtual Interfaces (Use Cases, Connect To, & Routing Type),
  • Connectivity Models,
  • Typical Flow,
  • Redundancy Best Practice,
  • Routing and BGP Overview,
  • Integration Patterns Description & Use Cases,
  • Monitoring Services & Management Purposes,
  • Security Considerations,
  • Best Practices for AWS Direct Connect (DX),
  • Common Architecture Sample for typical hybrid network,
  • Key Integrations.
  • Insights.

1. The concept of  AWS Direct Connect (DX)

    • AWS Direct Connect (DX) is a dedicated, private network connection between twtech on-premises data center (or colocation facility) and AWS.
    • AWS Direct Connect (DX) provides:
      •  low latency, 
      • high bandwidth
      • consistent network performance compared to internet-based connections (like VPN).

 2. Key Benefits & Description

Feature

Description

Low Latency

Traffic bypasses the public internet.

High Throughput

Supports 1 Gbps, 10 Gbps, and 100 Gbps links.

Consistent Performance

Predictable latency and minimal jitter.

Hybrid Connectivity

Integrates with on-prem and AWS environments seamlessly.

Secure

Traffic is private; optionally encrypted using MACsec or overlay VPN.

Cost-Efficient for Heavy Data

Lower data transfer rates than Internet egress.

 3. Core Components & Description

Component

Description

Customer Router (CPE)

twtech on-prem router or switch connecting to DX.

DX Location / Partner

A physical AWS Direct Connect facility (colocation).

AWS Direct Connect Router

AWS-side router at the DX location.

Virtual Interface (VIF)

Logical interface between DX and twtech AWS network.

AWS Region Gateway

Depending on setup: VGW (for VPC), TGW, or Direct Connect Gateway.

 4. Types of Virtual Interfaces (Use Cases, Connect To, & Routing Type)

Type

Use Case

Connects To

Routing Type

Private VIF

Connect to VPC.

VGW or TGW

BGP

Public VIF

Connect to public AWS services (S3, DynamoDB, etc.).

AWS Public endpoints

BGP

Transit VIF

Connect to multiple VPCs via DX Gateway + Transit Gateway.

TGW

BGP

 5. Connectivity Models

A. Single Connection

    • Simple but not fault-tolerant.
    • Used for non-critical or test environments.

B. Redundant Connections

    • Two connections in different DX locations or different routers.
    • Uses BGP for failover and equal-cost load balancing (ECMP).

C. Hosted Connection

    • Provided by an AWS Partner for <10 Gbps bandwidth needs.
    • Faster to provision and scalable.

 6. Routing and BGP Overview

    • BGP (Border Gateway Protocol) manages dynamic route exchange.
    • Each VIF runs its own BGP session.
    • AWS assigns:
      • ASN: twtech can use a private or public ASN.
      • Prefixes: Advertised by both sides (twtech on-prem + AWS).

Typical Flow:

On-prem Router  DX Router VIF VGW/TGW VPC

Redundancy Best Practice:

    • Use two DX connections, ideally in different DX locations.
    • Optionally use VPN over the Internet as backup (for hybrid resilience).

 7. Integration Patterns, Description & Use Cases

Pattern

Description

Use Case

DX + VGW (Private VIF)

Connect one VPC directly

Single VPC, hybrid workload

DX + TGW + DXGW (Transit VIF)

Connect multiple VPCs or Regions

Multi-VPC, multi-region

DX + VPN (Backup)

VPN serves as a backup path

Redundancy and HA

DX + CloudHub

For branch interconnect

Multi-site hybrid topology

 8. Monitoring  Services & Management Purposes

Service

Purpose

CloudWatch Metrics

Track connection state, BGP status, traffic, etc.

CloudTrail

Log DX configuration changes.

AWS CLI / SDKs

Automate VIF and DX Gateway provisioning.

MACsec

Optional link-level encryption (if supported).

 9. Security Considerations

    • DX traffic is not encrypted by default (private link, but not encrypted).
    • For encryption:
      • Use MACsec (IEEE 802.1AE) on physical links.
      • Or deploy VPN over DX (for overlay encryption).
    • Implement Network ACLs and Security Groups as normal in AWS.

 10. Best Practices for AWS Direct Connect (DX)

    1. Redundancy: Use two DX connections in different locations.
    2. Backup: Have VPN as a failover path.
    3. Monitor: Use CloudWatch alarms for connection status.
    4. Security: Consider encryption over DX for sensitive data.
    5. Performance Testing: Validate latency and throughput before migration.
    6. DX Gateway: Use for multi-region VPC access.

 11. Common Architecture Sample for typical hybrid network




12. Key Integrations

    • AWS Transit Gateway: Connects DX to multiple VPCs.
    • AWS Direct Connect Gateway: Enables multi-region VPC connectivity.
    • AWS Cloud WAN: Combines with DX for global network backbone.
    • AWS CloudWatch / CloudTrail: For monitoring and auditing.

twtech-Insights:

  • BGP stands for Border Gateway Protocol. 
    • It is the primary routing protocol that makes the global Internet work by managing how data packets are routed across different, independent networks (known as Autonomous Systems, or ASes).
  • VGWVirtual Private Gateway
    • A Virtual Private Gateway (VGW) acts as a VPN concentrator on the AWS side of a Site-to-Site VPN connection, enabling secure communication between a single Virtual Private Cloud (VPC) and the on-premises network. 
  • Primary Use Case of Virtual Private Gateway (VGW)
    • Connecting a single VPC to a corporate data center via a Site-to-Site VPN or AWS Direct Connect.
  • Topology: 
    • It is associated with a specific VPC ( 1:1 relationship).
  • Limitations: 
    • It does not support transitive routing between multiple attached VPCs; traffic between VPCs connected to the same VGW would need to "hairpin" (route back) through the on-premises network, which adds latency and complexity
  • TGWTransit Gateway
    • An AWSTransit Gateway (TGW) is a more advanced, highly scalable regional service that acts as a central cloud router
    • It simplifies network management by allowing twtech to connect multiple VPCs and on-premises networks to a single, central hub using a hub-and-spoke topology. 
  • Primary Use Case of AWS Transit Gateway (TGW) 
    •  Centralized routing for large-scale AWS environments, 
    • connecting numerous VPCs and on-premises networks efficiently.
  • Topology
    •  It supports many-to-many connections (multiple VPCs, VPNs, and Direct Connect Gateways can all attach to a single TGW).
  • Advantages of AWS Transit Gateway (TGW) :
    • Simplified Management: It eliminates the need for complex VPC peering relationships or multiple VPN connections.
    • Transitive Routing: It inherently allows traffic to route between all connected attachments without needing to leave the AWS network.
    • Scalability: It is designed for large-scale enterprise environments with growing infrastructure needs.  
  • VPC stands for Virtual Private Cloud. It is a logically isolated virtual network that an twtech defines and provisions within a larger public cloud infrastructure. 
    • Think of a public cloud as a large apartment building
      • VPC is like a specific apartment within that building, dedicated exclusively to one tenant. 
      • While the building's physical infrastructure (walls, foundation, plumbing) is shared, the interior of each apartment is private and can be customized by its owner, isolated from other tenants. 
  • Key Concepts of VPC
    • Isolation
      • The primary feature of a VPC is logical isolation from other virtual networks in the public cloud, even though they may share the same physical hardware. 
      • This is achieved using technologies like Virtual Local Area Networks (VLANs) and private IP subnets.
    • Control
      • Users have complete control over their virtual networking environment. 
      • They can define their own IP address ranges, create subnets (segments of the IP range), configure route tables (which determine how traffic flows), and set up network gateways.
    • Security
      • By isolating resources and allowing fine-grained access controls (such as security groups and network access control lists, or NACLs, which act as virtual firewalls), VPCs provide an enhanced security posture for sensitive data and applications, reducing exposure to the public internet.
    • Scalability:
      •  VPCs leverage the underlying scalability and flexibility of the public cloud provider's infrastructure. 
      •  Users can easily add or remove resources (like virtual machines and storage) as needed without managing physical hardware.
    • Hybrid Cloud Support:
      •  VPCs can be securely connected to on-premises networks via VPN connections or dedicated links, allowing organizations to create hybrid cloud environments that seamlessly integrate their private data centers with cloud resources.
VPC Main Components
    • Subnets
      • Divisions of the VPC's IP address range, designated as either public (internet-accessible via an Internet Gateway) or private (inaccessible from the internet directly).
    •  Internet Gateway
      • A component that enables communication between resources in the VPC and the public internet.
    •  NAT Gateway
      • Allows instances in a private subnet to initiate outbound connections to the internet (e.g., for software updates) while preventing unsolicited inbound traffic.
    •  Route Tables
      • Sets of rules that determine where network traffic is directed within the VPC and to external networks.
    •  Security Groups and Network ACLs:
      •  Virtual firewalls that control inbound and outbound traffic at the instance or subnet level, respectively. 
VPC Use Cases
    • VPCs are widely used for hosting multi-tier applications (e.g., separating public-facing web servers from private databases), maintaining regulatory compliance, and implementing disaster recovery solutions.
    • VPCs enable businesses to benefit from the cost efficiencies and dynamic scaling of the public cloud while maintaining the privacy and control of a private network.



No comments:

Post a Comment

Amazon EventBridge | Overview.

Amazon EventBridge - Overview. Scope: Intro, Core Concepts, Key Benefits, Link to official documentation, What EventBridge  Really  Is (Deep...