Linux Netfilter discussions
 help / color / mirror / Atom feed
* My ongoing problem
@ 2011-03-09 15:24 Optimum Wireless Services
  2011-03-10 12:50 ` Optimum Wireless Services
  0 siblings, 1 reply; 3+ messages in thread
From: Optimum Wireless Services @ 2011-03-09 15:24 UTC (permalink / raw)
  To: netfilter

Hi guys.

Today I noticed something that might be the answer to why my internet
connection tends to get slow from time to time.

tcviewer shows:

 2:1251               <  512000bit -  614000bit >    576.8 kbit/s
( 49pps)
 2:1067               <  512000bit -  614000bit >    430.5 kbit/s
( 39pps)
 2:1013               <  512000bit -  614000bit >    155.5 kbit/s
( 21pps)
 2:961                <  512000bit -  512000bit >     38.2 kbit/s
( 42pps)
 2:1101               <  512000bit -  614000bit >     34.9 kbit/s  (
7pps)
 2:1155               <  512000bit -  614000bit >      6.2 kbit/s  (
1pps)
 2:1345               <  512000bit -  614000bit >      4.5 kbit/s  (
4pps)
 2:1211               <  512000bit -  614000bit >      3.0 kbit/s  (
1pps)
 2:1003               <  512000bit -  614000bit >      2.2 kbit/s  (
1pps)


which means not many users are really online.

iptraf shows that my WAN interface is almost maxed to 14580kbits/sec and
my internal iface traffic is only at 1673kbits/sec which tells me that:

1. traffic passing through squid (checked the access.log) and is showing
traffic to the user with 2:1251 class:

172.16.100.139   
 http://s9.videobb.com/s2?v=t8sVz3gItZpm&r=1&t=1299677838&u=& ....   44
Mb 1h 24m 56s 
 http://s56.videobb.com/s2?v=obSt3vOWf0cd&r=1&t=1299677906&u= ....   71
Mb 1h 23m 57s 
 http://s68.videobb.com/s2?v=LMiY4UGsGhMy&r=1&t=1299677969&u= ....   30
Mb 1h 22m 24s 

2. Since, I'm shapping or throlling the user's speed to 512kbits then
all traffic coming in is hogging my line.

I thought that when an established connection was being throttle that my
gateway will be the "manager" for this connection and as a result it
would control the speed at what the server is serving the file to the
user in my lan.

This is an user or two that's hogging my line imagine when 30 or more
are connected simultanously.

I'm thinking of installing a mikrotik to balance our 3 5mbps lines and
throtle connections like that to 100kbits... 

What can I really do to fix this? 

Thanks in advanced for your time and help.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: My ongoing problem
  2011-03-09 15:24 My ongoing problem Optimum Wireless Services
@ 2011-03-10 12:50 ` Optimum Wireless Services
  2011-03-10 17:49   ` Andrew Beverley
  0 siblings, 1 reply; 3+ messages in thread
From: Optimum Wireless Services @ 2011-03-10 12:50 UTC (permalink / raw)
  To: netfilter

On Wed, 2011-03-09 at 11:24 -0400, Optimum Wireless Services wrote:
> Hi guys.
> 
> Today I noticed something that might be the answer to why my internet
> connection tends to get slow from time to time.
> 
> tcviewer shows:
> 
>  2:1251               <  512000bit -  614000bit >    576.8 kbit/s
> ( 49pps)
>  2:1067               <  512000bit -  614000bit >    430.5 kbit/s
> ( 39pps)
>  2:1013               <  512000bit -  614000bit >    155.5 kbit/s
> ( 21pps)
>  2:961                <  512000bit -  512000bit >     38.2 kbit/s
> ( 42pps)
>  2:1101               <  512000bit -  614000bit >     34.9 kbit/s  (
> 7pps)
>  2:1155               <  512000bit -  614000bit >      6.2 kbit/s  (
> 1pps)
>  2:1345               <  512000bit -  614000bit >      4.5 kbit/s  (
> 4pps)
>  2:1211               <  512000bit -  614000bit >      3.0 kbit/s  (
> 1pps)
>  2:1003               <  512000bit -  614000bit >      2.2 kbit/s  (
> 1pps)
> 
> 
> which means not many users are really online.
> 
> iptraf shows that my WAN interface is almost maxed to 14580kbits/sec and
> my internal iface traffic is only at 1673kbits/sec which tells me that:
> 
> 1. traffic passing through squid (checked the access.log) and is showing
> traffic to the user with 2:1251 class:
> 
> 172.16.100.139   
>  http://s9.videobb.com/s2?v=t8sVz3gItZpm&r=1&t=1299677838&u=& ....   44
> Mb 1h 24m 56s 
>  http://s56.videobb.com/s2?v=obSt3vOWf0cd&r=1&t=1299677906&u= ....   71
> Mb 1h 23m 57s 
>  http://s68.videobb.com/s2?v=LMiY4UGsGhMy&r=1&t=1299677969&u= ....   30
> Mb 1h 22m 24s 
> 
> 2. Since, I'm shapping or throlling the user's speed to 512kbits then
> all traffic coming in is hogging my line.
> 
> I thought that when an established connection was being throttle that my
> gateway will be the "manager" for this connection and as a result it
> would control the speed at what the server is serving the file to the
> user in my lan.
> 
> This is an user or two that's hogging my line imagine when 30 or more
> are connected simultanously.
> 
> I'm thinking of installing a mikrotik to balance our 3 5mbps lines and
> throtle connections like that to 100kbits... 
> 
> What can I really do to fix this? 
> 
> Thanks in advanced for your time and help.


It looks like the problem have something to do with squid configuration.
What I think is hapenning is that when a user requests a big file squid
tries to dowload it as fast as possible using all the bandwidth
available causing this the hogging on the line. I had the
max_object_size to 512MB I changed it to 64MB to check if that might
ease the problem but, I don't see any changes. What config option should
I change to prevent squid to download the file as fast as is doing now?

Or 

Could it be something else?

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: My ongoing problem
  2011-03-10 12:50 ` Optimum Wireless Services
@ 2011-03-10 17:49   ` Andrew Beverley
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Beverley @ 2011-03-10 17:49 UTC (permalink / raw)
  To: wilson; +Cc: netfilter

On Thu, 2011-03-10 at 08:50 -0400, Optimum Wireless Services wrote:
> On Wed, 2011-03-09 at 11:24 -0400, Optimum Wireless Services wrote:
> > Hi guys.
> > 
> > Today I noticed something that might be the answer to why my internet
> > connection tends to get slow from time to time.
> > 
> > tcviewer shows:
> > 
> >  2:1251               <  512000bit -  614000bit >    576.8 kbit/s
> > ( 49pps)
> >  2:1067               <  512000bit -  614000bit >    430.5 kbit/s
> > ( 39pps)
> >  2:1013               <  512000bit -  614000bit >    155.5 kbit/s
> > ( 21pps)
> >  2:961                <  512000bit -  512000bit >     38.2 kbit/s
> > ( 42pps)
> >  2:1101               <  512000bit -  614000bit >     34.9 kbit/s  (
> > 7pps)
> >  2:1155               <  512000bit -  614000bit >      6.2 kbit/s  (
> > 1pps)
> >  2:1345               <  512000bit -  614000bit >      4.5 kbit/s  (
> > 4pps)
> >  2:1211               <  512000bit -  614000bit >      3.0 kbit/s  (
> > 1pps)
> >  2:1003               <  512000bit -  614000bit >      2.2 kbit/s  (
> > 1pps)
> > 
> > 
> > which means not many users are really online.
> > 
> > iptraf shows that my WAN interface is almost maxed to 14580kbits/sec and
> > my internal iface traffic is only at 1673kbits/sec which tells me that:
> > 
> > 1. traffic passing through squid (checked the access.log) and is showing
> > traffic to the user with 2:1251 class:
> > 
> > 172.16.100.139   
> >  http://s9.videobb.com/s2?v=t8sVz3gItZpm&r=1&t=1299677838&u=& ....   44
> > Mb 1h 24m 56s 
> >  http://s56.videobb.com/s2?v=obSt3vOWf0cd&r=1&t=1299677906&u= ....   71
> > Mb 1h 23m 57s 
> >  http://s68.videobb.com/s2?v=LMiY4UGsGhMy&r=1&t=1299677969&u= ....   30
> > Mb 1h 22m 24s 
> > 
> > 2. Since, I'm shapping or throlling the user's speed to 512kbits then
> > all traffic coming in is hogging my line.
> > 
> > I thought that when an established connection was being throttle that my
> > gateway will be the "manager" for this connection and as a result it
> > would control the speed at what the server is serving the file to the
> > user in my lan.
> > 
> > This is an user or two that's hogging my line imagine when 30 or more
> > are connected simultanously.
> > 
> > I'm thinking of installing a mikrotik to balance our 3 5mbps lines and
> > throtle connections like that to 100kbits... 
> > 
> > What can I really do to fix this? 
> > 
> > Thanks in advanced for your time and help.
> 
> 
> It looks like the problem have something to do with squid configuration.
> What I think is hapenning is that when a user requests a big file squid
> tries to dowload it as fast as possible using all the bandwidth
> available causing this the hogging on the line. I had the
> max_object_size to 512MB I changed it to 64MB to check if that might
> ease the problem but, I don't see any changes. What config option should
> I change to prevent squid to download the file as fast as is doing now?

How are you marking packets from Squid? Remember that Squid's data will
pass through the OUTPUT chain, whereas all other data will pass through
the FORWARD chain, so I expect that your packets from Squid are not
being marked.

Andy



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-10 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 15:24 My ongoing problem Optimum Wireless Services
2011-03-10 12:50 ` Optimum Wireless Services
2011-03-10 17:49   ` Andrew Beverley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox