node on off in heterogeneous network based on mac
Hello all;
- I'm trying to make a scenario where nodes states are on / off besed on returned (mac address) or (network type) in heterogeneous network - to make node on or off or sleep or wakeup "onoff-30-3-3-1-1-500-10.tcl" "tcl\test"or "cbr-10-1-10-20" "tcl/mobility/scene" - like in nist-mob examples the current mac could be obtained through Quote:
and make node on or off Quote:
Quote:
if (link_type_t == LINK_802_11) make 802_11 interface on make 802_16 interface off make umts interface off where to make this scenario in .cc or tcl example Quote:
Quote:
if yes how to make condition on node id or node mac in my tcl example "testMIH.tcl" i search and found this Quote:
|
Simulator name and version is missing.
I.e. if ns2, must be included in the title line / the text. And the added patch(es) must be specified. MIH ? Quote:
|
Hello knudfl;
thanks for your reply .. - the used ns2 version is "ns-2.29" - the used MIH nist patch "ns-2.29-nist-mob-022707" - PDF describe the work i'm trying to do "Integrate MIH with power management technique " https://drive.google.com/file/d/0ByC...ew?usp=sharing - the management technique include powering off the interfaces not in use in MIH while only power on the interface in use or - enter the un-used interface in sleep mode and wake it up through paging message from mih server ..... search results found 1) could power on/off interface through tcl example Quote:
how to do this through tcl?????? 3) the other method i found is to do this through .cc file by code in #1 how to access data in tcl through .cc to make node on/off Quote:
couldn't make use of above url.... i read "Linkage Between OTcl and CCC in NS2" chapter in ns manual but didn't know from where to start... Quote:
again thank you knudfl... |
OK, nist-mob it is. Same as NS-MIH-MULTI-CRITERIA →
NS-MIH-MULTI-CRITERIA/scripts The scripts are included in the nist examples, nist-examples-2016-2.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing ? May be the scripts/ folder has something you can use ? The tcl simulations are multiMN.tcl, umts-80211-80216.tcl . There are two bash scripts to run different simulation commands : ABCpref.sh, distance.sh . ← Please read the scripts, the commands. About »»how to access value in tcl script from .cc files«« ( https://stackoverflow.com/questions/...-from-cc-files ) .... So far concerns the executable 'ns' there are no files.cc . All c++ functions and otcl functions (tcl/lib/ns-*.tcl) are compiled into 'ns'. So actually ns-2.xx can be deleted when built, and 'make install' has copied ns to /usr/local/bin/. - |
thanks knudfl;
all work related to nist-mob i have done successfully and i need to merge (power saving) with such scenarios .. i checked examples in attached url but non achieve this point.. "umts-80211-80216.tcl" resulted trace not have energy indication how to trace energy in this example - the way to achieve this is by energy-model class in ns2 and all search results i have in #1 , #3 but i missed linkage c++ and otcl https://askubuntu.com/questions/6875...o-sleep-in-ns2 netif 1 wifi on netif 2 wimax off netif 3 umts off when current connected interface is wifi shutdown all other interfaces to save battery consumption but i need it to be done automatically and not made on/off in tcl example... Q2) when i re-compile ns2 after any change ns-allinone-2.29/ns-2.29$ ./configure make clean make make install <<<< give me error Quote:
and worked ok does (./install) in main directory compensate for (make install) in ns-2.29 directory thanks in advance .. i really appreciate your help.. |
Hello All;
after merging energy model commands in tcl example with any nist-mob example in attached examples "testMIH.tcl" the resulted trace looks like Quote:
have mac 0 1 2 3 4 thanks |
Re #5.
Quote:
Missing information : OS Name, version, architecture : $ uname -m Note: Code, output, error output → Must be in CODE Tags ... not Quote Tags http://www.linuxquestions.org/questi....php?do=bbcode Like [code]code text[/code] .... Please edit your posts. - |
All times are GMT -5. The time now is 06:02 PM. |