Computer Networking

Module 01 - Networking Basics
1. What is Computer Networking?2. Types of Computer Networks3. Internet vs Computer Network4. How Does The Internet Work?5. Network Architectures (Client...6. Host vs Node7. Network Interface Card (NIC)8. MAC Address9. IP Address
ProfileProfile
Akkal DhamiFull Stack Developer

Building modern web experiences with a focus on performance, scalability, and clean architecture.

© 2026 | Akkal Dhami | All rights reserved

Built with
byAkkal Dhami

Navigation

  • Projects
  • Dev Setup
  • Playbook
  • Templates
  • Networking
  • SQL - MySQL
  • SQL Playground
  • System Design
  • DSA
AKKAL DHAMIAKKAL DHAMIAKKAL DHAMI

Network Interface Card (NIC)

Imagine you want to call your friend.

Can you make a phone call without a SIM card?

No. The SIM card allows your phone to connect to the mobile network.

Similarly, a computer needs a way to connect to a computer network. This is where the Network Interface Card (NIC) comes in.

Without a NIC, your computer cannot communicate with other devices or access the Internet.


1. What is a Network Interface Card (NIC)?

A Network Interface Card (NIC) is a hardware component that allows a device to connect to a computer network.

It acts as a translator between your computer's internal data and the signals that travel over a network cable or through the air (Wi-Fi).

Whether you're using:

  • Ethernet
  • Wi-Fi
  • Fiber

your device communicates through a NIC.

Simply put,

A NIC is the gateway that allows your device to join a network.

          Computer
 
   +------------------+
   |     Browser      |
   +------------------+
            │
   +------------------+
   | Operating System |
   +------------------+
            │
   +------------------+
   |       NIC        |
   +------------------+
            │
        Ethernet
        or Wi-Fi
            │
         Router
            │
        Internet

2. Why Do We Need a NIC?

Imagine two laptops sitting next to each other.

Laptop A Laptop B

Can they exchange data?

No. They need a way to connect to the network first.

Once each laptop has a NIC:

Laptop A ───── Switch ───── Laptop B

Now they can communicate.

Without a NIC:

  • No Internet
  • No file sharing
  • No online gaming
  • No video calls

3. How Does a NIC Work?

Suppose you open google.com.

      You
       ⭣
    Browser
       ⭣
Operating System
       ⭣
      NIC
       ⭣
     Router
       ⭣
     Internet

The browser creates a request.

The operating system passes that request to the NIC.

The NIC converts the data into electrical signals (Ethernet) or radio waves (Wi-Fi) and sends it over the network.

When the response comes back, the NIC receives it and passes it to the operating system.

Finally, your browser displays the webpage.


4. What it actually does

  • Converts data formats — your computer processes data in parallel (many bits at once internally); the network cable sends data serially (one bit after another). The NIC converts between these.

  • Frames the data — it wraps your data into "frames" following networking rules (usually Ethernet), adding source/destination info.

  • Physical transmission — turns those frames into electrical signals (copper cable), light pulses (fiber), or radio waves (Wi-Fi).

  • Has a unique MAC address — a hardwired identifier like 00:1A:2B:3C:4D:5E burned into the card at manufacture, so devices on a network can be told apart.

A NIC performs several important tasks:

  • Connects the device to a network.
  • Sends data.
  • Receives data.
  • Converts digital data into network signals.
  • Converts incoming signals back into digital data.
  • Stores a unique MAC Address.

5. Types of NIC

1. Wired NIC

Uses an Ethernet cable.

  Computer
     │
 Ethernet Cable
     │
   Router

Advantages:

  • Faster
  • Stable
  • Lower latency

Common Technology:

  • Ethernet (RJ-45)

2. Wireless NIC

Uses radio waves instead of cables.

Laptop ))))))
      Wi-Fi
        │
     Router

Advantages:

  • Portable
  • No cables
  • Easy to connect

Common Technology:

  • Wi-Fi (IEEE 802.11)

6. Components of a NIC

A typical NIC contains:

  • MAC Address
  • Network Port (RJ-45 for wired NICs)
  • Antenna (for wireless NICs)
  • Processor (NIC Controller)
  • Memory Buffer

7. Characteristics

  • Hardware component
  • Provides network connectivity
  • Has a unique MAC address
  • Can be wired or wireless
  • Sends and receives data
  • Installed internally or externally

8. Common Technologies

  • Ethernet
  • Wi-Fi
  • PCI Express (PCIe)
  • USB Network Adapter
  • RJ-45
  • IEEE 802.3
  • IEEE 802.11

9. Coverage

The coverage depends on the network technology being used:

Wired NIC

  • Limited by the length of the Ethernet cable (typically up to 100 meters per cable segment).

Wireless NIC

  • Depends on the Wi-Fi signal, usually 20-50 meters indoors and up to 100 meters or more outdoors.

10. Example

Wired Desktop Computer

 Desktop
    │
 Ethernet Cable
    │
  Switch

The desktop uses a wired NIC.


Laptop

 Laptop )))))
      Wi-Fi
        │
     Router

The laptop uses a wireless NIC.


Smartphone

Phone )))))
      Wi-Fi

Every smartphone contains a wireless NIC.


11. Use Cases

NICs are used in almost every network-enabled device:

  • Desktop computers
  • Laptops
  • Smartphones
  • Tablets
  • Servers
  • Smart TVs
  • Gaming consoles
  • Printers
  • IP Cameras

12. Advantages

  • Enables Network Connectivity: Without a NIC, a device cannot join a network.

  • Fast Communication: Modern NICs support speeds ranging from 100 Mbps to 100 Gbps, depending on the hardware and network.

  • Unique Identification: Every NIC has a unique MAC Address, helping identify the device on the local network.

  • Supports Multiple Network Types: NICs can connect using Ethernet, Wi-Fi, or Fiber (with specialized adapters).

    • Ethernet
    • Wi-Fi
    • Fiber (with specialized adapters)
  • Reliable Data Transmission: NICs help ensure data is transmitted and received correctly between devices.


13. Disadvantages

  • Hardware Failure: If the NIC fails, the device cannot communicate over the network until it is repaired or replaced.

  • Speed Limitations: Older NICs may only support lower speeds, limiting overall network performance.

  • Additional Cost: High-performance NICs, such as 10 Gbps or fiber-optic adapters, can be expensive.

  • Driver Dependency: A NIC requires the correct driver to function properly with the operating system.


14. Wired NIC vs Wireless NIC

FeatureWired NICWireless NIC
ConnectionEthernet CableWi-Fi
MediumPhysical cableRadio waves
SpeedUsually faster and more consistent.Depends on Wi-Fi signal quality.
MobilityLimited by cable length.High mobility within Wi-Fi coverage.
ReliabilityMore stable with less interference.Can be affected by walls, distance, and interference.
Common DevicesDesktop PCs, ServersLaptops, Smartphones, Tablets

15. Common Misconceptions

1. NIC and Wi-Fi are the same.

No. A NIC is the hardware that enables network communication.

Wi-Fi is a wireless networking technology that a wireless NIC can use.


2. Only computers have NICs.

No. Almost every network-enabled device has a NIC, including:

  • Smartphones
  • Smart TVs
  • Gaming consoles
  • Printers
  • IP cameras
  • Servers

3. A NIC always uses a cable.

No. NICs can be wired or wireless.


16. Key Takeaways

  • A Network Interface Card (NIC) is the hardware that connects a device to a network.
  • Every network-enabled device has at least one NIC.
  • A NIC sends and receives data between the device and the network.
  • Each NIC has a unique MAC address, which identifies it on the local network.
  • NICs can be wired (Ethernet) or wireless (Wi-Fi).
  • Without a NIC, a device cannot communicate with other devices or access the Internet.
Host vs Node
MAC Address