Open Systems Interconnection (OSI) model is developed by ISO (International organization for standardization) in 1984. OSI reference model is a logical framework for standards for the network communication.
OSI reference model is now considered as a primary standard for internetworking and inter computing. Today many network communication protocols are based on the standards of OSI model. In the OSI model the network/data communication is defined into seven layers.
These 7 layers further divide the tasks of moving the data across the network into subtask and hence complete one communication cycle between two computers or two network devices. Each layer is assigned a task and the task is completed independently.
The 7 layers of the OSI models can be divided into Upper and Lower layers.
P D N T S P A - Please Do Not Throw Sausage Pizza Away.
or - Please Do Not Take Sales Persons Advice.
Layer 7: Application Layer
The application layer defines the interfaces for communication and data transfer.
This layer also provides and support services such as job transfer, handles network access, e-mail, supports user applications and error recovery.
Protocols: FTP, DNS, SNMP, SMTP, FINGER, TELNET, TFTP, BOOTP and SMB are operated on the application layer.
Layer 6:Presentation Layer
The presentation layer presents the data into a uniform format and masks the difference of data format between two dissimilar systems. It also translates the data from application to the network format. Presentation layer is also responsible for the protocol conversion, encryption, decryption and data compression. Presentation layer is a best layer for cryptography.
Layer 5: Session Layer
Session layer establish and manages the session between the two users at different ends in a network. Session layer also manages who can transfer the data in a certain amount of time and for how long. The examples of session layers and the interactive logins and file transfer sessions. Session layer reconnect the session if it disconnects. It also reports and logs and upper layer errors.
Protocols: NetBIOS, Mail Slots, Names Pipes, RPC.
Layer 4: Transport Layer
Transport layer manages end to end message delivery in a network and also provides the error checking and hence guarantees that no duplication or errors are occurring in the data transfers across the network. Transport layer also provides the acknowledgement of the successful data transmission and retransmits the data if no error free data was transferred.
It also provides and error handling and connectionless oriented data deliver in the network.
Protocols: TCP, SPX,NETBIOS, ATP and NWLINK.
Layer 3: Network Layer
The network layer determines that how data transmits between the network devices. It also translates the logical address into the physical address e.g computer name into MAC address. It is also responsible for defining the route, managing the network problems and addressing. Router works on the network layer and if a sending device does not break the data into the similar packets as the receiving device then network layer split the data into the smaller units and at the receiving end the network layer reassemble the data.
Network layer routes the packets according to the unique network addresses. Router works as the post office and network layer stamps the letters (data) for the specific destinations.
Protocols: IP, ICMP, ARP, RIP, OSI, IPX and OSPF.
Layer 2:Data Link Layer
Defines procedures for operating the communication links,Frames packets,Detects and corrects packets transmit errors.
Layer 1: Physical Layer
Defines physical means of sending data over device. It interfaces between network medium and devices.Defines optical, electrical and mechanical characteristics.
OSI Model Reference Table
| Layer | Function | Protocols | Network Components |
| Application User Interface | - Used for applications specifically written to run over the network
- Allows access to network services that support applications;
- Directly represents the services that directly support user applications
- Handles network access, flow control and error recovery
- Example apps are file transfer, e-mail, NetBIOS-based applications
| DNS; FTP; TFTP; BOOTP; SNMP;RLOGIN; SMTP; MIME; NFS; FINGER; TELNET; NCP; APPC; AFP; SMB | Gateway |
| Presentation Translation | - Translates from application to network format and vice-versa
- All different formats from all sources are made into a common uniform format that the rest of the OSI model can understand
- Responsible for protocol conversion, character conversion,data encryption / decryption, expanding graphics commands, data compression
- Sets standards for different systems to provide seamless communication from multiple protocol stacks
- Not always implemented in a network protocol
|
| Gateway Redirector |
| Session Syncs and Sessions | - Establishes, maintains and ends sessions across the network
- Responsible for name recognition (identification) so only the designated parties can participate in the session
- Provides synchronization services by planning check points in the data stream => if session fails, only data after the most recent checkpoint need be transmitted
- Manages who can transmit data at a certain time and for how long
- Examples are interactive login and file transfer connections, the session would connect and re-connect if there was an interruption; recognize names in sessions and register names in history
| NetBIOS Names Pipes Mail Slots RPC | Gateway |
| Transport Packets; Flow control & Error-handling | - Additional connection below the session layer
- Manages the flow control of data between parties across the network
- Divides streams of data into chunks or packets; the transport layer of the receiving computer reassembles the message from packets
- A train is a good analogy => the data is divided into identical units
- Provides error-checking to guarantee error-free data delivery, with on losses or duplications
- Provides acknowledgment of successful transmissions; requests retransmission if some packets don’t arrive error-free
- Provides flow control and error-handling
| TCP, ARP, RARP; SPX NWLink NetBIOS / NetBEUI ATP | Gateway Advanced Cable Tester Brouter |
| Network Addressing; Routing | - Translates logical network address and names to their physical address (e.g. computername ==> MAC address)
- Responsible for
- addressing
- determining routes for sending
- managing network problems such as packet switching, data congestion and routing
- If router can’t send data frame as large as the source computer sends, the network layer compensates by breaking the data into smaller units. At the receiving end, the network layer reassembles the data
- Think of this layer stamping the addresses on each train car
| IP; ARP; RARP, ICMP; RIP; OSFP; IGMP; IPX NWLink NetBEUI OSI DDP DECnet | Brouter Router Frame Relay Device ATM Switch Advanced Cable Tester |
| Data Link Data frames to bits | - Turns packets into raw bits 100101 and at the receiving end turns bits into packets.
- Handles data frames between the Network and Physical layers
- The receiving end packages raw data from the Physical layer into data frames for delivery to the Network layer
- Responsible for error-free transfer of frames to other computer via the Physical Layer
- This layer defines the methods used to transmit and receive data on the network. It consists of the wiring, the devices use to connect the NIC to the wiring, the signaling involved to transmit / receive data and the ability to detect signaling errors on the network media
| Logical Link Control - error correction and flow control
- manages link control and defines SAPs
802.1 OSI Model 802.2 Logical Link Control | Bridge Switch ISDN Router Intelligent Hub NIC Advanced Cable Tester |
| Media Access Control - communicates with the adapter card
- controls the type of media being used:
802.3 CSMA/CD (Ethernet) 802.4 Token Bus (ARCnet) 802.5 Token Ring 802.12 Demand Priority |
| Physical Hardware; Raw bit stream | - Transmits raw bit stream over physical cable
- Defines cables, cards, and physical aspects
- Defines NIC attachments to hardware, how cable is attached to NIC
- Defines techniques to transfer bit stream to cable
| IEEE 802 IEEE 802.2 ISO 2110 ISDN | Repeater Multiplexer Hubs TDR Oscilloscope Amplifier |