All exams← All CompTIA Network+ Practice notes

Networking fundamentals & OSI model: CompTIA Network+ Practice revision notes

Revision notes

What networking fundamentals cover

This area is the foundation for the whole exam: how data actually gets from one device to another, and the shared language (the OSI model) used to describe it. Get this solid and everything else - cabling, routing, troubleshooting - slots into place.

The OSI model - 7 layers

Learn it bottom to top and top to bottom. A classic mnemonic: 'Please Do Not Throw Sausage Pizza Away'.

  • Layer 1 Physical - bits, cables, connectors, voltages, hubs
  • Layer 2 Data Link - frames, MAC addresses, switches, ARP sits here (conceptually)
  • Layer 3 Network - packets, IP addresses, routers, routing
  • Layer 4 Transport - segments, TCP and UDP, ports, reliability, flow control
  • Layer 5 Session - opens, manages and closes sessions between apps
  • Layer 6 Presentation - formatting, encryption, compression (SSL/TLS historically placed here)
  • Layer 7 Application - the actual protocol the user-facing app talks, eg HTTP, FTP, DNS

Common mistakes

  • Mixing up Layer 2 (MAC/switches) with Layer 3 (IP/routers) - a switch forwards by MAC, a router forwards by IP.
  • Forgetting that a firewall can operate at multiple layers depending on type (packet-filtering = L3/L4, next-gen/application = up to L7).
  • Thinking TCP/IP has the same 7 layers - it doesn't, it's a 4-layer model (Network Interface, Internet, Transport, Application) that maps loosely onto OSI.
  • Confusing encapsulation direction: data is encapsulated (headers added) going DOWN the stack on send, and de-encapsulated going UP the stack on receive.

The PDU (protocol data unit) at each layer

Each layer has its own name for the data unit: Data (L7-5), Segment (L4), Packet (L3), Frame (L2), Bits (L1). The exam loves testing this sequence directly.

TCP vs UDP

  • TCP is connection-oriented, uses a three-way handshake (SYN, SYN-ACK, ACK), guarantees delivery and order - used for web, email, file transfer.
  • UDP is connectionless, no handshake, no guarantee - used for speed-critical traffic like VoIP, video streaming, DNS lookups.

Key numbers to lock in

  • 7 OSI layers, 4 TCP/IP layers
  • MAC address = 48 bits (6 bytes), written as 12 hex characters
  • IPv4 address = 32 bits; IPv6 address = 128 bits
  • Standard Ethernet MTU = 1500 bytes

Revise this by drawing the stack from memory with the PDU name and one device example against each layer - that single diagram covers a big chunk of exam marks.

Key facts

Flashcards

Name the 7 layers of the OSI model, bottom to top.
Physical, Data Link, Network, Transport, Session, Presentation, Application.
tap to reveal
What mnemonic helps recall OSI layers from Layer 1 up?
Please Do Not Throw Sausage Pizza Away.
tap to reveal
What device operates at Layer 2 and forwards traffic by MAC address?
A switch.
tap to reveal
What device operates at Layer 3 and forwards traffic by IP address?
A router.
tap to reveal
What is the PDU called at the Transport layer?
A segment.
tap to reveal
What is the PDU called at the Network layer?
A packet.
tap to reveal
What is the PDU called at the Data Link layer?
A frame.
tap to reveal
How many layers does the TCP/IP model have, and what are they?
4 layers: Network Interface, Internet, Transport, Application.
tap to reveal
What are the three steps of the TCP handshake?
SYN, SYN-ACK, ACK.
tap to reveal
Is UDP connection-oriented or connectionless, and where is it typically used?
Connectionless, no handshake or guaranteed delivery; used for VoIP, video streaming and DNS lookups.
tap to reveal
How many bits make up a MAC address, and how is it usually written?
48 bits, written as 12 hexadecimal characters.
tap to reveal
How many bits make up an IPv4 address? An IPv6 address?
IPv4 = 32 bits; IPv6 = 128 bits.
tap to reveal
Which OSI layer do HTTP, FTP and DNS operate at?
Layer 7, the Application layer.
tap to reveal
What is the standard Ethernet MTU?
1500 bytes.
tap to reveal
Which direction does encapsulation happen: sending or receiving?
Sending - headers are added going down the stack; they're stripped off (de-encapsulation) going up the stack on receive.
tap to reveal
Practice questions

Networking fundamentals & OSI model: 5 practice questions

Q1. Which OSI layer is responsible for logical addressing and routing packets between different networks?
  • A.  Layer 7 - Application
  • B.  Layer 2 - Data Link
  • C.  Layer 4 - Transport
  • D.  Layer 3 - Network
Show answer & explanation
✓ Answer: D. Layer 3 - Network
The Network layer (Layer 3) handles logical addressing (IP addresses) and routing between networks. Layer 2 only deals with physical/MAC addressing within a single local segment, which is why it cannot route between networks.
Q2. A technician needs to identify a device using its physical hardware address on the local network segment. Which OSI layer provides this addressing?
  • A.  Layer 3 - Network
  • B.  Layer 2 - Data Link
  • C.  Layer 1 - Physical
  • D.  Layer 5 - Session
Show answer & explanation
✓ Answer: B. Layer 2 - Data Link
The Data Link layer (Layer 2) uses MAC addresses, which are burned into network interface hardware, to identify devices on the same local segment. Layer 1 only deals with raw bits and signals, with no addressing concept.
Q3. Which layer of the OSI model establishes, manages, and terminates communication sessions between two applications?
  • A.  Session
  • B.  Transport
  • C.  Network
  • D.  Presentation
Show answer & explanation
✓ Answer: A. Session
The Session layer (Layer 5) manages dialogue control, coordinating and maintaining connections between applications for the duration of a conversation. Transport handles segment delivery and reliability, not session coordination.
Q4. An engineer is troubleshooting an issue where data is encrypted and formatted differently between two hosts, preventing proper interpretation. Which OSI layer is most directly responsible for data format translation and encryption?
  • A.  Transport
  • B.  Presentation
  • C.  Application
  • D.  Session
Show answer & explanation
✓ Answer: B. Presentation
The Presentation layer (Layer 6) handles data translation, formatting, compression, and encryption so that data from the Application layer is understood by the receiving system. The Application layer only provides the interface for user-facing services.
Q5. Which transport layer protocol provides connection-oriented, reliable delivery using acknowledgements and retransmission?
  • A.  TCP
  • B.  ICMP
  • C.  ARP
  • D.  UDP
Show answer & explanation
✓ Answer: A. TCP
TCP (Transmission Control Protocol) is connection-oriented and uses a three-way handshake plus acknowledgements to guarantee reliable, ordered delivery. UDP is connectionless and does not guarantee delivery, making it faster but unreliable.
Test yourself
See the CompTIA Network+ Practice page

More CompTIA Network+ Practice topics