[ns] Fwd: mobile nodes: add characteristics
Josu Bagazgoitia
jbagaz at gmail.com
Thu Jun 30 08:42:43 PDT 2005
---------- Forwarded message ----------
From: Josu Bagazgoitia <jbagaz at gmail.com>
Date: 30-jun-2005 17:03
Subject: mobile nodes: add characteristics
To: ns-users at isi.edu
Hi!!!
I hope you understand my problem. My english is not very good.
I am implementing a service discovery mechanism over OLSR ad-hoc routing
protocol. I want to modify mobile nodes definition in order to say in the
tcl simulation script: at 20.0 node_(1) has access to the Internet for 200
seconds.
I am working with files to simulate node`s cache memory. What I want to do
is that when a user defines that a node has a new service at any time (`x`
second), I would like to write it into those file. Then, the announce of
that service I have already implemented.
I also would like to be able to define services from the beginnig. I do not
know if I explained my problem well. As an example I show what I would like
to be a definition of a mobile node:
set val(service1) 20 ;# 20 represents gateway service (access to the
Internet)
set val(service2) 12 ;# 12 represents game service
$ns_ node-config -adhocRouting $val(adhocRouting) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-service $val(service1) \
-service $val(service2)
:
:
:
$ns_ at 50.0 "$node_(1) service 25 time-to-live 100.0"
Does anyone know which files should I modify (or add) in order to achieve my
objective?
THANK YOU VERY MUCH
BAGAZ
More information about the Ns-users
mailing list