Shaping

MrJones

Senior Member
Joined
Mar 15, 2004
Messages
945
I've been thinking about it I think that sentech needs to the following.

I'm on the 128 Package.
Sentech needs to increase there international bandwidth for browser speeds. When I load a page, I want to see it. I won't have any problem if they shaped FTP and P2P for downloads, cause (Theoretically) its an always on connection and the stuff can download while I'm at work. I only get 4%-8% signal, but it only disconnects about once a day on a good day, and 4 times on a bad day.



Telkom who?
 

loosecannon

Senior Member
Joined
Jul 27, 2004
Messages
731
this is a contentious issue but if done resposibly will benefit us all i belive any ISP must shape there traffic i have even done this at home

3 pools ...
1)50% of bandwidth highest priority http/ssh/dns ....
2)30% lower priority ftp ....
3)20% lowest priority p2p/kids ....

now if the line is free p2p can use all the BW but shrinks to its allotment when HTTP/FTP start ...
it has improved my performance ... of course i cap my line at64kbs as sentech dont give us more than this ... was 48kbs until this week
 

James

Expert Member
Joined
May 26, 2004
Messages
2,617
Don't shout at me cause this is a long article. Very infomative!!!!

No matter how fat your incoming Internet connection, someone will always find a way to hog it and leave the rest of your users wishing for faster methods of communication, like carrier pigeons, or messages in bottles. Having an acceptable use policy is the first step; after that, you are justified in beating offenders with sticks.

When you are rested up from administering beatings, another good idea is to implement bandwidth limiting, making it impossible for bandwidth hogs to monopolize the connection in the first place. I know, you need to integrate physical activity into your work as much as possible, for health reasons. At the least you should know what your options are, and beatings are not always possible -- for example, when the boss is the hog.

Real-life example: A friend had a boss who spent all day surfing porn. The good news was it kept him out of the way. The bad news was his porn surfing saturated their 256k DSL, so the actual business of the company was impaired. (Actual work, what a concept.) So my friend implemented Squid's delay pools, throttling the boss to a bare minimum. My friend cannily blamed increased sales and business activity, and got the boss to authorize a dedicated T1. So everyone finally got the bandwidth they needed.

(For those of you going "OMG why didn't he tell human resources, or confront the boss, or call the cops, or something" all I can say is, you weren't there. So don't ask.)

Squid Throttles Hogs
The Squid http proxy/caching server has an ingenious feature called delay pools. The excellent O'Reilly book "Squid: The Definitive Guide" calls them "bandwidth buckets," which is a pretty good analogy. You, the ace admin, configure so much maximum available bits per second. This allows users to "save up" bandwidth if they don't use the maximum, and it makes some burst speeds available. When a burst empties the "bucket," they're limited to the fill rate. So it rewards thrifty users, and puts the brakes on hogs.

The bad news: If your Squid proxy was not compiled with --enable-delay-pools, you will have to recompile and reinstall it. The other bad news: Using Squid's delay pools, which operate at the application layer, is not as precise as using something that operates at the transport layer, like tc, which is part of iproute2. The delay pools operate on bytes per second, not packets. The good news is it's a whole lot simpler to use, especially if you already use Squid.

There are three types of buckets:


Class 1 pool: A single aggregate bucket, shared by all users
Class 2 pool: One aggregate bucket, 256 individual buckets
Class 3 pool: One aggregate bucket, 256 network buckets, 65,536 individual buckets
One common gotcha is getting confused on bucket sizes. Clients are limited by the size of the smallest bucket, so you don't want to make the aggregate bucket smaller than its downstream buckets.

squid.conf Directives
Now let the fun begin. squid.conf is where our exciting delay pool configuration takes place.


delay_pools defines how many pools we want to use.
delay_class tells which type of pool is being used.
delay_parameters sets our restrictions, fill rate/maximum bucket size.
This is what a simple configuration looks like:

########Delay Pools#########
# a simple global throttle, users sharing 256 Kbit/s
delay_pools 1
delay_class 1 1
# 256 Kbit/s fill rate, 1024 Kbit/s reserve
delay_parameters 1 32000/128000
acl All src 0/0
delay_access 1 allow All




The delay_parameters values are bytes, so if you're used to measuring bandwidth speed in bits per second, remember to divide bits by 8.

acl All src 0/0 creates an access rule named All, and it includes the entire IP range.

delay_access 1 allow All tells which requests go through which pools.

This configuration places no limitations on individual users; all users share the same bucket. During idle times, Squid will "refill" the bucket, allowing greater-than-256 Kbit/s speed, until the 1024 Kbit/s "reserve" is consumed. Then users are limited to sharing the 256 Kbit/s "fill" rate. You might use this to reserve bandwidth for other applications on an overburdened link. For example, if you have an important application, mail, or Web server that needs a little elbow room, route all your Web surfin' slackers through Squid, and let your servers roam free.


There is no peace without war!!!
 

CoR

Member
Joined
May 22, 2004
Messages
11
"No matter how fat your incoming Internet connection, someone will always find a way to hog it and leave the rest of your users wishing for faster methods of communication"

WHAT THE!!!!!!
Tell that story to any1 with a simple DSL connection in any other country and they will laugh!!!
How can you put the blame squarely on the shoulders of a 'select' few that "hog"???
Makes no sense...

"There are three types of buckets:"

LOL classic!!!
Anyways, I personally don't think it should be up to the paying customers to give Scamtech any alternatives to a working internet connection!!!!!!
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
...if they only used squid...


Hell, my gran on a scooter with a memory stick is faster than Sentech's MyWireless!
 

James

Expert Member
Joined
May 26, 2004
Messages
2,617
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by CoR</i>
<br />"No matter how fat your incoming Internet connection, someone will always find a way to hog it and leave the rest of your users wishing for faster methods of communication"

WHAT THE!!!!!!
Tell that story to any1 with a simple DSL connection in any other country and they will laugh!!!<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Well the article came from the states *me thinks they first world and have loads of bandwidth*

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">How can you put the blame squarely on the shoulders of a 'select' few that "hog"???
Makes no sense...<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Easy that is how it works. Without contention and shaping 1 user downloading could kill the whole network, make a bit of sense now

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">"There are three types of buckets:"

LOL classic!!! <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

I can see how this could be funny... No wait I can't, what is your point here???

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Anyways, I personally don't think it should be up to the paying customers to give Scamtech any alternatives to a working internet connection!!!!!!<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Hmmmm, then why participate in a forum which activley tries to find ways in which sentech can better itself. There has already been a select few who have made suggestions and more in person with Sentech. There is nothing wrong with that. And if you really thing sentech has a "working internet connection!!!!!" I would hate to see your experience with a broken one.


There is no peace without war!!!
 

Ditch

Well-Known Member
Joined
Feb 23, 2004
Messages
208
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by CoR</i>
<br />"No matter how fat your incoming Internet connection, someone will always find a way to hog it and leave the rest of your users wishing for faster methods of communication"

WHAT THE!!!!!!
Tell that story to any1 with a simple DSL connection in any other country and they will laugh!!!
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
I read that article about squid delay pools before, it is aimed more at e.g. server admins on corporate networks or campus networks etc. It's not hard for one user in such an environment to hog bandwidth if there are no controls in place. The BW available on the internal network in these sorts of network is usually much higher than the outgoing BW at the gateway (e.g. typically 100Mbits or 1Gb internal but e.g. 256k or 128k out, possibly again contended), so any user downloading all the time via the proxy is theoretically going to be able to use up all the outgoing BW. This still sort of applies to consumer broadband networks but in general the situation is reversed in these networks: the connection between the end-user and the gateway has much lower BW than the gateway itself has onto the Internet. For e.g. your modem may have a maximum speed of 3Mbit to ST, but ST have something like 25Mbits out. So even xmitting at full speed (which we can't do on ST) you wouldn't be able to get anywhere near saturating ST's line just by yourself. But at only 25Mb, even just 2 or 3% of ST's users hogging BW can cause noticeable degradation to others.

Overseas where there is competition the economies of scale have been implemented differently, so a typical provider has tens or hundreds of thousands of flat-rate customers (rather than e.g. Telkom's approach of charging so much that they only sign up about 10K ADSL users). Most users don't use much bandwidth, so the combined income is enough to pay for a fat enough upstream pipe to be able to handle the relatively few users who use lots of BW. So these high-BW users don't end up causing the other users to suffer much at all. So overseas, the ST equivalents would presumably have more than 25Mb. Of course they'd have many more users too. Early adopters in SA also tend to be more likely to be high BW users.
 

James

Expert Member
Joined
May 26, 2004
Messages
2,617
Let me just clear something up here. I should have mensioned in my first port. This is just to give people who don't know an glimpse into equal sharing and how it gets divided. I am by no means saying ST must implement this or in any way use this. I am merely showing some people how bandwidth can get allocated "evenly" and that in the end a process such as this must be implemented and without it or even with a system that is just incorrectly configured can create huge problems.

There is no peace without war!!!
 
Top