CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Posts
    5

    Question Low network throughput in window vista

    Hi

    I have a question regarding network throughput in widows. I'm running the same code in windows and ubuntu (using sockets from boost). Simplified the application just consists of one thread creating a udp packet and then send it over and over in a loop. In linux I get a throughput of ~610 Mbit/s, while in windows vista I only get ~90 Mbit/s.

    Does someone have a slightest idea why this is? The same equipment is used in both cases. I have also tried using rtpplay tool to generate traffic with the same result, so I do not think it has anything to do with my code. I have also tried to disable firewalls etc in windows.

    Thank you for any input or ideas.
    - Daniel

  2. #2
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Arrow Re: Low network throughput in window vista

    This is awfully close to 100 Mb/s and 1000 Mb/s. My first guess would be that one of the connections is operating at 1000 Mb/s Full Dup, and the other is not.

    Can you confirm that each adapter is setup and running at 1000 Mb/s Full Duplex?
    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  3. #3
    Join Date
    May 2010
    Posts
    5

    Re: Low network throughput in window vista

    Hi, and thank you for answering.

    I was thinking more if there is anything known that might be slowing down the speed. The firewall might be one such service that might do it I guess, but that one I have already tried to disable.

    As default I let the card detect the speed itself, and it does detect 1.0 Gbps network, but I have also tried to manually setup 1.0 Gbps full duplex.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Low network throughput in window vista

    What size are the packets you're sending? Different OSs can have different optimal packet sizes. I can see this possibly being the cause.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    May 2010
    Posts
    5

    Re: Low network throughput in window vista

    Hi

    ~1500 bytes. No fragmentation is done. But even if it's not optimal size I doubt that the difference should be this big?

    Regards,
    - Daniel

  6. #6
    Join Date
    May 2002
    Posts
    10,943

    Re: Low network throughput in window vista

    Quote Originally Posted by Fragge
    But even if it's not optimal size I doubt that the difference should be this big?
    Actually, it wouldn't surpise me at all. The two OSs could translate packets in entirely different ways. For example, if one OS does error checking on each packet and the other just checks the final concatenation, this could be significantly different.

    Either way, that's a small packet size. I would up it to at least 1Kbit (8192 bytes).
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  7. #7
    Join Date
    May 2010
    Posts
    5

    Re: Low network throughput in window vista

    Sure, I guess it will not hurt to try.. but then it will be larger than MTU, which it can't be for what I am doing.

    btw, what error check do you talk about? Is it not only the checksum on the ip header that is checked? Concatenation?

    I do understand that wireless networks can have major performance issues if you send small packets, and I don't think 1500 byte is a small udp packet..

    I'm just trying to understand, no offence! :-)
    Thank you anyway, I will try to increase the size and come back with the result.

    Regards,
    - Daniel

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured