Skip to content

Data flow: link budgets, storage, and relay transport for latency - #179

Merged
ptgrogan merged 13 commits into
mainfrom
data-flow
Nov 26, 2026
Merged

ptgrogan merged 13 commits into
mainfrom
data-flow

Conversation

@ptgrogan

Copy link
Copy Markdown
Contributor

Adds communications modeling for pre-Phase A concept studies. Data is generated onboard, stored, and sent over rate-limited links, directly to ground stations or through a single-hop relay with a feeder link. Link rates come from coarse RF link budgets, so latency and data loss follow from the flow of data rather than from contact timing alone.

Without the new data_flow argument, results are unchanged, and a test checks this.

What's new

  • Schemas (schemas.communication):
    • Transmitter and Receiver (S, X, Ku, Ka bands) take coarse values: EIRP or power and antenna; G/T or antenna and noise temperature; DVB-S2 or CCSDS modes, a Shannon modem, or only a known rate.
    • DataGeneration sets how much data a satellite generates and when (always, sunlit, or day).
    • SpacecraftCommunications, StationCommunications and RelayCommunications add antenna counts and a relay's feeder rate.
    • DataFlow holds the analysis options.
    • Space systems, ground stations and relays gain an optional communications field.
  • Link budgets (utils.link_budget):
    • Free-space path loss, plus atmospheric loss from clear-sky attenuation at zenith.
    • C/N0, then the fastest mode that closes with margin.
    • The band defaults and mode thresholds come from sourced tables.
    • A published EOS Aqua X-band budget is reproduced to within 0.1 dB.
  • Data flow (analysis.compute_data_flow, analyze_data_flow):
    • Data is stored first in, first out, and lost once storage is full.
    • Links are scheduled in time steps. Each transmitter holds one link at a time, stations and relay satellites have limited antennas, and relay satellites share their feeder rate.
    • A link is released once the satellite's storage empties or at the end of its contact. The satellite that has waited longest gets an antenna first.
    • With DataFlow(streaming=False), data observed during a contact is played back at the contact's end, as on a scheduled pass.
    • The result gives each observation's latency and whether it was lost, plus the link schedule, storage over time, volume totals, and antenna utilization.
  • Architectures and trade studies:
    • evaluate_architecture(..., data_flow=DataFlow()).
    • Leave-one-out and add-one evaluations reschedule links, so they measure a member's value to latency and loss, such as adding a relay.
    • Trade-study designs that differ only in communications share the cached geometry.
  • Catalog: every value is quoted from a source.
    • Playback and crosslink transmitters for 33 spacecraft.
    • TDRS single-access and multiple-access services.
    • Antenna counts and G/T for NOAA's Fairbanks and Wallops stations.
    • A new near_earth_network system with 29 antennas, and configurations for KSAT, SSC and NASA.
  • Docs:
    • API reference pages for the new modules.
    • New example notebook ComputeDataFlow, with figures and an animation of the data flow.
    • ValidateLatencyNOAA20 gains Test 4, comparing the data flow with the times NOAA-20's granules are created.

Validation

  • NOAA-20, stored data: the model delivers it in the order its granules are created (rank correlation 1.00), 3 to 7 minutes before each one. That lead time is about NOAA-20's processing time, which TAT-C doesn't model.
  • NOAA-20, data observed during contacts: with streaming=False, the model delivers it at each contact's end, and NOAA-20 creates its granules about 3 minutes later.
  • Example notebook: for six small satellites downlinking to KSAT, adding a TDRS relay cuts mean latency from about 31 minutes to under a minute.

Limitations

  • Links assume clear sky; rain fades are left to the margin.
  • Links are scheduled first come, first served on a 30-second time step.
  • A relay's antennas aren't shared with its other users unless you give fewer antennas.
  • Relays are single hop, and links are RF only. Optical links and multi-hop crosslinks are deferred.
  • In trade studies with a data flow, early mission phases are evaluated as if all planned satellites were already competing for antennas, which overstates contention.

Testing

python -m pytest tests -n auto: 2601 passed, 3 skipped. The notebooks were executed, and the docs build with no new warnings.

…: transmitters, receivers, data generation, and data flow options
…ugh ground stations and relays with limited antennas, for latencies
…ctive, shared antennas, and the value of members to latency and loss
…unications, and phase metrics within the planned satellites' data flow
…on terminals, and the Near Earth Network's antennas
…ing, and add figures and an animation to ComputeDataFlow
@ptgrogan
ptgrogan merged commit 1225d77 into main Nov 26, 2026
9 checks passed
@ptgrogan
ptgrogan deleted the data-flow branch November 26, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant