Module 09 · Lesson 2
Ground Software Architecture
A mission control system is a streaming data platform with unusual rules about time. This lesson maps its parts and data flows, and shows how to handle late, replayed and missing telemetry.
Learning objectives
After this lesson you will be able to:
- Identify the main parts of a mission control system and the data that flows between them
- Explain why onboard generation time and ground receipt time must both be kept, and how out-of-order and replayed data are handled
- Describe the design choices that let one ground system serve several missions or a constellation
The system on the ground
The foundation course listed a mission control system among the contents of a control center. This lesson looks inside it. Compared with flight software, the constraints are reversed: computing is plentiful, software can be redeployed, and people are present. The distinctive problem is the data, which arrives in bursts, late and out of order.
The parts of a mission control system
| Part | What it does |
|---|---|
| Telemetry processing | Turns frames into packets and packets into parameters, applies calibrations, checks limits and computes derived values |
| Commanding | Builds commands from the database, validates and releases them, and tracks verification |
| Archiving | Stores raw data, processed parameters, commands, events and logs, and serves them on request |
| Displays | Show current values, plots, alarms and schematic views to each console position |
| Procedure execution and automation | Runs operations procedures step by step, with or without a person confirming each step |
| Planning | Produces the schedule and command loads described in Module 8 |
| Flight dynamics | Determines and predicts the orbit, and produces contact, eclipse and access predictions |
| Data processing | Turns payload data into products for users |
These are often separate systems from separate suppliers. The interfaces between them are where integration effort goes.
The data flowing between them
On the downlink side the flow is a pipeline. Ground stations deliver frames. Telemetry processing extracts packets, decodes parameters using the telemetry and command database, and publishes them. Displays, limit checking, automation and the archive all subscribe.
On the uplink side, commands come from operators, procedures or uploaded plans. They pass through validation and release, go to the station as frames, and are tracked through the verification stages from Module 7.
Around these two flows are slower exchanges of files and messages. Flight dynamics sends predictions to planning and to the stations. Planning sends command loads to commanding. Tracking measurements go from the stations to flight dynamics. The archive receives everything.
Streaming and time-series characteristics
Telemetry is time-series data, and a mission control system resembles an observability platform. The resemblance is useful, with some differences.
- Many series, modest rates. A spacecraft has thousands of parameters, most sampled once a second or slower. The count of series matters more than the rate of any one.
- Bursts. Nothing arrives for an hour, then a pass delivers live data and an hour of recorded data together.
- Raw data is the source of truth. Parameters are derived from packets using a database version. Keeping the raw frames or packets allows history to be reprocessed when a calibration is corrected. This is close to event sourcing: the packets are the events, and parameter values are a projection.
- Retention is long. Trending compares this year with launch. Data is kept for the whole mission.
- Alarms carry consequences. A limit violation may start a contingency procedure, so false alarms and missed alarms are both expensive.
Two clocks
Every telemetry sample has two times. Generation time is when the spacecraft produced it, read from the onboard clock and carried in the packet. Receipt time is when the ground received it.
For live data the two differ by the signal delay and some processing. For playback, data recorded out of contact and sent later, they differ by hours. Three rules follow.
- Order and plot by generation time. That is when the event happened.
- Keep receipt time too. It explains what operators could have known at any moment, which matters in an anomaly investigation.
- Expect data out of order and more than once. Live and playback streams interleave. Stations resend. Recordings are replayed. Ingest must be idempotent, and derived values such as daily minima must be recomputed when older data arrives.
The onboard clock is itself a counter that drifts. Converting it to UTC relies on time correlation, a measured relationship between the spacecraft clock and ground time that is updated regularly. Time conversions in production should use the mission's correlation data and a vetted time library, not hand-written arithmetic.
The example orders samples by generation time, removes replayed duplicates and uses the packet sequence count to find gaps.
// Times in seconds. seq is a 14-bit counter that wraps from 16383 to 0.
interface Sample { seq: number; onboardTime: number; receivedTime: number; value: number }
const SEQ_MODULUS = 16384;
function orderAndFindGaps(samples: Sample[]) {
// Replayed data repeats samples already held, so keep one copy of each.
const unique = new Map<string, Sample>();
for (const s of samples) unique.set(`${s.onboardTime}:${s.seq}`, s);
const ordered = [...unique.values()].sort((a, b) => a.onboardTime - b.onboardTime);
const gaps: { afterSeq: number; missing: number }[] = [];
for (let i = 1; i < ordered.length; i++) {
const step = (ordered[i].seq - ordered[i - 1].seq + SEQ_MODULUS) % SEQ_MODULUS;
if (step > 1) gaps.push({ afterSeq: ordered[i - 1].seq, missing: step - 1 });
}
return { order: ordered.map((s) => s.seq), gaps };
}
// Live samples arrive first. Recorded samples from before the pass arrive later.
const received: Sample[] = [
{ seq: 1, onboardTime: 1030, receivedTime: 5000, value: 27.9 },
{ seq: 2, onboardTime: 1040, receivedTime: 5010, value: 27.9 },
{ seq: 16382, onboardTime: 1000, receivedTime: 5020, value: 28.1 },
{ seq: 16383, onboardTime: 1010, receivedTime: 5021, value: 28.0 },
{ seq: 16383, onboardTime: 1010, receivedTime: 5030, value: 28.0 }, // replayed duplicate
{ seq: 5, onboardTime: 1070, receivedTime: 5040, value: 27.7 },
];
console.log(orderAndFindGaps(received));
The output is:
{
order: [ 16382, 16383, 1, 2, 5 ],
gaps: [ { afterSeq: 16383, missing: 1 }, { afterSeq: 2, missing: 2 } ]
}
Sorting by generation time puts the recorded samples first, the duplicate disappears, and the counter shows that sequence number 0 and numbers 3 and 4 never arrived. Sorting by receipt time would have reported gaps that do not exist.
Multi-mission and constellation scale
An organization that operates more than one mission cannot afford a separate control system for each. The standard answer is a generic core with mission-specific knowledge held as data: the telemetry and command database, display definitions, procedures and limits. Adding a mission then means adding and testing data.
Constellations push further. Each spacecraft still needs its own state, counters and database version, so the system keeps spacecraft strictly separated while sharing code. Displays shift to fleet-wide summaries that highlight exceptions, and automation runs routine passes.
Open-source examples
Open MCT is an open-source, web-based framework for mission operations data visualization, developed at NASA's Ames Research Center. It provides displays, plots and layouts in a browser and is extended through plugins. It is a visualization layer: it is connected to a telemetry source through an adapter and does not itself decode frames.
Other open-source mission control systems exist that cover telemetry processing, commanding and archiving.
A practical example: a playback that changed the picture
During a pass, live telemetry shows battery voltage at 27.9 V, comfortably inside limits. Ten minutes later, playback arrives from the eclipse that ended before the pass began. It contains a sample of 26.3 V, below the yellow limit of 26.5 V, generated 40 minutes earlier.
The ground system has several decisions to make, and each should be designed in advance.
- Archive. The sample is stored at its generation time. The plot of the last orbit now shows the dip.
- Current value. The display keeps showing 27.9 V, because that sample has the latest generation time.
- Limits. The violation is real and must be reported, but it is historical. The alarm is raised with its generation time and marked as coming from playback, so the operator does not treat it as happening now.
- Derived values. The orbit minimum, already computed from live data, is recomputed.
- Automation. A rule that reacts to low voltage by shedding load must not fire on a 40-minute-old sample. Rules state whether they apply to live data, playback or both.
None of this is difficult to implement. It is difficult to add afterward to a system that assumed data arrives once, in order.
From architecture to agreements
Every arrow in this lesson is an interface between systems that are often built by different organizations. The next lesson covers the standards and documents that define those interfaces, and how to read them.
Key takeaways
- A mission control system is a pipeline from frames to packets to parameters, with commanding running the other way and an archive beside both.
- Every sample has two times. Generation time orders the data and receipt time explains when the ground knew it. Confusing them corrupts displays, alarms and trends.
- Telemetry arrives late, out of order and more than once. Ingest must be idempotent, and anything derived must be recomputable.
- Mission-specific knowledge belongs in data - databases, displays and procedures - so that one core can serve many spacecraft.
Knowledge check
Check your understanding. These questions are not graded and you can retry as often as you like.
0 of 3 questions answered.
Glossary
Mission control system
The ground software that processes telemetry, builds and sends commands, archives data and presents the state of the spacecraft to operators.
Generation time
The time at which a telemetry sample was produced on board, taken from the spacecraft clock and converted to a ground time scale.
Receipt time
The time at which a ground station or the control system received a piece of telemetry. Also called ground receipt time or Earth-received time.
Playback
Telemetry recorded on board while out of contact and transmitted later, so that it arrives long after it was generated.
Time correlation
The process of relating the spacecraft clock to a ground time scale such as UTC, so that onboard timestamps can be interpreted.
Idempotent ingest
Processing designed so that receiving the same data twice leaves the archive and derived products the same as receiving it once.
References and further reading
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.