Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#8689 closed defect (obsolete)

HSFC problem with default command

Reported by: josephlanders@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Scenario 1)

I had a working script with two IMQs and 2 HSFC schedulers, until I removed the "default" keyword from both IMQs qdiscs, the first IMQ was ok, the second was not.

The second IMQ kept crashing after the first line below:

"iptables -t mangle -A POSTROUTING -o br-lan -j IMQ --todev 1"
"ip link set imq1 up"

I played around a bit and tried changing default to 2 (a valid top level class) but it also crashes. Also tried setting it to a non-existant class but that also crashes.

Scenario 2.)
Also tried to remove IMQ and just use the below:

############

rmmod sch_hfsc
insmod sch_hfsc

rmmod sch_sfq
insmod sch_sfq

tc qdisc del dev eth0 root

tc qdisc add dev eth0 root handle 2: hfsc
tc class add dev eth0 parent 2: classid 2:2 hfsc sc rate 345kbit ul rate 345kbit ### CRASHES HERE
tc class add dev eth0 parent 2:2 classid 2:110 hfsc sc umax 1500b dmax 10ms rate 100kbit ul rate 145kbit
tc class add dev eth0 parent 2:2 classid 2:120 hfsc sc m1 0 d 2s m2 150kbit ul rate 200kbit

tc qdisc add dev eth0 parent 2:110 handle 110: sfq perturb 10
tc qdisc add dev eth0 parent 2:120 handle 120: sfq perturb 10

##############

My system has the OpenWRT WNDR3700 trunk from the 16/01/2011 (r25002) installed and some ipt/kmod modules from the 17/01/2011 trunk, I hope that isn't causing any problems.

Will update further when I have access to the box.

The problem appears to go away if I switch to the HTB scheduler.

Attachments (3)

hsfc-no-imq.txt (577 bytes) - added by josephlanders@… 7 years ago.
Tc / HSFC script without IMQ
hsfc-imq.txt (662 bytes) - added by josephlanders@… 7 years ago.
TC / HSFC with IMQ
hsfc-imq-v2.txt (662 bytes) - added by josephlanders@… 7 years ago.
TC / HSFC with IMQ - v2 Minor mistake fixed

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by josephlanders@…

Tc / HSFC script without IMQ

Changed 7 years ago by josephlanders@…

TC / HSFC with IMQ

Changed 7 years ago by josephlanders@…

TC / HSFC with IMQ - v2 Minor mistake fixed

comment:1 Changed 7 years ago by anonymous

Can you try IFB instead of IMQ?

comment:2 follow-up: Changed 7 years ago by josephlanders@…

IFB doesn't appear to be available as a kernel module.

I have previously set up an IFB script on a debian box as I know it is newer than IMQ, this script does not work on openwrt.

On debian the IFB module is here:
insmod /lib/modules/2.6.32-5-amd64/kernel/drivers/net/ifb.ko

There may be a technical reason why IFB isn't included in openwrt?

comment:3 in reply to: ↑ 2 Changed 7 years ago by anonymous

This is a bit off topic, so i'll keep it short, yes it's possible to enable IFB by selecting it as a kernel module in the kernel menuconfig (note, I think you have to make a package to get it to be in the OpenWRT build automatically, since I didn't have one I had to copy the ifb.ko over from the build kernel compile folder directly), unfortunately the current TC and iproute2 have a bug that needs the latest trunk build of iproute2 to fix, so I suppose I need to open a bug report for that.

In terms of HFSC, I think there is a bug in the source that has probably already been patched in the debian source, so we should be able to find this and port the .diff in.

comment:4 Changed 6 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

comment:5 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.