Cloak icon indicating copy to clipboard operation
Cloak copied to clipboard

did cloak support tcp fast open?

Open qwerttvv opened this issue 5 years ago • 8 comments

cloak with ss, plug mode

should i open tcp fast open from ss?

qwerttvv avatar Jan 21 '20 19:01 qwerttvv

btw, what is this ERROR: server recv: Connection reset by peer?

qwerttvv avatar Jan 21 '20 20:01 qwerttvv

error msg="trying to close a closed session"

its a ss msg or cloak?

in plug mode, how to know which msg belongs to?

qwerttvv avatar Jan 21 '20 21:01 qwerttvv

I recommend to use bbr plus instead using tfo(tcp fast open) if you're using cloak plugin. I remembered cloak+tfo would have big cpu usage?

malikshi avatar Jan 23 '20 06:01 malikshi

how to know which msg belongs to?

You need to learn using github first xD

malikshi avatar Jan 23 '20 06:01 malikshi

I recommend to use bbr plus instead using tfo(tcp fast open) if you're using cloak plugin. I remembered cloak+tfo would have big cpu usage?

i think there is no conflict between tfo and bbr

i have tried ss(tfo open)+cloak 3hours more with the server, cpu usage is normal

there is only one thing to worry, is about safety

many years ago, tfo traffic was very small, interfering with tfo traffic will not have a big impact

but now, more and more normal server is begin to use tfo, so, many traffic is tfo traffic, maybe tfo is safe now

between cloak and ss, tfo is absolutely secure, because traffic is only inside the server

btw, you can try bbr2

how to know which msg belongs to?

You need to learn using github first xD you mean search? i tried, but no answer here...

qwerttvv avatar Jan 23 '20 07:01 qwerttvv

@malikshi

I recommend to use bbr plus instead using tfo(tcp fast open) if you're using cloak plugin. I remembered cloak+tfo would have big cpu usage?

@qwerttvv is right: there is no conflict between TFo and BBR. TFO reduce the time to make a connection between two endpoints which had a connection before by using a cookie. BBR improves the tcp transmission effeiciency by adjusting the size of tcp window accordingly. This process is after the TFO process.

nerekihs avatar Apr 30 '20 05:04 nerekihs

Should fast open be turned off in client or server Shadowsocks if Cloak doesn't support it?

Klaaktu avatar Feb 26 '21 22:02 Klaaktu

@klaaktu It shouldn't really affect anything because the communication between Shadowsocks and Cloak is entirely on loopback (assuming you have them on the same machine). It won't affect detection chance and the bandwidth should be close to memory speed whether or not you have TFO turned on

cbeuw avatar Feb 26 '21 23:02 cbeuw