News for hackers. Stuff that matters.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by cout on Tuesday August 27, 2024 @11:11PM (#41375584)
This kind of computing must be a different kind of world than the one I work in. 80 microseconds of latency seems high to me when infiniband can do single digit latency with unreliable datagrams, which turn out to be mostly reliable due to the credit system.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by iforgotpassword on Wednesday August 28, 2024 @12:17AM (#41375905)
I assume infiniband is much more expensive, but then again you have to offset all the development cost first.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by jabl on Wednesday August 28, 2024 @12:44AM (#41376030)
It's not, really. It's been a while since I've checked pricing so my data might be old, but an IB switch is in the same ballpark as an ethernet switch with the same port speed. Same for HCA's.

There's no analogue in the Infiniband world to dirt cheap 1GbE RJ-45 switches though.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by creshal on Wednesday August 28, 2024 @02:06AM (#41376445)
> an IB switch is in the same ballpark as an ethernet switch with the same port speed

And both price tags will make Elon's "someone's scamming me with a 'you're an enterprise customer' surcharge" sense tingle. The price tags for anything enterprise networking related are seriously inflated, and I would not be surprised if just making your own NICs and switches is cheaper once you hit a certain deployment size.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by _zoltan_ on Wednesday August 28, 2024 @02:44AM (#41376656)
Networking has never been so cheap at the highest end. Look at the road we've been through in the last 8 in years, rapidly going from 40 to 100 to 400 (200 was somewhat of a dud, 400 came too early) to 800 to 1600Gbps. It's amazing.

I'm having trouble feeding things at 400GB/s (not a typo, it's gigabyte/s) per H100 box.

For 10 boxes ideally you want 4TB/s...

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by starspangled on Wednesday August 28, 2024 @03:54AM (#41377095)
No, but this isn't high end (in 2024), or "enterprise". It's their own designed 100Gb dumb NIC.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by _zoltan_ on Wednesday August 28, 2024 @04:25AM (#41377283)
I've replied in a thread, and what I've replied to above was about the enterprise tax and that it's surely cheaper to do your own, not if the original article is about enterprise or not.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by starspangled on Wednesday August 28, 2024 @08:01AM (#41378533)
I read the thread. What you replied to was this,

> > an IB switch is in the same ballpark as an ethernet switch with the same port speed

> And both price tags will make Elon's "someone's scamming me with a 'you're an enterprise customer' surcharge" sense tingle.

In the context of Tesla doing their own protocol and not-high-end NICs.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by rv3909i on Wednesday August 28, 2024 @11:53AM (#41380894)
If you were starting a team from scratch this is surely true. But, if you can leverage existing teams and infrastructure, it’s very possible.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by rv3909i on Wednesday August 28, 2024 @11:22AM (#41380528)
On the other hand, silicon has never been so cheap.

The hardest things would've been the DDR4 and PCIE interface. But as they're using standard interfaces, and last generation. I'm sure they got a good discount on all that IP and it didn't cost them hardly any man hours to integrate. And Tesla might've even already had the licenses and IP setup as they make other ASICs.

I didn't do a budget or anything, but at even 10Ks of units, I could see how this could save money. Or at least not loose money. Assuming a comparable IB network card is ~$1000, which I also didn't price.

And there could be other potential cost offsetting features, like power savings.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by KaiserPro on Wednesday August 28, 2024 @05:51AM (#41377774)
> The price tags for anything enterprise networking related are seriously inflated

I mean yeah, but thats why you have negotiators. List price is what suckers pay.

As soon as you start to buy in job lots, or the total price comes to >$500k then stuff becomes a lot cheaper all of a sudden (within reason)

Having said that Infiniband is an arse to deploy, but not as much as custom networking protocol on custom silicon.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by zaphirplane on Wednesday August 28, 2024 @06:46AM (#41378099)
Ideas you’ll never hear at Google or meta
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by vitus on Wednesday August 28, 2024 @07:09AM (#41378228)
> > I would not be surprised if just making your own NICs and switches is cheaper once you hit a certain deployment size.

> Ideas you’ll never hear at Google or meta

You'd be surprised. Google has a very strong tradition of "not-invented here" which extends to some of our production networking gear as well.

To be fair, at the time, some of this was justified because the available devices on the market couldn't support our use cases back then.

Per section 3.2 of the 2013 B4 paper [0]:

  Even so, the main reason we chose to build our own hardware
  was that no existing platform could support an SDN deployment,
  i.e., one that could export low-level control over switch forwarding
  behavior. Any extra costs from using custom switch hardware are
  more than repaid by the e›fficiency gains available from supporting
  novel services such as centralized TE.
https://cseweb.ucsd.edu/~vahdat/papers/b4-sigcomm13.pdf
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by sangnoir on Wednesday August 28, 2024 @12:31PM (#41381309)
You couldn't have picked a better/worse duo in tech to be wrong on such an assertion.

Adding to sibling comment about Google, Meta[1] built 2 large-scale production training clusters for science: one with Infiniband, the other one with a custom RDMA over RoCE fabric.

> Custom designing much of our own hardware, software, and network fabrics allows us to optimize the end-to-end experience for our AI researchers while ensuring our data centers operate efficiently.

> With this in mind, we built one cluster with a remote direct memory access (RDMA) over converged Ethernet (RoCE) network fabric solution based on the Arista 7800 with Wedge400 and Minipack2 OCP rack switches.

Google, Meta and Netflix are among the most obsessive on optimizing their infrastructure - it's bold to assume they haven't looked at their COTS network gear and thought "hmmm..."

1. https://engineering.fb.com/2024/03/12/data-center-engineerin...

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by zaphirplane on Thursday September 05, 2024 @06:16AM (#41455225)
I mean the exact opposite, those were common what ifs
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by charleshn on Wednesday August 28, 2024 @02:22AM (#41376547)
I don't believe the pricing is in the same ballpark.

There's also other differences, such as port counts. AFAICT Spectrum switches at 400Gbps have up to 128 ports whereas equivalent Infiniband NDR Quantum only have 64 [0].

When building clusters of 32K+ GPUs the network cost, power, transceivers etc start to add up.

[0] https://www.semianalysis.com/p/100000-h100-clusters-power-ne...

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by _zoltan_ on Wednesday August 28, 2024 @02:40AM (#41376637)
With IB (Quantum X800) you have 72x physical OSFP ports that can do 144 ports. Each electrical lane runs at 200G-PAM4, so it's 144x(4x200G-PAM4).

With the SN5600 for Ethernet (Spectrum-X), which is 64 physical ports, you're running each port at 8x100G-PAM4).

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by charleshn on Wednesday August 28, 2024 @01:26PM (#41381839)
Is the Quantum X800 generally available now? Looks like it was announced in March. The SN5600 was released last year on the other end.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by cavisne on Wednesday August 28, 2024 @11:43PM (#41387063)
your data is likely old. IB demand has gone pretty wild since the AI boom.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by latchkey on Wednesday August 28, 2024 @07:07PM (#41385389)
At least when I looked into it last, it was less about price and more about availability. NIC's are easy to get, but the switches were a 50+ week lead time. I'm sure it has come down now though at least for my business, we are just focused on ethernet now. We can do 128 NIC's @ 400G into a single Dell Z9864F using ethernet. Few will need proprietary solutions for this as there are lower hanging fruit.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by namibj on Wednesday August 28, 2024 @12:01AM (#41375823)
Also PCIe is worth mentioning for it's credit-based full reliability (in the absence of hardware failures, which are still signaled).
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by exabrial on Tuesday August 27, 2024 @11:24PM (#41375635)
whats the credit system?
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by xtacy on Tuesday August 27, 2024 @11:48PM (#41375758)
OP is referring to "Credit based flow control", which is a way to ensure a sender does not overwhelm a receiver with more data than it can handle.

Usually, this is line-rate, but if the other side is slow for whatever reason (say the consumer is not draining data), you wouldn't want the sender to continue sending data.

If you also have N hosts sending data to 1 host, you would need some way of distributing the bandwidth among the N hosts. That's another scenario where the credit system comes. Think of it as an admission control for packets so as to guarantee that no packets are lost. Congestion control is a looser form of admission control that tolerates lossy networks, by retransmitting packets should they be lost.

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by jcims on Wednesday August 28, 2024 @12:29AM (#41375970)
Those token ring folks were on to something.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by philjohn on Wednesday August 28, 2024 @03:32AM (#41376933)
They'd respond to your kind words, but there are two faulty cables in their token ring network, and as such, no redundant paths for the beacon frame to get through.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by yumraj on Tuesday August 27, 2024 @11:28PM (#41375647)
> infiniband

Or I guess even RoCE

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by kamikaz1k on Tuesday August 27, 2024 @11:29PM (#41375656)
Not really familiar with this space but I think the entire Dojo/DIY strategy was kicked off because Elon wanted to not get cornered on supply or cost by nvidia. And infiniband is an nvidia technology, so they wouldn’t use that simply from strategic POV.

Are there other technologies they could have used?

Also, the 80us is supposed to be the worst case, where typical is supposed to be <10us. Again not knowing anything about infiniband, what’s the typical perf? I tried to google but the people who are talking about it are in the know in ways I’m not.

Thanks!

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by justahuman74 on Wednesday August 28, 2024 @12:05AM (#41375856)
Is RoCE no good?
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by publicmail on Wednesday August 28, 2024 @09:26AM (#41379239)
The problem is that it kind of relies on a lossless layer 2 (flow control) which has its own set of problems in large scale networks. This is what things like this try to solve: https://cloud.google.com/blog/topics/systems/introducing-fal...
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by charleshn on Wednesday August 28, 2024 @02:13AM (#41376483)
Indeed, it seems that 80usec is just given as an upper bound based on the 1MB buffer at 100Gbps.

It is definitely possible to go much lower than 80usec on Ethernet. But obviously it depends on the scale, utilisation etc.

At the sizes of GPU clusters we're talking about these days - 32K and up - things get tricky.

The main alternative to Infiniband used in the industry is RoCE - Meta has written a lot about it [0].

There's several reasons to avoid Infiniband, such as cost, availability, vendor lock in, lack of experience etc.

Those are some of the reasons why many players are trying hard to make Ethernet work, see Ultra Ethernet [1].

[0] https://engineering.fb.com/2024/08/05/data-center-engineerin...

[1] https://ultraethernet.org/

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by foobiekr on Wednesday August 28, 2024 @02:32AM (#41376596)
It’s not even rare for Ethernet to be 1.5usec or less latency per switch. 80usec would be impossible to sell in any compute cluster.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by throw0101d on Wednesday August 28, 2024 @11:51AM (#41380867)
> It’s not even rare for Ethernet to be 1.5usec or less latency per switch.

IIRC, Arista started off focusing on the financial market with low latency.

There's fairly well regarded in a general sense nowadays (at least /r/networking often has folks recommending them as a vendor).

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by KaiserPro on Wednesday August 28, 2024 @05:52AM (#41377787)
RoCE is close enough, I think is how meta justifies it.
Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by starspangled on Wednesday August 28, 2024 @03:52AM (#41377074)
AFAIKS the protocol can tolerate up to about 80 microseconds of latency.

The graph at the end shows they measured (one way) latency at 1.3 microseconds (compared with 2.0 for IB).

Re:Tesla's TTPoE at Hot Chips 2024: Replacing TCP for Low La... by eecc on Wednesday August 28, 2024 @04:11AM (#41377195)
Well, whether it matters depends on the workload: IB is basically remote DMA so if you need to pick and poke remote data I guess it'll work as another NUMA tier.

But for AI training, where you're simply shuffling around large stacks of matrices, my guess is latency constraints weaken.