Data Communication and Networking

Network Physical Structure — Topologies; Network Devices

C-CAT

Network Physical Structure — Topologies

What is Network Topology?

Network topology refers to how devices are connected in a network — the geometric pattern of the network.

Two types:

  • Physical topology — actual physical layout of cables and devices

Logical topology — how data flows through the network

Topology Types

11.1 Bus Topology

All devices connected to a single shared cable (backbone).

Device1 -- Device2 -- Device3 -- Device4 -- Device5
|___________________ Bus _____________________|

Characteristics:

FeatureDescription
ConnectionsAll nodes on a single cable
Data flowBroadcast — all devices receive all data
FailureIf backbone fails, entire network fails
TerminatorRequired at both ends (prevents signal reflection)
UseOld Ethernet (10Base2, 10Base5)

Advantages: Simple, low cost, easy to implement Disadvantages: Single point of failure, performance degrades with more nodes, hard to troubleshoot

11.2 Star Topology

All devices connected to a central hub or switch.

        Device1
           |
Device5 --Hub/-- Device2
        Switch
           |
        Device3
           |
        Device4

Characteristics:

FeatureDescription
Central deviceHub or Switch
FailureIf central device fails, entire network fails
Node failureOnly affected node is isolated
CablesSeparate cable per device
UseModern Ethernet (10Base-T, 100Base-T)

Advantages: Easy to add/remove devices, fault isolation, high performance Disadvantages: Central device is single point of failure, more cabling than bus

11.3 Ring Topology

Devices connected in a closed loop; data travels around the ring.

Device1 → Device2 → Device3 → Device4 → Device5 → (back to Device1)

Characteristics:

FeatureDescription
Data flowUnidirectional (or bidirectional in dual ring)
TokenToken Ring — device must have token to transmit
FailureSingle break stops the ring
Dual ringFDDI — second ring provides fault tolerance
UseSONET/SDH, IBM Token Ring (historical)

11.4 Mesh Topology

Every device has a direct connection to every other device.

D1 -- D2
| \/ / |
| /\ / |
D3 -- D4

Full Mesh: n(n-1)/2 connections for n devices.

Characteristics:

FeatureDescription
ConnectionsEvery device to every other device
ReliabilityHighest — multiple paths exist
Fault toleranceExcellent
CostVery high (lots of cables)
UseInternet backbone, military networks

Partial Mesh: Only some devices have redundant connections (cost-effective compromise).

11.5 Tree Topology (Hierarchical)

Combination of star and bus; devices arranged in a hierarchy.

         Root Switch
             |
    +--------+--------+
    |                 |
  Switch1          Switch2
  /    \           /    \
D1     D2        D3     D4

Use: Large enterprise networks, campus networks

11.6 Hybrid Topology

Combination of two or more topologies.

Example: Star-Bus, Star-Ring Use: Most real-world networks are hybrid

Network Devices

12.1 Hub

A hub is a basic networking device that connects multiple computers in a LAN.

  • Operates at Layer 1 (Physical Layer) of OSI model
  • Broadcasts data to all connected ports — does not filter
  • All devices share the same collision domain
  • Old technology — largely replaced by switches
[Hub] receives data on one port → sends it out ALL other ports
Even if data is meant for only one device

Types:

  • Active Hub — regenerates and amplifies signal (powered)
  • Passive Hub — just connects cables, no amplification

12.2 Repeater

A repeater extends the network by amplifying and regenerating signals.

  • Operates at Layer 1 (Physical Layer)
  • Extends the range of a single network segment

Does not filter data — forwards everything

  • Used when cable length exceeds maximum
[Segment1: up to 100m] → [Repeater] → [Segment2: up to 100m]
                         (regenerates)          = 200m total

12.3 Bridge

A bridge connects two network segments and filters traffic using MAC addresses.

  • Operates at Layer 2 (Data Link Layer)
  • Filters by MAC address — only forwards necessary traffic
  • Reduces collision domain
  • Has a MAC address table (learns which MACs are on which segment)
Segment A ← [Bridge] → Segment B
   |           |           |
   | MAC table: |           |
   | MAC1 → A  |           |
   | MAC2 → B  |           |

Modern equivalent: Network switches (multiport bridges)

12.4 Switch

A switch connects multiple devices in a LAN and forwards data only to the intended recipient (by MAC address).

  • Operates at Layer 2 (Data Link Layer) (Layer 3 switches also exist)
  • Each port is its own collision domain
  • Maintains a MAC address table
  • Smarter and faster than hub
Switch receives frame → checks destination MAC → forwards ONLY to correct port
(Not broadcast like hub)

Types:

TypeDescription
UnmanagedPlug-and-play; no configuration needed
ManagedConfigurable (VLANs, QoS, port mirroring)
Layer 2Forwards based on MAC address
Layer 3Forwards based on IP address (routing)
PoE SwitchPowers connected devices (IP cameras, phones)

12.5 Router

A router connects different networks and routes data between them using IP addresses.

  • Operates at Layer 3 (Network Layer)
  • Makes intelligent forwarding decisions based on IP address
  • Maintains a routing table
  • Connects LAN to WAN (internet)
Home Network (192.168.1.x) ← [Router] → Internet (public IP)

Router vs Switch:

FeatureSwitchRouter
OSI LayerLayer 2Layer 3
Address usedMAC addressIP address
ScopeWithin LANBetween networks
Routing tableMAC tableIP routing table
Broadcast domainSharedSeparate per interface

12.6 Gateway

A gateway connects networks using different protocols.

  • Operates at all layers (particularly upper layers)
  • Translates between different protocol stacks
  • Example: Email gateway (SMTP to X.400)

12.7 Access Point (AP)

A wireless access point provides wireless connectivity to a wired network.

  • Provides Wi-Fi access to wireless devices
  • Connected to wired network via Ethernet

Multiple APs can cover large areas (enterprise Wi-Fi)

Device Summary by OSI Layer

DeviceOSI LayerForwarding Based On
HubLayer 1 (Physical)None — broadcasts
RepeaterLayer 1 (Physical)None — regenerates
BridgeLayer 2 (Data Link)MAC address
SwitchLayer 2 (Data Link)MAC address
RouterLayer 3 (Network)IP address
GatewayAll layersProtocol

Continue learning

Related notes

Put this topic into timed practice

Open mock tests when you want full-exam pacing, or keep drilling in practice mode.