Slide 1

Slide 1 text

ipfs.io @IPFSbot Juan Benet @juanbenet 2015-04-25 The Permanent Web

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

1. Why - The Problems! 2. How - The Overview 3. What - The Demo

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Location Addressing

Slide 10

Slide 10 text

http://10.20.30.40/foo/bar/baz.png location path http://example.com/foo/bar/baz.png

Slide 11

Slide 11 text

http://10.20.30.40/foo/bar/baz.png you

Slide 12

Slide 12 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you

Slide 13

Slide 13 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you

Slide 14

Slide 14 text

Bandwidth Latency Offline Security Permanence Multiple Devices Data Sovereignty … PROBLEMS

Slide 15

Slide 15 text

Bandwidth & Latency

Slide 16

Slide 16 text

https://www.flickr.com/photos/powerchu/1695143481/

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

1MB

Slide 21

Slide 21 text

1MB x 8 = 8 MB

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

30

Slide 24

Slide 24 text

30 x 1MB x 8 = 240 MB

Slide 25

Slide 25 text

https://

Slide 26

Slide 26 text

200 MB

Slide 27

Slide 27 text

200 MB x 30 x 8 = 48 GB

Slide 28

Slide 28 text

Online vs Offline

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

surprise oppression

Slide 36

Slide 36 text

Permanence

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

1. IPFS?

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

1. Why - The Problems! 2. How - The Overview 3. What - The Demo

Slide 52

Slide 52 text

1. Motivation

Slide 53

Slide 53 text

Content Addressing 1. Motivation

Slide 54

Slide 54 text

http://10.20.30.40/foo/bar/baz.png location path http://example.com/foo/bar/baz.png 1. Motivation

Slide 55

Slide 55 text

http:// location path http:// 1. Motivation /ipns/example.com/foo/bar/baz.png /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png content path

Slide 56

Slide 56 text

http://10.20.30.40/foo/bar/baz.png you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png

Slide 57

Slide 57 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png HTTP

Slide 58

Slide 58 text

http://10.20.30.40/foo/bar/baz.png 10.20.30.40 you 1. Motivation /ipfs/QmW98pJrc6FZ6/foo/bar/baz.png IPFS

Slide 59

Slide 59 text

1. Motivation p2p distribution /ipfs/

Slide 60

Slide 60 text

1. Motivation p2p distribution /ipfs/

Slide 61

Slide 61 text

a new hypermedia distribution protocol The Permanent Web 2. Overview

Slide 62

Slide 62 text

web 2. Overview

Slide 63

Slide 63 text

SFS web DHT + 2. Overview

Slide 64

Slide 64 text

SFS web DHT 2. Overview routing network exchange merkledag naming applications

Slide 65

Slide 65 text

merkledag 2. Overview the model IPFS nodes

Slide 66

Slide 66 text

merkledag 2. Overview the model IPFS nodes (content) (programs)

Slide 67

Slide 67 text

in IPFS data forms a dag 2. Overview

Slide 68

Slide 68 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! 1 3 5 2 4 suppose links:

Slide 69

Slide 69 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 70

Slide 70 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 71

Slide 71 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 72

Slide 72 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 73

Slide 73 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 74

Slide 74 text

can resolve unix-style paths across dag links 2. Overview QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz QmbTQmPMEFgh 1020 biff this node has some data… this node also has some data. but no links! suppose H(<1>) = QmW98pJrc6FZ We can resolve: /ipfs/QmW98pJrc6FZ as 1 /ipfs/QmW98pJrc6FZ/foo as 2 /ipfs/QmW98pJrc6FZ/bar as 3 /ipfs/QmW98pJrc6FZ/foo/biff as 3 /ipfs/QmW98pJrc6FZ/baz as 4 1 3 5 1 2 2 3 4 4 3 suppose links: 1

Slide 75

Slide 75 text

any data structures are represented as dags 2. Overview

Slide 76

Slide 76 text

2. Overview unix files and dirs any data structures are represented as dags

Slide 77

Slide 77 text

blob, tree, commit unix files and dirs any data structures are represented as dags 2. Overview

Slide 78

Slide 78 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets 2. Overview

Slide 79

Slide 79 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets kv-stores 2. Overview

Slide 80

Slide 80 text

blob, tree, commit unix files and dirs any data structures are represented as dags blocks, txns, wallets kv-stores 2. Overview

Slide 81

Slide 81 text

unixfs as a dag 2. Overview

Slide 82

Slide 82 text

files are dag nodes unixfs as a dag 2. Overview

Slide 83

Slide 83 text

files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 84

Slide 84 text

directories are also dag nodes files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 85

Slide 85 text

which link to others directories are also dag nodes files are dag nodes BIG files may be split into many unixfs as a dag 2. Overview

Slide 86

Slide 86 text

ipfs paths /ipfs//

Slide 87

Slide 87 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt

Slide 88

Slide 88 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt XLYkgq61DYaQ8Nhk

Slide 89

Slide 89 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1

Slide 90

Slide 90 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1

Slide 91

Slide 91 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 aCpDMGvV2BGHeYER

Slide 92

Slide 92 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 bar.txt UEnRQAw aCpDMGvV2BGHeYER data2

Slide 93

Slide 93 text

ipfs paths /ipfs// /ipfs/XLYkgq61DYaQ8Nhk/foo/bar.txt foo aCpDMGv XLYkgq61DYaQ8Nhk data1 bar.txt UEnRQAw aCpDMGvV2BGHeYER data2 UEnRQAwe3N8SzbUt data3

Slide 94

Slide 94 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15

Slide 95

Slide 95 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1

Slide 96

Slide 96 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1

Slide 97

Slide 97 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 parent

Slide 98

Slide 98 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 parent

Slide 99

Slide 99 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 parent 14

Slide 100

Slide 100 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 parent 14

Slide 101

Slide 101 text

ipfs paths: blockchain /ipfs/XLYkgq61DYaQ8Nhk/parent/tx/15 parent XLYkgq61DYaQ8Nhk data1 tx data2 data3 15 data4 input0 parent 14 output0

Slide 102

Slide 102 text

in IPFS data forms a dag it’s called the merkle dag because the links are hashes 2. Overview

Slide 103

Slide 103 text

in IPFS data forms a dag it’s called the merkle dag because the links are hashes 2. Overview

Slide 104

Slide 104 text

content addressing merkle dag linking routing pki namespace concepts

Slide 105

Slide 105 text

merkle tree

Slide 106

Slide 106 text

git objects

Slide 107

Slide 107 text

blockchain

Slide 108

Slide 108 text

merkle dags

Slide 109

Slide 109 text

in IPFS data forms a dag nodes have links and data [ (hash, size, name), … ] QmbTJW4iGGBS 3987 foo QmbTQmPMEFgh 1020 bar QmZFJguywFUY 6787 baz anything you want []byte links data 2. Overview

Slide 110

Slide 110 text

an IPFS node 2. Overview

Slide 111

Slide 111 text

has pki based identity an IPFS node 2. Overview

Slide 112

Slide 112 text

has pki based identity connects to others an IPFS node 2. Overview

Slide 113

Slide 113 text

can store part of the dag has pki based identity connects to others an IPFS node 2. Overview

Slide 114

Slide 114 text

has pki based identity connects to others can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 115

Slide 115 text

has pki based identity connects to others can be run as a server can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 116

Slide 116 text

has pki based identity connects to others can be run as a server or embedded in apps app
 
 can get more from peers an IPFS node can store part of the dag 2. Overview

Slide 117

Slide 117 text

2. Overview IPFS nodes form p2p networks transport agnostic and with NAT traversal

Slide 118

Slide 118 text

2. Overview IPFS nodes form p2p networks transport agnostic and with NAT traversal

Slide 119

Slide 119 text

they find each other and content with routing systems, like DHTs 2. Overview

Slide 120

Slide 120 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 121

Slide 121 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 122

Slide 122 text

and exchange dag nodes like files in http or bittorrent 2. Overview

Slide 123

Slide 123 text

1. Why - The Problems! 2. How - The Overview 3. What - The Demo - install - run a node - stream media - publish website - boot a vm

Slide 124

Slide 124 text

3 ways to install IPFS 1. npm install -g go-ipfs 2. go get github.com/ipfs/go-ipfs/cmd/ipfs 3. install packages on the website

Slide 125

Slide 125 text

ipfs.io

Slide 126

Slide 126 text

ipfs.io

Slide 127

Slide 127 text

in go-ipfs:

Slide 128

Slide 128 text

in go-ipfs: ipfs node

Slide 129

Slide 129 text

in go-ipfs: ipfs node cli

Slide 130

Slide 130 text

in go-ipfs: ipfs node cli library

Slide 131

Slide 131 text

in go-ipfs: ipfs node cli library http api

Slide 132

Slide 132 text

in go-ipfs: ipfs node cli library http api http/ipfs gateway

Slide 133

Slide 133 text

in go-ipfs: ipfs node cli library http api http/ipfs gateway webui

Slide 134

Slide 134 text

in go-ipfs: ipfs node cli library http api http/ipfs gateway webui DEMO

Slide 135

Slide 135 text

No content

Slide 136

Slide 136 text

a new hypermedia distribution protocol The Permanent Web

Slide 137

Slide 137 text

#ipfs on