GitHub (mirror): https://github.com/saphalpdyl/Maeto
Forgejo instance (issues & planning): https://git.saphal.me/saphalpdyl/Maeto
Small writeups about Maeto: https://blogs.saphal.me/tags/maeto/
---
About 5 months ago, I was tracking osvbng, a vBNG built on VPP. It was mentioned by folks on my previous Show HN, and I saw maintainers talk about Segment Routing support for it. Four months ago, I happened to be in a conversation about SD-WANs (Software-Defined WAN), and it got me thinking about Segment Routing again. So, I started Maeto that evening to learn about traffic engineering.
Maeto intends to be a complete SD-WAN platform: covering everything from the customer edge all the way up to the controller. It draws inspiration from Cato Networks and Google's B4. While initially designed to be a small complete lab, it exploded in scope as things got more and more interesting. And honestly, I'm having a blast.
I just finished implementing high availability (HA) and CE dual-homing. Locally, core detection runs at <50ms and CE (Customer Edge) detection runs at ~300ms (deliberate design since CE-PE edge over public internet). Though in the lab, you may see slightly higher numbers due to softirq saturation because of the random traffic being generated in the background.
Mostly written in Go. Frontend is Elixir Phoenix LiveView (live state is easier there), with C for FRR patches and Python for topology generation. The dashboard is laptop-sized; it's not usable on phones yet. While built with production circumstances in mind, it is far from being production-ready, and will remain a hobby project.
I've got classes and finals coming up. So, I'm presenting this early. I hope I'm allowed to post an update on it in 5-6 months when much cooler things are in place :D
---
Recommended simulation steps if YOU JUST WANNA SEE IT WORK:
- Ideally have 2 tabs of Maeto opened.
- In one of the tabs, go to Operations > Simulator. On stories, run the "PeSLC goes down" story.
- Watch the link-down detection, PLR indicators, and ping loss being <800ms.
---
Known limitations:
- It is emulated. Each node shares the same kernel performing multiple veth hops, encrypt/decrypt, encap/decap per-packet. So, the numbers are not representative and underestimate the performance if it were on dedicated hardware. Performance primarily tanks due to ksoftirq saturation.
- No internet breakout. So, it only supports site-site connections.
- TI-LFA is in the controller and is implemented in its most basic form (more in FAQ). - Only egress protection is implemented, and core P-P links are controller-protected, not local (more in FAQ).
A few questions:
- Maeto does color-based steering (SR policies), and polices bandwidth based on its color. Policing is harsh. It would be ideal for the CE to shape that traffic. This means the classification has to run in the CPE (it runs in PE today). It is just DSCP->color today, but in the future, we may want DPI to classify packets which are not marked. In that case, would it be reasonable to have DPI being done on the CPE which, from my understanding, are light low-compute boxes?
- How do operators tune BFD timers on edges that run on public internet transit (CE-PE edge)? I understand that static timers would be bad when propagation delay may vary. One way I can think of is observing a baseline delay and dynamically tuning BFD based on that?
I answer some of the questions readers may have at https://github.com/saphalpdyl/Maeto#faqs . I would appreciate comments, questions, answers, or feedback from people with operational experience or people who are just curious :)