Hi all, I've been building Maeto for 4 months as a side-project to tinker around with Segment Routing over IPv6. While initially designed to be a small complete lab, it exploded in scope as things got more and more interesting. I've hosted a live demo instance where you can watch and break it. I've got interesting features like dual-homing and HA failover in-progress, but school and holidays would have deferred the demo by a lot. So, I'm showcasing what I've got right now. It's mainly written in Go. Frontend is in Elixir Phoenix Liveview. Some C for custom FRR modules. And, python for scripting and topology generators. While the intention was to build it production-like, it is far from being production-like. It will remain a hobby project for the entirety of its existence. Demo: https://maeto.saphal.me GitHub: https://github.com/saphalpdyl/maeto Small writeups about Maeto: https://blogs.saphal.me/tags/maeto/ Forgejo instance (where I plan and maintain issues): https://git.saphal.me/saphalpdyl/Maeto --- What can you do in the demo: Clicking on a node or a link in TOPOLOGY displays information about the element on the inspector. Operations > Simulator contains the section where you can inject faults or run scenarios. Operations > Changes shows the PCE's last 64 decisions (hold down, gated, reroutes). Drilldown displays passive telemetry of a given PoP/PE. Fabric > Links displays link-level details, their cost values used by the PCE, bandwidth reserved on them etc. Routing > Computed paths shows computed paths of tenants between different pairs. Recommended simulation steps if you just wanna see it work: - Ideally have 2 tabs of Maeto opened - Go to Routing > Computed paths and select DEN -> LAX of tenant 518 - In another tab, go to Operations > Simulator. On stories, run the fiber cut on LAX-DEN story. - Watch the link-down detection and reroute for DEN -> LAX path on the previous tab. ----- More description if you're interested ---- What it does currently: - L3VPN over IS-IS/SRv6 PoP mesh; each PoP is a linux container with network namespaces running an FRR instance, maeto's agent, and Strongswan. Currently, it only supports site-site connections with no egress to outer internet. - Central "PCE" that computes per-class SR policies based on weighted jitter/loss/latency objectives and bandwidth reservation constraint. Basic hysteresis and hold-down timers to prevent reroute churn. - One-way STAMP (RFC 8762/9503) probes between PoPs to measure latency and derive jitter and loss. Passive telemetry is present (interface counters) but are for display in the UI only. The issue to aggregate a PoP's utilization itself as a node in the graph during path computation is a TO-DO. - BFD (RFC 5880) with FRR's bfdd offloaded to eBPF/XDP detects link-down and triggers immediate recompute in the "PCE". The offload was to prevent false positives due to ksoftirq saturation in the kernel when running high numbers of iperf3 sessions: a finding from my previous vBNG project. - Level-triggered reconciliation (k8s-style). I've been writing PCE with quotation marks because I do not strictly follow PCEP (RFC 5440). Main reason being FRR's pathd (which implements PCEP) support for SRv6 was thin. Second reason was that I did not like PCEP's send deltas and resync from time to time model. And, I find writing reconcilers fun. - CEs (running maeto's portal daemon) attach over IKEv2 via Strongswan managed by maeto's agent through VICI protocol. What I'm working on: - PE Dual homing & Egress protection: I'm implementing draft-ietf-rtgwg-srv6-egress-protection. Each PE has a protector node that replicates standby routes of the protected PE. On failure, the PLR (Point of Local Repair) encapsulates packets into an IPv6 packet with a mirror SID (End.M from the draft) that routes to the protector node. On Linux, End.M can be emulated through End.DT6. - Repair path to the protector: To build the repair list, it needs TI-LFA, which FRR does not implement for SRv6. I'm picking up an open PR, https://github.com/FRRouting/frr/pull/20348 which implements SRv6 TI-LFA for FRR, with the author's okay. Meanwhile, the hacky solution would be to let the controller compute the backup with the protected egress and its links pruned from the graph. - The PEs police the traffic based on the reserved bandwidth of a specific traffic class of a specific site behind the PE. Classification happens through DSCP. Nftables rule map DSCP values to the kernel's fwmark. While policing was easy to implement, the shaping (which needs to be done at egress i.e. the CE) has been an open-ended question. Later, Maeto intends to derive traffic classes through DPI (likely nDPI for Linux) + DSCP. Would it make sense to run DPI on the CE to classify traffic class and shape traffic? I do intend for the project to do some actual SASE-like DPI, and think it should be done on the PE due to compute and security reasons. Feedback is welcome! I'd love to get some opinions/feedbacks on my design if you've worked with SRv6 or have engineered SD-WANs. Thanks, Saphal Poudyal