# Straight-through cable

> Source: Courseiva IT Certification Glossary — https://courseiva.com/glossary/straight-through-cable

## Quick definition

A straight-through cable is a networking cable that connects a computer to a switch or a router to a modem. The wires inside are arranged the same way on both ends, so signals travel straight through. It's the most common type of Ethernet cable you'll see in offices and homes.

## Simple meaning

Imagine you have a set of drinking straws that you use to connect two cups. If both cups are the same shape, you can just push the same straw end into each cup and the drink flows straight. That's like a straight-through cable, the wiring pattern on the plug at one end is exactly the same as on the other end. 

 In networking, devices are either "like" devices (computer to computer, switch to switch) or "different" devices (computer to switch, router to modem). Straight-through cables are designed to connect different types of devices. The wire colors and positions are the same on both RJ45 connectors. When you plug a computer into a wall jack that leads to a switch, you're almost always using a straight-through cable. 

 This cable follows the T568A or T568B wiring standard. Both standards work the same way, but T568B is more common in the US. Each of the eight wires inside the cable has a specific job: some send data, some receive data. The straight-through arrangement ensures that the send wires at one end line up with the receive wires at the other end, which is exactly what different devices need to talk to each other.

## Technical definition

A straight-through cable, also known as a patch cable, is an Ethernet cable that adheres to either the T568A or T568B wiring standard on both ends. The term "straight-through" refers to the fact that the pin assignments on one RJ45 connector are wired identically to the pin assignments on the other RJ45 connector. For example, if pin 1 on one end is the orange-white wire, pin 1 on the other end is also the orange-white wire. 

 The purpose of this wiring is to connect dissimilar network devices. In Ethernet 10BASE-T and 100BASE-TX networks, only four of the eight wires are used: pins 1 and 2 for transmitting data, and pins 3 and 6 for receiving data. When a straight-through cable connects a computer (which transmits on pins 1–2 and receives on pins 3–6) to a switch (which transmits on pins 3–6 and receives on pins 1–2), the transmit pins of one device connect to the receive pins of the other device. This crossover happens inside the switch, not in the cable. 

 For Gigabit Ethernet (1000BASE-T), all eight wires are used for bidirectional data flow, but the straight-through wiring still works because modern switches use Auto-MDIX (automatic medium-dependent interface crossover). Auto-MDIX detects the cable type and electronically configures the port to either straight-through or crossover mode as needed. However, in older networks without Auto-MDIX, using a straight-through cable between two like devices (e.g., two computers) would fail because the transmit pins would connect to transmit pins. 

 Straight-through cables are typically used to connect a computer to a switch, a router to a switch, or a router to a modem. They are the standard cable supplied with most consumer networking equipment. The cable itself is made of copper twisted pairs, usually Category 5e or higher, to support speeds up to 1 Gbps or more. The maximum length for a straight-through cable segment is 100 meters (328 feet) per the Ethernet standard.

## Real-life example

Think of a straight-through cable like a one-way hallway in a school. The hallway has one entrance and one exit. Students (data) walk from the entrance to the exit. Now imagine two different buildings: the computer lab (a computer) and the main office (a switch). The hallway connects the lab door to the office door. Since the lab's entrance connects to the office's exit, students can walk from the lab into the office. If you tried to connect the lab door to another lab door, you'd have two entrances facing each other, and no one would get through. 

 In the real world, when you set up a home network, you buy a cable from the store to connect your laptop to the router. That cable is almost always a straight-through cable. The store doesn't ask if you need a crossover cable because most modern devices automatically handle the wiring. But in a data center, network engineers still use straight-through cables to connect servers to switches. They know that the switch's port is designed to receive from the server's transmit. 

 Another everyday analogy is a phone charger. The plug at the wall socket and the plug at the phone are different shapes. The wall socket provides power (like a switch provides the network connection), and the phone receives it (like a computer receives data). The cable is designed to connect those two different interfaces.

## Why it matters

Straight-through cables are the backbone of nearly all wired Ethernet networks. Without them, you couldn't connect your computer to a switch, or your router to your modem. Understanding when to use a straight-through cable versus a crossover cable is a fundamental skill for any IT professional. Although modern Auto-MDIX technology has reduced the need for this distinction, exam questions and legacy hardware still test this knowledge. 

 In practical IT work, cabling accounts for a large portion of physical layer troubleshooting. If a user can't connect to the network, the first thing a help desk technician checks is the cable. Knowing that a straight-through cable is the correct cable for connecting a PC to a wall jack can save hours of fruitless troubleshooting. 

cable standards affect network performance. Using a low-quality or incorrect cable type can introduce errors, reduce speeds, or cause intermittent connectivity. IT professionals must be able to identify straight-through cables by examining the wire order at the connector, which is especially important when building custom cables. This skill is tested in certification exams like CompTIA Network+ and Cisco CCNA, where cabling questions are common.

## Why it matters in exams

Straight-through cables are a core topic in CompTIA Network+ (N10-008 and earlier) and Cisco CCNA (200-301). In CompTIA Network+, you may be asked to identify the correct cable type for a given scenario. For example, a question might ask: "Which cable type would you use to connect a workstation to a switch?" The correct answer is straight-through. The exam also tests your ability to distinguish between straight-through and crossover cables based on the device types involved. 

 In the CCNA exam, cabling knowledge is part of the network fundamentals section. Cisco expects you to understand that straight-through cables are used for unlike devices (PC to switch, switch to router, router to modem). You may also encounter questions that test your understanding of Auto-MDIX. For example: "If you connect two switches using a straight-through cable and both switches have Auto-MDIX enabled, will the link come up?" The answer is yes, because Auto-MDIX automatically corrects the wiring. 

 Both exams may include performance-based questions (PBQs) where you must physically connect devices in a simulator. You might drag and drop the correct cable type between icons. Multiple-choice questions often describe a troubleshooting scenario where a technician mistakenly uses a crossover cable where a straight-through is needed, causing no link light. You must identify the mistake. 

 Even in higher-level exams like Cisco CCNP, understanding cabling is assumed, but straight-through cables appear in the context of campus network design and physical layer standards. Overall, straight-through cable is a small but high-probability topic, often worth 1–3 questions per exam.

## How it appears in exam questions

Straight-through cable questions come in three main patterns: scenario-based, configuration-based, and troubleshooting-based. In scenario-based questions, you'll be given a list of devices and asked which cable type to use. For instance: "A network technician needs to connect a laptop to a wall jack that leads to a switch. Which cable should they use?" The answer is straight-through. 

 Configuration-based questions may ask about Auto-MDIX. For example: "You have two Cisco switches connected by a straight-through cable. The switch ports are configured with the default settings. Will the link be established?" The answer depends on whether Auto-MDIX is enabled by default (it is on newer models, but not on older ones). These questions test both cabling knowledge and feature awareness. 

 Troubleshooting questions are common. A typical scenario: "A user reports no network connectivity. The link LED on the switch is off. The cable looks fine. What is the most likely issue?" Options might include a faulty cable, wrong cable type (crossover instead of straight-through), or a speed mismatch. You must know that a wrong cable type between a PC and a switch will prevent the link from coming up if Auto-MDIX is not supported. 

 Another pattern involves identifying the cable type by looking at the wire order. The exam may show a diagram of an RJ45 connector with colors and ask: "Is this a straight-through or crossover cable?" You must be able to identify the wiring standard by checking if both ends have the same color sequence.

## Example scenario

Your company is expanding and adding five new workstations to the sales department. Each workstation needs to be connected to the network switch located in the server room. The patch panel in the sales office connects to the switch via a straight-through cable in the wiring closet. You run a straight-through cable from each workstation's network interface card (NIC) to the wall jack. 

 After connecting all five computers, you find that four of them show a link light on the switch port, but the fifth does not. You check the cable and notice that the fifth cable has one end wired with T568A and the other end with T568B. This is not a straight-through cable; it is a crossover cable. Since the wall jack and the switch are wired to expect a straight-through connection, the crossover cable causes the transmit and receive pairs to be mismatched. 

 You replace the cable with a proper straight-through cable, and the link light comes on. This scenario demonstrates why knowing the difference between straight-through and crossover cables is critical in real-world networking. Even though modern devices often have Auto-MDIX, many older or budget devices do not, so the wrong cable type can cause connectivity issues.

## Common mistakes

- **Mistake:** Using a crossover cable to connect a PC to a switch
  - Why it is wrong: Crossover cables connect similar devices (PC to PC, switch to switch). A PC and a switch are unlike devices, so a straight-through cable is needed.
  - Fix: Use a straight-through cable when connecting a PC to a switch or a router to a modem.
- **Mistake:** Thinking straight-through cables are always faster than crossover cables
  - Why it is wrong: Speed is determined by the cable category (Cat5e, Cat6, etc.) and the devices, not by whether the cable is straight-through or crossover.
  - Fix: Choose the correct cable type for the devices, and use the appropriate category for the speed you need.
- **Mistake:** Assuming all Ethernet cables are straight-through
  - Why it is wrong: Crossover cables and rollover cables exist for specific purposes. Using the wrong type can prevent connectivity.
  - Fix: Always verify the cable type by checking the wire order on both ends or by using a cable tester.
- **Mistake:** Confusing straight-through with rollover cables
  - Why it is wrong: Rollover cables have a completely reversed pinout and are used for console connections to routers and switches, not for Ethernet data.
  - Fix: Remember: straight-through = same order both ends, crossover = pairs swapped, rollover = completely reversed.

## Exam trap

{"trap":"The exam may present a scenario where a crossover cable is used between a PC and a switch, and the link is up. The trap is that the student thinks the answer must be wrong, but if both devices support Auto-MDIX, the crossover cable will still work.","why_learners_choose_it":"Learners memorize that PC to switch needs straight-through, and they assume any other cable will fail. They do not account for Auto-MDIX.","how_to_avoid_it":"Always consider whether Auto-MDIX is enabled. In modern networks, Auto-MDIX allows either cable type to work. Read the scenario carefully for clues about device age or configuration."}

## Commonly confused with

- **Straight-through cable vs Crossover cable:** A crossover cable swaps the transmit and receive pairs (pins 1–2 with pins 3–6) so that two like devices (e.g., two computers) can communicate directly. A straight-through cable keeps all pins aligned for unlike devices. (Example: Connect two laptops directly: use a crossover cable. Connect a laptop to a switch: use a straight-through cable.)
- **Straight-through cable vs Rollover cable:** A rollover cable (also called a console cable) has pin 1 connected to pin 8, pin 2 to pin 7, etc. It is used to connect a computer to a router or switch's console port for management, not for Ethernet data transfer. (Example: To configure a Cisco router for the first time, use a rollover cable from your laptop's serial port to the router's console port.)
- **Straight-through cable vs Patch cable:** Patch cable is a generic term for any short Ethernet cable used to connect devices to a patch panel or switch. Most patch cables are straight-through, but not all. A patch cable could be crossover or rollover depending on the application. (Example: You buy a 3-foot Ethernet cable from the store to connect your computer to the wall jack. That is a patch cable, and it is almost certainly straight-through.)

## Step-by-step breakdown

1. **Identify the devices you are connecting** — Determine whether the devices are "like" or "unlike." Like devices: computer-to-computer, switch-to-switch. Unlike devices: computer-to-switch, router-to-switch.
2. **Choose the correct cable type** — For unlike devices, choose a straight-through cable. For like devices, choose a crossover cable. If Auto-MDIX is present on both devices, either type works.
3. **Check the wiring standard** — A straight-through cable uses the same wiring standard (T568A or T568B) on both ends. Ensure the color sequence is identical on both RJ45 connectors.
4. **Connect the cable** — Plug one end into the first device's Ethernet port and the other end into the second device's port. Listen for the click that indicates a secure connection.
5. **Verify the link** — Check the link LED on both devices. A solid or blinking green/amber light indicates a successful connection. If the light is off, the cable may be faulty or the wrong type.
6. **Test data transfer** — Use a ping command to verify that data can travel across the cable. If pings fail, check for duplex mismatches or cable damage.

## Practical mini-lesson

In a real-world IT environment, knowing when to use a straight-through cable comes down to understanding the devices involved. Let's say you are setting up a small office network. You have a switch in the server room and ten workstations in the open area. Each workstation connects to a wall jack that runs back to a patch panel, and then patch cables connect the patch panel to the switch. All these patch cables should be straight-through. 

 Why? Because the wall jack and the switch port are different types of interfaces. The wall jack is a passive pass-through, but the switch port is an active network interface that expects to receive data on pins 3 and 6. The workstation's NIC transmits on pins 1 and 2. The straight-through cable ensures that the transmit pins of the workstation connect to the receive pins of the switch. 

 Now, what if you need to connect two switches together to expand the network? If both switches do not support Auto-MDIX, you would need a crossover cable. However, most modern enterprise switches have Auto-MDIX enabled by default. In that case, even a straight-through cable will work because the switch port automatically swaps the pairs internally. As a professional, you should know how to disable or enable Auto-MDIX on a switch port (the command is usually 'auto-mdix enable' or 'mdix auto' on Cisco devices). 

 What can go wrong? If you use a straight-through cable between two switches that do not have Auto-MDIX, the transmit pairs from one switch will connect to the transmit pairs of the other switch. No data will be received, and the link LED will remain off. The fix is to either enable Auto-MDIX or use a crossover cable. Another common issue is using a damaged straight-through cable that has broken wires in the twisted pairs. This can cause intermittent connectivity or reduced speed. A cable tester can identify such faults. 

the straight-through cable is the default choice for most connections. Always verify the cable type by visual inspection or with a tester. Understanding these practical details will make you a more effective network troubleshooter.

## Memory tip

Straight-through connects unlike devices: PC to Switch. Think "Straight to the Switch."

## FAQ

**What is the difference between straight-through and crossover cables?**

Straight-through cables have the same wire order on both ends and connect unlike devices (PC to switch). Crossover cables swap the transmit and receive pairs to connect like devices (PC to PC).

**Can I use a straight-through cable to connect two computers directly?**

Only if both computers support Auto-MDIX. Otherwise, you need a crossover cable.

**How can I tell if a cable is straight-through or crossover?**

Hold both connectors side by side and compare the wire colors. If the sequence is identical, it's straight-through. If pair 1-2 is swapped with pair 3-6, it's crossover.

**What does Auto-MDIX do?**

Auto-MDIX automatically detects the cable type (straight-through or crossover) and electronically adjusts the port's pinout so communication works without changing the cable.

**Is a straight-through cable the same as a patch cable?**

Not exactly. Patch cable is a generic term for a short Ethernet cable. Most patch cables are straight-through, but they could be crossover or rollover depending on the need.

**Why are straight-through cables called that?**

Because the wires go straight from one pin position to the same pin position on the other end, there is no crossing or swapping of pairs.

## Summary

The straight-through cable is the most common Ethernet cable used in networking. It connects dissimilar devices like computers to switches, routers to modems, and switches to routers. Its wiring follows the same standard on both ends, ensuring that transmit signals align with receive signals on the other device. 

 While modern Auto-MDIX technology reduces the need to distinguish between straight-through and crossover cables, certification exams still test this foundational knowledge. You must be able to identify when to use each cable type and understand that using the wrong cable can cause a link to fail. 

 For exam success, remember the simple rule: straight-through for unlike devices, crossover for like devices. Practice identifying cable types by examining wire orders. Understand that Auto-MDIX exists but is not always present. With these concepts clear, you will answer cabling questions confidently and avoid common traps.

---

Practice questions and the full interactive page: https://courseiva.com/glossary/straight-through-cable
