The design and optimization of data-centers-on-achip (DCoC) requires accurate mathematical modeling of the workloads. We describe a statistical physics-inspired formalism that allows both the derivation of state space representation of the network and the dynamic optimization.