Technical Reference & Validation Rules.
The formal engineering rules and validation engine invariants that govern Topo’s network synthesis and packet audit pipeline.
Universal Generation Rules (GEN-U)
These rules are strictly enforced across both Basic and Optimal generation sub-modes:
| Rule ID | Invariant Specification | Rationale / Target |
|---|---|---|
| GEN-U-01 | IP allocator must reserve .1 (Gateway), .2 (L3SW1 SVI), and .3 (Core-Dist SW2 SVI). Device allocation starts at .4. | Prevents SVI / Host IP conflicts |
| GEN-U-02 | Wireless LAN Controllers (WLC) must connect to switch trunk ports with MGMT VLAN IP; never assigned a /30 routed interface. | CAPWAP tunnel connectivity |
| GEN-U-03 | Any ip phone device type must be auto-assigned to a VOICE VLAN; if none exists, auto-create VLAN 40 (VOICE). | Voice traffic prioritization |
| GEN-U-04 | Every /30 point-to-point subnet must have exactly two device IPs assigned (.1 and .2) before output is finalized. | Eliminates orphaned WAN links |
| GEN-U-05 | No VLAN may be generated without at least one assigned endpoint device or designated server. | Prevents empty/ghost VLANs |
| GEN-U-06 | Routers must never appear in switch VLAN membership tables; they use 802.1Q subinterfaces for routing. | Cisco L2/L3 role segregation |
| GEN-U-07 | If the user prompt contains explicit subnet specifications (e.g. 10.50.0.0/24), those must override all default pool calculations verbatim. | User-defined lab spec accuracy |
| GEN-U-08 | Output must pass all 10 Validation Engine checks before being returned to the user interface. | Zero silent output failure guarantee |
Basic Mode Rules (GEN-B)
Rules governing strict, non-enhanced generation:
Output contains only devices explicitly named in prompt. No APs, WLCs, or IP phones unless explicitly specified.
Console laptops connect strictly via console rollover cables — no IP address and no VLAN membership.
WAN prompts assign Serial0/0/0 (DCE with clock rate 64000) and Serial0/0/1 (DTE) when serial links are requested.
Cisco Catalyst 2960 switches must not be assigned routed interfaces (no switchport commands prohibited).
Optimal Mode Rules (GEN-O)
Rules governing professional best-practice enhancement:
Executes NLP classifier to detect topology archetype (SOHO, SMB, Campus, Branch-WAN, Data Center) prior to device generation.
Injects redundant Core-Dist B L3 switch and Cisco ASA 5506-X firewall between edge router and core switches.
Provisions WLC 2504 + AP infrastructure for topologies requesting wireless mobility.
Applies dynamic OSPF to multi-router backbones; strictly never applied to access switches or end devices.
Validation Engine Rules (VAL-01 – VAL-10)
The core audit engine evaluates these 10 mathematical and architectural invariants:
| Rule | Validation Invariant | Severity |
|---|---|---|
| VAL-01 | Every /30 subnet must have exactly 2 assigned endpoint IPs. | P1 Critical |
| VAL-02 | No two devices in the same subnet may share an IP address. | P1 Critical |
| VAL-03 | No 2960 switch may have a routed interface entry. | P1 Critical |
| VAL-04 | Every WLC must connect to a switch trunk port, not a /30 link. | P1 Critical |
| VAL-05 | Every ip phone type must be assigned to a VOICE-type VLAN. | P2 Caution |
| VAL-06 | Every VLAN generated must have at least one end device assigned. | P2 Caution |
| VAL-07 | Console laptop must have no IP address and no VLAN entry. | P3 Recommended |
| VAL-08 | If prompt specifies subnets, output must use those exact subnets. | P1 Critical |
| VAL-09 | Routers must not appear in switch VLAN membership tables. | P1 Critical |
| VAL-10 | OSPF must not be applied to end devices, access switches, or WLCs. | P1 Critical |
Bug Frequency & Reliability Matrix
Empirical frequency data across 8 baseline benchmark tests (4 prompts × 2 modes) and projected reliability growth:
- IP conflict at .2 in user subnet8/8 (100%)
- WLC connected via /30 routed link8/8 (100%)
- IP phone on data VLAN instead of voice8/8 (100%)
- Orphaned /30 subnets6/8 (75%)
- 2960 switch assigned routed interface4/8 (50%)
- Phase 1 (Post-P1 Fixes)~70% Basic / ~55% Optimal
- Phase 2 (Classifier + Analyze MVP)~88% Basic / ~85% Optimal
- Phase 3 (Full 10 VAL Rules)≥90% Both Modes
- Phase 4 (Platform Maturity)≥95% Production Target