http://mailman.isi.edu/pipermail/ns-users/2005-March/047812.html
Hi all,
I'm trying to create a mobile node with two mac layers. ns2 manual suggest to use the add-interface method as fallows:
============================ spec ==================
Node/MobileNode instproc add-interface {channel pmodel lltype mactype qtype qlen iftype anttype}
Can any of you please explain me the meaning of instproc in the previous line? Any help is appreciated
Thank so much
Hi:
I have a code similar to the one below to create multiple interfaces for
each node:
.....
# Create channel #1 and #2
set chan_(0) [new $val(chan)]
set chan_(1) [new $val(chan)]
$ns_ node-config -adhocRouting $val(rp) \
......
-channel $chan_(0) \
.......
set node_(0) [$ns_ node]
set node_(1) [$ns_ node]
set pmodel1 [ new $val(prop) ]
set pmodel2 [ new $val(prop) ]
$node_(0) add-interface $chan_(1) $pmodel1 $val(ll) $val(mac) $val(ifq)
$val(ifqlen) $val(netif) $val(ant) $topo "" "" ""
$node_(1) add-interface $chan_(1) $pmodel2 $val(ll) $val(mac) $val(ifq)
$val(ifqlen) $val(netif) $val(ant) $topo "" "" ""
But I receive the following error:
Scheduler: Event UID not valid!
Can anybody help me?
Thanks a lot,
Hossein
Hi all,
I'm trying to create a mobile node with two mac layers. ns2 manual suggest to use the add-interface method as fallows:
============================ spec ==================
Node/MobileNode instproc add-interface {channel pmodel lltype mactype qtype qlen iftype anttype}
Can any of you please explain me the meaning of instproc in the previous line? Any help is appreciated
Thank so much
Hi:
I have a code similar to the one below to create multiple interfaces for
each node:
.....
# Create channel #1 and #2
set chan_(0) [new $val(chan)]
set chan_(1) [new $val(chan)]
$ns_ node-config -adhocRouting $val(rp) \
......
-channel $chan_(0) \
.......
set node_(0) [$ns_ node]
set node_(1) [$ns_ node]
set pmodel1 [ new $val(prop) ]
set pmodel2 [ new $val(prop) ]
$node_(0) add-interface $chan_(1) $pmodel1 $val(ll) $val(mac) $val(ifq)
$val(ifqlen) $val(netif) $val(ant) $topo "" "" ""
$node_(1) add-interface $chan_(1) $pmodel2 $val(ll) $val(mac) $val(ifq)
$val(ifqlen) $val(netif) $val(ant) $topo "" "" ""
But I receive the following error:
Scheduler: Event UID not valid!
Can anybody help me?
Thanks a lot,
Hossein