# Please enable TCP fastopen on your storage nodes

**URL:** <https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886>\
**Category:** STORJLINGS\
**Tags:** tcp-fastopen, storagenode\
**Created:** [June 7, 2023, 4:29pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886 "2023-06-07T16:29:24Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![mihalko](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mihalko/32/10018_2.png) [@mihalko](https://forum.storj.io/u/mihalko)\
**Post date:** [June 21, 2023, 8:29am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/61 "2023-06-21T08:29:48Z")

</div>

How does this work? If node sees TFO support in kernel, does it report to the satellite and the clients (+ satellite audits) tries to use it? Or when the client sees TFO support on server (node) socket, it tries to use it?

---

<div class="post-metadata">

**Author:** ![littleskunk](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/littleskunk/32/63_2.png) [@littleskunk](https://forum.storj.io/u/littleskunk)\
**Post date:** [June 21, 2023, 4:42pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/62 "2023-06-21T16:42:38Z")

</div>

Looks like TCP fastopen support for Windows will get implemented with this ticket: [Windows support for TCP Fast Open · Issue #5990 · storj/storj · GitHub](https://github.com/storj/storj/issues/5990)

---

<div class="post-metadata">

**Author:** ![ACarneiro](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/acarneiro/32/1129_2.png) [@ACarneiro](https://forum.storj.io/u/ACarneiro)\
**Post date:** [June 21, 2023, 4:48pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/63 "2023-06-21T16:48:30Z")

</div>

Have we seen any palpable network performance improvement since this started being enabled in nodes?  
Do you have any way of telling what proportion of nodes have enabled it?  
Just curious 🙂

---

<div class="post-metadata">

**Author:** ![zip](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zip/32/7813_2.png) [@zip](https://forum.storj.io/u/zip)\
**Post date:** [July 10, 2023, 2:56pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/64 "2023-07-10T14:56:37Z")

</div>

It looks like TCP fastopen is already being utilized. Looking forward for test results.

```auto
# netstat -s | grep FastOpen
  TCPFastOpenActiveFail: 1192
  TCPFastOpenPassive: 328989
  TCPFastOpenPassiveFail: 18
  TCPFastOpenCookieReqd: 1555

```

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [July 11, 2023, 7:16am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/65 "2023-07-11T07:16:12Z")

</div>

On Synology I only see:

```auto
$ netstat -s | grep TCPFastOpen
    TCPFastOpenCookieReqd: 2710244

```

Which I guess was to be expected since we can’t enable the docker option on our systems.

---

<div class="post-metadata">

**Author:** ![kosti11](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kosti11/32/1134_2.png) [@kosti11](https://forum.storj.io/u/kosti11)\
**Post date:** [July 11, 2023, 9:21am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/66 "2023-07-11T09:21:35Z")

</div>

On my Synology i got only:

```auto
netstat -s | grep TCPFastOpen
TCPFastOpenPassive: 365

```

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [July 11, 2023, 2:21pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/67 "2023-07-11T14:21:33Z")

</div>

on ubuntu - that command doesn’t show anything

How can i get something like this to show for Ubuntu do you know?

---

<div class="post-metadata">

**Author:** ![ACarneiro](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/acarneiro/32/1129_2.png) [@ACarneiro](https://forum.storj.io/u/ACarneiro)\
**Post date:** [July 11, 2023, 6:11pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/68 "2023-07-11T18:11:38Z")

</div>

If it shows nothing then it’s because you’re not getting FastOpen connections.

---

<div class="post-metadata">

**Author:** ![Dozoris](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dozoris/32/1129_2.png) [@Dozoris](https://forum.storj.io/u/Dozoris)\
**Post date:** [July 12, 2023, 7:25am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/69 "2023-07-12T07:25:46Z")

</div>

on ubuntu i don’t get either.  
fast open is enabled in sysctl and docker: “2023-07-04T11:06:17.733Z INFO server existing kernel support for server-side tcp fast open detected {“process”: “storagenode”}”

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 12, 2023, 7:38am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/70 "2023-07-12T07:38:44Z")

</div>

Seems your node doesn’t have customers who attempting to use a Fastopen, or your router/ISP drops them…

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 12, 2023, 7:49am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/71 "2023-07-12T07:49:09Z")

</div>

can it somehow understand on my windows GUI that my fastopen is working and router not droping it?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 12, 2023, 8:28am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/72 "2023-07-12T08:28:03Z")

</div>

I do not know, for honestly how to check this on Windows…

```auto
netstat -s | sls fast

```

doesn’t gives me any stat. So, I assume it’s not supported under Windows for now.

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [July 12, 2023, 5:09pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/73 "2023-07-12T17:09:02Z")

</div>

Is there a way to test or fix this if its the router?

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/6_449c533f586939b6e5f246632a46421f.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [July 13, 2023, 5:02am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/74 "2023-07-13T05:02:57Z")

</div>

Does TrueNAS Scale + Docker supports TCP fastopen?

---

<div class="post-metadata">

**Author:** ![arrogantrabbit](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/arrogantrabbit/32/11200_2.png) [@arrogantrabbit](https://forum.storj.io/u/arrogantrabbit)\
**Post date:** [July 13, 2023, 5:40am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/75 "2023-07-13T05:40:59Z")

</div>

Is this planned/on the roadmap/tracked in some way? I understand it’s a low priority.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 13, 2023, 6:08am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/76 "2023-07-13T06:08:16Z")

</div>

Can Storj add some info to the logs that we understand that FastOpen is working or not. I am on Windows and no one know how to check, does my fastopen work or not, or my router filtering it for example. I have Mikrotik router, sometimes i think it makes over filtering.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 13, 2023, 6:30am UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/77 "2023-07-13T06:30:22Z")

</div>

Only if your router has such configuration option.

---

<div class="post-metadata">

**Author:** ![jtolio](https://storj.bcdn.literatehosting.com/letter_avatar/jtolio/32/6_449c533f586939b6e5f246632a46421f.png) [@jtolio](https://forum.storj.io/u/jtolio)\
**Post date:** [July 13, 2023, 2:08pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/78 "2023-07-13T14:08:57Z")

</div>

Both Windows and FreeBSD are not yet supported options for the storage node side of TCP FASTOPEN but hopefully we get to it soon. If someone is handy with code and wants to pitch in, this is the file that needs filling in for Windows: [https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen\_windows.go](https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen_windows.go)

We need a similar one for FreeBSD (right now it’s just picked up with “other”): [https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen\_other.go](https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen_other.go)

Here is the Linux one for reference: [https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen\_linux.go](https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen_linux.go)

---

<div class="post-metadata">

**Author:** ![jtolio](https://storj.bcdn.literatehosting.com/letter_avatar/jtolio/32/6_449c533f586939b6e5f246632a46421f.png) [@jtolio](https://forum.storj.io/u/jtolio)\
**Post date:** [July 13, 2023, 2:10pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/79 "2023-07-13T14:10:16Z")

</div>

Looking at [https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen\_windows.go](https://github.com/storj/storj/blob/4ee647a951d01c8f0b8af268eaa8ea1a0a9bed4d/private/server/fastopen_windows.go) again, perhaps Windows support is mostly done? Maybe tryInitFastOpen just needs to return true. Worth testing!

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 13, 2023, 4:30pm UTC](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886/80 "2023-07-13T16:30:18Z")

</div>

Thats why windows node loosing so much rases today.

[Previous page](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886.md?page=3)

[Next page](https://forum.storj.io/t/please-enable-tcp-fastopen-on-your-storage-nodes/22886.md?page=5)
