什么是直连铜缆 (DAC)
What Is a Direct Attach Copper (DAC) Cable? (2021)

原始链接: https://www.servethehome.com/what-is-a-direct-attach-copper-dac-cable/

直接连接铜缆(DAC)由一根固定长度的双轴铜缆和两端集成的连接器组成,可实现网络设备之间的直接通信。由于 DAC 不需要光纤收发器中那种电信号到光信号的转换,因此它们具有更高的成本效益、更低的功耗和极高的可靠性。 关于 DAC 使用的要点: * **距离与性能:** DAC 最适合短距离机柜内连接。随着速度的提高(如 100GbE 及以上),线缆需要更多的屏蔽层,导致其变得更粗、更硬,且长度受限(通常在 5 米或更短)。 * **分支线缆:** DAC 通常支持“分支”配置,即将高带宽端口(如 QSFP+)拆分为多个低速连接(如 4x SFP+)。 * **兼容性:** 虽然比光模块更灵活,但用户仍需确认供应商的兼容性,因为某些网络硬件仅支持特定的、经过验证的线缆。 总之,尽管光模块对于长距离数据传输必不可少,但对于高密度机柜内联网而言,DAC 依然是一种不可或缺且经济实惠的解决方案。

本讨论帖探讨了网络连接中**直接连接铜缆 (DAC)** 与光纤之间的权衡,特别是在机房和家庭实验室环境中的应用。 **主要结论:** * **什么是 DAC?** 与标准以太网 (BASE-T) 不同,DAC 是一种预封装的双轴电缆组件,专为短距离、高速 SFP+ 连接而设计,无法在现场进行端接。 * **DAC 的优势:** 它们具有极高的性价比、低延迟和低功耗,因为它们省去了光模块或 BASE-T 所需的复杂信号处理和转换逻辑。 * **选择光纤的理由:** 光纤更适合长距离传输,且能减少“线缆臃肿”问题(粗铜缆束带来的物理重量和体积会阻碍气流流通)。此外,光纤还能提供铜缆所缺乏的电气隔离。 * **常见陷阱:** * **供应商兼容性:** DAC 通常包含用于向交换机标识线缆的 EEPROM;供应商信息不匹配可能导致链路故障。 * **发热:** 与 DAC 或光纤相比,10GBASE-T (RJ45) 模块会产生显著热量。 * **可管理性:** 粗大的 DAC 线缆在高密度机柜中难以管理,导致一些工程师即便需要额外支付光模块成本,也更倾向于选择光纤以方便理线。
相关文章

原文

At STH, we use the term “DAC” to reference Direct Attach Copper cabling dozens of times each year. Almost every time we use the term, someone asks the question, “What is a DAC?” Since at STH we believe it is important to help impart knowledge, even if many readers already know the answer, we felt like it was time for a quick guide.

What is a DAC (or Direct Attach Copper) Cable?

In simple terms, a DAC has modules at either end of a ~26-28 AWG twinax copper cable that allows direct communication between devices over copper wire. Both ends have specific connectors and the cable length is fixed. Electromagnetic shielding around the copper cable increases as the speeds increase to keep communication reliable.

In this example, we have two QSFP+ connectors on either end. There is then a fixed cable that goes between the two ends allowing devices to communicate. This cable, unlike optical transceivers, is usually a fixed length and limited in maximum length by signal integrity.

A DAC or Twinax Cable
40Gb_QSFP+_copper_twinax_cable

As part of our fiber optic guide series, we are mostly focusing on optics. Optical communication is essential for the long-range transmission of data. As networks get faster, and we push into the 400GbE era and beyond, the distance that copper communication can reliably and practically travel at those speeds is limited. For the next few years, we are still likely to see copper DACs between devices in a single rack, but going forward, most rack-to-rack and beyond connectivity will happen via optical communication.

What is a Breakout DAC Cable?

We are going to note that you may see one other important type of DAC cable, the breakout DAC. With modules such as QSFP+ for 40GbE networking and QSFP28 for 100GbE networking the “Q” stands for Quad. As a result, one way to conceptualize the QSFP+ connector above is that it is carrying four (quad) SFP+ channels. SFP+ is 10Gbps, QSFP+ is 40Gbps, four (quad) 10Gbps links give us 40Gbps of bandwidth. The same conceptual model holds for SFP28 and QSFP28. As a result, a somewhat common practice is to use the higher-density QSFP+/ QSFP28 form factors and split them to connect to 2-4 lower-speed devices. Here is an example with four SFP+ ends on one side and a single QSFP+ side on the other:

QSFP+ To SFP+ Breakout DAC
QSFP+ To SFP+ Breakout DAC

We are going to quickly note that while conceptually this works, not all switches, routers, NICs, servers, storage, and other components support breakout. These days, most do, but there are still quite a few exceptions where they do not. There are even NICs like the HPE 620QSFP28 4x 25GbE Single QSFP28 Port Ethernet Adapter, that are intended to have a QSFP28/ QSFP+ port used with DACs or as four separate connections.

HPE 620QSFP28 Quad 25GbE Qlogic Adapter In 1x QSFP28 Port
HPE 620QSFP28 Quad 25GbE Qlogic Adapter In 1x QSFP28 Port

Although you can see one physical port above, you can see the NIC as four separate 25GbE devices not just a 100GbE device:

HPE 620QSFP28 Quad 25GbE Qlogic NIC Lshw
HPE 620QSFP28 Quad 25GbE Qlogic NIC Lshw

The important thing here is that DACs and this breakout DAC cable model is so prevalent that we even see specific cards using breakout DACs just to increase port density.

We will quickly note that you can get QSFP+ to 1x SFP+ or QSFP28 to 1x SFP28 DACs that perform a similar function to what we covered in our piece Using a 40GbE (QSFP+) NIC with a 10GbE Switch (SFP+).

How Far Do DACs Reach?

This is a bit dependent on the type of DAC, and the vendor. Generally speaking, we are moving into an era as we move above 100GbE speeds where DACs will be limited to 5m runs and shorter runs.

One other small note, and one that is important, is that as DACs move to higher speed, they also require more shielding. More shielding leads to a bigger cable. This in turn means that higher speed DACs are less flexible than lower speed DACs. If you look at a typical QSFP+ 40GbE DAC versus a QSFP28 100GbE DAC, you will see the one used in 100GbE networking is thicker and stiffer. That means that routing DAC cables in a rack is more challenging than it had been previously. One nice thing with DACs, unlike fiber cables, is that they are a lot less sensitive to the bend radius of the cable.

There are also two main types of DACs, active and passive. Passive use less power. Active use more power but gain a bit more distance. Still, even active DAC cables do not reach the same distances as optical connections. We will quickly note here that there are Active Optical Cables that are somewhat like DACs as being pre-assembled fixed-length solutions. They can, however, reach further distances since they use optical communication.

Why Not Just Use Optics Instead of DACs?

Perhaps the key reason is simply cost. There are really two kinds of costs that can be involved: hardware and operating costs. To get into why let us look at a conceptual model of both.

QSFP28 100GbE DAC V Fiber Optic Server To Switch Conceptual Model
QSFP28 100GbE DAC V Fiber Optic Server To Switch Conceptual Model

Here we are representing copper/ electrical communication with orange and the fiber is blue. Using DACs, the transition between the modules (here QSFP28) and the chips in the larger systems is copper to copper.

For optics, we must convert electrical signaling on one side to optical to transmit information over optics. We then need to have a receiving side to pick up the light patterns and convert that to electrical signaling. That conversion needs to happen in both directions.

As a result, optics tend to cost more due to their complexity, and they also tend to use more power. Additional hardware costs and power costs once deployed are the key drivers to continue using DACs within racks. Also, DACs due to their simplicity are considered very reliable.

What Kind of DAC Should You Look For?

There are two big items we would suggest looking for. The first is the speed. For Ethernet, here is the common set:

10GbE/ 40GbE Generation

  • 10GbE to 10GbE: SFP+ to SFP+
  • 40GbE to 40GbE: QSFP+ to QSFP+
  • 40GbE to 4x 10GbE: QSFP+ to 4x SFP+
  • 40GbE to 1x 10GbE: QSFP+ to SFP+

25GbE/ 50GbE/ 100GbE Generation

  • 25GbE to 25GbE: SFP28 to SFP28
  • 50GbE to 50GbE: QSFP28 to QSFP28
  • 100GbE to 100GbE: QSFP28 to QSFP28
  • 100GbE to 4x 25GbE: QSFP28 to 4x SFP28
  • 100GbE to 2x 50GbE: QSFP28 to 2x QSFP28
  • 100GbE to 1x 25GbE: QSFP28 to 1x SFP28
  • 100GbE to 1x 50GbE: QSFP28 to 2x QSFP28

That should be most of the conversions you need to know. This model will work for generations such as QSFP56 and QSFP-DD and beyond as well.

The second item is vendor compatibility. Many switch, router, server, storage, and NIC vendors lock optics in switches to only be compatible with the vendor’s more expensive validated optics. One could connect a Cisco router to a HPE switch, for example, by placing a Cisco QSFP28 optic in the Cisco switch and a HPE QSFP28 optic in the HPE switch. Then one can run a cable between them. With DACs, it is trickier since both ends are fixed to a cable. As a result, devices can still be picky about which DACs are used, but it is not uncommon that we see devices less constraining when using DACs versus optics. Still, this is something to keep in mind when looking for cables.

Final Words

Even though we are doing a massive fiber-optic series, DACs are still extremely useful. They help cut costs significantly to the point that they are essential data center gear. Hopefully, this guide helped you understand what a direct attach copper cable is, why they are used, and what to look for.

联系我们 contact @ memedata.com