Linux – TCP – TAP performance

linuxperformancetaptcp

Linux.

Is there a performance loss from using a tap device vs a hardware one like eth0 ?

The goal is to create a user space tcp/ip stack and avoid the kernel as much as possible.

I would like to be sure that developping on top of a tap device is the right thing to do.

Thanks

Best Answer

I'm posting this as an answer due to insufficient commenting permissions.

From my experience VPN over tcp - tap was abysmal at best over wireless connections due to the the nature of TCP. When switching to UDP no more connection timeouts occurred - even better with tun device. I would suggest you test under poor network connections both TCP and UDP and tap/tun.