P2P Module

Overview

Diarkis P2P enables user devices to communicate directly without using a server as an intermediary.

The Diarkis server cluster functions as a client discovery point by utilizing NAT traversal technology.

In peer-to-peer communication, the server does not intervene in each packet exchange, allowing client devices to minimize network latency.

Diarkis P2P supports only the UDP network protocol and has a proprietary implementation of RUDP (Reliable UDP) to ensure packet delivery and order.

All packets exchanged between connected devices are encrypted, with encryption keys unique to the connection between the devices, ensuring secure communication.

Mechanism

Peer-to-peer communication requires two steps. First, clients exchange their addresses and perform hole punching. Once hole punching is successful, clients can send and receive packets directly.

Fallback to Server Relay

Due to the unique architecture of Diarkis P2P, client devices can maintain a connection with the Diarkis server cluster. This allows communication to fall back from peer-to-peer to server relay if a peer-to-peer connection cannot be established, ensuring all users can continue communicating regardless of network configurations.

Last updated