Computer Networks Essentials / Data Link Layer

Ethernet Basics

πŸ€” What is Ethernet?

Ethernet is the most widely used LAN (Local Area Network) technology for connecting computers and devices in a wired network.

πŸ“Œ In simple words:

Ethernet is a set of rules and technologies that define how computers communicate over wired networks.

Today, almost every office, college, and home network uses Ethernet in some form.


🧠 Why Ethernet is So Popular

Ethernet became popular because it is:

  • ⚑ Fast

  • πŸ’° Cost-effective

  • πŸ”§ Easy to install

  • πŸ”’ Reliable

  • πŸ“ˆ Scalable


πŸ•°οΈ Brief History of Ethernet

  • Developed in the 1970s

  • Standardized by IEEE

  • Known as IEEE 802.3

πŸ“Œ Whenever you see 802.3, think of Ethernet.


🧩 Where Ethernet Works in OSI Model

Ethernet mainly works at:

  • πŸ”Ή Data Link Layer (MAC sublayer)

  • πŸ”Ή Physical Layer


πŸ”— Basic Components of Ethernet

An Ethernet network consists of:

  • πŸ–₯️ End devices (PCs, servers)

  • πŸ”Œ Ethernet cables

  • πŸ”€ Switches

  • πŸ’³ NIC (Network Interface Card)

  • πŸ“œ Ethernet protocols


πŸ”Œ Ethernet Cables (Basic Idea)

Most Ethernet networks use:

  • Twisted Pair Cables (UTP/STP)

  • RJ-45 connectors

πŸ“Œ Categories:

  • Cat5

  • Cat5e

  • Cat6

  • Cat6a


πŸ“¦ Ethernet Frame Format

🧱 Ethernet Frame Fields

1️⃣ Preamble – Synchronization

2️⃣ Destination MAC Address

3️⃣ Source MAC Address

4️⃣ Type / Length

5️⃣ Data (Payload)

6️⃣ FCS (Frame Check Sequence)


🧠 Why Frame is Important

  • Identifies sender & receiver

  • Detects errors

  • Maintains data integrity


🏷️ MAC Address in Ethernet

πŸ”Ή What is a MAC Address?

A MAC (Media Access Control) Address is a unique physical address assigned to every network device.

πŸ“Œ Format:

  • 48-bit address

  • Written in hexadecimal

    Example: 00:1A:2B:3C:4D:5E


🧠 Why MAC Address is Important

  • Identifies devices uniquely

  • Used in LAN communication

  • Helps switches forward frames correctly


πŸ” Ethernet Communication Types

πŸ”Ή 1. Unicast

  • One sender β†’ one receiver

πŸ”Ή 2. Broadcast

  • One sender β†’ all devices

    Example: ARP request

πŸ”Ή 3. Multicast

  • One sender β†’ group of devices


βš”οΈ Ethernet & CSMA/CD

Earlier Ethernet used CSMA/CD:

  • Carrier Sense

  • Multiple Access

  • Collision Detection

πŸ“Œ Used when hubs were common.

πŸ‘‰ Modern Ethernet with switches:

  • ❌ No collisions

  • ❌ CSMA/CD not required


⚑ Ethernet Speed Standards

Ethernet Type

Speed

Ethernet

10 Mbps

Fast Ethernet

100 Mbps

Gigabit Ethernet

1 Gbps

10 Gigabit Ethernet

10 Gbps


πŸ”„ Half Duplex vs Full Duplex Ethernet

Mode

Description

Half Duplex

Send or receive (not both)

Full Duplex

Send & receive simultaneously

πŸ“Œ Modern Ethernet uses Full Duplex.


🧠 Ethernet vs Wi-Fi

Feature

Ethernet

Wi-Fi

Medium

Wired

Wireless

Speed

High

Medium

Security

More secure

Less secure

Interference

Very low

High

Mobility

No

Yes


⭐ One-Line Summary

πŸ”Ή Ethernet is a widely used wired LAN technology that defines how data is framed, addressed, transmitted, and checked for errors.