Re: [squid-users] Difference between TCP_MISS, UDP_MISS

From: Dan Trainor <dan.trainor_at_beatport.com>
Date: Wed, 21 May 2008 15:57:43 -0600

On Thu, 2008-05-22 at 04:53 +0700, Phattanon Duangdara wrote:
> Dan Trainor wrote:
> > Hello again -
> >
> > Reading my logs when trying to play with ICP and HTCP, I see a few
> > options that I'm not too familiar with. I see TCP_MISS and UDP_MISS.
> >
> > >From what I've read and understand on the documentation of the general
> > log, TCP_MISS is written when an object is not found in *this* cache,
> > and a UDP_MISS is written when an object is not found in *the* cache.
> >
> > Now, my question is are the difference between the two the difference
> > between not finding the object on either a single server or via
> > ICP/HTCP? Is that where the differentiation is? This is what I
> > understand from the documentation, but I just wanted to make sure that
> > my interpretation was correct.
> >
> > Thanks!
> > -dant
> >
>
> For ICP/HTCP query, your server will log UDP_MISS/HIT, If you found
> UDP_HIT you would expect TCP_HIT followed soon.
>
> 1211405991.407 0 192.168.182.8 UDP_MISS/000 68 ICP_QUERY
> http://video1.foo.bar:8020/01/47ccdcfd.flv - NONE/- -
>
> In case someone getting file from your proxy, now your server log TCP_XXX
> And in this case, if your server found HIT from your sibling/neighbor
> you will see TCP_MISS with SIBLING_HIT or something similar.
>
> 1211405990.193 197970 61.114.111.122 TCP_HIT/200 10551690 GET
> http://video1.foo.bar:8020/01/48345aa0.flv - NONE/- video/flv
> 1211405990.657 148869 61.27.146.156 TCP_MISS/200 5860778 GET
> http://video1.foo.bar:8020/01/4780515a.flv - FIRST_UP_PARENT/videoserv1
> video/flv
> 1211406200.674 5541 221.90.102.240 TCP_MISS/200 438409 GET
> http://video1.foo.bar:8020/01/47b26d73.flv - SIBLING_HIT/videocache1
> video/flv
>
> Let say
> UDP_MISS : object not in my cache, so you should get it yourself
> TCP_MISS : object not in my cache, I will get it for you
>

Hi, Phattanon -

Perfect, that's exactly what I was looking for - and I can see this as
depicted in my logs.

As far as ICP/HTCP requests go, I've been looking for quite a while for
a clear-cut definition between ICP and HTCP, and have yet to find one.
I understand that HTCP is ICP's predecessor, but have not yet been able
to identify which advantages that it has over ICP.

As this relates to our conversation, can you please elaborate on it a
bit? I think knowing this, I can make some better decisions as to how
my configuration will be set up.

Thanks
-dant
Received on Wed May 21 2008 - 21:59:15 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:13 MDT