Skip to content

teonet description

Kirill Scherba edited this page May 24, 2018 · 1 revision

Teonet library description

version 0.1.0

Teonet library is UNIX based communication C Library to create network / cloud transport. Teonet library uses UDP to communicate between its network peers. There UDP packets are encrypted with unique keys. Teonet library uses own UDP based protocol called TR-UDP for real time communications that allows sending messages with low latency and provides protocol reliability features.

The main Teonet library capabilities:

  • P2P: In main network schema all Teonet peers are connected point to point. The communication between peers are going without central server. We need only one peer with dedicated IP called r-host to connect peers to each other.
  • Address: The peers has its own names (simple text name) which is exclusive Teonet network address.
  • Messages: The main users communication protocol is message. The message can be send to any peer by its name and can has any length and format.
  • Reliability: The messages can be reliability or quick send (no reliability).
  • Stream: Messages can be send and received as streams with read / write functions.
  • TCP Proxy: Clients may use TCP Proxy connection type if they can't connect by UDP.
  • VPN:Peers can be connected to own VPN by opening TAP interface at its hosts.
  • Tunnels: Peers can open regular TCP tunnels to other Teonet peers.

Networking with Teonet:

It may be done any number of Teonet networks. Each Teonet network has it's own key. The messages from one network can't be received by another network.

There is three main network structure in Teonet:

Full mesh:

All peers see any peers of the network and are connected point-to-point.

Figure 1
under construction

Network with separate clients:

Clients see main network peer (r-host) by can't see each other.

Figure 2
under construction

Discovery network or friends network:

Clients see main network peer (r-host) and can see known peer but can't see unknown peer.

Figure 3
under construction