now, when packets has been marked i need queue types that allows me limit traffic per-user basis, so i have to create 2 queue types.
Code:
/queue type add name="PCQ_Upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 /queue type add name="PCQ_Download" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
now i have to limit all the rates using queue tree, i will limit it that way - that first 2Mbits (as in mangle) will have higher priority over rest of traffic where connection bytes exceed 2Mbits.
i assume that connection that is available have 5Mbits full-duplex
I did it well... I was confous before, I shared the internet connection to 2 networks, LAN and WLAN, but everything is OK now, I also solve my client's http download problem that caused all the other clients can not browse. Your configuration is really good... once more thks..
And if I have another problem in future, pls give a hand.
I did it well... I was confous before, I shared the internet connection to 2 networks, LAN and WLAN, but everything is OK now, I also solve my client's http download problem that caused all the other clients can not browse. Your configuration is really good... once more thks..
And if I have another problem in future, pls give a hand.
but if i had 3 different client group in my office.... each group the ip listed in adrress list. ie: ip1 192.168.1.1 ip1 192.168.1.5 ip1 192.168.1.7 ip2 192.168.1.4 ip2 192.168.1.12 ip2 192.168.1.2 ip3 192.168.1.10 ip3 192.168.1.11 group 1 limit traffic by 96 kbps download 96 kbps upload group 2 limit traffic by 128 kbps download 64 upload group 3 limit traffic by 200 kbps download 128 upload
each group using PCQ Equal Share with mangle and queue tree writen in wiki how to implemented those script to my script?
so i must write 2 connection mark? and 2 queue tree for different group, is that right?
another question. i had idea to traffic prioritizing in each group, which email traffic (pop3)to be higher priority than http traffic. how to implemented like these to PCQ Equal Share in wiki???
Joined: Mon Jun 26, 2006 9:46 am Posts: 72
Karma: 0
Dear Friends,
I have tested in my network and there is a nice problem that may be reason you to dont use this code or you may find the way to solve this problem.
In my situation which i have set the 1024kbps for first 500k and then fall down to 512kbps for special users when a user download a big file after 2 or 3 MB fall down to 512kbps BUT if that person use software like IDM (Internet Download Manager) each time he/she click on STOP and then again START he/she will get 1024kbps speed ofcouse no one call me to tell me because i didnt use this code generally just for test only and I found this
Please tell me your opinion about this. it wil be nice if we could find the way to block this kind of trick which users may (actually) will use.
Yes there is a problem with download managers, cause if clients stops and starts his/her download after every 1mb then it's starts as a freash (1st rule) rate ratio. and with download manager there has few options like 5 connections for a file download that's why the download bandwidth fluctuate very time between 1st and 2nd pcq rule. you can close per IP connection limites with firewall.
Joined: Mon Jun 26, 2006 9:46 am Posts: 72
Karma: 0
hulk-bd wrote:
Dear friend Antixx,
Yes there is a problem with download managers, cause if clients stops and starts his/her download after every 1mb then it's starts as a freash (1st rule) rate ratio. and with download manager there has few options like 5 connections for a file download that's why the download bandwidth fluctuate very time between 1st and 2nd pcq rule. you can close per IP connection limites with firewall.
Hope you understand that
Thanks
I think i understand the problem and the reason. but in my view if i limit the connected to each dst ip to 5 connection this problem will occure again? isnt it?
Joined: Tue Feb 14, 2006 10:46 am Posts: 2514
Karma: 6
Location: Riga, Latvia
first i would see that user that stops download after each X Mbit you have set in a download.
please read manual about simple queues and queue tree. if you have several groups, then just add tree nodes to the queue tree and set up configuration for them, so, they function properly, you will have to mark connections and then packets for each type of users, you just add dst-address-list for download and src-address-list for upload for each group.
Joined: Mon Jun 26, 2006 9:46 am Posts: 72
Karma: 0
i think it is misunderstanding, with this setup usercan achive more bandwidth by doing stop and start the download manager software, anyway to solve this problem?
it will be great doing this...
Thank you very much in did/
janisk wrote:
first i would see that user that stops download after each X Mbit you have set in a download.
please read manual about simple queues and queue tree. if you have several groups, then just add tree nodes to the queue tree and set up configuration for them, so, they function properly, you will have to mark connections and then packets for each type of users, you just add dst-address-list for download and src-address-list for upload for each group.
Joined: Sun May 28, 2006 11:56 am Posts: 16
Karma: 0
Hi to all. I've tested this configuration on my MT 2.9.51 at work. And i must say is wonderful.But the problem is if i start to download with flashget, configured to download with only 1 connections, this setup is perfect.Sow when i configured flashget to download with 5-10 connections, the download speed vary from 1st rule to the 2nd rule after 1 min and after 3 min vary from 2nd rule to the 1st, and so on.So my opinion is to limit at firewall filter to 1/32 connections for the specific packet_mark old.At this point i see another problem, at firwall filter we can drop only syn connections with packet_mark old, what about those with estabilished type, cause if i start to download with flashget with configuration of 10 connections, at this moment in connections tab of MT is see 10 connections estabilished. How can i close 9 of these? P.s. sorry for my bad english. my configuration is excast as descripted in this thread. Best regards to all from Albania.
I've been using this, works great, however, does TCP have to be identified in the mangle rules?
I'm having a hard time shaping other traffic separately. If I try to use mangle to prioritize port 80 and give other ports a 256k limit, PCQ just stops.
In order to shape P2P, I have to use another RB. I've been doing it on the client side, works well as I only have two problem clients, but I'd like to have a blanket rule so some new customer that discovers P2P won't go completely nuts on the network.
edit: tinkering with my 2nd AP in line, first doing this as the primary, it appears that choosing the TCP protocol is not required. Any input from those more experienced would be greatly appreciated.
Joined: Mon Jun 16, 2008 2:12 am Posts: 108
Karma: 2
Location: Venezuela
0ldman wrote:
Bump.
I've been using this, works great, however, does TCP have to be identified in the mangle rules?
I'm having a hard time shaping other traffic separately. If I try to use mangle to prioritize port 80 and give other ports a 256k limit, PCQ just stops.
In order to shape P2P, I have to use another RB. I've been doing it on the client side, works well as I only have two problem clients, but I'd like to have a blanket rule so some new customer that discovers P2P won't go completely nuts on the network.
edit: tinkering with my 2nd AP in line, first doing this as the primary, it appears that choosing the TCP protocol is not required. Any input from those more experienced would be greatly appreciated.
I have the same problem, i make a lot of rules to mark, ssh,p2p, pop, etc. and make a queue for prioritize it, then mark it in postrouting and prerouting, works perfect, but when i setup this or the Janis mangle example from the mum that marks connections in forward the apply PCQ, the pcq simply doesnt work.. somebody can help us? thanks
_________________ If you found this post useful don't forget about the karma viewtopic.php?f=1&t=41148
Feed Your FAITH Then Your Doubts Will Starve To Death...!!!
Joined: Mon Jun 16, 2008 2:12 am Posts: 108
Karma: 2
Location: Venezuela
well, the forward chain marks connection based on src-adress-list but the prerouting chains marks packets based on src and dst ports. alos mark some connection to use the connection-bytes but its marked also by src port 80.. any idea?
_________________ If you found this post useful don't forget about the karma viewtopic.php?f=1&t=41148
Feed Your FAITH Then Your Doubts Will Starve To Death...!!!
Joined: Wed Jan 13, 2010 12:01 am Posts: 10
Karma: 0
erjon wrote:
Hi to all. I've tested this configuration on my MT 2.9.51 at work. And i must say is wonderful.But the problem is if i start to download with flashget, configured to download with only 1 connections, this setup is perfect.Sow when i configured flashget to download with 5-10 connections, the download speed vary from 1st rule to the 2nd rule after 1 min and after 3 min vary from 2nd rule to the 1st, and so on.So my opinion is to limit at firewall filter to 1/32 connections for the specific packet_mark old.At this point i see another problem, at firwall filter we can drop only syn connections with packet_mark old, what about those with estabilished type, cause if i start to download with flashget with configuration of 10 connections, at this moment in connections tab of MT is see 10 connections estabilished. How can i close 9 of these? P.s. sorry for my bad english. my configuration is excast as descripted in this thread. Best regards to all from Albania.
I was having the same problem as mentioned here until I used our new friend connection-rate
I set the connection rate limit for each connection to be just over the connection speed of the non burst queue. It seems to be working so far. If multiple downloads are started with a download manager, each individual connection never reaches the speed specified in connection-rate so they stay in the non-burst queue. Its working beautifully so far.
Users browsing this forum: Yahoo [Bot] and 6 guests
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 post attachments in this forum