How many layer are there in OSI
The open system interconnection (OSI) model defines a networking framework to implement protocols in seven layers.
Layer 1: physical layer:-
The physical layer is responsible for the transmission and reception of unstructured raw data between a device and a physical transmission medium. It converts the digital bits into electrical, radio, or optical signals.
The data link layer provides node-to-node data transfer a link between two directly connected nodes. It detects and possibly corrects errors that may occur in the physical layer. It defines the protocol to establish and terminate a connection between two physically connected devices.
The network layer provides the functional and procedural means of transferring variable length data sequence from one node to another connected in "different networks".
The transport layer provides the functional and procedural means of transferring variable-length data sequences from a source to a destination host, while maintaining the quality of service functions. The transport layer controls the reliability of a given link through flow control, segmentation/desegmentation, and error control.
The session layer controls the dialogues between computers. It establishes, manages and terminates the connections between the local and remote application.
The presentation layer establishes context between application-layer entities, in which the application-layer entities may use different syntax and semantics if the presentation service provides a mapping between them.
The application layer is the OSI layer closest to the end user, which means both the OSI application layer and the user interact directly with the software application. This layer interacts with software applications that implement a communicating component.