OpenFlow-Inspired Inference Architecture
Programmable Match-Action Flow Control for Large Language Model Execution
01 Abstract
Software-Defined Networking (SDN) transformed packet switching by decoupling control-plane policy intelligence from data-plane forwarding via match-action flow tables. Apolynux investigates applying this architectural separation to LLM inference. Rather than hardcoding hardware selection, prefetch triggers, and batching heuristics inside model code, inference operations are classified and dispatched through versioned, dynamically updatable policy tables.
02 Problem Statement
Conventional inference engines embed placement, offloading, and caching rules directly inside compiled model loops. Changing how a cluster reacts to memory pressure, queue congestion, or new accelerator topologies requires modifying runtime source code and restarting services, making adaptive heterogeneous orchestration rigid and error-prone.
03 Background & Foundations
OpenFlow demonstrated that separating centralised or logically distinct policy controllers from fast local match-action tables allows infrastructure to evolve without replacing forwarding hardware. Here, OpenFlow serves purely as an architectural analogy — Apolynux does not claim OpenFlow itself is a native LLM execution protocol.
04 Existing Architectural Limitations
- Static, hardcoded execution paths cannot adapt gracefully to transient memory pressure or queue congestion.
- Tightly coupling routing heuristics with kernel compute code hinders portability across hardware generations.
- Centralised synchronous controllers become latency bottlenecks if queried on every token step.
05 Proposed Apolynx Architecture
An InferPlane Controller computes and pushes versioned match-action policy tables asynchronously to local Execution Nodes, which evaluate cached rules in nanoseconds on the data plane.
InferPlane Controller
Monitors cluster telemetry (queue depth, memory pressure, hit rates) and synthesises updated flow policy tables.
Versioned Policy Tables
Immutable, locally cached match-action tables swapped atomically via pointer/epoch updates without halting in-flight operations.
Operation Classifier
Extracts match fields (model layer, operation type, tensor size, residency state, deadline, locality) from descriptors.
Fail-Safe Local Data Plane
Continues uninterrupted operation using its last valid policy table even if the controller becomes temporarily unreachable.
06 Technical Design
Each incoming inference operation is matched against ordered rules specifying metadata predicates and concrete execution actions (target backend, prefetch priority, batching flag, completion mode). Rule updates are batched and applied atomically between epoch boundaries so active operations are never interrupted unless explicit safe cancellation is supported.
| Networking Concept | InferPlane Equivalent | Operational Role |
|---|---|---|
| Packet | Inference Operation | Atomic unit of scheduled work (infer_operation_t) |
| Flow | Model Execution Flow | End-to-end sequence of ops for a request or phase |
| Flow Table | Inference Policy Table | Ordered set of match-action scheduling rules |
| Match Fields | Operation Metadata | Op type, layer, tensor dimensions, residency, priority |
| Action | Execution Instruction | Target backend, async prefetch, batching policy |
| Switch | Execution Node | Local runtime evaluating cached tables at line rate |
| Controller | InferPlane Controller | Out-of-band telemetry analysis and rule synthesis |
| Forwarding | Resource Dispatch | Lockless enqueue to CPU, NPU, GPU, DMA, or RDMA |
07 Execution Workflow
- 1. Telemetry Collection: Execution nodes emit periodic counters (queue occupancy, cache hit ratio, latency) to the Controller.
- 2. Policy Synthesis: Controller installs or updates match-action rules asynchronously in a new policy table version.
- 3. Local Classification: For each ready operation, the local data plane inspects metadata fields (op type, residency, dimensions).
- 4. Match-Action Dispatch: The first matching rule determines target hardware, prefetch trigger, and priority without contacting the controller.
- 5. Resilient Continuation: If controller heartbeats fail, nodes keep serving deterministically with the latest valid cached table.
08 Algorithms, Interfaces & Specification
FLOW_RULE 001
MATCH:
operation_type = EXPERT_LOAD
residency = COLD
expert_id = ANY
ACTION:
initiate_prefetch
priority = HIGH
destination = LOCAL_RAM
completion = ASYNC
FLOW_RULE 002
MATCH:
operation_type = MATRIX_MULTIPLY
workload_size = LARGE
accelerator_available = TRUE
ACTION:
execution_target = GPU
batching = ENABLED
09 Implementation Considerations
- Rule lookup must be O(1) or bounded compact table scan (e.g., hash/decision-tree compiled form) to stay sub-microsecond.
- Policy updates must include hysteresis or rate-limiting to avoid thrashing between targets under noisy telemetry.
- Controller failure must never cause data-plane stalls; cached tables remain authoritative until superseded.
10 Performance Evaluation Methodology
Measure rule-evaluation latency overhead (nanoseconds per op), policy convergence time under synthetic load spikes, and resilience during simulated controller disconnection.
11 Limitations & Scope Boundaries
- Research Concept stage: formal rule conflict resolution and verification semantics are still under study.
- Dynamic policy oscillation is a known risk if telemetry feedback loops are poorly damped.
12 Open Research Questions & Challenges
- How compact can compiled match-action tables remain while expressing rich multi-dimensional placement policies?
- What stability guarantees prevent controller rule updates from oscillating under bursty enterprise traffic?
13 Future Directions
- Automatic generation of flow tables from high-level InferPlane Flow DSL specifications.
- Shadow-mode policy evaluation to validate candidate rules against live telemetry before activation.
14 Primary Technical References
- McKeown et al. (ACM SIGCOMM CCR 2008) — OpenFlow: Enabling Innovation in Campus Networks.
- ONF OpenFlow Specification 1.5 — Match-action pipeline tables and controller-to-switch separation.
- Bosshart et al. (ACM SIGCOMM CCR 2014) — P4: Programming Protocol-Independent Packet Processors.
Research Status: Research Concept • Scientific Integrity Disclosure
This research programme explicitly separates established computer science principles, existing open-source technologies, Apolynux architectural proposals, experimental implementations, and independently validated results. Apolynux does not claim to have invented OpenFlow, lock-free algorithms, RDMA, hugepages, or Mixture-of-Experts. Our research contribution is the proposed integration of these disciplines into a unified programmable inference architecture, evaluated strictly through repeatable empirical measurement.