File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ editors:
28
28
affiliation :
29
29
name : Protocol Labs
30
30
url : https://protocol.ai/
31
- tags : ['exchange']
31
+ tags : ['exchange', 'routing' ]
32
32
order : 1
33
33
---
34
34
@@ -40,6 +40,8 @@ Bitswap has two primary jobs:
40
40
1 . Attempt to acquire blocks from the network that have been requested by the client.
41
41
2 . Send blocks in its possession to other peers who want them.
42
42
43
+ Secondary job (since [ v1.2.0] ( #bitswap-1-2-0 ) ) is to act as a basic content routing system for querying connected peers.
44
+
43
45
## Introduction
44
46
45
47
Bitswap is a message-based protocol, as opposed to request-response. All messages
@@ -197,6 +199,13 @@ Given that a client *C* wants to fetch data from some server *S*:
197
199
about that particular block. It SHOULD particularly send ` Cancel ` messages for
198
200
` Block ` requests (as opposed to ` Have ` requests) that have not yet been answered.
199
201
202
+ ::: note
203
+
204
+ ` Have ` 's and ` Have ` /` DontHave ` responses enable Bitswap to be used as
205
+ bare-bones content routing system for connected peers.
206
+
207
+ :::
208
+
200
209
### Bitswap 1.2.0: Wire Format
201
210
202
211
``` protobuf
Original file line number Diff line number Diff line change 1
1
---
2
2
title: Exchange
3
3
description: |
4
- Exchange is the way to for sending and receiving content addressed blocks of data.
4
+ Exchange is the way to for sending and receiving content- addressed blocks of data.
5
5
---
6
6
7
7
{% include 'header.html' %}
Original file line number Diff line number Diff line change @@ -82,15 +82,14 @@ <h3><a href="/meta/">Meta</a></h3>
82
82
< section >
83
83
< h3 > < a href ="/routing/ "> Routing</ a > </ h3 >
84
84
< p >
85
- Routing is the way to determine where to find a given CID, Peer, or IPNS Record on the network;
86
- specifically, which network peers provide specific CIDs.
85
+ Routing is the way to determine where to find a given content, peer, or IPNS record.
87
86
</ p >
88
87
{% include 'list.html', posts: collections.routing %}
89
88
</ section >
90
89
< section >
91
90
< h3 > < a href ="/exchange/ "> Exchange</ a > </ h3 >
92
91
< p >
93
- Exchange is the way to for sending and receiving content addressed blocks of data.
92
+ Exchange is the way to for sending and receiving content- addressed blocks of data.
94
93
</ p >
95
94
{% include 'list.html', posts: collections.exchange %}
96
95
</ section >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Delegated Routing V1 HTTP API
3
3
description : >
4
4
Delegated routing is a mechanism for IPFS implementations to use for offloading
5
5
content routing and naming to another process/server. This specification describes
6
- an HTTP API for delegated content routing .
6
+ an HTTP API for delegated routing of content, peers, and IPNS .
7
7
date : 2023-08-31
8
8
maturity : reliable
9
9
editors :
Original file line number Diff line number Diff line change 1
1
---
2
2
title: Routing
3
3
description: |
4
- Routing is the way to determine where to find a given CID, Peer, or IPNS Record on the network;
5
- specifically, which network peers provide specific CIDs.
4
+ Routing is the way to determine where to find a given content, peer, or IPNS record.
6
5
---
7
6
8
7
{% include 'header.html' %}
You can’t perform that action at this time.
0 commit comments