Network Components and Topologies
Networks and the Internet
Every time you load a page, send a message or stream a video, hardware passes data from machine to machine. This lesson names the parts of that chain, compares the ways devices can be connected, and shows how local networks join to form the Internet.
The parts of a network
A computer network is two or more devices connected so that they can exchange data. A host is an end system that originates or consumes application data. A client requests a service; a server provides one, such as storing files or sending web pages. These are roles: one host can perform both, even at the same time.
Hosts depend on a few pieces of hardware:
- A NIC provides a network connection and uses a hardware address, commonly called a MAC address, on the local network.
- A switch joins hosts on one local network. It uses learned destination MAC addresses to forward known unicast frames, data units addressed to one receiver, to the appropriate port. Broadcast frames and frames with unknown destinations can reach multiple ports.
- A wireless access point lets laptops and phones join the local network by radio.
- A router forwards data between different networks, selecting a next hop using routing information.
- A modem converts between local equipment's signals and those used by cable or DSL service to reach the ISP. Fibre service instead commonly uses an optical network terminal (ONT) to connect the fibre to the customer's equipment.
The links themselves are the transmission media: copper Ethernet cable, fibre-optic cable or radio waves.
Network topologies
A network topology is the layout of the links between devices. Four layouts appear in most introductory courses.
The layouts differ in how many links they need. Most grow in step with the number of devices n, but a full mesh, where every device links directly to every other, grows much faster:
Each of the n devices links to the other n−1, and dividing by 2 prevents counting each link twice.
Topology | Layout | Links for n devices | Effect of one failure |
|---|---|---|---|
Bus | All devices tap one shared backbone cable | One backbone plus n short drop cables | A break in the backbone can stop the whole network |
Star | Each device has its own cable to a central switch | n | A cut cable isolates one device; a failed switch stops communication through it |
Ring | Each device links to its two neighbours in a closed loop | n | One break can stop a ring that sends data in one direction |
Full mesh | Every device links directly to every other | n(n−1)/2 | With at least 3 devices, alternate paths exist; using them requires forwarding and failover support |
Example: With 5 devices, a star needs 5 cables to its switch, but a full mesh needs 5×4/2=10 links, and every device needs 4 network ports.
The star is common in homes, schools and offices because it is inexpensive, easy to extend and isolates cable faults. Its weakness is the centre: if the central switch fails, every device loses its connection through that switch. A full mesh with at least three devices offers alternate paths after one link fails. To use them, devices must support forwarding traffic for one another and failover, switching to a working path.
From local networks to the Internet
A LAN covers one home, school or building; a WAN links sites across cities or countries. The Internet is a network of networks joined through routers.
Data travels in packets, each carrying source and destination IP addresses. A router uses the destination address and its routing information to select a next hop. That hop may be another router or the destination itself on a directly connected network.
Internet routers form a partial mesh: some pairs have direct links, while others communicate through intermediate routers. After a failure, traffic can recover if an alternate route is available and routing adapts. Temporary disruption or packet loss can occur during recovery. Packets from one message may take different routes, and the receiving host puts the data back together.
What to remember
- Hosts originate or consume application data; client and server are roles one host can combine.
- NICs connect devices, switches join a LAN, and routers join networks. Cable and DSL use modems; fibre commonly uses an ONT.
- Star and ring need n links; a full mesh needs n(n−1)/2.
- Backbone and central-switch failures threaten bus and star networks. A full mesh with at least three nodes provides alternate paths, requiring forwarding and failover support.
- Internet routers select next hops using routing information; failure recovery depends on available alternate routes and may take time.
Example: Wiring a school computer lab
A school is cabling a new computer lab with 8 desktop computers. The technician is comparing two designs: a star, in which every computer has its own cable to one switch, and a full mesh, in which every computer is cabled directly to every other computer. Whatever the design, the lab must also connect to the school's main router.
a) For the star design, how many cables run between the computers and the switch, and what is the minimum number of ports the switch needs, counting one port for the link to the school router?
In a star, each computer has its own cable to the central switch, so the computers need 8 cables in total.
Each of those cables plugs into one switch port, and the uplink to the school router takes one more:
The star needs 8 computer cables and a switch with at least 9 ports.
b) How many links would a full mesh of the 8 computers need?
In a full mesh, each computer is cabled to every other computer, so each one has ________. Counting the links from every computer gives 8 × 7 = ________ cable ends, but each cable has two ends and so has been counted twice:
The full mesh needs 28 links, compared with 8 cables for the star.
c) The school adds a 9th computer. How many new cables does each design need?
In the star, the new computer needs only one cable to the switch; the switch must then have at least 10 ports.
In the full mesh, the new computer must be cabled to every existing computer, so it needs one cable to each of the ________ computers already there. Check with the formula: 9 computers need 9 × 8 ÷ 2 = ________ links, and 36 − 28 = 8.
The star needs 1 new cable; the full mesh needs 8.
d) In the 9-computer star, compare the effect of one computer's cable being cut with the effect of the switch failing. How would a single cut link affect a full mesh instead?
A cut cable in the star affects only 1 computer: that machine is isolated, while the others keep working through the switch.
If the switch fails, every computer loses its connection to the others and to the school router, because all traffic passes through the switch. The switch is a single point of failure, a component whose failure stops the whole network.
In a full mesh, if the link between two computers is cut, those two can still exchange data through any one of the other ________, provided the computers are set up to forward traffic. That backup path is the reliability the extra cabling buys.
A technician prepares two descriptions of a school network. Complete each sentence using physical or logical.
The description showing which devices are joined by actual cables records the network's topology.
The description showing how data moves between devices, regardless of the arrangement of those cables, records the network's topology.
A small office connects 6 computers in a bus topology: every computer taps into one shared coaxial backbone cable, which has a terminator at each end. A chair leg crushes the backbone halfway along and breaks it. What is the most likely effect on the network?