A computer network connects various computers and peripheral devices via transmission media and connecting devices. It allows for sharing of hardware and software resources between connected computers. A network provides services like file sharing, applications, email and web browsing. The basic elements of a computer network include end devices, connecting devices, transmission medium, messages and protocols that govern information transfer.