Loading
Lee Jaeho
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
Peer2Peer
The Modular peer-to-peer networking stack
Libp2p
Transport
Discovery
Crypto/Security
Stream
Multiplex
NAT Traverse
Connection upgrade
MultiAddr.
etc...
Peer
Peer
Peer
DISCOVER!
Peer
Peer
DISCOVER!
Dial
Peer
Peer
DISCOVER!
Dial
Handle
Peer
Peer
DISCOVER!
Dial
Handle
Connection
TCP: 218.102.40.127 ???
UDP???
IP6?????
webSocket??????
running out of IPv4 addresses
/ip4/127.0.0.1/udp/9090/quic
/ip6/::1/tcp/3217
/ip4/127.0.0.1/tcp/80/http/baz.jpg
/dns4/foo.com/tcp/80/http/bar/baz.jpg
/dns6/foo.com/tcp/443/https
/ip4/210.43.7.11/udp/9090/quic/peerA
Peer A
Peer B
Peer C
/ip4/176.21.8.43/udp/9090/quic/peerB
/dns4/star-signal.cloud.ipfs.team/wss/p2p-webrtc-star/ipfs/peerB
.....
/ip4/16.240.10.5/tcp/15555/wss/p2p-webrtc-star/ipfs/peerC
libp2p is transport agnostic.
Many popular protocols are available, including TCP, WebRTC, Web Sockets, and UDP
browser
node
browser node
webRTC
Star
1.offer
2.offer
4.answer
3.answer
5.establish dataChannel
browser
node
browser node
webRTC
Star
webRTC
Star
webRTC
Star
browser
node
browser
node
browser
node
browser
node
browser node
webRTC
Star
webRTC
Star
webRTC
Star
browser
node
browser
node
browser
node
FAIL!!
browser
node
browser node
webRTC
Star
webRTC
Star
webRTC
Star
browser
node
browser
node
browser
node
FAIL!!
FAIL!!
browser
node
browser node
webRTC
Star
webRTC
Star
webRTC
Star
browser
node
browser
node
browser
node
FAIL!!
OK!!
peer discovery
FAIL!!
$ npm install -g libp2p-webrtc-star
$ star-signal --port 12345
Listening on: http://0.0.0.0:12345