[netperf-talk] Loopback test on XP "connection forcibly closed"; WDK errors
Kevin Murphy
kj at murphy.net
Wed Aug 19 12:43:08 PDT 2009
Thanks- I used the netserver.c you supplied and got the exact same results
after running netserver and then netperf on the same machine.
I ran "netserver -v 2 -d" and "netperf" (no options)
The small netperf.debug file in C:\Temp\ is
C:\Temp>type netperf.debug
*Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC*
*nfo returned the following for host '0.0.0.0' port '12865' family AF_UNSPEC
*
* cannonical name: '(nil)'*
* flags: 4 family: AF_INET: socktype: SOCK_STREAM protocol
IPPROTO_TCP addrlen 16*
* sa_family: AF_INET sadata: 50 65 0 0 0 0*
*Starting netserver at port 12865*
*CreateProcessfailure: : The system cannot find the file specified.*
*
*
Trying to figure out how to capture loopback traffic on XP with Wireshark.
Not easy.
Will try to run on two different servers.
If anyone has 2.4.5 running on XP SP 2 or 2K3 binaries appreciated.
Thanks - kevin
On Wed, Aug 19, 2009 at 2:44 PM, Rick Jones <rick.jones2 at hp.com> wrote:
> Kevin Murphy wrote:
>
>> 1) Downloaded sources for netperf 2.4.5
>> 2) Downloaded WDK 7
>> 3) Made changes to netserver.c per July 23, 2009 email. Mostly around
>> cmdline parsing
>>
>
> Good, just to be paranoid, I'll attach the top-of-trunk netserver.c for
> comparison.
>
> 4) Started WDK - x86 free build environment
>> 5) Built netserver
>>
>> *Launching OACR monitor
>> *
>> *C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*
>> *
>> *
>> *C:\netperf-2.4.5\src\NetServerDir>build /c*
>> *BUILD: Compile and Link for x86*
>> *BUILD: Loading c:\winddk\7600.16385.0\build.dat...*
>> *BUILD: Computing Include file dependencies:*
>> *BUILD: Start time: Wed Aug 19 14:05:43 2009*
>> *BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for
>> files to compile.*
>> *BUILD: Saving c:\winddk\7600.16385.0\build.dat...*
>> *BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir
>> directory*
>> *Configuring OACR for 'root:x86fre' - <OACR on>*
>> *_NT_TARGET_VERSION SET TO WINXP*
>> *Compiling - netcpu_ntperf.c*
>> *Compiling - netlib.c*
>> *Compiling - netsh.c*
>> *Compiling - nettest_bsd.c*
>> *Compiling - netserver.c*
>> *Compiling - generating code...*
>> *Compiling - inet_ntop.c*
>> *Linking Executable - objfre_wxp_x86\i386\netserver.exe*
>> *BUILD: Finish time: Wed Aug 19 14:05:48 2009*
>> *BUILD: Done*
>> *
>> *
>> * 10 files compiled - 1 Warning*
>>
>
> Good.
>
> 5) built netperf
>>
>> *Launching OACR monitor
>> *
>> *C:\WinDDK\7600.16385.0>cd \netperf-2.4.5\src\NetServerDir*
>> *
>> *
>> *C:\netperf-2.4.5\src\NetServerDir>build /c*
>> *BUILD: Compile and Link for x86*
>> *BUILD: Loading c:\winddk\7600.16385.0\build.dat...*
>> *BUILD: Computing Include file dependencies:*
>> *BUILD: Start time: Wed Aug 19 14:05:43 2009*
>> *BUILD: Examining c:\netperf-2.4.5\src\netserverdir directory for
>> files to compil*
>> *e.*
>> *BUILD: Saving c:\winddk\7600.16385.0\build.dat...*
>> *BUILD: Compiling and Linking c:\netperf-2.4.5\src\netserverdir
>> directory*
>> *Configuring OACR for 'root:x86fre' - <OACR on>*
>> *_NT_TARGET_VERSION SET TO WINXP*
>> *Compiling - netcpu_ntperf.c*
>> *Compiling - netlib.c*
>> *Compiling - netsh.c*
>> *Compiling - nettest_bsd.c*
>> *Compiling - netserver.c*
>> *Compiling - generating code...*
>> *Compiling - inet_ntop.c*
>> *Linking Executable - objfre_wxp_x86\i386\netserver.exe*
>> *BUILD: Finish time: Wed Aug 19 14:05:48 2009*
>> *BUILD: Done*
>> *
>> *
>> * 10 files compiled - 1 Warning*
>>
>
> Good
>
> 6) started netserver (no commandline options)
>> 7) netstat -an shows netserver listening on TCP 0.0.0.0:12865 <
>> http://0.0.0.0:12865>
>>
>
> Good.
>
> 8) started netperf on same host. Netserver stops, and netperf reports
>> *C:\netperf-2.4.5\src\NetPerfDir>objfre_wxp_x86\i386\netperf*
>> *TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to John
>> (127.0.0.1) port 0 AF_INET*
>> *recv_response: An existing connection was forcibly closed by the
>> remote host.*
>>
>
> Hmm, I would not have expected netserver to stop. Tripped over something
> no doubt, but the question is what.
>
> 9) Of interest WDK is reporting 80 errors - all essentially the same error
>> for several files including netlib.c, netserver.c, etc.
>> *WARNING: Banned API Usage: _snprintf is a Banned API as listed in
>> dontuse.h for security purposes.*
>>
>
> Fascinating - I wonder what dontuse.h suggests one should use to replace
> it.
>
> happy benchmarking,
>
> rick jones
>
>
>>
>> Thanks - Kevin
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> netperf-talk mailing list
>> netperf-talk at netperf.org
>> http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.netperf.org/pipermail/netperf-talk/attachments/20090819/6e2e08eb/attachment.htm
More information about the netperf-talk
mailing list