Mehdi Akiki

Posts tagged "networking"

  • Published on
    Eight eMudhra CA keys had a private value below 256, so my laptop found all of them in a fraction of a second. Then I looked at what still trusted the root above them. The browsers were fixed in hours. curl, Python and the system store were not.
  • Published on

    Investigation · Part 9 of 20 · When the benchmark lies

    Coordinated Omission: How a Load Test Hides Its Worst Latency

    My toy server stops for half a second every five seconds. A client that waits for each answer saw 4 slow requests out of 1.36 million, and a p99 of 30 microseconds. A client with a fixed schedule saw 1,608 slow requests and a p99 of 450 milliseconds.
  • Published on

    Investigation · Part 10 of 10 · Following a TCP connection

    What a Connection Pool Saves, and the Stale Connection It Gives You Back

    Reusing one connection made 1000 HTTPS requests 21 times faster, and with the stock Python server it first made them 60 times slower. I measured what a pool saves, what a stale connection returns, and which retry pays the same customer two times.
  • Published on

    Investigation · Part 9 of 10 · Following a TCP connection

    What a TLS Handshake Costs

    On loopback a TCP connect costs tens of microseconds and a TLS 1.3 handshake costs about one to three milliseconds. I counted the records, the bytes and the CPU on both sides, compared an RSA and an ECDSA certificate, measured resumption, and found 42 ms that were not TLS at all.
  • Published on

    Investigation · Part 8 of 10 · Following a TCP connection

    How a Name Becomes an Address: What getaddrinfo Really Does

    Connecting to localhost took 77 microseconds and connecting to 127.0.0.1 took 12, to the same server. I followed getaddrinfo with strace: four sources tried in order, files read on every call, answers sorted with IPv6 first, and a lookup that blocks the thread.