TCP Keepalive: Detect Dead Connections with tcp_keepalive
TCP Keepalive is a mechanism to detect when a connection has gone "stale" or "dead" without being explicitly closed, ensuring resources aren't held up i.
44 articles
TCP Keepalive is a mechanism to detect when a connection has gone "stale" or "dead" without being explicitly closed, ensuring resources aren't held up i.
The TCP kernel parameters aren't just knobs to tweak; they're the fundamental rules that govern how your machine talks on the network, and most of them .
LVS can actually do more than just simple round-robin; it can perform content-aware load balancing at Layer 7 if you feed it the right information.
TCP in Microservices: Service Mesh and Direct Connections — practical guide covering tcp setup, configuration, and troubleshooting with real-world examp...
This whole mess starts when your packets are too big for some hop on the network and get dropped, not because the network is broken, but because a piece.
Disabling TCPNODELAY, which is often referred to as disabling the Nagle algorithm, can actually increase latency in certain scenarios, contrary to what .
TCP Diagnostics with netstat and ss: Find Connection Issues — practical guide covering tcp setup, configuration, and troubleshooting with real-world exa...
Linux's TCP stack is surprisingly opinionated about how much data it should buffer, and often, its defaults are way too conservative for high-performanc.
SOREUSEADDR and SOREUSEPORT let multiple processes bind to the same IP address and port combination, but they do it in fundamentally different ways, wit.
TCP connections are silently failing in production, and you're seeing intermittent packet loss or connection resets that don't make sense.
The TCP protocol doesn't actually guarantee delivery; it guarantees efforts towards delivery, using a clever dance of acknowledgments and retransmission.
HAProxy can do more than just HTTP load balancing; it's a beast at L4 TCP load balancing too, and it's surprisingly simple to get going.
SYN cookies are a clever defense against SYN flood attacks, a common denial-of-service tactic where an attacker bombards a server with TCP SYN packets, .
TCP Selective Acknowledgment SACK is a mechanism that allows a TCP receiver to inform the sender about which segments have been received and which are m.
TCP Server-Client Architecture: Build Reliable Services — Imagine a TCP server and client. It's not just about sending data; it's about guaranteeing del...
TCP's congestion window, CWND, isn't just a buffer size; it's the dynamically adjusted throttle that prevents the internet from grinding to a halt.
SSH uses TCP's reliable, ordered, and error-checked delivery to ensure your commands and data arrive intact, even if the network is a bit messy.
TCP SYN Flood Protection: Enable SYN Cookies — practical guide covering tcp setup, configuration, and troubleshooting with real-world examples.
The TCPNODELAY option isn't about disabling Nagle; it's about telling Nagle to stop waiting for a full segment before sending data.
tcpdump is your best friend when TCP is acting up, letting you see the raw handshake, data, and teardown exactly as it happens on the wire.
TCP Threading vs Async: Choose the Right Concurrency Model — practical guide covering tcp setup, configuration, and troubleshooting with real-world exam...
The TCP three-way handshake isn't just about establishing a connection; it's a sophisticated negotiation that guarantees reliable data transfer by ensur.
The TIMEWAIT state is the lingering ghost of a closed TCP connection, and its proliferation can cripple your server's ability to accept new connections.
TCP Timestamps option TSOPT is a crucial, yet often misunderstood, mechanism that enables two key functionalities: Protection Against Wrapped Sequence n.
TLS over TCP: How TLS Wraps Your TCP Connection — practical guide covering tcp setup, configuration, and troubleshooting with real-world examples.
QUIC might seem like a strange choice for building a reliable transport protocol because it runs over UDP, a protocol that offers no reliability guarant.
TCP vs UDP: Choose Based on Reliability and Latency Needs — practical guide covering tcp setup, configuration, and troubleshooting with real-world examp...
TCP Window Scaling is a mechanism that allows the TCP receive window size to be larger than 64KB, which is the original maximum defined in RFC 793.
Wireshark can decode TCP streams, letting you see the actual conversation between two hosts, but it's often more useful for finding what went wrong.
BBR's core innovation isn't about making congestion control smarter, but about bypassing congestion control altogether when possible.
The most surprising thing about TCP buffer tuning is that more isn't always better, and the optimal values depend heavily on network latency, not just r.
Threads and epoll are two fundamentally different approaches to building concurrent network servers, and the "better" choice depends entirely on the wor.
TCP's congestion control algorithms are the unsung heroes of the internet, and the fact that your browser can download a large file without the connecti.
TCP connection pooling allows applications to reuse existing TCP connections instead of establishing new ones for every request, significantly reducing .
ESTABLISHED, TIMEWAIT, and CLOSEWAIT are states a TCP connection can be in. tcpdump -i lo 'tcp port 8080 and tcptcpflags & tcp-ack | tcp-ack
TCP's behavior inside container networking stacks, especially when managed by orchestrators like Kubernetes and advanced CNI plugins like Cilium, often .
TCP load balancing is less about distributing traffic and more about managing state across a fleet of services, often in ways that break common assumpti.
epoll and kqueue aren't just about doing I/O faster; they fundamentally change how you think about managing network connections.
TCP file transfer is surprisingly inefficient for large files because it's fundamentally designed for interactive, small-packet communication.
TCP flow control is actually a mechanism designed to prevent a fast sender from overwhelming a slow receiver, but the way it achieves this is by making .
TCP Four-Way Termination: Graceful Connection Close — practical guide covering tcp setup, configuration, and troubleshooting with real-world examples.
A TCP half-open connection is a connection where one side thinks it's still connected, but the other side has already closed its end, leading to resourc.
The surprising truth about scaling to a million TCP connections is that it's less about the sheer number of connections and more about how efficiently t.
HTTP, despite its name, isn't a transport protocol; it's an application-layer protocol that uses TCP for reliable, ordered delivery of messages.