A computer network is a collection of computers and devices connected to each other to communicate and exchange information. These devices can be connected using wired or wireless connections, and can be connected over short distances (such as within a building) or over long distances (such as between cities or even across countries). The purpose of a computer network is to enable the sharing of resources, such as printers and files, and to allow communication between computers.
Networks can be classified into different types, such as local area networks (LANs), wide area networks (WANs), metropolitan area networks (MANs), and personal area networks (PANs). The Internet is an example of a global WAN that connects millions of computers around the world. Computer networks can be used for a variety of purposes, including data transmission, teleconferencing, and online gaming. To ensure that the data transmitted over a network is secure and protected from unauthorized access, various security measures are employed, such as encryption, firewalls, and access controls.
More info: what is computer network