[ns] How to create sequential nodes IDs and flow ID
barca Rona
rona_barca at yahoo.fr
Tue Jul 26 08:16:57 PDT 2005
Hi,
I want to create the source and destination node,that
nodes' ids are sequential (i.e. the first node defined
has id 0, the second has id 1, and so on), while the
flow id can be either sequential, as for the nodes',
thanks
regards
rona
#Setup a mUDP connection
########################
set sink_1h [new Agent/mUDP]
#set the sender trace file name (sd)
$sink_1h set_filename sd_1h
$sink_1h set class_ 1
#$sink_1h set prio_ 0
$ns attach-agent $host(1) $sink_1h
set sink_1m [new Agent/mUdpSink]
#set the receiver trace file name (rd)
$sink_1m set_filename rd_1m
$ns attach-agent $mobile(1) $sink_1m
$ns connect $sink_1h $sink_1m
$sink_1h set fid_ 1
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
More information about the Ns-users
mailing list