Skip to contentSkip to conversation

New TAP-Win32 driver needs stress testing

Openvpn-devel James Yonan 2 participants 2 messages Sep 10, 2003 – Sep 29, 2003

lore
Share & tools
lore
#0 lore raw

I've made some significant changes in the TAP-Win32 driver, bringing it up to SMP standards, and making some performance improvements in latency and overall efficiency.

While it has admirably held up to my stress tests on a single processor XP laptop, it needs testing on more machines, especially SMP machines, to flush out any bugs that might be remaining.

The driver is here:

http://openvpn.sourceforge.net/beta/tapdrvr.sys

Install instructions
--------------------

* Install OpenVPN normally.

* In Control Panel / Network connections, right click on all TAP-Win32 adapters and select Disable.

* Copy the new driver (tapdrvr.sys) to [your windows system directory]\system32\drivers, overwriting the old copy.

* In Control Panel / Network connections, right click on the TAP-Win32 adapter and select Enable.

* To verify that the correct driver is running, go to the adapter properties -> Configure -> Driver -> Driver Details, and the file version should be 1.5-beta7.2 (DEBUG) or higher.

When you test it, I would encourage you to really STRESS TEST it, i.e. copy large files over the tunnel while simultaneously running other CPU or disk-intensive apps.

I would also encourage you to run the Driver Verifier. It's called verifier.exe, included on Win2K and later. It will closely examine the behavior of the driver and trigger a bug check if anything looks amiss.

Another good stress test is to have a heavy session going, then right-click and disable the TAP adapter in the network connections control panel, while the OpenVPN process is still running. The OpenVPN process will generate a stream of error messages when this happens -- this is okay.

And if you have a laptop, make sure to put it through a few sleep/resume cycles, during heavy tunnel action. The OpenVPN process may hiccup, but should get back on track once the system is awake.

If you have any questions about testing the driver, don't hesitate to ask.

James

#1 lore raw

I have been testing openvpn-1.5-beta7.7 for the last few days between a dual CPU windows XP machine, a windows 2000 and a Linux machine (kernel 2.4.23-pre5 #2 SMP). I have transfered well over 1TB gig of data using both the tunnel and the tap devices. I have not had a single issue once the tunnel was established.
James, I tried it in driver verify mode as well. The only difference in driver verify mode was when I turned on the "low resources simulation" the rate dropped to 10s of K per second after a while. It all seemed to work. I don't know much else about this tool. Do you have any suggestions? I also started multiple ftp sessions to and from all the machines and managed to get both the send and receiver up to 100% CPU

(P.s. with a 2.4GHz CPU on the desktop and a 2.6Gz CPU on the server I can get 6MByte per second ftp transfers across the VPN)