# fillol/iiot-sim-on-kathara architecture

> Architecture diagram of the GitHub repository fillol/iiot-sim-on-kathara, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fillol/iiot-sim-on-kathara
- Repository: https://github.com/fillol/iiot-sim-on-kathara

## Overview

This repository is an Industrial IoT simulator: configured production-line sensors generate industrial and security payloads, which are posted to a lossy routing service, analyzed for anomalies, and—in secure traffic—decrypted first. The main path and alert forwarding are visible in the sampled services; the README documents the Kathará multi-hop network and Digital Twin logging role. Sensor models are grouped at their shared source directory because the producer imports and dispatches among them. The README describes network setup, but its detailed topology and Digital Twin implementation were not excerpted.

Main entry points: [`src/dropper/main.py`](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/dropper/main.py) (Dropper), [`src/factory/main.py`](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/factory/main.py) (Production Line Producer), [`src/fault-detector/main.py`](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/fault-detector/main.py) (Fault Detector), [`src/decrypter/main.py`](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/decrypter/main.py) (Decrypter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_production["Production Lines"]
  node_factory["Production Line Producer<br/>[main.py]"]
  node_sensors["Sensor Models"]
end

subgraph group_transport["Message Routing"]
  node_dropper["Dropper<br/>[main.py]"]
  node_decrypter["Decrypter<br/>[main.py]"]
end

subgraph group_analysis["Detection Services"]
  node_fault["Fault Detector<br/>[main.py]"]
  node_digital_twin["Digital Twin<br/>[main.py]"]
end

subgraph group_network["Simulation Network"]
  node_kathara["Kathará Network<br/>[lab.conf]"]
end

node_operator(("Line Operator"))

node_operator -->|"starts"| node_factory
node_factory -->|"dispatches to"| node_sensors
node_factory -->|"posts payloads"| node_dropper
node_dropper -->|"routes secure"| node_decrypter
node_dropper -->|"routes standard"| node_fault
node_decrypter -->|"forwards decrypted"| node_fault
node_fault -->|"forwards alerts"| node_digital_twin
node_kathara -.->|"hosts services"| node_dropper

click node_factory "https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/factory/main.py"
click node_sensors "https://github.com/fillol/iiot-sim-on-kathara/tree/main/src/factory/sensors"
click node_dropper "https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/dropper/main.py"
click node_decrypter "https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/decrypter/main.py"
click node_fault "https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/fault-detector/main.py"
click node_digital_twin "https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/digital-twin/main.py"
click node_kathara "https://github.com/fillol/iiot-sim-on-kathara/blob/main/kathar%C3%A0/lab.conf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_factory,node_sensors toneBlue
class node_dropper,node_decrypter toneAmber
class node_fault,node_digital_twin toneMint
class node_kathara toneRose
class node_operator toneIndigo
```

## Components

### Production Lines

- [Production Line Producer](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/factory/main.py): `src/factory/main.py`
- [Sensor Models](https://github.com/fillol/iiot-sim-on-kathara/tree/main/src/factory/sensors): `src/factory/sensors`

### Message Routing

- [Dropper](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/dropper/main.py): `src/dropper/main.py`
- [Decrypter](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/decrypter/main.py): `src/decrypter/main.py`

### Detection Services

- [Fault Detector](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/fault-detector/main.py): `src/fault-detector/main.py`
- [Digital Twin](https://github.com/fillol/iiot-sim-on-kathara/blob/main/src/digital-twin/main.py): `src/digital-twin/main.py`

### Simulation Network

- [Kathará Network](https://github.com/fillol/iiot-sim-on-kathara/blob/main/kathar%C3%A0/lab.conf): `katharà/lab.conf`

### Other components

- **Line Operator**

## Connections

- Line Operator → Production Line Producer: starts (evidence: `README.md`)
- Production Line Producer → Sensor Models: dispatches to (evidence: `src/factory/main.py`)
- Production Line Producer → Dropper: posts payloads (evidence: `src/factory/main.py`)
- Dropper → Decrypter: routes secure (evidence: `src/dropper/main.py`)
- Dropper → Fault Detector: routes standard (evidence: `src/dropper/main.py`)
- Decrypter → Fault Detector: forwards decrypted (evidence: `src/decrypter/main.py`)
- Fault Detector → Digital Twin: forwards alerts (evidence: `src/fault-detector/main.py`)
- Kathará Network → Dropper: hosts services (evidence: `README.md`)
