LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-26-2006, 03:19 PM   #1
gepas
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Rep: Reputation: 0
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 !
 
Old 12-26-2006, 06:10 PM   #2
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
we are going to need more information on how your network is configured.
 
Old 12-26-2006, 06:29 PM   #3
gepas
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 12-27-2006, 04:00 PM   #4
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
what i mean to ask is, how do does your isp determine what traffic is local? as in what protocol?
 
Old 12-28-2006, 03:27 PM   #5
gepas
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 12-28-2006, 10:03 PM   #6
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
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
 
Old 01-03-2007, 06:17 AM   #7
gepas
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
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!
 
Old 01-03-2007, 07:01 PM   #8
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
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.

Last edited by chrisortiz; 01-03-2007 at 07:04 PM.
 
Old 01-04-2007, 02:42 AM   #9
gepas
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 01-06-2007, 08:07 PM   #10
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

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

Last edited by chrisortiz; 01-06-2007 at 08:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Traffic Shaping jrmann1999 Linux - Networking 3 10-23-2008 12:43 PM
Traffic Shaping SchwipSchwap Linux - Newbie 2 10-23-2008 12:42 PM
Traffic Shaping nemesisza Linux - Networking 1 03-21-2004 05:52 PM
Traffic Shaping ?? DocKane Linux - Networking 2 08-24-2001 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration