Gaahh server people!!

Started by dlots, April 06, 2017, 11:57:56 AM

Previous topic - Next topic

dlots

I can't believe I have to defend why a 1.6-2ms round trip delay for 2 servers 30 miles away from one another is acceptable.

icecream-guy

Quote from: dlots on April 06, 2017, 11:57:56 AM
I can't believe I have to defend why a 1.6-2ms round trip delay for 2 servers 30 miles away from one another is acceptable.

I agree way to slow.  typical latency is 18ms for every 1000 miles.  so at 30 miles you should be at .54ms.
unless I'm bad a math or there is a slight additional overhead cost.

what kind of L class USER is complaining about a 2ms delay, unless this is for a financial trading firm.




:professorcat:

My Moral Fibers have been cut.

dlots

data-base people, they want to access the data-base in one DC from servers in another DC, and and they are posting data between them, each post waits for the one before it to get an ack, and they have 100k posts, so it takes ~160-200 seconds witch is to slow for them.  The BW is fine, it only took ~31 seconds to move a 1GB file from one DC to the other.  It just happens with your moving 480 Byte packets with an ACK between each one it can REALLY slow you down... Fix your protocol!!

icecream-guy

Quote from: dlots on April 06, 2017, 12:26:29 PM
data-base people, they want to access the data-base in one DC from servers in another DC, and and they are posting data between them, each post waits for the one before it to get an ack, and they have 100k posts, so it takes ~160-200 seconds witch is to slow for them.  The BW is fine, it only took ~31 seconds to move a 1GB file from one DC to the other.  It just happens with your moving 480 Byte packets with an ACK between each one it can REALLY slow you down... Fix your protocol!!

They should learn how to synchronize their databases, replicate data, and all that.  all the data should be in both data centers for redundancy or something like that.

:professorcat:

My Moral Fibers have been cut.

dlots

Yeah, I suggested that (didn't know the terminology though)

deanwebb

Someone must have pulled out a calculator and determined that light can cover 30 miles in 0.16ms.

:oracle:

What a numpty.

Send them this article, which is actually a jolly nice read: https://hpbn.co/primer-on-latency-and-bandwidth/
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.

dlots

Actually I pulled out that info to say "Hey 20% of the delay is the fastest thing in the universe"... I should have known... I immediately got back a reply of "lets work on the other 80%"... Personally I think it's pretty durn cool at the fastest thing in the universe is even a factor in our delay.  the 20% also assumes it's a straight line and the ISP doesn't take it back to some distribution then send it out from there.

dlots

the read up on BW and latency is quite good, but I am afraid to give it to them or they will try to make me look for buffer bloat or any of the other issues listed in there.  They want the magic cloud to change, not make their stuff work correctly.

SofaKing

Database guys are idiots!  They may be able to shave .6ms off this if they spend a lot of money but even then I would find it hard to get anything better than .2ms.
Networking -  You can talk about us but you can't talk without us!

deanwebb

This is true, they only understand the physics that makes their stuff go faster.

Tell them they need a microwave system to bypass much of the remaining 80%.

http://us.aviatnetworks.com/products/

Who knows, maybe you get some awesome toys to play with as a result of this?
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.

dlots

I actually had that written up as a "ha ha you aren't getting it" thing, but then I deleted it for fear they would insist on it being implemented.

deanwebb

I'd say go for it. If they buy it, you get to mess with the closest thing to a death ray any of us will get to touch.
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.

wintermute000

#12
These BDP type discussions are simply the pits. You can't prove that you cant magically squeeze a few more ns latency out of the network, so therefore it must be the network's fault.

The only way to win is for them to actually understand TCP/IP, which involves you sacrificing your time as a free tutor, assuming they have enough brain cells to understand. Its lose-lose all round for the network guy.


Just nail thier behinds to the wall if you can prove its 480 byte payloads, the application is not fit for purpose in a WAN deployment. In fact even @ LAN latencies its suboptimal. If you want to move large amounts of data fast then you need to be able to scale out the TCP segment size and hence the window. THe OS TCP stack may also be involved here as most modern implementations should not be ACK after every packet - SACK and cumulative ACK should be in play here

deanwebb

Make a deal... if they run the whole thing via UDP, you'll turn on jumbo frames on the WAN circuits.

Actually, Google did that with HTTP/HTTPS traffic with their QUIC protocol. It's all the web, without all the ACKs.
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.

Dieselboy

2ms latency for 30 miles... looking at my home and office fibre internet, I'm getting around that for 30kms so seems good to me.

Do your DCs take links from a company that provides links? Are they shared with other customers? Do they give an indication on what the latency should be? Do they offer a service which will reduce the latency at huge cost? If yes, then it's not your problem - it's finance  :mrgreen:

I'm not sure if a Riverbed would help.
Sometimes with problems like this you have to go back and find out why they're trying to do things this way. I've often been given problems to resolve and in the end, I find out they're trying to do something a bit weird and there's a better way to do things which wont have a problem.