Skip to content
RankCore.AI
← All posts

The OSI Model Explained: A Technical Study Guide to All Seven Layers

· Networking, OSI, TCP/IP, Study Guide

The short video above follows a simple story. Ana, in Miami, sends a photo to her brother in São Paulo. She taps Send, and about a second later he sees it. In that second the photo moved through seven layers: the app she touched, the formatting and encryption that made the file safe to carry, the session that kept the conversation together, the transport that cut the photo into numbered pieces, the IP addresses that steered those pieces, the local hardware addresses that got each piece to the next hop, and the radio, copper, and fiber that carried ones and zeros as signals. Engineers call that map the OSI model.

The video is a two-minute tour with an honest closing note: the real Internet runs on the simpler four-layer TCP/IP model. OSI is still the best map for learning, and for answering the question that matters when something breaks — which layer failed? This study guide is the technical version of that tour.

History and why the model still matters

The Open Systems Interconnection work began in the late 1970s at ISO, when vendors shipped incompatible stacks. The goal was a shared architecture so systems from different manufacturers could interoperate. The reference model was published as ISO 7498 in 1984. The current edition is ISO/IEC 7498-1:1994, Information technology — Open Systems Interconnection — Basic Reference Model: The Basic Model. ITU-T publishes the same architecture as Recommendation X.200.

OSI described both a seven-layer reference model and a protocol suite (CLNP, session and presentation standards, and applications such as FTAM, X.400, and X.500). The suite lost the market to TCP/IP, already running on the ARPANET and growing with the Internet. The model survived because it gives engineers a shared vocabulary: "layer 2 loop" and "layer 3 failure" tell you where to look. It is a reference, not a law of physics. TLS, QUIC, and BGP sit awkwardly across the official lines. Learn the official layer first, then where practice diverges.

A layer offers a service to the layer above and uses the service of the layer below. Peer layers communicate with protocol data units (PDUs). Going down the stack, each layer adds a header, and sometimes a trailer: encapsulation. At the destination, and at every hop that must inspect a header, the relevant header is read and later removed: decapsulation. The video shows both directions. On Ana's phone, headers go on. On her brother's phone, the labels come off one by one, the pieces are put back in order, decrypted, and the photo appears.

Layer 1 — Physical

The physical layer moves bits (or symbols) between adjacent devices as signals: voltage on copper, light on fiber, and radio on Wi-Fi, which is how the video leaves Ana's phone. It specifies media, connectors, pinouts, encoding, timing, and whether a link is up. It has no addresses and no concept of a frame.

Raw bits are encoded into symbols the medium can carry. Older Ethernet used simple line codes; Gigabit and faster PHYs use 8b/10b or 64b/66b; very high-speed PHYs use schemes such as PAM-4. Building copper is typically twisted pair: Cat5e or Cat6 for 1000BASE-T, Cat6A for 10GBASE-T. Fiber is multimode (shorter reach, often 10GBASE-SR) or single-mode (long reach, 10GBASE-LR and beyond). The "fiber under the ocean" in the video is still layer 1. IEEE 802.3 names the PHYs (10BASE-T, 100BASE-TX, 1000BASE-T, 10GBASE-T, and optical forms). Speed and duplex are set manually or by autonegotiation. Full duplex, the norm on switched links, sends and receives at once. Half duplex shares the medium and uses CSMA/CD, which classic hubs required. A duplex mismatch — one side full, the other half — produces late collisions, CRC errors, and terrible throughput on a link that still shows as up.

Devices: cables, patch panels, transceivers (SFP/SFP+/QSFP), repeaters, and hubs (a multi-port repeater: one collision domain, no MAC learning). A modern NIC has a PHY (layer 1) and a MAC (layer 2). Failures look like no link, flaps, or symbol/CRC errors. On Linux, ip link and ethtool eth0 report speed, duplex, autonegotiation, and link detection; ethtool -S eth0 shows counters. If the cable or optic is wrong, routing will not help.

Layer 2 — Data Link

The data link layer moves frames between nodes on the same local network, or across one hop to the next router, using MAC addresses. IEEE 802 splits it into Logical Link Control (LLC, 802.2) and Media Access Control (MAC), which is medium-specific (Ethernet 802.3, Wi-Fi 802.11). In the video, once the packet has a destination IP, it still must reach the next hop, so it "gets a local hardware address, called a MAC." The destination IP can stay the same all the way to São Paulo. The destination MAC changes at every hop.

A canonical Ethernet MAC is 48 bits. Two bits in the first octet matter: I/G (0 = unicast, 1 = multicast or broadcast) and U/L (0 = universally administered, 1 = locally administered). Broadcast is ff:ff:ff:ff:ff:ff.

Ethernet II, the usual wired frame, is destination MAC (6 bytes), source MAC (6 bytes), EtherType (2 bytes), payload (46–1500 bytes), and a 4-byte CRC-32 Frame Check Sequence. A 7-byte preamble and 1-byte start frame delimiter are used on the wire for synchronization; they are not part of the MAC frame Wireshark usually displays. EtherType 0x0800 is IPv4, 0x86DD is IPv6, 0x0806 is ARP, and 0x8100 is 802.1Q. If that 16-bit field is 1500 or less, the frame is IEEE 802.3 with a length field and an LLC header, not Ethernet II. Minimum frame size is 64 bytes including FCS (short payloads are padded to 46 bytes). Maximum without a VLAN tag is 1518 bytes (14-byte header + 1500 payload + 4-byte FCS).

The MTU is the largest payload the data link will accept: 1500 bytes for standard Ethernet. Jumbo frames (often 9000-byte MTUs) are not an IEEE default; the whole path must agree. An 802.1Q VLAN tag of 4 bytes is inserted after the source MAC: TPID 0x8100, then a TCI with 3-bit priority (PCP), a 1-bit Drop Eligible Indicator, and a 12-bit VLAN ID (0–4095; 0 and 4095 reserved). The tagged maximum becomes 1522 bytes. Switches use the VID to separate broadcast domains. Trunks carry multiple VLANs; access ports usually carry one.

A switching loop turns a broadcast into a storm. Spanning Tree Protocol (IEEE 802.1D), Rapid STP (802.1w), and Multiple STP (802.1s) block redundant ports until they are needed. Bridges elect a root by the lowest bridge ID (priority plus MAC). Port roles include root, designated, and alternate. RSTP converges in seconds, not the tens of seconds of classic STP.

Address Resolution Protocol (RFC 826) maps an IPv4 address to a MAC on the local link. A host that needs to send to 198.51.100.24 — the documentation address used in the video, from TEST-NET-2 in RFC 5737 — issues an ARP request ("who-has") to the broadcast MAC and caches the "is-at" reply. If the IP is not on-link, the host ARPs for its default gateway instead. IPv6 does not use ARP; it uses Neighbor Discovery (RFC 4861) with ICMPv6 Neighbor Solicitation and Advertisement.

Devices: switches, bridges, wireless access points, and the MAC side of NICs. Typical faults: wrong VLAN, bad trunk, MAC flapping, full MAC table, FCS errors, ARP failure, STP block. Use ip link, ip neigh (or older arp -n), bridge vlan, and tcpdump -n -e arp or a Wireshark filter of arp.

Layer 3 — Network

The network layer delivers packets end to end. This is the "address on a package" in the video: each piece gets a destination IP, and routers read it to choose the next stop. Every router decrements the hop count, looks up the next hop, and swaps the local layer 2 header. The IP header stays with the packet until the destination (NAT aside).

The IPv4 header (RFC 791) is 20 bytes at minimum. IHL (Internet Header Length) is 4 bits, counted in 32-bit words, so the minimum value is 5; options can grow the header to 60 bytes. Fixed fields, in order: Version (4 bits, set to 4); IHL; Type of Service (8 bits, now DSCP plus ECN); Total Length (16 bits, header plus payload, in bytes); Identification (16 bits, shared by fragments of one datagram); Flags (3 bits: reserved, Don't Fragment, More Fragments); Fragment Offset (13 bits, in units of 8 bytes); Time to Live (8 bits); Protocol (8 bits: 1 = ICMP, 6 = TCP, 17 = UDP, 89 = OSPF); Header Checksum (16 bits, over the header only); Source and Destination Addresses (32 bits each); then options if IHL is greater than 5.

TTL is decremented by every router. At 0 the packet is dropped and the router sends ICMP Time Exceeded (Type 11). That is the mechanism behind traceroute. IPv4 routers may fragment unless DF is set. If a router must fragment a packet with DF set, it drops it and sends ICMP Destination Unreachable, Fragmentation Needed (Type 3, Code 4), which Path MTU Discovery (RFC 1191) depends on.

The IPv6 base header (RFC 8200) is a fixed 40 bytes, with no checksum and no fragmentation fields: Version (4), Traffic Class (8), Flow Label (20), Payload Length (16), Next Header (8), Hop Limit (8), and 128-bit Source and Destination addresses. Payload Length covers only the payload, not the 40-byte base header — a frequent exam trap if you are thinking in IPv4 Total Length. Extension headers, chained by Next Header, carry options, routing, and fragmentation. IPv6 routers must not fragment transit packets. Only the source may fragment, using a Fragment extension header, and Path MTU Discovery (RFC 8201) is effectively required.

Classless Inter-Domain Routing (RFC 4632) replaced classful A/B/C thinking. A prefix length /n is the number of leading network bits. Take host 192.168.10.130/26. /26 means 26 network bits and 6 host bits, so the mask is 255.255.255.192 (last octet 11000000). The block size in the last octet is 2^6 = 64, so subnets land on 0, 64, 128, and 192; 130 sits in 128–191. The network is 192.168.10.128 (130 is 10000010; AND with 11000000 gives 10000000). First usable is 192.168.10.129, last usable 192.168.10.190, broadcast 192.168.10.191 (10111111). Usable hosts: 2^6 − 2 = 62. Wildcard mask: 0.0.0.63. A packet to 192.168.10.200/26 is not on this subnet.

ICMP (RFC 792; ICMPv6 in RFC 4443) is a network-layer companion, carried as IP protocol 1 or Next Header 58. Echo Request and Reply are ping. Time Exceeded and Destination Unreachable, including Fragmentation Needed and Port Unreachable, signal problems. ICMP is not a transport protocol. A router forwards on the longest matching prefix. Static routes are configured by an administrator: predictable, not automatic when a link fails. OSPF is a link-state interior gateway protocol (OSPFv2 for IPv4 is RFC 2328; OSPFv3 is RFC 5340). Routers flood link-state advertisements, run Dijkstra's algorithm, and usually sit in areas with area 0 as the backbone. OSPF is IP protocol 89 and does not use TCP or UDP. BGP, the Internet's inter-domain protocol (RFC 4271), runs over TCP port 179 and selects a path by policy (local preference, AS path, MED), not a simple shortest-path metric.

Devices: routers and layer 3 switches. Look for a wrong mask, a missing default route, asymmetric routing, TTL expiry, and Path MTU black holes (Type 3 Code 4 filtered). Use ip addr, ip route, ping, traceroute or tracepath, and tcpdump icmp or a Wireshark filter of icmp or icmpv6. A successful ping is not proof that the application works.

Layer 4 — Transport

The transport layer provides process-to-process communication, using segments (TCP) or datagrams (UDP). In the video the photo is "too big to send in one piece, so it's cut into numbered segments. TCP makes sure every segment arrives and resends anything lost. A video call would use UDP instead: faster, and a dropped piece barely matters." Addressing is the 16-bit port. IANA well-known ports are 0–1023, registered 1024–49151, and dynamic 49152–65535, though Linux often uses 32768–60999 for ephemeral ports.

TCP (RFC 9293, the current official standard, which incorporates and obsoletes RFC 793) has a 20-byte minimum header; options can grow it to 60. Fields: Source and Destination Ports (16 bits each); Sequence Number (32); Acknowledgment Number (32); Data Offset (4 bits, header length in 32-bit words, minimum 5); Reserved (4 bits); control bits (8: CWR, ECE, URG, ACK, PSH, RST, SYN, FIN); Window (16); Checksum (16, over a pseudo-header plus the segment); Urgent Pointer (16); then options such as MSS, Window Scale, SACK permitted, and Timestamps.

The three-way handshake exchanges initial sequence numbers (ISNs). The client sends SYN with seq = x and the ACK flag clear. The server replies SYN-ACK with seq = y and ack = x + 1. The client sends ACK with seq = x + 1 and ack = y + 1. The connection is then ESTABLISHED. Data is a byte stream: sequence numbers count bytes, and the acknowledgment number is the next byte the receiver expects. The receive window (rwnd), optionally shifted by the Window Scale option (RFC 7323), limits unacknowledged data from the receiver's side. Congestion control separately limits sending with a congestion window (cwnd), using slow start, congestion avoidance, fast retransmit, and fast recovery. Linux commonly defaults to CUBIC (RFC 9438); BBR is also widely deployed. Loss, or the appearance of loss, slows TCP, which is why a duplex mismatch can look like a bandwidth problem.

Teardown is normally FIN, ACK, FIN, ACK, because each direction closes independently and a half-close is allowed. The side that sends the last ACK enters TIME-WAIT for twice the maximum segment lifetime, which prevents old duplicates from being accepted on a new connection with the same tuple. RST aborts immediately. MSS is not the MTU. A typical IPv4 Ethernet MSS is 1460 (1500 − 20 − 20), and smaller if options are present. Blocking ICMP needed for Path MTU Discovery produces stalled connections that ping still answers.

UDP (RFC 768) has an 8-byte header: source port, destination port, length, and checksum (16 bits each). Length includes header and data. There is no handshake, retransmission, ordering, or congestion control in the protocol itself. The checksum is optional in IPv4 (0 means it was not computed) and mandatory in IPv6. DNS, DHCP, real-time media, and QUIC all use UDP, for different reasons.

QUIC (RFC 9000) is a transport built on UDP. It combines connection establishment, reliable streams, and a TLS 1.3-based handshake, so HTTP/3 can complete in 1-RTT, or 0-RTT with early data. Connection IDs survive a path change, such as Wi-Fi to cellular, that would break a TCP 4-tuple. QUIC also does work that OSI would call session and presentation. Treat it as a modern transport, not as "UDP, so it is unreliable."

Hosts, layer 4 load balancers, and firewalls act here. Look for connection refused (nothing listening: TCP RST, or ICMP Port Unreachable for UDP), timeouts, resets, retransmissions, and a zero window. Use ss -tulpn or ss -tan, and tcpdump or Wireshark. Useful filters: tcp port 443, tcp[tcpflags] & (tcp-syn|tcp-fin|tcp-rst) != 0, and in Wireshark tcp.flags.syn==1, tcp.analysis.retransmission, tcp.analysis.zero_window.

Layers 5, 6, and 7 — where the real stack blurs

These three layers are clean in ISO/IEC 7498-1 and messy on the Internet. The video still gives the right intuition if you know where the functions actually live.

Layer 5, Session, establishes, manages, and tears down a dialog, with optional dialog control and checkpoints. On today's Internet there is rarely a standalone session protocol between TCP and the application. TCP connections, TLS sessions, HTTP keep-alive, HTTP/2 and HTTP/3 streams, and application tokens all do pieces of this job. Exam guides often cite NetBIOS, RPC, and SIP. In production, a "session" problem is usually a dropped TCP or TLS session, an expired token, or a load balancer that does not pin a dialog — not a missing OSI session header.

Layer 6, Presentation, is syntax: a negotiated representation so that "any device can read it," as the video says, plus optional compression and encryption. In practice those jobs are a collection of standards, not one layer: UTF-8, JSON, protobuf, ASN.1, JPEG, MPEG, gzip, Brotli, and, above all, TLS. TLS 1.3 (RFC 8446) sits between a reliable transport, usually TCP, and the application protocol, usually HTTP. It provides a 1-RTT handshake (and optional 0-RTT early data), removes the compression and renegotiation of earlier TLS, and carries encrypted application data in the record layer. Mapping TLS strictly to layer 6 is a teaching convenience. It also has a handshake and a session, and in HTTP/3 the cryptography is built into QUIC. For exams, "TLS and encryption are presentation" is the expected short answer. For troubleshooting, treat TLS as its own step: certificates, SNI, version, and cipher overlap.

Layer 7, Application, is "the app she touches" and the protocols it speaks: HTTP and HTTPS, DNS, SMTP, FTP, SSH, and others. HTTPS is HTTP over TLS. DNS maps names to addresses, usually on UDP/53, with TCP/53 for large responses and zone transfers. SMTP uses port 25, or 587 for submission, often with STARTTLS. DHCP is commonly classified as application even though it exists to configure layer 3. Application protocols assume the layers below already work. If DNS fails, the app never finds the server. If TLS fails, HTTP never starts. If TCP 443 is filtered, none of the above matters. Look for NXDOMAIN or a wrong A/AAAA record, certificate errors, HTTP 4xx and 5xx, and "the site is down" when ping still works. Use dig (dig +short A example.com, dig AAAA), openssl s_client -connect example.com:443 -servername example.com, and curl -vI https://example.com to see DNS, TCP, TLS, and HTTP headers in one place.

Encapsulation and decapsulation: a web request, end to end

Walk this path once. Suppose Ana's phone opens https://www.example.com/.

  1. Application (layer 7). The browser wants an HTTP GET. It needs an IP for www.example.com, so it makes a DNS query — itself another application protocol — and gets an address.
  2. Presentation (layer 6, in teaching terms). The GET travels inside TLS 1.3. The TLS handshake runs first over TCP; then the GET is encrypted.
  3. Session (layer 5, in teaching terms). The TCP connection and the TLS session together are the dialog. There is no separate session header on the wire.
  4. Transport (layer 4). The client picks an ephemeral source port and connects to destination port 443. TCP completes the three-way handshake, then carries TLS records as a byte stream, with sequence numbers, acknowledgments, and retransmissions.
  5. Network (layer 3). Each TCP segment is wrapped in an IPv4 or IPv6 header. The server is not on-link, so the next hop is the default gateway.
  6. Data link (layer 2). The phone ARPs, or uses a cached neighbor, for the gateway's MAC, and builds an Ethernet or 802.11 frame (destination MAC of the gateway, source MAC of the phone, EtherType 0x0800, FCS at the end). At every later router the packet is on a new layer 2 segment and gets a new destination MAC. IP addresses stay the same until NAT, if present, rewrites them.
  7. Physical (layer 1). The frame becomes radio, then typically copper or fiber, then, toward São Paulo, long-haul optical, including undersea plant.

At each router the PHY recovers bits, the data-link layer checks the FCS and accepts the frame if the destination MAC is the router's, and the network layer decrements TTL or Hop Limit, looks up the next hop, and emits a new frame with a new layer 2 header. That is the "stop by stop" path in the video. On the server the process runs in reverse: bits to frames, FCS checked, IP examined, TCP reassembled, TLS decrypted, HTTP request delivered. The response is encapsulated the other way. If you can point to the header added or removed at each step, you understand the model.

OSI versus TCP/IP, and a layer map

RFC 1122 describes the Internet host architecture in four layers. That is the model the video calls "the simpler four-layer TCP/IP model," and it is what the Internet actually implements. OSI layers 5 through 7 collapse into one TCP/IP application layer. ARP is often drawn at the link/Internet boundary, because it has its own EtherType and is not carried inside IP.

OSI layerTCP/IP (RFC 1122)Key protocols and standardsDevices
7 ApplicationApplicationHTTP/HTTPS, DNS, SMTP, SSH, DHCP, BGPHosts, proxies, WAFs
6 PresentationApplicationTLS 1.3 (RFC 8446), encodings, MIME, compressionHost TLS libraries
5 SessionApplicationIn practice: TCP and TLS sessions, HTTP streams; exam cites include RPC, SIP, NetBIOSHosts, session-aware load balancers
4 TransportTransportTCP (RFC 9293), UDP (RFC 768), QUIC (RFC 9000)Hosts, L4 load balancers, firewalls
3 NetworkInternetIPv4 (RFC 791), IPv6 (RFC 8200), ICMP, OSPFRouters, L3 switches
2 Data linkLinkEthernet II, 802.1Q, STP/RSTP, ARP, 802.11Switches, APs, bridges, NIC MAC
1 PhysicalLinkIEEE 802.3 and 802.11 PHYs, opticsCables, SFPs, hubs, repeaters, NIC PHY

How to troubleshoot with the model

The operational point of the model is to narrow the search. Three standard methods appear on exams and on incidents.

Bottom-up. Start at layer 1 and climb: link up, correct VLAN, MAC for the gateway, ping the gateway, then a remote IP, then a name, then the port, then TLS, then the URL. This is the safest method when you have no idea what failed.

Top-down. Start at the application. curl -v the URL. If the failure is "Could not resolve host," you just saved an hour in the cabling closet. If DNS works and a TCP SYN gets no reply, drop to layers 3 and 4. This is usually faster when the user reports a specific app failure.

Divide and conquer. Start in the middle, typically at layer 3. If ping to the destination IP works, the path, ARP, and the physical path are probably fine, and you look upward (ports, TLS, application). If ping fails, you look downward and at routing. Then bisect the path with traceroute or a capture on an intermediate hop.

Use the vocabulary from the end of the video: which layer broke? Confirm with a command or a capture, not a guess. A practical sequence: ethtool and ip link; ip addr and ip route; ip neigh; ping the gateway, then an external IP, then the destination; traceroute if the path is the question; dig if a name is involved; ss -tulpn and a SYN capture if the port is the question; openssl s_client and curl -v if TLS or HTTP is the question.

Exam pitfalls (Network+ and CCNA style)

  • Hubs are layer 1; switches are layer 2; routers are layer 3. A plain access switch does not route. A "layer 3 switch" does.
  • MAC addresses are local to a hop. IP addresses are end to end (NAT aside). Each router swaps the local layer 2 header; that is the point the video makes on the path to Brazil.
  • ARP is not used on IPv6. Neighbor Discovery is. ICMP is network layer, not transport. Port numbers are transport, not application, even when you remember HTTP/80 and HTTPS/443.
  • HTTP is application; the encryption is TLS. "HTTPS lives at layer 6" is sloppy. HTTPS is HTTP (7) over TLS (taught as 6) over TCP (4).
  • BGP uses TCP port 179. OSPF does not use a transport port; it is IP protocol 89.
  • MTU is the layer 2 payload limit. MSS is the TCP payload limit. They are not the same number.
  • A /24 is 256 addresses and 254 usable IPv4 hosts, not 255. Subtract network and broadcast. IPv6 has no broadcast address.
  • A TTL expiry is a layer 3 event (ICMP Time Exceeded), not a "layer 4 timeout." A successful ping does not prove the application works; some networks filter ICMP differently from TCP 443.
  • Duplex mismatch presents as a performance problem, not necessarily as a down link. VLANs are a layer 2 broadcast-domain tool; inter-VLAN traffic still needs a router or an SVI.
  • The TCP/IP model has four layers, not seven. Do not force OSI names onto a question that asks about the Internet model.

Self-check quiz

Try these without scrolling to the answers.

  1. What standard currently defines the OSI basic reference model, and about when was the model first published?
  2. Name the PDU at layers 1 through 4.
  3. An IPv4 header has IHL = 5 and Total Length = 84. How many bytes of payload are there? How many bytes would an IPv6 Payload Length of 84 include?
  4. A host is 10.20.30.70/28. What are the network address, the usable range, and the broadcast?
  5. Which IPv4 header field and ICMP message does traceroute depend on?
  6. Why must an IPv6 router not fragment a packet the way an IPv4 router might?
  7. Write the three-way handshake, including sequence and acknowledgment numbers.
  8. How many bytes is the UDP header, and when is its checksum mandatory?
  9. What does an 802.1Q tag add, and what happens to the maximum standard frame size?
  10. A user cannot open https://shop.example.com, but ping 203.0.113.10 (the A record) works. Name three layers you would test next, and a command for each.
  11. Where does TLS sit in OSI teaching, and why is that mapping incomplete?
  12. Which protocol maps 198.51.100.24 to a MAC address, and what is the IPv6 equivalent?

Answers

  1. ISO/IEC 7498-1:1994 (also ITU-T X.200). First published as ISO 7498 in 1984.
  2. Bits or symbols at layer 1, frames at 2, packets at 3, and segments (TCP) or datagrams (UDP) at 4. Layers 5–7 are usually called data.
  3. 84 − 20 = 64 bytes of IPv4 payload. IPv6 Payload Length excludes the 40-byte base header, so 84 means 84 bytes after that header, including any extension headers.
  4. /28 has 16 addresses (4 host bits). Block size 16; 70 falls in 64–79. Network 10.20.30.64, usable 10.20.30.65–10.20.30.78, broadcast 10.20.30.79 (14 usable hosts).
  5. The TTL field. At 0, a router sends ICMP Time Exceeded (Type 11) to the source.
  6. RFC 8200 forbids IPv6 routers from fragmenting transit packets. Only the source may fragment, using a Fragment extension header. Path MTU Discovery is how hosts learn a smaller MTU.
  7. Client: SYN, seq = x. Server: SYN-ACK, seq = y, ack = x + 1. Client: ACK, seq = x + 1, ack = y + 1.
  8. 8 bytes. Optional in IPv4 (0 means unused); mandatory in IPv6.
  9. A 4-byte tag (TPID 0x8100 plus TCI with PCP, DEI, and a 12-bit VLAN ID). The standard maximum grows from 1518 to 1522 bytes.
  10. Layer 4: ss or a TCP capture to port 443, or curl -v to see whether the SYN is answered. Layer 6: openssl s_client -connect 203.0.113.10:443 -servername shop.example.com. Layer 7: dig shop.example.com, then curl -vI https://shop.example.com. DNS can still be wrong even if the IP you pinged is reachable.
  11. Presentation, because of encryption and negotiated syntax. Incomplete because TLS also has a handshake and a session, runs over TCP or inside QUIC, and is not a general-purpose OSI presentation protocol.
  12. ARP (RFC 826). IPv6 uses Neighbor Discovery (RFC 4861), not ARP. 198.51.100.24 is a documentation address from RFC 5737, which is why it appears in examples, including the video.

If you can answer those twelve without hesitation, you have more than a two-minute overview. You have a working map of the OSI layers, the headers on the wire, and a method for deciding which layer broke.

If you want more walkthroughs like this, follow @rankcore.ai and browse the rest of the guides on blog.rankcore.ai.

Want to go deeper?

Our step-by-step video courses turn these ideas into results.

See courses

Comments

Sign in or create a free account to join the discussion.

No comments yet — be the first.