# TelAF Simulation
Source: [https://docs.qualcomm.com/doc/80-41102-1/topic/use-telaf-simulation.html](https://docs.qualcomm.com/doc/80-41102-1/topic/use-telaf-simulation.html)
TelAF Simulation provides a hardware-independent environment that makes TelAF application
development and validation faster, more convenient, and easier to automate. Customers
can develop and validate TelAF applications using production-aligned APIs and service
behavior, while the underlying hardware-dependent functionality is simulated in
software.
The following figure shows an overview of the TelAF Simulation architecture.
Figure : TelAF Simulation architecture

Customer applications and TelAF services use the same APIs and implementation as they do
on the real target platform. No application or service-level changes are required. The
simulation environment is beneath the TelAF service layer, where the PA layer and its
hardware-dependent sublayers are simulated.
The simulated PA components communicate with the simulated modem-side and AP-side
components through MQTT. Developers can reproduce device behavior, inject events,
validate responses, and exercise functional scenarios without requiring physical
Telematics hardware.
Based on the MQTT bus, the customer can leverage the existing MQTT CLI tools to monitor
the interaction messages exchanged between publishers and consumers, and to observe
messages that remain held by the broker. These CLI tools allow visibility into the
message flow and into any messages that are currently retained or queued by the broker.
This visibility allows for low-level system debugging and investigation of delivery and
message state issues.
## Simulation layers
TelAF Simulation is organized into the layers listed in the following table.
Table : TelAF simulation layers
| Layer | Description |
| --- | --- |
| TelAF application layer | Customer applications use the standard TelAF APIs. No
simulation-specific application code is required.
Applications communicate with TelAF services through generated
TelAF IPC interfaces. Application isolation, access control, and
service binding continue to be managed by the TelAF application
framework. |
| TelAF service layer | TelAF services provide the functional APIs used by applications,
including data connectivity, SIM, radio, network, power, eCall,
location, and other platform services.
The service implementations and their public APIs remain
unchanged when running in simulation. |
| Simulated PA layer | The simulated PA layer implements the same PA interfaces expected
by TelAF services. It simulates the hardware-backed PA
implementation while preserving the service-to-PA contract.
Because the service and simulated PA execute within the same
process context, the service interacts with its PA through the
normal internal PA interface. The service doesn't need to know
whether the PA is connected to physical hardware or a simulation
backend. |
| Simulation daemon layer | The simulation daemon layer models the lower-level platform
behavior.