[GH-ISSUE #93] did cloak support tcp fast open? #82

Open
opened 2026-02-26 12:33:55 +03:00 by kerem · 8 comments
Owner

Originally created by @qwerttvv on GitHub (Jan 21, 2020).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/93

cloak with ss, plug mode

should i open tcp fast open from ss?

Originally created by @qwerttvv on GitHub (Jan 21, 2020). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/93 cloak with ss, plug mode should i open tcp fast open from ss?
Author
Owner

@qwerttvv commented on GitHub (Jan 21, 2020):

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

<!-- gh-comment-id:576871325 --> @qwerttvv commented on GitHub (Jan 21, 2020): btw, what is this [ERROR: server recv: Connection reset by peer](https://github.com/shadowsocks/shadowsocks-libev/issues/2603)?
Author
Owner

@qwerttvv commented on GitHub (Jan 21, 2020):

error msg="trying to close a closed session"

its a ss msg or cloak?

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

<!-- gh-comment-id:576879123 --> @qwerttvv commented on GitHub (Jan 21, 2020): ## error msg="trying to close a closed session" its a ss msg or cloak? in plug mode, how to know which msg belongs to?
Author
Owner

@malikshi commented on GitHub (Jan 23, 2020):

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?

<!-- gh-comment-id:577529043 --> @malikshi commented on GitHub (Jan 23, 2020): 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?
Author
Owner

@malikshi commented on GitHub (Jan 23, 2020):

how to know which msg belongs to?

You need to learn using github first xD

<!-- gh-comment-id:577529714 --> @malikshi commented on GitHub (Jan 23, 2020): >> how to know which msg belongs to? You need to learn using github first xD
Author
Owner

@qwerttvv commented on GitHub (Jan 23, 2020):

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...

<!-- gh-comment-id:577552408 --> @qwerttvv commented on GitHub (Jan 23, 2020): > 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](https://github.com/qwerttvv/bbr-v2-alpha/releases/tag/002-55105fe-cloud) > > > how to know which msg belongs to? > > You need to learn using github first xD you mean search? i tried, but no answer here...
Author
Owner

@nerekihs commented on GitHub (Apr 30, 2020):

@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.

<!-- gh-comment-id:621624596 --> @nerekihs commented on GitHub (Apr 30, 2020): @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.
Author
Owner

@Klaaktu commented on GitHub (Feb 26, 2021):

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

<!-- gh-comment-id:786932356 --> @Klaaktu commented on GitHub (Feb 26, 2021): Should fast open be turned off in client or server Shadowsocks if Cloak doesn't support it?
Author
Owner

@cbeuw commented on GitHub (Feb 26, 2021):

@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

<!-- gh-comment-id:786951773 --> @cbeuw commented on GitHub (Feb 26, 2021): @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
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#82
No description provided.