Overlay Subnetworks
Implementation:
Overview
In a multi-blockchain system like TOS, even full nodes would usually be interested in obtaining updates (i.e., new blocks) only around a few shardchains. To this end, a special overlay subnetwork has been built inside the TOS Network, on top of the ADNL Protocol, for each shardchain.
Also, overlay subnetworks are used for the operation of TOS Storage, TOS Proxy and so on.
ADNL vs Overlay networks
In contrast to ADNL, the TOS overlay networks usually do not support sending datagrams to other arbitrary nodes. Instead, some “semi-permanent links” are established between certain nodes (called “neighbors” with respect to the overlay network under consideration) and messages are usually forwarded along these links (i.e. from a node to one of its neighbors).
Each overlay subnetwork has a 256-bit network identifier usually equal to a SHA256 of the description of the overlay network—a TL-serialized object.
Overlay subnetworks can be public or private.
Overlay subnetworks work according to a special gossip protocol.
Read more about overlays in Overlay subnetworks article, or in Chapter 3.3 of the TOS Whitepaper.