Windows 2003SP2 Socket Sends are much slower than Windows XP on my



I have a client/server C# 2.0 winforms app that simply through a loop reads a
file from disk and send the bytes through the socket. If the buffer size
written to the socket is 64k I get max performance independently of the OS.
If I start to reduce the buffer size down to 1k the performance on WinXP
remains invariable, but on Win2003 SP2 gradually slows down on a factor of 6
times slower.

+ Why is Win2003 SP2 sensitive to the buffersize while XP is not?

After evaluating a wireshark network trace, the packets sent from the
Win2003 looks capped at 250 packets/s and WinXP doesn't present the flat line
seen on Win2003 packets but has peeks of 2000 packets/s. This transfer is
going over the WAN and we already tested with Win2003 on point A and point B
and WinXP on point A and point B. If this is an environmental issue the
direction doesn't change in despite of where we send the data from
(geographically) The only changes that we see is if we send the data from
WinXP vs Win2003. The results are consistent on over 15 WinXP and 7 Win2003
machines that we've tested with.

It looks like something is telling Win2003 not to put the data on the wire
as quick as it could, but as soon as I increase the buffer size to match the
windows size of 64k, Win2003 becomes as peppy as it can be.

Any insights?

Btw, CYSCO has already looked all our routers and switches and they found no
configuration issues and no network bottlenecks. This problem is only seen
with applications that are transfering data over TCP/IP ports with buffers
below 64k.
.



Relevant Pages

  • Re: Socket switch delay
    ... The server uses blocking sockets just because I am also using Overlapped IO ... structures to send the packets. ... The reason I am using a 0 bytes send buffer in my socket (i.e. ...
    (microsoft.public.win32.programmer.networks)
  • netstat -s output: "packets pruned" and "packets collapsed"
    ... 4087 packets pruned from receive queue because of socket buffer ... 362332 active connections openings ...
    (comp.os.linux.networking)
  • Re: Datagram Socket Speed Problem
    ... I'd say that there's not a single thing wrong with the socket. ... When the buffer is full (because you're trying to send faster than the ... network bandwidth will allow), it tosses the packets. ... > The receiver program start receiving packets... ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Losing UDP packets with MFC Sockets
    ... buffer after OnReceive notification? ... >> We are developing a tool which uses UDP packets to receive data from a UDP ... >> buffer size of the socket and store the received packet while the PC is ...
    (microsoft.public.vc.mfc)
  • Re: Communication speed between blocking call and non blocking cal
    ... You could use event based notification, ... When you use nonblocking I/O, the system may have to perform extra buffering ... data buffer until you say that you are done with it. ... I checked default socket buffer ...
    (microsoft.public.win32.programmer.networks)

Loading