What have we done: Simulated the spread of worms with different patterns in a busy Internet environment.
Please Check the FinalRelease folder for the latest code.
Collaborators:
-
Xueyang Xu
-
Yunwei Qiang
-
Nan Li
-
Wenxin Fang
-
Xingyu Liu
All source code is included in code.zip.
Report.pdf is the report of this project.
To run the program, use commands like following example:
# If your folder that contains all codes has the name "final".
mpirun -np 1 ./waf --run "final --ScanRate=5 --ScanPattern=Uniform
BackbonDelay=10ms --backBoneRate=1Gbps"
##Currently Available Parameters
Name | Example | Comment |
---|---|---|
ScanRate | 5 | Scan rate of the worm. |
ScanPattern | Uniform | Scan pattern of the worm. |
simtime | 1.5 | Total simulation length, in second. |
vulnerability | 0.62 | The probability of a node can be infected. |
patch | True | Enable patching or not. |
BackboneDelay | 10ms | Delay of backbone connections. |
nix | False | Enable NIX vector or not. |
hubInnerRate | 1Mbps | Bandwidth of between hub and inner nodes. |
innerChildRate | 500Kbps | Bandwidth of between inner nodes and children. |
backBoneRate | 1Gbps | Bandwidth of between hubs. |
backGroundTraffic | 50Mbps | Adjust the seriousness of background traffic. |
If you wish to use a larger/smaller topology, please modify line 156-158.