Re: [squid-users] Does Squid process IP packets or this's kernel

This is a discussion on Re: [squid-users] Does Squid process IP packets or this's kernel within the Squid Users forums, part of the Web Server and Related Forums category; On Thu, 22 Apr 2004, Viet Hai wrote: > If that's true, it's mean that the kernel receives ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2004
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] Does Squid process IP packets or this's kernel

On Thu, 22 Apr 2004, Viet Hai wrote:

> If that's true, it's mean that the kernel receives request (TCP packet) from
> client, then depack these packet and give it to Squid.


Correct.

> So, I wonder how the way Squid can set access control list on the IP address
> of source or destination WHILE it can't PROCESS IP packets.


Because if knows the source and destination, and can then decide on if it
will accept doing what the clien requested or no.

> Can Henrik tell me the detail that:
> 1. Does Squid process the IP packets (include TCP or UDP packets) or this's
> kernel's jobs?


Kernel.

> 2. If processing the IP packets is the kernel's job, how can squid does it's
> ACL based on IP address, port?


It gets this information from the kernel as part of the accept() call
where the kernel gives the client connection to Squid.

> 3. If squid can process IP packets, why you and Squid's developers take
> squid does bandwidth control at Transport layer in replace with Application
> layer?


Squid can not process IP packets. Squid can process HTTP messages and the
data flows within HTTP.

> 4. If processing the IP packets is the kernel's job, how do squid tell
> kernel to limit bandwidth? (Duane Wassels has no detail information about
> it!!!)


Squid limits the bandwidth at the application level by limiting how fast
it forwards the requested information at the application layer.


The layers forwarded traffic goes via are:

ethernet (kernel)
IP (kernel)
TCP (kernel)
Squid (squid)
TCP (kernel)
IP (kernel)
ethernet (kernel)


By Squid limiting how fast it forwards the information it causes the
TCP window to be filled up at the TCP level, slowing down the TCP which
causes no more IP packets to be sent by the sending host.

Regards
Henrik

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0