124 points · by pavornyoh · 10y ago · 166 comments
It was the first number that shocked me the most.
EDIT: I found it:
http://breakingdefense.com/2016/02/bogdan-predicts-f-35s-for...
The toughest problem the program is having is matching the timing of the aircraft’s fusion software with its sensors’ software. “As we add different radar modes and as we add different and capabilities to the DAS system and to the EOTS system, the timing is misaligned,” and then you have to reboot it. Bogdan said he’s aiming for eight to nine hours between such software failures when a radar or DAS or EOTS needs to be rebooted, which is what legacy aircraft boast. Right now they are at four to five hours between such events. “That’s not a good metric.”
I don't understand a lot of that, but I think the fusion softwre refers to a unified UI for the pilot that merges information from the plane's very many sensors and presents it in a comprehensible way on one screen. Apparently pilots in older planes suffer from data overload and from watching many different screens at once - all while trying to fly a plane in combat. UI is reported to be a highly consequential improvement for the new plane.
I don't know if I'm interpreting that correctly but what I'm getting out of it is clock skew between sensors and the fusion system, which I assume to be referring to sensor fusion.
That makes sense, analogous to a typical distributed systems issue. I would imagine the skew needed for the type of sensing they do is quite small. I doubt they can just toss an atomic clock on the plane :)
They totally could. Some atomic clocks are quite small. The one pictured on the below wiki page doesn't look that much bigger than a 3.5" hard drive.
Are they mil spec? In other words do they operate correctly over a very large temperature range, with large input voltage variance, under high G-forces, in high vibration environments, etc?
I don't know anything about atomic clocks past what I can read on wikipedia but, I can say there is generally a large difference between mil spec ICs and commercial or industrial grade ICs, I would assume this would extend to atomic clock scale devices as well, but just a guess.
I don't think a single atomic clock would do it -- sounds like they'd need a high accuracy clock for each separate subsystem.
But unlike distributed systems, it seems like an aircraft is small enough to have one clock that everyone uses - any idea why they don't do that? Single (or too much of a) point of failure? Disparate vendors can't agree on a standard? Too much extra wiring or other complexity?
Problem is you need a reference time clock. On monolithic arch, is easy : the backbone bus timestamp the paquets it sees. On networked arch you need a time server a la NTP, otherwise you have time skew and loopbacks.
Even with a accurate time clock, you may also need to correct for timing issues due to cable length.
And to clarify, we're talking about PHY level protocol clocks here, not time clocks.
As I understand it, an early variant of the TCAS system for collision avoidance did just that. Every aircraft would have a Cs or Rb standard that was synchronized to a master clock, and they'd broadcast their position and altitude at an assigned time slot.
This would have been very expensive at the time (late 60s-early 70s?) they were proposing it, and it would only have worked if everyone had the necessary equipment. So it didn't fly. But in later decades it was no big deal to put a high-quality atomic time/frequency standard onboard an aircraft, and I wouldn't be surprised if most large airplanes actually do carry a Rb standard for one reason or another.
Edit: the proposed system was called EROS: http://www.allstar.fiu.edu/aero/tcas.htm
Where one of the tricky parts comes in, is in distributing this clock signal to all portions of the avionics system that need it. But that's beside the point.
It doesn't really sound like a timing skew problem (as in, a problem with making all systems recognize the same time simultaneously) but rather with making sure that all relevant information needed to construct a coherent 'picture' from all sensors reaches the core processors in a timely manner.
You can't provide a real time display if, say, your radar data is delayed for a significant period of time due to problems or instabilities with the radar's onboard processor.
These are warplanes - you don't want critical systems reliant on satellites that could be jammed, or downed, during wartime, which I suspect is why they don't do this already.
According to references, 13.5 hours [0] is the record for the F-16 combat mission, and this was actually a SEAD (Suppression of Enemy Air Defenses) mission in a single-seat F-16CJ. Similar missions in the EA-18G extended to 13+ hours with a single pilot, along with a WSO/EWO in the back seat.
Various unofficial reports indicate F-16s do fly 14 hour ferry flights, but that is highly unusual.
(2 + 2 + 2 + 2 + 12) / 5 = 4.
And so on. This whole statement is meaningless without more information about the distribution of lengths of flights.
[0] http://abcnews.go.com/US/jet-skier-broke-jfk-airports-securi...
A 4-hour MTBF window (even for a subsystem) is terrifying considering modern vehicles like this are likely all fly-by-wire.
This article should clarify what the radar reset that they are referring to is. Integer, origin, and timing resets are a function of radar tech, and are not specifically related to something like a system reboot. This would be something like restarting a process due to bad data getting into your process from a sensor and potentially leading to a bad result from a range or trajectory.
I don't know much about Navy / Air Force ops, but it's possible that a sortie may consist of taking off and returning to rearm / refuel without shutting down, which could easily span more than four hours. In addition, lots of fighter planes do refuel in mid-air, so the requirement is still very prevalent for the subsystem to remain functional.
With the F-35 and other jets, its possible to swap crew and perform minor maintenance with the jet electrically powered up and cooled with auxiliary air supply, although the engine is shutdown and then restarted. This actually saves significant time on the pre-takeoff procedures. I would think the Lockheed Martin engineers could also perform diagnostics after a failure, without interrupting power or restarting the sub-system.
Edit: It is mentioned elsewhere in this thread that it is a timing issue, see: http://breakingdefense.com/2016/02/bogdan-predicts-f-35s-for...
Yes, I can understand the problem is complicated, but come on.
I firmly believe that military procurement is a mess but the discussion reminds me of the political discussion where Republicans jump on anything that goes wrong under Democrats and vice versa.
Naturally, this was all done automatically, but the electronics weren't perfect. Sometimes they'd get too far out of adjustment, and the shock wave would blow out. This was apparently a pretty violent event, with a loud bang from the engine, often accompanied by another loud bang as the crew's helmets were slammed against the side of the cockpit.
I believe that the SR-71's control systems were eventually upgraded to where this didn't happen anymore, or was very rare, but it was apparently somewhat common for a while.
Some discussion here, along with bonus discussion of the F-35's inlet:
http://www.airspacemag.com/military-aviation/how-things-work...
None of this affects your overall point, I just thought it was a fun thing to elaborate on a bit.
I think you're on to something with this. It sure seems like the F-35 is not a particularly good airplane, but that's mainly because of cost and capabilities. Stuff like this does sound like piling on, rather than any substantive criticism.
The Concorde was similar. Only a few were ever made, and they were never expected to be the ubiquitous aircraft of their time or even their type (reconnaissance and passenger transport).
The F-35 is intended to replace several aircraft models which currently satisfy more specialized roles. It was intended to be the ubiquitous (in various configurations) fighter aircraft for the US military (and some allies). This problem may not be the worst of its issues, it may not even be a major issue or really (from the pilots' perspective) an issue at all since similar reboots (but less frequent) are the norm for them in other aircraft.
But many other issues are demonstrating, and the reduced production numbers and increased production and development costs reveal, that there are numerous problems with this project in particular. It shows failings within the US political structure (that's essentially forced this project to continue), DoD procurement (that allowed many of these issues to occur initially), defense contractor procedures (LM, IIRC, doubling or tripling the number of engineers on the software side to "speed things up").
Really, it's going to be a classic for future engineers, computer scientists, MBAs and others to study. So I guess that's a good thing.
Haven't read it all, but started reading it. At least this is more "from the horse's mouth" rather than outside commentary like the Ars article.
[0] https://www.reddit.com/r/technology/comments/49iegx/radar_gl...
A reset event would be more worrying if it was a FCS (Flight Control System) computer reset in flight. Air Asia 8501 did something similar and the jet crashed into the sea. An F-22 pilot failed to properly reset his FCS before takeoff, and destroyed a $150m+ aircraft at Nellis AFB.
This is not a bad general-purpose failure strategy: It's been believed for decades that most software faults encountered in production are Heisenbugs[1], and disappear rather than reproduce.
[1] http://research.microsoft.com/en-us/um/people/gray/papers/Ta...
Crashing doesn't have to be crashing.
The F-35's avionics are mostly in C++. The F-22 was the last fighter program to use Ada heavily AFAIK.
You are correct. But the Ariane crash was the result of improper testing when reusing (valid and correct) code in a new situation that resulted in the crash.
Better testing and development procedures would have, potentially, prevented this. And it could have occurred regardless of the languages involved.
What Ada does bring to the table, however, over C, C++ and Fortran (the other 3 primary languages used in the embedded avionics world) is a much better type system and concurrency system that gives greater confidence when developing the system. Much as the ML worlds type system reduces or eliminates certain categories of errors, or moves them to compile time rather than runtime. Where they are still detected in runtime, Ada also offers, particularly during test and development, much greater ability to determine the earliest location of the error if the type system is being exercised properly.
No.
Here's a timeline of the plane so far [0] and a page that includes some details from 2014 including a master schedule and a production status [1]. The 2050 comment was presumably an exaggeration referencing the frequent problems and delays with the development.
[0] http://aviationweek.com/F-35Milestones [1] http://intercepts.defensenews.com/2014/09/the-current-status...
https://stackoverflow.com/questions/9827176/what-is-the-pred...
I'm not sure there is anything I'd build with such insecure languages in 2016, let alone an aircraft or flight system.
It's a painful and expensive process, but it can work, as demonstrated by the handful of teams that have reached the ~1 bug per 1e6 opportunities defect rate _all_ using variations of the above (tho some of them use Ada).
Let's check ourselves a bit and realize developing flight software is a different world from web services and mobile apps.
> Let's check ourselves a bit and realize developing flight software is a different world from web services and mobile apps.
I agree, it is far more important in avionics to be provably correct and to eliminate as many bugs as possible. It is exactly BECAUSE these aren't web services or mobile apps that C/C++ shouldn't even be a candidate.
You've made exactly zero arguments to support C/C++ here. Just acted smug and condescending to all of us lowly other developers. Do you yourself work in avionics?
I doesn't matter much what language you're using if the HUD blurs during high G forces, clocks run out of sync or you forgot to design a feature or designed the prioritization of events wrongly.
Go ahead and actually support why C/C++ produces more verifiable and secure code than Ada?
Though I gotta say this damn jet has been a nightmare. Since they'll never stop working towards newer and newer jets I'm curious if lessons learned here will apply to the next one. After doing government contracting for many years where we don't get the "lessons learned" from the previous contractors or much of anything (I've had to FIGHT to get source code for a product we were supposed to update; ended up having to rewrite the damn thing) I'm curious how it works when they contract out to have a jet built.
Instead "bash it with a hammer and maybe reset it" seems widely accepted. Weird.
Not that I expect it, but this could be a minor issue, if this 'radar system' is as good as stateless (and not, for example, a component that tracks friends and foes over time) and if it reboots in milliseconds.
http://www.airspacemag.com/military-aviation/how-things-work...
"During some Blackbird flights, however, the harmonious working of the spike and the forward and aft bypass doors broke down, and all too quickly the inlet was filled with more air than it could handle. When the air pressure inside the inlet became too great, the normal shock wave was suddenly belched out of the inlet in an unstart, accompanied by an instantaneous loss of air flow to the engine, an enormous increase in drag, and a significant yaw to the side with the affected inlet. Unstarts occurred 'when you least expected them—all relaxed and taking in the magnificent view from 75,000 feet,' wrote Graham in SR-71 Revealed. If the crew’s attempts to restart the inlet’s supersonic flow failed, they would have to slow their aircraft to subsonic speeds."
https://en.wikipedia.org/wiki/Lockheed_SR-71_Blackbird#Air_i...
> Lockheed later installed an electronic control to detect unstart conditions and perform this reset action without pilot intervention. Beginning in 1980, the analog inlet control system was replaced by a digital system, which reduced unstart instances.
Much ado about nothing.
How many bugs have any of you introduced and fixed in the past week?
Edit: "standard for safety-critical embedded flight" was a bad word choice and wasn't what I meant. s/standard/goal
This is going to be a very impressive plane and one China, Iran, and Russia absolutely do not want to see in the air.
Every time Russian technology, in the hands of competent people, is put on display, it does very well (witness the performance of Indian Su-30s in various wargames, and modern Russian planes in Georgia/Syria).
And of course, being in tech, I'd have thought you'd have come across a few Russian programmers/engineers - for the most part they're all pretty damn awesome.
this was for a java position
C# is a mostly Windows centric, managed language which frankly, will likely never enter a discussion about embedded, real-time systems. I'd expect them to know about Rust before they know about C#.
Also, how many 'competent' engineers know about the newest Fortran and Ada standards? Or have even written a single line of either?
just because I don't use node js, ruby, or perl in my work doesnt mean i have an excuse to not know that they even exist. how can you choose the best tool for a job if you only know C++ and Ada?
The majority of defense contractors I know don't spend time in the "programming community" in their off hours, both because it's contractually too cumbersome to do so, and because they're doing other things in their spare time. They may spend time in the "defense community". It's very different culturally from SV.
> just because I don't use node js, ruby, or perl in my work doesnt mean i have an excuse to not know that they even exist. how can you choose the best tool for a job if you only know C++ and Ada?
node.js, ruby, and perl are not acceptable for use on real-time systems nor safety-critical systems.
Having worked in that world for almost 10 years, I can tell you that this choice is not up to you. You are told what tools you will be using, typically driven by government customer "experts" and inter-company politics.
But on our target hardware platforms, and given our target performance constraints, the initial listed languages are pretty much the only options. This is the industry trend.