Skip to contentSkip to conversation

question re: longer-period fair sharing

LARTC Thomas Vander Stichele 3 participants 3 messages Oct 16, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I've been asked something I couldn't really give an answer to out of the box. Someone I know wants to do fair bandwidth sharing over long periods. The period would be related to the provider's capping period ;) So, for example, if five people share one connection, and the ISP allows 10 GB per month of traffic, each person could only use 2 GB per month, and be effectively turned off when passing that limit.

Now, my question is - has anyone done anything similar ? I'd think that this application would lean more to an approach that just does accounting by the hour,, for example, and turn off net access through firewall rules based on those values. Also, it would probably have to store intermediate accounting values to disk instead of keep everything in memory.

What do you guys think ?

Thomas

Signature · 12 lines
The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*-                      -*->
You think I'm scared of girls well maybe
but I'm not afraid of you
You want to scare me then you'll
cling to me no matter what I do
<-*- [email protected] -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/

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

Try using the iptables quota extension (works just fine here with iptables-1.2.6a).

Quoted 15 lines · Thomas Vander Stichele

Hi,

I've been asked something I couldn't really give an answer to out of the box. Someone I know wants to do fair bandwidth sharing over long periods. The period would be related to the provider's capping period ;) So, for example, if five people share one connection, and the ISP allows 10 GB per month of traffic, each person could only use 2 GB per month, and be effectively turned off when passing that limit.

Now, my question is - has anyone done anything similar ? I'd think that this application would lean more to an approach that just does accounting by the hour,, for example, and turn off net access through firewall rules based on those values. Also, it would probably have to store intermediate accounting values to disk instead of keep everything in memory.

Quoted 6 lines

What do you guys think ?

Thomas

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

#2 lore raw
In reply to Thomas Vander Stichele

Hi,

Try a VPN solution with RADIUS accounting for amount of bytes each user had transmit over the network.Radius protocol can do accounting bytes (octects actually) as well 'online' time.In that way,You can have multiple business policies for clients,one for kids,one for family,one for guests,etc...
This solution maybe enters some delay in TCP/IP protocol,but guarantee You secure connections (no more sniffing:),and You won't have possible trouble about filtering MAC addresses of malicius clients trying to forge their IP numbers if You have 'layer 3 accounting solution' :)
When they exceed the payed amount of bytes,simply that account won't be in use anymore :)

Hope this help :)

f2zubac

Quoted 15 lines · Thomas Vander Stichele

Hi,

I've been asked something I couldn't really give an answer to out of the box. Someone I know wants to do fair bandwidth sharing over long periods. The period would be related to the provider's capping period ;) So, for example, if five people share one connection, and the ISP allows 10 GB per month of traffic, each person could only use 2 GB per month, and be effectively turned off when passing that limit.

Now, my question is - has anyone done anything similar ? I'd think that this application would lean more to an approach that just does accounting by the hour,, for example, and turn off net access through firewall rules based on those values. Also, it would probably have to store intermediate accounting values to disk instead of keep everything in memory.

Quoted 20 lines

What do you guys think ?

Thomas

Signature · 12 lines
The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*-                      -*->
You think I'm scared of girls well maybe
but I'm not afraid of you
You want to scare me then you'll
cling to me no matter what I do
<-*- [email protected] -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/

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

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