Pricing Self-Interference in Multi-Layer Path Search

In networks that stack protocols (Ethernet inside IP inside MPLS, carried over optical wavelengths), a valid route often has to pass through the same physical link or node more than once. The packet goes somewhere to get a header added, and later comes back through the same equipment to have it removed. Without resource limits, finding the cheapest such route is solvable in polynomial time. Adding a single bandwidth requirement makes it NP-complete. The practical options that follow are both bad: an exact search that takes close to an hour on a 79-node carrier network, or a shortcut that forbids loops and misses up to half of the feasible routes.

The observation behind this proposal is that the difficulty has one source: a looped route competes with itself. Each extra pass over a link uses that link's capacity again. In wireless links, each pass also adds interference on nearby links. If that self-competition is written as a linear constraint on how many times the route traverses each link, it can be moved into the objective as a price per traversal. The priced problem is again solvable exactly in polynomial time, and it gives a lower bound on the true optimum. That bound can drive an exact branch-and-bound search: a method that splits the problem into subproblems and discards any subproblem whose bound shows it cannot beat the best route found so far. A small graph network, trained on small synthetic graphs, then supplies starting prices and a branching order for unseen, larger topologies. We will test directly whether that learned component earns its place.

Core Claim

Lamali et al. model multi-layer routing as a weighted pushdown automaton, a finite-state machine with a stack that records the current protocol headers. Encapsulation pushes a header onto the stack and decapsulation pops it, in strict last-in-first-out order. They convert this machine into a weighted context-free grammar and solve unconstrained routing with Knuth's generalization of Dijkstra's algorithm in $O(|A|^5|V|^2|E|)$ time, where $|A|$ is the number of protocols, $|V|$ the number of nodes and $|E|$ the number of links (Algorithmic and Complexity Aspects of Path Computation in Multi-Layer Networks; Path computation in multi-layer networks: Complexity and algorithms). They also prove that a minimum-bandwidth requirement makes the problem NP-complete, even with only two protocols.

The same pattern appears for collision-avoiding routing. There, The complexity of routing with collision avoidance shows the problem is tractable when routes may be walks that revisit places, and becomes hard again once walk length is bounded. In both cases, loops are cheap to allow, and the hardness comes from constraints that count repeated use.

Our claim is that this counting constraint, together with a protocol-style interference model, can be written in the following form. For a route $P$ let $n_e(P)$ be the number of times it traverses link $e$. Let $d$ be the flow's bandwidth demand, $B_e$ the capacity of link $e$, and $N(e)$ the set of links that interfere with $e$ in a conflict graph built from channel gains, as in Optimal Wireless Resource Allocation With Random Edge Graph Neural Networks and Unfolding WMMSE Using Graph Neural Networks for Efficient Power Allocation. The constraint is

$$d \sum_{f \in \{e\} \cup N(e)} n_f(P) \le B_e \quad \text{for every link } e.$$

For wired carrier networks the neighbor sets $N(e)$ are empty, and the constraint reduces to plain bandwidth. We attach a multiplier $\lambda_e \ge 0$ to each of these constraints. Let $c(P)$ be the route's additive cost. The relaxed objective is

$$L(\lambda) = \min_P \Big[ c(P) + \sum_e \lambda_e \, d \sum_{f \in \{e\}\cup N(e)} n_f(P) \Big] - \sum_e \lambda_e B_e .$$

The penalty is additive per traversal: each pass over link $f$ adds a fixed amount to that link's weight. The inner minimization is therefore the unconstrained grammar problem with reweighted links, and Knuth's algorithm solves it exactly. The value $L(\lambda)$ is a valid lower bound on the constrained optimum for any $\lambda \ge 0$.

This is what is new relative to prior work. Lamali et al. handle the constraint either by exhaustive search or by forbidding loops. We keep the loops and price their reuse, so exactness is retained and the polynomial solver stays inside the loop. Graph-based interference models have so far only been used for single-hop power control. Here the interference graph becomes a constraint on a multi-hop, stack-aware route. The overall problem remains NP-complete. The claim concerns where search effort concentrates, not a change in worst-case complexity.

Research Program

Exact search. The first component is a branch-and-bound search over traversal-count bounds. Each node of the search tree fixes an upper limit on $n_e$ for some links, so the lower bound $L(\lambda)$ can only rise as the tree deepens. The multipliers are fitted by subgradient ascent, a simple iterative method that raises the price on any link whose constraint is violated.

Two technical points need care. The first is enforcing a count limit such as $n_e \le k$ inside the grammar without blowing up its size. We will use a counter per branched link, which is affordable because only a few links are branched on at a time. The second is checking whether the minimizer of the relaxation is feasible. A feasible minimizer yields an upper bound, and the search closes when the upper and lower bounds meet. We also expect a structural result: a proof that the search visits only links a route traverses more than once. If that holds, instances with few functional loops are nearly polynomial in practice.

Learned guidance. The second component is a message-passing graph network, a model that repeatedly updates each link's representation from its neighbors' representations. It runs on the link-and-conflict graph, and each link carries its protocol-adaptation functions and capacity as features. It outputs two things: an initial multiplier $\lambda_e$ for every link, and a score used to rank links for branching.

The design borrows from three places. The size-independent parameterization comes from GDDR: GNN-based Data-Driven Routing and REGNN. The structure of unrolling iterations into layers comes from UWMMSE, which turns a fixed number of optimization iterations into network layers; here we unroll a few subgradient steps. The idea of using a neural guess to order an exact solver's choices comes from Constrained Shortest Path Search with Graph Convolutional Neural Networks. That work predicts the first move for a Constraint Programming (CP) solver and keeps optimality proofs, but its model is trained on one fixed graph.

Our guidance is safe by construction. A poor predicted $\lambda$ only weakens the bound and a poor branching score only lengthens the search, so optimality is never lost. Training uses multipliers solved to convergence on small random multi-layer graphs with 15 to 40 nodes. Evaluation is zero-shot on larger graphs, meaning the model is never retrained for them.

Structural analysis. The third component asks where the hard instances lie. Lamali et al. report that path feasibility jumps sharply from near zero to near certainty around protocol-adaptation probability $p = 0.22$. We hypothesize that the gap between the Lagrangian bound and the true optimum, and with it the size of the search tree, peaks near that transition. If so, the method's worst cases are predictable in advance.

Baselines

Naive reference. Run Knuth's unconstrained grammar solver, ignore bandwidth, and check the returned route afterward. This measures how often capacity even matters at a given $p$. If the unconstrained optimum is almost always feasible, the problem studied here is not practically important.

Exact reference. Use the exhaustive breadth-first search (BFS) of Lamali et al. It takes "over 35 minutes" on the simplified Time Warner topology T1 and "53 minutes" on the Exodus topology T2 at $p = 0.5$ (Lamali et al. 2018). We treat it as the ground-truth oracle. Our method must reach proven optimality within a fixed timeout on at least the instances BFS completes.

Loop-forbidding heuristic. Use DAG-PDA from the same paper, which orders nodes by breadth-first search, drops back-edges and capacity-violating edges, and runs the pushdown algorithm. It reports "3.8 seconds" on T1 and "24 seconds" on T2 at $p = 0.5$. It "fails to find a path about 50% of the time when $p > 0.34$" (Lamali et al. 2016). To beat it, our method must recover most of that lost feasibility at comparable wall-clock time. Matching its runtime while roughly halving its feasibility loss would count as a clear win. For multi-constraint instances we also run ML-SAMCRA, the same paper's exact multi-constraint quality-of-service algorithm, which it reports explodes "when $p > 0.10$".

General-purpose solver. Formulate an integer program on the stack-expanded graph with the same constraint family and solve it with a commercial solver. We found no reported result on Lamali's T1/T2 instances for such a formulation. It gets the same hardware, the same timeout and default tuning.

Candidate enumeration. Enumerate the k best derivations of the unconstrained grammar in cost order and filter them for feasibility. No reported result was found for this approach either.

Learned first-move guidance. Adapt the approach of Osanlou et al. (2021) by training a graph convolutional network per topology to guide the search. That paper reports 625 versus 324 instances solved optimally within 3 s on its benchmark $b_1$. Those numbers come from a different problem and serve only as evidence that neural guidance can help exact search.

Ablation. The key ablation is our own search with subgradient-initialized multipliers and a hand-crafted branching rule (the most-overused link first), with no graph network. All methods share one CPU budget per instance.

Why not just…?

Why not just forbid loops, as learned routers already do? GDDR enforces acyclic forwarding to prevent forwarding cycles. For protocol stacks this removes exactly the routes that need to revisit adaptation nodes, and the DAG heuristic's feasibility loss of up to 50% documents the cost. Our feasibility-versus-$p$ curves on T1 and T2 will show where that loss arises and whether pricing reuse closes it.

Why not just hand the problem to an integer-programming solver? This is a real threat. On networks with 41 to 79 nodes, a modern solver may perform well, and the file contains no evidence against it. Routing Arena reports that the classical Hybrid Genetic Search heuristic lands "within 0.004% of the optimum in milliseconds" and beats purely neural vehicle-routing solvers, a warning that classical methods are hard to beat. The stack-expanded formulation grows with $|A|^2$ and with the permitted stack depth. We will measure the size at which the solver's runtime crosses ours. If it never crosses, we will report the Lagrangian bound as a cutting-plane aid to the solver rather than as a competitor.

Why not just enumerate the k cheapest unconstrained routes and keep the first feasible one? This alternative is likely strong when few links are tight. It degrades when the cheapest routes all reuse the same bottleneck, because every such route is infeasible for the same reason. Our search changes prices on precisely that link. We will stratify instances by how many distinct links are over capacity in the unconstrained optimum. The claim fails if enumeration matches us across all strata.

Why use a graph network at all instead of plain subgradient warm starts? This may turn out to be unnecessary. The ablation decides it: we report search-tree size and time-to-proof with and without the learned multipliers, on both training-size and larger zero-shot graphs. If the learned guidance gives no consistent reduction, the exact priced search stands on its own as the contribution, and we drop the learned part.

Proposed Experiments

Wired carrier networks. We reproduce the protocol of Lamali et al. on T1 (41 nodes, 296 directed links) and T2 (79 nodes, 294 links), sweeping $p$ from 0.05 to 0.6 with random bandwidths and demands. We report four quantities: the fraction of instances proven optimal within 30 s, the fraction feasible compared with the BFS oracle, the optimality gap at timeout, and median and 95th-percentile runtime. We add Internet Topology Zoo graphs, as used by GDDR, with random protocol assignments to test zero-shot transfer across a range of sizes and structures.

Wireless multi-layer instances. We build instances by placing nodes as random 2D geometric drops with path-loss exponent 2.2, following UWMMSE. Links above an interference threshold form the conflict sets $N(e)$, and protocol functions are attached to nodes. No reported result exists on Lamali's benchmarks for this multi-layer interference setting, so every number here is new. The comparison is against the MIP and k-best baselines under identical constraints.

Decisive checks. Three results decide the proposal. The first is whether our search recovers most of the DAG heuristic's feasibility loss above $p = 0.34$ at runtimes of the same order as its reported 3.8 s and 24 s. The second is whether it proves optimality on instances where exhaustive BFS needs tens of minutes. The third is whether the learned multipliers shrink the search tree on graphs larger than any seen in training. A fourth result is diagnostic: whether the relaxation's bound gap peaks near the $p \approx 0.22$ feasibility transition, which would explain where the method struggles. A negative result on the third check still leaves a usable exact method. A negative result on the first two means the reuse-pricing view does not work in practice.