bandwith problem

Networking, Wireless Routers (802.11 a/b/g/n/ac/ax WiFi), NAT, LAN configuration, equipment, cabling, hubs, switches, and general network discussion
Post Reply
albertldee
Regular Member
Posts: 261
Joined: Thu Jul 18, 2002 4:20 am

bandwith problem

Post by albertldee »

i'm running a internet cafe sometime we have a few customer that does mostly download with a program name ares i notice when the downloading it use up most of the bandwith which cause the other computer to run slowly or none at all when browsing the internet, i'm looking for some advise how to fix this problem without affecting my customer i have 23 computer all on a workgroup with modem->router->24 port switch is there any bandwith manager or packey shaper u reccomend
User avatar
YeOldeStonecat
SG VIP
Posts: 51171
Joined: Mon Jan 15, 2001 12:00 pm
Location: Somewhere along the shoreline in New England

Post by YeOldeStonecat »

With an internet cafe I'd want a router that can:
*Handle many concurrent connections
*Have excellent traffic shaping/QoS services.

PFSense would be my first choice.
MORNING WOOD Lumber Company
Guinness for Strength!!!
albertldee
Regular Member
Posts: 261
Joined: Thu Jul 18, 2002 4:20 am

Post by albertldee »

is there any router u recommend anyone
User avatar
YeOldeStonecat
SG VIP
Posts: 51171
Joined: Mon Jan 15, 2001 12:00 pm
Location: Somewhere along the shoreline in New England

Post by YeOldeStonecat »

I'd look at some of the Netgate models here and use PFSense on them
http://www.netgate.com/index.php?cPath=60_85

In my experience, any off the shelf retail router for under 200 dollars will not be even close to giving your the performance and features of PFSense. You'll be getting performance and features of a full enterprise router that would cost you well over 5 thousand bucks.
MORNING WOOD Lumber Company
Guinness for Strength!!!
albertldee
Regular Member
Posts: 261
Joined: Thu Jul 18, 2002 4:20 am

Post by albertldee »

hi i'm getting a PACKETEER PACKETSHAPER 2500 VERSION 6.2.1 for $125 will this do the trick will it fix my problem
User avatar
YeOldeStonecat
SG VIP
Posts: 51171
Joined: Mon Jan 15, 2001 12:00 pm
Location: Somewhere along the shoreline in New England

Post by YeOldeStonecat »

A packet shaper will help. Not familiar with that one, have heard the brand. Also the horsepower of your current router, if you'll be using that in addition to your shaper, is a big factor.
MORNING WOOD Lumber Company
Guinness for Strength!!!
lucifercipher
Member
Posts: 22
Joined: Sun Jul 19, 2009 11:47 am

Post by lucifercipher »

Why buy hardware packet shaper when you can do the same better using Linux ? Just install linux and use packet shaper ( shaper script )


#!/bin/sh

### To Debug the Script just uncomment the following line ###

#set -x

### Defininf Variables ###

# Should this script ECHO all IP's with their Restricted Bandwidth Rates (1=yes | 0=no)
ech="0"

# Directory containing File of IP's
DIR="/users"

# Path to File Containing MAC and IP's of All users
IP_MAC="$DIR/mac.addresses"

# File Containing IP's only
FILE="$DIR/ips.allowed"

# Copying All IP's from IP_MAC FILE to FILE
cat $IP_MAC | awk '{print $2}' > $FILE

# Default Download Rate
DRATE="100kbit"

# Default Download Weight (usually DRATE/10)
DWEIGHT="10kbit"

# Default Upload Rate
URATE="100kbit"

# Default Upload Weight (usually URATE/10)
UWEIGHT="10kbit"

# Interface Connected to NETWORK
NETWORK="eth0"

# Path to executable of TC
TC="/sbin/tc"

###################################################################
###################################################################
### ###
### Dont Edit Any thing Below this line ###
### ###
###################################################################
###################################################################

start() {
echo "Clearing all previous qdisc's ..."

$TC qdisc del dev $NETWORK root &> /dev/null
$TC qdisc del dev $NETWORK ingress &> /dev/null

### Starting Bandwidth Shaping Process...###

### Creating Qdiscs and classes for Download and Upload ###

$TC qdisc add dev $NETWORK root handle 10: cbq bandwidth 10Mbit avpkt 1000
$TC class add dev $NETWORK parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000

$TC qdisc add dev $NETWORK handle ffff: ingress

ech_check() {
if [ "$ech" = "1" ]; then
echo IP Address $ipcheck Interface $NETWORK Restricting Download / Upload Bandwidht to $DRATE/$URATE
fi
}

DID=10
ID=600
for ipcheck in `cat $FILE`
do

### Creating Classes for Download and Upload ###
$TC class add dev $NETWORK parent 10:1 classid 10:$DID cbq bandwidth 10Mbit rate $DRATE allot 1514 weight $DWEIGHT prio 8 maxburst 20 avpkt 1000 bounded

### Creating Netfilter u32 Rules ###
$TC filter add dev $NETWORK parent 10:0 protocol ip prio 200 u32 match ip dst $ipcheck flowid 10:$DID
$TC filter add dev $NETWORK parent ffff: protocol ip prio 500 u32 match ip src $ipcheck police rate $URATE burst 32k mtu 1500 drop flowid :1

ech_check

DID=`expr $DID + 1`
ID=`expr $ID + 1`

done
}

stop() {
$TC qdisc del dev $NETWORK root &> /dev/null
$TC qdisc del dev $NETWORK ingress &> /dev/null
}

refresh() {
stop
sleep 1
start
}

case "$1" in

start)
echo "Starting Bandwidth Shaping."
start
echo "Done..."
;;

stop)
echo "Stopping Bandwidth Shaping."
stop
echo "Bandwidth Shapping Stopped..."
;;

refresh)
echo "Refreshing Bandwidth Shaping Rules."
refresh
echo "Done..."
;;

*)
pwd=$(pwd)
echo "Usage: Shaper {start | stop | refresh}"
;;
esac

exit 0
radha65
New Member
Posts: 2
Joined: Thu Jul 23, 2009 4:48 am

Post by radha65 »

If you face bandwidth problem then please try downloading the file after a day or two.

I guess esnips has alloted bandwidths to files and as many people are downloading the same file the alloted bandwidth for that file has exceeded. You can still download other files that have not exceeded their bandwidths ..you can get the ip speed from at free of cost.
Post Reply