Type: Walkthrough
Difficulty: Info
Tags: -
Meta Tags: Walkthrough, Walk-through, Write-up, Writeup
Subscription type: Premium
Description:
Learn about the fundamental networking framework that determines the various stages in
which data is handled across a network
Room link: https://tryhackme.com/room/osimodelzi
The OSI model (or Open Systems Interconnection Model) is an essential model used in networking.
This critical model provides a framework dictating how all networked devices will send, receive
and interpret data.
One of the main benefits of the OSI model is that devices can have different functions and designs
on a network while communicating with other devices. Data sent across a network that follows the
uniformity of the OSI model can be understood by other devices.
The OSI model consists of seven layers which are illustrated in the diagram below. Each layer has
a different set of responsibilities and is arranged from Layer 7 to Layer 1.
The seven OSI layers are:
- Physical
- Data link
- Network
- Transport
- Session
- Presentation
- Application
Answer: Open Systems Interconnection
Answer: 7
Answer: encapsulation
This layer is one of the easiest layers to grasp. Put simply, this layer references the physical components
of the hardware used in networking and is the lowest layer that you will find. Devices use electrical signals
to transfer data between each other in a binary numbering system (1's and 0's).
Answer: Physical
Answer: Binary
Answer: Ethernet Cables
The data link layer focuses on the physical addressing of the transmission. It receives a packet from the
network layer (including the IP address for the remote computer) and adds in the physical MAC (Media Access
Control) address of the receiving endpoint. Inside every network-enabled computer is a Network Interface Card
(NIC) which comes with a unique MAC address to identify it.
Answer: Data Link
Hint: NIC
Answer: Network Interface Card
The third layer of the OSI model (network layer) is where the magic of routing & re-assembly of data takes place
(from these small chunks to the larger chunk). Firstly, routing simply determines the most optimal path in which
these chunks of data should be sent.
Answer: Network
Answer: Y
Answer: Open Shortest Path First
Answer: Routing Information Protocol
Hint: Devices on a network use these. For example, 192.168.1.100
Answer: IP Addresses
Layer 4 of the OSI model plays a vital part in transmitting data across a network and can be a little bit difficult
to grasp. When data is sent between devices, it follows one of two different protocols that are decided based upon
several factors:
- TCP
- UDP
Let's begin with TCP. The Transmission Control Protocol (TCP). Potentially hinted by the name, this protocol is
designed with reliability and guarantee in mind. This protocol reserves a constant connection between the two devices
for the amount of time it takes for the data to be sent and received.
Now let's move onto the User Datagram Protocol (or UDP for short). This protocol is not nearly as advanced as its
brother - the TCP protocol. It doesn't boast the many features offered by TCP, such as error checking and reliability.
In fact, any data that gets sent via UDP is sent to the computer whether it gets there or not. There is no
synchronisation between the two devices or guarantee; just hope for the best, and fingers crossed.
Answer: Transport
Answer: Transmission Control Protocol
Answer: User Datagram Protocol
Answer: TCP
Answer: UDP
Answer: TCP
Answer: TCP
Answer: UDP
Once data has been correctly translated or formatted from the presentation layer (layer 6), the session layer
(layer 5) will begin to create and maintain the connection to other computer for which the data is destined.
When a connection is established, a session is created. Whilst this connection is active, so is the session.
Answer: Session
Hint: These are unique per connection
Answer: Session
Layer 6 of the OSI model is the layer in which standardisation starts to take place. Because software developers
can develop any software such as an email client differently, the data still needs to be handled in the same way
— no matter how the software works.
This layer acts as a translator for data to and from the application layer (layer 7).
Answer: Presentation
Hint: This layer translates data from one format to another
Answer: Translator
The application layer of the OSI model is the layer that you will be most familiar with. This familiarity is because
the application layer is the layer in which protocols and rules are in place to determine how the user should interact
with data sent or received.
Answer: Application
Answer: Graphical User Interface
Answer: THM{<REDACTED>}
For additional information, please see the references below.
- Address Resolution Protocol - Wikipedia
- Dynamic Host Configuration Protocol - Wikipedia
- Ethernet - Wikipedia
- Internet Protocol - Wikipedia
- OSI model - Wikipedia
- Open Shortest Path First - Wikipedia
- Routing - Wikipedia
- Routing Information Protocol - Wikipedia
- Transmission Control Protocol - Wikipedia
- User Datagram Protocol - Wikipedia