The seven layers of OSI Model are generally divided into two groups:
OSI Model
The Seven Layer of OSI Model are generally divided into two groups:
Layer 1-4 are called Media Layers or Lower Layers
Layer 5-7 are called Upper Layers or Host Layers
Lower/Media Layers are responsible for Networking & they handle data transport issues. The physical layer and the data link layer are implemented in hardware and software. The physical layer is responsible for actually placing information on the medium.
Upper/Host layers are about Applications. Upper layers deal with application issues and generally are implemented only in software.
PDU’s in OSI Model
During Data communication, user data is passed from layer to layer & Control information comprising Header & Trailer is updated at each layer. So, each layer has different ‘units of information’. This combination of Header, Trailer & Data is called PDU (or protocol data unit). So, every Layer has a different name for these PDU’s.
They are called Bits on Physical Layer, Frames on Data Link Layer, Packets on Network Layer, Segments on Transport Layer & Data on all Application Layer. Below are the PDU’s at each OSI Layer & their names:
Modular Nature of OSI
OSI Model is based on modular methodology. Different vendors, people & teams can work on different parts & then combine them together to form a fully functional Communications System. It is an easy to understand & easy to implement model.
With this approach, one vendor can write software that implements higher layers …. for example, a web browser like Google Chrome or Firefox…. and another vendor can write software that implements the lower layers to support it …. for example, TCP/IP software by Microsoft in its Windows OS. In this way, Chrome can work on Windows OS which was not possible without OSI. Because without OSI, Google would have built Chrome following its own standards while Microsoft would have built WindowsOS on its own standards … & both of these proprietary standards would never work together if they were not standardised under OSI.
OSI Working/Operation
Each Layer in OSI serves the layer above it. Data flow occurs b/w layers through Encapsulation & Decapsulation.
Encapsulation: “Preparing & passing the data by any Upper layer to the layer below it, is called Encapsulation”. Means, going from the application layer all the way down to the physical layer.
Decapsulation: Going Upwards from the physical layer till application layer is called decapsulation.
Whenever moving the data b/w computers/hosts, we can’t skip any layers in the OSI model. We always need to go through all the layers to send data over the network. We have to follow the whole Encapsulation Decapsulation Process.
Sending a message from one computer to another computer working under OSI Model is similar to real world example of posting a letter. If we want to send a letter to your friend through Post Mail,
- First, we will write a letter
- Then we will put the letter in an envelope
- We will write the Sender/Receiver detail
- Envelope is put into the nearest Letterbox
- Postman will bring all the letters from Letterbox to the central processing Office
- Our envelope will be delivered to the city of receiver
- The letter will be delivered to our friend
- He will open the envelope and read its contents
Although, we are interested in only the last step i.e. our friend should read the letter but we have to follow all the steps. If we put our letter directly in the mailbox without encapsulation into envelop, it won’t be delivered. Unless someone at the postal office is friendly enough to deliver it anyway … but it never happens in Network World.
Let us take a Network World example of Opening a Website from our Laptop. We open our Web Browser (Google Chrome, Firefox or Internet Explorer) and type in the URL of a website like ATech:
- First, our computer will send a data request to the web server hosting ATech website using HTTP at application layer
- The message moves to presentation layer which will structure the information of the application in a certain format which is readable by receiver i.e. ASCII or any other format
- The session layer will make sure to separate all the different sessions
- Transport Layer will transmit this data using TCP or UDP
- Network Layer will complete the Logical Addressing & Routing
- Physical Layer will complete the Physical Addressing & will put the IP Packets into Ethernet Frames
- Frames will be converted into bits and will be sent down the cable using electric signals
Previous Page ——————————————————– Next Page
How is the multi-tasking done in network equipment & on which layer to be precise?
It is mainly done on Layer4. The core concept behind Transport is “support of Multitasking” … it allows same computer, browser & internet connection to work on multiple applications simultaneously … & this is achieved through Port Numbers, Transport Layer Addressing & Multiplexing.
many thanks!!!!
🙂
Detailed explanation … like it!
How many type of port numbers are there on transport layer in total?
The range of Transport Layer Port numbers is from 0-65,535. 65000, because Port number is a 16-bit number & maximum range through which it can span is 65,535. The port numbers are divided into three ranges:
Well Known Ports Registered Ports, Private/Dynamic Ports with ranges 0-1023, 1024-49151, 49152-65535.
What does Transport Layer do exactly?
The main function is Layer4 Addressing. Transport Layer is responsible for Layer4 Addressing which is also called Process Level Addressing. It allows a computer to use multiple network layer protocols simultaneously. Other functions include Sequencing, Multiplexing and De-multiplexing, Error Control, : E2E Connection Mgmt, Transmission, Segmentation, Flow Control & so on….
What is CRC? On which layer does CRC work?
CRC is Cyclic Redundancy Check. It is used to detect the errors in a network. It works at Data Link Layer – LLC Sub Layer of L2 to be specific!!
So, the real model we use is TCP/IP model?
Yes, true. Although OSI is the standard today but we never find it on real equipment. The model in action today is TCP/IP. OSI is used only for standardization & reference purposes.
What is the different b/w TCP & UPD header?
Header size of TCP is 20 bytes while that of UDP is 8 bytes.
Really nice & concise post. Keep it up )):
Thanks for appr
Great graphics!!!
Thanks
What are media layers or upper layers? Are these OSI layers or TCP/IP layer names?
The Seven Layer of OSI Model are generally divided into two groups:
Layer 1-4 are called Media Layers or Lower Layers
Layer 5-7 are called Upper Layers or Host Layers
Lower/Media Layers are responsible for Networking & they handle data transport issues. The physical layer and the data link layer are implemented in hardware and software. The physical layer is responsible for actually placing information on the medium.
Upper/Host layers are about Applications. Upper layers deal with application issues and generally are implemented only in software.