Skip to contentSkip to conversation

Bandwidth Allocation...

LARTC Esteban Wagner 2 participants 3 messages May 13, 2004 – May 24, 2004

lore
Share & tools
lore
#0 lore raw

Im configuring a server, to provide internet to 5 machines, with a dsl
connection.

I m not in familiar with bandwidth shaping, so Im going to start reading about it.

What Im looking is something which let me assign the bandwidth in a dynamic way.(dynamic bandwidth allocation).

For example:

If I assign X bandwidht to each PC.(equal), and Pc1 is not using the %100 of the bandwidht assigned, I want the others PC in the network to be able to use the bandwidth PC 1 is not using.

Please let me know if this is possible.
If it is possible which HOWTO should i start reading?.And what tools do i need.

Considering I understand networks basics, and have experience on linux.

Thanks.
Wagner Esteban.

#1 lore raw

Hi,

I'm fairly new to this too, but if I understand correctly, you can do this with htb.

tc qdisc add dev eth0 root handle 1: htb

tc class add dev eth0 parent 1: classid 1:1 htb rate <your total bandwidth>

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbit tc class add dev eth0 parent 1:1 classid 1:11 htb rate 128kbit

tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.1 flowid 1:10
tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.2 flowid 1:11

It is my understanding that as long as these classes don't have a leaf they will share excess bandwidth.

Anyone else want to comment?

Thanks,
Gerry

Quoted 32 lines · Esteban Wagner

Im configuring a server, to provide internet to 5 machines, with a
dsl connection.

I m not in familiar with bandwidth shaping, so Im going to start reading about it.

What Im looking is something which let me assign the bandwidth in a dynamic way.(dynamic bandwidth allocation).

For example:

If I assign X bandwidht to each PC.(equal), and Pc1 is not using the %100 of the bandwidht assigned, I want the others PC in the network to be able to use the bandwidth PC 1 is not using.

Please let me know if this is possible.
If it is possible which HOWTO should i start reading?.And what tools do i need.

Considering I understand networks basics, and have experience on linux.

Thanks.
Wagner Esteban.

_________________________________________________________________
<http://www.incredimail.com/redir.asp?ad_id10&lang>
/IncrediMail/ - *El Email ha evolucionado finalmente* - *_Haga clic aquí_* <http://www.incredimail.com/redir.asp?ad_id10&lang>

Signature · 11 lines
Gerry Weaver

IT-Pro Corp.

Office: (254) 883-9040
Mobile: (512) 663-9550
Fax   : (254) 883-9041

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Esteban Wagner

Hi,

Sorry, I forgot something. I didn't add the "ceil" parameter.

tc qdisc add dev eth0 root handle 1: htb

tc class add dev eth0 parent 1: classid 1:1 htb rate <your total bandwidth>

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbit ceil <your total bandwidth>
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 128kbit ceil <your total bandwidth>

tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.1 flowid 1:10
tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.2 flowid 1:11

Thanks,
Gerry

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/