It's an assignment, so we can't do it for you. The best we can do is to give hints and suggestions.
First and foremost, a warning is needed: I didn't run your code because I don't have the right setup at hand. Hence, I'm just giving "best guesses".
My best guess is that you have a routing issue.
How to find if I'm right and how to debug it.
1) Inspect all the routing tables (ALL of them, including the "real" nodes).
2) Check if the packets are being sent, and where they're dropped.
To do the 2nd point, use Wireshark.
On the "real" network, just use it as normal.
On the ns-3 part, enable the pcap logging on the links and open the trace with Wireshark.
At one point you'll find where packets are dropped, and you'll have your way to fix the simulation.
This is your assignment. The goal of an assignment is not to do it, it's to LEARN by doing. Fixing the issues is an extremely important part of the learning process.
Hence, you have to debug it yourself.