RE: HFSC Advanced Limiting

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: HFSC Advanced Limiting

Ok, my incoming mail is not working right now, so I don't know who has responded to my posts, or if anyone has. I have figured out how to trap the TC output and redirect it to a file (finally) by using 'tc <blah> &>/file'. Also, it occured to me that 0xFFFF limit might actually mean 0xF:0xFFF for the class IDs. Is that correct?

I have made some pretty big changes to my script.
Now, I seem to be having issues with deleting classes I added. See the output below for details.


bash-2.05b# ./qos start
 * Stopping QoS ruleset...
 *     - tc qdisc del dev eth0 root...                                                                              [ ok ]
 *     - tc qdisc del dev eth1 root...                                                                              [ ok ]
 * Starting bandwidth management on interfaces ...
 *   - Creating qdiscs on interfaces ...
 *     - tc qdisc add dev eth0 root handle 1: hfsc default 1...                                                     [ ok ]
 *     - tc class add dev eth0 parent 1:0 classid 1:1 hfsc ls m2 100Mbit ul m2 100Mbit...                           [ ok ]
 *     - tc qdisc add dev eth1 root handle 2: hfsc default 1...                                                     [ ok ]
 *     - tc class add dev eth1 parent 2:0 classid 2:1 hfsc ls m2 100Mbit ul m2 100Mbit...                           [ ok ]
 * Starting bandwidth management for test ...
 *   - Creating classes on eth0 for upload control ...
 *     - tc class add dev eth0 parent 1:0 classid 1:300  hfsc ls m1 768Kbit d 2000ms m2 256Kbit ul m2 768Kbit...    [ ok ]
 *     - tc class add dev eth0 parent 1:300 classid 1:301 hfsc sc umax 1500b dmax 30ms rate 80Kbit...               [ ok ]
 *     - tc class add dev eth0 parent 1:300 classid 1:302 hfsc ls m2 256Kbit ul m2 256Kbit...                       [ ok ]
 *     - tc class add dev eth0 parent 1:300 classid 1:303 hfsc rt m2 168Kbit ls m2 768Kbit ul m2 768Kbit...         [ ok ]
 *   - Creating classes on eth1 for download control ...
 *     - tc class add dev eth1 parent 2:0 classid 2:300 hfsc ls m1 1500Kbit d 2000ms m2 384Kbit ul m2 1500Kbit...   [ ok ]
 *     - tc class add dev eth1 parent 2:300 classid 2:301 hfsc sc umax 1500b dmax 30ms rate 80Kbit...               [ ok ]
 *     - tc class add dev eth1 parent 2:300 classid 2:302 hfsc ls m2 384Kbit ul m2 384Kbit...                       [ ok ]
 *     - tc class add dev eth1 parent 2:300 classid 2:303 hfsc rt m2 384Kbit ls m2 1500Kbit ul m2 1500Kbit...       [ ok ]
bash-2.05b# QOSUSER="test" ./qos stop
 * Stopping bandwidth management for test ...
 *   - Deleting classes on eth0 for upload control ...
 *     - tc class del dev eth0 parent 1:300 classid 1:301 hfsc sc umax 1500b dmax 30ms rate 80Kbit...               [ ok ]
 *     - tc class del dev eth0 parent 1:300 classid 1:302 hfsc ls m2 256Kbit ul m2 256Kbit...                       [ ok ]
 *     - tc class del dev eth0 parent 1:300 classid 1:303 hfsc rt m2 168Kbit ls m2 768Kbit ul m2 768Kbit...         [ ok ]
 *     - tc class del dev eth0 parent 1:0 classid 1:300  hfsc ls m1 768Kbit d 2000ms m2 256Kbit ul m2 768Kbit...
 * >>>>> RTNETLINK answers: Device or resource busy                                                                 [ !! ]
 *   - Deleting classes on eth1 for download control ...
 *     - tc class del dev eth1 parent 2:300 classid 2:301 hfsc sc umax 1500b dmax 30ms rate 80Kbit...               [ ok ]
 *     - tc class del dev eth1 parent 2:300 classid 2:302 hfsc ls m2 384Kbit ul m2 384Kbit...                       [ ok ]
 *     - tc class del dev eth1 parent 2:300 classid 2:303 hfsc rt m2 384Kbit ls m2 1500Kbit ul m2 1500Kbit...       [ ok ]
 *     - tc class del dev eth1 parent 2:0 classid 2:300 hfsc ls m1 1500Kbit d 2000ms m2 384Kbit ul m2 1500Kbit...
 * >>>>> RTNETLINK answers: Device or resource busy                                                                 [ !! ]

Thanks again for any help.


Eliot Gable
Certified Wireless Network Administrator
Cisco Certified Network Associate
CompTIA Security+ Certified
CompTIA Network+ Certified
Network and Systems Administrator
Great Lakes Internet, Inc.
112 North Howard
Croswell, MI 48422
810-679-3395



-----Original Message-----
From: lartc-bounces@xxxxxxxxxxxxxxx on behalf of Tomasz Chilinski
Sent: Thu 10/13/2005 4:57 PM
To: lartc
Subject: RE: HFSC Advanced Limiting

On Thu, 13 Oct 2005 16:24:06 -0400, Eliot wrote
> Oddly, I keep getting these errors:
>
> parent 1:1000 classid 1:10000 hfsc sc umax 1500b dmax 30ms rate 80Kbit...
> RTNETLINK answers: File exists                                      
>                                                [ !! ] *     - tc
> class add dev eth0 parent 1:1000 classid 1:10001 hfsc ls m2 256Kbit
> ul m2 256Kbit... RTNETLINK answers: File exists                     

Classid should be in range 0x0000-0xFFFF, so it's cause of problem in this
script snippet.

> Eliot Gable
> Certified Wireless Network Administrator
> Cisco Certified Network Associate
> CompTIA Security+ Certified
> CompTIA Network+ Certified
> Network and Systems Administrator
> Great Lakes Internet, Inc.
> 112 North Howard
> Croswell, MI 48422
> 810-679-3395

--
Kind regards,
Tomasz Chilinski
RHCX, RHCE, RedHat Academy Instructor
Cisco Certified Academy Instructor
LMS developer: http://lms.rulez.pl
Kadu developer: http://www.kadu.net
Director of Chilan.com network engineering department

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux