Implementation of staitc planning algorithm for star topology.