We consider the master ring problem (MRP) which often arises in optical network design. Given a network which consists of a collection of interconnected rings R 1 , . . . , R K , with n 1 , . . . , n K distinct nodes, respectively, we need to find an ordering of the nodes in the network that respects the ordering of every individual ring, if one exists. We show that MRP is NP-complete, and therefore, it is unlikely to be solvable by a polynomial time algorithm. Our main result is an algorithm which solves MRP in Q · K k =1 (n k / √ 2) steps, for some polynomial Q, as the n k values become large. For the ring clearance problem, a special case of practical interest, our algorithm achieves this running time for rings of any size n k ≥ 2. This yields the first nontrivial improvement, by factor of (2 √ 2) K ≈ (2.82) K , over the running time of the naive algorithm, which exhaustively enumerates all K k =1 (2n k ) possible solutions.