I’m designing and building out a client/server that can handle layer 3 internet traffic through what looks like MIDI.
Why? The problems are fun - MIDI was originally designed as a serial connection protocol, and later given an IP format in the form of rtpMIDI.
My constraint is: Get the traffic as close to MIDI like as possible, while concealing that it’s actually encoded network traffic.
I was hoping when I started researching this that I’d find a clever way to hide traffic in notes, and then listen to traffic as music. However, I quickly uncovered SysEx packets and they’re the lowest hanging fruit. I cover them in detail here: Theoretical Goodput.
My current idea for this is:
- Use note packets for smaller traffic (TCP acks, DNS, etc) and use SysEx traffic for larger transfers.
- Model existing MIDI 2.0 traffic and release traffic through MIDI as allowed by that hypothetical model.
- Use a local QoS program to filter out lesser important traffic for the same of maintaining the facade.
I’ve chosen GO for this, as it’s built for this sort of quick iterations while remaining fast. It also has Wintun bindings for modifying layer 3 traffic so I can test on Windows machines, and as GO builds to machine code, it’s simple to integrate with a frontend stack when I get there.
Researching:
- InitialisingOurSession
- TheoreticalGoodput
- Modelling Traffic Output / QoS for strategically dropping traffic (desirable)