OSI Model Layers

The seven layers of the OSI reference model.

  • JSON3,540 B
  • YAML2,404 B · −32%
  • TOON1,875 B · −47%

The seven layers of the OSI reference model, numbered from the physical layer (1) up to the application layer (7), each with its function and example protocols. It is the shared vocabulary for saying where in the stack a device, protocol or fault belongs.

Use it when

  • You need the numbering and names of the layers, for example to explain what a 'layer 7 firewall' or 'layer 2 switch' does.
  • You are teaching or troubleshooting by working up or down the stack.

Watch out for

  • OSI is a reference model. TCP/IP, which the internet runs on, groups the upper three OSI layers into one application layer.
  • Many protocols do not sit cleanly in one layer; TLS, for example, is placed at layer 6 or 5 depending on who is drawing it.

The data

LayerNameFunctionExample protocols
7ApplicationNetwork services for applicationsHTTP, FTP, SMTP, DNS
6PresentationData translation, encryption, compressionSSL/TLS, JPEG, ASCII
5SessionManages sessions between applicationsNetBIOS, RPC
4TransportEnd-to-end communication and reliabilityTCP, UDP
3NetworkLogical addressing and routingIP, ICMP, OSPF
2Data LinkNode-to-node framing and media accessEthernet, PPP
1PhysicalRaw bit transmission over mediaUSB, Ethernet cables, radio

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
datalayerinteger7
datanamestringApplication
datafunctionstringNetwork services for applications
dataexample_protocolsstringHTTP, FTP, SMTP, DNS

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.com/api/dataset/osi-model-layers?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/osi-model-layers.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • networking
  • osi
  • protocols

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets