fetch link id and node id