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
480
#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
800
unrubby
richo
0
440
reverse reverse engineering
richo
0
1.1k
Hacking Electric Skateboards: Vehicle Research for Mortals
richo
1
300
radBIOS: Bsides LV
richo
0
1.3k
How compilers got less terrible
richo
1
130
building a hipster catapult, or how2own your skateboard
richo
0
2.1k
Debugging with and haxing on Voltron
richo
0
300
Other Decks in Programming
See All in Programming
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
180
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.5k
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
950
PHPで TLSのプロトコルを実装してみる
higaki_program
0
420
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.7k
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
290
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
270
Windows on Ryzen and I
seosoft
0
360
OTP を自動で入力する裏技
megabitsenmzq
0
120
Codex の「自走力」を高める
yorifuji
0
1.3k
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
160
Ruby and LLM Ecosystem 2nd
koic
1
1.3k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Designing for Performance
lara
611
70k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
140
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
86
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
Faster Mobile Websites
deanohume
310
31k
Automating Front-end Workflow
addyosmani
1370
200k
GitHub's CSS Performance
jonrohan
1032
470k
The Cult of Friendly URLs
andyhume
79
6.8k
Amusing Abliteration
ianozsvald
0
140
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
130
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?