A computer network allows devices to communicate over transmission media. There are two main types of networks: local area networks (LANs) and wide area networks (WANs). The Open Systems Interconnection (OSI) model defines seven layers of network communication, with the lower layers focusing on physical connectivity and the upper layers on applications and user data.