Each edge of graph has a message going in each direction for every round. So the number of messages per round = number of edges X number of messages per edge = 2E
Since the longest hops between two nodes is d, the number of rounds needed = d-2.
Since 2 routers the destination router and the router connected with it already know their shortest paths.Hence the first exchange of information coveys the distance of destination router(d) to (d-2)th router. So for the information to reach 1st router, it takes d-2 exchanges.