simple queue for BW traffic

Hi,

I have been using MT 2.9 as a hotspot server and have already created simple queue to max bandwidth limit for local traffic but when I try to limit other traffic sent by radius ‘Ascend-Data-Rate’ it comes at first of the queue as Dynamic queue. Why this is happening in only hotspot, but when I have tried same process in pppoe profile, the dynamic queue comes below.

Thanks

Sabin

Correct. PPP dynamic queue is created after list of static ‘queue simple’ entries.
It is not recommended to use ‘queue simple’ entries that may match the same traffic as order is important for ‘queue simple’ entries.

I am little bit confuse, please look into my scenario
I am using radius for accounting, authentication and individual bandwidth restriction as user base sent by radius as Ascend-Data-Rate but I want to limit max bandwidth for my local traffic.
Lets say, if dst-address is 192.168.100.x to limit bandwidth 1Mb and the radius sent BW restriction also should work for that traffic, which doesn’t match already, define queue.
I did it on pppoe using simple queue and have no problem but hotspot giving me problem.
Can you suggest me?

Sabin

Sabin, provide us with current queues configuration.
As the same configuration for HotSpot should work fine for PPP too,

  • firstly local traffic rules are configured, that contain ‘target-addres’ and 'dst-address matchers.
  • ‘Queue simple’ dynamic rules are configured, that are received from RADIUS.
    Where is the problem ?

before dynamic queue is created

queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 name=“queue3” target-addresses=202.52.255.0/24 dst-address=122.128.100.0/24 interface=all parent=none priority=1
queue=hotspot-default/default limit-at=100000/100000 max-limit=1000000/1000000 total-queue=default

1 name=“queue5” target-addresses=122.128.100.0/24 dst-address=122.128.100.0/24 interface=all parent=none priority=1
queue=default/default limit-at=100000/100000 max-limit=1000000/1000000 total-queue=default

2 D name=“” dst-address=0.0.0.0/0 interface=ether3 parent=none priority=8 queue=hotspot-default/hotspot-default
limit-at=0/0 max-limit=0/0 total-queue=default


after radius sent dynamic queue

queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 D name=“” target-addresses=192.168.2.252/32 dst-address=0.0.0.0/0 interface=all parent=none priority=8
queue=default/default limit-at=65536/65536 max-limit=65536/65536 total-queue=default

1 name=“queue3” target-addresses=202.52.255.0/24 dst-address=122.128.100.0/24 interface=all parent=none priority=1
queue=hotspot-default/default limit-at=100000/100000 max-limit=1000000/1000000 total-queue=default

2 name=“queue5” target-addresses=122.128.100.0/24 dst-address=122.128.100.0/24 interface=all parent=none priority=1
queue=default/default limit-at=100000/100000 max-limit=1000000/1000000 total-queue=default

3 D name=“” dst-address=0.0.0.0/0 interface=ether3 parent=none priority=8 queue=hotspot-default/hotspot-default
limit-at=0/0 max-limit=0/0 total-queue=default

the problem is in that dynamic queue which is sent by radius placed at top of the queue and all traffic limit by 65536/65536.

Sabin

Yes, it works as it should.
HotSpot queues are created above static queues, you can use script each 1min or 5mint etc. that places static queues above other.

thanks for your spport, could you please help me write a script because i never tried it before in MT

Sabin