LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-24-2008, 01:26 PM   #1
05020241
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
A question regarding traffic shaping involving tc-tbf and tc-sfq


Hello all,

I am trying to shape network traffic on an interface (100Mbps) which should only permit 1.5Mbps bandwidth and has sfq filter attached to it. I have used the following tc qdiscs.

$ tc qdisc replace dev eth2 root handle 1: tbf rate 1mbit burst 8kb limit 4096kb peakrate 1.5mbit minburst 1540
$ tc qdisc add dev eth2 parent 1:1 sfq perturb 10 quantum 1514

The problem is that apparently, the bandwidth is not being reduced with the above-mentioned setup. When I have just the token bucket installed, my experiments show that the download rate is far slower than the case when these are rules are used.

What am I doing wrong? Thanks in advance.

--Asim
 
Old 06-24-2008, 03:22 PM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
I'm not sure?

I had quite a hard time until I realized that I can only control outbound.

If I try to control inbound, I only 'punish' my self - no control there.

It it helps at all :-(

Now I'm happy with sfq and hfsc and arno's AIF... for a while.
 
Old 06-24-2008, 08:58 PM   #3
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
Quote:
Originally Posted by SCerovec View Post
I'm not sure?

I had quite a hard time until I realized that I can only control outbound.

If I try to control inbound, I only 'punish' my self - no control there.

It it helps at all :-(

Now I'm happy with sfq and hfsc and arno's AIF... for a while.
This.

You can't listen slowly, you can only talk slowly.

You can't control the inbound rate of traffic easily, in a lot of cases you can't control inbound rates at all. This is the age old forum post about the housemates in a house trying to limit each person so they don't overcrowd each other's net usage. It's simply (virtually) impossible.

When a host sends you traffic you can't slow down the rate that you receive it because the remote host needs confirmation you received it ok, some equipment 'queues' inbound traffic (sending receipts at the time) and only processes it when other queues of different sorts of traffic are completed, but there is still a time limit and you have still received it in a way, you just haven't processed it yet.
 
Old 06-27-2008, 06:08 AM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
For incomming You can set classes (QOS/TOS) so the small packets come in first etc.
And You can limit traffic going from the LAN interfaces to particular clints (delay to a rate).

The best way IMHO is social shapping - ;-)
 
  


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
ip aliasing and traffic shaping question emphaze Linux - Networking 2 03-11-2004 05:03 AM
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 09:47 AM.

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