From bb279a22acb3635367680b7967d7970290991835 Mon Sep 17 00:00:00 2001 From: lamafab <42901763+lamafab@users.noreply.github.com> Date: Wed, 3 Feb 2021 13:55:00 +0100 Subject: [PATCH] mention protocol type for each substream --- host-spec/c04-networking.tm | 39 ++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/host-spec/c04-networking.tm b/host-spec/c04-networking.tm index fe1fcf332..97e70f48a 100644 --- a/host-spec/c04-networking.tm +++ b/host-spec/c04-networking.tm @@ -119,7 +119,7 @@ Section . - + Polkadot nodes connect to peers by establishing a TCP connection. Once established, the node initiates a handshake with the remote peer's on the @@ -128,7 +128,9 @@ as described by the , either by the local or remote node. - The Polkadot node supports two types of substream protocols: + The Polkadot node supports two types of substream protocols. Section + describes the usage of each type in + more detail: <\itemize-dot> : After the protocol is @@ -239,38 +241,46 @@ , where each protocol servers a specific utility. - The Polkadot Host uses multiple substreams, each having a specific purpose: + The Polkadot Host uses multiple substreams, where its usage depends on a + specific purpose. Each substream is either a or a , as described in Section + . <\itemize> - Open a substream to a peer and initialize a ping to verify if a connection is till alive. If the peer - does not respond, the connection is dropped. + does not respond, the connection is dropped. This is a + . - Open a substream to a peer to ask - information about that peer. + information about that peer. This is a . - Open a substream for Kademlia - requests. + requests. This is a , + as defined by the standard. <\itemize> - a request and response protocol that - allows the Polkadot Host to perform information about blocks. + allows the Polkadot Host to perform information about blocks. This is a + . - a request and response protocol that - allows a light client to request information about the state. + allows a light client to request information about the state. This is a + . - a substream/notification protocol - which sends transactions to connected peers. + which sends transactions to connected peers. This is a . - a substream/notification - protocol which sends blocks to connected peers. + protocol which sends blocks to connected peers. This is a + . - a substream/notification - protocol which sends GRANDPA votes to connected peers. .> + protocol which sends GRANDPA votes to connected peers. This is a + . .> : the prefixes on those substreams are known @@ -525,6 +535,7 @@ > > > + > > > >