OSI MODEL
what is OSI model :
The Open Systems Interconnection (OSI) model is a conceptual model created by the International Organization for Standardization which enables diverse communication systems to communicate using standard protocols. In plain English, the OSI provides a standard for different computer systems to be able to communicate with each other.
Layer 7 (Application Layer)
This is the last and the topmost layer of the OSI model. This layer provides an interface between application programs running in system and network. If any application needs to access any resource that is available in remote system, it interacts with this layer. Then this layer encompasses the protocols and services that the application will employ to access that resources.
There are two types of application programs; network-aware and network-unaware. An application program is considered as network-aware when it can make any sort of network request. If an application program can’t make any kind of network request, it is considered as network-unaware program.
Network-aware programs are further divided in two categories;
A.) Programs which are mainly created to work in local system but if require can connect with remote system such as MS-Word, Adobe-Photoshop, VLC Player, etc.
B.) Programs which are mainly created to work with remote system such as SSH, FTP, TFTP, etc.
Only the programs which fall in second type are referred in application layer. It doesn’t mean that first type of programs can’t take the advantage of application layer. It simply means that, they are not documented in application layer. But if require, they can also connect with the network through the application layer.
Layer 6 (Presentation Layer)
The sixth layer of OSI model is the Presentation layer. Applications running in local system may or may not understand the format that is used to transmit the data across the network. The presentation layer works as the translator in OSI model. When receiving data from application layer, it converts that data in such a format that can be sent over the network. When receiving data from session layer, it reconverts that data in such a format that the application which will use the incoming data can understand.
Layer 5 (Session Layer)
The session layer is the fifth layer of OSI model. It is responsible for setting up, managing, and dismantling sessions between presentation layer entities and providing dialogs between computers.
When an application makes a network request, this layer checks whether the requested resource is available in local system or in remote system. If requested resource is available in remote system, it tests whether a network connection to access that resource is available or not. If network connection is not available, it sends an error message back to the application informing that connection is not available.
If network connection is available, it establishes a session with remote system. For each individual request, it uses a separate session. This allows multiple applications to send or receive data simultaneously. When data transmission is completed, it terminates the session.
Layer 4 (Transport Layer)
The transport layer is the fourth layer of OSI model. It provides following functionality: -
A.) Segmentation
On sending computer, it breaks data stream into smaller pieces before transmission. Each piece is known as segment and the process of breaking data into smaller pieces is known as segmentation. On receiving computer, it joins all segments back in data stream. So the upper layers receive data in the format in which it was sent.
B.) Data transportation
This layer establishes a logical connection between sending system and receiving system and uses that connection to provide end-to-end data transportation. For data transportation, it mainly uses two protocols; TCP and UDP.
TCP protocol is used for reliable data transportation. TCP is a connection-oriented protocol. UDP protocol is used for unreliable data transportation. UDP is a connection-less protocol.
Main difference between a connection-less and connection-oriented protocol is that a connection-oriented protocol provides reliable data delivery. For reliable data delivery, it uses several mechanisms such as, three way handshake process, acknowledgments, sequencing and flow control.
C.) Multiplexing
Through the use of port numbers, this layer also provides connection multiplexing. Connection multiplexing allows multiple applications to send and receive data simultaneously.
Layer 3 (Network Layer)
The third layer of OSI model is the Network Layer. This layer takes data segment from transport layer and adds logical address to it. A logical address has two components; network partition and host partition. Network partition is used to group networking components together while host partition is used to uniquely identity a system on a network. Logical address is known as IP address. Once logical address and other related information are added in segment, it becomes packet.
This layer decides whether the packet is intended for local system or remote system. It also specifies the standards and protocols which are used to move the data packets across the networks.
To move data packet between two different networks, a device known as router is used. Router uses logical address to take routing decision. Routing is a process of forwarding data packet to its destination.
Layer 2 (Data-Link Layer)
The Data Link Layer is the second layer of OSI model. This layer defines how networking components access the media and what transmission methods they use. This layer has two sub-layers; MAC and LLC.
A.) MAC (Media Access Control)
This sub layer defines how the data packets are placed in media. It also provides physical addressing. Physical address is known as MAC address. Unlike logical addresses which need to be configured, physical addresses are pre-configured in NIC. MAC address is used to uniquely identify a host in local network.
B.) LLC (Logical Link Control)
This sub layer identifies the network layer protocol. On sending computer, it encapsulates the information of the Network Layer protocol in LLC header from which the Data Link layer receives the data packet. On receiving computer, it checks the LLC header to get the information about the network layer protocol. This way a data packet is always delivered to the same network layer protocol from which it was sent.
Layer 1 (Physical Layer)
The Physical Layer is the first layer of OSI model. This layer specifies the standards for devices, media and technologies which are used in moving the data across the network such as: -
• Type of cable used in connecting the devices
• Patterns of pin used in both sides of cable
• Type of interface card used in networking device
• Type of connector used to connect the cable with network interface
• Encoding of digital signals received from the Data Link layer based on the attached media type such as electrical for copper, light for fiber, or a radio wave for wireless.
On sending computer, it converts digital signals received from the Data Link layer, in analog signals and loads them in physical media. On receiving computer, it picks analog signals from media and converts them in digital signals and transfers them to the Data Link layer for further processing.
Comments
Post a Comment