Complex about simple. Physical layer (L1) of OSI model

Hello, colleagues! My name is ProstoKirReal, and today I want to discuss with you the physical layer (L1) of the OSI model. Understanding this layer is fundamental for anyone just starting out in networking technologies.

What is the physical level?

The Physical Layer is the first and lowest layer of the OSI model. It is responsible for transmitting raw data bits over physical media such as cables and radio waves. This layer defines the electrical, mechanical, procedural, and functional characteristics for activating, maintaining, and deactivating physical connections between end systems.

First, you need to understand what a data bit is. In my first months of work, I was often confused between the concepts of bit and byte.

Bit and byte are the two basic units of measurement of information in computer systems. The difference between them is as follows:

Bit

Byte

Approximate comparison:

There's an old joke to remember:

Stirlitz had a row with a bar patron and went out with him 1 on 1. At the exit he saw 8 people with bits. “One byte equals 8 bits,” thought Stirlitz

image

Above I wrote about the binary and hexadecimal systems. What are they for?

Various network devices, computers, etc. communicate with each other using the binary system.
What should we, ordinary people, do? Even simple data in binary looks very cumbersome.

For example, the sentence “Hello, world!” looks like 01001000 01100101 01101100 01101100 01101111 00101100 00100000 01110111 01101111 01110010 01101100 01100100 00100001.
To improve the readability of such data arrays, the hexadecimal system is used. For example, the sentence “Hello, world!” looks like 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21.
Is it more readable now?

That is, 1 bit is 0, 1 byte is 01001000, in hexadecimal 1 byte is 48.

The hexadecimal number system is a convenient, compact, and widely accepted way to represent binary data in computer networks and other areas of information science. It allows engineers and programmers to work with data efficiently, while providing ease of conversion and improved readability.

Advantages of the hexadecimal system

  1. Convenience of conversion: simple conversion between hexadecimal and binary systems.
  2. Brief summary: significantly shorter notations compared to the binary system.
  3. Increased readability: easier to understand and analyze when working with low-level data.
  4. Acceptance in standards: widely used in networking and computer standards.

Is it difficult? Just a little more and we'll get to L1.

One more concept that we will need to understand.

Data package

A data packet is a set of information that is transmitted between devices on computer networks. It contains data such as text, images, audio, or video, and information about where the data should be sent from and where it should be sent. Data packets play a key role in transmitting information across networks.

The packet serves us to transfer information from computer to computer. In general, this is a separate topic for discussion, after the OSI model I will write an article about data packets.
In short, the data we need to transmit over the network is divided into several parts. Then a special header (necessary for transmitting packets over the network) is added to this data and this data packet is transmitted over the network in the form of electrical or light signals.

image

So, about L1 level.

Network cards in computers and servers are responsible for converting data bits at the first level, while SFP modules in network devices such as switches, routers, etc. are used to transmit packets over the network.

Basic functions of the physical layer

Bit transfer:

The physical layer defines how data bits are transmitted over a physical medium, whether copper cables, fiber optic cables, or wireless links.

Copper cables transmit information using electrical signals, there are 1G and 10G copper cables, like twisted pair. I was surprised that there is 10G copper.

Fiber optic cables transmit information using light signals.

Wireless ones transmit information wirelessly, using radio waves.

Modulation and demodulation: Converting digital data into analog signals and vice versa.

Modulation and demodulation are processes used to transmit digital data over analog media such as radio waves, telephone lines, or fiber optic cables. These processes play a key role in modern communications systems, including the Internet, mobile networks, and television.

Modulation

Modulation is the process of converting digital data (bits) into analog signals that can be transmitted over an analog medium.

Demodulation

Demodulation is the process of converting analog signals back into digital data. A demodulator takes the modulated analog signal and extracts the original digital data from it.

image

Importance of Modulation and Demodulation

Modulation and demodulation are key processes that enable digital data to be transmitted over analog media, providing efficient, reliable, and high-speed communications.

Electrical characteristics: definition of voltages, currents and frequencies used for data transmission.

Voltage defines the potential difference between two points in a network. Data networks, such as Ethernet, use different voltage levels to encode digital data. A low voltage can be interpreted as a “0” bit, and a high voltage can be interpreted as a “1” bit.

Mechanical characteristics:

definition of physical connections, connectors and cables.

Physical Connection: — is the way devices on a network are physically connected to each other. A physical connection can include different types of cables, connectors, and ports. For example, in local area networks (LANs), devices are often connected using Ethernet cables.

Connectors: — are physical interfaces that allow cables to be connected to network devices. There are many types of connectors, each designed for specific types of cables and protocols. For example:

The connectors provide a reliable and standardized connection that ensures compatibility between devices.

Cables: — are the physical media through which data is transmitted. The type of cable determines the speed at which data can be transmitted, the distance over which data can be transmitted, and the environment in which the cable can be used. The main types of cables include:

Examples of mechanical characteristics in an Ethernet network

Why is it important

Mechanical characteristics are important to ensure reliable and efficient connections between devices in a network. They affect:

Let's look at the main types of physical topology and their characteristics.

Basic types of physical topology

1. Bus Topology

In this topology, all devices are connected to one common cable (bus). Data is transmitted through this cable, and all devices can receive this data.

Advantages:

Flaws:

2. Star Topology

All devices are connected to a central node (switch or hub). The central node manages the transfer of data between devices.

Advantages:

Flaws:

3. Ring Topology

The devices are connected in a ring, and each node is connected to two neighboring nodes. Data is transmitted along the ring from one device to another.

Advantages:

Flaws:

4. Mesh Topology

In this topology, every device is connected to every other device. There is a full mesh topology, where all devices are directly connected to each other, and a partial mesh topology, where some devices are not directly connected.

Advantages:

Flaws:

5. Tree Topology

A combination of star and bus topologies. Devices are connected into groups, which in turn are connected by central nodes.

Advantages:

Flaws:

image

Why is physical topology important?

The physical topology of a network plays a key role in the design, management, and maintenance of network systems to ensure optimal performance and reliability.

Core technologies

Basic standards

Application of the physical layer in practice

In practice, the physical layer is used to create and maintain physical connections between network devices. For example, when you connect a computer to a router using an Ethernet cable, you are interacting with the physical layer. It is important to understand that any problems with cables or connectors at this layer can lead to data transmission failures.

What happens to the data if you disconnect the cable?

Disconnecting a network cable and its impact on network model layers

When a network cable is pulled, it only affects the physical layer of the OSI network model, but how does it affect the operation of the TCP/IP protocols?

Physical Layer

The physical layer is responsible for transmitting data over a physical medium, such as copper cable or fiber optics. When a network cable is disconnected, devices at this layer lose the ability to transmit signals. This layer can recognize that a cable has been pulled because the electrical or optical signal is no longer transmitted.

Data Link Layer (more about this layer in the next article)

The data link layer interacts directly with the physical layer and manages access to the data transmission medium, error detection, and flow control. When a cable is disconnected, a network interface such as Ethernet signals an error such as “link down.” This event is recorded at this layer, but is not necessarily passed up.

TCP/IP and higher protocols

TCP/IP stack protocols (such as TCP, UDP, IP) operate at higher layers and do not have direct access to information about the physical state of the connection. They operate on virtual representations of the network provided by lower layers. Therefore, when a cable is disconnected, TCP/IP will not know about it directly unless information about the connection break is passed from lower layers.

Connection break detection mechanisms

In order for higher-level protocols such as TCP to know about a connection break, special mechanisms are used:

When a network cable is disconnected, it is first detected at the physical and data link layers of the network. However, unless the disconnection information is passed upstream, the TCP/IP protocols do not know about it directly. To address this issue, TCP provides mechanisms such as KeepAlive and timeouts that help detect the loss of a connection and take appropriate action. These mechanisms ensure the reliability and resilience of network applications, even in the face of physical network failures.

Conclusion

The physical layer of the OSI model is the foundation for all other layers. Without a reliable physical connection, the other layers cannot perform their functions. Understanding how the physical layer works will help you effectively troubleshoot and optimize the performance of network devices.

In the next article we will look at the data link layer (L2) and its role in networking.

Thanks for your attention, and see you in the next article!


Read also:


News, product reviews and contests from the Timeweb.Cloud team — in our Telegram channel


Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *