forked from nspcc-dev/neofs-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nspcc-dev#37] storage: Add multiaddress format
Signed-off-by: Pavel Karpy <[email protected]>
- Loading branch information
1 parent
932a395
commit c9aca63
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
\newpage | ||
# Storage Nodes | ||
|
||
## Address format | ||
|
||
NeoFS uses \Gls{MultiAddr} format in a human-readable string version as a Node address in `netmap`. Any new node must provide correct \Gls{MultiAddr} on bootstrap stage. After bootstrap, addresses are verified by `IR` before new Node is a part of `netmap`. | ||
|
||
Correct address *composition* and *order*: | ||
|
||
1. Network layer(`dns4`, `ip4` or `ip6`); | ||
2. Transport layer(`tcp`); | ||
3. Presentation layer(`tls`) - optional, may be absent. | ||
|
||
### Examples: | ||
|
||
#### Correct | ||
- `/dns4/somehost/tcp/80/tls`; | ||
- `/ip4/1.2.3.4/tcp/80`. | ||
|
||
#### Incorrect | ||
- `/tcp/80/ip4/1.2.3.4`; | ||
- `/tls/ip4/1.2.3.4/tcp/80`; | ||
- `/ip4/1.2.3.4/dns4/somehost/tcp/80`. |