Skip to content

network topology generation #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
378 changes: 378 additions & 0 deletions examples/scion/S08-topo-generation-01/1221_r0.cch

Large diffs are not rendered by default.

4,746 changes: 4,746 additions & 0 deletions examples/scion/S08-topo-generation-01/15_geo_rel.xml

Large diffs are not rendered by default.

1,218 changes: 1,218 additions & 0 deletions examples/scion/S08-topo-generation-01/5_geo_rel.xml

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions examples/scion/S08-topo-generation-01/caida_topo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env python3

from seedemu.compiler import Docker,Graphviz
from seedemu.generators import DefaultScionGenerator, CommonRouterForAllIF
from seedemu.generators.providers import CaidaDataProvider
from seedemu.core import Emulator, Binding, Filter
from seedemu.core.enums import NetworkType
from seedemu.generators.intra import IntraASTopoReader,ASTopology, TopoFormat
from seedemu.layers import ScionBase, ScionRouting, ScionIsd, Scion,Ospf,Ibgp
from seedemu.layers.Scion import LinkType as ScLinkType

""" ___ _____ __ __ __
/ | / ___/ / /_____ ____ ____ / /___ ____ ___ __ ________ ____ _____/ /__ _____
/ /| | \__ \ / __/ __ \/ __ \/ __ \/ / __ \/ __ `/ / / / / ___/ _ \/ __ `/ __ / _ \/ ___/
/ ___ |___/ / / /_/ /_/ / /_/ / /_/ / / /_/ / /_/ / /_/ / / / / __/ /_/ / /_/ / __/ /
/_/ |_/____/ \__/\____/ .___/\____/_/\____/\__, /\__, / /_/ \___/\__,_/\__,_/\___/_/
/_/ /____//____/ 2024
"""

provider = CaidaDataProvider("5_geo_rel.xml")

generator = DefaultScionGenerator(provider,CommonRouterForAllIF)

emu = generator.generate(2,7)


base = emu.getLayer('Base')
reg = emu.getRegistry()
for asn in provider.getASes():

_as = base.getAutonomousSystem(asn)
_as.setBeaconingIntervals('90s', '90s', '90s')
host = _as.createHost('host00')
for netname in _as.getNetworks():
net = _as.getNetwork(netname)
if net.getType() == NetworkType.Local:
host.joinNetwork(net.getName())
break



emu.render()

# Compilation
emu.compile(Docker(), './output')
#emu.compile(Graphviz(), './output_graph')

196 changes: 196 additions & 0 deletions examples/scion/S08-topo-generation-01/orbis_hot_simplified_3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
0 1
0 2
0 3
0 4
0 5
1 11
1 12
1 13
1 14
2 30
2 12
2 38
2 39
3 116
3 135
3 13
3 155
4 30
4 135
4 32
4 170
5 171
11 15
11 16
11 17
11 18
12 16
12 40
12 41
13 118
13 17
13 158
14 359
15 20
15 21
15 22
15 23
16 21
16 43
16 44
17 121
17 22
17 159
18 369
20 25
20 26
20 27
20 28
21 26
21 47
21 48
22 125
22 27
22 163
23 377
25 30
25 31
25 32
25 33
26 31
26 49
26 50
27 130
27 32
27 164
28 385
30 35
30 36
31 35
31 56
31 57
32 132
32 166
33 393
35 38
35 58
35 59
36 401
38 40
38 61
38 62
39 410
40 43
40 66
40 67
41 413
43 47
43 72
43 73
44 421
47 49
47 76
47 77
48 432
49 56
49 78
49 79
50 446
56 58
56 81
56 82
57 478
58 61
58 84
58 85
59 481
61 66
61 89
61 90
62 487
66 72
66 91
66 92
67 499
72 76
72 94
72 95
73 519
76 78
76 98
76 99
77 530
78 81
78 103
78 104
79 533
81 84
81 109
81 110
82 539
84 89
84 111
84 112
85 589
89 91
89 116
89 117
90 681
91 94
91 118
91 119
92 697
94 98
94 121
94 122
95 707
98 103
98 125
98 126
99 719
103 109
103 130
103 131
104 731
109 111
109 132
109 133
110 746
111 116
111 135
111 136
112 749
116 118
116 140
117 761
118 121
118 141
119 764
121 125
121 143
122 774
125 130
125 146
126 786
130 132
130 148
131 798
132 135
132 152
133 801
135 153
136 810
140 822
141 825
143 835
146 847
148 856
152 868
153 871
155 880
158 892
159 895
163 907
164 910
166 917
170 929
147 changes: 147 additions & 0 deletions examples/scion/S08-topo-generation-01/orbis_hot_super_simple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
0 1
0 2
0 3
0 4
0 5
1 11
1 12
1 13
1 14
2 30
2 12
2 38
2 39
3 116
3 135
3 13
3 155
4 30
4 135
4 32
4 170
11 15
11 16
11 17
11 18
12 16
12 40
12 41
13 118
13 17
13 158
30 25
30 35
30 36
38 35
38 40
38 61
38 62
116 89
116 111
116 118
116 140
135 111
135 132
135 153
32 25
32 27
32 132
32 166
15 20
15 21
15 22
15 23
16 21
16 43
16 44
17 121
17 22
17 159
40 43
40 66
40 67
118 91
118 121
118 141
20 25
20 26
20 27
20 28
21 26
21 47
21 48
22 125
22 27
22 163
43 47
43 72
43 73
121 94
121 125
121 143
25 31
25 33
26 31
26 49
26 50
27 130
27 164
47 49
47 76
47 77
125 98
125 130
125 146
31 35
31 56
31 57
49 56
49 78
49 79
130 103
130 132
130 148
35 58
35 59
56 58
56 81
56 82
132 109
132 152
58 61
58 84
58 85
61 66
61 89
61 90
66 72
66 91
66 92
72 76
72 94
72 95
76 78
76 98
76 99
78 81
78 103
78 104
81 84
81 109
81 110
84 89
84 111
84 112
89 91
89 117
91 94
91 119
94 98
94 122
98 103
98 126
103 109
103 131
109 111
109 133
111 136
Loading
Loading