Skip to main content

3.2 Creating a Network: Switching and Topologies

add to ChatGPT
Verified for the 2027 examUpdated November 2026Fiveable Content Team
Fiveable

🌐AP Networking Unit 3 Review

QR code for AP Networking practice questions

3.2 Creating a Network: Switching and Topologies

Picture a school where everyone shares one giant hallway. Traffic jams, chaos, and anyone can wander into any classroom. Networks have the same problem when every device sits on one big flat network. That's why we split networks into smaller pieces called segments and connect them using specific layouts called topologies. This topic covers how data actually moves through a segmented network, how to decide where to draw those dividing lines, and which physical layouts make sense for different situations.

How Data Moves Across a Segmented Network

Segmenting a network means sorting devices into smaller groups so performance, management, and security all get better. Instead of one massive network where every device hears every broadcast, you break things up. Each segment gets its own distinct range of IP addresses, and segments usually separate different user types (like staff vs guests), functions (like voice vs data), or resources (like servers vs workstations).

You can segment a network two ways:

  • Physically, using separate hardware like dedicated switches, routers, or cabling
  • Logically, through software configurations like VLANs or subnets

Building and Sending a Packet

Before data goes anywhere, the sending device builds a packet. The packet's header includes:

  • The source IP address (where it came from)
  • The destination IP address (where it's going)
  • Other routing information the network needs

Once the packet is built, the sending host has to figure out one key question: is the destination on my segment, or somewhere else? It answers this by checking the destination IP against its own IPv4 address and subnet mask. The subnet mask tells the host which part of an IP address identifies the network and which part identifies the device.

Same Segment vs Different Segment

If the destination is on the same segment: A switch handles it. The switch delivers the data straight to the MAC address of the destination device. No router needed. Switches work with MAC addresses (physical hardware addresses) to move frames around inside a single segment.

If the destination is on a different segment or network: The data gets sent to the default gateway, which is the router. The router is the device that knows how to reach other networks.

The Router's Job

Every router keeps a routing table: a list of possible paths packets can take to reach different networks. When a packet arrives, the router looks at the destination IP address and matches it against entries in the routing table to decide which segment should get the data. Then it hands the packet off to a switch on the correct segment, and that switch delivers it to the right device.

So the full trip looks like this:

</>Code
Device A → Switch → Router → Switch → Device B
(builds packet)  (checks routing table)  (final delivery via MAC)

If A and B are on the same segment, you skip the router entirely and it's just: Device A → Switch → Device B.

Choosing How to Segment a Network

There's no single "right" way to segment. You pick based on what devices you have, how sensitive they are, what access they need, and how much traffic they produce. A few general rules:

  • Put user workstations, internal services, IoT devices, and guest access in separate segments. This cuts down on broadcast congestion (when broadcast messages flood every device).
  • Separation also limits lateral movement: if an attacker gets into one segment, they can't easily hop to others.

Here are the main segmentation tools you'll see.

Physical Segmentation

Use physical segmentation when you need the maximum level of isolation and security. Think separate departments, restricted zones, or sensitive labs. This approach uses dedicated switches, routers, or cabling to create subnetworks that are completely cut off from each other.

Example: a computer science department at a university sets up a testing lab on its own router and switch, totally separate from the hardware serving university offices and classrooms. Because the lab has dedicated equipment, its traffic is physically isolated from the rest of the network.

The trade-off: physical segmentation costs more and adds complexity (more hardware to buy, install, and manage). But the separation is rock solid.

VLANs (Virtual LANs)

VLANs let you separate devices and traffic without adding extra physical hardware. Devices plugged into the same physical switch can be grouped into different virtual networks just by configuring the switch's ports.

Example: in an office, a single managed switch connects employee computers, printers, and VoIP phones. The ports are assigned to different VLANs, so even though everything sits on one physical switch, data, voice, and print traffic stay logically apart.

VLANs are perfect when you're sharing hardware and need flexibility to group devices by type, department, or role.

Subnetting

Subnetting splits a large network into smaller address ranges that are logically separated. You use it to:

  • Organize devices by IP range
  • Support access control and routing
  • Allocate addresses efficiently
  • Enforce a firewall between IP groups
  • Control broadcasts across multiple segments

If VLANs are about logically grouping devices on shared switches, subnetting is about logically dividing up IP address space. The two often work together.

Wireless Segmentation with SSIDs

For Wi-Fi, you use multiple SSIDs (the network names you see when you connect) when different user groups need separate wireless access. Classic example: one SSID for staff, another for guests. Each SSID can be mapped to its own subnet or VLAN, so you get access control and traffic isolation at the same time.

Choosing a Wired Network Topology

Topology refers to how devices in a network are physically connected and how traffic flows between them. The right choice depends on what the network actually needs: reliability, cost, and ease of maintenance all matter.

Modern networks typically use star, mesh, or hybrid designs. Older designs like bus and ring are generally avoided because they don't handle faults well and don't scale.

Star Topology

In a star topology, every device connects to a central network device (usually a switch). All traffic passes through that central point.

Pros:

  • Simple to set up, expand, and troubleshoot
  • Each device has its own independent connection, so one cable failing only affects one device
  • Relatively cost-effective (minimal cabling and hardware)
  • Great for networks with limited resources

Con:

  • The central switch is a single point of failure. If it dies, the whole segment goes down.

Mesh Topology

In a mesh topology, every node has a direct link to every other node. That means data has multiple possible routes to reach any destination.

Pros:

  • High fault tolerance: if one connection fails, traffic just takes another path
  • More reliable overall because of the redundancy

Cons:

  • Way more cabling, more devices, more management
  • Expensive and complex
  • Best for networks with dedicated support staff

Hybrid Topology

A hybrid topology mixes star and mesh elements. You'll find these in larger networks where different segments have different needs. Maybe the server room uses mesh for reliability, while the office floors use star because they just need something cheap and simple. Hybrid designs let you balance performance, reliability, and cost across a large LAN.

Picking the Right One

Match the topology to what matters most:

PriorityBest choice
Keep costs low, easy to maintainStar
Maximum uptime, can't afford failureMesh
Large LAN with mixed needsHybrid

Reliability is the big one for networks where uptime is critical. Star is solid for most situations, but mesh wins when you absolutely cannot afford downtime. Cost pushes most small and mid-sized setups toward star, while hybrid shows up when a single approach doesn't fit every part of the network.

Evaluating an AI-Generated LAN Configuration

AI tools can be useful for network design. They can suggest topologies, propose ways to segment a LAN, and recommend what devices you'll need. But AI output is a starting point, not a finished plan.

Writing a Good Prompt

The quality of an AI suggestion depends heavily on the quality of your prompt. A good prompt spells out technical requirements clearly, including things like:

  • How traffic flows (which segments talk to which)
  • What security policies apply
  • How much redundancy is needed
  • Limits imposed by the physical layout (building size, cable runs, existing hardware)

These are examples of requirements, not the full list. If your prompt leaves out important details, you'll get a design that's incomplete or just plain wrong.

What Can Go Wrong

Even with a solid prompt, AI-generated configurations have common issues:

  • Missing or half-finished segments: it might forget a guest network entirely, or suggest a VLAN without configuring routing between segments.
  • Partial coverage of requirements: it addresses some of what you asked for and quietly drops the rest.
  • Suboptimal device or link choices: it recommends hardware that works but isn't the best fit for your situation.
  • Unnecessary complexity or cost: the design is technically correct but overbuilt, adding mesh redundancy where a simple star would have been fine.

Verify Before You Deploy

The core rule: any AI output must be checked and confirmed before you put it in place. Verify that the design actually fits the network's needs, goals, and constraints. Use AI to generate ideas and spot potential issues or improvements, then apply your own judgment to decide what actually gets built. AI is a brainstorming partner, not the final authority.

Practice Questions for 3.2

1 of 10

A university network administrator is designing a large wired Local Area Network (LAN). The server room requires maximum fault tolerance against physical attacks, while the student labs require a cost-effective setup that is easy to troubleshoot. Which topology should be chosen and documented to meet these differing security and operational needs?

A.

A mesh topology, because it provides the highest fault tolerance across both the server room and the student labs.

B.

A bus topology, because it minimizes the total cabling required for both the server room and the student labs.

C.

A hybrid topology, because it can use a mesh design for the server room and a star design for the student labs.

D.

A star topology, because it provides the most cost-effective and easily maintained setup for the entire network.

Vocabulary

The following words are mentioned explicitly in the AP® course framework for this topic.

Term

Definition

access control

Security mechanisms that determine who or what may reach specific network resources, systems, or data.

AI-generated configuration

A network design proposal produced by an artificial intelligence tool that specifies topology, segmentation approach, and devices for a LAN.

broadcast message

A network message sent to all devices within a segment, which can cause congestion when too many devices share a segment.

bus topology

A network design with limited fault tolerance and scalability that is generally avoided in modern networks.

cost

The financial expense of purchasing and maintaining network devices and links, which should be justified by requirements.

default gateway

The router IP address that devices on a local network use to send traffic to destinations outside the network.

destination IP address

The field in a packet header that identifies where the packet is headed.

fault tolerance

A network's ability to keep communicating when a connection or device fails, which is high in mesh networks.

firewall

A security device or software that restricts which network traffic is permitted to enter or leave a network, based on rules that check details such as IP addresses, ports, and protocols.

flawed design

A network configuration with errors or weaknesses that prevent it from meeting requirements correctly.

hybrid topology

A network design that mixes star and mesh elements to balance performance, reliability, and cost, often used in large LANs.

IP address

A numerical address assigned to a device on a network that identifies its location for sending and receiving data.

IP address range

A block of consecutive IP addresses assigned to a subnet or a specific group of devices.

IPv4 address

A 32-bit numerical address, written in dotted decimal notation, that identifies a device on an IPv4 network.

lateral movement

The technique an attacker uses to move from one compromised system to other systems within the same network.

local area network (LAN)

A network that connects devices within a limited physical area, such as a home or office.

logical segmentation

Dividing a network into separate logical groups, such as VLANs or subnets, regardless of physical layout.

MAC address

A unique hardware identifier assigned to a network interface, used to identify devices on a local network.

mesh topology

A network design in which every node has a direct link to each of the other nodes, giving data several possible routes.

network segment

A portion of a larger network that is separated from other portions, often by a router or switch, to divide traffic and manage addressing.

network segmentation

The practice of dividing a network into smaller, isolated segments to improve performance, security, and access control.

network switch

A network device that connects devices within a LAN and forwards data to the correct destination.

optimal device choice

Selecting the most suitable network devices and links for the stated requirements, rather than options that fall short.

packet

A unit of data that is transmitted across a network, containing a header with addressing information and a payload.

packet header

The portion of a packet containing fields such as source IP address, destination IP address, and information needed for routing.

partial design

A network configuration that addresses only some of the identified requirements or contains incomplete segments.

physical layout

The real-world arrangement of a building or space that limits where devices and cables can be placed in a network.

physical segmentation

Segmentation that uses dedicated switches, routers, or cabling to create subnetworks that are completely cut off from one another.

prompt

The input request given to an AI tool, where specific details such as number of users, devices, internet use, and budget improve the quality of the advice produced.

redundancy

Duplicate network components or links included so that the network can continue operating if a part fails.

redundant connection

An extra link between devices that provides alternate data routes, making mesh networks more complex to maintain but more fault tolerant.

reliability

The ability of a network or system to perform consistently and dependably without failure.

ring topology

A network design with limited fault tolerance and scalability that is generally avoided in modern networks.

router

A networking device that forwards packets between networks by consulting a routing table to choose the path to the destination.

routing

The process of determining the path that data should take to reach its destination across a network.

routing table

A table stored in a router or switch that records known networks and the best path for reaching each one.

scalability

A network's ability to grow by adding devices or connections, which is limited in bus and ring designs.

security policies

Rules that define how network resources are protected and which access or communication is permitted.

single point of failure

A component whose failure would disrupt the entire network, such as the central switch in a star topology.

source IP address

The IP address in a packet's header that identifies the device or network that sent the packet.

SSID

Service Set Identifier, the name that identifies a wireless network so devices can find and join it.

star topology

A network design in which every node connects to a central network device, typically a network switch, so all data passes through that central point.

subnet

A smaller network created by physically or logically dividing a larger network.

subnet mask

A value paired with an IPv4 address that determines which part of the address identifies the network and which identifies the host.

subnetting

The process of splitting one network into smaller pieces called subnets to ease congestion, aid security, and simplify management.

switch

A network device that delivers data to a destination device on the same network segment using MAC addresses.

technical requirements

Clearly stated network needs, such as traffic flow, security policies, redundancy, and physical layout limits, that a design must satisfy.

topology

The physical or logical arrangement of how devices in a network are linked together and how data travels between them.

traffic flow

The paths along which data moves through a network between devices and segments.

traffic isolation

Keeping network traffic from different groups or segments separate from one another.

unnecessary complexity

Extra design elements or features that add difficulty without being needed to meet network requirements.

verification of AI output

The process of checking and confirming AI-generated network suggestions to ensure they fit the network's needs, goals, and constraints before implementation.

VLAN

Virtual Local Area Network, a logical grouping of devices into isolated sets that can communicate as if they were on the same physical network segment.

wireless segmentation

Dividing wireless access into separate groups so that different user types have distinct wireless access and isolation.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google