Cartesian Product Router
- Cartesian Product Router is a decentralized routing protocol that applies canonical addition and lookup rules to construct local routing in Cartesian product graphs.
- It leverages consistent rotation maps from factor graphs, ensuring constant-time (O(1)) per-hop forwarding and minimal local state.
- The approach reduces computational complexity and storage needs, making it ideal for implementing efficient routing in distributed network systems.
A Cartesian Product Router is a constructive protocol for local routing in the Cartesian product of regular graphs by leveraging consistent rotation maps on the factor graphs. The approach directly specifies, via canonical addition and lookup rules, how to realize a consistent rotation map on the product graph from given factor rotation maps; the result is a decentralized routing mechanism with constant-time forwarding and strictly local state, guaranteeing correctness and minimizing per-hop computational complexity (Alexander, 2021).
1. Formalism: Regular Graphs and Consistent Rotation Maps
Let be a -regular undirected graph, meaning every has , and be -regular. Assign to each vertex a canonical port ordering, . A rotation map of is a function , where if the -th port at leads to , and, at , the same edge is its -th port. is an involution: .
A rotation map is consistent if for every , the incoming port-labels at permute ; equivalently, in the matrix whose –entry is the vertex-index of , each column is a permutation of and each port index appears exactly once per column. This constructs canonical local edge-labelings that yield well-behaved local forwarding.
2. Structure of the Cartesian Product and Port Indexation
Given -regular and -regular, their Cartesian product is , where edge if either (i) , , or (ii) , . Every node has degree . Port indices for are ordered as (corresponding to -edges, i.e., moving in the -factor) and (corresponding to -edges, i.e., moving in the -factor).
3. Construction of the Product Rotation Map
Given consistent rotation maps and for the factors, the rotation map for the product is defined as
using addition and lookup rules:
- For : let . Then .
- For : set , compute . Then .
Each such mapping is an involution and preserves consistency because the factor maps are consistent; incoming -ports (resp. -ports) at the product nodes always exhaust their proper local index sets.
4. Routing Algorithm: Local Table Lookup
At each node , a routing table of length is stored, where entry contains the tuple . Upon arrival at , given destination and input port (or a special marker for initial injection), the router selects an exit port according to some routing policy, such as shortest-path in the product metric or greedy per coordinate. The packet is dispatched via , with arrival information updated to the appropriate in-port label, all using a single table lookup.
Pseudocode for one forwarding step:
1 2 3 4 |
Input: current node (u,v), chosen exit‐port i_out ∈ [1..d_G+d_H] Table_R = table of size (d_G+d_H) at node (u,v) (neighbor, in_port) = Table_R[i_out] Send packet to neighbor via local port i_out; set packet.arrival_port = in_port |
5. Explicit Example:
Consider , the 4-cycle (, ) and , the triangle (, ), with canonical port assignments.
Rotation maps:
- , , and similar for all
- , , and so on for all
The product has 12 vertices . For , port $1$ (G-edge): . For port $3$ (): . Completing all entries defines the full router table.
A packet routed greedily from to via “move in until , then adjust in ” might traverse , using only local table lookups.
6. Computational Complexity and Storage Considerations
- Precomputation: for all table entries.
- Per-node memory: (each stores per local port).
- Overall memory: .
- Per-hop route selection: lookup.
- Trade-off: storing the complete table yields fastest forwarding at the cost of linear space; dynamically computing via the smaller factor tables requires minor arithmetic but less memory.
7. Summary and Significance
The Cartesian Product Router synthesizes efficient, local, and scalable routing protocols for product networks by composition of consistent rotation maps on factor graphs. The methodology is purely combinatorial and exploits the involutive, label-preserving structure of rotation maps. Direct applications arise in communication networks, parallel processor topologies, and any distributed system naturally modeled by graph products. The protocol guarantees correctness and minimal computational overhead for routing decisions on the product space, provided the factor rotations are given and consistent (Alexander, 2021).