Community discussions

MikroTik App
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

ROUTER OS QUEUE Issue

Sun Mar 22, 2009 4:40 am

I have asked about this before, and it was NOT corrected in 3.21 or 3.22.

This is a VERY basic setup. This happened so far on a RB532A and now my new 493AH

On the new 493ah this is the setup:

Ether 9 is connected to cable modem, has DHCP client.
Ether 8 is connected to a SIP device and is is slave to ether 9 Switch mode, and sip device gets publick IP
Ether 1 is connected to a notebook., ether 1 is in bridge with ether 9 ( can ONLY have ether 1 in bridge as other ports are on same switch chip)
There is a scr-nat Masqerade rule, for the firewall. Out interface is ether 9
There is a bridge for Ether 1 and ether 9.

So Ether 9 gets a public IP, ether is in switch mode, and allows sip to get public IP, ehter 1 is bridged on a bridge called WAN to ether 9. device (notebook) on ether 1 gets public IP.

I create a queue and apply it to the bridge called WAN

Initially this queue rule works, except that the UL and DL rates are the same, even if the rates are different in the queue rule.
Once I change the rates, the transfer rates do change, BUT if I select 2Mbit I get only 1 Mbit actual transfer, or if I choose ANYTHING it still has a 1Mbit transfer rate ( this is for a DL test from ISP, my dl rate is 25 Mbit with ISP)

Ocassionally the UL rate stayed at the same rate that I set it to the first time, which was 128kbps even if it is set to 2 mbit. ( UL rate to my isp is 1mbit)

When I delete that queue rule the bridge called WAN is "missing" and the transfer rates remain the same as what it was just before the rule was deleted

Can create new queue rule, BUT cannot put it to bridge called WAN becuase it is NOT in the list.

After reboot of router board, the bridge called WAN shows up again. Speeds on ether 1 are full speed of ISP. at this point I can create a new queue with a different rate then before, and it goes that speeds, but if I change the speeds, the same process starts over again.

Please DO NOT CONFUSE MY WIERD SETUP for the issue that is explained. This issue is even there with a bridge on my other board over a wds link, I have posted about this before, exact issue.

The reason why I have this funny set up on this 493 is for this: ether 9 will be the cable connection for my private natted lan, it has ether 8 as slave ( Switch mode) so that my VoIP phone gets a public IP. I bridged Ether9 and ether 1 on a bridge called WAN so that the ONLY port that is effected by the throttleing on the bridge is ether 1 ( this ether port is for tenants in the basement)
The only port that can be Bridged to a port that is in Slave or master is ether 1 ( I assume from the error that was given when i tried other ports it is becuase eth 1 and 9 are not on the same switch chip, just as ether 1 cannot be the master port or slave in the switch)

Other issues with bandwidth control on a bridge interface is that sometimes the data does not go through the bridge, so its not controlled.

If I am missing something in this set up, please let me know, to me its all logical, you set the speed it should do that, it should change when you update the speed settings, not change to 1Mbit up and down even if the settings are anything but that.

There are NO other queues that can be cuasing this issue, this is a new board even reset and tested again

Hope this makes sense

p.s. use-ip-firewall=yes on the Bridge interface was used in this set up.
I hope MikroTik can address this.
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 9:42 am

Ok I read more and more, and more... I hate QoS

Anyways, the issue with the queue seemed to of dissapeared, ie I can change the rates and the rates change to what I specify, either to a faster, or slower rate.

EXCEPT the first time I tried this tonight, the queue was changed and then no matter what it was changed to, it was set at 2 mbit, or 5 or what ever, but the atual throughput was 1050kbps, just above 1 Mbit. I tried changing the speeds several times with no change in this speed. I then deleted that queue and created a new one, and this one worked properly, BUT that is wierd.

My source for testing will use all available bandwidth so I know it would of went higher if it was allowed.

Further more, I still want to challange the "wording" on the ROS with Target upload and Target Download. Target download, and if set on Ether 6 effectivly means tx rate of ether 6. or if an Ip was specified, it would be the TX rate to the specified IP. I challange this wording on the simple basis of, if you are logged into the router, the wording and references should refer to the point of view of the router. Ie using MY thinking, Target download if no specific IP is set, just port of ether 6, means to me, that the Target, being Ether 6, is DL rate is what I set it to. It makes more sense when a Destination IP is set, ie 10.10.10.55 target Download referes to That IP or devices Download rate, effectivley the TX rate of the Ether 6 port. I think it should be simplified and made TX rate or RX rate.

I would like a much easier way other then a queue to control bandwidth on a physical port level, in Interfaces Ethernet, you can set the tx and rx rates, BUT only 1M 2M 4M and 8M I bleieve, why can't we set anything lower then 1M or any value for that matter?

For the people that say you have to put the queue on the BRIDGE interface if the ether port is in that bridge and saying that it would not work otherwise, well, I set my ether 6 as the port in the queue and ethers 5,6,7,8,9 are on Bridge - LAN together, and it works.

On a seperate note, ether 1 and 2 are on Bridge - WAN and if I set my test queue as Ether 1 port, it does nothing. If I set it as Bridge- - WAN, it does nothing, traffic is not effected. The only difference of these two bridges is that Ether 3 is slave to ether 2 ( Switch) which is probably cuasing the problem.

Just to REALLY complicate things, I have my voip device on ehter 3 so it gets a public IP, I am going to put that device into bridge mode, and use the ehternet out from it to conect back to Ether 4 of the 493AH, effictivley creating WAN2 for other things I need. This will get rid of some other switch I have that I used to use to get Wan 1 and Wan 2 on the Symantec firewall.

My head hurts..... tooo many packets!

Added:

For people who are reading about an issue with their QOS. I just tested speeds from my isp's speed test page... I got a full 25 Mbit down. So I start thinking, why is it at that speed, and not the 2Mbit I have the queue set to and the other data is going at 2 mbit still..

So I try chaning the Interface to Bridge - LAN, ( This is where all them block diagrams made sense ) The Internal data from the DVR i was viewing went to 15 Mbit and the ISP's speed test dropped to 2Mbit. No it all made sense when I followed them arrows and lines on the block diagrams. Basically which way the traffic got routed my original queue did not encompass the flow of my data across the bridge, and the bridge is the interface that is NATTED to the WAN port (ether 2)

Hope some day someone reads this and it makes sense better then the block diagrams. For a newbie/Novice that actually THOUGHT he knew routing :-) ahaha
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 10:15 am

Oh and still why testing, I have fore sure CONFIRMED my original posted BUG.

I took my new knowledge and working queue that had been running for 15 minutes or so, and changed the rate to 7Mbit, it showed that it was "set" to 7Mbit But the rate stays at 2 mbit.

Tryed all different rates, even less then the original 2 mbit, the rate stayed at 2 Mbit.

I deleted the queue rule and re-created it, with ether 6 as interface, Default type, etc. Queue rule works again, and changing the speeds up and down works.

One thing that MIGHT of created this issue, On the advanced tab is where I changed the rate from 2 Mbit, to 7, then I got the error in Max Limit is less then Max limit... Oh, so I went to the general tab and changed that to 7 M and also on the adanced to 7 M. I just tried this same thing to try and get the error message, and it happened again.

Let me explain, after the error, I changed the settings both to 7M and the data rate went to 7, WHich is good, BUT when I tried to lower the rate to 1M ( Ensureing I chnaged it on the general and advanced tab) the setting changed, BUT the data rate stayed at 7 Mbit.

Disabling and re-enable the rule did nothing, it allowed the rate to climb, then it went back to 7 Mbit when it was enanbled, BUT the setting was set to 2 Mbit.

Will try rebooting router .....
Rebooted and gues what.. opened up my DVR video stream, and the rate is now at 2 Mbit, with setting of 2 Mbit, so its working now.

So there you have it, accidently setting the rate on the advanced tab higher then the general tab and getting that error has officially cuased the queue to not function properly, until after a reboot, or queue removal and re-creation.

And while I was trying to create my queues I couldnt understand why the rate wasn't changing, but sometimes did... it was non expected behavoir. I will e-mail Support to let them know about this issue, hope they can fix it and ALSO include different rates for the ethernet tx and rx rates, ranging from 64k to 100M bit if possible.

This is probably why alot of people are having issue with queue, just look at the amount of views on those posts......
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 11:04 am

Oh I must be bored tonight.. The above test was done on V 3.22 on a 493AH I have just tested that on my RB 112 running 3.13 and it behaves the same way. Rebooted and the traffic goes the speed it was set at. Wonder how long this has been here?
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 11:06 am

Comon, stop spamming and paste your queue configuration!

Before, please, read all topics here:
http://wiki.mikrotik.com/wiki/Category: ... ic_control

I have no problems with queues what so ever.
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 12:47 pm

Wow, MT witha quick reponse to my email..


"Thanks, for very precise description, I was able to repeat the problem easily.
We will fix it as soon as possible.

Regarding your bridge interface - problem might be related to that queue problem."


As to my queue config, I had one queue. Default type, set Interface to ether 6. Set it to the rates, then changed it, and if you change the rate higher in the advanced tab then what it is in the general tab, the queue appears to work, but does not.

as for the config, I could, but to lazy. I LITERALLY only have the one queue. I am trying to throttle the one port for the tenants.

You watch, the next release, this will be in the change log, My name wont be beside it, but you know it will be becuase of me :-) Hey they fixed the RB 532a upgrade issue becuase I sent in my 532a.. there is a thread on this.

I think MT does a good job on bug fixes, both bugs I found are dealt with very quickly. koodos to MT.

Wonder if they can help me cut the trees down south of my house, I need to get a link to my bothers house outside of the city :-)

Its only like 10 trees! I'm thinking of poisoning the trees!


name="queue1" dst-address=0.0.0.0/0 interface=Ether6 - Media PC
parent=none direction=both priority=8 queue=default/default
limit-at=0/1000000 max-limit=0/1000000 burst-limit=0/0
burst-threshold=0/0 burst-time=0s/0s total-queue=default-small
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 2:13 pm

Yep, if you can report bug properly it is usually fixed very fast.

But sometimes you need to put a lot of effort to narrow down the exact problem before you write to support.

Bottom line - we are the most interested persons to get a fix to our problem, so we need to work for it.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26924
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: ROUTER OS QUEUE Issue

Tue Mar 24, 2009 2:28 pm

I'd say Mikrotik is also very interested to fix the problems, so that you, the users, are very happy ;)
 
egg
just joined
Posts: 23
Joined: Sat Jul 03, 2004 12:23 pm

Re: ROUTER OS QUEUE Issue

Thu Mar 26, 2009 12:26 pm

Hello,

Ill write my problem here beause it is simmilar and its about simple queue.
When I try to add simple queue only with name and target address, the queue didn't work.
What I mean - there is no passing traffic trought the queue, I add that queue just to monitor my machine
how many traffic made. But this is not work only when I leave "unlimited" for both direction - download and upload.
Here is my config:
[admin@Home] /queue simple> print
Flags: X - disabled, I - invalid, D - dynamic 
 0    name="my-laptop" target-addresses=192.168.1.4/32 dst-address=0.0.0.0/0 
      interface=bridge1 parent=none direction=both priority=8 
      queue=default-small/default-small limit-at=0/0 max-limit=0/0 
      burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s 
      total-queue=default-small 
[admin@Home] /queue simple> 
When I put some limits (for ex. 100M for download or upload) everything going OK.

P.s. My mikrotik version is 3.22
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: ROUTER OS QUEUE Issue

Thu Mar 26, 2009 2:34 pm

Read the forum please - this question has been here 10 times already....

You MUST change something to make your queue work. This is made to bypass unused part of simple queues (such as global-total).
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Thu Mar 26, 2009 6:17 pm

Q.U.E.U.E.: Quit Using Everyone's Usefull Experience

Sorry, I just thought of that, had to post it... I'm quilty of q.u.e.u.e.

Just do what I did, trial and error.. Its the best way, but remeber the changes you make.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ROUTER OS QUEUE Issue

Fri Mar 27, 2009 1:28 am

When I put some limits (for ex. 100M for download or upload) everything going OK.
it's not a bug, it's a feature =)

you may simply change the type of queue from default-small to default, for example
 
BobcatGuy
Member Candidate
Member Candidate
Topic Author
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: ROUTER OS QUEUE Issue

Fri Apr 03, 2009 4:40 am

This is wierd. On a 493AH I can set the rate on ether 1 to anything ( Under the physical ether device) I can set tx and rx rates anywhere from 64K to unlimited. But I cannot do this on ethers 2 - 9 Why not?

I can also set any range on a ether port on some of my other boards, such as a 112, 153, and I think even a 333 ( Can't recall right now)

Is this a bug, or is this hardware related? I understand that ethers 2 -9 on the 493 are on a switch chip which could be the cause. But if I knew I could sert ether 1 to any rate, then that would of solved my original idea as to throttleing the basement connection. But then I wouldn't of found the bug I guess.
 
brasileottanta
Member Candidate
Member Candidate
Posts: 122
Joined: Thu Jun 22, 2006 8:52 am

Re: ROUTER OS QUEUE Issue

Wed Jul 29, 2009 9:27 pm

Hi Guys ,

I have a rb133 with 3.15 and i set correctly bandwidth limit in ethernet interface to 1mbit. I also have a rb500 but in ethernet interface , in general tab , we haven't the possibility to set bandwidth. The firmware on rb500 is 3.24 . Is a driver issue or this feature is removed from 3.24 ?


Thank's

Who is online

Users browsing this forum: MaxwellsEq and 73 guests