A computer network is a collection of interconnected hardware components and computers that allows for sharing of resources and information. It consists of nodes or points connected by communication paths, with two computers connecting together providing a basic example of a network. Computer networks allow for the interconnection of people and devices through sharing.