implementation of linkstate multicast protocol