See moby/moby#47728 for context.
I've just had the case that the networkDB looked correct, but the packages were still being routed to the wrong node.
Details: Node S, running the source container, has IP 172.17.2.2 Node T, running the target container, has IP 172.16.3.2