Enterprise SD-WAN & Secure Fabrics

Fortinet FortiGate SD-WAN & Multi-Path Architecture

A 15-project progression spanning intent-based SaaS breakout, active/active dual-ISP flow balancing, dynamic spoke-to-spoke Auto-Discovery VPN (ADVPN), proactive packet duplication delivering 0% voice loss, MP-BGP multi-VRF segmentation, dual-hub disaster recovery, and sub-second BFD failover verified with Linux tc netem impairment injection and live packet captures.

Status: 15 Projects Fully Verified Fortinet FortiOS Dynamic ADVPN Dual-Hub DR Packet Duplication (0% Loss) MP-BGP VPNv4 Multi-VRF Sub-Second BFD tc netem Fault Injection Python & Netmiko CI/CD
15 Engineering Modules
0.0% Packet Loss via Duplication
~190 Mbps Active/Active Link Saturation
Sub-Second BFD Fast Convergence

Multi-Site SD-WAN Architecture & Impairment Core

Dual-Hub, multi-spoke topology interconnecting Headquarters, Disaster Recovery Datacenter, and regional branches across dual-carrier underlays (MPLS and Broadband) with an inline Linux tc netem impairment engine.

1. Multi-Site SD-WAN Fabric & WAN Overlays

Fortinet SD-WAN Hub-and-Spoke and ADVPN Architecture

Figure 1: Dual-Hub SD-WAN overlay showing dynamic Spoke-to-Spoke ADVPN shortcuts, BGP Route Reflection, and dual-transport IPsec overlays.

2. Dynamic ADVPN Spoke-to-Spoke Shortcuts

Fortinet ADVPN Dynamic Shortcut Topology

Figure 2: NHRP redirect and shortcut generation bypassing the central Hub for direct spoke-to-spoke inter-branch traffic.

Node Interface Roles Subnet Addressing Network & Routing Role
Fortinet-HQ (Hub 1) port1: LAN
port2: MPLS WAN
port3: Broadband WAN
10.10.10.1/24
10.0.1.2/30
10.0.2.2/30
Central SD-WAN Hub 1 & Primary BGP Route Reflector (AS 65000, LocPrf 200)
Fortinet-Hub-2 (Hub 2) port1: LAN
port2: MPLS WAN
port3: Broadband WAN
10.40.40.1/24
10.0.1.14/30
10.0.2.14/30
Disaster Recovery Hub 2 & Secondary BGP Route Reflector (AS 65000, LocPrf 100)
Fortinet-Branch-1 port1: LAN
port2: MPLS WAN
port3: Broadband WAN
10.20.20.1/24
10.0.1.6/30
10.0.2.6/30
Edge SD-WAN Spoke 1 & ADVPN Shortcut Initiator/Receiver
Fortinet-Branch-2 port1: LAN
port2: MPLS WAN
port3: Broadband WAN
10.30.30.1/24
10.0.1.10/30
10.0.2.10/30
Edge SD-WAN Spoke 2 & ADVPN Shortcut Receiver
Impairment Engine eth0 (WAN), eth1 (LAN) Bridged inline between ISP-A and HQ port2 Alpine Linux appliance running Linux kernel tc netem for controlled latency/jitter/loss injection

15-Project Master Implementation Matrix

Master progression from foundational link health checks to zero-touch routing and NetDevOps automation.

Performance Routing

SLA-Based Failover

  • Real-time ICMP Performance SLA probes monitoring jitter, latency, and packet loss
  • Automated route withdrawal from FIB upon SLA threshold breach
  • Sub-second failover with only 1-2 dropped pings before complete link migration
  • Sustained zero TCP session resets verified via continuous ping and video evidence
Inspect Module on GitHub →
Application Steering

Application-Aware SaaS Steering

  • FortiGate DNS proxy resolution with dynamic cache-ttl 30 enforcement
  • Granular cloud application steering based on domain metadata without static IPs
  • Kernel policy routing tables continuously updated with resolved cloud addresses
  • Seamless SaaS breakout without triggering client connection resets or timeouts
Inspect Module on GitHub →
Bandwidth Aggregation

Active/Active Load Balancing

  • Dual-WAN active/active Round-Robin flow balancing eliminating single-link bottlenecks
  • Concurrent circuit utilization achieving ~190 Mbps aggregate throughput
  • Simultaneous link saturation across MPLS and Broadband verified via iPerf3
  • Wire-level packet sniffer proof confirming balanced stream distribution across ports
Inspect Module on GitHub →
Traffic Shaping

Traffic Shaping & Granular QoS

  • Decoupled path steering from QoS rate enforcement to protect mission-critical flows
  • Clamped unthrottled 10 Mbps burst traffic to a hard 2.0 Mbps rate ceiling
  • Committed vs. Maximum bandwidth rate profiles enforced per interface
  • Tail-drop verification on low-priority bulk queues documented via IO graphs
Inspect Module on GitHub →
Overlay Security

IPsec Overlay on SD-WAN Zone

  • Dual IPsec tunnels bound to a unified SD-WAN Zone across physical circuits
  • Deterministic crypto Security Association (SA) failover during circuit cuts
  • Floating blackhole safety routes preventing unencrypted egress during outages
  • Packet-level verification confirming 100% encrypted ESP payload encapsulation
Inspect Module on GitHub →
Brownout Detection

Composite VoIP SLA Monitoring

  • Composite SLA thresholds monitoring latency (<70ms), jitter (<25ms), and loss (<3%)
  • Controlled brownout injection via inline Alpine Linux appliance running tc netem
  • Sub-second detection triggering path failover at exact ICMP sequence borders
  • Live stream cut off on port 2 at seq 99 and cleanly resumed on port 3 at seq 100
Inspect Module on GitHub →
Dynamic VPN Overlays

ADVPN & Dynamic Shortcuts

  • Hub BGP Route Reflection (AS 65000) with BGP Additional-Paths (adv-additional-path 4)
  • Automated NHRP redirect triggers on transit routing detection
  • On-demand spoke-to-spoke IPsec child shortcuts bypassing Hub datacenter entirely
  • Packet counters confirmed shortcut forwarding (964 to 984 packets) with 50% latency drop
Inspect Module on GitHub →
Zero-Loss Resiliency

Packet Duplication (Zero-Loss Voice)

  • Simultaneous outbound frame replication across both MPLS and Broadband overlays
  • Receiving Hub kernel buffer de-duplicates packets and drops redundant copies
  • Delivered pristine 0.0% voice packet loss under active 15%-33% network degradation
  • Proved contrast: un-duplicated stream suffered 17% drop while duplicated achieved 0%
Inspect Module on GitHub →
Multi-Tenancy

Multi-VRF Segmentation (MP-BGP VPNv4)

  • Segregated Corporate (VRF 10) and Guest/IoT (VRF 20) over a single SD-WAN overlay
  • MP-BGP VPNv4 address family with Route Distinguishers, Route Targets, and ESP vpn-id
  • 100% lateral tenant isolation at the FIB layer without multi-tunnel overhead
  • Zero packet leakage verified: cross-VRF ping and port sweep attempts completely dropped
Inspect Module on GitHub →
Cloud Breakout

Direct Internet Access (DIA) Steering

  • Split-tunnel policy routing on branch edge spokes separating internet from internal WAN
  • Trusted FQDN cloud targets break out locally via Broadband with Source NAT enabled
  • Internal corporate traffic securely backhauled over encrypted IPsec overlay to HQ
  • Wireshark verified 100% of DIA egressed port 3 with zero private circuit leakage
Inspect Module on GitHub →
Automated Steering

BGP Community to Route-Tag Steering

  • Metadata-driven path steering automated directly from the BGP routing control plane
  • HQ attaches BGP Community 65000:100 via route-maps; edge spokes match and write Route-Tag 100
  • SD-WAN service rules dynamically compile target subnets from tags without manual IP objects
  • Modifying rule member dynamically shifted live wire traffic between MPLS and Broadband
Inspect Module on GitHub →
Disaster Recovery

Multi-Hub Dual-Region ADVPN (DR)

  • 4-tunnel spoke architecture peering with Primary Hub 1 (HQ) and Secondary Hub 2 (DR)
  • BGP Route Reflection advertising Local-Preference 200 on Hub 1 and Local-Preference 100 on Hub 2
  • Inter-hub Data Center Interconnect (DCI) IPsec tunnel syncing state
  • Primary hub blackout resulted in automated promotion and 0% loss on active branch shortcuts
Inspect Module on GitHub →
Symmetric Routing

Inbound BGP SLA Path Control

  • Extended SD-WAN intelligence to inbound return traffic to prevent asymmetric routing drops
  • Dynamic BGP AS-Path prepending and Local-Preference adjustments based on probe metrics
  • Upstream ISP routers automatically prefer optimal path matching branch outbound choice
  • Verified stateful firewall inspection table symmetry during circuit degradation
Inspect Module on GitHub →
High Availability

Sub-Second BFD Convergence

  • Bidirectional Forwarding Detection (BFD) deployed across BGP overlay peers
  • Reduced circuit failure detection and convergence from 180 seconds to sub-second
  • Hardware-assisted timer negotiation detecting silent intermediate carrier drops
  • Live packet sniffer verified instant BFD teardown and FIB route withdrawal
Inspect Module on GitHub →
NetDevOps & CI/CD

NetDevOps SD-WAN Automation

  • Python automation pipeline using Netmiko and Jinja2 templates for zero-touch provisioning
  • Automated branch deployment and configuration generation driven by JSON inventory
  • Post-deployment CLI diff verification and structured execution logging
  • Eliminated manual syntax errors and standardized deployment across multi-site fabric
Inspect Module on GitHub →

Key Engineering Highlights

Capability Empirical Measurement / Verification Operational Impact
Packet Duplication (Voice/Video) 0.0% loss under active 15-33% link degradation (vs 17% loss un-duplicated) Maintains pristine call quality over commodity internet circuits
Active/Active Balancing ~190 Mbps aggregate throughput across dual WAN providers Doubles available branch bandwidth by utilizing idle backup circuits
Dynamic ADVPN Shortcuts Spoke-to-spoke packet counters: 964 ➔ 984 pkts bypassing Hub Cuts inter-branch latency by 50%+ and frees datacenter WAN capacity
Dual-Hub Disaster Recovery 0% loss on inter-branch shortcuts during complete Hub 1 blackout Full datacenter outage resilience with automated control plane failover
Multi-VRF Segmentation 100% block between VRF 10 & VRF 20 over single IPsec overlay PCI-DSS / guest isolation without building redundant overlay fabrics

Engineering Troubleshooting & Lessons Learned

Field-Tested Problem Resolutions

Challenge Encountered Root Cause Engineering Resolution
ADVPN shortcuts failed to spawn between branches. Hub lacked BGP Additional-Paths; only advertised its own best path to spokes. Configured additional-path both and adv-additional-path 4 on Hub BGP reflector.
Packet duplication caused echo & jitter on backend host. Receiver host lacked de-duplication logic; processed duplicate UDP packets. Enabled FortiOS kernel de-duplication buffer on receiving Hub before packets egress to LAN.
Asymmetric routing caused stateful firewall drops. Outbound traffic took low-latency MPLS while return traffic routed via Broadband. Implemented Inbound BGP SLA Control matching route tags and applying dynamic AS-Path prepending.