OSI model
A seven-layer reference model of networking, where layer 3 is IP addressing, layer 4 is ports and layer 7 is the application protocol.
In more detail
Real protocols do not map onto it exactly, but the layer numbers are a common shorthand. Standard NetworkPolicy works at layers 3 and 4, so it can allow a pod and a port but not a hostname or an HTTP path.
Related terms
- NetworkPolicy — A Kubernetes object that controls which pods may send traffic to or receive traffic from which others, by labels, namespaces and IP ranges.
- IP address — The numeric address, such as 192.168.1.10, that identifies a machine or container on a network.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- transport layer — The layer that carries data between programs on two machines, identified by port numbers, using TCP or UDP.
- application layer — The top layer, where protocols such as HTTP, DNS and SSH give the bytes meaning as requests, answers and commands.
Taught in
- Kubernetes NetworkPolicies & Microsegmentation — Cloud Security & DevSecOps Engineering
- Layers And Addresses — ISC2 Certified in Cybersecurity (CC) Exam Prep
- Load Balancing And The Failure Modes It Introduces — Scalable System Design & Distributed Architecture
References
- ISO/IEC 7498-1: the basic reference model
- ISO/IEC 7498-1: OSI basic reference model
- ITU-T Recommendation X.200: Open Systems Interconnection basic reference model