A computer network connects two or more computers together to allow for sharing of resources like files, printers, and disk drives. The main components of a network include sender and receiver hosts, communication interfaces like switches and routers, communication channels like cables, and communication software. Networks can be classified based on their size and scope as local area networks (LANs), metropolitan area networks (MANs), or wide area networks (WANs). Common network topologies include bus, star, ring and mesh configurations.