09-17-2015 01:12 PM - last edited on 03-14-2019 03:13 PM by NikolaIvanov
Hi,
I have a question for you guys.
We have a custom application here that runs on our LAN. So, server and clients are local. This application runs on TCP and do a LOT of requests in a small time.
Now we have a data center in another city. We want to move the server to this DC and keep users here locally via WAN link. When we try this, all our tests takes about 4 times the time vs LAN.
Our LAN has <1 ms of latency. Our WAN link (which is brand new, no one use it except our tests for the moment) is a steady 4ms latency link. So, about 4 times more....as our tests results.
In LAN, our links are 1gb between server and clients. Same thing for our WAN link. For the test, we did a LAN extension. So there is no firewall or router. Only L2 because we wanted to test without other equipment in the loop.
So, if all links are the same speed (1gb), but the wan links have 4 times the latency, can we conclude that it's normal that our all tests are four times longer ?
Remember there is no router/firewall, QoS or other traffic running. Only a pure L2 link with just us doing the traffic.
Thank you
09-17-2015 04:01 PM
Yes. Latency is a measure of time; if you multiply time by 4 it takes 4 times as much time.
Sounds like the app (if truly custom) is within your control and you can perhaps have your devs optimise it to make fewer, larger calls.
Aaron
09-17-2015 11:52 PM
A couple of things,
the wan link does have service provider equipment it passes through, so minor delay there,
But the main thing is just physics and the speed of light! I don't know how far away your other location is but obviously going to take longer to go there than just in a local LAN.
HTH
Richard
09-18-2015 05:14 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
No you cannot assume 4 times the latency will slow an application by 4 times. It depends much on how the application interacts with the network.
An an example, you mention your LAN latency is less than a ms. It might be much less. Suppose it was .25 ms. In that case, your WAN latency would be 16 times slower. Or suppose it's .1 ms, then your WAN latency is 40 times slower.
That said, increased latency will slow almost any application.
09-18-2015 06:09 AM
thank you all
I'll explain that to people here that need explainations :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide