Traffic shaping an apartment building
Hi,
I live in a rural community where adsl and cable is not widely available. I correctly have an option of using adsl or cable at my location. Ten miles away my friends apartment building has no option of cable or adsl. I set-up a wireless link between my friends apartment building and my house. It works great for him and me and the adsl company doesn't care because they don't cover the area and we aren't going over our bandwidth allotments.
Old setup:
ADSL (dynamic) | NAT linux box ( inside 192.168.1.0) (486s) | My internal network (192.168.1.0) (Just a small network really!) | Wireless radio (192.168.1.0) | Wireless radio (192.168.1.0) | His internal network (192.168.1.0)
We have been using this set-up for few months and we share the bandwidth and he paid the costs of wireless radios. His apartment got wind what we are doing and want a connection. To make a long story short we want to run a cable to the phone room and then up to each apartment so logistically we can do it. However, I am not interested in giving everyone in this apartment a full connection speed connection to the internet. I don't know them. :-)
I have set-up a redhat 7.2 box /w 2.4.7 kernel all the stuff I need seems to be in built-in the kernel. Reading the list archives I setup a proxy-arp bridge and its been working fine.
ADSL (dynamic) | NAT linux box ( inside 192.168.1.0) (486s) | My internal network (192.168.1.0) (Just a small network really!) | Redhat 7.2 box 2.4.7 (Proxy-arp with 2 nics) | Wireless radio (192.168.1.0) | Wireless radio (192.168.1.0) | His internal network (192.168.1.0)
I had look at http://www.docum.org/ and http://ds9a.nl/lartc/. I just not sure what I need to do next I have read the documents at the latter and it seems confusing to me. What I would like to do is give almost everyone in the apartment a 64k connection with exception of my friends machines (384k) and apartment manager machine (384k).
Allen Armstrong
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 41 lines · Allen Armstrong
Hi,
I live in a rural community where adsl and cable is not widely available. I correctly have an option of using adsl or cable at my location. Ten miles away my friends apartment building has no option of cable or adsl. I set-up a wireless link between my friends apartment building and my house. It works great for him and me and the adsl company doesn't care because they don't cover the area and we aren't going over our bandwidth allotments.
Old setup:
ADSL (dynamic) NAT linux box ( inside 192.168.1.0) (486s) My internal network (192.168.1.0) (Just a small network really!) Wireless radio (192.168.1.0) Wireless radio (192.168.1.0) His internal network (192.168.1.0)We have been using this set-up for few months and we share the bandwidth and he paid the costs of wireless radios. His apartment got wind what we are doing and want a connection. To make a long story short we want to run a cable to the phone room and then up to each apartment so logistically we can do it. However, I am not interested in giving everyone in this apartment a full connection speed connection to the internet. I don't know them. :-)
I have set-up a redhat 7.2 box /w 2.4.7 kernel all the stuff I need seems to be in built-in the kernel. Reading the list archives I setup a proxy-arp bridge and its been working fine.
ADSL (dynamic) NAT linux box ( inside 192.168.1.0) (486s) My internal network (192.168.1.0) (Just a small network really!) Redhat 7.2 box 2.4.7 (Proxy-arp with 2 nics) Wireless radio (192.168.1.0) Wireless radio (192.168.1.0) His internal network (192.168.1.0)
Quoted 5 lines
I had look at http://www.docum.org/ and http://ds9a.nl/lartc/. I just not sure what I need to do next I have read the documents at the latter and it seems confusing to me. What I would like to do is give almost everyone in the apartment a 64k connection with exception of my friends machines (384k) and apartment manager machine (384k).
I have a better idea. ;-)
You can give erveyone the full bandwith. But if you your friend is downloading (or you), he gets more bandwith. I think that's more fair then limiting everyone to 64k.
And I suggest you use HTB and CBQ. But you will have to patch the kernel and iproute to do so.
You can do it with CBQ, but it's much more complicated.
What kind of upload/download do you have on the ADSL link and the wireless radio?
Stef
Signature · 8 lines
[email protected] More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager" _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 40 lines
-----Original Message-----
From: Stef Coene [mailto:[email protected]]
Sent: December 27, 2001 2:20 AM
To: Allen Armstrong; [email protected]
Subject: Re: [LARTC] Traffic shaping an apartment buildingQuoted 3 lines · Allen Armstrong
Hi,
I live in a rural community where adsl and cable is not
widely available.
Quoted 1 line
I correctly have an option of using adsl or cable at my
location. Ten
Quoted 1 line
miles away my friends apartment building has no option of
cable or adsl. I
Quoted 1 line
set-up a wireless link between my friends apartment
building and my house.
Quoted 1 line
It works great for him and me and the adsl company doesn't
care because
Quoted 13 lines
they don't cover the area and we aren't going over our bandwidth allotments.
Old setup:
ADSL (dynamic) NAT linux box ( inside 192.168.1.0) (486s) My internal network (192.168.1.0) (Just a small network really!) Wireless radio (192.168.1.0) Wireless radio (192.168.1.0) His internal network (192.168.1.0)Quoted 1 line
We have been using this set-up for few months and we share
the bandwidth
Quoted 1 line
and he paid the costs of wireless radios. His apartment
got wind what we
Quoted 1 line
are doing and want a connection. To make a long story
short we want to run
Quoted 1 line
a cable to the phone room and then up to each apartment so
Quoted 21 lines
logistically we
Quoted 2 lines
can do it. However, I am not interested in giving everyone in this apartment a full connection speed connection to the
internet. I don't know
Quoted 3 lines
them. :-)
I have set-up a redhat 7.2 box /w 2.4.7 kernel all the
stuff I need seems
Quoted 13 lines
to be in built-in the kernel. Reading the list archives I setup a proxy-arp bridge and its been working fine.
ADSL (dynamic) NAT linux box ( inside 192.168.1.0) (486s) My internal network (192.168.1.0) (Just a small network really!) Redhat 7.2 box 2.4.7 (Proxy-arp with 2 nics) Wireless radio (192.168.1.0) Wireless radio (192.168.1.0) His internal network (192.168.1.0)I had look at http://www.docum.org/ and
http://ds9a.nl/lartc/. I just not
Quoted 3 lines
sure what I need to do next I have read the documents at the latter and it seems confusing to me. What I would like to do is give almost everyone in the apartment a 64k connection with exception of my friends machines
(384k)
Quoted 5 lines
and apartment manager machine (384k).
Quoted 3 lines
I have a better idea. ;-)
You can give erveyone the full bandwith. But if you your friend is downloading (or you), he gets more bandwith. I think that's more fair
then
Quoted 1 line
Quoted 1 line
limiting everyone to 64k.
I thought of that but the people at this apartment are cheap. :( I was going to charge them 10$ a month X 20 to cover the cost of the access and to recover the cost of the wireless equipment. If they pay more I will up their rate. Our eventual goal is get them on their own dsl modem.
Quoted 1 line
Quoted 1 line
And I suggest you use HTB and CBQ. But you will have to patch the kernel
and
Quoted 3 lines
Quoted 3 lines
iproute to do so.
You can do it with CBQ, but it's much more complicated.
I hear a lot about the buzzword CBQ. What do I if I wish to follow the CBQ route? Do I have to re-compile my stock Redhat 7.2 kernel? Everything looks like it is a module when it comes to QOS in this kernel. QOS is all new to me but Linux and routing isn't. :) Tomorrow I am going to re-read the sections on both sites again.
Quoted 1 line
Quoted 1 line
What kind of upload/download do you have on the ADSL link and the
wireless
Quoted 1 line
Quoted 1 line
radio?
When we first did the link we didn't get that good transfer rates 64-128 k, he slapped another 2000$ for some Amps now we are getting about 6 meg link reliably. The ADSL I am getting 3 megs down 512 k up.
Allen Armstrong
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Hi,
I recomend you to use HTB.
It's prety simple and easy to configure
http://luxik.cdi.cz/~devik/qos/htb/htbman.htm
Quoted 54 lines
Hi,
I live in a rural community where adsl and cable is not widely available. I correctly have an option of using adsl or cable at my location. Ten miles away my friends apartment building has no option of cable or adsl. I set-up a wireless link between my friends apartment building and my house. It works great for him and me and the adsl company doesn't care because they don't cover the area and we aren't going over our bandwidth allotments.
Old setup:
ADSL (dynamic) | NAT linux box ( inside 192.168.1.0) (486s) | My internal network (192.168.1.0) (Just a small network really!) | Wireless radio (192.168.1.0) | Wireless radio (192.168.1.0) | His internal network (192.168.1.0)We have been using this set-up for few months and we share the bandwidth and he paid the costs of wireless radios. His apartment got wind what we are doing and want a connection. To make a long story short we want to run a cable to the phone room and then up to each apartment so logistically we can do it. However, I am not interested in giving everyone in this apartment a full connection speed connection to the internet. I don't know them. :-)
I have set-up a redhat 7.2 box /w 2.4.7 kernel all the stuff I need seems to be in built-in the kernel. Reading the list archives I setup a proxy-arp bridge and its been working fine.
ADSL (dynamic) | NAT linux box ( inside 192.168.1.0) (486s) | My internal network (192.168.1.0) (Just a small network really!) | Redhat 7.2 box 2.4.7 (Proxy-arp with 2 nics) | Wireless radio (192.168.1.0) | Wireless radio (192.168.1.0) | His internal network (192.168.1.0)I had look at http://www.docum.org/ and http://ds9a.nl/lartc/. I just not sure what I need to do next I have read the documents at the latter and it seems confusing to me. What I would like to do is give almost everyone in the apartment a 64k connection with exception of my friends machines (384k) and apartment manager machine (384k).
Quoted 5 lines
Allen Armstrong
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines
I have a better idea. ;-)
You can give erveyone the full bandwith. But if you your friend is downloading (or you), he gets more bandwith. I think that's more fairthen
Quoted 1 line
Quoted 1 line
limiting everyone to 64k.
I thought of that but the people at this apartment are cheap. :( I was going to charge them 10$ a month X 20 to cover the cost of the access and to recover the cost of the wireless equipment. If they pay more I will up their rate. Our eventual goal is get them on their own dsl modem.
You still can use the same setup as I described. They can share the bandwidth between each other, but there is a maximum. If they pay more, you increase the maximum:
root qdisc
bounded class with rate = 3meg
class for the 'manager' : rate = 384K
class for the other appartments : rate = 3meg - 348k
class 1 for appartment 1 : rate = 64k
class 2 for appartment 2 : rate = 64k
...
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
And I suggest you use HTB and CBQ. But you will have to patch the kernel
and
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
iproute to do so.
You can do it with CBQ, but it's much more complicated.I hear a lot about the buzzword CBQ. What do I if I wish to follow the CBQ route? Do I have to re-compile my stock Redhat 7.2 kernel? Everything looks like it is a module when it comes to QOS in this kernel. QOS is all new to me but Linux and routing isn't. :) Tomorrow I am going to re-read the sections on both sites again.
I suppose you mean "What do I if I wish to follow the HTB". Indeed, you will have to download the kernel source and iproute and patch it for HTB. But that's not so difficult. Maybe that
redhat allready prepatched his kernel for htb, I don't know.
Stef
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
What kind of upload/download do you have on the ADSL link and the
wireless
Quoted 1 line
Quoted 1 line
radio?
When we first did the link we didn't get that good transfer rates 64-128 k, he slapped another 2000$ for some Amps now we are getting about 6 meg link reliably. The ADSL I am getting 3 megs down 512 k up.
Signature · 8 lines
[email protected] More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager" _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/