Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is TCP over UDP VPN reliable?

Tags:

tcp

udp

vpn

openvpn

Does TCP in applications will be reliable if I will use it over UDP VPN? For example, I have VPN server with some application listen TCP on 10.8.0.1:8080 and I will connect from TCP from host 10.8.0.2 to 10.8.0.1:8080. Will it be reliable?

|----------|   udp tunnel         |----------|
|  Server  |----------------------|  Client  |
| 10.8.0.1==========tcp=============10.8.0.2 |
|          |----------------------|          |
|----------|                      |----------|
like image 408
Ivan Borshchov Avatar asked May 21 '16 23:05

Ivan Borshchov


1 Answers

TCP is a protocol on top of IP. IP by itself is unreliable, so all the reliability is done at the TCP protocol level. If you use a UDP based VPN it usually encapsulates the IP into UDP, i.e. an unreliable protocol (IP) into another unreliable protocol (UDP). But since the reliability is implemented at the TCP level this does not matter, i.e. TCP over IP over UDP VPN is still a reliable protocol.

like image 145
Steffen Ullrich Avatar answered Sep 30 '22 22:09

Steffen Ullrich