📄 readme
字号:
To install:* cd to your ns-2.29/ directory* cp -r dsr dsr_backup* rm -rf dsr* tar xvzf dsr_misbehaving_1.0.tar.gz (you need to put dsr_misbehaving_1.0.tar.gz in ns-2.29/.* "make" in ns-2.29/When running a simulation, if you want to have malicious, selfish and/or faulty nodes, create a file named "nodes.info" with the following structure:[malicious]0 1 2 3 4[selfish]3 4 5 6[faulty]7 10 208 11 15The numbers should be replaced with the nodes you want to be malicious/selfish. If you dont want any malicious nodes, leave the line containing the numbers blank, same goes for selfish. The format for faulty nodes is <node_id> <begin_faulty_time> <end_faulty_time>. The "nodes.info" file should exist in the directory you run the simulation in, ie, where you execute the command "ns script.tcl".MALICIOUS NODES:---------------* accept and forward route requests correctly, in order to add themselves to routes that can be used by other nodes to forward traffic.* when a node actually wishes to forward traffic through them, they drop all packets (do not forward), effectively performing a denial of service attack.* the monitor is meant to detect these nodes, by hearing that they do not forward traffic in a reasonable amount of time.SELFISH NODES:-------------* drop route requests so as to attempt to never get onto a route, so that they will never have to forward traffic for anyone.* perform route requests of their own in order to use other nodes to send their own traffic throughout the network.* the chip economy is meant to detect these nodes who escape getting on routes and so cannot be detected by the monitor since they will never be asked to forward traffic.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -