I have a problem putting a QoS into a Gateway with multiple interfaces…
I followed the guide of the wiki about it, giving the upload parent into the outgoing interface (one) and download parent into the global out (three)
But it ends up giving the correct numbers of the upload on the queue tree, while having the aggregate of up/down into the global out.
Plus i need to avoid the QoSing of the internal traffic passing through the machine but that doesn’t go out of my network..
ATM I’m doing a prerouting mangle of all the traffic and those rules to recognize the internal traffic
hi Chupaka i hope you can help me (once again ), when i need to mark upload and download packets i need to make two connection marks ight? one connection mark and packet mark to upload and another one to download? i got a confusion with this..
as you can se i mark connection with src port to download because the traffi come FROM port 80 (http) and eith dst port to upload because the traffic GOES TO port 80, i’m correct or not?
and the last question: when i mark the connection i set the match criteria e.g. dst-port=80 so when i mark the packet, i set the connection-mark, but i’s necessary to set the dst-port again? in my examples i didn’t..
‘connection’ is bi-directional, so you should mark connection, and then mark upload and download packets according to this connection (either by in/out-interface, or src/dst-address)
if you can directly mark packets - you may do it without marking connections. sometimes it’s impossible, and fortunately it’s not your case =)
in marked connections you will see packets both dst-port=80 and src-port=80 - requests to the server and responses from the server, they all belong to the same connection. so if you need only upload or download part of it - you need to set dst-port again
ok, in someplaces i’ve read that we need to mark connectios because the router when the connection it’s started then it save it in the connection track, then check packets use more cpu, than check connection firts (mainly we need to mark connections for performnce issue, do you ever heard something about it? read this it make so much sense i beleive it’s very good explanation http://forum.mikrotik.com/t/mark-connection-vs-mark-packet/17170/2 ), maybe i dont expalin very well, but my english is so limited sorry, i read better than i write sorry again… so to resume your explanation and to know if i well understood…
it’s better to mark just packets when it’s possible…
when it necessary to mark connections and need upload and download i must set (dst/src port) OR (input/ouput interfaces) in the packets…
I know about ‘preformance’… teoretically… I recently posted similar explaination…
and now I’m trying to test this. I can’t see any difference!!!
what I have: firewall rule that is matching packets against address list of 1100 items, and three rules working with short lists, 4 to 50 items. packet throughput is about 120 kpps. CPU load is about 28-30%
now I add top rule ‘accept established connections’. it accepts 120kpps =) CPU load is still 28-30% what do I do wrong?.. maybe somebody have another experience?
about where connection-mark is necessary.. simpliest example: managing incoming connections on several uplink interfaces. you don’t know (w/o connection-mark), from what uplink the connection was established, but you should send responses only to that uplink. with connection marking it becames possible
ok understood make almost the same test, with and without connection marks, matching ALL TRAFFIC up/down and sendig to two queues and llimiting, and the cpu load is the same, can you give me the link to your performance issue post?
now, have you some experience marking ACK packets, i’ve read a lot of that but i want to know if you’ve tested and have some working experience. thanks a lot
thanks again for your tests, i think that a 2% in a 3000+ cpu it’s a huge difference and much for me that im runnig a 8 wan balancer in a 493AH, what do you think?..
ok, bro thanks for your advice, hey i work with the advise you told me about look only in table, remember from another post, and works great. thanks a lot..