=?windows-1256?q?ns2_classifiers_and_slot=5F=FE?=
Tooba Ahsen <[email protected]> Tue, 31 May 2016 10:02:10 +0500
| Newsgroups | gmane.network.simulator.isi |
|---|---|
| Message-ID | <[email protected]> |
Hi,I need help with the classifier object in ns2.My topology is multipath. For one destination, I have multiple nodes through which I can forward the packet, and I want to pick and choose which node we forward the packet to. I have tried a few approaches, using the slot_ array and the neighbor_list_ but they haven't worked. I have some questions that need to be answered. 1) The neighbor_list_ in the node.cc file seems to be empty, even though logically, it should have all the neighboring nodes of a articular node. When exactly is the neighbor_list_ populated?2) The slot_ array in the classifier.cc file should essentially contain pointers to the classifiers of the neighboring nodes, but there are some other objects aswell, besides classifier objects. What kinds of objects are these? Address and port classifiers or some other intermediary objects?3) I have assigned node IDs to every node. These node ids can be accessed by the classifiers that are connected to these nodes. When I receive a packet in the recv function (in classifier.cc), I want to be able to get a classifier of one of these nodes using the node ID and then forward the packet to that classifier. But traversal of the slot_ array gives NsObjects, some of which are classifiers but not all. How exactly do I go about accessing classifiers connected to these objects?It would be really helpful if some of these questions could be answered. Any help would really be appreciated.Regards,Tooba