[ns] Wireless one way broadcast
-- From: Sunil K Sent: 29-03-2012 AM 11:56 To: ns-users@isi.edu Subject: Wireless one way broadcast Hi , I am planning on a small project and need help regarding its feasibility. I have a few wireless mobile devices (could be phones and laptops) which periodically broadcast packets and also each device listens for other broadcasts. Any device in range should receive the broadcasted data (no need to reply or acknowledge or re-broadcast) , its ad hoc, in fact I don't even need to connect. 1.To perform this can I just send UDP packets with address 255.255.255.255, I heard this was deprecated. If so how do I achieve this? There is no underlying network topology so I cannot rely on multicast or is there a way? 2.If there are 100 such devices, all in wireless range, each 1 performing a periodic broadcast and receive, will it work? will there be too many collisions ? and become infeasible. Each device receiving 70% of the packets is a good performance according to me. Thank You
[ns] Help from people working on WSN in NS2
Hello All, I need a sample program for WSN in NS2. Can any one tell me the default transmission range of a sensor node and how to put a node in sleep mode and again to wake up the node. -- Thanks & Regards, Venky
[ns] tcl problem
i want to give time to link from n0 to all other nodes but by (for) statment like tcp but i can't can you help me #Create a simulator object set ns [new Simulator -multicast on] # Dense Mode Multicast Protocol set mproto DM set mrthandle [$ns mrtproto $mproto {}] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf # all nodes will contain multicast protocol agents; set mrthandle [$ns mrtproto $mproto] #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exec nam out.nam & exit 0 } #create 4 node for {set i 0} {$i < 4} {incr i} { set n($i) [$ns node] } set tcpsrc [new Agent/TCP] $ns attach-agent $n(0) $tcpsrc #TCP Sources, destinations, connections for {set i 1} {$i <= 3} { incr i } { set tcp_snk($i) [new Agent/TCPSink] $ns attach-agent $n($i) $tcp_snk($i) $ns connect $tcpsrc $tcp_snk($i) set ftp($i) [$tcpsrc attach-source FTP] } $ns duplex-link $n(0) $n(1) 1Mb 10ms DropTail $ns duplex-link $n(0) $n(2) 1Mb 10ms DropTail $ns duplex-link $n(0) $n(3) 1Mb 10ms DropTail $ns at 10.0 "finish" #Run the simulation $ns run