[squid-users] squid http speed/ ms

Antony Stone Antony.Stone at squid.open.source.it
Tue Jan 10 09:29:34 UTC 2017


On Tuesday 10 January 2017 at 10:20:04, --Ahmad-- wrote:

> hi folks
> i want to ask .
> when i do ping  imp from my squid server  itself to website like aaa.com
> <http://aaa.com/> lets say i have ping over 10ms but when i configured my
> server as squid and visit aaa.com <http://aaa.com/> from squid server
> itself ..i have like 200 ms

How are you measuring that 200ms?

> the question here :
> why icmp timeout is 10ms  ?
> but http timeout is 200 ms ?

1. "Timeout" is the wrong term here.  It's more accurate to say "response 
time".

"Timeout" means that something failed because it took too long, whereas what 
you're measuring here is the time taken before it succeeded.


2. Why is the HTTP response time higher than the ICMP response time?

Because compared to ping running over ICMP, HTTP is a complicated protocol, 
running over TCP, which is a complicated, multi-stage protocol, and the 
response has to be generated by an application on the remote server, which is 
probably fetching content from a storage device in order to send it to you.

An ICMP ping requires just a single packet from your machine to the target, a 
simple response in the network stack, and a single packet back to you in 
return.

> is there  a way in squid to make it faster and few http ms like 30 ms ?

It's not Squid which is taking the time - it's the remote server - try 
measuring it without Squid in place and see what the response time is.


Antony.

-- 
One tequila, two tequila, three tequila, floor.

                                                   Please reply to the list;
                                                         please *don't* CC me.


More information about the squid-users mailing list