Packet Loss when users taking full bandwidth

Hi Guys,

I have Mikrotik Routerboard1000 we are connected 10 computers with it, each user have limited bandwidth with 256Kbit down and 128Kbit up using simple queues. everything is working fine user have internet and taking their limited bandwidth. the problem when users taking full bandwidth i mean 256Kbit ping to outside even to mikrotik router become worse many packet loss. is there anyway when can make users do not have packet loss even if they used full bandwidth?

P.S.: we have this problem if only one user connected also i mean it is not related to international bandwidth.

Best Regards,

haval

make your queues longer ))) then ping will be higher, but drop should decrease

Dear Chupaka,

what you mean by make your queue longer shall increase the limitation?


Regards,

haval

increase queue length in queue type

Dear Chupaka,

After i increased queue size now ping going higher but there is no packet loss as you said. thank you very much.


Best Regards,

Haval

you may also create additional queue for icmp, so that ping be always good and not shaped =)

Dear Chupaka,

How i can creat an additional queue for ICMP?

Regards,

haval

create additional queue, set some routing mark and set this mark to all icmp packets in Mangle…

Dear Chupaka,

After i did below config as you said now when users using their full bandwidth the ping even not going higher will stay at it is normal value. just wanted to share my confing. let me know if something wrong but it is working fine for me.

Mangle

ip firewall mangle add protocol=icmp action=mark-connection new-connection-mark=ICMP-Traffic chain=forward
ip firewall mangle add connection-mark=ICMP-Traffic action=mark-packet new-packet-mark=ICMP chain=forward



Queue Tree

queue tree add name=Download parent=Local-Interface
queue tree add name=Upload parent=global-out

queue tree add name=ICMP-RX parent=Download packet-mark=ICMP max-limit=512K priority=1
queue tree add name=ICMP-TX parent=Upload packet-mark=ICMP max-limit=512k priority=1


Chupaka thanks for your great answers.

Best Regards,

Haval

actually,

/ip firewall mangle add protocol=icmp action=mark-packet new-packet-mark=ICMP chain=forward

is quite enough

p.s. don’t forget about Karma =)

Don’t forget to do the same thing with ACK packets.

Hello

How do you do a queue with ack packets?

Thanks :slight_smile:

I’m lazy, so I’ve made it simple. I mangle small packets and give it high priority. It’s not the best solution, because every small packets will get high priority, e.g. ACK/NACK, ICMP, VOIP etc. Maybe someone else has a better suggestion. :slight_smile:

Hello

Thanks for that

Can you paste fw rule?

Thanks :slight_smile:

Something like these rules.

add chain=forward packet-size=0-128 \
    action=mark-connection new-connection-mark=small-packets passthrough=yes \
    comment="" disabled=no



add chain=forward packet-size=0-128 \
    action=mark-packet new-packet-mark=small-packets passthrough=yes comment="" \
    disabled=no

Thanks heap for that

I’ll give it a go

:slight_smile:

I have the same issue. Customers PPPoE disconnects when full bandwidth is being used.
or they are experiencing ping cut, means ICMP drop.

So, simply add those 3 rules in terminal ???

add chain=forward packet-size=0-128 \
    action=mark-connection new-connection-mark=small-packets passthrough=yes \
    comment="" disabled=no



add chain=forward packet-size=0-128 \
    action=mark-packet new-packet-mark=small-packets passthrough=yes comment="" \
    disabled=no



/ip firewall mangle add protocol=icmp action=mark-packet new-packet-mark=ICMP chain=forward