Community discussions

MikroTik App
 
User avatar
DanielJB
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Mon May 27, 2013 3:05 pm

Enable TCP ECN for bandwidth efficiency

Thu Mar 20, 2014 7:48 am

We need a way to enable TCP Explicit Congestion Notification on RouterOS, so when eg TCP tunnels are established, we will get the increase in efficiency and reduction in packet loss. The current linux default is to accept ECN, but not request it when initiating connections.

Thus, we need a config option to do this:
echo 1 >/proc/sys/net/ipv4/tcp_ecn

A good candidate for RouterOS 7.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Enable TCP ECN for bandwidth efficiency

Fri Mar 21, 2014 11:06 pm

I'd rather say, a good candidate for 'IP -> Settings' in RouterOS v6.12 =)
 
User avatar
DanielJB
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Mon May 27, 2013 3:05 pm

Re: Enable TCP ECN for bandwidth efficiency

Sat Mar 22, 2014 11:50 am

Indeed. With a significant number of competing TCP flows, Zheng and Kinicki demonstrate a 15% improvement in goodput (ie useful TCP segments, flow efficiency) through an ECN-capable router, page 15:
http://web.cs.wpi.edu/~rek/ISCC02talk.ppt

Anyway, let me know if anything more is needed to submit this as a feature request for RouterOS. Many thanks!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Enable TCP ECN for bandwidth efficiency

Mon Mar 24, 2014 8:51 am

write to support@mikrotik.com for an answer
 
Zorro
Long time Member
Long time Member
Posts: 675
Joined: Wed Apr 16, 2014 2:43 pm

Re: Enable TCP ECN for bandwidth efficiency

Tue Aug 02, 2016 9:24 am

any chance to see update/implementation on-topic ?
even w/o say PURPLE queues ( f-GREEN and s-GREEN are not ECN-dependant) there was TOO much tech in modern networking that fail to work or Severely underperfrom w/o ECN support(both support, requence, enforcement, enabled/toggled in all kinds/points of gear/networks).
its rather "simple update" to ROS, not demanding newer kernel or newer code, just extra checkbox(like say "routing cache" enabling or one for "syncookie" or for "RP Filter"(if MT decide to implement all 3 options for)in option for ROS to be aware in bootime about dat option/switch to perform according to. so there was no need to wait for ROS7 or much manpower/hours of work needed i suppose.

for anyone new to topic:
https://en.wikipedia.org/wiki/Explicit_ ... tification
https://tools.ietf.org/html/rfc3168
as basic introduction.

same about "enabling/disabling timestamps" - sometimes they Should be disabled, sometimes they are Lifesavers so there was "always should option about" such things in general.
 
User avatar
omidkosari
Trainer
Trainer
Posts: 640
Joined: Fri Sep 01, 2006 4:18 pm
Location: Canada, Toronto

Re: Enable TCP ECN for bandwidth efficiency

Wed Sep 21, 2016 3:33 pm

Any news about ECN support ?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10194
Joined: Mon Jun 08, 2015 12:09 pm

Re: Enable TCP ECN for bandwidth efficiency

Wed Sep 21, 2016 5:27 pm

It would be more interesting to know (as these are routers) which queue types, if any, support ECN
in MikroTik products.
 
vomacko
just joined
Posts: 1
Joined: Sat May 20, 2017 10:57 am

Re: Enable TCP ECN for bandwidth efficiency

Sat May 20, 2017 11:01 am

Any news on ECN topic?
 
User avatar
Joni
Member Candidate
Member Candidate
Posts: 156
Joined: Fri Mar 20, 2015 2:46 pm
Contact:

Re: Enable TCP ECN for bandwidth efficiency

Tue Dec 18, 2018 9:06 pm

It would be more interesting to know (as these are routers) which queue types, if any, support ECN
in MikroTik products.
https://wiki.mikrotik.com/wiki/Manual:I ... all/Filter
 
User avatar
bluecrow76
newbie
Posts: 33
Joined: Wed Sep 13, 2006 11:55 pm

Re: Enable TCP ECN for bandwidth efficiency

Fri Jan 25, 2019 7:03 pm

It would be more interesting to know (as these are routers) which queue types, if any, support ECN
in MikroTik products.
https://wiki.mikrotik.com/wiki/Manual:I ... all/Filter
Being able to set the ECN flag is a much different thing than knowing whether or not a queuing mechanism supports setting and receiving the ECN flag inherently. Just being able to set the flag on an outbound packet doesn't mean that a router "supports ECN." True ECN support would mean the queuing mechanism would slow the transmission of data when it observed a packet with the ECN flag set, rather than dropping packets.
 
qdeqde
just joined
Posts: 9
Joined: Mon Feb 08, 2010 3:52 pm

Re: Enable TCP ECN for bandwidth efficiency

Fri Mar 12, 2021 1:06 pm

Being able to set the ECN flag is a much different thing than knowing whether or not a queuing mechanism supports setting and receiving the ECN flag inherently. Just being able to set the flag on an outbound packet doesn't mean that a router "supports ECN." True ECN support would mean the queuing mechanism would slow the transmission of data when it observed a packet with the ECN flag set, rather than dropping packets.
should it not be the other way around ,that the queing mechanism detects that the queue is full, sets the ECN flag, the receiver bounces the ECN flag back to the sender ,and the sender lowers the transmission rate?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10194
Joined: Mon Jun 08, 2015 12:09 pm

Re: Enable TCP ECN for bandwidth efficiency

Fri Mar 12, 2021 2:23 pm

That is right, ECN router support requires some form of queuing where it would be applied (i.e. queue overflows detected and ECN bits adjusted) plus there has to be support in TCP but that would normally not be in the router itself, but in the endpoint.
Exception is only when the router is the TCP endpoint, e.g. in a TCP-based VPN. But enabling only the TCP part of it will still not bring much in most scenarios (where the bandwidth bottleneck is the internet connection next to the router).
 
volkirik
Member Candidate
Member Candidate
Posts: 208
Joined: Sat Jul 23, 2016 2:03 pm

Re: Enable TCP ECN for bandwidth efficiency

Wed Dec 01, 2021 6:00 pm

+1 for ECN support and BBR congestion control

please implement them mikrotik
 
R1CH
Forum Guru
Forum Guru
Posts: 1099
Joined: Sun Oct 01, 2006 11:44 pm

Re: Enable TCP ECN for bandwidth efficiency

Wed Dec 01, 2021 9:15 pm

BBR is for clients and servers, a router doesn't care.
 
User avatar
Joni
Member Candidate
Member Candidate
Posts: 156
Joined: Fri Mar 20, 2015 2:46 pm
Contact:

Re: Enable TCP ECN for bandwidth efficiency

Thu Jun 02, 2022 10:51 pm

Who is online

Users browsing this forum: BatsirayiM, Bing [Bot], stefanau, wapbytez and 91 guests