Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SSL, Bandwidth, & High Latency...

SSL, Bandwidth, & High Latency...

Scheduled Pinned Locked Moved C / C++ / MFC
comwindows-adminsecurityperformancehelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peter Weyzen
    wrote on last edited by
    #1

    Anyone out there have any good references on how to improve TCP/SSL performance on high latency connections. We see bandwidth dropping radically as latency increases... would like to get rid of this issue. I don't see much of anything in the socket options. I also cannot switch away from TCP, am required to use SSL. Oh, and I really cannot mess with the registry... And am using OpenSSL for my SSL overhead. Any thoughts to share?

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc.](http://www.soonr.com)

    M 1 Reply Last reply
    0
    • P Peter Weyzen

      Anyone out there have any good references on how to improve TCP/SSL performance on high latency connections. We see bandwidth dropping radically as latency increases... would like to get rid of this issue. I don't see much of anything in the socket options. I also cannot switch away from TCP, am required to use SSL. Oh, and I really cannot mess with the registry... And am using OpenSSL for my SSL overhead. Any thoughts to share?

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc.](http://www.soonr.com)

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Where/when is the latency, how are you measuring it, and where is it coming from? Depending on when the latency occurs, it could definitely impact throughput. Mark

      "If you can dodge a wrench, you can dodge a ball."

      P 1 Reply Last reply
      0
      • M Mark Salsbery

        Where/when is the latency, how are you measuring it, and where is it coming from? Depending on when the latency occurs, it could definitely impact throughput. Mark

        "If you can dodge a wrench, you can dodge a ball."

        P Offline
        P Offline
        Peter Weyzen
        wrote on last edited by
        #3

        It's not a measured thing unfortunately. We have this client/server thingy. I am in California and the server is in California. I don't have much trouble with throughput. But I have this user in Denmark who is trying to connect to the serer in California. He's got a soooper high speed connection to the internet... but can only get limited bandwidth between his client and our server. I am very confident in his connection...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc.](http://www.soonr.com)

        M 1 Reply Last reply
        0
        • P Peter Weyzen

          It's not a measured thing unfortunately. We have this client/server thingy. I am in California and the server is in California. I don't have much trouble with throughput. But I have this user in Denmark who is trying to connect to the serer in California. He's got a soooper high speed connection to the internet... but can only get limited bandwidth between his client and our server. I am very confident in his connection...

          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc.](http://www.soonr.com)

          M Offline
          M Offline
          Mike ONeill
          wrote on last edited by
          #4

          Try increasing the TCP window size, on both client and server, for both send and receive buffers. See SO_SNDBUF and SO_RCVBUF, in the Winsock docs. The buffers should be sized to approximately RTT (round trip time) times the bandwidth of the smallest pipe. So, you really need to get a good estimate of RTT (try ping), and it really doesn't matter if your Danish user has a huge pipe if you are shipping it up to him through a 1500/300 ADSL link. If you don't have access to code, there are some registry tweaks available as described (e.g.,) at "Windows 2000 TCP Performance Tuning Tips" at http://rdweb.cns.vt.edu/public/notes/win2k-tcpip.htm[^]. There are lots of sites like that one (search on "SO_RCVBUF SO_SNDBUF RTT bandwidth"). The Win2k registry entries are the same in WinXP. Mike

          M 1 Reply Last reply
          0
          • M Mike ONeill

            Try increasing the TCP window size, on both client and server, for both send and receive buffers. See SO_SNDBUF and SO_RCVBUF, in the Winsock docs. The buffers should be sized to approximately RTT (round trip time) times the bandwidth of the smallest pipe. So, you really need to get a good estimate of RTT (try ping), and it really doesn't matter if your Danish user has a huge pipe if you are shipping it up to him through a 1500/300 ADSL link. If you don't have access to code, there are some registry tweaks available as described (e.g.,) at "Windows 2000 TCP Performance Tuning Tips" at http://rdweb.cns.vt.edu/public/notes/win2k-tcpip.htm[^]. There are lots of sites like that one (search on "SO_RCVBUF SO_SNDBUF RTT bandwidth"). The Win2k registry entries are the same in WinXP. Mike

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            Hey Mike Great reply. From a programmer with minimal IT skills - Thanks for the info! Mark

            "If you can dodge a wrench, you can dodge a ball."

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups