The physical and logical arrangement of network components.
Network topology refers to the arrangement of the elements (links, nodes, etc.) of a computer network. It can be viewed in two ways: physical topology and logical topology. Physical topology describes the actual physical layout of the devices and cables. There are several common physical topologies. A bus topology uses a single backbone cable to which all devices are connected. It's simple and cheap but not robust, as a break in the cable can take down the whole network. A ring topology connects devices in a circular fashion, with data traveling in one direction. A star topology, the most common in modern LANs, connects all devices to a central hub or switch. It's easy to manage and fault-tolerant, as a failure in one cable only affects one device. A mesh topology connects every device to every other device (full mesh) or connects some devices to multiple others (partial mesh). It's highly redundant and reliable but can be expensive and complex to implement. Logical topology describes how data actually flows through the network, regardless of its physical layout. For example, a network might have a physical star topology with a central switch, but logically it operates like a bus because the switch forwards broadcast traffic to all ports, making it a logical bus (though modern switches are much smarter than this). Understanding topologies is fundamental to designing a network that meets specific requirements for cost, performance, and reliability.