Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Amazon Science 4 min read Deep dive easyNovice

Using mathematics to validate network configurations

AWS validates Cloud WAN network segmentation statically by translating route tables, attachments and policy documents into logical rules and facts, then querying its automated-reasoning engine Tiros for which attachments can reach which others with which destination IPs. Each satisfying assignment corresponds to a path, so the absence of any path between segments the policy declares isolated (e.g. production and development VPCs sharing 10.0.0.0/16) demonstrates the segmentation holds across all modeled paths. This replaces packet-based sampling, which cannot exhaustively cover large networks, and can run as often as hourly, alerting operators when actual reachability diverges from policy.

Assumes: VPC and routing basicsnetwork segmentation

Related posts

  • How DeepL keeps closest-exit routing during maintenance with AWS Cloud WAN

    AWS Architecture Blog hardMaster

    DeepL drains a single AWS Direct Connect link for maintenance by prepending AS_PATH on that link's virtual interface. The prepend shifts only the affected Region's egress to a peer core network edge, and every other Region keeps its closest exit. Local preference communities don't work for this because the Direct Connect gateway evaluates them before AS_PATH, and they would re-rank exits for all Regions at once. The core network edge, by contrast, picks paths by AS_PATH length. Use at least two prepends (DeepL uses five), since one prepend ties and Cloud WAN then still prefers the gateway path. Lower on-premises local preference so inbound traffic moves too, keep flows symmetric if a stateful firewall sits in the path, and budget for inter-Region transfer charges during the drain.

  • Building the Next Evolution of Cloud Networks at Slack – A Retrospective

    Slack Engineering mediumAdept

    A year after launching Whitecastle, its AWS network redesign built on Transit Gateway, Slack found that proxy environment variables (http_proxy/no_proxy) were the biggest migration drag. Languages honor them inconsistently: Java ignores them, and CIDR support differs between Ruby, Go and Python. Partial migrations pushed huge, bursty traffic through Transit Gateway, which required CloudWatch attachment-level monitoring and help from AWS to scale. The team replaced VPC peering with Transit Gateway without downtime by adding a less-specific 10.0.0.0/8 route before deleting the peering routes. Later improvements included multiple workload VPCs per region, cross-account private Route53 zone associations, a self-discovering network tester backed by DynamoDB, and a Slack bot for looking up network details.

  • Risk-driven backbone management during COVID-19 and beyond

    Meta Engineering hardMaster

    Facebook's global backbone withstood the COVID-19 traffic surge by computing risk metrics (demand loss, availability, latency stretch) over enumerated failure scenarios. Component failure likelihood and duration come from MTBF/MTTR estimates built with clustering and Bayesian regression on features like vendor and region. A sharded simulation runs the production SD-WAN controller code per failure scenario. The resulting metrics pointed to at-risk regions, which drove proactive capacity deployment and downgrading latency-insensitive traffic from QoS class 3 to class 4, so the same SLOs could be met with less capacity.

  • Zero-Downtime Blue/Green Deployments on Render with Canary Traffic Splitting

    Render mediumAdept

    A blue/green canary pipeline for Render orchestrates six services (API, web frontend, worker, each duplicated into blue and green environments) using SuperPlane, an open-source DevOps workflow engine, with Cloudflare weighted traffic routing, Dash0 synthetic checks and PromQL error rates, and GitHub Actions smoke tests. On push to main, the workflow detects the live environment, deploys to the idle one, shifts 30% of traffic, runs verification in parallel after a configurable soak period, and either promotes to 100% or calls Render rollback APIs and restores Cloudflare weights. In testing, smoke tests passed while Dash0 caught 5xx rates above a 1% threshold and triggered automatic rollback. Remaining tradeoffs are backward-compatible schema migrations on the shared database and the cost of running duplicate services, which can be reduced by scaling the idle environment down.

  • Modular regression testing framework built on AWS for large-scale systems

    AWS Architecture Blog mediumAdept

    A traffic-replay regression testing framework built on AWS captures production requests and responses, replays a sample against new code in pre-production, and gates deployments on a CloudWatch alarm over the fraction of matching outputs (typically 99.9%). Step Functions toggles a Lambda event source mapping on a DynamoDB stream, replayed requests carry simulation IDs so stateful services can skip side effects and seed randomness deterministically, and responses are reduced and normalized before comparison via CloudWatch Logs Insights. Over six months it caught five customer-impacting regressions with zero false positives, using about 5% traffic replay with 200-record batches and reserved concurrency to cap load.

The quest for software engineering knowledge.

Look:
Layout: