LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Traffic shaping and balance (https://www.linuxquestions.org/questions/linux-networking-3/traffic-shaping-and-balance-513855/)

gepas 12-26-2006 03:19 PM

Traffic shaping and balance
 
Hello,

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.

Thanks !

chrisortiz 12-26-2006 06:10 PM

we are going to need more information on how your network is configured.

gepas 12-26-2006 06:29 PM

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.

hope it is clearer a bit :)

chrisortiz 12-27-2006 04:00 PM

what i mean to ask is, how do does your isp determine what traffic is local? as in what protocol?

gepas 12-28-2006 03:27 PM

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.

thanks :)

chrisortiz 12-28-2006 10:03 PM

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

gepas 01-03-2007 06:17 AM

OK, here is in deeper details my setup:

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?

Thanks very much in advance!

chrisortiz 01-03-2007 07:01 PM

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
Code:

route add xxx.xxx.xxx.xx subnet xxx.xxx.xxx.xxx GW xxx.xxx.xxx.xxx
the gateway address is the next hop in the route

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.

gepas 01-04-2007 02:42 AM

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...

Thanks

chrisortiz 01-06-2007 08:07 PM

Sorry i thought you meant you wanted to control which traffic goes where.
http://lartc.org/
That should be what you are looking for.


All times are GMT -5. The time now is 01:08 PM.