> For the complete documentation index, see [llms.txt](https://netsec.nerd-cafe.ir/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://netsec.nerd-cafe.ir/network-engineering/comptia-network+/n10-007/star-mesh-bus-ring-hybrid.md).

# Star, Mesh, Bus, Ring, Hybrid

Nerd Cafe

### <mark style="color:blue;">**Network Topologies**</mark>

Network topology refers to the <mark style="color:red;">**physical or logical arrangement of network devices**</mark> and how they communicate. Each topology has advantages, disadvantages, and best-use cases.

We will cover:

1. **Star Topology**
2. **Mesh Topology**
3. **Bus Topology**
4. **Ring Topology**
5. **Hybrid Topology**

### <mark style="color:blue;">**1. Star Topology**</mark>

#### <mark style="color:green;">**Definition**</mark>

In a <mark style="color:red;">**star topology**</mark>, all devices are connected to a central device (hub, switch, or router). This central device manages communication between the devices.

#### <mark style="color:green;">**Diagram**</mark>

```
      PC1     PC2
        \     /
         [Switch]
        /     \
      PC3     PC4
```

#### <mark style="color:green;">**How It Works**</mark>

* Each device (PC, printer, server) connects directly to the switch.
* If PC1 wants to send data to PC3, the data first reaches the switch, which then forwards it to PC3.

#### <mark style="color:green;">**Advantages**</mark>

* **Easy to troubleshoot** – If one connection fails, only that device is affected.
* **Scalable** – Easy to add new devices without affecting the network.
* **Efficient** – Switches provide fast data transfer.

#### <mark style="color:green;">**Disadvantages**</mark>

* **Single point of failure** – If the switch fails, the entire network goes down.
* **More expensive** – Requires more cables and a central device (switch).

#### <mark style="color:green;">**Practical Exercise**</mark>

**Task: Setting up a Star Topology in Packet Tracer**

* Open Cisco Packet Tracer.
* Drag and drop a switch from the "Switches" category.
* Drag and drop four PCs from the "End Devices" category.
* Connect the PCs to the switch using straight-through Ethernet cables.
* Assign IP addresses:
  * PC1: `192.168.1.1`
  * PC2: `192.168.1.2`
  * PC3: `192.168.1.3`
  * PC4: `192.168.1.4`
* Test connectivity using the ping command in the CLI:

```
ping 192.168.1.2
```

If successful, it means the network is working.

### <mark style="color:blue;">**2. Mesh Topology**</mark>

#### <mark style="color:green;">**Definition**</mark>

In a <mark style="color:red;">**mesh topology**</mark>, each device is directly connected to every other device.

#### <mark style="color:green;">**Diagram**</mark>

```
   PC1 ----- PC2
   |  \     /  |
   |    \ /    |
   |    / \    |
   |  /     \  |
   PC3 ----- PC4
```

#### <mark style="color:green;">**How It Works**</mark>

* Data is sent through multiple paths.
* **Full Mesh**: Every device is connected to every other device.
* **Partial Mesh**: Some devices have multiple connections, but not all.

#### <mark style="color:green;">**Advantages**</mark>

* **Redundant paths** – If one connection fails, another path is available.
* **High reliability** – Used in critical applications (e.g., military, banking).

#### <mark style="color:green;">**Disadvantages**</mark>

* **Expensive** – Requires a lot of cables and ports.
* **Complex setup** – Hard to configure and manage.

### <mark style="color:blue;">**3. Bus Topology**</mark>

#### <mark style="color:green;">**Definition**</mark>

A <mark style="color:red;">**bus topology**</mark> has a single backbone cable to which all devices are connected.

#### <mark style="color:green;">**Diagram**</mark>

```
PC1 ---- PC2 ---- PC3 ---- PC4
           |
        Terminator
```

#### <mark style="color:green;">**How It Works**</mark>

* Data travels in both directions along the backbone.
* Each device listens for data and accepts packets addressed to it.

#### <mark style="color:green;">**Advantages**</mark>

* **Easy to set up** – Requires minimal cabling.
* **Cost-effective** – No need for expensive network devices.

#### <mark style="color:green;">**Disadvantages**</mark>

* **Single point of failure** – If the main cable (bus) fails, the entire network is down.
* **Collisions** – When two devices send data simultaneously, collisions occur, reducing efficiency.

### <mark style="color:blue;">**4. Ring Topology**</mark>

#### <mark style="color:green;">**Definition**</mark>

In a <mark style="color:red;">**ring topology**</mark>, each device is connected to exactly two other devices, forming a closed loop.

#### <mark style="color:green;">**Diagram**</mark>

```
   PC1 --- PC2
    |       |
   PC4 --- PC3
```

#### <mark style="color:green;">**How It Works**</mark>

* Data flows in <mark style="color:red;">**one**</mark> or <mark style="color:red;">**both**</mark> directions (Token Ring).
* A token is passed around; only the device holding the token can transmit data.

#### <mark style="color:green;">**Advantages**</mark>

* **No collisions** – Uses token passing to prevent data conflicts.
* **Predictable performance** – Each device gets a turn to send data.

#### <mark style="color:green;">**Disadvantages**</mark>

* **Failure-sensitive** – If one device or link fails, the network breaks (unless using dual rings).
* **Hard to reconfigure** – Adding or removing devices disrupts the network.

### <mark style="color:blue;">**5. Hybrid Topology**</mark>

#### <mark style="color:green;">**Definition**</mark>

A <mark style="color:red;">**hybrid topology**</mark> is a combination of two or more topologies (e.g., Star-Mesh, Bus-Ring).

#### <mark style="color:green;">**Example: Star-Mesh Hybrid**</mark>

* **Star** connects small groups of PCs.
* **Mesh** ensures redundancy between groups.

#### <mark style="color:green;">**Diagram**</mark>

```
       [Switch] ---- PC1
          |
       [Mesh Network]
      /     |     \
   PC2    PC3    PC4
```

#### <mark style="color:green;">**Advantages**</mark>

* **Highly scalable** – Can adapt to different network needs.
* **Fault-tolerant** – Uses redundancy from mesh networks.

#### <mark style="color:green;">**Disadvantages**</mark>

* **Expensive** – Requires multiple networking devices.
* **Complex configuration** – Needs expertise in managing different topologies.

### <mark style="color:blue;">**Conclusion**</mark>

Each topology has strengths and weaknesses. Here’s a quick summary:

<table><thead><tr><th width="157">Topology</th><th>Pros</th><th>Cons</th></tr></thead><tbody><tr><td>Star</td><td>Easy to manage, scalable</td><td>Central device failure affects all</td></tr><tr><td>Mesh</td><td>Reliable, redundant</td><td>Expensive, complex setup</td></tr><tr><td>Bus</td><td>Cost-effective</td><td>Collisions, single point of failure</td></tr><tr><td>Ring</td><td>Predictable, no collisions</td><td>One failure breaks the network</td></tr><tr><td>Hybrid</td><td>Flexible, scalable</td><td>Expensive, complex</td></tr></tbody></table>

### <mark style="color:blue;">**Keywords**</mark>

`Star Topology`, `Mesh Topology`, `Bus Topology`, `Ring Topology`, `Hybrid Topology`, `Network Architecture`, `Network Design`, `LAN Topology`, `WAN Topology`, `Network Infrastructure`, `Network Configuration`, `Packet Switching`, `Data Transmission`, `Network Redundancy`, `Network Scalability`, `Network Troubleshooting`, `Network Performance`, `Topology Advantages`, `Topology Disadvantages`, `Network Cabling`, `نتورک پلاس`
