# njogarao/dts architecture

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

- Interactive diagram: https://gitdiagram.com/njogarao/dts
- Repository: https://github.com/njogarao/dts

## Overview

DTS is a remote DPDK validation and performance-test suite. The user configures DUT and tester hosts, runs DTS to prepare those hosts and execute test cases, then inspects logs, testcase summaries, and performance reports. The graph shows the documented workflow and major framework capabilities. Several report, virtualization, and NIC relationships come from the SOURCE INDEX rather than inspected implementation excerpts; unsampled details are not inferred.

Main entry points: [`framework/dts.py`](https://github.com/njogarao/dts/blob/master/framework/dts.py) (Execution coordinator), [`framework/dut.py`](https://github.com/njogarao/dts/blob/master/framework/dut.py) (DUT management), [`framework/tester.py`](https://github.com/njogarao/dts/blob/master/framework/tester.py) (Tester management), [`framework/config.py`](https://github.com/njogarao/dts/blob/master/framework/config.py) (Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Test orchestration"]
  node_cli["DTS entry point<br/>[main.py]"]
  node_runner["Execution coordinator<br/>[dts.py]"]
  node_configuration["Configuration<br/>[config.py]"]
  node_settings["Runtime settings<br/>[settings.py]"]
end

subgraph group_hosts["Host management"]
  node_dut["DUT management<br/>[dut.py]"]
  node_tester["Tester management<br/>[tester.py]"]
  node_crb["Remote host access<br/>[crb.py]"]
  node_ssh["SSH transport<br/>[ssh_connection.py]"]
  node_nic["NIC device management<br/>[net_device.py]"]
end

subgraph group_execution["Test execution"]
  node_dpdk["DPDK build and setup<br/>[project_dpdk.py]"]
  node_traffic["Traffic generation<br/>[etgen.py]"]
  node_packets["Packet utilities<br/>[packet.py]"]
  node_pmd["PMD output parsing<br/>[pmd_output.py]"]
end

subgraph group_virtualization["Virtualization"]
  node_virt_base["Virtualization base<br/>[virt_base.py]"]
  node_virt_dut["Virtual DUT<br/>[virt_dut.py]"]
  node_virt_resource["Virtual resources<br/>[virt_resource.py]"]
  node_qemu["QEMU management<br/>[qemu_kvm.py]"]
end

subgraph group_results["Results and reporting"]
  node_results["Test results<br/>[dts.py]"]
  node_excel["Excel reports<br/>[excel_reporter.py]"]
  node_json["JSON reports<br/>[json_reporter.py]"]
  node_stats["Statistics reports<br/>[stats_reporter.py]"]
  node_rst["Performance reports<br/>[rst.py]"]
  node_logs["Run logs<br/>[logger.py]"]
end

node_user(("Test operator"))

node_user -->|"starts"| node_cli
node_cli -->|"invokes"| node_runner
node_runner -->|"loads"| node_configuration
node_configuration -->|"uses"| node_settings
node_runner -->|"prepares"| node_dut
node_runner -->|"prepares"| node_tester
node_dut -->|"loads"| node_configuration
node_dut -->|"inherits"| node_crb
node_tester -->|"inherits"| node_crb
node_crb -->|"creates sessions"| node_ssh
node_dut -->|"manages devices"| node_nic
node_tester -->|"discovers devices"| node_nic
node_runner -->|"runs tests with"| node_dpdk
node_dpdk -->|"builds on"| node_dut
node_tester -->|"uses"| node_traffic
node_packets -.->|"supports"| node_traffic
node_runner -->|"records"| node_results
node_runner -->|"writes reports"| node_excel
node_runner -->|"writes reports"| node_json
node_runner -->|"writes reports"| node_stats
node_runner -->|"writes reports"| node_rst
node_runner -->|"configures"| node_logs
node_dut -->|"manages resources"| node_virt_resource
node_virt_base -->|"uses"| node_virt_dut
node_qemu -->|"extends"| node_virt_base
node_virt_dut -->|"uses"| node_dpdk
node_runner -->|"uses"| node_pmd

click node_cli "https://github.com/njogarao/dts/blob/master/framework/main.py"
click node_runner "https://github.com/njogarao/dts/blob/master/framework/dts.py"
click node_configuration "https://github.com/njogarao/dts/blob/master/framework/config.py"
click node_settings "https://github.com/njogarao/dts/blob/master/framework/settings.py"
click node_dut "https://github.com/njogarao/dts/blob/master/framework/dut.py"
click node_tester "https://github.com/njogarao/dts/blob/master/framework/tester.py"
click node_crb "https://github.com/njogarao/dts/blob/master/framework/crb.py"
click node_ssh "https://github.com/njogarao/dts/blob/master/framework/ssh_connection.py"
click node_nic "https://github.com/njogarao/dts/blob/master/nics/net_device.py"
click node_dpdk "https://github.com/njogarao/dts/blob/master/framework/project_dpdk.py"
click node_traffic "https://github.com/njogarao/dts/blob/master/framework/etgen.py"
click node_packets "https://github.com/njogarao/dts/blob/master/framework/packet.py"
click node_pmd "https://github.com/njogarao/dts/blob/master/framework/pmd_output.py"
click node_virt_base "https://github.com/njogarao/dts/blob/master/framework/virt_base.py"
click node_virt_dut "https://github.com/njogarao/dts/blob/master/framework/virt_dut.py"
click node_virt_resource "https://github.com/njogarao/dts/blob/master/framework/virt_resource.py"
click node_qemu "https://github.com/njogarao/dts/blob/master/framework/qemu_kvm.py"
click node_results "https://github.com/njogarao/dts/blob/master/framework/dts.py"
click node_excel "https://github.com/njogarao/dts/blob/master/framework/excel_reporter.py"
click node_json "https://github.com/njogarao/dts/blob/master/framework/json_reporter.py"
click node_stats "https://github.com/njogarao/dts/blob/master/framework/stats_reporter.py"
click node_rst "https://github.com/njogarao/dts/blob/master/framework/rst.py"
click node_logs "https://github.com/njogarao/dts/blob/master/framework/logger.py"

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_cli,node_runner,node_configuration,node_settings toneBlue
class node_dut,node_tester,node_crb,node_ssh,node_nic toneAmber
class node_dpdk,node_traffic,node_packets,node_pmd toneMint
class node_virt_base,node_virt_dut,node_virt_resource,node_qemu toneRose
class node_results,node_excel,node_json,node_stats,node_rst,node_logs,node_user toneIndigo
```

## Components

### Test orchestration

- [DTS entry point](https://github.com/njogarao/dts/blob/master/framework/main.py): `framework/main.py`
- [Execution coordinator](https://github.com/njogarao/dts/blob/master/framework/dts.py): `framework/dts.py`
- [Configuration](https://github.com/njogarao/dts/blob/master/framework/config.py): `framework/config.py`
- [Runtime settings](https://github.com/njogarao/dts/blob/master/framework/settings.py): `framework/settings.py`

### Host management

- [DUT management](https://github.com/njogarao/dts/blob/master/framework/dut.py): `framework/dut.py`
- [Tester management](https://github.com/njogarao/dts/blob/master/framework/tester.py): `framework/tester.py`
- [Remote host access](https://github.com/njogarao/dts/blob/master/framework/crb.py): `framework/crb.py`
- [SSH transport](https://github.com/njogarao/dts/blob/master/framework/ssh_connection.py): `framework/ssh_connection.py`
- [NIC device management](https://github.com/njogarao/dts/blob/master/nics/net_device.py): `nics/net_device.py`

### Test execution

- [DPDK build and setup](https://github.com/njogarao/dts/blob/master/framework/project_dpdk.py): `framework/project_dpdk.py`
- [Traffic generation](https://github.com/njogarao/dts/blob/master/framework/etgen.py): `framework/etgen.py`
- [Packet utilities](https://github.com/njogarao/dts/blob/master/framework/packet.py): `framework/packet.py`
- [PMD output parsing](https://github.com/njogarao/dts/blob/master/framework/pmd_output.py): `framework/pmd_output.py`

### Virtualization

- [Virtualization base](https://github.com/njogarao/dts/blob/master/framework/virt_base.py): `framework/virt_base.py`
- [Virtual DUT](https://github.com/njogarao/dts/blob/master/framework/virt_dut.py): `framework/virt_dut.py`
- [Virtual resources](https://github.com/njogarao/dts/blob/master/framework/virt_resource.py): `framework/virt_resource.py`
- [QEMU management](https://github.com/njogarao/dts/blob/master/framework/qemu_kvm.py): `framework/qemu_kvm.py`

### Results and reporting

- [Test results](https://github.com/njogarao/dts/blob/master/framework/dts.py): `framework/dts.py`
- [Excel reports](https://github.com/njogarao/dts/blob/master/framework/excel_reporter.py): `framework/excel_reporter.py`
- [JSON reports](https://github.com/njogarao/dts/blob/master/framework/json_reporter.py): `framework/json_reporter.py`
- [Statistics reports](https://github.com/njogarao/dts/blob/master/framework/stats_reporter.py): `framework/stats_reporter.py`
- [Performance reports](https://github.com/njogarao/dts/blob/master/framework/rst.py): `framework/rst.py`
- [Run logs](https://github.com/njogarao/dts/blob/master/framework/logger.py): `framework/logger.py`

### Other components

- **Test operator**

## Connections

- Test operator → DTS entry point: starts
- DTS entry point → Execution coordinator: invokes (evidence: `framework/main.py`)
- Execution coordinator → Configuration: loads (evidence: `framework/dts.py`)
- Configuration → Runtime settings: uses (evidence: `framework/config.py`)
- Execution coordinator → DUT management: prepares (evidence: `framework/dts.py`)
- Execution coordinator → Tester management: prepares (evidence: `framework/dts.py`)
- DUT management → Configuration: loads (evidence: `framework/dut.py`)
- DUT management → Remote host access: inherits (evidence: `framework/dut.py`)
- Tester management → Remote host access: inherits (evidence: `framework/tester.py`)
- Remote host access → SSH transport: creates sessions (evidence: `framework/crb.py`)
- DUT management → NIC device management: manages devices (evidence: `framework/dut.py`)
- Tester management → NIC device management: discovers devices (evidence: `framework/tester.py`)
- Execution coordinator → DPDK build and setup: runs tests with (evidence: `framework/dts.py`)
- DPDK build and setup → DUT management: builds on (evidence: `framework/project_dpdk.py`)
- Tester management → Traffic generation: uses (evidence: `framework/tester.py`)
- Packet utilities → Traffic generation: supports
- Execution coordinator → Test results: records (evidence: `framework/dts.py`)
- Execution coordinator → Excel reports: writes reports (evidence: `framework/dts.py`)
- Execution coordinator → JSON reports: writes reports (evidence: `framework/dts.py`)
- Execution coordinator → Statistics reports: writes reports (evidence: `framework/dts.py`)
- Execution coordinator → Performance reports: writes reports (evidence: `framework/dts.py`)
- Execution coordinator → Run logs: configures (evidence: `framework/dts.py`)
- DUT management → Virtual resources: manages resources (evidence: `framework/dut.py`)
- Virtualization base → Virtual DUT: uses (evidence: `framework/virt_base.py`)
- QEMU management → Virtualization base: extends (evidence: `framework/qemu_kvm.py`)
- Virtual DUT → DPDK build and setup: uses (evidence: `framework/virt_dut.py`)
- Execution coordinator → PMD output parsing: uses (evidence: `framework/dts.py`)
