Branch WAN Overlay: IKEv2 on Two Transports, Application-Aware Steering, Segmentation and Zero-Touch Stores

Build a pharmacy chain's branch WAN as an overlay from open-source parts: IKEv2 tunnels over MPLS and broadband with certificates and a hybrid post-quantum key exchange, BGP and BFD per segment, STAMP path measurement and application-aware steering, QoS, a controller with canary rollouts, zero-touch stores and revocation.

Network Engineer. Advanced.

What you will build and explain

  • Explain what an SD-WAN does and build one from open-source parts: an IKEv2 overlay on MPLS and broadband, routing, segmentation, path measurement and application steering.
  • Configure strongSwan with per-device certificates, a hybrid ECP-384 and ML-KEM-768 key exchange, NAT traversal and two Child SAs per tunnel on route-based XFRM interfaces.
  • Keep a payment segment apart end to end with Linux VRFs and nftables filters, break guest Wi-Fi out locally, and test every boundary.
  • Run BGP and BFD per segment over the tunnels with FRRouting, with preferences, announcement filters and failure detection in about a second.
  • Measure delay, jitter and loss each way with STAMP and steer application classes with hysteresis and policy rules, including the data centres' return path.
  • Mark and shape traffic so a call survives a full line, through encryption, in both directions.
  • Enrol, renew and revoke router certificates with step-ca and OCSP, shut out a stolen router and open a new store from a bootstrap file.
  • Render each router's configuration from intent, roll changes out in waves with a health check and automatic restore on every router, and alert on what needs a person.

Before you begin

  • IPv4 addressing and subnetting; static routes and what BGP does; what a VPN is; Linux shell use; reading short Bash and Python programs; Docker and Git basics.
  • A Linux host (x86_64 or arm64) with 4 vCPUs, 8 GB of memory, 30 GB of free disk, a kernel with XFRM interfaces, VRF, netem, HTB and fq_codel (Ubuntu 24.04 has them), Docker 27 or later and Python 3. IKEv2 and strongSwan, VRFs, FRRouting, STAMP, tc, nftables, step-ca, Containerlab, Prometheus and Alertmanager are taught.

Who this is for

For network engineers who run branch or retail WANs on MPLS and want to build what an SD-WAN does from open parts: IKEv2 tunnels over two carriers with per-device certificates and a post-quantum key exchange, BGP and BFD per segment, a payment segment kept apart end to end, STAMP measurement with per-application steering, QoS that protects calls, and a controller that rolls changes out through a canary and opens new stores with zero touch.

Curriculum

Learning topics (15)
  1. Quenby's stores, data centres and the overlay between them

    This page explains how the lab fits together: which sites and carriers it contains, which component decides what, which way each kind of traffic and information flows, who may change what, and why the design is this way rather than another. The lessons go deeper into each part; this is the map they hang on.

  2. Prepare the lab host, and the ideas the lessons build on

    This lesson does two things. It checks that your Linux host can run the lab, and it recaps the few ideas every later lesson assumes: how Linux decides where a packet goes, what a network namespace and a virtual cable are, and what a certificate chain proves. If these are familiar, skim the recaps and run the checks.

  3. Overlays, transports and what an SD-WAN does

    A branch WAN connects stores to the data centres that run their applications. For twenty years the answer was a private MPLS network from one carrier: the carrier routes Quenby's addresses, keeps traffic apart from other customers', and promises a service level. This lesson explains why that answer stopped being enough, what an overlay is, and how the pieces of a software-defined WAN (SD-WAN) fit together. The rest of the project builds each piece.

  4. IKEv2 in depth: proposals, certificates, ML-KEM, NAT traversal and rekeying

    Every packet between a store and a data centre travels in an IPsec tunnel that IKEv2 built. This lesson explains what IKEv2 negotiates and why each of Quenby's choices was made, reading the strongSwan configuration the controller renders for store 101.

  5. Route-based tunnels and segments: XFRM interfaces, VRFs and filters

    IKEv2 creates the Child SAs. This lesson explains how packets get into them, how two networks (corporate and payments) share the same tunnels without ever meeting, and how the filters at each boundary prove it.

  6. Routing over the overlay: BGP and BFD per segment

    The tunnels exist; something must tell each store which networks lie behind which tunnel, and move traffic when a tunnel dies. Quenby uses BGP for the first and BFD for the second, one BGP instance per segment. This lesson assumes you know BGP as an operator (sessions, local preference, route maps); it covers what is specific to running it over an overlay.

  7. Device identity: enrolment, renewal and revocation with step-ca and OCSP

    Every tunnel and every conversation with the controller rests on one question: is this really store 101's router? This lesson explains how a router gets an identity, keeps it fresh, and loses it when it is stolen, and why the revocation check uses OCSP after the lab found that CRLs would not work.

  8. Measuring paths with STAMP: delay, jitter and loss each way

    To steer an application away from a bad path, the store must know, all the time, how each of its four paths is performing. This lesson explains what to measure, how STAMP measures it, and the choices behind the numbers the agent reports.

  9. Steering applications: service levels, hysteresis and policy rules

    BGP picks one best route per destination for everything. A store does better than that: it picks a path per application class, using the measurements from the last lesson. This lesson covers how the agent decides, how it avoids flapping between paths, how the decision becomes a Linux policy rule, and how the hub sends replies back the same way.

  10. Quality of service: marking, shaping and queues on an encrypted WAN

    Steering picks a good path. It cannot help when every path is busy: a store on broadband only, a backup filling the 10 Mbit/s upload, and a call trying to get through. This lesson shows where the queue really forms, how Quenby moves it to a place where priority works, and how classes survive encryption.

  11. The controller: intent, rendering and bundles over mutual TLS

    Nobody configures a Quenby router. The network is described once, as intent; the controller turns intent into each router's complete configuration and hands it out; each router fetches its own. This lesson follows a change from the intent file to a router's running configuration.

  12. Safe rollouts: waves, health checks and automatic restore

    A controller that can change every router at once can also break every router at once. This lesson covers how a change reaches the network in waves, how each router decides for itself whether a change worked, what happens when it did not, and why a mistake that passes validation still never reaches more than one store.

  13. Zero-touch provisioning: a new store from a bootstrap file

    Quenby opens a few stores a year and replaces broken routers more often. The person who plugs in the router is a shop-fitter, not a network engineer. This lesson follows store 104 from an empty router to its first card payment, and shows what the installer handles, what the router works out for itself, and why none of it can be abused.

  14. Monitoring the WAN: metrics, alerting rules and runbooks

    A WAN that moves traffic by itself must also say what it did and why. This lesson covers what each agent and the controller export, the alerting rules built on them, how the rules are tested, and how an alert reaches the on-call engineer.

  15. Security, operations, and what production adds

    The earlier lessons each built one mechanism. This one looks at the whole design from two angles: an attacker's, and the on-call engineer's. It closes with what a production network adds that the lab leaves out.

Practical build steps (7)
  1. Prepare the lab host

    Starting point: a copy of the project and a Linux host. Finishing point: a host that can run the lab, and the static checks passing.

  2. Create Quenby's CA and bring the network up

    Starting point: a host that passed the static checks. Finishing point: Quenby's CA created offline, every router enrolled with its own certificate, and the controller reporting all five routers healthy on revision 1.

  3. Check the overlay, the segments and the steady state

    Starting point: every router healthy on revision 1. Finishing point: you have confirmed, on the running network, each promise the design makes before anything fails: every tunnel and session up with the post-quantum key exchange, store 103 working through NAT, rekeying without loss, the segments' boundaries, and voice marked and on its preferred path.

  4. Break the paths

    Starting point: the overlay checked; voice and transactions on North MPLS at every store. Finishing point: four failures survived, each measured: a brownout that routing cannot see, a line that fails outright, a whole data centre lost, and a backup filling a store's only line during a call.

  5. Shut out a stolen router, open a store and renew a certificate

    Starting point: the steering drills passed; every line restored. Finishing point: store 102's stolen router shut out and a replacement connected; store 104 opened from a bootstrap file; store 101's certificate renewed during a call without losing a packet.

  6. Make a change, and watch a bad one stop at the canary

    Starting point: the identity drills passed; store 104 in the network. Finishing point: a change of your own planned, rolled out through four waves and audited; a bad change stopped at the canary, restored by the canary itself, and paged.

  7. Remove the lab

    Starting point: any point in the project, including after a failed step. Finishing point: no lab container, network or generated file left on the host; the lab's PKI destroyed with it.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

Runs entirely on a Linux host you provide; the project itself has no cloud resources. If that host is a cloud virtual machine, its provider bills it by the hour from creation until you delete it. Cleanup removes everything the lab created on the host; deleting a cloud instance is your last step.

Licence and completion

Vectametric Project Source Licence (2026-09-27): personal learning, modification/deployment and attributed portfolio/interview demonstrations are permitted. Lawfully obtained copies remain usable after online access expires. Do not redistribute original source or the Source Pack; commercial/client production use requires separate permission. Third-party terms remain separate. See included LICENSE.txt and the Project Source Licence section of the site Terms.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy