In this paper we study the problem of assigning paths to packets on N imes N tori in an on‐line and distributed fashion. By on‐line we mean that the routing decisions must be made without any knowledge of future requests. Being distributed is an equally important feature of our design, for such algorithms need not know the global configuration of the network in the process of routing packets. We use the technique of competitive analysis to measure the performance of our design. In addition to showing an Ωlog N) lower bound on the competitive ratio, we present both deterministic and randomized algorithms which are O(log N) competitive with respect to the maximum load (i.e., congestion ) on communication links.