NS2下无线节点之间发送和接收消息

Sending and receiving a message between the wireless nodes under NS2

我在 NS2 中有一个无线网络,我想通过定义节点内容的控制消息在节点之间进行通信。 所以我想知道如何发送和接收这些消息?

示例短信 https://ramakrishnamundugar.blogspot.dk/p/tcl-script-to-demonstrate-message.html 跟踪文件 four.tr 将读取 ...

.
v 68.915850808760979 eval {set sim_annotation {1 received {how are you}}}
.
v 68.915850808760979 eval {set sim_annotation {question: how are you. answer: fine}}
.
v 70.508104551724557 eval {set sim_annotation {0 received {hi}}}
.
v 70.508104551724557 eval {set sim_annotation {question: hi. answer: Thanks}}

Nam:$ nam four.nam 在终端中显示一些文本,在动画期间...

更多信息:请使用Google。 关键字:ns2 send message 和:ns2 send video