Ethernet Port Rate

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
StillBlue
DD-WRT Novice


Joined: 11 Apr 2009
Posts: 37

PostPosted: Fri Mar 08, 2013 0:28    Post subject: Ethernet Port Rate Reply with quote
I am looking for a way to control the rate of data on a specific Ethernet port on my WRT54G-TM.

I have the options in QoS, but unfortuantely see these don't work on the broadcom chipset.

Does anyone have any suggestions how I might slow the rate down.

I need to in order to test some older equipment that even 10M seems to be running a little fast for.

Any help would be gratefully recieved.

TIA
Sponsor
StillBlue
DD-WRT Novice


Joined: 11 Apr 2009
Posts: 37

PostPosted: Sat Mar 09, 2013 8:58    Post subject: Reply with quote
I see the special version allows per user bandwidth management.

http://shop.dd-wrt.com/shop/catalog/product_info.php?cPath=22&products_id=31

Does it work on a WRT54G-TM though?
StillBlue
DD-WRT Novice


Joined: 11 Apr 2009
Posts: 37

PostPosted: Sat Mar 09, 2013 12:31    Post subject: Reply with quote
I'm not sure if this is working completely correctly, but it does seem pretty good.

Code:
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: cbq avpkt 1000 bandwidth 10mbit
tc class add dev br0 parent 1: classid 1:1 cbq rate 2900kbit \allot 1500 prio 5 bounded isolated
tc filter add dev br0 parent 1: protocol ip prio 16 u32 \match ip dst 192.168.1.2 flowid 1:1


I'm sure the script could do with some tweaking, but by altering the 2900kbits up and down a bit the rate is altering with it, so looks good.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum