A computer network connects devices together through communication channels to allow sharing of resources and information. Communication protocols define the rules for exchanging information over the network. There are two main types of computer networks - local area networks (LANs) which connect devices in a small geographic area like a home or office, and wide area networks (WANs) which connect LANs over larger areas using technologies like cables, wireless, or satellites. Network devices like switches, routers, and bridges help direct traffic between network segments. Security measures are important to control authorized access to the network and resources.