Login | Register
Enrol now for our new online tutoring program. Learn from the best tutors. Get amazing results. Learn more.

Welcome, Guest. Please login or register.

June 26, 2022, 12:22:33 pm

Author Topic: One post to rule them all - The definitive guide to the OSI and TCP/IP Model  (Read 7928 times)  Share 

0 Members and 1 Guest are viewing this topic.

MJRomeo81

  • Part of the furniture
  • *****
  • Posts: 1231
  • Princeps
  • Respect: +167
Introduction:

After speaking to many students regarding the Software Development course it seems that the OSI model is the one topic that causes the most grief. In this post I will attempt to provide some background knowledge on the two models.

Let's begin with what you're officially required to understand according to the VCAA Study design (in relation to the OSI model):

  • a brief overview of the concept of the OSI model for network protocols
  • purposes and functions of the physical layer (Layer 1) of the OSI and the relationship of the physical layer to the Transmission Control Protocol/Internet Protocol model

Note the emphasis on layer 1. Yes, we are required to have a 'brief' overview of the entire model but we are specifically concerned with layer 1. This includes its purposes and functions, and ALSO how the physical layer is incorporated into the TCP/IP model.

Finally, you are certainly not expected to understand the models to the level of detail in this post. In the exam the OSI model is usually covered with BASIC MC questions or a short response. I hope you can use this post to further improve your understanding.


Layered Models:

The IT industry uses layered models to describe the complex process of network communication. Protocols for specific functions in the process are grouped by purpose into well-defined layers. By breaking the network communication process into manageable layers, the industry can benefit in the following ways:

■ Defines common terms that describe the network functions to those working in the industry and allows greater understanding and cooperation.
■ Segments the process to allow technologies performing one function to evolve independently of technologies performing other functions. For example, advancing technologies of wireless media is not dependent on advances in routers.
■ Fosters competition because products from different vendors can work together.
■ Provides a common language to describe networking functions and capabilities.
■ Assists in protocol design, because protocols that operate at a specific layer have defined information that they act upon and a defined interface to the layers above and below.

The two models juxtaposed:




What is the OSI Model?


The Open Systems Interconnection (OSI) model, known as the OSI model, provides an abstract description of the network communication process. Developed by the International Organization for Standardization (ISO) to provide a road map for nonproprietary protocol development, the OSI model did not evolve as readily as the TCP/IP model.


In a nutshell, the communication process beings at the application layer of the source, and the data is passed down to each layer to be encapsulated with supporting data until it reaches the physical layer and is put out on the media. When the data arrives at the destination, it is passed back up through the layers and decapsulated (decapsulation is the process of stripping off one layer's headers and passing the rest of the packet up to the next higher layer on the protocol stack) by each layer.


In other words, for application data to travel uncorrupted from one host to another, header (or control data), which contains control and addressing information, is added to the data as it moves down the layers. The process of adding control information as it passes through the layered model is called encapsulation. To reiterate, decapsulation is the process of removing the extra information and sending only the original application data up to the destination application layer.
Each layer adds control information at each step. Each layer provides data services to the layer directly above by preparing information coming down the model or going up. The generic term for data at each level is protocol data unit (PDU).


The OSI model is used to reference the process of communication, not to regulate it. Many protocols in use today apply to more than one layer of the OSI model. This is why some of the layers of the OSI model are combined in the TCP/IP model. Which leads us to...


The TCP/IP Model:

The TCP/IP model evolved faster than the OSI model and is now more practical in describing network communication functions. The OSI model describes in detail functions that occur at the upper layers on the hosts, while networking is largely a function of the lower layers.

When juxtaposed, you can see that the functions of the application, presentation, and session layers of the OSI model are combined into one application layer in the TCP/IP model. The bulk of networking functions reside at the transport and the network layers, so they remain individual layers. TCP operates at the transport layer, and IP operates at the Internet layer. The data link and physical layers of the OSI model combine to make the network access layer of the TCP/IP model.


So what's the purpose of the physical layer in the OSI model?


The role of the OSI physical layer is to encode the binary digits that represent data link layer frames into signals and to transmit and receive these signals across the physical media—copper wires, optical fiber, and wireless—that connect network devices. The datalink frame that comes down to the physical layer contains a string of bits representing application, presentation, session, and transport and network information. These bits are arranged in the logical order required by the specific protocols and applications that use them. These bits must travel over a physical medium such as copper cable or a glass fiberoptic cable, or wirelessly through the air.

The physical medium is capable of conducting a signal in the form of voltage, light, or radio waves from one device to another. It is possible that the media will be shared by traffic from many protocols and subjected to physical distortions along the way. Part of the physical layer design is to minimize these effects of overhead and interference.

The delivery of frames across the local media requires the following physical layer elements:
■ The physical media and associated connectors
■ A representation of bits on the media
■ Encoding of data and control information
■ Transmitter and receiver circuitry on the network devices

After the signals traverse the medium, they are decoded to their original bit representations of data and given to the data link layer as a complete frame.

When the physical layer puts a frame out onto media, it generates a set patterns of bits, or signal pattern, that can be understood by the receiving device. They are organized so that the device will be able to understand when a frame begins and when it ends. Without the signal pattern, the receiving device will not know when the frame ends, and the transmission will fail.

The physical layer performs functions very different from the other OSI layers. The upper layers perform logical functions carried out by instructions in software. The upper OSI layers were designed by software engineers and computer scientists who designed the services and protocols in the TCP/IP suite as part of the Internet Engineering Task Force (IETF). By contrast, the physical layer, along with some similar technologies in the data link layer, defines hardware specifications, including electronic circuitry, media, and connectors. Instead of software engineers, the physical layer specifications were defined by electrical and communications engineering organizations.


tl;dr:

OSI Layer 1 takes data link layer frames and encodes the data bits into signals that travel copper, fiber-optic, or wireless media to the next device, where they are decoded and sent back up to the data link layer.

Copper cable, fiber-optic cable, and wireless media have varying performance benefits and costs that determine their use in a network’s infrastructure. Physical layer equipment standards describe the physical, electrical, and mechanical characteristics of the physical media and the connectors used to connect media to devices. These standards are under constant review and are updated as new technologies become available.
« Last Edit: March 22, 2013, 10:55:09 pm by MJRomeo81 »
Currently working in the IT Industry as an Oracle DBA (State Government)

Murphy was an optimist

Bachelor of Information Technology @ La Trobe (Melbourne) - Completed 2014
WAM: 91.96
The key, the whole key, and nothing but the key, so help me Codd.

Subjects I tutored during my time at LTU:
CSE2DBF (Database Fundamentals)
CSE1IS (Information Systems)
CSE2DES (System Design Engineering)

Quote
“If I had an hour to solve a problem I'd spend 55 minutes defining the problem and 5 minutes thinking about solutions.”
― Albert Einstein

Lasercookie

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3168
  • Respect: +326
This is pretty awesome MJRomeo. I'll link it in the resources thread, along with some of your posts from last year too (but basically if you want something to read having a look at old threads from 2011 onwards might have a lot of interesting stuff there).

I don't think I have anything to add, other than I liked this table from Wikipedia (I think it might crop up in the textbook or somewhere on VCEIT - I remember seeing it somewhere), which lists the what the protocol data units are for each layer. It's just an extra bit of detail, but I did find that it did help with trying to read about the OSI model, where the terms crop up everywhere / seem to be used specifically.
« Last Edit: March 22, 2013, 11:08:20 pm by laserblued »

MJRomeo81

  • Part of the furniture
  • *****
  • Posts: 1231
  • Princeps
  • Respect: +167
That's a great diagram laserblued!

General tip for those reading:

Data -> Segment -> Packet -> Frame -> Bit (going down the stack)

Bit -> Frame -> Packet -> Segment -> Data (going up the stack)

When you view the OSI model as one large process of interrelated layers it's easier to see where the physical layer comes in. If you just focus on the physical layer, it's more difficult to understand the true purpose of layer 1.

Currently working in the IT Industry as an Oracle DBA (State Government)

Murphy was an optimist

Bachelor of Information Technology @ La Trobe (Melbourne) - Completed 2014
WAM: 91.96
The key, the whole key, and nothing but the key, so help me Codd.

Subjects I tutored during my time at LTU:
CSE2DBF (Database Fundamentals)
CSE1IS (Information Systems)
CSE2DES (System Design Engineering)

Quote
“If I had an hour to solve a problem I'd spend 55 minutes defining the problem and 5 minutes thinking about solutions.”
― Albert Einstein

no steez

  • Victorian
  • Forum Obsessive
  • ***
  • Posts: 257
  • p g
  • Respect: -2
  • School: Frankston Tafe
  • School Grad Year: 2013
This is wonderful! I will give it a read very soon. Just had a quick skim and it looks good :)
cheers
2013:

brenden

  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 7185
  • Respect: +2592
Fuck, people, don't forget to upvote him!
✌️just do what makes you happy ✌️

Checkmate

  • Victorian
  • Trendsetter
  • **
  • Posts: 140
  • Respect: 0
  • School: Overnewton College
  • School Grad Year: 2013
That's a solid explanation of the physical layer there and I'm glad you mentioned the TCP/IP model too. Good job!
2013:
English, Maths Methods, Business Management, Physics, IT: Software Development

2014:
CompSci (BSc) @ The University of Melbourne