Open Systems Interconnection Model
The model is a theoretical object, most often followed loosely and not to the letter, that breaks down the functions of a network into seven layers.
Protocol - Defines almost every aspect of the language that is used for computers to communicate.
De jure standard - protocol designed by one company or organization and is maintained by that company. De jure protocols can either be open or closed standards. An open standard is one in which the specifications of the protocol are released. | |
De facto - protocol controlled by the entire industry and this is known as industry standard. All de facto protocols are open standards. |
Protocol Stacks - The layered functionality of the different protocols in the OSI model is called a protocol stack. When data is sent from a source device down the OSI model, each layer attaches its own header to that information.
OSI Layer | Function | Data Name |
Application | Interface between the user's application and the network | Messages |
Presentation | Negotiates data exchange formats | Packets |
Session | Allows users to establish connections using easily remembered names | Packets |
Transport | Provides end-to-end, reliable connections | Datagrams and segments |
Network | Routes data through a large internetwork | Datagrams |
Data Link | Determines access to the network media | Frames |
Physical | Transforms data into bits that are sent across the physical media | Bits |
Application Layer - This layer is the interface between the user's application and the network. This should not be confused with the actual application that the user is running. This layer enables the user to interact with network.
Presentation Layer - Establishes the format for data exchange. Also handles character set and numeric translations and data compression.
Session Layer - This layer lets users establish a connection - called a session - between devices and manages dialogue. Session can be set up as follows:
Half-duplex: One device talks while the other listens. Like a CB radio. | |
Advantages: Costs less and enables two way communication. | |
Disadvantages: Costs more than simplex and only one device communicate at a time. | |
Simplex: One-way communication only. | |
Advantages: Cheapest method | |
Disadvantages: One way only. | |
Full-duplex: Two-way communication. Phone is an example of duplex. | |
Advantages: Two-way communication. | |
Disadvantages: Most expensive because two bandwidth channels necessary. |
Transport Layer - This layer carries on a dialogue with the destination device by using message headers and control messages to ensure all the packets are received. It takes information from the session layer and breaks it up if necessary and when receiving data it puts it back together. It ensures that when data is broken up that is put back together in the proper sequence.
Network Layer - This layer routes information from sender to receiver, converts data into packets and uses connectionless transmissions (meaning it is not this layer's job to be sure things get there or not). The network layer uses the following to determine the best way to send a packet:
Switching: Circuit switching is where a dedicated connection is made between two communicating devices. Advantages - no congestion and delay. Disadvantages - inefficient use of media and long wait for connection. Message switching is where data is moved from device to device in its entirety. Advantages - media used more effectively and congestion can be controlled and prioritized. Packet switching is where data is broken into small pieces and routed from device to device. Datagram packet switching tags information with address so no dedicated connection is needed. Virtual circuits are similar to actual except the media is shared. | |
Routing: For packets to be routed across networks there needs to be a table set up to show the shortest route between two networks. These tables can be created and maintained either dynamically or statically. Static tables are usually setup by an administrator. Dynamic tables are defined by one of two methods: distance vector or link state. Distance vector simply calculates the number of hops between destinations. Link state takes into account hop count, link speed, latency and congestion. | |
Addressing: A device on a network has not only a device address but a network address. This network address lets the layer know if the device is on the same network as the destination device. |
Data Link Layer - The main purpose of this layer is to provide a reliable method of transmitting data across the physical media. This layer packages data into frames, transmits data sequentially and processes acknowledged frames sent from receiver. This layer processes individual packets where the transport layer assures total data reliability. There are two sub-layers of the data link layer they are:
Media Access Control - Only one device at a time can transmit on
any media. If there is more than one they will scramble signal.
There are three ways to control access to media, they are:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Logical Link Control - Maintains data link connections between
network devices. It is responsible for any flow control and error
correction found in this layer. It implements flow control by one of
two methods:
|
Physical Layer - The function of this layer is the transmission of bits over the network media. It also specifies requirements for how transmission occurs and ensures compatible data transmission with other devices.