Questions and answers
Short answers to common questions about MicroRTI, the open-source HLA 4 Run-Time Infrastructure (RTI) written in Rust, and its federate clients. If yours is not here, open an issue.
Is MicroRTI certified?
No. No formal conformance test has been run, and the “HLA Conforming” label needs test results certified by a recognised authority (IEEE 1516.1-2025, 13.2). This is what exists instead:
- about 1 800 tests that drive the engine through its public API and the server over TCP and WebSocket;
- among them, campaigns of generated hostile input: broken Federate Protocol streams, service requests built from the protobuf schema, damaged FOM modules, encoded values and save files, none of which may make MicroRTI panic or wait without end;
- an audit of each clause against the standard, with tests that were checked by breaking the engine on purpose;
- scripted scenarios that a third-party client, Pitch FedProClient, passes in Java on all four transports (Java federates) and in C++ over TCP (C++ federates). A GitHub workflow runs them every week against a server built from the main branch;
- the compliance matrix, which lists every service with the tests that name it. It is a text search over the source tree, not a certificate.
Which version of HLA does it implement?
HLA 4 only: IEEE 1516-2025, IEEE 1516.1-2025 and IEEE 1516.2-2025. Every service of clauses 4 to 10 of 1516.1 has an implementation, and so does the Management Object Model of clause 11. The overview lists what is established and what is not. Why HLA 4 explains what this edition changes and why MicroRTI implements no earlier one.
Can I use a federate written for HLA Evolved (1516-2010) or older?
It depends on the library the federate is linked to. MicroRTI speaks only the HLA 4 Federate Protocol and provides no library for the older APIs, so a federate joins it through a library that speaks that protocol.
For HLA Evolved, such a library exists: Pitch FedProClient also comes in an HLA Evolved variant, which
implements the Java API hla.rti1516e and the C++ API of IEEE 1516-2010 over the Federate Protocol. In
one test, the HLA Evolved chat sample of FedProClient 2.1.1, in Java and unchanged, shared a federation
on MicroRTI with the Rust chat program. Nothing more than that sample has been tried, and the C++
variant has not been tried at all.
The other way is to port the federate to an HLA 4 client: the Rust or
Python client of this project, or Pitch FedProClient for the HLA 4
Java API (hla.rti1516_2025) and C++ API (namespace
rti1516_2025). Federates written for IEEE 1516-2000 or HLA 1.3 have to be ported.
Can I use FOM modules in the 2010 format?
Yes. MicroRTI reads FOM modules in the 2025 namespace and in the 2010 namespace, which it maps onto the
2025 model: dimensions listed per attribute become dimensions of the class that declares the attribute,
the 2010 time representation entries become the logical time types, and the conveyProducingFederate
switch, which HLA 4 does not have, is dropped. The repository has the same module in both formats,
Interop.xml
and
Interop-2010.xml,
and the 24 steps of its interoperability scenario pass with either.
Only XML documents in one of those two namespaces are read, so FED files of HLA 1.3 and object models of IEEE 1516-2000 are refused.
Which operating systems are supported?
GitHub releases provide microrti and microrti-cli for macOS (Intel and Apple Silicon), Windows
(x86-64 and ARM64), and Linux (x86-64 and ARM64, with glibc or statically linked with musl).
Install and run the RTI lists the installers and archives.
Continuous integration runs the full workspace tests on Ubuntu 24.04 and checks that it still
compiles with Rust 1.88. It also starts the server and checks that microrti-cli can reach it on
Intel and ARM Macs, x86-64 and ARM64 Windows, and ARM64 Linux. The weekly interoperability workflow
runs on Ubuntu 24.04.
How fast is it?
Speed and footprint gives measured figures for MicroRTI 0.5.0, with the conditions of the tests. On one computer with 8 cores and 16 GB of memory, over loopback: a round trip between two federates through the RTI takes about 160 µs over TCP, the RTI delivers up to about 150 000 interactions per second, 8 time-managed federates that each send one timestamped interaction per step make about 900 steps per second, and a fresh server takes 8.6 MB of memory. The engine runs behind one lock, so service calls are processed one at a time. Figures from another machine or another load can differ a lot: measure your own federation before you size it.
Can federates written in different languages share a federation?
Yes. They all speak the Federate Protocol, and the RTI does not know in which language a federate is
written. MicroRTI has clients in Rust and in Python (the Python client is a layer over the Rust one), and
Java and C++ federates can use the open-source Pitch FedProClient library. A mixed federation has been
checked: a C++ federate built on Pitch FedProClient took part in the chat room of the Rust chat
program, whichever started first. Several languages in one federation
shows a run with a Rust, a Java and a C++ federate.
The federates must load compatible FOM modules and encode values as the FOM’s data types say (IEEE 1516.2-2025, 4.14); each of these client libraries has encoding helpers. Clients compares the options.
Can MicroRTI federates join another RTI?
If that RTI serves the HLA 4 Federate Protocol, yes in principle: the Rust and Python clients speak only
that protocol to a server, and connect to any tcp://, tls://, ws:// or wss:// RTI address where
such an RTI listens.
interop/other-rti
describes a self-checking scenario of 24 steps for that case, with a 2010-format copy of its FOM module
for an RTI that does not read the 2025 format.
Little has been checked so far. The repository records one successful run of the scenario against one other RTI; session resume, TLS, WebSocket, authorisation and more than two federates have not been tried against another RTI. An RTI without the Federate Protocol cannot be reached at all.
What is the licence? Can I use MicroRTI commercially?
MicroRTI is under the Apache License 2.0, which allows commercial use, modification and redistribution on the conditions it sets, chiefly that the licence and the notices go with what you distribute.
Some files are IEEE material under a licence of their own: the protobuf files in proto/, and the MIM,
schemas and sample FOM modules in fom/, reprinted with permission from IEEE 1516.1-2025 and IEEE
1516.2-2025. The licence at the top of each of these files is royalty-free and allows copying,
distribution and derivative works for any purpose, as long as the IEEE attribution line comes with them.
The Rust API is derived from the APIs of IEEE 1516.1-2025 under the same permission. The
NOTICE file lists all of this; read it and the
files themselves if your use depends on it. The text of the standard is not part of MicroRTI, and
MicroRTI is not affiliated with or endorsed by the IEEE.
Does MicroRTI support save and restore?
Yes: every service of 4.19 to 4.35, with saves taken at once or at a logical time. A save covers the
whole state of the federation execution in the RTI, the Management Object Model included, and each
federate saves its own state when the RTI tells it to. By default the microrti server keeps saves in
memory, and they are lost when it stops. Set save_directory in the RID (or --save-directory) and each
save becomes a file that a restore can read after a restart of the RTI; see
federation saves. Since version 0.5.0 that file ends with a
checksum, and a damaged file is refused; a file written by a 0.4 server cannot be restored by 0.5. The
interoperability scenarios save and restore two federates. See
save and restore.
Does it implement the Management Object Model?
Yes, clause 11: the HLAfederation and HLAfederate objects with their attributes, the request,
report, adjust and service interactions, and service reporting, sent to subscribers or written to one file
per federate in the directory service_report_directory of the RID. The Java interoperability harness
checks a large part of it with a third-party client. Where clause 11 leaves room for choice, or
contradicts itself, the choices are listed in the
engine README. See
the Management Object Model.
Does it implement data distribution management?
Yes: 9.2 to 9.13 and the dimension and region services of clause 10 (10.21 to 10.28). The Java harness
and the interop/other-rti scenario both include it. Ranges are always compared exactly, whatever the
Allow Relaxed DDM switch says. See data distribution management.
What does MicroRTI not do?
- Logical time of your own: only
HLAinteger64TimeandHLAfloat64Time. - Authorisation beyond one global password: no user accounts, no roles, no client certificates.
- There is no graphical tool.
The overview and the engine README list the rest, down to the points where the standard is unclear.
Do I need the server, or can everything run in one process?
Both work. EmbeddedRti runs the RTI inside your process, for tests, scripts and notebooks, in Rust and
in Python. The federates of that process share it as they would share a server, but federates in other
processes cannot reach it. See
an RTI inside your process.
Can I protect the RTI with TLS and a password?
Yes. The server listens on TLS (TLS 1.3) and secure WebSocket with your certificate or a self-signed one,
and can require one global password through the predefined authorizer HLAauthorizer (12.6). See
TLS and authorisation.
Why is a tool refused with Unauthorized by an RTI that has no password?
Because it sent one. An RTI without authorisation refuses any credentials (12.5), and microrti-cli,
chat and restaurant send a password whenever the environment variable MICRORTI_PASSWORD is set.
The tools say so:
microrti-cli: cannot connect to the RTI at wss://localhost:55255: Unauthorized: this RTI is not configured for authorization but credentials were supplied
hint: the password comes from --password or from the environment variable MICRORTI_PASSWORD; this RTI does not require authorization and refuses every password (IEEE 1516.1-2025, 12.5), so leave both outUnset the variable (unset MICRORTI_PASSWORD) or drop --password.
Why is my FOM module refused with CouldNotOpenFOM?
Because the federate did not send the module: it gave a name, and the RTI could not, or would not, read
what the name designates. The MicroRTI clients send the content with FomModule::file in Rust and with a
path in Python: they read the file on the federate’s machine. Only FomModule::url in Rust and
FomModule.url in Python send a designator for the RTI to read, and the RTI refuses it in three cases:
- The designator is not a URL. Since version 0.5.0, a file name or a path without a scheme, such as
Chat.xml, is refused by the server whatever its settings, and by an RTI inside your process too. A module must be named by afile:,http:orhttps:URL. - Its operator restricted the reading, with
fom_urls = "none"or withfom_url_directoryand a URL outside that directory. The message then says that the RTI reads a module named by URL only from the files its operator makes available. - The URL leads nowhere the RTI can read: a missing file, an HTTP error status, a server that does not
answer within
fom_url_timeout.
Pitch FedProClient, in Java and in C++, reads the file when it finds it where the federate runs and
sends its content. When it does not find it (nor, in Java, on the class path), it passes the name on to
the RTI. The Java federate of Java federates, started in a directory without
Chat.xml, stopped with:
Exception in thread "main" hla.rti1516_2025.exceptions.CouldNotOpenFOM: could not open FOM module 'Chat.xml': not a URL: write a file:, http: or https: URL, or send the content of the moduleRun the federate where the file is, or give it the full path of the file. If the modules have to live
on the RTI’s machine, give the federate a URL instead of a name: with the RTI started with
--fom-url-directory foms and Chat.xml in foms, the Java and the C++ federates of this site created
their federation execution with the designator file:Chat.xml. See
FOM modules named by URL.
Is there a Python client?
Yes: the package microrti, for Python 3.11 and later, built on the Rust client. It is not on PyPI:
install it from its release on GitHub, which has wheels for Linux and a source archive that pip compiles
elsewhere. See the Python client.
Where do the logs go?
The server writes its log to the standard error, and one listening on <address> line per listener to
the standard output. Set the level with log_level in the RID or --log-level (error, warn, info,
debug, trace; info by default); RUST_LOG, when set, selects levels per module. At info you get
listeners, sessions opened, closed and lost, federation executions created and destroyed, federates joined,
resigned and lost (with their federate name and type), and failed TLS handshakes (the same failure
from the same address once a minute); services refused by the authorisation service and failed
federation restores are warnings. debug adds every service call that raised an exception and the
messages of the TLS library. Two lines from runs of the chat:
2026-12-01T20:14:19.849490Z INFO microrti::service: federate joined session=2cd328090fc53548 federation=Chat federate=bob federate_type=chat
2026-12-01T20:22:12.533759Z WARN microrti::service: federate lost session=89a0a27b92187947 federation=Chat federate=bob federate_type=chatThe log is written by a thread of its own: if nobody reads the standard error, the RTI drops log lines rather than keep federates waiting, and logs how many at shutdown.
MOM service reports go to the subscribers of HLAreportServiceInvocation, or, when a federate’s Send
Service Reports To File switch is on, to a file per federate in service_report_directory
(microrti-service-reports by default).
On the federate side, the Rust client logs through the tracing crate: nothing is printed unless your
program installs a subscriber, for example with tracing-subscriber.
How do I report a bug or ask a question?
Open an issue in the issue tracker on GitHub, for
questions too: the repository has no discussion board. Give the version (microrti --version), the
effective settings (microrti check-config with your RID file), the log at debug level around the
problem, the FOM modules, and the smallest federate that shows it, with the client library and its
version. A bug in Pitch FedProClient belongs to its own repository.