ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I was trying to simulate a wireless network with two nodes.The program is running but the trace file contains only information about the packets that is dropped at the end of simulation. What could be the problem? i am sending the coding here with
Thanks in advance
set val(chan) Channel/WirelessChannel
set val(prop) Propagation/TwoRayGround
set val(ant) Antenna/OmniAntenna
set val(ll) LL
set val(ifq) Queue/DropTail/PriQueue
set val(ifqlen) 50
set val(netif) Phy/WirelessPhy
set val(mac) Mac/802_11
set val(rp) AODV
set val(nn) 2
set ns [new Simulator]
set tracefile [open wireless.tr w]
$ns trace-all $tracefile
set namtracefile [open wireless.nam w]
$ns namtrace-all-wireless $namtracefile 500 500
set topo [new Topography]
$topo load_flatgrid 500 500