Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
#radBIOS: Shouting a database across the room
Search
Richo Healey
July 19, 2014
Programming
0
400
#radBIOS: Shouting a database across the room
My #hopex talk about moving databases about using audio.
Code is at github.com/richo/groundstation
Richo Healey
July 19, 2014
Tweet
Share
More Decks by Richo Healey
See All by Richo Healey
rust-greatfet
richo
1
700
unrubby
richo
0
350
reverse reverse engineering
richo
0
940
Hacking Electric Skateboards: Vehicle Research for Mortals
richo
1
260
radBIOS: Bsides LV
richo
0
1.2k
How compilers got less terrible
richo
1
100
building a hipster catapult, or how2own your skateboard
richo
0
1.9k
Debugging with and haxing on Voltron
richo
0
260
Other Decks in Programming
See All in Programming
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
320
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
EventSourcingの理想と現実
wenas
6
2.3k
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
Jakarta EE meets AI
ivargrimstad
0
130
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.4k
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
120
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
Arm移行タイムアタック
qnighy
0
310
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
50
7.2k
A Tale of Four Properties
chriscoyier
156
23k
Done Done
chrislema
181
16k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Bash Introduction
62gerente
608
210k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Building an army of robots
kneath
302
43k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Scaling GitHub
holman
458
140k
Transcript
#radBIOS Yelling a database across the room
Richo Healey
Richo Healey •Rich - OH!
Richo Healey •Computer security guy •Into distributed systems •Pretty keen
on ducks •Rich - OH!
Flat ducks are best ducks Find me at LobbyCon and
ask me more ;)
#radBIOS
#radBIOS
None
None
Groundstation •Distributed Graph Database •Content Addressable •Eagerly distributed
Groundstation •Originally just scratching an itch •Project Byzantium uses it
as a distributed bulletin board
Demo Time!
Demo Time! (This is very probably going to fail)
Let’s talk about DAGs
Let’s talk about DAGs
Traditional DAG Source of truth is here Root of the
graph is here
Source of truth is the set of these points
Source of truth is the set of these points This
sucks for things like code. It’s pretty great when human beings will be processing it.
(I am very bad at design)
None
None
None
None
Architecture •protocol driver •object graph •transport driver
Protocol Driver •Presentation layer •Examples: •Git •Markdown threads •Marketplace
Object Graph RootObject(s) UpdateObject(s) Gref Tips
Transport Driver •TCP/UDP Hybrid Homogenousish link layer network
Transport Driver •Shriek UDP Broadcast to find new friends Homogenousish
link layer network
Transport Driver •Then communicate with them Homogenousish link layer network
Distributing data •“Give everyone everything” •Nodes aggressively hand over all
the data they know about. •The idea is to build up a coherent knowledge graph.
Demo Time!
Practical Applications •Disaster affected regions •Never underestimate the bandwidth of
a station wagon full of tapes •Office comms (“It’s all git”)
Other applications •Message boards •Locality driven marketplaces •Painless sneakernets
Transport Drivers •All assume physical proximity •Internet routing was actually
an afterthought •Wireless was easy and practical •Needing an 802.11 stack kinda sucks though…
So let’s talk about airgaps
None
Quietnet •Amazing project from Katee •Easy enough for a non
radio person to understand •Not hugely fault tolerant •Easy to hack on and embed!
Let's talk about encoding •need to turn some information into
a bitstream •existing schemes like PSK31
psk 31
Error Correcting Codes 000000 101001 110110 011111
Unambiguous Encapsulation •Ossmann and Spill’s work from Shmoocon this year
•Defends against packet in packet •Also makes this kind of absurd FSK madness approachable •Cheap way to add fault tolerance
Unambiguous ECC 000000 101001 110110 011111
Here begins the fail talk.... •Groundstation's TCP driver is full
duplex •"I'll just redo it with audio" •Turns out audio is hard
Echo - Response •Repeat a tone until your peer repeats
•Alternate codes to allow for repeated characters •Better schemes exist •This is easy to debug
Audio isn’t binary though! •Missed bits can still be reasoned
about •Ternary state for bits: 1, 0 _ •Let hamming soak up bits we miss
alltheFSKs •Quietnet has serious limitations •Some guy published a library!
Still no dice! •Audio is *still* hard
Demo Time!
Womp Womp
None
Should I use this? •Groundstation? Yeah maybe •#radBIOS? Probably not
•"fuck you I'll do it anyway"? AWESOME
Instead: •github.com:kamalmostafa/ minimodem •linux has an ax25 driver in the
tree •soundmodem module for linux
Thanks! •Dominic Spill + Michael Ossmann •Katee •Mark Jessop
More info: •twitter: @rich0H •groundstation: github.com/richo/groundstation •quietnet: github.com/katee/quietnet •alltheFSKs: github.com/darksidelemm/alltheFSKs
•byzantium: project-byzantium.org
•Questions? •Comments? •Duck Jokes?