>Thanks for your reply. But what is this router, say, I have two routers in >my simulation $router1 and $router2, how can I set to trace router1 and if you turn on "routerTrace" , ns will trace all the routing packet for every node please see examples in http://www-mash.cs.berkeley.edu/ns/tutorial/index.html Kun-chan Lan