When networks first came into being, computers could typically communicate only with computers from the same manufacturer. For example, companies ran either a complete DECnet solution or an IBM solution — not both together. In the late 1970’s, the Open System interconnection (OSI) reference model was created by the International Standard of Organization (ISO) to break this barrier.
The ultimate aim of the OSI reference model is to break down the task of data communication into easily manageable steps.
” A reference model is a conceptual blueprint of how communications should take place. it addresses all the processes required for effective communication and divides these processes into logical grouping called layers. ”
The seven Layers of the OSI Model :-
- Application Layer
- Presentation Layer
- Session Layer
- Transport Layer
- Network Layer
- Data-Link Layer
- Physical Layer
The purpose of each layer in the OSI reference model is to provide service to the next layer above it while shielding the upper layer from the complications of the layer below it. The higher layers do not need to know how the data came there or what kinds of technologies were used at the lower layers.
Application Layers :- The Application layer of the OSI model marks the spot where users actually communicate to the computer. The purpose of this layer is to manage communication between the applications and end-user processes.
This is the layer through which applications receive and request data.
Prime examples are file transfers and email, as well as enabling remote access, network management activities, client/server processes and information locations.
Layer 7 protocols (Application Layer) :-
BitTorrent, BGP ,BOOTP , DNS, DHCP , FTP , HTTP, HTTPS, IMAP, LDAP , MIME , NetBIOS , NNTP, NTP, POP3 , RADIUS , RDP, RTP, RTSP , SSH , SIP , SMTP, SNMP, SMB, Telnet, TFTP,
Presentation Layer :-
The presentation layer is the layer below the Applicaiton layer and above the Session layer. The presentation layer gets it,s name from it,s purpose: it presents data to the Application layer and is responsible for data translator and code formatting.
The Primary function of this layer is to define data formats such as text , ASCII text , Binary and Jpeg.
The presentation layer adds structure to the packets of the data that are being exchanged and ensures that the message gets transmitted in a format or syntax that the receiving system is able to understand. Data Encryption is also defined by the presentation layer.
3. Session Layer
The session layer is responsible for settings up, managing, and then tearing down sessions between Presentation layer entities. This layer also provides dialog control between devices, or nodes.
The Session layer define how to start/establish a connection, how to use and control a connection and how to break down the connection when a session is complete.
Example :-
Your web browser (an application layer object) opens a web page. That page contains text, graphics, Macromedia Flash objects and perhaps a Java applet. The graphics, the Flash object and the Java applet are all stored as separate files on the web server. To access them, a separate download must be started. Your web browser opens a separate session to the web server to download each of the individual files. The session layer keeps track of which packets and data belong to which file and keeps track of where they go (in this case, to your web browser).
Protocols Used on Session Layer :-
NFS ( Network File System) , SMB Server Message Block and SOCKS “SOCKetS”
4. Transport Layer
In the Open Systems Interconnection (OSI) communications model, the Transport layer ensures the reliable arrival of messages and provides error checking mechanisms and data flow controls. The Transport layer provides services for both “connection-mode” transmissions and for “connectionless-mode” transmissions. For connection-mode transmissions, a transmission may be sent or arrive in the form of packets that need to be reconstructed into a complete message at the other end.
The most well-known transport protocol is the Transmission Control Protocol (TCP). It lent its name to the title of the entire Internet Protocol Suite, TCP/IP. It is used for connection-oriented transmissions, whereas the connectionless User Datagram Protocol (UDP) is used for simpler messaging transmissions. TCP is the more complex protocol, due to its stateful design incorporating reliable transmission and data stream services. Other prominent protocols in this group are the Datagram Congestion Control Protocol (DCCP) and the Stream Control Transmission Protocol (SCTP).
Protocol Used on the Transport Layer :-
AH (Authentication Header over IP or IPSec ) , ESP ( Encapsulating Security Payload over IP or IPSec ) ,GRE (Generic Routing Encapsulation for tunneling) , SCTP ( Stream Control Transmission Protocol) , TCP ( Transmission Control Protocol ) and UDP ( User Datagram Protocol )
5. Network Layer :-
The network layer ( also called layer 3 ) manages device addressing, tracks the location of devices on the network, and determines the best way to move data, which means that the network layer must transport traffic between devices that aren’t locally attached. Routers ( layer 3 devices ) are specified at the network layer and provide the routing services within an inter-network.
In addition, the Network layer defines how to fragment a packet into smaller packets so that it can be accommodated in the transmission media with smaller MTU (maximum transmission unit) sizes.
Used Protocols on Network Layer :-
EIGRP ( Enhanced Interior Gateway Routing Protocol ) ,ICMP( Internet Control Message Protocol ) , IGMP (Internet Group Management Protocol ) , IPv4 ( Internet Protocol version 4 ) , IPv6 ( Internet Protocol version 6 ) , IPSec ( Internet Protocol Security)
6. Data Link Layer :-
The Data Link layer provides the physical transmission of the data and handles error notifications, network topology, and flow control. This means that the Data Link Layer will ensure that messages are delivered to the proper device on a LAN using hardware addresses and will translate the messages from the Network layer into bits for the Physical layer to transmit.
The Data link layer formats the message into pieces, each called a data frame, and adds a customized header containing the hardware destination and source address.
The Data-Link Layer is composed of two sub-layers :-
- Logical Link Control ((LLC) sub layer
- Media Access Control ( MAC) sub layer
7. Physical Layer :-
The physical layer is special compared to the other layers of the model, because it is the only one where data is physically moved across the network interface. All of the other layers perform useful functions to create messages to be sent, but they must all be transmitted down the protocol stack to the physical layer, where they are actually sent out over the network.
The OSI Model Animation :-
Note :- Mnemonics to remember the Seven Layers of OSI Reference Model
From Top to Bottom :- All People Seem To Need Data Processing
From Bottom to Top :- Please Do Not Take Sales Persons Advice