Crossover cables are used when connecting devices with the same functionality. For example, you would use a crossover cable to connect two computers, two routers, two switches, or two hubs. Connecting devices with the same components requires the use of crossover cables to achieve direct communication without the need for a switch or router.