跳到正文
DEV Community· Lanra | KEXINT·· 2 小時前AI 評分44

資料中心佈線:如何選擇 DAC、AOC 與光學模組?

How Should You Choose Between DAC, AOC, and Optical Modules for Data Center Cabling?

AI 導讀

資料中心選擇 DAC、AOC 或光學模組加光纖,應考慮連線場景、實際走線、維護方式及日後升級需要,而非只看傳輸距離。同一機架內的短距離連線可先評估 DAC,機架之間的固定直連可評估 AOC;需要跳線板、可重用光纖設施或較長距離時,可評估光學模組加光纖。即使兩台設備均標示「400G」,也要核對具體型號、規格及設備支援清單。

正文


A row of racks has just been installed. The switches and servers are already in place. But when it is time to connect everything, a question quickly comes up:

Why do some high-speed connections use copper cables, some use optical cables, while others require two optical modules plus a separate fiber cable?

There are also several common pitfalls:

  • The straight-line distance between two racks is only 2 meters, but the actual route through the cable tray becomes more than 10 meters.
  • Both devices are labeled “400G,” but the cable still fails to establish a link.
  • The initial cable cost is lower, but maintenance later requires removing the entire cross-rack connection.

When choosing a cabling solution, you should not only ask, “How far can it transmit?” You should also ask:

  • How will the cable be routed?
  • How will it be maintained?
  • How easily can it be upgraded in the future?

As a general starting point:

  • For short-distance connections inside the same rack, evaluate DAC first.
  • For fixed, direct connections between racks, evaluate AOC.
  • If you need patch panels, reusable fiber infrastructure, or longer-distance connections, evaluate optical modules plus fiber.

Keep in mind that this is only a starting point for selection, not a rigid distance-based rule.

01 | First, Understand the Difference Between the Three Solutions

DAC: Electrical Signals Directly Over Copper
DAC usually refers to a direct attach copper cable. This article mainly focuses on passive DAC.

A passive DAC has a connector at each end that plugs directly into the equipment ports, with a twinax copper cable in between. No electrical-to-optical conversion takes place along the cable path.

This usually gives DAC several advantages:

  • Lower cost
  • Lower power consumption
  • Low additional latency
  • Suitability for short-distance connections

However, “passive” does not mean that the entire port consumes zero power. The transceiver circuitry on the device side still needs to operate.

There are also active copper cables, such as ACC and AEC. They use different signal-processing methods to extend the electrical transmission distance. Their power consumption and supported lengths should not be assumed to be the same as those of passive DAC.

AOC: Optical Components and Fiber Integrated into One Cable
AOC stands for active optical cable.

The equipment-side connectors are still electrical interfaces, but the components at both ends of the cable perform electrical-to-optical and optical-to-electrical conversion. The signal travels through optical fiber in the middle.

AOCs are generally lighter and thinner than copper cables. They are suitable for fixed direct connections where copper cables are difficult to route or would take up too much space.

The key characteristic of an AOC is its integrated design.

Under normal use, the fiber and the components at both ends are not separated. This reduces the amount of on-site optical connector cleaning and connection work required.

However, if a component at one end fails, the entire AOC usually needs to be replaced.

Optical Modules + Fiber: Separating the Transceivers from the Cabling Path
With this solution, a matching optical module is installed at each end, and a detachable fiber cable connects the two modules.

The connection can be made directly, or it can pass through patch panels and backbone fiber.

The modules, patch cables, and backbone fiber can be maintained separately. This makes the solution more suitable for structured cabling systems.

The comparison here is between three complete link solutions—not between the price of “one cable” and the price of “one optical module.”

An optical module by itself cannot form a complete transmission link.

02 | Distance Matters, but Do Not Rely on a Universal Distance Chart

A simple rule such as “use DAC for a few meters, AOC for several dozen meters, and optical modules beyond 100 meters” may be useful for beginners, but it is not enough to guide an actual procurement decision.

The supported length depends on several factors, including:

  • Port speed
  • Per-lane data rate
  • Modulation method
  • Cable gauge
  • Equipment signal budget
  • The device and vendor support list

Experience from the 100G era cannot simply be transferred to 400G or 800G systems.

For example, NVIDIA’s 100G-PAM4 product documentation lists some passive DAC direct-attach products with lengths of 0.5–2 meters, while some breakout cables can reach 3 meters.

These figures describe the capabilities of a specific product family. They are not the maximum length of every DAC on the market. The selection approach used for previous-generation AOCs also cannot simply be applied to this product family. [1]

On the optical side, Cisco’s 100G product list includes several different options:

  • 30-meter AOC
  • 100-meter SR4 based on OM4 multimode fiber
  • 500-meter DR for single-mode fiber
  • 2-kilometer FR
  • 10-kilometer LR [2]

These figures show that optical modules can also be used for short-distance connections, while AOC is not a fixed distance category.

When selecting a solution, you need to check the specific model and its specifications instead of relying only on the general product category.

Distance should also be measured according to the actual cable route. The calculation should include:

  • Cable exits from the equipment
  • Cable managers
  • Vertical routing
  • Cable trays
  • Bends and turns
  • Maintenance slack

Even if the total length is sufficient, you still need to verify the cable’s minimum bend radius and pulling-force limitations.

03 | How Should You Choose in a Real Data Center?

Scenario 1: Servers Connected to a Top-of-Rack Switch
If the actual cable route is short and both devices clearly support the relevant DAC, DAC is usually worth evaluating first.

Its advantages include:

  • A simple link structure
  • Lower cost
  • Lower power consumption

However, the back of a rack may already be crowded with power cables and a large number of network cables.

High-speed copper cables can be relatively thick and stiff. You need to calculate:

  • The available bending space near the ports
  • The weight placed on the connectors
  • The space needed for maintenance and operation

You should not save money on cables at the expense of blocking airflow or making it difficult to insert and remove connectors.

Scenario 2: Adjacent or Same-Row Racks with a Fixed Direct Connection
If the copper cable would be too long or would create excessive cable density, and the equipment supports the required AOC, an AOC may be a practical option.

This is especially true when:

  • No patch-panel connection is needed
  • The route is unlikely to change frequently
  • The connection is a fixed direct link

The integrated design can make installation easier.

However, you should consider how the cable will be removed if it fails.

An AOC routed through a long cable tray and bundled together with many other cables may require much more work to replace than expected during procurement.

Before installation, also confirm whether the connector ends can pass through the relevant pipes or conduits.

Scenario 3: Connections Across Rows or Rooms, or Systems with Existing Patch Panels
In this situation, optical modules combined with fiber should generally be evaluated first.

The connected equipment may be upgraded in the future. If the backbone fiber meets the requirements of the new solution—including fiber type, core count, loss, and connector requirements—it may continue to be used.

Even when the distance is not particularly long, a separated optical solution may be more suitable if you need:

  • Flexible connection management
  • Segmented maintenance
  • Independent replacement of failed modules
  • The ability to repair or replace a module without disturbing the backbone fiber

On the other hand, a longer distance does not mean that you can simply buy a long-distance module and assume everything will work.

You still need to calculate the loss of the entire optical path and verify the acceptable received-power range.

04 | “It Fits the Port” Does Not Mean “It Will Work Properly”

Before placing an order, it is recommended to include the following five items in your verification checklist.

1. Verify Both Devices and Their Software Versions
Check which modules and cables are supported by the switches and network adapters.

The compatibility list should be used to verify:

  • Vendor coding
  • Firmware requirements
  • Power limitations
  • Supported modules and cables

Cross-vendor connections require especially careful verification on both sides.

2. Verify the Form Factor and Electrical Lanes
QSFP-DD and OSFP are examples of form-factor types.

Two ports may have the same total data rate but still use different numbers of electrical lanes or different per-lane speeds.

Therefore, you need to evaluate the following together:

  • Physical form factor
  • Thermal design
  • Electrical lane configuration
  • Actual device-side capabilities

The same total port speed alone does not guarantee compatibility.

3. Verify the Optical Standard
SR, DR, FR, and LR solutions with the same nominal data rate cannot be connected arbitrarily simply because they are all labeled “400G.”

You need to confirm:

  • Optical interface
  • Wavelength
  • Fiber type
  • Fiber core requirements
  • Connector type
  • Polarity
  • Optical power budget

Multimode and single-mode fiber also cannot be mixed casually.

4. Verify Breakout and FEC Configuration
A breakout cable cannot create a breakout capability that the port itself does not support.

The following settings must be coordinated:

  • Switch port mode
  • Remote lane mapping
  • FEC configuration

FEC refers to forward error correction.

Do not disable FEC arbitrarily just to make the link come up. A link that lights up is not necessarily a stable or correctly configured link.

5. Verify Stability After Deployment
Establishing a link is only the first step.

Under real traffic loads, you should also monitor:

  • Bit errors
  • FEC counters
  • Packet loss
  • Link fluctuations
  • Temperature

If the module supports diagnostics, use readings such as transmit and receive optical power to help troubleshoot the connection.

05 | Calculate the Cost of the Complete Link

When comparing quotations, make sure the calculation basis is consistent:

  • A DAC is a complete cable assembly.
  • An AOC is a complete active optical cable.
  • A separated optical link usually requires two optical modules, fiber patch cables, and possibly additional patch-panel components.

The purchase price is only the first cost.

You should also consider:

  • Installation labor
  • Spare-part requirements
  • Power consumption
  • Cooling requirements
  • Failure replacement work
  • Modification costs when upgrading to the next generation of equipment

Here is a purely arithmetic example.
Assume that, using the same calculation basis, the combined power consumption at both ends of each link differs by 5 watts.

If 1,000 links run continuously throughout the year, the annual electricity consumption difference would be:

5 watts × 1,000 links × 8,760 hours = 43,800 kWh per year

This does not include additional cooling costs.

This is only a calculation example. It does not represent the actual power-consumption difference between DAC, AOC, or any specific optical module.

Similarly, an AOC may reduce the initial procurement cost but increase the amount of work required to replace an entire cable in a complex routing environment.

An optical module plus fiber may require a higher initial investment, but it allows failed components to be replaced separately.

Which solution is more economical depends on:

  • Failure diagnosis
  • Spare-parts strategy
  • Planned service life
  • Maintenance procedures
  • Expected future expansion

06 | Reverse the Order of Your Selection Process

Many people start by asking:

Which is better: DAC, AOC, or optical modules?

A more effective process is:

  1. Confirm the capabilities of both devices.
  2. Measure the actual cable route.
  3. Decide whether patching and segmented maintenance are required.
  4. Verify compatibility.
  5. Compare the total lifecycle cost. For short, same-rack direct connections, DAC is often worth evaluating first.

For fixed direct connections between racks, AOC can be a lightweight and integrated option.

For structured cabling, flexible connection management, and long-term expansion, optical modules combined with fiber usually provide more flexibility.

A good cabling design is not only about making the ports light up today.

It should also make future expansion, component replacement, and troubleshooting easier—ideally without requiring technicians to remove another cable or keep the business offline for longer than necessary.

References
[1] NVIDIA, Copper DAC and LACC Cables Overview

[2] Cisco, 100GBASE QSFP-100G Modules Data Sheet

The explanation of AOC construction also refers to NVIDIA’s LinkX Ethernet AOC Cables.

The cover image is an AI-generated conceptual illustration. The other images are schematic illustrations of connection logic and do not represent the appearance of a specific product or a universal distance limit.

來源:DEV Community · dev.to