Community discussions

MikroTik App
 
dacoshild
just joined
Topic Author
Posts: 15
Joined: Wed Nov 11, 2020 12:24 pm

Marking connection for some time

Wed Nov 11, 2020 12:42 pm

Hi,
is there any way how to mark new TCP connection for some time? Like 10 seconds or so?
I'm currently marking connection based on size, so the first 10MB is marked, but that doesn't really suits my need:
chain=forward action=mark-packet new-packet-mark=test protocol=!udp connection-bytes=0-10000000 out-interface=all-ppp

Thanks
 
User avatar
nickshore
Long time Member
Long time Member
Posts: 524
Joined: Thu Mar 03, 2005 4:14 pm
Location: Suffolk, UK.
Contact:

Re: Marking connection for some time

Wed Nov 11, 2020 1:37 pm

You can add the IP into an address list with a timeout, and then use the address list to mark the packets
 
dacoshild
just joined
Topic Author
Posts: 15
Joined: Wed Nov 11, 2020 12:24 pm

Re: Marking connection for some time

Thu Nov 12, 2020 12:35 pm

Thanks, I know about this option, but it also doesn't really suits my need.

What I want to do is to give each new connection a mark, based on the first 10 seconds and give it a burst speed. Since I'm running many pppoe-clients on this mikrotik and I want to give each client (customer) burst for each of his devices and connections separately, address list is not a solution.
Address list would be bound to either source IP (which is client itself) and give it all connections a burst or destination address (which is i.e. youtube) and give burst to all clients for that site.

Solution with first 10MB works great, but for clients with low speeds, that is too much time of a burst and for clients with high speeds, that is too little time of a burst.

I just want to change that 10MB for 10 seconds somehow.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11278
Joined: Mon Dec 04, 2017 9:19 pm

Re: Marking connection for some time

Thu Nov 12, 2020 4:02 pm

I just want to change that 10MB for 10 seconds somehow.
The only thing to come to my mind is to create one address-list per each speed category (and refer to these address-list names on the /ppp profile rows), and use e.g. a 10 MB burst limit for fast clients and 1 MB lmit for slow ones. So the limit will be applied per individual connection, but the size of the limit will depend on the client.
 
dacoshild
just joined
Topic Author
Posts: 15
Joined: Wed Nov 11, 2020 12:24 pm

Re: Marking connection for some time

Mon Nov 16, 2020 5:07 pm

I don't understand why they don't implement option "connection-time" and it would mark it for x seconds. This would be great.