December 13, 2017, 09:20:57 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: squid - TCP_MISS  (Read 23123 times)

Offline sathish

  • Linux Learner
  • ***
  • Posts: 73
squid - TCP_MISS
« on: December 19, 2004, 12:16:23 PM »
Hi !!!

I have configure squid in redhat9.0, i have configured it correctly, but in the windowz client browsing is very slow.. if I see the access.log.. the all the enteries is as follows

1103456003.696   3234 192.168.1.4 TCP_MISS/200 13470 GET http://www.american-pictures.com/gallery/personal/book9t-x.jpg - DIRECT/66.194.239.2 image/jpeg
1103456020.872   3324 192.168.1.4 TCP_MISS/200 39611 GET http://www.american-pictures.com/english/jacob/jokes1.htm - DIRECT/66.194.239.2 text/html
1103456055.723   2388 192.168.1.4 TCP_MISS/200 24197 GET http://www.google.com/search? - DIRECT/216.239.57.147 text/html
1103456059.540   1185 192.168.1.4 TCP_MISS/204 213 GET http://www.google.com/url? - DIRECT/216.239.57.103 text/html
1103456068.239   9391 192.168.1.4 TCP_MISS/000 0 GET http://www.collegeboard.com/ - NONE/- -
1103456418.821  10782 192.168.1.4 TCP_MISS/200 3047 GET http://www.google.com/ - DIRECT/216.239.57.147 text/html
1103456441.486  14607 192.168.1.4 TCP_MISS/200 38865 GET http://www.yahoo.com/ - DIRECT/66.94.230.33 text/html


in each and every entry itz giving TCP_MISS - what is mean by that ?? Is any wrong configuration in squid..and even the browsing is very slow..

Plz let me know what to do ??

and also I want this IP address 129.41.xx.xx port :42xxx itz a online software, this ip&port should not go through squid [it should bypass].
what code to be put in iptables to make changes.

Thanks in advance...

Sathish

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid - TCP_MISS
« Reply #1 on: December 21, 2004, 11:07:37 AM »
Your first problem is not a problem,
Squid is a advance and well developed caching proxy servers, so it takes care that it always delivers the right contents , in order to do so it is not simple that when a page is viewed first time will be retrived from cache on second time. Few page uses no_cache directive which means it will never be cached by a good cache proxy server.
Now what is TCP_MISS, it simply means that the specified URL is not retrived from cache, TCP_HIT means it has been retrived from cache, whenever u find HIT then it is from cache,
BTW if you want loose caching then can look for wwwoffle :)


Quote
and also I want this IP address 129.41.xx.xx port :42xxx itz a online software, this ip&port should not go through squid [it should bypass].
what code to be put in iptables to make changes.
Are you asking to block that ip or port or want squid to not to do anything with it ?

Offline sathish

  • Linux Learner
  • ***
  • Posts: 73
ip& port
« Reply #2 on: December 21, 2004, 04:25:58 PM »
Hi ricky,

Thanks for the reply, yeah i wanted squid not to do nothing with that ip and port.

Thanks!!!

Offline arulthas

  • New Member
  • Posts: 2
squid - TCP_MISS
« Reply #3 on: December 29, 2004, 07:15:09 AM »
Good day Ricky,

In my case the access.log captures tcp_miss even if I visit the same URL repetitively.

How to I setup squid to cache?

Thank you.

Best regards,
Arulthas.

Quote from: "Ricky"
Now what is TCP_MISS, it simply means that the specified URL is not retrived from cache, TCP_HIT means it has been retrived from cache, whenever u find HIT then it is from cache.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid - TCP_MISS
« Reply #4 on: December 29, 2004, 08:00:12 AM »
Well some pages have directive no_cache, then it will never be cached by any good caching software.. eg.. Every page of LS has no cache directive!

Offline arulthas

  • New Member
  • Posts: 2
squid - TCP_MISS
« Reply #5 on: December 29, 2004, 08:31:15 AM »
Hi Ricky,

In this case can you suggest a website which have cache feature and the following is for testing our squid configuration.

Thank you.

Best regards,
Arulthas.

Quote from: "Ricky"
Well some pages have directive no_cache, then it will never be cached by any good caching software.. eg.. Every page of LS has no cache directive!

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid - TCP_MISS
« Reply #6 on: December 29, 2004, 08:57:21 AM »
every simple html file can be cached easily !

Offline omnia

  • Linux Noob !
  • *
  • Posts: 9
squid - TCP_MISS
« Reply #7 on: January 06, 2005, 11:17:56 AM »
so what is the meaning of TCP_IMS_HIT , TCP_MEM_HIT and TCP_NEGATIVE_HIT

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid - TCP_MISS
« Reply #8 on: January 06, 2005, 02:37:08 PM »
here is look this.. Squid cache.log errors