11"""
2- Author : zhifenghan
32
4- Date : 2025/05/10
3+ StarPerf 2.0
54
6- Function : Start network simulation to reproduce the results
5+ Python version requirements : Python 3.10
6+
7+ Added implementation of security simulation
78
89"""
910
1011def main ():
12+ print ("Starting StarPerf..." )
13+
14+
15+ print ("Starting XML Constellations Testing..." )
16+ # test the core module functionality of various XML constellations
17+ import samples .XML_constellation .XML_constellation_test_cases
18+ samples .XML_constellation .XML_constellation_test_cases .XML_constellation_test_cases ()
19+ print ("END." )
20+
21+ print ("Starting TLE Constellations Testing" )
22+ # test the core module functionality of various TLE constellations
23+ import samples .TLE_constellation .TLE_constellation_test_cases
24+ samples .TLE_constellation .TLE_constellation_test_cases .TLE_constellation_test_cases ()
25+ print ("END." )
26+
27+ print ("Starting Standalone Module Testing..." )
28+ # test each standalone module under "src/standalone_module/" in starperf 2.0
29+ import samples .standalone_module .standalone_module_test_cases as standalone_module_test_cases
30+ standalone_module_test_cases .standalone_module_test_cases ()
31+ print ("END." )
32+
33+ print ("Starting Tool Scripts Testing..." )
34+ # test each tool script under "kits/" in starperf 2.0
35+ import samples .kits .kits_test_cases as KITS_TEST_CASES
36+ KITS_TEST_CASES .kits_test_cases ()
37+ print ("END." )
38+
39+ """
40+ This will test the functionality of duration constellation. It is similar to the previously
41+ implemented XML Constellation, but supports customizing the simulation time and simulation
42+ sampling interval (XML Constellation currently only supports simulation of the entire orbital period)
43+ """
1144 print ("Start simulation performance and indicators testing" )
1245 import samples .duration_constellation .duration_constellation_cases
1346 samples .duration_constellation .duration_constellation_cases .constellation_performance ()
47+ print ("END." )
1448
1549 """
1650 This will take the longest time. On a 4-core Intel Xeon Processor (Icelake) processor,
@@ -20,15 +54,18 @@ def main():
2054 print ("Start benign traffic generation" )
2155 import samples .traffic .traffic_generation_cases
2256 samples .traffic .traffic_generation_cases .traffic_generation ()
57+ print ("END." )
2358
2459 """
25- Energy consumption attacks require longer traffic generation time (11s)
60+ Energy consumption attacks require longer traffic generation time, because the implementation
61+ period of the attack is usually measured in months and years. In the example here, I only
62+ implemented a simulation of dT=500 for one orbital period, which requires 11s of traffic generation.
2663 """
2764 print ("Start LEO network security simulation" )
2865 import samples .attack .attack_cases
2966 samples .attack .attack_cases .attack_cases ()
30-
31- print ( "END" )
67+ print ( "END." )
68+
3269
3370
3471if __name__ == '__main__' :
0 commit comments