Direct Connect
π What is AWS Direct Connect?¶
AWS Direct Connect (DX) is a dedicated private network connection from your on-premises data center, office, or colocation facility to AWS.
β It bypasses the public internet, delivering consistent performance, lower latency, and higher bandwidth with dedicated network lines.
π― Why Use Direct Connect?¶
| Use Case | Benefit |
|---|---|
| Large-scale data transfer to/from AWS | Faster, cheaper per GB, stable bandwidth |
| Hybrid cloud with latency-sensitive applications | Lower and consistent latency |
| Compliance-sensitive workloads | Avoid public internet, increase security |
| BGP-controlled routing | Fine-grained routing and failover control |
π§± Key Concepts & Components¶
| Component | Description |
|---|---|
| Customer Router (CPE) | Your on-premises router connected to DX |
| Direct Connect Location | AWS DX-enabled colocation data center |
| AWS Router | AWS-owned router at the DX location |
| Virtual Interface (VIF) | Logical connection into AWS (Public, Private, Transit VIF) |
| Virtual Private Gateway (VGW) | Used with Private VIF for VPC connectivity |
| Transit Gateway | Used to connect multiple VPCs over Direct Connect |
π How Direct Connect Works¶
βββββββββββββββ Dedicated Fiber ββββββββββββββββ
β On-prem CPE ββββββββββββββββββββββββββββββΆβ AWS DX Routerβ
βββββββββββββββ ββββββββ¬ββββββββ
β
ββββββββββββββββββββββ΄βββββββββββββββββββ
β Virtual Interface (VIF) β
β ββββββββββββββββ βββββββββββββββ β
β β Private VIF β β Public VIF β β
β βββββββ¬βββββββββ βββββββ¬ββββββββ β
β β β β
ββββββββΌβββββ ββββββΌβββββ βββββββΌβββββ β
β VPC β β Transit β β AWS S3, β β
β (via VGW) β β Gateway β β DynamoDB β β
βββββββββββββ βββββββββββ ββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββ
π‘ Types of Virtual Interfaces (VIFs)¶
| VIF Type | Use Case | Connects To |
|---|---|---|
| Private VIF | Connect to VPC via VGW or Transit Gateway | Private AWS services (e.g. EC2, RDS) |
| Public VIF | Connect to public AWS endpoints (S3, DynamoDB) | AWS global services over public IPs |
| Transit VIF | Connect to multiple VPCs via Transit Gateway | Large-scale enterprise networking |
π οΈ Steps to Set Up Direct Connect¶
πΉ Step 1: Request a Connection¶
-
Go to AWS Console > Direct Connect
-
Choose:
-
AWS DX Location (e.g., Equinix Mumbai)
-
Port speed: 1 Gbps, 10 Gbps, or 100 Gbps
-
Either a dedicated or hosted connection
-
π§Ύ Hosted connection is provisioned by AWS Partner (e.g., Tata Comm, Airtel, Megaport)
πΉ Step 2: Connect to AWS Router¶
-
In colocation center (or via Partner), run a fiber from your CPE to AWS router
-
Configure BGP peering
πΉ Step 3: Create a Virtual Interface (VIF)¶
-
Choose:
-
Private VIF for VPC access via VGW or Transit GW
-
Public VIF for public AWS service access
-
Transit VIF for centralized routing to multiple VPCs
-
πΉ Step 4: Configure Router (on-prem)¶
-
BGP ASN, peer IPs
-
Advertise prefixes (CIDR blocks)
-
Match MTU (typically 1500 or 9001)
π Speeds and Pricing¶
| Type | Speed Options | Notes |
|---|---|---|
| Dedicated | 1, 10, 100 Gbps | Available at AWS DX locations |
| Hosted Connection | 50 Mbps to 10 Gbps | Provisioned by AWS Partner |
| Billing | Per port-hour + data transferred | No NAT charges like in VPN |
πΈ Cheaper per GB than Site-to-Site VPN over long-term use
π Direct Connect vs Site-to-Site VPN¶
| Feature | AWS Direct Connect | Site-to-Site VPN |
|---|---|---|
| Connection Type | Private, dedicated fiber | Over public internet (IPSec) |
| Latency | Low, consistent | Higher, variable |
| Throughput | Up to 100 Gbps | ~1.25 Gbps per tunnel |
| Encryption | β Not encrypted by default | β Encrypted (IPSec) |
| Failover | Needs VPN backup | Built-in HA (2 tunnels) |
| Use Together? | β Yes β for hybrid HA | β Yes |
| Setup Time | Days to weeks | Minutes |
| Cost | Higher upfront, cheaper long-term | Lower setup, higher transfer costs |
π§ Best Practices¶
| Practice | Reason |
|---|---|
| Use VPN as backup to DX | Ensures high availability |
| Monitor BGP session health | Detect connection issues early |
| Aggregate multiple VPCs via Transit GW | Simplifies routing |
| Enable CloudWatch metrics | For usage, latency, throughput visibility |
| Validate MTU compatibility | Avoid packet drops or fragmentation |
| Set IAM and NACL restrictions | For granular security control |
β TL;DR Summary¶
| Feature | Description |
|---|---|
| What is it? | Dedicated private link to AWS from on-prem |
| Speed | 50 Mbps to 100 Gbps |
| Types of VIF | Public, Private, Transit |
| Bypasses internet? | β Yes |
| Encryption | β No (can add IPSec over DX) |
| Use with VPC? | β Yes (via VGW or Transit GW) |
| Use with VPN? | β Yes, for redundancy |
| Common use cases | Hybrid cloud, low latency apps, big data |