From: Andrew Beverley <andy@andybev.com>
To: wilson@optimumwireless.com
Cc: Marek Kierdelewicz <marek@piasta.pl>,
Michele Petrazzo - Unipex <michele.petrazzo@unipex.it>,
netfilter@vger.kernel.org
Subject: Re: How can I test my tc script?
Date: Sun, 06 Feb 2011 16:13:46 +0000 [thread overview]
Message-ID: <1297008826.1613.22.camel@andybev> (raw)
In-Reply-To: <1296958325.3695.15.camel@debian-laptop.OptimumWireless>
On Sat, 2011-02-05 at 22:12 -0400, Optimum Wireless Services wrote:
> Thank you all for replying and sorry for the late reply.
No problem.
> > Optimum Wireless Services - what is your aim? Do you really want to
> > limit bandwidth per user, or do you instead want to provide each user
> > with a fair share of bandwidth and fast internet access? If it is the
> > latter, you are better to not mark per user, but instead mark the
> > traffic type and use tc's hash functionality to share the bandwidth
> > between client IP address, rather than the default which is per
> > connection.
> >
>
> What I would love to do is offer "fast internet access" and at the same
> time sell packages to users: 512/128, 768/256, 1024/512, etc...
Well it is probably possible to achieve this, but I'd be tempted to say
that it's a little ambitious in your circumstances, given that you are
limited to a 15Mbps line.
> If an
> user has a specific package, I would like this user to have a nice
> internet experience with low pings, and little lagging and not
> 'interfere' with the other users (might be impossible).
>
> So, what I'm trying to do is not have issues with one user hogging our
> internet line.
Okay... well I'd recommend forgetting the different speeds per user to
keep things simpler, and instead concentrate on classifying your traffic
to offer *everyone* a fast experience.
>
> Dont know how a fair share bandwidth might work on our network since I
> have some users downloading p2p all day long.
There's various ways of classifying P2P: OpenDPI and L7-filter being 2
of them. However, I personally just use connlimit and ipset to look for
lots of connection to high port numbers. It probably wrongly classifies
some traffic, but I haven't had any complaints so far :)
>
> I've noticed that at peak times (7pm - 11pm) our internet service is so
> slow I'm embarrassed to even say.
There's your answer - you need to classify traffic. Even if you limit
everyone to, say, 1Mbps, you only need more than 15 users for it to slow
down again.
> Also, another thing I noticed (this one not time specific) when running
> iptraf is that my external interface measures almost our max/total
> bandwidth of 15Mbps and our internal interface is only at 4Mbps. So,
> that tells me that not much is passing through squid or there are some
> big time downloading going on.
Or that your tc setup is wrong... Did you try tc-viewer?
>
> So, to tell you the truth I don't know which way to go if limit bw per
> user or what. I'm just trying to keep our network running as smooth as
> possible.
Okay, well I've used a solution based on Jesper Dangaard Brouer's
excellent ADSL-Optimizer project. I classify traffic as: low-latency (eg
SSH), general (web, email), bulk (large downloads), other, and P2P. Each
of these are marked accordingly and then filtered into HTB.
I've started to document my stuff at
http://www.andybev.com/index.php/Fair_traffic_shaping_an_ADSL_line_for_a_local_network_using_Linux
but haven't finished yet. If you give me a couple of weeks I'll try and
get it updated.
Andy
next prev parent reply other threads:[~2011-02-06 16:13 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 2:17 How can I test my tc script? Optimum Wireless Services
2011-02-03 11:01 ` Marek Kierdelewicz
2011-02-03 14:13 ` Optimum Wireless Services
2011-02-03 15:06 ` Marek Kierdelewicz
2011-02-03 16:18 ` Optimum Wireless Services
2011-02-04 13:45 ` Optimum Wireless Services
2011-02-04 16:49 ` Optimum Wireless Services
2011-02-04 19:57 ` Optimum Wireless Services
2011-02-05 12:29 ` Andrew Beverley
2011-02-05 19:32 ` Marek Kierdelewicz
2011-02-05 19:29 ` Marek Kierdelewicz
2011-02-05 20:21 ` Marek Kierdelewicz
2011-02-06 0:05 ` Marek Kierdelewicz
2011-02-06 2:24 ` Optimum Wireless Services
2011-02-04 14:22 ` Michele Petrazzo - Unipex
2011-02-05 2:08 ` Andrew Beverley
2011-02-05 14:58 ` Marek Kierdelewicz
2011-02-05 16:37 ` Andrew Beverley
2011-02-05 16:48 ` good tutorial J Webster
2011-02-05 19:22 ` Andrew Beverley
2011-02-05 19:33 ` J Webster
2011-02-05 19:51 ` Bob Miller
2011-02-05 22:47 ` Andrew Beverley
2011-02-05 22:44 ` Andrew Beverley
2011-02-05 17:04 ` How can I test my tc script? Marek Kierdelewicz
2011-02-06 2:12 ` Optimum Wireless Services
2011-02-06 16:13 ` Andrew Beverley [this message]
2011-02-07 8:20 ` Michele Petrazzo - Unipex
2011-02-03 19:38 ` Andrew Beverley
2011-02-05 2:44 ` Optimum Wireless Services
2011-02-05 6:07 ` Optimum Wireless Services
2011-02-05 12:27 ` Andrew Beverley
2011-02-06 2:14 ` Optimum Wireless Services
2011-02-06 16:15 ` Andrew Beverley
2011-02-06 16:35 ` Optimum Wireless Services
2011-02-06 17:02 ` Andrew Beverley
2011-02-06 23:27 ` Optimum Wireless Services
2011-02-08 0:56 ` Andrew Beverley
2011-02-08 2:11 ` Optimum Wireless Services
2011-02-08 6:52 ` Andrew Beverley
2011-02-08 2:20 ` Optimum Wireless Services
2011-02-08 6:53 ` Andrew Beverley
2011-02-06 16:44 ` Marek Kierdelewicz
2011-02-06 23:31 ` Optimum Wireless Services
2011-02-08 0:58 ` Andrew Beverley
2011-02-05 12:35 ` Andrew Beverley
2011-02-06 2:17 ` Optimum Wireless Services
2011-02-06 15:54 ` Andrew Beverley
2011-02-06 16:28 ` Optimum Wireless Services
2011-02-06 17:11 ` Andrew Beverley
2011-02-06 23:33 ` Optimum Wireless Services
2011-02-08 1:01 ` Andrew Beverley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297008826.1613.22.camel@andybev \
--to=andy@andybev.com \
--cc=marek@piasta.pl \
--cc=michele.petrazzo@unipex.it \
--cc=netfilter@vger.kernel.org \
--cc=wilson@optimumwireless.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox