Community discussions

MikroTik App
 
hci
Long time Member
Long time Member
Topic Author
Posts: 619
Joined: Fri May 28, 2004 5:10 pm

Creating Latency

Fri Nov 13, 2009 8:11 pm

Is there a way with Mikrotik to create a very high latency queue or something? This would be on a PPPoE user. I want to make a certain connection very high latency like satellite or worse so online games no longer work but web surfing and downloads still work ok. Basically so homework stuff still works but games do not. Is this possible with Mikrotik? I think freeBSD had a feature like this if I recall correctly.

M
 
changeip
Forum Guru
Forum Guru
Posts: 3820
Joined: Fri May 28, 2004 5:22 pm

Re: Creating Latency

Fri Nov 13, 2009 8:43 pm

net neutrality? hehe. okay, lets not go there.
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8400
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Creating Latency

Fri Nov 13, 2009 10:28 pm

yeah, I have heard about this on linux. and no, ROS doesn't support that
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
fragtion
newbie
Posts: 35
Joined: Fri Nov 13, 2009 10:08 pm

Re: Creating Latency

Fri Nov 13, 2009 10:40 pm

only allow http/s (port 80, 443) traffic?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24614
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Creating Latency

Mon Nov 16, 2009 11:28 am

you could drop every nth packet :)
No answer to your question? How to write posts
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8400
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Creating Latency

Mon Nov 16, 2009 1:35 pm

random=10 action=drop rulezzz :D
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
jandafields
Forum Guru
Forum Guru
Posts: 1514
Joined: Mon Sep 19, 2005 6:12 pm

Re: Creating Latency

Tue Nov 17, 2009 5:26 am

random=10 action=drop rulezzz :D
That absolutely KILLS the speed of your internet connection.

A connection that is normally 20mbps doesn't go over 0.5mbps on speedtest with that rule...

This is not the same effect as latency on a satellite connection.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24614
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Creating Latency

Tue Nov 17, 2009 9:16 am

how about make a mangle rule with these settings, and then make a queue for these random packets? actually you should start with defining what you like to achieve :) how exactly would you characterize a bad connection?
No answer to your question? How to write posts
 
jandafields
Forum Guru
Forum Guru
Posts: 1514
Joined: Mon Sep 19, 2005 6:12 pm

Re: Creating Latency

Tue Nov 17, 2009 4:51 pm

He characterized the "bad" connection as simply having high latency... like satellite. That in itself is fine and fast for browsing and general internet work, but horrible for real-time games.
 
andreacoppini
Trainer
Trainer
Posts: 489
Joined: Wed Apr 13, 2005 11:51 pm
Location: Malta, Europe

Re: Creating Latency

Tue Nov 17, 2009 6:04 pm

This would actually be very useful in a test scenario. To test how applications would behave across different types of WAN links.

Doesn't tarpit do that?
- No strings attached -

<< Please give good Karma if this post helped you. Press the + button above the Location entry
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8400
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Creating Latency

Tue Nov 17, 2009 6:37 pm

no, 'tarpit' just sends 'ack' and forgets about the connection. like smart 'drop', when packets establishing the connection are passed. plus, 'tarpit' doesn't leave nothing in ConnTrack
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Creating Latency

Tue Nov 17, 2009 6:47 pm

Not quite - tarpitting tries to delay a connection for as long as possible. It's not really for emulating delay, it's for forcing an endpoint to send as slowly as possible (to utilize as many resources on that side as possible in order to discourage them from using any resources on you at all).

IPFW in the BSDs also controls dummynet, their traffic shaping facility. It allows you to specify in milliseconds the delay that packets traveling through a pipe (a virtualized circuit) experience. It's quite nice for testbeds - at work we use it to emulate long distance links when initially testing corporate environments that will be used via VPN from around the world. I don't know if this can be done at all on Linux (I mostly deal with BSD firewalls), I'm pretty sure there's no option like this exposed in RouterOS.

Who is online

Users browsing this forum: akakua, Majestic-12 [Bot], vasilaos, ysha and 61 guests