Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-30-2004, 11:36 PM   #1
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
Squid process. need explaination!

Can u explain me the process of squid?

For example, in a network consisting of 2 computers. One is a server running squid and another one

is a client. Let's say the client want to request a page (ex:, so what are the

steps that squid takes to retrieve the requested page for the client?

Note: Assume that squid cache is disabled.

Am i right that when squid need to handle request from client, it needs to check linux routing


Old 10-01-2004, 01:33 AM   #2
LQ Newbie
Registered: May 2003
Location: Australia
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Squid does not do anything with the routing table. There is no need for that sort of low-level access.
Squid just opens connections and the kernel handles routing.
If you're having trouble with squid, then first make sure your routes are setup properly.
Old 10-01-2004, 07:35 AM   #3
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Squid cache

Disabling the Squid cache pretty much defeats the major reason for using Squid to begin with!
Old 10-02-2004, 01:04 AM   #4
LQ Newbie
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
I hope I can help you with squid.

Squid is what one could call a proxy server. It's main function in an intranet setting is
minimizing net traffic traffic by caching the most frequently web pages on a hard disk or in memory. Turning off the cache in squid is really self-defeating as this nullifies any bandwidth saving you may get by running it on your network. let look at the internetwork below:

server running squid (on port 3128)

note rtr=router; inet=internet ,fw=firewall

for squid to work you have to have the following set up correctly

A web browser on your workstation configured to use a proxy server at port 3128
(you can change the default port in squid's config files on the server )

A server running a squid process, listening on port 3128

a working lan (with working router/fw)

a working dns server

a working connection to the internet esp. one that allows for port 80 traffic

let say we want to see a page at www.micro$ when a user types in

www.micro$ the browser software on the workstation sends a request out on the
lan to 'talk' to a server listening on port 3128. The squid server if listening on that port
intercepts the request and processes it. If www.micro$ has never been accessed
on the network by the clients(web browsers configured for squid proxy on port 3128 )
the server reports a "cache miss" and requests data from the web server answering to
www.micro$ After the data is downloaded to the squid server proxy cache it relays this data to the client that initiated the request. If the same client or another client requests the same URL the squid server will register a "cache hit" and will download the page stored on the server running squid
without accessing www.micro$ Bandwidth is saved by only requesting data that is not
stored in cache. Squid works great if you have a low-bandwidth pipe to the net and bandwidth is
at a premium.

I may have some info wrong here, but
you can get the whole story about squid at
Old 10-02-2004, 02:30 AM   #5
Registered: Jun 2004
Posts: 131

Original Poster
Rep: Reputation: 15
This really helps!

Thanks alot,
Old 10-11-2004, 12:18 PM   #6
LQ Newbie
Registered: Nov 2003
Location: :PUNE, INDIA 411008
Distribution: redhat-6,7,9, fedoracore-1,2,3, AIX-5.1,5.2 , Tru64 5.1A, SUSE 10.0,ES9
Posts: 14

Rep: Reputation: 0
do not disable squid cache.. disabling squid cache defeats the purpose of squid...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 08:26 AM
802.11a-i explaination(s)? Curiosity is all.. MasterC Linux - Wireless Networking 1 07-06-2007 02:56 AM
Squid -D process chamnane Linux - Networking 0 08-10-2004 12:09 PM
Explaination Of DNS Terms Joe_Astor Linux - Networking 7 04-11-2004 03:56 AM
Is there an In dept explaination of 2.4.22 Kernal options? jimdaworm Linux - Newbie 2 11-15-2003 03:51 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration