[OMNeT++] Aassign parameters to another (from different network)

69 views
Skip to first unread message

v100 dolin

unread,
May 14, 2020, 9:05:16 PM5/14/20
to OMNeT++ Users
Dear all,

I am not familiar with omnet ++ and C ++.
Do you have any ideas on how to assign parameters to another?
The parameters come from different networks.
(Kindly please see the attached files.)

For example,
  Assign node [0] to host [0] as group manager


thanks for your help.:)
network TreeNed.PNG
network Lan80211.PNG
Lan80211 Topology.PNG

Alfonso Ariza Quintana

unread,
May 15, 2020, 4:02:26 AM5/15/20
to OMNeT++ Users
I am no sure what to yo want, you can add a parameter to the application that must know the manager for example
string managerNodeId;

And in the ini files you can include this information

**.host[0].**.managerNodeId = "node[0]"

And in the maneger node you can read the parameter and identify the node, and later, you can use L3AddressResolve to translate the name to the IP address of the manager.

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de v100 dolin <dolin...@gmail.com>
Enviado: viernes, 15 de mayo de 2020 3:05
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] [OMNeT++] Aassign parameters to another (from different network)
 
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/fde628d8-62ce-4683-a5ae-c3d3f3e06432%40googlegroups.com.

v100 dolin

unread,
May 15, 2020, 12:03:39 PM5/15/20
to OMNeT++ Users
Dear Alfonso Ariza Quintana ,

Thank you for your help.

My goal is to integrate these two topologies.
In other words, I hope that the star topology (network Lan80211) will be an n-ary tree topology (network TreeNed).

I tried to set **.host[0].**.managerNodeId = "node[0]" in the omnetpp.ini.
However, it indicates that this is an unused entry.
I might forget some necessary settings.

Thank you again for your quick reply.



v100 dolin於 2020年5月15日星期五 UTC+8上午9時05分16秒寫道:

Alfonso Ariza Quintana

unread,
May 15, 2020, 12:11:47 PM5/15/20
to omn...@googlegroups.com
You need an application in c++ that could read the parameter, in this moment the code doesn't include the code that you want, you need to implement it, the protocol.

Enviado: viernes, 15 de mayo de 2020 18:03
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: [OMNeT++] Assign parameters to another (from different network)
 
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.

v100 dolin

unread,
May 15, 2020, 12:18:00 PM5/15/20
to OMNeT++ Users

Dear Alfonso Ariza Quintana, 

Thank you for your quick reply.

I will try to implement a function to read the parameter in a C ++ file.

Have a nice day.






v100 dolin於 2020年5月15日星期五 UTC+8上午9時05分16秒寫道:

v100 dolin

unread,
May 24, 2020, 11:59:15 PM5/24/20
to OMNeT++ Users
Dears,

Could you please share some hints about L3AddressResolve ?
Is there any sample about L3AddressResolve?
I am not familiar with it .

Thank you for your help :)



Alfonso Ariza Quintana於 2020年5月15日星期五 UTC+8下午4時02分26秒寫道:
I am no sure what to yo want, you can add a parameter to the application that must know the manager for example
string managerNodeId;

And in the ini files you can include this information

**.host[0].**.managerNodeId = "node[0]"

And in the maneger node you can read the parameter and identify the node, and later, you can use L3AddressResolve to translate the name to the IP address of the manager.


Enviado: viernes, 15 de mayo de 2020 3:05
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] [OMNeT++] Aassign parameters to another (from different network)
Dear all,

I am not familiar with omnet ++ and C ++.
Do you have any ideas on how to assign parameters to another?
The parameters come from different networks.
(Kindly please see the attached files.)

For example,
  Assign node [0] to host [0] as group manager


thanks for your help.:)

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.

Alfonso Ariza Quintana

unread,
May 25, 2020, 4:29:03 AM5/25/20
to omn...@googlegroups.com
You can find many cases in inet where the code use l3addressresolver


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de v100 dolin <dolin...@gmail.com>
Enviado: lunes, 25 de mayo de 2020 5:59
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] [OMNeT++] Aassign parameters to another (from different network)
 
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/9a3cbf26-521a-488c-8317-c979f93e5a18%40googlegroups.com.

v100 dolin

unread,
May 25, 2020, 11:26:17 AM5/25/20
to OMNeT++ Users
Dear Alfonso Ariza Quintana,

Thank you for your information.
Could I find the cases in the showcases of inet ?

Thank you for your help :)


Alfonso Ariza Quintana於 2020年5月25日星期一 UTC+8下午4時29分03秒寫道:
You can find many cases in inet where the code use l3addressresolver


Alfonso Ariza Quintana

unread,
May 25, 2020, 11:38:03 AM5/25/20
to OMNeT++ Users
Better in the source code, most of the sources uses L3AddressResolver to translate the name of the destination node to the ip address of the destination address.

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de v100 dolin <dolin...@gmail.com>
Enviado: lunes, 25 de mayo de 2020 17:26
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/fa6ec6f6-bbaf-483e-b749-ed3a55e1108f%40googlegroups.com.

v100 dolin

unread,
May 25, 2020, 10:52:19 PM5/25/20
to OMNeT++ Users
Dear Alfonso Ariza Quintana,

Thank you for your quick reply.

I did not find L3addressResolver information in some source code of inet.
  • path :
    • inet-3.2.4-src\src\inet\common
    • inet-3.2.4-src\src\inet\linklayer
Does this mean that I can find L3AddressResolver examples in other folders?


Thank you in advance


Alfonso Ariza Quintana於 2020年5月25日星期一 UTC+8下午11時38分03秒寫道:
Better in the source code, most of the sources uses L3AddressResolver to translate the name of the destination node to the ip address of the destination address.

inet-3.2.4-src.PNG

Alfonso Ariza Quintana

unread,
May 26, 2020, 5:05:07 AM5/26/20
to omn...@googlegroups.com
L3AddressResolver is used by all sources in the directory app, if you use an all version of inet it is possible that the name could be different.

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de v100 dolin <dolin...@gmail.com>
Enviado: martes, 26 de mayo de 2020 4:52
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/6ffc18ae-3ca5-482e-8804-02cd8e064663%40googlegroups.com.

v100 dolin

unread,
May 26, 2020, 10:59:32 PM5/26/20
to OMNeT++ Users
Dear Alfonso Ariza Quintana,

Thank you for your information.

I will try to understand how to use L3AddressResolver.
  • Example:  inet-3.2.4-src\src\inet\applications\voip\SimpleVoipSender

Thank you again.



Alfonso Ariza Quintana於 2020年5月26日星期二 UTC+8下午5時05分07秒寫道:
L3AddressResolver is used by all sources in the directory app, if you use an all version of inet it is possible that the name could be different.

Reply all
Reply to author
Forward
0 new messages