Community discussions

MikroTik App
 
rmichael
Forum Veteran
Forum Veteran
Topic Author
Posts: 718
Joined: Sun Mar 08, 2009 11:00 pm

TCP window scaling for shaping downloads

Sat Jan 02, 2010 4:41 am

Would it be possible to add ability to rewrite windows scale of SYN SYN-ACK packets to throttle download speed of TCP connections that support window scaling?
 
wpeople
Member
Member
Posts: 378
Joined: Sat May 26, 2007 6:36 pm

Re: TCP window scaling for shaping downloads

Sun May 09, 2010 7:33 pm

that options would be nice!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: TCP window scaling for shaping downloads

Mon May 10, 2010 2:23 am

rewrite?.. client and server should support it, not router... no?

btw, "Linux kernels (from 2.6.8, August 2004) have enabled TCP Window Scaling by default"
 
jaymemaurice
just joined
Posts: 5
Joined: Thu May 19, 2011 9:28 am
Location: Dubai, UAE
Contact:

Re: TCP window scaling for shaping downloads

Thu May 19, 2011 9:44 am

I think you might have mis-understood what I think he might have wanted.

If the client and server support TCP window scaling, there will be a window scaling factor as a TCP option. Re-writing it could effectively shape a client using its own slow start algorithm or one can completely break it. Removing the window scale option on SYN could disable some TCP extensions, optimizing really low bandwidth networks. This is basically a hack to override client side optimization.
You shouldn't increase the window scaling factor on the router unless you know the client has a large maximum receive window... but it would be nice if it could be done anyway :D

Check this RFC for more on the window scaling factor - http://tools.ietf.org/html/rfc1323#page-8

A mangle rule which lets you modify any offset of a packet and a condition which works like the wireshark splice option would be really nice for us geeks :)
 
User avatar
bajodel
Long time Member
Long time Member
Posts: 551
Joined: Sun Nov 24, 2013 8:30 am
Location: Italy

Re: TCP window scaling for shaping downloads

Wed Feb 08, 2017 8:24 pm

..cut..
A mangle rule which lets you modify any offset of a packet and a condition which works like the wireshark splice option would be really nice for us geeks :)
indeed, very useful and maybe a new CoDel/fq_codel queue type..
Maybe on ros7 :D
 
savage
Forum Guru
Forum Guru
Posts: 1263
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Re: TCP window scaling for shaping downloads

Thu Feb 09, 2017 8:27 am

indeed, very useful and maybe a new CoDel/fq_codel queue type..
Maybe on ros7 :D
We must stop saying that. You just delayed ROS7 by another year now :lol:
 
Zorro
Long time Member
Long time Member
Posts: 675
Joined: Wed Apr 16, 2014 2:43 pm

Re: TCP window scaling for shaping downloads

Mon Feb 27, 2017 8:14 am

im afraid thats imply different IMPLEMENTATION of certain things.
eg support of things absent in 80% routers firmwares like:
ECN/Backward ECN.STCP, DCTCP, WRED/RRED, BLUE(particularly SFB and RSFB), GREEN, PURPLE, TCP Cookie Transactions
had to be implemented.
eg basic ECN support and AQM protocols of choice(with expanding later) would be first step, then TCP Cookie Transactions.
but its Inbearbly HUGE amount of work for such Tiny company of MikroTik do do it ALONE, im afraid :=(
same about port control protocol, DNSCurve, decent 802.1X-2010 implementation(with extension and adjaced things) and etc and etc (like say moving further to SDN, OpenFlow and improving AdHoc protocols/routing/networking).

Who is online

Users browsing this forum: Amazon [Bot], astelsrl, CGGXANNX, en1gm4, eworm, Google [Bot], h3x00r, Kanzler and 90 guests