# spirent/landslide-5gc architecture

> Architecture diagram of the GitHub repository spirent/landslide-5gc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/spirent/landslide-5gc
- Repository: https://github.com/spirent/landslide-5gc

## Overview

1. This repository is not an application service; it is a Spirent Landslide 5GC automation content package. Its purpose is to provide reusable test assets that iTest can execute in Landslide, usually orchestrated from Velocity or a Network DevOps Agent after SCM synchronization.

2. The repo has two main content roots:
   - `Landslide_5GC/ai_LS_5G`: the primary 5G test library.
   - `Landslide_5GC/di_Landslide`: deployment/integration assets that support launching and parameterizing runs.
   A separate `Inventory/` area and `package_manifest.json` appear to be packaging/catalog metadata rather than test logic.

3. The main architectural boundary is between test definitions and their data/configuration. Under `ai_LS_5G/testcases`, the executable scenarios are stored as `.fftc` files, while matching scenario parameters live under `ai_LS_5G/parameters` as `.ffpt` files. The mirrored directory structure and naming show that each testcase is paired with a scenario-specific parameter set.

4. `ai_LS_5G` is organized by test intent and topology scope:
   - `adjacent` for interface-adjacent NF interactions such as AMF-SMF and SMF-UPF.
   - `endtoend` for full 5GC flows.
   - `isolation` for NF-focused functional cases.
   - `security` for fuzzing, SCAS, VA, IMS, and protocol-security cases.
   - `oran` for O-RAN CU/DU/RIC scenarios.
   This hierarchy is important for diagramming coverage boundaries and execution groupings.

5. The 5GC domain coverage is broad and NF-centric. The parameter/testcase sets explicitly cover AMF, SMF, UPF, UDM, UDR, AUSF, NRF, NSSF, PCF, NEF, CHF, BSF, LMF, SMSF, SCP, SEPP, and N3IWF. That indicates the package is built to validate both service-based core interactions and user-plane/control-plane behavior across the 5G core.

6. Shared test infrastructure lives in `ai_LS_5G/utility_library`. The presence of `pcap_utils.fftc`, `topology.fftc`, and `utils.fftc` shows a reusable helper layer for packet-capture handling, topology modeling, and common test operations. `assets/sample.pcap` is a concrete data artifact used by packet-driven or replay/fuzzing-style tests.

7. Expected-output mapping is separated into `ai_LS_5G/response_map` with `.ffrm` files such as `DU_NODAL_CELL_STAT.ffrm` and `IMS_AUTH_KEY_RESPONSE.ffrm`. These are validation artifacts that likely map observed responses to expected keys/statistics, allowing tests to assert outcomes without hard-coding checks into each testcase.

8. `di_Landslide` provides the automation glue for execution. `session_profiles/landslide_rest.ffsp` and `landslide_rest_quickcall_library.fftc` suggest a REST-oriented session/profile layer for controlling Landslide. The utility `create_parameter_from_json_changes.fftc` indicates a transform step that converts JSON configuration deltas into Landslide parameter content.

9. Security testing is a first-class branch, not an afterthought. Under `ai_LS_5G/parameters/security` and `testcases/security`, the repo separates:
   - fuzzing inputs for malformed/protocol-break cases,
   - SCAS security assurance scenarios,
   - VA attack/vulnerability scenarios,
   - IMS-specific security checks,
   - UPF/NAS/NRF/SEPP/UDM/AMF security cases.
   This makes the security model distinct from normal functional coverage in both structure and execution intent.

10. The packaging layer matters operationally. `Inventory/*.bin`, `Inventory/inventory.xml`, and `package_manifest.json` point to a packaged, versioned content distribution model used by Velocity/SCM synchronization. In an architecture diagram, these are the distribution/metadata boundary feeding the automation runtime, not part of the test execution path itself.

11. The execution flow is therefore: package sync from SCM/Velocity → Landslide loads the relevant session profile and testcase → testcase pulls parameters, utilities, response maps, and test assets → Landslide drives the network under test → results are validated against response maps/expected outcomes. The repo’s directory layout is designed to keep those responsibilities cleanly separated.

Main entry points: [`Landslide_5GC/ai_LS_5G/parameters`](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters) (Parameters), [`Landslide_5GC/ai_LS_5G`](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G) (ai_LS_5G), [`Landslide_5GC/ai_LS_5G/testcases`](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/testcases) (Testcases), [`Landslide_5GC/di_Landslide`](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/di_Landslide) (di_Landslide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_group_distribution["Distribution"]
  node_repo["Repo<br/>content package"]
  node_inventory[("Inventory<br/>package metadata")]
  node_manifest["Manifest"]
end

subgraph group_group_automation["Automation glue"]
  node_di_landslide["di_Landslide<br/>automation glue"]
  node_session_profiles["Session profiles<br/>runtime control"]
  node_json_transform["JSON transform<br/>parameter generator"]
end

subgraph group_group_5gc["5G content"]
  node_ai_ls_5g["ai_LS_5G<br/>5GC library"]
end

subgraph group_group_5gc_testcases["Testcases"]
  node_testcases["Testcases<br/>fftc scenarios"]
end

subgraph group_group_5gc_params["Parameters"]
  node_parameters["Parameters<br/>ffpt inputs"]
  node_adjacent["Adjacent<br/>5GC slice"]
  node_endtoend["End-to-end<br/>5GC slice"]
  node_isolation["Isolation<br/>5GC slice"]
  node_security["Security<br/>5GC slice"]
  node_oran["O-RAN<br/>orAN slice"]
  node_amf_nrf_udm_upf{{"Core NFs<br/>nf coverage"}}
end

subgraph group_group_5gc_support["Support assets"]
  node_response_map["Response maps<br/>validation maps"]
  node_utility_library["Utilities<br/>shared helpers"]
  node_sample_pcap["Sample pcap<br/>test artifact<br/>[sample.pcap]"]
end

node_repo -->|"packages"| node_inventory
node_repo -->|"describes"| node_manifest
node_repo -->|"contains"| node_ai_ls_5g
node_repo -->|"contains"| node_di_landslide
node_di_landslide -->|"launches"| node_session_profiles
node_di_landslide -->|"generates"| node_json_transform
node_ai_ls_5g -->|"defines"| node_testcases
node_ai_ls_5g -->|"pairs with"| node_parameters
node_ai_ls_5g -->|"validates with"| node_response_map
node_ai_ls_5g -->|"shares"| node_utility_library
node_ai_ls_5g -->|"uses"| node_sample_pcap
node_testcases -->|"mirrors"| node_parameters
node_testcases -->|"calls"| node_utility_library
node_testcases -->|"asserts"| node_response_map
node_testcases -->|"consumes"| node_sample_pcap
node_parameters -->|"organizes"| node_adjacent
node_parameters -->|"organizes"| node_endtoend
node_parameters -->|"organizes"| node_isolation
node_parameters -->|"organizes"| node_security
node_parameters -->|"organizes"| node_oran
node_parameters -->|"covers"| node_amf_nrf_udm_upf

click node_inventory "https://github.com/spirent/landslide-5gc/tree/master/Inventory"
click node_manifest "https://github.com/spirent/landslide-5gc/blob/master/package_manifest.json"
click node_ai_ls_5g "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G"
click node_di_landslide "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/di_Landslide"
click node_session_profiles "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/di_Landslide/session_profiles"
click node_json_transform "https://github.com/spirent/landslide-5gc/blob/master/Landslide_5GC/di_Landslide/utils/create_parameter_from_json_changes.fftc"
click node_testcases "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/testcases"
click node_parameters "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters"
click node_response_map "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/response_map"
click node_utility_library "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/utility_library"
click node_sample_pcap "https://github.com/spirent/landslide-5gc/blob/master/Landslide_5GC/ai_LS_5G/assets/sample.pcap"
click node_adjacent "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/adjacent"
click node_endtoend "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/endtoend"
click node_isolation "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/isolation"
click node_security "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/security"
click node_oran "https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/oran"

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_repo,node_inventory,node_manifest toneBlue
class node_di_landslide,node_session_profiles,node_json_transform toneAmber
class node_ai_ls_5g toneMint
class node_testcases toneRose
class node_parameters,node_adjacent,node_endtoend,node_isolation,node_security,node_oran,node_amf_nrf_udm_upf toneIndigo
class node_response_map,node_utility_library,node_sample_pcap toneTeal
```

## Components

### Distribution

Packaged content and inventory metadata synchronized into Landslide.

- **Repo**: content package · Spirent Landslide 5GC automation content package for iTest execution.
- [Inventory](https://github.com/spirent/landslide-5gc/tree/master/Inventory): package metadata · Versioned packaged inventory and catalog artifacts. · `Inventory`
- [Manifest](https://github.com/spirent/landslide-5gc/blob/master/package_manifest.json): package manifest · Top-level package metadata for distribution and synchronization. · `package_manifest.json`

### Automation glue

Session profiles and transforms used to launch and parameterize runs.

- [di_Landslide](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/di_Landslide): automation glue · Deployment and integration assets for launching and parameterizing runs. · `Landslide_5GC/di_Landslide`
- [Session profiles](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/di_Landslide/session_profiles): runtime control · Landslide session/profile layer for REST-oriented execution control. · `Landslide_5GC/di_Landslide/session_profiles`
- [JSON transform](https://github.com/spirent/landslide-5gc/blob/master/Landslide_5GC/di_Landslide/utils/create_parameter_from_json_changes.fftc): parameter generator · Converts JSON configuration changes into Landslide parameter content. · `Landslide_5GC/di_Landslide/utils/create_parameter_from_json_changes.fftc`

### 5G content

Primary reusable test library for functional, security, and O-RAN coverage.

- [ai_LS_5G](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G): 5GC library · Primary 5G reusable test library and shared assets. · `Landslide_5GC/ai_LS_5G`

### Testcases

Executable Landslide test scenarios.

- [Testcases](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/testcases): fftc scenarios · Executable Landslide scenarios organized by intent and topology. · `Landslide_5GC/ai_LS_5G/testcases`

### Parameters

Scenario-specific parameter sets paired to testcases.

- [Parameters](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters): ffpt inputs · Scenario-specific parameter sets paired with testcases. · `Landslide_5GC/ai_LS_5G/parameters`
- [Adjacent](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/adjacent): 5GC slice · Interface-adjacent NF interactions such as AMF-SMF and SMF-UPF. · `Landslide_5GC/ai_LS_5G/parameters/adjacent`
- [End-to-end](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/endtoend): 5GC slice · Full 5GC flows spanning registration, sessions, roaming, and throughput. · `Landslide_5GC/ai_LS_5G/parameters/endtoend`
- [Isolation](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/isolation): 5GC slice · NF-focused functional cases for individual core functions. · `Landslide_5GC/ai_LS_5G/parameters/isolation`
- [Security](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/security): 5GC slice · Fuzzing, SCAS, VA, IMS, and protocol-security coverage. · `Landslide_5GC/ai_LS_5G/parameters/security`
- [O-RAN](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/parameters/oran): orAN slice · O-RAN CU, DU, RIC, and related scenarios. · `Landslide_5GC/ai_LS_5G/parameters/oran`
- **Core NFs**: nf coverage · Representative coverage across AMF, NRF, UDM, UPF, SMF, PCF, NEF, CHF, BSF, NSSF, SCP, SEPP, N3IWF, and related 5GC functions.

### Support assets

Reusable helpers, response maps, and data artifacts.

- [Response maps](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/response_map): validation maps · Expected-output mappings used to validate observed results. · `Landslide_5GC/ai_LS_5G/response_map`
- [Utilities](https://github.com/spirent/landslide-5gc/tree/master/Landslide_5GC/ai_LS_5G/utility_library): shared helpers · Reusable packet-capture, topology, and common operation helpers. · `Landslide_5GC/ai_LS_5G/utility_library`
- [Sample pcap](https://github.com/spirent/landslide-5gc/blob/master/Landslide_5GC/ai_LS_5G/assets/sample.pcap): test artifact · Concrete packet capture used by packet-driven or replay-style tests. · `Landslide_5GC/ai_LS_5G/assets/sample.pcap`

## Connections

- Repo → Inventory: packages · Repository is distributed through inventory artifacts.
- Repo → Manifest: describes · Package manifest describes the content bundle.
- Repo → ai_LS_5G: contains · Primary 5G library lives under ai_LS_5G.
- Repo → di_Landslide: contains · Automation glue lives under di_Landslide.
- di_Landslide → Session profiles: launches · Session profiles control Landslide execution.
- di_Landslide → JSON transform: generates · JSON delta transform produces Landslide parameter content.
- ai_LS_5G → Testcases: defines · Executable scenarios are stored as testcase files.
- ai_LS_5G → Parameters: pairs with · Testcases are paired with scenario parameter files.
- ai_LS_5G → Response maps: validates with · Response maps provide expected-output validation.
- ai_LS_5G → Utilities: shares · Reusable helpers are centralized in the utility library.
- ai_LS_5G → Sample pcap: uses · Packet-driven tests use a sample capture artifact.
- Testcases → Parameters: mirrors · Scenario naming and structure mirror parameter sets.
- Testcases → Utilities: calls · Scenarios depend on shared helper routines.
- Testcases → Response maps: asserts · Observed behavior is checked against response maps.
- Testcases → Sample pcap: consumes · Some scenarios consume packet capture inputs.
- Parameters → Adjacent: organizes · Adjacent NF scenarios are grouped here.
- Parameters → End-to-end: organizes · End-to-end 5GC scenarios are grouped here.
- Parameters → Isolation: organizes · Isolation scenarios are grouped here.
- Parameters → Security: organizes · Security scenarios are grouped here.
- Parameters → O-RAN: organizes · O-RAN scenarios are grouped here.
- Parameters → Core NFs: covers · Parameter sets span major 5GC network functions.
