News for hackers. Stuff that matters.
Re:Making a Linux-managed network switch by wesapien on Wednesday July 03, 2024 @08:39PM (#40871389)
What ever happened to Openflow? Wouldn't this be a perfect device for it? Setting up a lab for it was almost impossible thats why I lost interest.
Re:Making a Linux-managed network switch by wmf on Wednesday July 03, 2024 @10:31PM (#40871869)
OpenFlow was kind of the wrong solution to the problem. (The right solution is switchdev or SAI.)
Re:Making a Linux-managed network switch by wesapien on Thursday July 04, 2024 @02:11AM (#40872713)
I'll look them up. Cheers.
Re:Making a Linux-managed network switch by SSLy on Thursday July 04, 2024 @04:44AM (#40873383)
SAI being what?
Re:Making a Linux-managed network switch by wmf on Thursday July 04, 2024 @11:12AM (#40875538)
Switch Abstraction Interface
Re:Making a Linux-managed network switch by p_l on Thursday July 04, 2024 @08:00AM (#40874185)
OpenFlow is a protocol, switchdev is a driver API for exposing access to essentially the same operation model as OpenFlow targets. You don't replace OpenFlow with switchdev, you might use OpenFlow to integrate a switchdev with an SDN
Re:Making a Linux-managed network switch by wmf on Thursday July 04, 2024 @11:16AM (#40875564)
You want to write code that runs on the switch, whether it's a routing protocol or an intent reconciliation loop or whatever. You don't want to send low-level OpenFlow commands over the network because it ends up being slow and chatty.
Re:Making a Linux-managed network switch by p_l on Thursday July 04, 2024 @04:43PM (#40877896)
A considerable portion of SDN craze involved pretty much this. Even systems that didn't use OpenFlow were incredibly chatty, creating complex chains of NextHop routes from centralized or at least semi-centralized servers to the actual switches.

Even in more sane setups, it's not actually uncommon to have control plane talk over network to actual forwarding plane - IIRC Cisco Nexus operates this way, with actual forwarding engines talking with control plane over Ethernet link.

I like the code to run on the switches directly, but SDNs very often eschewed that for dumber forwarding engines controlled OpenFlow way, even if actual protocols used weren't OpenFlow.

Re:Making a Linux-managed network switch by immibis on Thursday July 04, 2024 @05:51AM (#40873669)
AFAIK OpenFlow tried to be far too generic, resulting in it not actually mapping onto any actual hardware without lots of abstraction leakage.
Re:Making a Linux-managed network switch by p_l on Thursday July 04, 2024 @07:50AM (#40874128)
It mapped very well to HW, but only to dumbest part of the hw.

at least from pov of someone dabbling in SDNs around 2014-2017 including deep guts implementation details of one commercial one...

OpenFlow encoded the approach of dumb ethernet switches, combined with Cisco Express Forwarding - which is a common aspect of many switching ASICs, but not entirety of them, even for Cisco.

It never abstracted that historic aspect, if anything the leaking was the internal model of OpenFlow (editing forwarding table) rather than internals HW (which sometimes was a systolic array of CPUs that exposed "tables" as detail of interaction but nothing actually fundamental).

All was fine so long, like CEF, you dumped everything to CPU/northbound API outside "IP with this address should go there, and TCP flow with those parameters go there", in case of early openflow bejbf essentially "packet with dstMAC shall go to port X".

This does not work well with acceleration engines, or in beefier chips the aforementioned systolic arrays or similar arrangements, outside of hardcoding idea of specific accelerators and their interface tables.

Re:Making a Linux-managed network switch by zamadatix on Thursday July 04, 2024 @06:57AM (#40873892)
Ironically it could also be said OpenFlow was not generic enough. More and more networking hardware continues to move towards having a fully programmable pipeline but OpenFlow isn't the most flexible way to define a completely arbitrary pipeline.

https://opennetworking.org/news-and-events/blog/clarifying-t...

Re:Making a Linux-managed network switch by BertoldVdb on Monday July 08, 2024 @10:17AM (#40905665)
While you could make an OpenFlow client that uses this switch chip as the data-plane, it might not be the best as most of the features you would use OpenFlow for would not be able to use the relatively limited hardware fast-path.