liveBook · Manning

OSI network model

As explained in Secure APIs

The OSI model is a seven-layer conceptual framework for describing communication functions between networked systems.

The OSI model is a seven-layer framework for describing what systems need to communicate. It separates physical transmission, networking, transport, sessions, data representation, and application communication. section 9.3

Read the layers from the physical medium upward:

  • Physical: carries signals over media such as cables. section 9.3
  • Data Link: delivers frames between local-network nodes using MAC addresses and handles transmission errors. section 9.3
  • Network: delivers packets using IP addresses. section 9.3
  • Transport: moves data between endpoints; TCP and UDP are common implementations. section 9.3
  • Session: establishes, maintains, and closes continuing exchanges between nodes. section 9.3
  • Presentation: translates and encodes data applications can consume, such as serialized JSON. section 9.3

For API security, the model helps locate exposure below the application itself. DoS and port-scanning attacks commonly target layers 3–6, while application attacks such as SQL injection and XSS require application-layer defenses. section 9.3 section 9.5

Figure 9.13 The OSI model breaks the elements required to enable communication between systems into seven layers. Layer 1 describes the physical medium, such as switches and cables, and layer 7 describes the application layer, such as APIs. Many API attacks target layers 3–6 and demand special security measures.
figure

Use the layered diagram to connect physical infrastructure at layer 1 with APIs at layer 7 and identify where security measures apply. section 9.3

How Secure APIs covers it

How deep it goes
Defines all seven layers and names representative protocols, but stops short of detailed protocol internals.
Examples
Uses cables, Ethernet, IP, TCP, UDP, JSON, HTTP, ping floods, port scanning, and API attacks as examples.
What you can do after
Evaluate API exposure by mapping communication and attacks to OSI layers.
How it connects
Connects networking layers with APIs, DoS, port scanning, network segmentation, DMZs, API gateways, and WAFs.

Also explained in

Compare how 2 books explain OSI network model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.