Tag: Computer Networks

  • OSI Model: 7 Layers Explained With Functions

    OSI Model: 7 Layers Explained With Functions

    Have you ever wondered what occurs when you open a website, send a message or stream a video? To transfer data from one device to another, a number of networking operations collaborate behind that simple click. Networking is significantly simpler to study and troubleshoot because to the OSI Model, which divides this complex path into seven easily understood layers.

    What is OSI Model?

    A conceptual framework that describes how devices communicate over a network is called the OSI (Open Systems Interconnection) Model. It separates the communication process into seven layers, each of which is in charge of a particular function.

    The OSI Model breaks networking down into individual parts rather than treating it as a single, complex operation. To speed up the transfer of data from the sender to the recipient, each layer collaborates with the layers immediately above and below it.

    7 Layers of OSI Model

    The seven layers are:

    • Application
    • Presentation
    • Session
    • Transport
    • Network
    • Data Link
    • Physical

    Let’s see what each layer actually does.

    Application Layer

    The layer next to the user is called the Application Layer. Applications use the network services it offers to interact with other systems.

    Major Functions:

    • Gives applications access to network services.
    • Permits file transfers, email and web surfing, among other things.
    • Makes use of protocols including DNS, FTP, SMTP, HTTP and HTTPS.

    Example: Application-layer protocols provide communication between your browser and the web server when you visit a website.

    Consider it as: The layer where users can benefit from network connectivity.

    Presentation Layer

    Data may be represented in many formats by various systems. The data is displayed in a way that the receiving system can understand due to the Presentation Layer.

    Major Functions:

    • Converts data between several formats.
    • Encrypts and decrypts information.
    • Data is compressed and decompressed.
    • Manages the encoding and representation of data.

    Example: Data can be encrypted prior to transmission and then decrypted by the machine that receives it.

    Consider it as: The layer that ensures data is secure, usable and structured correctly.

    Session Layer

    Communication sessions between devices or applications are managed by the session layer. It enables the start, continuation and conclusion of a communication session.

    Major Functions:

    • Initiates conversations.
    • Keeps sessions running.
    • Synchronizes dialogue.
    • When communication is finished, sessions are terminated.

    Example: The session layer facilitates the management of extended communication between two systems.

    Consider it as- the layer that maintains the order of a conversation.

    Transport Layer

    Things are getting more interesting now. Data delivery between apps on various devices is handled by the Transport Layer. It guarantees that the data can get to the right application by dividing massive volumes of data into smaller chunks.

    Major Functions:

    • Divides information into more manageable pieces.
    • Enables communication from beginning to end.
    • Regulates the data flow.
    • Identifies and corrects transmission problems.
    • Identifies programs using port numbers.

    Example: TCP and UDP are two significant transport-layer protocols. In order to guarantee that the entire message reaches its destination, TCP can identify missing data and retransmit it.

    Consider it as: The layer in charge of ensuring that data is correctly sent across applications.

    Network Layer

    When there is no direct connection between the sender and the destination, how does data know where to go? The Network Layer can help with that.

    It uses logical addressing, like IP addresses, to identify devices and decides how packets should move between several networks.

    Major Functions:

    • Manages IP addressing.
    • Establishes packet routes.
    • Carries out network routing.
    • Transports packets to their intended location.

    Example: Routers function mostly at this layer and forward messages to the appropriate network using IP addresses.

    Consider it as: the layer that determines the path the data should go.

    The Data Link Layer manages data transmission throughout the local network after the Network Layer decides where it must go. It uses MAC addresses to identify devices on the local network and packages network-layer data into frames.

    Major Functions:

    • Creates frames from packets.
    • MAC addresses are used for local distribution.
    • Finds frame errors.
    • Regulates the transmission medium’s access.

    Typically, the Data Link Layer is separated into two sublayers:

    • Media Access Control (MAC)
    • Logical Link Control (LLC)

    Example: A network switch determines where to forward an Ethernet frame based on MAC addresses.

    Consider it as: The layer that manages local network device-to-device distribution.

    Physical Layer

    The Physical Layer is located at the bottom of the OSI Model. This is the actual transmission of data as signals across a wireless or physical channel. Transmitted via cables, fiber optics, radio waves or other physical media, the data is represented as bits (0s and 1s).

    Major Functions:

    • Transmits unprocessed data.
    • Describes the means of physical transmission.
    • Details signaling, connectors and cables.
    • Establishes features like data transmission rates.

    Examples: Connectors, wireless radio waves, fiber-optic cables and Ethernet cables.

    Consider it as: The layer that transports the bits physically.

    How Does the OSI Model Work?

    • When you examine the layers collectively, it becomes easier to understand the true magic.
    • Consider sending a message to a different device from your PC.
    • Data travels downward on the sending device:
    • Application → Presentation → Session → Transport → Network → Data Link → Physical
    • Before transferring the data to the following layer, each layer completes its own task.
    • After then, the data is sent via the network.
    • The procedure is reversed on the receiving device:
    • Physical → Data Link → Network → Transport → Session → Presentation → Application
    • The recipient program eventually receives the original data.

    Simple Analogy

    Think of sending a parcel.

    • Application: You decide what you want to send.
    • Presentation: The contents are prepared and packaged appropriately.
    • Session: The communication between sender and receiver is managed.
    • Transport: The package is divided and delivery is coordinated.
    • Network: The destination address and route are determined.
    • Data Link: The package moves between devices on the local network.
    • Physical: The actual transportation takes place.

    The OSI Model works in a similar layered way.

    Why is the OSI Model Important?

    You don’t typically view the OSI Model operating on your computer as a seven-step procedure. Its ability to provide us with a shared understanding of networking is its greatest asset.

    It helps network engineers:

    • Recognize how network communication operates.
    • Determine the location of a network issue.
    • Create and diagnose networks.
    • Recognize networking protocols.
    • Discover the interactions between various networking devices and technologies.

    For example, you can consider the Physical Layer right away if a cable is damaged. The Network Layer becomes a likely area to look into if there is a routing issue.

    Conclusion

    The seemingly complex process of network communication is divided into seven manageable layers by the OSI Model, each of which has a distinct function. Every layer contributes to the transfer of data between devices, from applications at the top to physical signals at the bottom. Networking principles like TCP, IP, routers, switches and MAC addresses become much simpler to connect once you understand these seven layers.

    Read More: