Network Protocol & Transport Reference
PacketLab documents the core wire protocols behind browser networking—from DNS resolution and TCP handshakes to HTTP/2 multiplexing, RFC 6455 WebSocket frames, and structured JSON payloads.
WebSockets & Framing
HTTP/1.1 101 upgrade headers, SHA-1 accept keys, opcodes, masking, and ping/pong heartbeats.
Open specification →DNS Resolution & Records
Recursive lookup paths, A/AAAA/CNAME/TXT records, TTL negative caching, and DoH/DoT.
Open specification →HTTP Request Lifecycle
Safe vs. idempotent methods, ETag validation, status code groups, and HTTP/2 vs. HTTP/3.
Open specification →JSON & Event Envelopes
Grammar rules, 64-bit integer precision limits, typed socket envelopes, and NDJSON streaming.
Open specification →RFC 6455 WebSocket Frame Header
After the initial HTTP upgrade, every WebSocket packet begins with a compact binary header (2 bytes server-to-client, or 6 bytes client-to-server with the 32-bit masking key).
Protocol Term Cards
Click the card below to flip between the networking term and its technical definition, or add your own reference cards to the deck.
Common Ports & HTTP Status Lookup
| Code / Port | Protocol / Meaning | Layer | Notes |
|---|---|---|---|
53 | DNS (UDP/TCP) | Application | Standard hostname-to-IP resolution queries. |
80 | HTTP (Plaintext) | Application | Unencrypted web traffic; usually redirects to 443. |
443 | HTTPS / WSS / DoH | Application | TLS-encrypted HTTP, WebSockets, and DNS over HTTPS. |
853 | DNS over TLS (DoT) | Transport | Dedicated TLS socket for encrypted DNS lookups. |
101 | Switching Protocols | HTTP Status | Confirms protocol upgrade (e.g. HTTP/1.1 to WebSocket). |
204 | No Content | HTTP Status | Request succeeded with an intentionally empty body. |
304 | Not Modified | HTTP Status | Cached ETag/Last-Modified copy is still valid. |
429 | Too Many Requests | HTTP Status | Rate limit exceeded; check Retry-After header. |
OSI Model Quick Reference
| Layer | Name | Data Unit | Examples |
|---|---|---|---|
| 7 | Application | Message | HTTP/2, WebSocket, DNS |
| 6 | Presentation | Encoded Data | TLS 1.3, UTF-8, Gzip, JSON |
| 4 | Transport | Segment / Datagram | TCP, UDP, QUIC |
| 3 | Network | Packet | IPv4, IPv6, ICMP |
| 2 | Data Link | Frame | Ethernet (802.3), Wi-Fi (802.11) |