A computer network connects multiple computers together to allow for sharing of resources and communication between devices. The main components of a computer network include network interface cards (NICs), hubs, switches, cables, routers, and modems. There are several types of computer networks including personal area networks (PANs), local area networks (LANs), wide area networks (WANs), wireless local area networks (WLANs), and metropolitan area networks (MANs). Network analysis involves capturing and inspecting network traffic to determine what is happening on the network and ensure security.