Optimality of threshold policies in a simple deterministic network