A computer network connects computers and devices together through communication channels to allow sharing of data and resources. It consists of nodes, communication media, and protocols. The basic components are nodes like computers and servers connected by cables, routers, or wireless access points using protocols like TCP/IP. There are different types of networks including local area networks (LANs) spanning a single building, metropolitan area networks (MANs) spanning a city, and wide area networks (WANs) connecting multiple LANs over a large geographical area, with the largest being the global Internet.