Tags:
create new tag
, view all tags
The program is called from the command line in terminal and different options must be used depending on needs.

This is the basic command used to call Wisenet: python wisenet.py -a XX --pro --sym

This command calls Wisenet with the Virtual Localization program with Geographic Routing (-r, --hop and --bp are optional): python wisenet.py -a XX --pro --sym --virtloc (-r) (--hop) (--bp=BP)

This command calls the Virtual Localization program with physical location-based Geographic Routing: python wisenet.py -a XX --pro --sym --virtloc (-r) (--hop) --geo --rootnode=YY

This command calls the Virtual Localization program with Geographic Routing and Packet Generator: python wisenet.py -a XX --pro --sym --virtloc (-r) (--hop) -d YY -g -i AA --alrate=BB -n CC

Command/Option Notes
python wisenet.py Basic command to call Wisenet
-a XX Address of current node (XX is the node ID)
--pro Used to enable prologue
--sym Used to enable symbolization
--virtloc Opens Wisenet with Virtual Localization enabled
-r Specifies that current node is the root node
--hop Enables mean hop count information to be collected For accurate data, all nodes in the network must have have this enabled
--bp=BP Set time period (seconds) between beacon packets (default = 3.0)
--geo Enables physical location-based Geographic Routing
--rootnode=YY Specifies the address of the root node (YY is the node ID) Used for physical location of root node (not required for virtual locations)
-d YY Specify destination address (root node) (YY is root node ID)
-g Starts packet generator
-i AA Starts packet generator with initial time delay (AA is delay in seconds) A delay of at least 10 seconds is recommended to allow for some convergence to the virtual network
--alrate=BB Specifies the number of packets generated per second (typically BB = 0.1 or 0.2)
-n CC Specifies the number of packets to send (default 40)

Table 1.4 Virtual Localization Options

Visualization functions are simply called as follows: python draw_links.py python draw_links3d.py --virtloc

Data packets are always forwarded to the root node, which has a known virtual location at (0, 0, 0). For best performance, it is recommended that the program is exited using CTRL+C for graceful closure.

Relevant file(s): virtloc_module.py, draw_links.py, draw_links3d.py Input file(s): phys_loc_table.csv Output file(s): VL_log_XX.csv, VL_onehop_XX.csv, VL_twohop_XX.csv, VL_hop_count.csv (in results_VL)

-- XiaohongWu - 2012-01-24

Topic revision: r2 - 2012-01-24 - XiaohongWu
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback