Implement the described in the doc file object model network or similar to it. On the basis of this model, implement routing algorithms in the network (routing) according to various criteria.