One of the frequently asked questions in the community is how to specify which particular nodes would act as source(s) and destination(s) of the messages created in the ONE simulator. The simulator, in fact, provides a pair of settings (shown below in bold face) aimed for this particular purpose. Let us consider that there are $n + 1$ nodes in an OMN. Further, let the nodes with addresses from $x$ to $y$, both inclusive, would create messages. The nodes in the range $w$ to $z$, both inclusive, would be the destinations of those messages, where $0 \le x \le y \le n$, and $0 \le w \le z \le n$. Then, the corresponding simulation scenario can be configured as follows. ## Message creation parameters # How many event generators Events.nrof = 1 # Class of the first event generator Events1.class = MessageEventGenerator # (Following settings are specific for the MessageEventGenerator class) # Creation interval in seconds (one new message every 25 to 35 seconds) Events1.interval = 25
Hi! Barun. I had a chance to meet your mentor(Dr. Sudip Misra if I am not wrong) while he came to deliver an invited session on Opportunistic Network in Jadavpur University. I am Suvadip Batabyal, pursuing PhD. on the very same topic i.e. OpNet. I have been involved in this area of research for past 1.5 years. I am trying to solve the very question which you have asked. And I have come up with interesting results.
ReplyDeleteSuvadip,
ReplyDeleteThanks for the message! Great to know about your research, and that you have found answers to the questions raised here. Wishing you the best!