NetworkCableOnline.com

Presents

      
The OSI Model

 

The OSI Model, or Open Systems Interconnection Model, was first developed in the 70's by the US Department of Defence. The name Open Systems Interconnection basically describes what it is, a standard which allows disparate systems to run over a common networking infrastructure. The primary objective of the OSI model is to simplify the way that developers and hardware manufacturers integrate their products into a networked environment. Without it, we would have proprietary methods and protocols for delivering streams of data across our networks, just like the bad old days.

 

It is important to realize that this is a reference model and in the real world it is not strictly adhered to. TCP/IP for example, uses a four layer model which is mapped to the OSI model as the diagram below shows. On the left are the seven layers of the OSI model and on the right are the corresponding TCP/IP layers. However, if you are studying anything to do with networking, you will need to learn the OSI model and remember all the layers and what they are responsible for, and how the data is encapsulated.

The seven layers in the Model each plays its part in the way that data is communicated between networked devices. Also, because each layer is independent of the layers above and below itself, it thinks it is communicating directly with its peer at the other end.

Lets take a look at the model and see what each layer does.


Layer 7 - Application
The application layer interfaces with the applications that you use to communicate over a network. There are 5 main services: File services, Email services, Network & printing services, Application services, Database services.

The application layer is also responsible for synchronizing with the application being used.

This data is then sent to the next layer down, the Presentation layer.


 
Layer 6 - Presentation
This layer takes the data from the application layer and puts it into a format that the receiving PC can understand. It also deals with compression and encryption. 

Some presentation layer protocols are:
Text/Data - ASCII, EBCDIC.
Sound/Video - MIDI, MPEG, Quicktime.
Graphics/Images - PICT, TIFF, JPEG, GIF.


 
Layer 5 - Session
The session layer is responsible for setting up and maintaining communications between the senders PC and the recipients PC, and when the data has been delivered, it is also responsible for terminating the communications session.

Examples of session layer protocols are:
Network File System (NFS), Structured Query Language (SQL), Remote Procedure Call (RPC), 
X Window System, Netbios Names, Internet Browsers, DNA Session Control Protocol (SCP).


 
Layer 4 - Transport
This layer is in charge of ... well er... Transport. Its job is to make sure that what is sent from one machine is reliably transmitted to the other, and, at what speed. There are two different transmission methods which can be used here, Connection Oriented and Connectionless.
In a Connection Oriented transmission, the receiving machine sends back an acknowledgement after receiving so many chunks of data, this lets the sending machine know that everything is working OK. The mechanism for doing this requires additional information to be added to the data segment in order for the 'hand shaking' to work, unfortunately this also makes it slower.
Connectionless transmissions just send packets one after another and hope for the best! This may not sound like the most reliable way to communicate, but if the connection is sound then it is much faster than the Connection Oriented method because it doesn't have the overheads of a connection oriented protocol.

Some transport layer protocols are:
TCP, UDP (User Datagram Protocol), SPX.

Encapsulation type at the Transport Layer: Segments


 
Layer 3 - Network
OK, everything now seems to be in place to send the data! ........ urm.... not quite, we haven't put an address on it yet or a return address for the flow control in the upper layers to work properly. So the Network layer adds a source address and a destination address, these are the IP addresses that each PC was assigned when it connected to the network. These are their logical addresses, not to be confused with their MAC addresses (we'll come on to that next). Using these logical addresses the Network layer can also decide the best route to take to get to the recipients machine.

Some Network Layer Protocols are:
IP, IPX, ICMP.

Encapsulation type at the Network Layer: Packets


 
Layer 2 - Data Link
Ah..... the DLL, it consists of the LLC and the MAC which adds the PSA from the NIC,.... got it!, good, lets go on to the Physical Layer......    just kidding!, enough of these TLA's (Three Letter Acronyms), lets talk English!!!

The Data Link Layer (DLL) consists of two sub-layers, the Logical Link Control (LLC) and the Media Access Control (MAC). The Logical Link Control uses Connection Oriented or Connectionless control (where have I heard that before?) and provides the interface to the Network Layer, "why do we need more flow control?" I hear you ask. Well we don't really, so its not used much these days, but it's nice to know that its there if we do need it.

The MAC sub-layer adds the MAC address to the packet and transforms it miraculously into a frame! The MAC address is read from the Network Interface Card (NIC). All network cards are given a MAC address when they are manufactured, this address is unique to each card and so no two cards should ever have the same number. This is sometimes referred to as the 'burned in' address.

Encapsulation type at the Data Link Layer: Frames


 
Layer 1 - Physical
Now we come to bottom layer of the model, the Physical Layer. After all of that encoding, compressing, encrypting, controlling and addressing, our data is now set to enter the big bad world of networking and inter-networking.
This layer takes the frame of data and puts it onto the wire at the back of our machine. The Physical layer includes all the copper and fibre cables as well as hubs and repeaters on our LAN.

Encapsulation type at the Physical Layer: Bits



Down the Wire

So our data is now on its way, first across our Local Area Network using the MAC address to get to the router where it is passed out onto the internet. The router doesn't need to know about the MAC address so it strips it off and reads the logical address (IP) that was added at the Network Layer. Now it can be routed through the internet until it gets to the recipients LAN. Here the router reads the IP address and adds the corresponding MAC address so it can be delivered to the recipients machine via the LAN switches or hubs.

Once it get to this machine it goes back up through the seven layers of the model and eventually reaches the application layer. Here it is displayed on the recipients machine in the correct format for the particular application that it is associated with.

Well that's it in a nutshell, and there are plenty of books and web pages that explain this process in more detail, however, if you are studying anything to do with networking you need a way of remembering the layers.


 

How to remember the OSI Seven Layer Model

OK you may have noticed the images next to the descriptions for each layer, and maybe you've worked out what each one represents, if not let me explain.

The use of images is an excellent way to memorize all sorts of things because the mind seems to store them more easily than words. An unusual connection between the image and the information to be memorized is used to commit the data to memory, in fact, it has been my experience that the more bizarre the connection is, the easier it is to learn.


 
Layer 7 - application

This image for the top layer should make you think: Apple = Application.
The grub coming out of the apple is in the shape of the number seven which represents Layer 7.


 
Layer 6 - Presentation

The gift or 'present' should make you think Presentation
And ......er.... well I was struggling to think of anything else to represent the number 6 other than .... er.... sex.
Well can anyone else think of something to represent Layer 6? ......... OK, it's just me with the one track mind then!


 
Layer 5 - Session

Meet Clive, he's a musician, a session musician and he likes to play Jive. Think 'session' musician, and Clive & Jive rhymes with Five, Layer 5.


 
Layer 4 - Transport

Well,... trains are a type of transport and train starts with the same letters as Transport. It has 2 small wheels and 2 big wheels, 
2 + 2 = 4 ....Layer 4. I warned you that these could get a bit bizarre!
So why is it covered in pizza?
At this point we should also try to remember the encapsulation process as well. These are segments of pizza and at the Transport layer the data is converted in to Segments.


 
Layer 3 - Network

OK the net is pretty obvious to represent the Network layer and the packet of cigarettes should remind you that the network layer converts the segments from the transport layer into 'Packets'. The reason I've put the word Datagram in the picture is mainly because we need 3 objects to represent Layer 3, but also because packets are sometimes referred to as datagrams.


 
Layer 2 - Data Link

So..... the 'date' in the image should remind you of 'Data Link' and the number 2 means Layer 2. The frame around it will remind you that the data link layer converts the packets from the network layer into 'Frames'.


 
Layer 1 - Physical

Now we're getting really tenuous!..... The runner is performing a 'physical' activity (Physical Layer) and there is one piranha representing Layer one
Also, he's about to get 'Bit' (yes I know it's bad English!). The physical layer converts frames in to 'bits' ready to send out on to the network.


 
 
Conclusion

Study each of the pictures (or make up your own), and you will find that it's much easier than any other way to remember the OSI Seven Layer Model. If you need to remember other aspects of the OSI model, such as the different protocols used, then simply visualize them as something obscure and add them to the picture. For example, one of the transport layer protocols is UDP, so this could be underpants .............What?........... oh, here we go again, one track mind!!!

If you are not very good at drawing just use clip art like I have, there are plenty of sites on the web with "free clip art" although finding one which is actually free to use is quite difficult. One source that is very useful is Google, click on the 'Images' Tab and then type in your search keyword.

Good luck, and please let me know if this tutorial-ette has been useful.


 
By the way, if you find all of the above isn't working for you, try this image. Each Layers name has its number in the word. Some of the numbers are upside down or back to front but it still works.

 


 

The content on this site was authorized by

Copyright © 2005, Data Cottage. All rights reserved.