Loading…
Loading…
TCP/IP
A complete TCP/IP networking course for students and working engineers: addressing and subnetting, Ethernet and ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, retransmission and congestion control, TLS, IPsec, QUIC and troubleshooting. 91 articles with practice quizzes.
How TCP handles small writes and interactive traffic: delayed acknowledgments, the Nagle algorithm, the 40 ms stall that appears when the two meet in a write-write-read pattern, and how TCP_NODELAY, TCP_QUICKACK and TCP_CORK change it, measured in the lab.
kvi5hnuCode Sprout team member11 minWhat happens when TCP retransmits data that wasn't lost: spurious timeouts from delay spikes, DSACK reports, Eifel detection with timestamps, F-RTO and undoing the window cut, plus how reordering and duplication affect TCP, the per-destination metrics cache, repacketization, and timer-based attacks.
kvi5hnuCode Sprout team member12 minHow TCP repairs losses without waiting for its timer: duplicate ACKs and fast retransmit, how SACK lets a sender repair several losses in one round trip, Linux's time-based RACK loss detection and tail loss probes, all measured by dropping chosen segments in the lab.
kvi5hnuCode Sprout team member13 minWhat TCP does when its retransmission timer fires: resending the oldest unacknowledged segment, doubling the timeout each time, cutting the congestion window, and finally giving up after tcp_retries2 or TCP_USER_TIMEOUT, measured in the lab against a blocked path.
kvi5hnuCode Sprout team member11 minHow TCP decides how long to wait before retransmitting: RTT samples, the smoothed RTT and RTT variance of RFC 6298, Karn's algorithm and timestamps, and how Linux's estimator and its 200 ms minimum behave, measured with ss while the lab path's delay changes.
kvi5hnuCode Sprout team member12 minHow a TCP server receives connections: wildcard, specific and dual-stack listeners, how the 4-tuple separates clients on one port, the SYN and accept queues and what happens when they fill, and how SYN cookies keep a server reachable during a spoofed SYN flood, all measured in the lab.
kvi5hnuCode Sprout team member14 minWhen TCP sends a reset and how receivers judge one: closed ports, drop versus reject, SO_LINGER aborts, closing with unread data, half-open connections after a crash, TIME-WAIT assassination, and the RFC 5961 challenge ACK, all reproduced in the lab.
kvi5hnuCode Sprout team member14 minThe eleven TCP states and the events that move a connection between them, watched live with ss on both ends of a real connection; why the active closer waits in TIME_WAIT, the quiet time rule, FIN_WAIT_2 timeouts, simultaneous close, and how Linux lets a new connection reuse a TIME_WAIT 4-tuple.
kvi5hnuCode Sprout team member14 minWhat each TCP option does and how it's negotiated in the SYN: MSS and why it can differ by direction, window scaling, SACK, timestamps and PAWS, User Timeout, TCP-AO, TCP Fast Open with a real cookie exchange, and how TCP discovers the path MTU, all shown in lab captures.
kvi5hnuCode Sprout team member18 minHow TCP opens a connection with SYN, SYN-ACK and ACK, closes it with FIN in each direction, keeps one direction open with a half-close, handles simultaneous open, chooses random initial sequence numbers, and retries a SYN that gets no answer, all measured in real captures.
kvi5hnuCode Sprout team member17 minWhat TCP promises applications (a connection-oriented, reliable, full-duplex byte stream), how it achieves reliability, and every field of the TCP header, decoded from a real SYN captured in the lab: ports, sequence and acknowledgment numbers, offset, flags, window, checksum and options.
kvi5hnuCode Sprout team member14 minThe ideas every reliable transport is built from: acknowledgments, sequence numbers and retransmission (ARQ), why stop-and-wait is slow, how sliding windows fill a path, go-back-N versus selective repeat, flow and congestion control, and choosing a retransmission timeout.
kvi5hnuCode Sprout team member15 minA method for DNS problems: reading dig output, following a delegation with +trace, comparing servers with +nssearch, and diagnosing broken setups in the lab: a lame delegation, a forgotten serial, mismatched NS records, cached NXDOMAIN, /etc/hosts overrides and blocked TCP.
kvi5hnuCode Sprout team member14 minWhy classic DNS leaks your browsing and how encryption fixes it: DNS over TLS on port 853, DNS over HTTPS with its URL and media type, DNS over QUIC, padding, discovering encrypted resolvers with DDR and DNR, the measured cost of the handshake, and what encryption does and doesn't protect.
kvi5hnuCode Sprout team member14 minHow DNS is run in the real world: round-robin and address ordering, split DNS with views, dynamic DNS for home users, proxies and open resolvers, amplification and rate limiting (measured), mDNS, DNS-SD and LLMNR on the local link, LDAP, and the main attacks on DNS from cache poisoning to KeyTrap.
kvi5hnuCode Sprout team member19 minHow DNS data changes and spreads: signed dynamic updates with nsupdate and TSIG, prerequisites and update errors, the primary's journal, NOTIFY to secondaries, full (AXFR) and incremental (IXFR) zone transfers, restricting and encrypting transfers, all captured in the lab.
kvi5hnuCode Sprout team member13 minThe DNS record types you meet in practice, each queried from a lab zone: addresses, NS and glue, SOA fields, CNAME and DNAME aliases, wildcards, reverse lookups for IPv4 and IPv6 with classless delegation, MX and null MX, TXT, SRV, NAPTR and URI, CAA, SVCB and HTTPS, and minimal ANY responses.
kvi5hnuCode Sprout team member17 minThe DNS message byte by byte: the 12-byte header and its flags, opcodes and response codes, the four sections, resource record format, name compression, the EDNS(0) OPT record with cookies and the 1,232-byte buffer size, truncation and the switch to TCP, and retransmission.
kvi5hnuCode Sprout team member15 minThe path of a DNS lookup: stub resolvers, recursive resolvers and authoritative servers, recursive versus iterative queries, a full resolution captured packet by packet, QNAME minimization, TTLs counting down, negative caching, measured cache savings and serve-stale.
kvi5hnuCode Sprout team member16 minHow DNS names are built and who controls them: the tree and its root, TLDs, label rules, names on the wire, IDNs, search lists, and how zones and delegation split the tree among servers, shown in a private DNS lab.
kvi5hnuCode Sprout team member17 min