Network Concepts
Network Concepts

Network Concepts

1.1 Explain concepts related to the Open Systems Interconnection (OSI) reference model.

The Concept of Encapsulation

As data travels down the stack from your application to the wire, each layer wraps the data in its own specific header (like putting a letter inside a series of nesting envelopes). This is called Encapsulation. When the receiving device gets the data, it strips the headers off as it moves up the stack. This is called De-encapsulation.

Each layer handles a specific unit of data, known as a Protocol Data Unit (PDU).

Layer 7: The Application Layer

This layer is the closest to the end user. It provides network services directly to the software applications you run on your computer.

  • Core Function: It doesn’t represent the web browser or application itself; rather, it represents the protocols that those programs use to communicate with the network.
  • PDU: Data
  • Examples & Protocols: HTTP/HTTPS (web browsing), SMTP/IMAP (email), FTP (file transfers), and DNS (name resolution).

Layer 6: The Presentation Layer

This layer acts as the network’s translator. It formats, structures, and prepares the data so that the Application layer can understand it.

  • Core Function: Handles data formatting, data compression (to save bandwidth), and encryption/decryption (such as formatting standard SSL/TLS traffic).
  • PDU: Data
  • Examples & Protocols: ASCII, JPEG, GIF, MP4, and standard encryption syntax formatting.

Layer 5: The Session Layer

The Session layer acts as the meeting coordinator. It builds, manages, and terminates the temporary communication conversations (sessions) between two distinct endpoints.

  • Core Function: It keeps different application data streams separated. It ensures that if you have five browser tabs open simultaneously, the incoming data goes to the correct tab. It also handles session checkpointing and recovery.
  • PDU: Data
  • Examples & Protocols: NetBIOS, RPC (Remote Procedure Call), and SOCKS tunneling.

Layer 4: The Transport Layer

The Transport layer is responsible for the end-to-end delivery of the data stream across the network. It dictates how data is moved.

  • Core Function: This layer splits large application files into manageable pieces. It handles Flow Control (preventing a fast server from overwhelming a slow client) and error recovery.
  • PDU: Segment (for TCP) or Datagram (for UDP)
  • The Two Big Protocols (Crucial for the Exam):
    • TCP (Transmission Control Protocol): Connection-oriented and reliable. It performs a “three-way handshake” to establish a link, tracks every packet, and guarantees delivery. If a packet drops, TCP forces a retransmission. Used for web browsing and file transfers.
    • UDP (User Datagram Protocol): Connectionless and unreliable. It uses a “fire-and-forget” method, sending data as fast as possible with zero delivery verification or error checking. Used for real-time voice (VoIP), video streaming, and DNS queries.

Layer 3: The Network Layer

The Network layer handles logical addressing and path selection across separate physical networks. It is the layer responsible for routing packets across the internet.

  • Core Function: It reads destination addresses to determine the most efficient path to send data across a complex network topology.
  • PDU: Packet
  • Hardware & Addressing: Routers live at Layer 3. They route data using logical IP Addresses (both IPv4 and IPv6).
  • Protocols: IP, ICMP (ping), OSPF, and ARP.

Layer 2: The Data Link Layer

The Data Link layer handles local network communication inside a single physical broadcast domain. It prepares network layer packets for physical transmission.

  • Core Function: It controls physical access to the local network media and handles basic error detection (using a Cyclic Redundancy Check, or CRC).
  • PDU: Frame
  • Hardware & Addressing: Switches and Network Interface Cards (NICs) live at Layer 2. They forward frames locally using physical MAC Addresses (burned-in hardware addresses).
  • Sublayers (Often Tested):
    • LLC (Logical Link Control): Talks “up” to the network layer, identifying the protocol being used.
    • MAC (Media Access Control): Talks “down” to the hardware, handling physical addressing and framing.

Layer 1: Physical Layer

The lowest tier of the model. It handles the raw electrical, optical, or radio frequency signals moving across physical media.

  • Core Function: Moving individual binary bits (1s and 0s) from one device’s interface to another.
  • PDU: Bit
  • Hardware & Cables: Fiber optic cables, UTP copper lines, patch panels, transceivers (SFPs), legacy hubs, and wireless radio waves.

OSI Model Reference Matrix for the Exam

Layer #Layer NamePDU TypePrimary FocusAssociated Hardware / Protocols
7ApplicationDataUser Interface ServicesHTTP, HTTPS, SMTP, DNS, FTP
6PresentationDataSyntax, Formatting, EncryptionSSL/TLS, JPEG, MP4, Compression
5SessionDataSession Coordination / SyncNetBIOS, Session Checkpoints
4TransportSegment/DatagramReliability & Flow ControlTCP (Reliable) / UDP (Fast)
3NetworkPacketLogical Addressing & RoutingRouters, Layer 3 Switches, IP Addresses
2Data LinkFramePhysical Access / Local SwitchingSwitches, NICs, MAC Addresses
1PhysicalBitSignal TransmissionCables, Transceivers, Hubs, Bits

How to Remember the Order (Mnemonics)

  • Top-to-Bottom (7 to 1): All People Seem To Need Data Processing
  • Bottom-to-Top (1 to 7): Please Do Not Throw Sausage Pizza Away

Leave a Comment

Your email address will not be published. Required fields are marked *