A computer network consists of several components that allow data transfer between devices. There are three categories of network components: end devices like computers and printers, intermediary devices like switches and routers, and network media like cables. A network interface card allows a computer to connect to a network by providing a dedicated network connection. Repeaters amplify signals to extend network coverage but cannot connect different networks or reduce traffic. Switches operate at the data link layer and send data frames to specific ports, while routers operate at the network layer and forward packets using routing tables. Gateways connect networks using different protocols by acting as protocol converters.