~/talk

DOS Defense - Do’s and Don’ts

Talkat IPFS Camp 2022 - Libp2p Day · on Sunday, 2022-10-30· [security, networking]
name:Max Inden
links:none on file
slides:none on file

Argues that the concrete defense is to bound everything and apply back pressure not silent drops, with concrete failure modes: a malicious length prefix that never finishes a read and hangs a coroutine, declaring terabyte sizes to force huge allocations, spawning unbounded goroutines/tasks from channels and pushing into unbounded vectors to exhaust memory, and breaking producer consumer flow. Recommends timeouts, limits per connection, one task per connection, bounded channels or external throttles, and points to libp2p/gossipsub scoring and Rust libp2p guidelines.

AI-written summary · about

  1. 0:00Introduction to DOS defense
  2. 1:29Why DOS attacks are hard
  3. 2:33Bound everything to prevent attacks
  4. 3:56Back pressure explained
  5. 4:40Code examples and pitfalls
  6. 7:12Unbounded channels risks
  7. 8:36Language-specific channel issues
  8. 9:39General unbounded resource risks
  9. 10:01Call to action: use back pressure
  10. 10:25Q&A on P2P and DOS defense
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.