A computer network is a group of interconnected devices, such as computers, servers, routers, switches, and other network-enabled devices, that communicate and share resources with each other. Computer networks can be categorized into two types, namely, local area network (LAN) and wide area network (WAN).