Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction 
2.
What is a Physical Layer?
2.1.
Functions of Physical Layer 
3.
Different Network Topologies in Physical Layer
3.1.
Bus Topology
3.2.
Star Topology
3.3.
Ring Topology
3.4.
Mesh Topology
4.
Transmission Media
4.1.
Modes of Transmission Medium 
4.2.
Transmission Impairment
5.
Frequently Asked Questions
5.1.
What is a Physical Layer?
5.2.
What is the data link layer?
5.3.
What are the 5 layers of TCP/IP?
6.
Conclusion
Last Updated: Mar 27, 2024

Introduction to Physical Layer

Author Mehak Goel
0 upvote
Computer Networks

Introduction 

Open System Interconnection (OSI) is a reference model that specifies how information from one computer's software app passes through a physical media to another computer's software app. The OSI comprises seven levels, each of which performs an independent task. 

The seven layers of the OSI model are as follows:

In this article, we will be focusing on the physical layer. The physical layer is the OSI model's lowest layer, and it's the one nearest to the physical media. 

Also See, Basic Networking Commands

What is a Physical Layer?

The physical layer’s main functionality is transmitting data from one computer to another. This is the lowest layer of the OSI model and comes under the category of hardware layer.

This layer provides an electrical, mechanical, and procedural interface to the transmission medium. It consists of several network components like connectors, receivers, cables etc. It defines the transmission of raw bits over the data link layer. This layer interfaces with the data link layer and perform symbol encoding, transmission, reception and decoding.

According to network specifications, this layer controls most of the network's physical connections, including wireless transmission, cabling, cabling standards and types, connectors and types, network interface cards, and more. On the other hand, the physical layer does not deal with the actual physical medium (like copper).

Functions of Physical Layer 

  • It defines the rate of transmission, which is the number of bits used per second.
  • It deals with the synchronization of the transmitter and receiver at bit level.
  • It provides the transmission interface between devices and transmission media. 
  • It helps in the direction of transmission between two devices.
  • It helps in physical topology decisions.
  • It provides a switching mechanism where data packets can be transmitted from one port to the destination port.
  • This layer connects devices with the medium using two types of configuration, i.e. Point to Point configuration and Multipoint configuration. A link is fully dedicated to carrying the data between two devices in the Point-to-Point configuration whereas, in Multi-Point configuration, there is a link through which multiple devices are connected.
     

Physical Layer Devices:

  • Repeaters
  • Hubs
  • Network Interface cards (NICs)
  • Cables and Connectors 
     

Also see, Message Switching in Computer Networks and Personal Area Network

Different Network Topologies in Physical Layer

Topology refers to the network's structure showing how all the components are connected.

Bus Topology

In this topology, multiple devices are connected with a single cable known as a backbone cable. Each node is either connected to the backbone cable through a drop cable or is directly connected to it. When a node wishes to convey a message across the network, it sends a message through the network. Regardless of whether the message has been addressed, it will be received by all available stations in the network.

Bus Topology

Bus Topology
 

Star Topology

In this topology, all devices have a dedicated point-to-point connection with a central controller known as a hub. The central computer is referred to as a server, and the peripheral devices connected to it are referred to as clients. The star topology is the most widely used network topology.

Star Topology

Star Topology
 

Ring Topology

Each device is connected with two devices creating a circular ring structure in this topology. The node that accepts the previous computer's message will retransmit to the next node. The data is unidirectional, which means it only moves in one direction. The data is continuously flowing in a single loop, which is referred to as an endless loop.

Ring

Ring Topology

Mesh Topology

One device is connected with several other devices in this topology. There are several ways to connect from one computer to another. It is devoid of the switch, hub, or any central computer that serves as a communication hub. Internet is the biggest example of this topology.

Mesh

Mesh Topology

Must Recommended, Internal and External Fragmentation

Transmission Media

Transmission media is a communication channel that transfers the data from the sender to the recipient using electromagnetic signals. Its primary role is to transport data in the form of bits over a local area network (LAN).
 (Also see, Transmission Mode)

There are two different types of media:

  • Guided Media: It includes all wired/cable communication mediums like optic fiber, twisted pair cable, or coaxial cable.
     
  • Unguided Media: It includes wireless or open-air space communication because there is no physical connection between sender and receiver. It includes Wifi communication.

 

Transmission Media

Modes of Transmission Medium 

  • Simplex mode: Only one device can send or receive data in this mode. Example- Input from keyboards, monitors, TV broadcasting.
  • Half Duplex mode: In this mode, both devices can send and receive the data but only one at a time. Example: Walkie-Talkie
  • Full-Duplex mode: In this mode, both devices can send and receive the data simultaneously. Example: Telephone System

Transmission Impairment

When signals travel through a medium, it tends to distort. Some of the reasons are given below:

  • Attenuation: It is the loss of energy of the signal. The strength of the signal decreases while passing through the medium with the increase in distance traveled.
    Attenuation(dB)= 10log10(P2/P1)
     
  • Dispersion: It is the spread or the overlapping of the signal while passing through any media. 
     
  • Distortion: It can be defined as the changes in the form or shape of the signal. This generally happens in composite signals, which are made of different frequencies. 
     
  • Noise: Any random disturbance in an analog or digital signal which distorts the information carried by the signal is known as noise. There are several types of noise like crosstalk noise, thermal noise, and impulse noise.
    Signal to noise ratio is calculated as SNR= Avg signal power/ Avg noise power .
     

You can also read about the network models in computer network.

Frequently Asked Questions

What is a Physical Layer?

The physical layer is the only layer of the OSI network model that deals with the physical connectivity of two different devices. This layer defines the hardware equipment, wiring, cabling, pulses, frequencies used to represent binary signals etc.

What is the data link layer?

The Data link layer is a protocol layer used to transfer data between nodes on a network segment across the physical layer. 

What are the 5 layers of TCP/IP?

The TCP/IP model is based on the 5-layer model of networking. The 5 layers are the physical, data link, network, transport, and application layers from bottom to top.

Conclusion

This article discussed the physical layer and its working with the help of an example in Computer Networks.

Recommended Readings:


To study more about computer networks, refer to disadvantages of computer network.

Check out some of the amazing Guided Paths on topics such as Data Structure and Algorithms, Competitive Programming, Basics of C, Basics of Java, Computer Networks, etc. along with some Contests and Interview Experiences only on Coding Ninjas Studio 

Happy Coding!

Live masterclass