An implementation of open shortest path first algorithm