yuval.guide — Guides and hands-on courses on DevOps, cloud, Linux, Python, Kubernetes, networking and AI.
HTTP keeps nothing between requests, so a server that wants to know who is asking must be told on every request. Basic authentication, defined in RFC 7617 , does it the simplest way: every request carries the username and password in a header. The simulator shows each message whole, so you can read the password …
Read MoreA session moves the password off the wire. The browser sends it once, in a login form; the server then creates a record, "this random id belongs to alice", and hands the id back in a cookie. The browser returns the cookie on every request, and the server looks the id up to learn who is asking. The simulator shows each …
Read MoreA home or café router gives its clients private addresses and has a single public address of its own, so it rewrites every packet that crosses it: the source on the way out, the destination on the way back. The simulator shows that rewrite on each packet and the NAT table that drives it. The background is in NAT - …
Read MoreOne idea per line, in the order a connection lives through them. A read more link points at the RFC section behind a line; RFC 9293 is today's TCP specification. The TCP Simulator shows most of these lines happening. The basic units: segment, connection, stream Segment: a TCP header plus the data it carries, sent …
Read MoreTCP numbers every byte it sends, and every ACK names the next byte it expects, so each acknowledgment can be traced back to the segments it covers. The simulator draws that tie between the two directions of a connection: Host A sends from left to right, Host B from right to left, and every segment is one you send and …
Read MoreTLS protects a password on its way to a server, and that raises one question: how does a browser know it is talking to shop.example and not to someone standing in its place? Only the server has to answer it, because the browser is the one about to hand over a secret. The simulator plays out the answer with six parties: …
Read MoreTLS is what turns the password of Basic HTTP Authentication from readable text into ciphertext. Before any HTTP is sent, the client and the server agree on a secret that nobody on the path can compute, and the server proves that it holds the private key of a certificate issued for the name the client typed. The …
Read MoreWhen a link fails, the routers at its two ends describe the network afresh and flood the news to everyone in the area; every router then reruns SPF on the new database. The demo cuts the R1B–R1D link in area 1 of the network from the earlier demos, while a host on R1A's LAN sends a steady stream of packets to ABR-1B, …
Read MoreInside an area every router holds the whole map, but no router LSA ever leaves its area. Routes between areas are carried by the ABRs as summary LSAs: a prefix and a cost, with nothing of the links behind them. This demo follows one such route from area 2 to area 1 across the network from the Hello , Database Exchange …
Read MoreEvery router in an OSPF area holds the same database, and runs Shortest Path First (SPF) on it to find the cheapest path to everywhere in the area. This demo takes area 1 of the network from the Hello and Database Exchange demos, strips it down to a graph, and runs Dijkstra's algorithm on it one decision at a time. …
Read More