Skip to content

Instantly share code, notes, and snippets.

@huynhbaoan
Last active December 15, 2024 12:03
Show Gist options
  • Save huynhbaoan/dbd5cd793ce50d35c6327322b022a92e to your computer and use it in GitHub Desktop.
Save huynhbaoan/dbd5cd793ce50d35c6327322b022a92e to your computer and use it in GitHub Desktop.
Here are the full URLs for the references mentioned:
1. Cisco SD-WAN Cloud Init Configuration:
https://www.cisco.com/c/en/us/td/docs/routers/sdwan/configuration/day-zero-and-bootstrap-configuration/CloudInit.html
2. Cisco SD-WAN Ports and Protocols:
https://www.cisco.com/c/en/us/td/docs/routers/sdwan/configuration/ports/ports.html
The integration between SD-WAN (e.g., Cisco SD-WAN) and AWS CloudWAN involves using standard networking protocols and mechanisms to enable seamless communication. Below is an explanation of how they “talk to each other” and the protocols involved:
1. Communication Between SD-WAN and CloudWAN
• Transport Overlays: SD-WAN establishes secure transport overlays (usually using IPSec tunnels) between its edge devices and the AWS network infrastructure.
• Routing Protocols: The SD-WAN fabric and AWS CloudWAN exchange routing information using dynamic routing protocols such as BGP (Border Gateway Protocol). This allows SD-WAN edge devices to learn AWS routes and vice versa.
• Policy Integration: SD-WAN controllers (e.g., Cisco vManage) configure traffic policies that interact with CloudWAN’s centralized policy manager via APIs or manual configuration.
2. Key Protocols and Mechanisms
Protocol/Mechanism Role in Communication
IPSec Encrypts data between SD-WAN edge devices and AWS CloudWAN.
BGP Shares routing information between SD-WAN edge routers and AWS CloudWAN for dynamic path selection.
IKE (Internet Key Exchange) Establishes and manages secure IPSec tunnels between SD-WAN and CloudWAN.
GRE (Optional) Encapsulates SD-WAN traffic into CloudWAN if specific encapsulation is required.
HTTPS (REST APIs) Used by SD-WAN controllers to integrate with AWS services for automation and monitoring.
AWS Direct Connect or VPN Provides the physical or virtual link connecting SD-WAN devices to AWS CloudWAN infrastructure.
3. Steps for SD-WAN and CloudWAN Integration
1. Connectivity Setup:
• Use AWS Site-to-Site VPN or Direct Connect to connect SD-WAN edge devices to AWS.
• Configure IPSec tunnels between SD-WAN edge devices and AWS Virtual Private Gateways (VGWs) or Transit Gateways (TGWs).
2. Routing Exchange:
• Enable BGP between SD-WAN edge devices and AWS Transit Gateway or CloudWAN Core Network Edges to exchange routes dynamically.
• Advertise AWS VPC routes to SD-WAN and SD-WAN branch routes to CloudWAN.
3. Traffic Engineering:
• Define traffic policies in the SD-WAN controller (e.g., Cisco vManage) to prioritize traffic to/from AWS.
• CloudWAN policies ensure efficient routing within the AWS global backbone.
4. Policy Integration:
• Use SD-WAN’s application-aware routing to optimize traffic destined for AWS services.
• CloudWAN handles regional or inter-region traffic using its core network.
4. Example Workflow
1. A branch office connected via Cisco SD-WAN wants to access AWS services hosted in a specific VPC.
2. The SD-WAN edge device establishes an IPSec tunnel to AWS CloudWAN through:
• Direct Connect for high bandwidth.
• VPN Gateway for cost-efficient connectivity.
3. BGP dynamically shares routes:
• SD-WAN learns AWS VPC CIDRs.
• AWS CloudWAN learns branch network prefixes.
4. Application traffic is routed dynamically based on SD-WAN’s application-aware policies and CloudWAN’s policy-defined paths.
5. Benefits of SD-WAN and CloudWAN Communication
• Dynamic Routing: With BGP, changes in network topology or link failures are handled seamlessly.
• Security: IPSec tunnels ensure secure traffic between SD-WAN and AWS CloudWAN.
• Centralized Control: SD-WAN’s centralized management integrates well with CloudWAN’s global policies, simplifying multi-cloud and hybrid network management.
6. Considerations
• Latency: IPSec adds some overhead compared to Direct Connect alone.
• Compatibility: Ensure the SD-WAN solution supports AWS CloudWAN through APIs or compatible protocols (Cisco SD-WAN is supported).
• Policy Coordination: Policies in SD-WAN and CloudWAN must align to prevent conflicts or routing loops.
This integration enables enterprises to leverage the best of both worlds: SD-WAN’s flexibility and CloudWAN’s scalability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment