[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] TCP or UDP


  • Subject: Re: [Openvpn-users] TCP or UDP
  • From: "James Yonan" <jim@xxxxxxxxx>
  • Date: Fri, 29 Aug 2003 10:35:29 -0000

Markus Wenke <M.Wenke@xxxxxx> said:

> Hi,
> 
> whats the different between TCP and UDP use with openvpn?
> 
> is it the speed?

On most setups, UDP will be somewhat faster and more robust on congested
networks.  In some cases however, TCP could be faster if the path MTU would
force UDP to excessively fragment.  The only way to know definitively is to
benchmark.

Overall, UDP would always be my first choice.  TCP is really provided as a
backup for cases where UDP isn't a viable option.

> A Friend of me wants to make a VPN with XP to my linux-router.
> 
> If we use UDP HE and my router must open UDP 5000 for  Inet.
> If we use TCP, only I(my router) must open TCP 5000 for Inet.

Actually with UDP, you usually don't need to open any firewall ports.  That's
because both peers actively initiate the connection, so the statefullness of
the firewall allows return packets without an explicit firewall rule.

> Should I use TCP or UDP??
> 
> We want to  play network games throug VPN,...

UDP will give you better latency which is key for gaming.

James


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users