LinuxQuestions.org
Visit Jeremy's Blog.
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 05-18-2005, 08:23 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
Traffic shaping works only on one interface


Ok, here is the situation. Linux box, that is connected to internet via ADSL line with 256kbps bandwith -> internal LAN behind it. I managed to limit the downloading speeds (internet ->linux -> internal lan) with CBQ and it _does_ work. The upload speeds (internal lan -> linux -> internet) however remains untouched. I use cbq.init script and here is what I get from the tc statistics:
# tc -s -d qdisc show dev eth0
Code:
 qdisc tbf 115: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 113: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 111: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 109: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
Sent: zero bytes, zero packets... If I take a look on eth1's stats I see real numbers different from 0 (zero).
Here are two example classes that I use:
cbq-112
Code:
DEVICE=eth1,10Mbit,1Mbit
RATE=40Kbit
WEIGHT=4Kbit
PRIO=5
RULE=10.10.10.8
cbq-113
Code:
DEVICE=eth0,10Mbit,1Mbit
RATE=40Kbit
WEIGHT=4Kbit
PRIO=5
RULE=10.10.10.8,
This upload shaping is very vital, becouse the ADSL line has very limited upload speeds (about 64kbps) and starts droping packets if that is exceeded.
 
Old 05-19-2005, 02:25 AM   #2
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
Hm, anyone?
If you don't know just tell me where I can recieve some help.. this problem is very harassing me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:09 AM
Traffic Shaping jrmann1999 Linux - Networking 3 10-23-2008 01:43 PM
Traffic Shaping SchwipSchwap Linux - Newbie 2 10-23-2008 01:42 PM
Traffic Shaping nemesisza Linux - Networking 1 03-21-2004 06:52 PM
Traffic Shaping ?? DocKane Linux - Networking 2 08-24-2001 10:32 AM

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

All times are GMT -5. The time now is 05:38 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