Networking Fundamentals and the OSI Model
What a Network Actually Does
Core idea
A network is a system for moving data between endpoints using agreed rules, addressing, and transport mechanisms. At a high level, networking solves four problems: identification, routing, delivery, and verification.
Key concept
The same message is usually wrapped in multiple layers of metadata as it moves through the network. Each layer adds its own header, and the receiver removes them in reverse order.
The OSI Model
Layered communication
The OSI model divides networking into layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. This model helps isolate problems by showing where a failure likely occurred.
OSI Layers at a Glance
| Layer | Primary responsibility |
|---|---|
| 7 Application | User-facing network services |
| 6 Presentation | Data format, encryption, compression |
| 5 Session | Conversation management |
| 4 Transport | End-to-end delivery and reliability |
| 3 Network | Logical addressing and routing |
| 2 Data Link | Local delivery on a link |
| 1 Physical | Bits on the medium |
Which OSI layer is most directly responsible for routing packets between networks?
Layer 3 handles logical addressing and routing decisions across multiple networks.
Correct answer: Layer 3 Network
What is the main purpose of layering in networking?
Layering modularizes the system so each layer can evolve independently and failures can be isolated more easily.
Correct answer: To divide complex communication into manageable responsibilities and simplify troubleshooting
OSI vs TCP/IP
OSI
- Theoretical reference model
- Seven layers
- Useful for troubleshooting and teaching
TCP/IP
- Practical Internet model
- Fewer layers
- Maps closely to real protocols
Which statement best describes encapsulation?
Encapsulation is the process of wrapping data with protocol information as it moves down the stack.
Correct answer: Each layer adds its own header as data moves down the stack
Troubleshooting habit
When diagnosing a network issue, start by asking: Is the problem local, link-level, routing-related, transport-related, or application-related?