LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-04-2009, 02:08 PM   #1
amandler
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Basic tc qdisc question


This is a very basic question to which I cannot find a clear answer. If I have, say, a 100Mbps connection and I create a 5Mbps cbq (or htb or whatever) class on it. Something like

tc class add dev eth0 parent 1: classid 1:1 cbq rate 5mbit bandwidth 100mbit allot 1514 avpkt 1000 bounded

and I direct two different user's IP addresses to that queue using tc filter and iptables, does that mean that EACH of the users has a simultaneous maximum rate of 5Mbps, or does it rather mean that the two users SHARE a total bandwidth rate of 5Mbps, so that if they are doing simultaneous downloads they will at best get 3Mbps for one user and 2Mbps for the other or some similar split?

So, shared 5Mbps total, or max 5Mbps each? Which is it?

Many thanks.
 
Old 06-05-2009, 08:43 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
anything placed in the queue you create with a 5mbit rate & ceil will be forced to share 5mbit with everything else in that queue. I'm not sure of the exact "split" but the queue should be capped at ~5mbit. It is no different than if you [physically] had a 5mbit line from an ISP in that no matter how many users you have on your LAN you are still limited to 5mbit by ISP. That is all that you are doing, being the ISP and providing only a slice of the overall available to certain users (IPs).

To sum up: shared 5mbit between the two users in your example.


 
Old 06-05-2009, 11:07 AM   #3
amandler
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks so much. That's exactly what I needed to know. Much obliged.
 
  


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
HOW to define and control qdisc duyuyang Linux - Kernel 1 11-28-2008 11:15 AM
How to define and control qdisc duyuyang Linux - Networking 0 11-28-2008 03:20 AM
htb qdisc doesn't shape GSMD Linux - Networking 4 06-19-2008 06:22 AM
help with tc qdisc ssoc80 Linux - Networking 0 05-16-2006 06:03 AM
qdisc initiation shrishailnk Linux - Networking 0 04-14-2006 10:16 PM

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

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