Omnet++ : Ad Hoc Network

我怕爱的太早我们不能终老 提交于 2019-12-06 12:55:44

问题


I am new to Omnet++. Although I have tried some basic examples such as Tic-Toc and Source-Sink, I cannot figure out how to implement more sophisticated networks.

Problem : I want to implement Ad Hoc Network. I have tried examples given in INET but they only ping each other and reply. They do not exchange actual messages. I want my network to have actual information in form of messages and then communicate these messages through ad hoc network to different nodes. Please help!!


回答1:


You should be fine with the examples in inet/examples/adhoc/ieee80211 and inet/examples/manetrouting.

As for 'real' traffic. You are free to configure any traffic type you wish in the hosts. Pinging is just an example. Take a look at inet/examples/inet/udpburst to see how burting UDP traffic is configured.

Traffic generated by the applications inside a hosts are totally independent of how they are communicating (just as in real life). I can ping and run a browser equally with both a wireless and a wired connection.

i.e. you CAN combine the different examples.



来源:https://stackoverflow.com/questions/13985113/omnet-ad-hoc-network

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!