Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a small LAN and an Internet provider for it. The provider gives me fixed and guaranteed speeds like this:
local national traffic channel 15/8 Mb/s
international traffic channel 7/2 Mb/s
Up to now I don't use any shaper or traffic control, but now my users started to have problem - since the international upload channel is all the time busy at the max 2 Mb/s the users cannot use skype and game servers are lagging.
Please, I want to ask for help - how to shape these two channels and also shape separately the upload and download parts of them, in order not to observer the problem mentioned above.
The configuration is simple enough, Linux NAT router, iptables firewall, etc.
eth2 is internal LAN interface, eth1 is Internet provider interface with the speeds already mentioned.
The tricky thing here is that the provider gives us separate speeds for local national traffic (peering) and international. And in addition to these two, I also need to shape the upload/download within each of them.
My IP provider and also I determine which traffic is local by a set of fixed networks. It is known and updated regularly, every night I retrieve it automatically from a Web site.
My main pain is to shape separately the download and upload of my traffic.
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
ok, so your isp gives you one line with 2 channels. Are they v-lans or does your isp utilize a Multiplexer? Also what WAN technology are you using. ISDN bri,pri, frame relay, cable, dsl. etc
eth2 - internal LAN, network 192.168.1.0/23
eth1 - Internet provider through simple ethernet cable
Through eth1 my provider gives me the following speeds:
provider LAN - 100 Mb/s (unlimited)
local national traffic - 15/8 Mb/s
international traffic - 7/2 Mb/s
The words "channel" I use in virtual sense - my transmission media is 100 Mb/s and the local national and international speeds depend on to where you connect: if you connect to a Bulgarian (local) network than the speeds are as above, if the connection is not initiated to the predefined list of Bulgarian networks, then it is an international one and the speed limits are different and as above. Anyway, this speed limitation happens at my provider's shaper.
What I need to do for my network: to be able to shape the international download and upload.
Is it clearer now, can someone give some light on the issue?
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
thats what i was wanting to know. sounds like your isp uses network addresses or vlans to determine what is local and what isn't. You can add all the routes manually, or you can get together with your isp and use the same routing protocol they use and it will automagically route between the networks. To add a route manually use
You will need an entry for each network, whereas in using routing protocols you just need to set your box to recieve and send routing updates depending on what you want. However, i've never configured routing protocols on a linux machine.
I hope my answer helps you out.
Last edited by chrisortiz; 01-03-2007 at 07:04 PM.
Than you chrisortis for the reply.
The routing matter is not a problem for me, I have a file with the local networks, and I can play with the routes any way I want. What is my pain is the SHAPING of the traffic, that is balancing between my LAN users behind the NAT, and more precisely the shaping of the upload traffic. Now, that it is without any shaper and any of my users that uses heavy torrents puts heavy load on the upload channel, takes i talmost the whole for himself, and as a result the other users have problems with simpler tasks as playing online game servers that require much less upload...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.