The Backend Engineering Show with Hussein Nasser

Windows vs Linux Kernel

The Backend Engineering Show with Hussein Nasser

Show Notes

Fundamentals of Operating Systems Course https://os.husseinnasser.com

Why Windows Kernel connects slower than Linux

I explore the behavior of TCP/IP stack in Windows kernel when it receives a RST from the backend server especially when the host is available but the port we are trying to connect to is not. This behavior is exacerbated by having both IPv6 and IPv4 and if the happy eye ball protocol is in place where IPv6 is favorable.

0:00 Intro 0:30 Fundamentals TCP/IP 3:00 Unreachable Port Behavior 6:00 Client Kernel Behavior (Linux vs Windows) 11:40 Slow TCP Connect on Windows 15:00 localhost, IPv6 and IPv4 20:00 Happy Eyeballs 28:00 Registry keys to change the behavior 31:00 Port Unreachable vs Host Unreachable

https://daniel.haxx.se/blog/2024/08/14/slow-tcp-connect-on-windows/

More from The Backend Engineering Show with Hussein Nasser

Oct 22, 2026

I discuss the state of what will be happening in the coming few years and why I encourage the 3 of you who want to be elite engineers to keep their critical thinking sharp. To pause and think before prompting.

Oct 15, 2026

This is a conversation with Rashed Hasan, a PhD Candidate from the University of Nebraska. We chatted about databases, ORMs and how to use AI without losing yourself. Rashed pagehttps://www.mdrashedulhasan.me/homepage

Sep 25, 2026

I discuss loops engineering and how it will numb creative thinking and critical system design for engineers.

Sep 18, 2026

I like SQL but the standard should have included ways to hint instead of the abstraction of "let me do it for you"

Sep 11, 2026

In this episode I explore why you should take some time to examine the operation you are caching before doing so. And why caching is a cop-out

See all episodes →