Hello all, I'm fairly new at extending ns2, but I have a specific problem I am working on. I have a dumbbell topology as follows:
8 7 12 2 3 \ | \ | / 9 -- 1 ----- 0 -- 4 / | | \ 10 11 6 5 Where nodes 2, 3, 4, 5, and 6 are sending to 7, 8, 9, 10 and 11, respectively. What I want to do is that for every 5 seconds I want to sample a packet from 0 and send it to 12 for inspection. I was looking at the ns2 manual and I figured the easiest way to do this is by creating a routing module very similar to the base module except it would duplicate a packet every 5 seconds and send it to 12. Is there an easier way to do this? If this is the best way to do it, how would I go about making my own routing module for this purpose? The manual was fairly cryptic about this, and this seems like an easy task. Also, when 12 receives a packet I wanted it to do some computation then send a message back to 0. I figured I would just create an agent that does this. Is that the way to go about it? The transport protocol between 12 and 0 are mostly irrelevant here. Thanks for your help in advance. -- Eric Heim Graduate Student University of Pittsburgh Computer Science Department Office: 5324 Sennot Square Website: www.cs.pitt.edu/~eth13