304 points · by okket · 8y ago · 93 comments
Netconf (rfc6241) operations un most routers (not just Cisco) are handled from an Erlang application.
Some years ago the best netconf implementation was from tail-f systems. Cisco and Juniper licensed the software from them...
... And Cisco bought the company for the Netconf and orchestation/automation part.
Routers fall over pretty regularly if you have enough of them so you already have things like MPLS FRR to deal with that.
Sounds like this is for netconf, which is a provisioning system. It failing is more akin to chef crashing on a server from a cosmic ray. Kinda sucks, but you restart it and probably no harm done.
The programmed routes go into hardware on the bigger systems, and either way there is no Linux kernel routing involved at all.
Mainframes, because they have saner systems programming languages than C.
Apple devices, because part of the network stack requires their Embedded C++ dialect.
Are you claiming that PL/X is saner than C? What is your reasoning?
The PL/8 papers related to IBM's RISC research are quite interesting, before they decided to go with UNIX on RISC instead, as the best way to recover their money, thus switching to C.
Also not all mainframes were written in PL/X variants, there is also NEWP, which already had the notion of unsafe blocks in the late 60's.
The parent's point was simply that it's not that surprising that it's effective in this space, when it was targeting that space to begin with.
So I guess you'd choose Go if you want to build a local service — especially if it has some amount of concurrency (e.g. network daemons) — or CLI tools (fast startup). You'd use erlang if you want to build a system which really should not die, especially if it so should not die that you're willing to spread it over multiple physical machines.
Distribution is likewise built into the runtime and language, most of the distribution-related BIFs are not only part of the "erlang" module/namespace but also part of its "prelude" (auto-imported in all modules by default).
So no, it is absolutely nothing like kubernetes in relation to go.
[0] http://erlang.org/doc/man/supervisor.html
[1] http://erlang.org/doc/reference_manual/processes.html#id8861...
Yes, mostly, but the thing is that OTP was possible at all because of how the portions provided by the language and the runtime play together. You cannot replicate the OTP as it is in Go because Go's runtime is lacking and its communication model doesn't match.
AKA Go does shared-memory multitasking, while Erlang does shared-nothing multitasking.
BEAM and Erlang give you tooling that you can’t get from any other language, regardless of how it’s deployed. Using Kubernetes doesn’t make up for any of that...it just gives you a way to deploy containers.
Brunt of the work is done in ASICs.
It's more readily apparent if you've taken an empty Cisco ASR9010 and started from a blank slate configuration with a new pair of RSP440 route/service processors (the control plane) and then incrementally added linecards/interfaces.
Mid to large sized routers are designed in such a way that everything is either N+1 or 1+1 redundant and hot swap, it's like having a four engined airplane you can replace an engine on in mid flight.
People should know that Cisco takes this discrete fact and then extends and over-hypes it. The differentials between ASICs and CPU are not to the extent that Cisco make it out to be, where it seems like CPU is not even an option at all on most of the network. Also, Cisco has an overbroad notion of how necessary their particular routers and switches are in your network, when in many places in the network, off-the-shelf hardware, CPUs and software would do fine (for much cheaper).
For the past few years, people have been developing software solutions like quagga, BIRD, XORP and OpenBGPD/OpenOSPFD. They have seen some heavy production use ( http://www.openbgpd.org/users.html ). OpenBGPD even teased out problems in Cisco routers - some standards-compliant packets OpenBGPD sent out would crash Cisco routers.
People appreciate the openness, the flexibility and the extensibility and the price of these solutions.
ASICs are faster than CPU in the core of the core, but don't let that fact get you ensnared in Cisco marketing hype and FUD. People are paying a lot of money to Cisco on the low and medium end for equipment that could be replaced much cheaper with off-the-shelf hardware and free and open software.
The Cisco guy is going to sure 'Sure! We can cover everything!'
The OSS off the shelf guy is going to ask 'Well that depends on the growth.'
At that point, most of the businesses just throw some money at Cisco so they don't have to worry about anything.
The control plane which is some general purpose CPU running Linux/VxWorks(Cisco)/FreeBSD(Juniper)is what builds the FIB and actually populates those ASICs in the forwarding plane. The ASICs are basically just lookup tables that rely on data pushed to them by the control plane. In other words they rely on computation/preprocessing done elsewhere.
network-controller is a recent phenomenon and it would be quite interesting to see if this is what was meant. fwiw, a bunch of ericsson h/w for cellular access ran erlang in the control-plane f.e. mme/sgsn etc.
D: I work at Cisco
what conf-d/tail-f brings to the table is the distributed nature of 2-phase commit to device configuration, as well representation of operational and runtime states of these devices. which has some appeal to it.
source: have worked for csco quite a number of times :)
edit: slight clarification on conf-d capabilities.
Erlang / Elixir give you a ton of safety guarantees inside the VM. Something many other languages were never bothered to offer.
Huh? That's an incredibly stupid comment.
The only thing that powers internet is smart people. specially those that don't spend their time on pointless discussions and instead they can focus on analyzing the problem and finding the right tools and solution for it.
Please don't call yourself software engineer or developer if you have a programming language bias.
Elixir was a wrapper for people who already knew Ruby.
Which is why most Elixir users come to it from the Ruby/Rails community.
It was created by Jose Valim, a Rubyist and Rails committer, who was looking to improve Ruby/Rails concurrency story [0]:
Back in 2010, I was working on improving Rails performance when working with multi-core systems, as our machines and production systems are shipping with more and more cores. However, the whole experience was quite frustrating as Ruby does not provide the proper tool for solving concurrency problems. That’s when I started to look at other technologies and I eventually fell in love with the Erlang Virtual Machine.
I started using Erlang more and more and, with experience, I noticed that I was missing some constructs available in many other languages, including functional ones. That’s when I decided to create Elixir, as an attempt to bring different constructs and excellent tooling on top of the Erlang VM.
[0] https://www.sitepoint.com/an-interview-with-elixir-creator-j...
People start comparing different languages in different areas and use cases and instead of discussing about the main subject, keep saying oh no my language is more popular or that language is written in C so C is the best...
Routing tables are in the control plane.
ASIC's really only do "layer 2" forwarding. (this is not an entirely proper abstract, but close enough anyway.