Page 1 of 1

Enable TCP ECN for bandwidth efficiency

Posted: Thu Mar 20, 2014 7:48 am
by DanielJB
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.

Re: Enable TCP ECN for bandwidth efficiency

Posted: Fri Mar 21, 2014 11:06 pm
by Chupaka
I'd rather say, a good candidate for 'IP -> Settings' in RouterOS v6.12 =)

Re: Enable TCP ECN for bandwidth efficiency

Posted: Sat Mar 22, 2014 11:50 am
by DanielJB
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!

Re: Enable TCP ECN for bandwidth efficiency

Posted: Mon Mar 24, 2014 8:51 am
by Chupaka
write to support@mikrotik.com for an answer

Re: Enable TCP ECN for bandwidth efficiency

Posted: Tue Aug 02, 2016 9:24 am
by Zorro
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.

Re: Enable TCP ECN for bandwidth efficiency

Posted: Wed Sep 21, 2016 3:33 pm
by omidkosari
Any news about ECN support ?

Re: Enable TCP ECN for bandwidth efficiency

Posted: Wed Sep 21, 2016 5:27 pm
by pe1chl
It would be more interesting to know (as these are routers) which queue types, if any, support ECN
in MikroTik products.

Re: Enable TCP ECN for bandwidth efficiency

Posted: Sat May 20, 2017 11:01 am
by vomacko
Any news on ECN topic?

Re: Enable TCP ECN for bandwidth efficiency

Posted: Tue Dec 18, 2018 9:06 pm
by Joni
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

Re: Enable TCP ECN for bandwidth efficiency

Posted: Fri Jan 25, 2019 7:03 pm
by bluecrow76
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.