Dear all,
I am currently getting confused with a problem on InternetstackHelper class. I found in many example files, that the InternetstackHelper should be attached on multiple nodes. For example: InternetStackHelper stack; stack.Install (nodes) etc..
However, the problem I have is that, I defined several classes that all have the private members of both node and device type, i.e. Ptr<Node> m_node and also the Ptr<NetDevice> m_device; I cannot gather all of these nodes together and use a common InternetstackHelper attach on all of them. I am just wondering here, is it possible if I attach this stack to each individual node in each separate class? Can I achieve the same effect (making connections) as the groups of nodes. In other words, it is that: InternetStackHelper stack; stack.Install (node1); stack. Install(node2), where node1 and node2 are individual node coming from different classes.
My overall objective is to assign IPV4 address to all of these nodes (devices), so that I can test the packet transmission between the nodes of interest that I want. For instances, for the vehicle applications, I may have car, truck, motor. Each class of vehicles will eventually be assigned with the IP addresses, and I want to test if it is feasible to set up the communication connection by testing the packet transmission, for example, from the 1st vehicle in car class to the 2nd vehicle in truck class.
Thanks for the help.
Victor