-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·345 lines (262 loc) · 23.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
p4-leaf-ecmp: p4src/src/leaf.p4
$(info *** Building P4 program for the leaf switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/leaf.json \
--p4runtime-files p4src/Build/leaf_p4info.txt --Wdisable=unsupported \
p4src/src/leaf.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_ECMP -DECN_ENABLED
sudo cp ./p4src/Build/leaf.json /tmp/
sudo cp ./p4src/Build/leaf_p4info.txt /tmp/
@echo "*** P4 program for leaf switch compiled successfully! Output files are in p4src/Build"
p4-spine-ecmp: p4src/src/spine.p4
$(info *** Building P4 program for the spine switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/spine.json \
--p4runtime-files p4src/Build/spine_p4info.txt --Wdisable=unsupported \
p4src/src/spine.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_ECMP -DECN_ENABLED
sudo cp ./p4src/Build/spine.json /tmp/
sudo cp ./p4src/Build/spine_p4info.txt /tmp/
@echo "*** P4 program for spine switch compiled successfully! Output files are in p4src/Build"
p4-ecmp: p4-leaf-ecmp p4-spine-ecmp
$(info *** Building P4 program with ECMP routing for the leaf and spine switch...)
p4-leaf-cp-assisted-multicriteria-policy-routing-without-rate-control: p4src/src/leaf.p4
$(info *** Building P4 program for the leaf switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/leaf.json \
--p4runtime-files p4src/Build/leaf_p4info.txt --Wdisable=unsupported \
p4src/src/leaf.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING
sudo cp ./p4src/Build/leaf.json /tmp/
sudo cp ./p4src/Build/leaf_p4info.txt /tmp/
@echo "*** P4 program for leaf switch compiled successfully! Output files are in p4src/Build"
p4-spine-cp-assisted-multicriteria-policy-routing-without-rate-control: p4src/src/spine.p4
$(info *** Building P4 program for the spine switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/spine.json \
--p4runtime-files p4src/Build/spine_p4info.txt --Wdisable=unsupported \
p4src/src/spine.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING
sudo cp ./p4src/Build/spine.json /tmp/
sudo cp ./p4src/Build/spine_p4info.txt /tmp/
@echo "*** P4 program for spine switch compiled successfully! Output files are in p4src/Build"
p4-cp-assisted-multicriteria-policy-routing-without-rate-control: p4-leaf-cp-assisted-multicriteria-policy-routing-without-rate-control p4-spine-cp-assisted-multicriteria-policy-routing-without-rate-control
$(info *** Building P4 program with CP assisted multicriteria policy based routing -without-rate-control for the leaf and spine switch...)
p4-leaf-cp-assisted-multicriteria-policy-routing-with-path-reveirication--without-rate-control: p4src/src/leaf.p4
$(info *** Building P4 program for the leaf switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/leaf.json \
--p4runtime-files p4src/Build/leaf_p4info.txt --Wdisable=unsupported \
p4src/src/leaf.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING -DPATH_REVERIFICATION_ENABLED
sudo cp ./p4src/Build/leaf.json /tmp/
sudo cp ./p4src/Build/leaf_p4info.txt /tmp/
@echo "*** P4 program for leaf switch compiled successfully! Output files are in p4src/Build"
p4-spine-cp-assisted-multicriteria-policy-routing-with-path-reveirication-without-rate-control: p4src/src/spine.p4
$(info *** Building P4 program for the spine switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/spine.json \
--p4runtime-files p4src/Build/spine_p4info.txt --Wdisable=unsupported \
p4src/src/spine.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING -DPATH_REVERIFICATION_ENABLED
sudo cp ./p4src/Build/spine.json /tmp/
sudo cp ./p4src/Build/spine_p4info.txt /tmp/
@echo "*** P4 program for spine switch compiled successfully! Output files are in p4src/Build"
p4-cp-assisted-multicriteria-policy-routing-with-path-reveirication-without-rate-control: p4-leaf-cp-assisted-multicriteria-policy-routing-with-path-reveirication-without-rate-control p4-spine-cp-assisted-multicriteria-policy-routing-with-path-reveirication-without-rate-control
$(info *** Building P4 program with CP assisted multicriteria policy based routing -with-path-reveirication but -without-rate-control for the leaf and spine switch...)
p4-leaf-cp-assisted-multicriteria-policy-routing-with-rate-control: p4src/src/leaf.p4
$(info *** Building P4 program for the leaf switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/leaf.json \
--p4runtime-files p4src/Build/leaf_p4info.txt --Wdisable=unsupported \
p4src/src/leaf.p4 -Dports=256 -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING -DDP_BASED_RATE_CONTROL_ENABLED #-DENABLE_DEBUG_TABLES
sudo cp ./p4src/Build/leaf.json /tmp/
sudo cp ./p4src/Build/leaf_p4info.txt /tmp/
@echo "*** P4 program for leaf switch compiled successfully! Output files are in p4src/Build"
p4-spine-cp-assisted-multicriteria-policy-routing-with-rate-control: p4src/src/spine.p4
$(info *** Building P4 program for the spine switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/spine.json \
--p4runtime-files p4src/Build/spine_p4info.txt --Wdisable=unsupported \
p4src/src/spine.p4 -Dports=256 -DDP_ALGO_CP_ASSISTED_POLICY_ROUTING -DDP_BASED_RATE_CONTROL_ENABLED #-DENABLE_DEBUG_TABLES
sudo cp ./p4src/Build/spine.json /tmp/
sudo cp ./p4src/Build/spine_p4info.txt /tmp/
@echo "*** P4 program for spine switch compiled successfully! Output files are in p4src/Build"
p4-cp-assisted-multicriteria-policy-routing-with-rate-control: p4-leaf-cp-assisted-multicriteria-policy-routing-with-rate-control p4-spine-cp-assisted-multicriteria-policy-routing-with-rate-control generate-p4c-graphs
$(info *** Building P4 program with CP assisted multicriteria policy based routing -with-rate-control for the leaf and spine switch...)
p4-leaf-dp-only-multicriteria-policy-routing: p4src/src/leaf.p4
$(info *** Building P4 program for the leaf switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/leaf.json \
--p4runtime-files p4src/Build/leaf_p4info.txt --Wdisable=unsupported \
p4src/src/leaf.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_DP_ONLY_POLICY_ROUTING
sudo cp ./p4src/Build/leaf.json /tmp/
sudo cp ./p4src/Build/leaf_p4info.txt /tmp/
@echo "*** P4 program for leaf switch compiled successfully! Output files are in p4src/Build"
p4-spine-dp-only-multicriteria-policy-routing: p4src/src/spine.p4
$(info *** Building P4 program for the spine switch...)
@mkdir -p p4src/Build
p4c-bm2-ss --arch v1model -o p4src/Build/spine.json \
--p4runtime-files p4src/Build/spine_p4info.txt --Wdisable=unsupported \
p4src/src/spine.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_DP_ONLY_POLICY_ROUTING
sudo cp ./p4src/Build/spine.json /tmp/
sudo cp ./p4src/Build/spine_p4info.txt /tmp/
@echo "*** P4 program for spine switch compiled successfully! Output files are in p4src/Build"
p4-dp-only-multicriteria-policy-routing: p4-leaf-dp-only-multicriteria-policy-routing p4-spine-dp-only-multicriteria-policy-routing
$(info *** Building P4 program with dp only multicriteria policy based routing for the leaf and spine switch...)
start_clos: MininetSimulator/clos.py
$(info *** Starting clos topology DCN using MininetSimulator/clos.py...)
sudo python3 -E MininetSimulator/clos.py
start_ctrlr: Mycontroller.py
$(info *** Starting Mycontroller...)
rm -rf log/controller.log
python3 Mycontroller.py
clear-logs:
rm -rf testAndMeasurement/TEST_LOG/*
rm -rf result/*
rm -rf log/*
rm -rf result/*
rm -rf ./MininetSimulator/TEST_LOG/*
sudo pkill -f iperf
clear-iperf-processes:
sudo pkill -f iperf
count-iperf-processes:
ps -aux | grep -c "iperf"
process-l2strideSmallLarge-48kFlowRate1-2MFlowSize:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-48kFlowRate1-2MFlowSize testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-48kFlowRate1-2MFlowSize ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSize
process-l2strideSmallLarge-48kFlowRate:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-48kFlowRate testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-48kFlowRate ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-48kFlowRate
process-linkUtilizationTester:
mkdir ProcessedResultImages/linkUtilizationTesterGraphs
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/linkUtilizationTester testAndMeasurement/TEST_RESULTS/P4TE/linkUtilizationTester ECMP P4TE ./ProcessedResultImages/linkUtilizationTester
process-l2highContention:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2highContention testAndMeasurement/TEST_RESULTS/P4TE/l2highContention ECMP P4TE ./ProcessedResultImages/l2highContention
process-l2incast:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2-incast testAndMeasurement/TEST_RESULTS/P4TE/l2-incast ECMP P4TE ./ProcessedResultImages/l2-incast
process-l2-congestion:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2-congestion testAndMeasurement/TEST_RESULTS/P4TE/l2-congestion ECMP P4TE ./ProcessedResultImages/l2-congestion
process-l2strideSmallLarge-UnboundedRate:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-UnboundedRate testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-UnboundedRate ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-UnboundedRate
process-Manyl2strideSmallLarge-large-window:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/Manyl2strideSmallLarge-large-window testAndMeasurement/TEST_RESULTS/P4TE/Manyl2strideSmallLarge-large-window ECMP P4TE ./ProcessedResultImages/Manyl2strideSmallLarge-large-window
process-TooManyl2strideSmallLarge-large-window:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/TooManyl2strideSmallLarge-large-window testAndMeasurement/TEST_RESULTS/P4TE/TooManyl2strideSmallLarge-large-window ECMP P4TE ./ProcessedResultImages/TooManyl2strideSmallLarge-large-window
process-l2strideSmallLarge-sc4:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-sc4 testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-sc4 ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-sc4
process-l2strideSmallLarge-rate48k-w-24k:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-rate48k-w-24k testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-rate48k-w-24k ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-rate48k-w-24k
process-l2strideSmallLarge-48kFlowRate100-512FlowSize:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-48kFlowRate100-512FlowSize testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-48kFlowRate100-512FlowSize ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-48kFlowRate100-512FlowSize
process-l2strideSmallLarge-16k-sc8:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-16k-sc8 testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-16k-sc8 ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-16k-sc8
process-l2strideSmallLarge-16k-sc4:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-16k-sc4 testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-16k-sc4 ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-16k-sc4
process-l2strideSmallLarge-16k-sc16:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-16k-sc16 testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-16k-sc16 ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-16k-sc16
process-l2strideSmallLarge-48kFlowRate:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-48kFlowRate testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-48kFlowRate ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-48kFlowRate
rocess-l2strideSmallLarge-48kFlowRate100-512FlowSize:
$(info *** Make sure you configured the FLOW_TYPE_IDENTIFIER_BY_FLOW_VOLUME_IN_KB valus in ConfigConst for this use case)
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge-48kFlowRate100-512FlowSize testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge-48kFlowRate100-512FlowSize ECMP P4TE ./ProcessedResultImages/l2strideSmallLarge-48kFlowRate100-512FlowSize
copy-fig-for-paper:
cp ProcessedResultImages/l2strideSmallLarge-16k-sc16/FCTcomparison.pdf ProcessedResultImages/LargeStrideFCTcomparison.pdf
cp ProcessedResultImages/l2strideSmallLarge-16k-sc16/DataLosscomparison.pdf ProcessedResultImages/LargeStrideDataLosscomparison.pdf
cp ProcessedResultImages/l2strideSmallLarge-16k-sc16/RetransmissionComparison.pdf ProcessedResultImages/LargeStrideRetransmissionComparison.pdf
cp ProcessedResultImages/l2strideSmallLarge-16k-sc8/FCTcomparison.pdf ProcessedResultImages/SmallStrideFCTcomparison.pdf
cp ProcessedResultImages/l2strideSmallLarge-16k-sc8/DataLosscomparison.pdf ProcessedResultImages/SmallStrideDataLosscomparison.pdf
cp ProcessedResultImages/l2strideSmallLarge-16k-sc8/RetransmissionComparison.pdf ProcessedResultImages/SmallStrideRetransmissionComparison.pdf
cp ProcessedResultImages/l2-congestion/FCTcomparison.pdf ProcessedResultImages/l2-congestionFCTcomparison.pdf
cp ProcessedResultImages/l2-congestion/DataLosscomparison.pdf ProcessedResultImages/l2-congestionDataLosscomparison.pdf
cp ProcessedResultImages/l2-congestion/RetransmissionComparison.pdf ProcessedResultImages/l2-congestionRetransmissionComparison.pdf
cp ProcessedResultImages/l2-incast/FCTcomparison.pdf ProcessedResultImages/IncastFCTcomparison.pdf
cp ProcessedResultImages/l2-incast/DataLosscomparison.pdf ProcessedResultImages/IncastDataLosscomparison.pdf
cp ProcessedResultImages/l2-incast/RetransmissionComparison.pdf ProcessedResultImages/IncastRetransmissionComparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSize/FCTcomparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSizeFCTcomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSize/DataLosscomparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSizeDataLosscomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSize/RetransmissionComparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRate1-2MFlowSizeRetransmissionComparison.pdf
#
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate/FCTcomparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRateFCTcomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate/DataLosscomparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRateDataLosscomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-48kFlowRate/RetransmissionComparison.pdf ProcessedResultImages/l2strideSmallLarge-48kFlowRateRetransmissionComparison.pdf
#
# cp ProcessedResultImages/l2strideSmallLarge-UnboundedRate/FCTcomparison.pdf ProcessedResultImages/l2strideSmallLarge-UnboundedRateFCTcomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-UnboundedRate/DataLosscomparison.pdf ProcessedResultImages/l2strideSmallLarge-UnboundedRateDataLosscomparison.pdf
# cp ProcessedResultImages/l2strideSmallLarge-UnboundedRate/RetransmissionComparison.pdf ProcessedResultImages/l2strideSmallLarge-UnboundedRateRetransmissionComparison.pdf
generate-p4c-graphs:
p4c-graphs --arch v1model --Wdisable=unsupported p4src/src/spine.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_DP_ONLY_POLICY_ROUTING --graphs-dir p4src/graphs/spine
dot -Tpng p4src/graphs/spine/EgressPipeImpl.dot > p4src/graphs/spine/Egress.png
dot -Tpng p4src/graphs/spine/IngressPipeImpl.dot > p4src/graphs/spine/Ingress.png
p4c-graphs --arch v1model --Wdisable=unsupported p4src/src/leaf.p4 -Dports=256 -DENABLE_DEBUG_TABLES -DDP_ALGO_DP_ONLY_POLICY_ROUTING --graphs-dir p4src/graphs/leaf
dot -Tpng p4src/graphs/leaf/IngressPipeImpl.dot > p4src/graphs/leaf/Ingress.png
dot -Tpng p4src/graphs/leaf/EgressPipeImpl.dot > p4src/graphs/leaf/Egress.png
process-test:
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2highContention testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2highContention ECMP P4TE ./ProcessedResultImages/test
process-merged-result-for-statistics:
rm -rf testAndMeasurement/TEST_RESULTS/mergedResults/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2highContention
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2mostlyLargeFlow
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2multihighContention
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2stride4SmallLarge
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2strideSmallLarge
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2highContention/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2mostlyLargeFlow/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2multihighContention/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2stride4SmallLarge/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2strideSmallLarge/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2highContention
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2mostlyLargeFlow
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2multihighContention
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2stride4SmallLarge
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2strideSmallLarge
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2highContention/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2mostlyLargeFlow/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2multihighContention/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2stride4SmallLarge/client-logs-0/
mkdir testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2strideSmallLarge/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/ecmp/l2highContention/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2highContention/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/ecmp/l2mostlyLargeFlow/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2mostlyLargeFlow/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/ecmp/l2multihighContention/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2multihighContention/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/ecmp/l2stride4SmallLarge/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2stride4SmallLarge/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/ecmp/l2strideSmallLarge/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2strideSmallLarge/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/P4TE/l2highContention/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2highContention/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/P4TE/l2mostlyLargeFlow/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2mostlyLargeFlow/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/P4TE/l2multihighContention/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2multihighContention/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/P4TE/l2stride4SmallLarge/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2stride4SmallLarge/client-logs-0/
cp --backup=numbered testAndMeasurement/TEST_RESULTS/P4TE/l2strideSmallLarge/client-logs-*/* testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2strideSmallLarge/client-logs-0/
process-l2strideSmallLarge-statistics:
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2strideSmallLarge testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2strideSmallLarge ECMP P4TE ./log/ > ./processedStatistics/l2strideSmallLarge.txt
process-l2strideSmallLarge-strideCount-4-statistics:
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2stride4SmallLarge testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2stride4SmallLarge ECMP P4TE ./log/ > ./processedStatistics/l2strideSmallLarge-strideCount-4.txt
process-l2highContention-statistics:
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2highContention testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2highContention ECMP P4TE ./log/ > ./processedStatistics/l2highContention.txt
process-l2multihighContention-statistics:
python3 ResultProcessorExecutor.py testAndMeasurement/TEST_RESULTS/mergedResults/ecmp/l2multihighContention testAndMeasurement/TEST_RESULTS/mergedResults/P4TE/l2multihighContention ECMP P4TE ./log/ > ./processedStatistics/l2multihighContention.txt
process-statistics:
make process-l2strideSmallLarge-statistics
make process-l2strideSmallLarge-strideCount-4-statistics
make process-l2highContention-statistics
make process-l2multihighContention-statistics
create-result-folders:
mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_0.2
mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_0.4
mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_0.6
# mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_0.7
mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_0.8
# mkdir ./testAndMeasurement/TEST_RESULTS/WebSearchWorkLoad_load_factor_1.0
create-algowise-result-folder:
mkdir ./testAndMeasurement/TEST_RESULTS/ECMP_RESULTS
mkdir ./testAndMeasurement/TEST_RESULTS/P4KP_RESULTS
mkdir ./testAndMeasurement/TEST_RESULTS/HULA_RESULTS