What is P2P technology that easily builds a secure and private data communication environment [Architecture]
December 24, 2024
Have you ever wanted to be able to access your home from anywhere using your smartphone or computer? "Tuunel App" is a free service that allows you to safely and easily build such an environment. In this article, I would like to introduce the mechanism and technology that makes such "Tuunel App" possible.
The P2P technology of "Tuunel App" is explained below, including this article.
"Tuunel App" easily builds a secure private network environment with unique P2P technology between smartphones, PCs, etc., and enables data communication between client and server apps on different networks.
P2P infrastructure architecture
The P2P infrastructure architecture consists of the Proxy Server Layer that handles data communication with apps on the device side, and the Relay Server Layer that connects data communication between Proxy Server Layers.
The Proxy Server Layer has a Forward Proxy function that receives request data from the client application, and a Reverse Proxy function that sends the request data received from the client application to the server application. Data communication with the app supports TCP and UDP.
Data communication flow
Before starting data communication, the Reverse Proxy connects(1) to the Relay Server and waits for the request data received from the Forward Proxy to be piped.
The client app connects(2) to the Forward Proxy and sends the request data to the server app. The Forward Proxy connects(3) to the Relay Server, encrypts the request data received from the client application, and sends it. At that time, the Forward Proxy also sends the device ID of the Reverse Proxy to which it is piped and the connection information of the server application.
The Relay Server pipes(4) to the received target device ID of the Reverse Proxy to which it is connected, and further sends the received encrypted data and connection destination information of the server application to the Reverse Proxy.
The Reverse Proxy decrypts the received encrypted data into the original request data, connects(5) to the server application based on the received connection information, and sends the original request data. Response data from the server app is sent to the client app through a series of connection response paths.
In the next article, I will explain the Security in P2P technology of "Tuunel App".
Until the end Thank you for reading! If you have any opinions, please feel free to send us a message.
P2P · IoT/M2M · Security · Android


