# Networking Devices:

## Network Interface Card (NIC)

A **Network Interface Card (NIC)** — also known as a **network adapter** — is the hardware component that allows a device to connect to a network. These terms (NIC, network interface card, and network adapter) are interchangeable.

If a device needs to communicate on a network, it must have at least one NIC installed.

* * *

## MAC Address and the NIC

Each NIC has a unique **MAC (Media Access Control) address**.

*   This address is assigned by the manufacturer.
    
*   It is burned into the NIC’s ROM chip.
    
*   It is designed to be permanent.
    

Although the original hardware MAC address cannot be changed, it can be **spoofed** (temporarily modified) at the operating system level.

* * *

## Types of Network Connections

A NIC enables different types of network connections, including:

*   **Wired Ethernet** – Using an RJ-45 port and Ethernet cable (electrical signals)
    
*   **Wireless (Wi-Fi)** – Using radio signals
    
*   **Fiber Optic** – Using light signals for high-speed communication
    

Most modern devices include both:

*   A wired Ethernet NIC
    
*   A wireless Wi-Fi NIC
    

This allows flexibility depending on the network environment.

* * *

## Multiple NICs in Devices

While most personal computers have one or two NICs, servers commonly have multiple network interface cards.

Why?

*   Redundancy (backup connections)
    
*   Load balancing (sharing network traffic)
    
*   Connection to multiple networks
    

Each NIC has its own:

*   MAC address
    
*   IP address
    

This allows the device to communicate across different networks simultaneously.

* * *

## Summary

A Network Interface Card (NIC) is essential for network communication. It provides the physical or wireless connection to the network and contains a unique MAC address used for device identification. Whether through Ethernet, Wi-Fi, or fiber optics, the NIC is the foundation of any network-enabled device.

## What Is a Network Hub?

Hubs are considered legacy networking devices. They were commonly used 15–20 years ago but have largely been replaced by network switches.

At first glance, a hub and a switch look very similar. However, internally they operate very differently.

Both hubs and switches serve as central connecting devices in a **star topology**, where all devices connect to a single central point. The difference lies in how they handle network traffic.

* * *

## Why Is a Hub Considered a “Dumb” Device?

A hub is called a *dumb device* because it functions as a **multi-port repeater**.

This means:

*   It does **not** inspect or understand data.
    
*   It does **not** examine MAC addresses.
    
*   It does **not** make forwarding decisions.
    
*   It simply copies incoming electrical signals and sends them out to every other connected port.
    

In simple terms, it repeats bits without any intelligence.

* * *

## Why Is This a Problem?

Because a hub sends all incoming traffic to every connected device, it creates a higher chance of **network collisions**.

A collision occurs when two devices transmit data at the same time. When that happens:

*   Data becomes corrupted
    
*   Devices must retransmit
    
*   Network performance decreases
    

This makes hubs inefficient compared to modern switches.

* * *

## Hub and the OSI Model

Since a hub only regenerates and forwards electrical signals — without analyzing frames or addresses — it operates at:

### **OSI Layer 1 – The Physical Layer**

The Physical Layer deals strictly with:

*   Electrical signals
    
*   Voltage levels
    
*   Cables and connectors
    
*   Raw bits (1s and 0s)
    

A hub does not read frames, examine MAC addresses, or make traffic decisions. It simply repeats electrical signals, which is purely a Layer 1 function.

* * *

## Summary

Hubs were useful in early networking environments but are now obsolete. Their lack of intelligence, high collision rates, and inefficient traffic handling have led to their replacement by switches, which operate at a higher OSI layer and make smarter forwarding decisions.

## Network Switch

A **network switch** is a central connecting device used in a star topology, just like a hub. However, unlike a hub, a switch is considered a **smart device**.

Although switches and hubs may look similar externally, their internal operation is very different.

* * *

## Why Is a Switch Considered a “Smart” Device?

A switch is smart because it does more than simply repeat signals.

A switch:

*   Inspects incoming data frames
    
*   Reads source and destination MAC addresses
    
*   Maintains a MAC address table called ‘Content Addressable Table’ (CAM table).
    
*   Forwards traffic only to the correct destination port
    
*   Uses Application specific Integrated circutary (ASIC) Which makes them extremely fast
    

Instead of broadcasting traffic to every connected device (like a hub), a switch sends data only to the intended recipient.

* * *

## How a Switch Reduces Collisions

Unlike a hub, a switch creates a separate collision domain for each port.

This means:

*   Devices can transmit data simultaneously
    
*   Collisions are greatly reduced (or eliminated in full-duplex mode)
    
*   Network performance improves significantly
    

Because traffic is intelligently forwarded, switches provide much higher efficiency and reliability.

* * *

## Switch and the OSI Model

A traditional switch operates at:

### OSI Layer 2 – The Data Link Layer

Layer 2 is responsible for:

*   MAC addressing
    
*   Frame forwarding
    
*   Error detection
    
*   Controlling access to the physical medium
    

Since a switch reads MAC addresses and makes forwarding decisions based on them, it operates at the Data Link Layer.

> Note: Some advanced switches (Layer 3 switches) can also operate at the Network Layer by performing routing functions.

* * *

## Hub vs Switch (Quick Comparison)

| Feature | Hub | Switch |
| --- | --- | --- |
| Intelligence | Dumb device | Smart device |
| OSI Layer | Layer 1 (Physical) | Layer 2 (Data Link) |
| Traffic Handling | Broadcasts to all ports | Forwards to specific port |
| Collision Domains | One shared | One per port |
| Performance | Lower | Higher |
| Modern Usage | Obsolete | Standard in modern networks |

* * *

## Summary

Switches have replaced hubs in modern networks because they provide intelligent traffic management, reduce collisions, and significantly improve network performance. While both devices serve as central connection points in a star topology, the switch is far more efficient and scalable.

# Routers

### What are routers :

Routers are specialized computers designed specifically for networking purposes. They run a dedicated router operating system (Router OS), which includes various software modules that handle different networking functions such as packet forwarding, routing protocols, network address translation (NAT), firewalling, traffic management (QoS), and interface management, etc.

However, as networks grow in size and complexity, this monolithic approach becomes harder to scale and manage. Instead of running all these modules inside a single system, large-scale networks often adopt a **distributed or modular architecture**, where each function is separated and deployed on dedicated systems.

In such designs, each networking function becomes an independent service:

*   Routing can be handled by dedicated routing engines like FRRouting or BIRD, which focus purely on control-plane logic such as BGP and OSPF.
    
*   Firewalling and NAT are typically offloaded to security-focused systems like pfSense or OPNsense, optimized for packet filtering and stateful inspection.
    
*   IP address allocation is handled by dedicated DHCP servers such as Kea DHCP, which can scale independently and support failover.
    
*   Name resolution is managed by DNS servers like BIND or Unbound.
    
*   Secure connectivity is provided by VPN systems such as WireGuard or OpenVPN.
    
*   Authentication and access control are centralized using AAA systems like FreeRADIUS.
    

Beyond these core services, modern networks also introduce specialized components:

*   Load balancers like HAProxy or NGINX distribute traffic efficiently across backend systems.
    
*   Intrusion detection and prevention systems such as Suricata monitor traffic for malicious behavior.
    
*   Monitoring and observability platforms like Prometheus provide real-time insights into network health.
    
*   Automation tools like Ansible manage configuration and ensure consistency across all systems.
    

At a deeper level, this separation reflects the distinction between the **control plane** and the **data plane**:

*   The **control plane** (routing decisions, policies) can run on dedicated servers using software like FRRouting.
    
*   The **data plane** (actual packet forwarding) may run on high-performance appliances or optimized kernel paths.
    

This architecture allows each component to scale independently. For example, if the network experiences increased traffic, only the firewall or load balancer layer may need scaling, without affecting routing or DHCP services.

However, this flexibility comes with trade-offs. A distributed system introduces additional complexity in terms of synchronization, configuration management, and inter-service communication. This is why automation and orchestration tools become essential in large environments.

In essence, a modern network is no longer a single “router,” but a collection of tightly integrated, specialized systems working together—each responsible for a specific function, yet collectively forming a highly scalable and resilient infrastructure.

## What Do Routers Do?

Routers are networking devices used to **connect different networks together**.

*   **Hubs and switches** connect devices *within the same network (LAN)*.
    
*   **Routers** connect one network to another network.
    

If a device on one network needs to communicate with a device on a different network, a **router is required**.

* * *

## Real-World Example: Accessing Gmail

Imagine you are at home and want to check your Gmail account hosted on Google’s servers.

Your computer is on your **local area network (LAN)**.  
The Gmail server exists on a completely **different network** somewhere on the internet.

Since you are communicating outside your local network, your traffic must go through a **router**.

The internet itself is made up of thousands of interconnected routers that forward traffic between networks until it reaches its destination.

* * *

## Routers and the OSI Model

Routers operate at:

### OSI Layer 3 – The Network Layer

The Network Layer is responsible for:

*   Logical addressing (IP addresses)
    
*   Routing between networks
    
*   Path determination
    
*   Packet forwarding
    

Because routers analyze destination **IP addresses** and determine where packets should go next, they are Layer 3 devices.

* * *

## MAC Addresses vs IP Addresses

One of the most important concepts in networking is understanding the difference between MAC and IP addressing.

### Switches → Use MAC Addresses (Layer 2)

*   Operate within a LAN
    
*   Use MAC addresses
    
*   Forward frames to specific switch ports
    
*   Maintain a CAM table for MAC-to-port mapping
    

### Routers → Use IP Addresses (Layer 3)

*   Operate between networks
    
*   Use IP addresses
    
*   Forward packets based on routing tables
    

Switches handle communication *inside* a network.  
Routers handle communication *between* networks.

* * *

## Intelligent Decision Making

Routers are intelligent devices.

They:

*   Maintain routing tables
    
*   Use routing protocols
    
*   Determine the best available path
    
*   Forward packets accordingly
    

In small networks, routing may be simple and directly connected.

In large networks — especially the internet — packets may travel through **hundreds or thousands of routers** before reaching their destination.

Each router along the way makes its own independent forwarding decision.

* * *

## Broadcast Domains

Another key function of routers:

👉 **Routers break up broadcast domains.**

*   A switch forwards broadcast traffic within a LAN.
    
*   A router does NOT forward broadcast traffic to another network.
    

This containment of broadcast traffic:

*   Improves network performance
    
*   Enhances security
    
*   Reduces unnecessary congestion
    

Each interface on a router creates a separate broadcast domain.

* * *

## How Routing Works (Step-by-Step Example)

Let’s use a simple example:

*   PC1 is on Network A
    
*   PC3 is on Network B
    
*   A router connects the two networks
    

### Step 1: PC1 Sends Data

PC1 wants to send data to PC3.

PC1 checks:

*   Is the destination IP in my local subnet?
    

If the answer is **no**, PC1 sends the packet to its **default gateway** (the router).

* * *

### Step 2: Switch Forwards to Router

PC1 sends the frame to the switch.

The switch:

*   Looks at the destination MAC address
    
*   Forwards the frame to the router’s interface
    

The switch does not analyze IP addresses — only MAC addresses.

* * *

### Step 3: Router Processes the Packet

The router:

*   Removes the Layer 2 frame
    
*   Examines the destination IP address
    
*   Looks in its routing table
    
*   Determines the best path to Network B
    

If the destination network is directly connected, the router forwards it immediately.

If not, it forwards the packet to the next-hop router.

* * *

### Step 4: Packet Reaches Destination Network

Once the packet arrives at the destination network:

*   The router forwards it to the local switch
    
*   The switch checks its MAC address table
    
*   The frame is delivered to PC3
    

* * *

## Simple End-to-End Flow

1.  PC1 → Switch (Layer 2)
    
2.  Switch → Router (Layer 2 forwarding)
    
3.  Router → Next network (Layer 3 decision)
    
4.  Router → Switch (destination LAN)
    
5.  Switch → PC3
    

Each device plays a specific role based on its OSI layer.

* * *

## Hub vs Switch vs Router (Full Comparison)

| Device | OSI Layer | Uses | Connects | Intelligence |
| --- | --- | --- | --- | --- |
| Hub | Layer 1 | None (repeats bits) | Devices in LAN | No |
| Switch | Layer 2 | MAC addresses | Devices in LAN | Yes |
| Router | Layer 3 | IP addresses | Different networks | Yes (more advanced) |

* * *

## Why We Need Both MAC and IP Addressing

Networking requires both addressing types:

*   **MAC addresses** allow communication within a local network.
    
*   **IP addresses** allow communication across multiple networks.
    

Switches rely on MAC addresses.  
Routers rely on IP addresses.

Together, they make global communication possible.

* * *

## Final Thoughts

Routers are Layer 3 devices that connect different networks and forward packets based on IP addresses. They make intelligent routing decisions, break up broadcast domains, and enable communication beyond the local network.

Without routers, your devices could communicate locally through switches — but they would never reach the internet or any external network.

Routers are the backbone of modern networking.

## Wireless Access Points (WAP)

### What Is a Wireless Access Point?

A wireless access point (WAP) is a networking device that allows wireless devices (Wi-Fi clients) to connect to a wired network.

It acts as a bridge between:

*   Wireless devices (laptops, smartphones, tablets)
    
*   A wired LAN (through a switch)
    

While a wireless router includes routing, switching, and wireless capabilities in one device, a dedicated wireless access point focuses specifically on providing wireless connectivity to an existing network.

### How a Wireless Access Point Works

A WAP:

*   Connects to a switch using an Ethernet cable
    
*   Receives data from the wired network
    
*   Converts the data into radio signals
    
*   Transmits those signals to wireless devices
    

When a wireless device sends data:

*   The WAP receives the radio signal
    
*   Converts it into wired Ethernet frames
    
*   Forwards it to the switch
    

In simple terms, a WAP bridges wireless and wired networks.

### Wireless Access Points and the OSI Model

A wireless access point primarily operates at:

**OSI Layer 2 – The Data Link Layer**

Why?

*   It uses MAC addresses
    
*   It forwards frames
    
*   It bridges wireless and wired segments
    

It does not perform routing (unless it is part of a wireless router device).

### When Are Wireless Access Points Used?

WAPs are commonly used in:

*   Offices
    
*   Schools
    
*   Hospitals
    
*   Large homes
    
*   Enterprise networks
    

In large environments, multiple access points are deployed to:

*   Increase wireless coverage
    
*   Support more users
    
*   Improve performance
    

All access points connect back to switches, which connect to routers for internet access.

### Benefits of Wireless Access Points

*   Extends wireless coverage
    
*   Supports many simultaneous users
    
*   Integrates with existing wired networks
    
*   Enables centralized wireless management (in enterprise setups)
    

* * *

## Wireless Extenders (Wi-Fi Repeaters)

### What Is a Wireless Extender?

A wireless extender (also called a Wi-Fi repeater) is a device that expands the coverage area of an existing wireless network.

Unlike a wireless access point:

*   A WAP connects to the network using a wired Ethernet connection.
    
*   An extender connects wirelessly to the existing Wi-Fi signal.
    

It does not require a cable connection to the router or switch.

### How a Wireless Extender Works

A wireless extender:

1.  Connects wirelessly to the main Wi-Fi router
    
2.  Receives the existing wireless signal
    
3.  Rebroadcasts (repeats) that signal
    

This allows devices farther away from the main router to connect.

However, because it must both receive and retransmit data, bandwidth is typically reduced.

### Performance Considerations

Wireless extenders:

*   Increase coverage
    
*   But may reduce overall speed
    
*   Add latency compared to wired access points
    

For this reason:

*   Extenders are common in homes
    
*   Access points are preferred in business environments
    

### Wireless Extenders and the OSI Model

Like access points, wireless extenders operate mainly at:

**OSI Layer 2 – The Data Link Layer**

They:

*   Forward frames
    
*   Use MAC addressing
    
*   Extend the same broadcast domain
    

They do not perform routing functions.

* * *

## Wireless Access Point vs Wireless Extender (Quick Comparison)

| Feature | Wireless Access Point | Wireless Extender |
| --- | --- | --- |
| Connection to Network | Wired (Ethernet) | Wireless |
| Performance | Higher | Lower (due to repeating) |
| Best For | Businesses, large networks | Homes, small coverage gaps |
| Reliability | Very stable | Depends on signal quality |
| Broadcast Domain | Same LAN | Same LAN |

* * *

## Summary

A **Wireless Access Point** connects wireless devices to a wired LAN and is ideal for scalable, high-performance environments.

A **Wireless Extender** expands the coverage of an existing Wi-Fi network by repeating the wireless signal, making it useful for eliminating dead zones in homes or small spaces.

Both devices improve wireless coverage, but access points provide better performance and scalability, while extenders provide convenience and simplicity.

# Modems

## What Is a Modem?

A modem (Modulator-Demodulator) is a device that connects your local network to your Internet Service Provider (ISP).

Its main job is to convert signals between:

Your home/office network (digital data) The ISP’s transmission medium (cable, DSL, fiber, etc.)

### Why Do We Need a Modem?

Different transmission technologies use different signal types:

Computers → Digital signals

Cable lines → Electrical RF signals

Telephone lines → Analog signals

Fiber → Light signals

A modem translates between these formats so communication is possible.

### How a Modem Works

Modulation → Converts digital data into signals suitable for transmission Demodulation → Converts incoming signals back into digital data

👉 That’s where the name Mo-Dem comes from.

## Types of Modems

1.  Cable Modem
    
    1.  Used with cable internet (coaxial cable)
        
    2.  Common in homes
        
2.  DSL Modem
    
    1.  Uses telephone lines
        
    2.  Slower than cable/fiber
        
3.  Fiber Modem (ONT – Optical Network Terminal)
    
    1.  Used in fiber networks
        
    2.  Converts light signals into Ethernet
        

## Modem and the OSI Model

A modem primarily operates at:

👉 OSI Layer 1 – Physical Layer

Because it deals with:

Signal conversion

Transmission media

Electrical/optical signaling

### Modem vs Router (Important Distinction) :

| Feature | Modem | Router |
| --- | --- | --- |
| Purpose | Connects to ISP | Connects networks |
| Addressing | None | Uses IP addresses |
| OSI Layer | Layer 1 | Layer 3 |
| Function | Signal conversion | Packet forwarding |

👉 In most homes, both functions are combined into a single device.

## Summary

A modem enables internet connectivity by converting signals between your ISP and your network. Without a modem, your router cannot communicate with the internet.

# SOHO Devices:

## **What Is a SOHO Device?**

A **SOHO device** is an all-in-one networking device designed for:

*   Homes
    
*   Small offices
    

It combines multiple networking components into a single unit.

### What Does a SOHO Device Include?

A typical SOHO router includes:

*   **Router (Layer 3)**
    
*   **Switch (Layer 2)**
    
*   **Wireless Access Point (Layer 2)**
    
*   **Firewall (security)**
    
*   Sometimes a **modem**
    

### Example: Home Wi-Fi Router

When you buy a typical Wi-Fi router, it usually acts as:

*   Router → Connects to internet
    
*   Switch → Provides LAN ports
    
*   WAP → Provides Wi-Fi
    
*   Firewall → Protects your network
    

👉 This is why it's often called a **wireless router**, but technically it’s a **SOHO device**.

### Key Features of SOHO Devices

1.  NAT (Network Address Translation)
    
    *   Converts private IPs to public IP Allows multiple devices to share one internet connection
        
    *   This feature part of the router actually
        
2.  DHCP Server
    
    *   Automatically assigns IP addresses to devices
        
    *   Generally when not using SOHO, we have **Dedicated DHCP Server** or some times it is included in the router itself.
        
3.  Basic Firewall
    
    *   Blocks unauthorized access
        
    *   Generally when not using SOHO, we have Dedicated **Firewall Appliance** or router in basic setups
        
4.  Wireless Connectivity
    
    *   Provides Wi-Fi access
        
    *   Generally when not using SOHO, we have Dedicated device called Wireless Access Point (WAP)
        

## Putting It All Together (Without SOHO Device)

Here’s what a clean modular network looks like:

```plaintext
       Internet
           │
    [ Modem / ONT ]
           │
    [ Firewall ]
           │
    [ Router ]  ← NAT happens here
           │
        [ Switch ]
      /     |      \
   PC     Server   WAP
             │
       DHCP Server
```

### Responsibility Breakdown

| Function | Device |
| --- | --- |
| NAT | Router |
| DHCP | DHCP Server |
| Firewall | Firewall Appliance |
| Wireless | Wireless Access Point |

## SOHO Device and the OSI Model

A SOHO device operates across multiple layers:

*   Layer 1 → Physical interfaces
    
*   Layer 2 → Switching & Wi-Fi
    
*   Layer 3 → Routing
    
*   Layer 4+ → Firewall/NAT functions
    

## When Are SOHO Devices Used?

*   Homes
    
*   Small businesses
    
*   Temporary setups
    

They are **not ideal for large enterprises**, where dedicated devices are preferred.

## Summary

SOHO devices combine multiple networking functions into one compact device, making them ideal for small environments where simplicity, cost, and ease of use are important.

# Media Converters

### What Is a Media Converter?

A media converter is a device that converts one type of transmission media into another.

👉 Example:

Copper (Ethernet) ↔ Fiber optic

### Why Are Media Converters Needed?

Different parts of a network may use different media types:

*   Copper Ethernet (short distances, cheaper)
    
*   Fiber optic (long distances, high speed)
    

A media converter allows these systems to work together.

### How a Media Converter Works

*   Receives signal in one format
    
*   Converts it into another format
    
*   Forwards it without modifying the data
    

👉 It does NOT inspect traffic or make decisions.

### Common Use Cases

1.  Extending Network Distance
    
    *   Ethernet limit ≈ 100 meters
        
    *   Fiber can go kilometers
        
2.  Connecting Different Network Types
    
    *   Legacy copper networks to modern fiber infrastructure
        
3.  ISP and Enterprise Networks
    
    *   Used in backbone and access networks.
        

### Media Converter and the OSI Model

Media converters operate at:

👉 OSI Layer 1 – Physical Layer

Because they:

*   Do not read frames
    
*   Do not use MAC/IP addresses
    
*   Only convert signals
    

### Media Converter vs Switch

| Feature | Media Converter | Switch |
| --- | --- | --- |
| Intelligence | None | Yes |
| OSI Layer | Layer 1 | Layer 2 |
| Function | Signal conversion | Frame forwarding |
| MAC Table | No | Yes |

### Summary

Media converters are simple Layer 1 devices that enable communication between different transmission media types. They are essential for extending networks and integrating different technologies.

## Final Wrap-Up (Extended View)

| Device | OSI Layer | Role |
| --- | --- | --- |
| Hub | Layer 1 | Signal repeater |
| Media Converter | Layer 1 | Signal type conversion |
| Modem | Layer 1 | ISP signal conversion |
| Switch | Layer 2 | MAC-based forwarding |
| WAP | Layer 2 | Wireless access |
| Router | Layer 3 | Network routing |
| SOHO Device | Multi-layer | All-in-one solution |

# Firewalls

## What Is a Firewall?

A **firewall** is a network security device that monitors and controls incoming and outgoing traffic based on predefined security rules.

A firewall can be for the network as whole or for individual systems of the network.

👉 Its main goal is to **protect networks from unauthorized access**.

there are two types of firewalls hardware based and software based.

In a network typically there are many firewalls like software based or hardware based and usually every os will have dome default firewall like winddows, macos, linux etc..

Firewalls are the foundation of defense in depth network security startegy

### How a Firewall Works

A firewall sits between:

*   A **trusted network** (your LAN)
    
*   An **untrusted network** (the internet)
    

It examines traffic and decides:

*   ✅ Allow the traffic
    
*   ❌ Block the traffic
    

### Types of Firewalls

1.  **Packet Filtering Firewall**
    
    *   Examines:
        
        *   Source IP
            
        *   Destination IP
            
        *   Port numbers
            
    *   Works quickly but is less intelligent
        
    
    Operates mainly at OSI Layer 3 & 4
    
2.  **Stateful Firewall**
    
    *   Tracks active connections
        
    *   Allows only valid, established TCP sessions
        
    
    More secure than basic packet filtering
    
3.  **Application Layer Firewall (Next-Gen Firewall)**
    

*   Inspects actual data (applications)
    
*   Can filter:
    
    *   HTTP
        
    *   FTP
        
    *   DNS traffic
        
    
    Operates up to layer 7
    

# DHCP

### What Is DHCP (Dynamic Host Configuration Protocol)?

**DHCP** is a network protocol that automatically assigns IP addresses and other network settings to devices.

👉 Without DHCP, you would have to manually configure every device.

### What Does DHCP Provide?

When a device connects to a network, DHCP assigns:

*   IP address
    
*   Subnet mask
    
*   Default gateway
    
*   DNS server
    

### How DHCP Works (DORA Process)

The DHCP process follows four steps:

1.  Discover
    
    *   Client broadcasts: “Is there a DHCP server?”
        
2.  Offer
    
    *   DHCP server responds with an available IP address
        
3.  Request
    
    *   Client requests the offered IP
        
4.  Acknowledge
    
    *   Server confirms and assigns the IP
        

👉 This is called the DORA process:

**Discover → Offer → Request → Acknowledge**

### DHCP and the OSI Model

DHCP operates at:

👉 **OSI Layer 7 – Application Layer**

But it uses:

*   UDP ports:
    
    *   67 (server)
        
    *   68 (client)
        

### DHCP Server vs Client

| Role | Description |
| --- | --- |
| DHCP Server | Assigns IP addresses |
| DHCP Client | Receives IP configuration |

### Where Is DHCP Used?

*   Home routers (SOHO devices act as DHCP servers)
    
*   Enterprise networks (dedicated DHCP servers)
    
*   ISPs (assign public IPs)
    

### Benefits of DHCP

*   Eliminates manual configuration
    
*   Prevents IP conflicts
    
*   Simplifies network management
    

### Summary

DHCP automates IP address assignment, making networks easier to manage and reducing configuration errors.

# VoIP Endpoints

### What Is VoIP?

**VoIP (Voice over Internet Protocol)** is a technology that allows voice communication over IP networks instead of traditional telephone lines.

### What Are VoIP Endpoints?

VoIP endpoints are devices that send and receive voice traffic over a network.

Examples include:

*   IP phones
    
*   Softphones (apps on laptops/mobile)
    
*   VoIP-enabled conference systems
    

### Types of VoIP Endpoints

1.  IP Phones
    
    *   Dedicated hardware devices Connect via Ethernet Often powered using PoE (Power over Ethernet)
        
2.  Softphones
    
    *   Software applications Run on PCs or smartphones Examples: Zoom, Teams, SIP apps
        
3.  Analog Telephone Adapters (ATA)
    
    *   Connect traditional phones to VoIP networks
        

### VoIP Protocols

**SIP (Session Initiation Protocol)**

*   Handles call setup and teardown
    

**RTP (Real-Time Transport Protocol)**

*   Carries the actual voice data
    

### VoIP and the OSI Model

VoIP spans multiple layers:

*   Layer 7 → SIP signaling
    
*   Layer 4 → UDP transport
    
*   Layer 3 → IP addressing
    
*   Layer 2 → Frame delivery
    

### Network Requirements for VoIP

VoIP is sensitive to network performance:

*   Low latency
    
*   Low jitter
    
*   Minimal packet loss
    

This is why **QoS (Quality of Service)** is often used.

### Where Are VoIP Endpoints Used?

*   Offices (IP phones)
    
*   Call centers
    
*   Remote work setups
    
*   Unified communication systems
    

### Summary

VoIP endpoints enable voice communication over IP networks, replacing traditional telephony with flexible, scalable, and cost-effective solutions.

## Final Extended Networking Stack

Now your blog covers a full modern network ecosystem:

| Category | Devices / Protocols | OSI Layer | Role |
| --- | --- | --- | --- |
| Physical | Hub, Modem, Media Converter | Layer 1 | Signal handling |
| Data Link | Switch, WAP | Layer 2 | MAC-based communication |
| Network | Router | Layer 3 | IP routing |
| Security | Firewall | Layer 3–7 | Traffic control |
| Services | DHCP | Layer 7 | IP assignment |
| Communication | VoIP Endpoints | Multi-layer | Voice over IP |
| Integrated | SOHO Devices | Multi-layer | All-in-one networking |
