Skip to contentSkip to conversation

Windows TAP driver profiling

Openvpn-devel Dan Moulding 4 participants 5 messages Jan 16, 2015 – Jan 17, 2015

lore
Share & tools
lore
#0 lore raw

Hello all,

I have been extensively testing OpenVPN recently, for potential deployment with some other systems I have been developing. One thing I have noticed during this testing is that performance of Windows clients connected to a Linux server is significantly slower than the performance of Linux clients with identical configurations.

I'm suspecting that it's either the Windows network stack itself (seems a little doubtful) or the Windows implementation of the TAP driver that is causing the poor performance. I'm hoping I can profile the TAP driver code to see if I can confirm the latter (and maybe contribute some optimizations if it all works out).

Has anyone here ever tried profiling the Windows TAP driver code before? Any pointers or suggestions from someone who is familiar with the TAP driver would be really appreciated.

Thanks,

Dan Moulding
Software Engineer
RackWare, Inc.

#1 lore raw

Hiya,

Quoted 5 lines · Dan Moulding

I have been extensively testing OpenVPN recently, for potential deployment with some other systems I have been developing. One thing I have noticed during this testing is that performance of Windows clients connected to a Linux server is significantly slower than the performance of Linux clients with identical configurations.

This is the nagging suspicion we had, but nobody had enough idle time yet to properly quantify it.

One of the things you could do if you have a reliable test bed is to test the effects of increasing

--sndbuf
--rcvbuf

on the windows side (which default to smaller values than under Linux, see the log for actual values used).

Quoted 5 lines

I'm suspecting that it's either the Windows network stack itself (seems a little doubtful) or the Windows implementation of the TAP driver that is causing the poor performance. I'm hoping I can profile the TAP driver code to see if I can confirm the latter (and maybe contribute some optimizations if it all works out).

Have you tried the old or new TAP driver? (In the OpenVPN installers, this is "I00x" for the old TAP driver, and "I60x" for the NDIS6 based new TAP driver).

In any case, the NDIS6 driver *should* perform better, if(!) it is really the TAP driver where the bottleneck is. My gut talks more about sockets and buffers and "not saturating available link bandwidth due to small buffers", but I have not measured that yet.

Quoted 3 lines

Has anyone here ever tried profiling the Windows TAP driver code before? Any pointers or suggestions from someone who is familiar with the TAP driver would be really appreciated.

I have *no* idea how to do that... I'm a unix guy :-)

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#2 lore raw
In reply to Dan Moulding

have a look at wire speed of tap adapter, https://yadi.sk/i/zz4WbnOHe3hJf
I see 10mb

2015-01-17 0:02 GMT+05:00 Dan Moulding <[email protected]...>:

Quoted 26 lines

Hello all,

I have been extensively testing OpenVPN recently, for potential deployment with some other systems I have been developing. One thing I have noticed during this testing is that performance of Windows clients connected to a Linux server is significantly slower than the performance of Linux clients with identical configurations.

I'm suspecting that it's either the Windows network stack itself (seems a little doubtful) or the Windows implementation of the TAP driver that is causing the poor performance. I'm hoping I can profile the TAP driver code to see if I can confirm the latter (and maybe contribute some optimizations if it all works out).

Has anyone here ever tried profiling the Windows TAP driver code before? Any pointers or suggestions from someone who is familiar with the TAP driver would be really appreciated.

Thanks,

Dan Moulding
Software Engineer
RackWare, Inc.

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#4 lore raw

Hi,

Quoted 5 lines · Arne Schwabe
Quoted 2 lines · ???????? ??????????????

have a look at wire speed of tap adapter, https://yadi.sk/i/zz4WbnOHe3hJf
I see 10mb

We could easily patch that to say 100 GBit/s and it would not change anything :)

But it would look cool!

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...