OSI Layer 1: Physical Layer
Layer 1 (Physical) Technologies
The Physical Layer is responsible for the actual transmission of raw data bits over a physical medium. It defines the electrical, optical, or radio signal characteristics needed to transmit data between devices.
The Critical Role: Layer 1 doesn't care about data meaningβit only moves raw bits from point A to point B using physical phenomena like electricity, light, or radio waves.
Transmitter
Receiver
Physical Medium Information
π― Primary Functions
- Bit Transmission: Converting data bits into electrical, optical, or radio signals
- Physical Topology: Defining how devices are physically connected
- Signal Encoding: Converting digital data into analogue signals
- Media Access: Managing access to the transmission medium
- Physical Addressing: Hardware-level device identification
π§ Key Characteristics
- Voltage Levels: Defines electrical signal characteristics
- Cable Specifications: Physical properties of transmission media
- Connector Types: Physical interfaces between devices
- Transmission Modes: Simplex, half-duplex, full-duplex
- Data Rates: Speed of data transmission (bps, Mbps, Gbps)
π Physical Layer Technologies & Media
Twisted pair (Cat5e, Cat6, Cat6a), Coaxial cables
Single-mode, Multi-mode fibre
Wi-Fi (802.11), Bluetooth, Cellular
RS-232, USB, FireWire
π Real-World Example: Ethernet Cable Transmission
Scenario: Your computer sends data to a server over an Ethernet cable
Step 1: Signal Encoding
Your network card converts digital data (1010110...) into electrical voltage levels:
Data bit '0' = -2.5V on wire pair
Step 2: Physical Transmission
Electrical signals travel through 4 pairs of copper wires at ~200,000 km/s:
Pair 2 (Green): RX+ / RX-
Pair 3 (Blue): Bidirectional
Pair 4 (Brown): Bidirectional
Step 3: Signal Reception
The server's network card detects voltage changes and reconstructs data:
Voltage < -1.2V = Digital '0'
Original data reconstructed: 1010110...
π Physical Layer Specifications
| Medium Type | Max Speed | Max Distance | Connector |
|---|---|---|---|
| Cat5e Copper | 1 Gbps | 100 metres | RJ45 |
| Cat6a Copper | 10 Gbps | 100 metres | RJ45 |
| Single-mode Fibre | 100+ Gbps | 40+ km | SC/LC |
| Cat6 Copper | 1 Gbps | 100 metres | RJ45 |
| Cat7 Copper | 10 Gbps | 100 metres | GG45/TERA |
| Cat8 Copper | 25/40 Gbps | 30 metres | RJ45 |
| Multi-mode Fibre | 10 Gbps | 550 metres | SC/LC/ST |
| Coaxial (RG6) | 1 Gbps | 500 metres | F-Type |
| USB 3.2 | 20 Gbps | 3 metres | USB-C |
| Thunderbolt 4 | 40 Gbps | 2 metres | USB-C |
| Wi-Fi 6 (802.11ax) | 9.6 Gbps | 100 metres | Antenna |
| Wi-Fi 802.11ac | 1.3 Gbps | 70 metres | Antenna |
π οΈ Troubleshooting & Wireshark Filters
π¨ Common Problems
- Cable damage or poor connections
- Signal attenuation over distance
- Electromagnetic interference
- Wrong cable types for application
- Dirty or damaged connectors
π§ Diagnostic Tools
- Cable testers and certifiers
- Time Domain Reflectometer (TDR)
- Optical power meters
- Link light indicators
- Spectrum analysers for wireless
π Wireshark Filters for Physical Layer Analysis
π Essential Physical Layer Filters
Copy these filters directly into Wireshark to analyse physical layer traffic
π¨ Physical Layer Problem Detection
π Teaching Analogy: Road Infrastructure
Think of the Physical Layer like the road infrastructure:
- Roads (Cables): The physical pathways that vehicles travel on
- Road Surface (Signal Medium): Asphalt, concrete, or gravel - different materials for different needs
- Vehicles (Data Bits): Cars, trucks, motorcycles carrying cargo from place to place
- Traffic Rules (Electrical Standards): Speed limits, lane markings, voltage specifications
- Road Maintenance (Cable Testing): Fixing potholes, checking signal quality
- Bridges & Tunnels (Connectors): Special structures to connect different road segments
Just like roads don't care what's inside the vehicles, Layer 1 doesn't care about data meaningβit just moves bits!
π Key Learning Points
- Physical Layer deals with raw bit transmission using physical phenomena
- Different media (copper, fibre, wireless) use different physical properties to carry signals
- Electrical specifications define voltage levels, timing, and connector requirements
- Layer 1 is media-specific but provides a common interface to Layer 2
- Signal quality degrades over distance, requiring repeaters or amplifiers
- Physical Layer enables all higher-layer communication by providing the foundation