Hi,

I 'm doing wired scenario using NS2.I'm using TCP as protocol and FTP as an
application. to illustrate my question, I'll put an example:

N3 ------N0-------N1-----N2

I created the TCP agent on N3 and TCP Sink on N2. I need to apply some
conditions in my scenario and they are based on Node id. the question is "
during the simulation, each packet will be sent from N3 to N2 through N0 and
N1, I need to know how can I get the current node id and next node and
previous node at any time???


Your help is highly appreciated

Regards,
Mohammed 
-- 
View this message in context: 
http://old.nabble.com/Current-node-id-and-previous-and-next%21%21-tp30792496p30792496.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to