OSI model

The **Open Systems Interconnection model** (**OSI model**) is a method of thinking of computer networking in terms of abstraction layers.  Different communication protocols with similar functions are grouped into different logical layers on the OSI Model.  Each layer of the OSI Model makes use of functions provided by the layers below it and provides functions that are used by the layers above it.  There are 7 layers.

The OSI model is a way of thinking about protocol stacks.

## Description of OSI layers

According to the standard OSI Model there are seven layers. Each layer is dependent upon the layers below it to function.
|colspan="5"|OSI Model|||
| --- | --- | --- | --- |
|style="background:#d8ec9b;"|7. Application|style="background:#d8ec9c;"|<small>Network process to computer programs</small>|
||6. Presentation||<small>Data representation, security encryption, convert computer code to network formatted code</small>|
||5. Session||<small>Interhost communication, managing sessions between programs</small>|
||4. Transport||<small>End-to-end connections, reliability and flow control</small>|
|style="background:#eddc9c;"|3. Network|style="background:#eddc9c;"|<small>Path determination and logical addressing</small>|
||2. Data link||<small>Physical addressing</small>|
|style="background:#e9988a;"|1. Physical|style="background:#e9988a;"|<small>The physical infrastructure used to send and receive signals</small>|

Some aspects of computer networking, such as management and security, use or are used on every layer.

### Layer 7: Application layer

The application layer provides an interface for the end user operating a device connected to a network. This layer is what the user sees, in terms of loading an application (such as Web browser or e-mail); that is, this application layer is the data the user views while using these applications. Examples of application layer functionality include:

- Support for file transfers
- Ability to print on a network
- Electronic mail
- Electronic messaging
- Browsing the World Wide Web.

### Layer 6: Presentation layer

The Presentation Layer would be able to properly interpret a message sent through the network. This layer is responsible for the proper translation or interpretation.

### Layer 5: Session layer

The Session Layer establishes request/response communication. When needed, a session is started with authentication, after which a request is sent. After a response the session might be ended or a new request is sent. This is the first layer where a client/server concept is introduced. Where a specific device might change the role from client to server or vice versa.

### Layer 4: Transport layer

The Transport Layer is the level at which system reliability and quality are ensured. This layer manages traffic flow through the network layer to reduce congestion on a network, and performs error checking ensuring quality of service by resending data when data has been corrupted. Some of the most popular methods of encryption and firewall security take place on this layer.

### Layer 3: Network layer

The network layer allows data to be sent from one place to another, perhaps jumping from one device to the next and to the next.  This is using routing and addressing.  The Routing Layer works to coordinate related parts of a data conversation to ensure that large files are transferred. In other words, while the data link layer deals with the method in which the physical layer is used to transfer data, the network layer deals with organizing that data for transfer and reassembly. This layer also handles aspects of Routing Protocols, finding the available [best] path(s) from one network to another to ensure delivery of the data.

### Layer 2: Data link layer

The Data Layer is mainly the method in which information from the network is broken down into frames and transmitted over the physical layer. This layer is also responsible for some Error detection and correction and some addressing so different devices can tell each other apart in larger systems.

### Layer 1: Physical layer

The Physical Layer refers to how the devices change the electrical or physical aspects around them in order to send signals. It specifies how a device sends and receives information, such as using copper wires, radio waves or fiber-optic cables. Examples of this include Ethernet, Wi-fi or fiber optic cables, phone cords used for dial-up or DSL services, the coaxial cable used to provide broadband internet, the wires used to connect various components of a computer or even the radio signals used in wireless communication. The physical layer also deals with conversion of signals into something that another layer can use (referred to as a bit), and adjusting the signals to allow for many users to use the same connections, known as multiplexing.