-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
364 lines (338 loc) · 17.3 KB
/
index.html
File metadata and controls
364 lines (338 loc) · 17.3 KB
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Minesweeper</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/bootstrap-override.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- Open Sans, nice font -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favion -->
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-touch-icon-76x76.png">
<link rel="icon" type="image/png" href="/favicon/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicon/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/favicon/manifest.json">
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
<meta name="theme-color" content="#ff0000">
</head>
<!-- The #page-top ID is part of the scrolling feature - the data-spy and data-target are part of the built-in Bootstrap scrollspy function -->
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top"><b>Minesweeper</b></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
<li class="hidden">
<a class="page-scroll" href="#page-top"></a>
</li>
<li><a class="page-scroll" href="#installation">Installation</a></li>
<li><a class="page-scroll" href="#overview">Overview</a></li>
<li><a class="page-scroll" href="#members">Contributors</a></li>
<li><a class="page-scroll" href="#publications">Publications</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- alternatingly label section with "even" or "odd" -->
<section id="intro" class="foo-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="jumbotron">
<img class="img-responsive center-block" src="img/minesweeper-banner.png" style="max-width: 75%"/>
<p>A <span style="color: #ff0000">proactive</span> network analysis and bug-finding tool</p>
<ul class="list-inline">
<li>
<a class="btn btn-lg btn-warning" href="https://github.com/batfish/batfish/tree/smt" target="_blank">
See on Github »
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<section id="installation" class="even-section">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="page-header">
<h1>Installation</h1>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-5 col-lg-offset-1">
<p>To get started with Minesweeper, simply install the <a href="https://github.com/batfish/batfish/wiki">Batfish</a> analysis framework. This requires installtions of Java 8 and Maven. Then run the command shown on the right to build Batfish.</p>
</div>
<div class="col-lg-5">
<div class="panel panel-default raise-effect">
<div class="panel-heading"> </div>
<div class="panel-body code-snippet">
<pre>
batfish: $ batfish_build_all
</pre>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="overview" class="odd-section">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="page-header">
<h1>Overview</h1>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-11 col-lg-offset-1">
<p>Minesweeper lets you run a number of different <b>"what if"</b> analyses against unmodified router configurations.
It can also take into account the possibility of eBGP messages from external peers as well as network link failures.</p>
<h3>Loading Configurations</h3>
<p>To get started, lets consider running a reachability query on an example campus network.</p>
<p>The first step is to start up the Batfish service and load the configurations into Batfish.</p>
</div>
 
<div class="col-lg-1"></div>
<div class="col-lg-8">
<div class="panel panel-default raise-effect">
<div class="panel-heading"> </div>
<div class="panel-body code-snippet">
<pre>
batfish: $ allinone -runmode interactive
batfish> init_testrig test_rigs/smt-examples/CAMPUS1
Uploaded testrig. Parsing now.
Status: SUCCESS
PARSING SUMMARY
STATISTICS
Parsing results:
Parsed successfully: 13
batfish>
</pre>
</div>
</div>
</div>
<div class="col-lg-11 col-lg-offset-1">
<p>The first command starts Batfish in interactive mode. The second command instructs Batfish to use the collection of
configurations in the CAMPUS1 directory. The CAMPUS1 example directory simply has a single folder named <b>configs/</b>
that contains all of the router configurations for the network. The topology will be inferred from the configurations.</p>
<h3>Running a Query</h3>
Lets now check reachability to a destination port on the department router for the network border routers. This is done with
the following command:
</div>
 
<div class="col-lg-1"></div>
<div class="col-lg-8">
<div class="panel panel-default raise-effect">
<div class="panel-heading"> </div>
<div class="panel-body code-snippet">
<pre>
batfish> get smt-reachability ingressNodeRegex="as2border.*" |
finalNodeRegex="as2dept1" | finalIfaceRegex="FastEthernet1/0"
=========================================
Packet:
---------------------
dstIp: 2.128.0.0
srcIp: 2.0.0.0
Environment Messages:
---------------------
as2border2,FastEthernet1/0 (BGP):
community 3:2:
community as3_community:
prefix: 2.128.0.0/25
protocol metric: 51
Final Forwarding:
---------------------
as2border1,FastEthernet0/1 --> as2core1,FastEthernet0/0
as2border1,FastEthernet1/0 --> as2core2,FastEthernet0/1
as2core1,FastEthernet1/0 --> as2dist2,FastEthernet0/1
as2core2,FastEthernet1/0 --> as2dist1,FastEthernet0/0
as2dept1,FastEthernet1/0 --> _,_
as2dist1,FastEthernet1/0 --> as2dept1,FastEthernet0/0
as2dist2,FastEthernet1/0 --> as2dept1,FastEthernet0/1
=========================================
</pre>
</div>
</div>
</div>
<div class="col-lg-11 col-lg-offset-1">
<p>Here, Minesweeper is indicating that it found an example where one of the border routers will lose connectivity
to the destination port. First, the example includes the particular packet that will not be reachable. Other fields of the
packet have been determined to be irrelevant so they are not listed. The second part of the example is any
eBGP advertisements from peers. In this case, a particular advertisement from a peer with certain BGP community
values attached, and a particular prefix length (/25) is present. Finally, Minesweeper shows the final forwarding
behavior of the network in terms of the interface each router will use to forward the packet.</p>
<h3>Fixing the Issue</h3>
<p>The problem here is that the eBGP advertisment from AS3 will override the BGP decision process and
influence the as2border2 router to forward to AS3 instead. To fix the problem, we should filter routers
internal to our network from external peers. This has already been done in the <b>CAMPUS2</b> example.
Reload the configurations and run the query again.
</p>
</div>
 
<div class="col-lg-1"></div>
<div class="col-lg-8">
<div class="panel panel-default raise-effect">
<div class="panel-heading"> </div>
<div class="panel-body code-snippet">
<pre>
batfish> init_testrig test_rigs/smt-examples/CAMPUS2
Uploaded testrig. Parsing now.
Status: SUCCESS
PARSING SUMMARY
STATISTICS
Parsing results:
Parsed successfully: 13
batfish> get smt-reachability ingressNodeRegex="as2border.*" |
finalNodeRegex="as2dept1" | finalIfaceRegex="FastEthernet1/0"
Verified
batfish>
</pre>
</div>
</div>
</div>
<div class="col-lg-11 col-lg-offset-1">
<h3>Considering Failures</h3>
<p>We can also check that reachability will continue to hold after any <i>k</i> link
failures occur. To do so, we just add an argument specifying the number of failures to consider.
Here the tool can prove that reachability will remain for any single failure.</p>
</div>
 
<div class="col-lg-1"></div>
<div class="col-lg-8">
<div class="panel panel-default raise-effect">
<div class="panel-heading"> </div>
<div class="panel-body code-snippet">
<pre>
batfish> get smt-reachability ingressNodeRegex="as2border.*" |
finalNodeRegex="as2dept1" | finalIfaceRegex="FastEthernet1/0" |
failures=1
Verified
batfish>
</pre>
</div>
</div>
</div>
<div class="col-lg-11 col-lg-offset-1">
<h3>Other queries</h3>
<p>To see examples of other queries supported by Minesweeper, look in the
batfish/tests/java-smt/commands file.</p>
</div>
</div>
</div>
</section>
<section id="members" class="even-section">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="page-header">
<h1>Contributors</h1>
</div>
<div class="row">
<div class="col-md-4">
<h2><img src="img/princeton-logo.png" height="50" width="40" alt="Princeton" />Princeton</h2>
<ul>
<li><a href="http://www.cs.princeton.edu/~dpw">David Walker</a> (Faculty)</li>
<li><a href="https://www.cs.princeton.edu/people/profile/aartig">Aarti Gupta</a> (Faculty)</li>
<li><a href="http://scholar.princeton.edu/rbeckett/">Ryan Beckett</a> (PhD student)</li>
</ul>
</div>
<div class="col-md-5">
<h2>
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23472 3223.29"><defs><style>.cls-1{fill:#30303c;}.cls-2{fill:#5f92c3;}</style></defs><title>Artboard 2vec</title><path class="cls-1" d="M9043.41,1072.44c0-469.78,354.07-798.4,826.17-798.4s823.85,328.62,823.85,798.4-351.75,798.4-823.85,798.4S9043.41,1542.22,9043.41,1072.44Zm1245,0c0-252.25-164.31-446.64-418.87-446.64-256.87,0-421.19,194.39-421.19,446.64,0,249.93,164.31,446.64,421.19,446.64C10124.14,1519.08,10288.44,1322.37,10288.44,1072.44Z"/><path class="cls-1" d="M5225.85,647.79V300.66H4094.21V1623.88c0,121.69,98.65,220.34,220.34,220.34h911.3V1497.1h-733.6v-261.5h717.4V888.46h-717.4V647.79Z"/><path class="cls-1" d="M7192.23,300.66a173.72,173.72,0,0,0-173.72,173.72V647.79h432.76V1645.2c0,109.91,89.1,199,199,199h199V647.79h430.44V300.66Z"/><path class="cls-1" d="M464.84,300.66V1645.2c0,109.91,89.1,199,199,199h199V300.66Z"/><path class="cls-1" d="M6439.23,300.66V1150L5814.4,300.66H5404.78V1645.2c0,109.91,89.1,199,199,199h199V950.95l652.6,893.28h384.16V300.66Z"/><path class="cls-1" d="M2829.25,300.66a173.72,173.72,0,0,0-173.72,173.72V647.79h432.76V1645.2c0,109.91,89.1,199,199,199h199V647.79h430.44V300.66Z"/><path class="cls-1" d="M8462.56,300.66V1645.2c0,109.91,89.1,199,199,199h199V300.66Z"/><path class="cls-2" d="M13730.35,647.79V300.66H12598.7V1623.88c0,121.69,98.65,220.34,220.34,220.34h911.3V1497.1h-733.6v-261.5h717.4V888.46h-717.4V647.79Z"/><path class="cls-2" d="M14083.2,300.66a173.72,173.72,0,0,0-173.72,173.72V647.79h432.76V1645.2c0,109.91,89.1,199,199,199h199V647.79h430.44V300.66Z"/><polygon class="cls-1" points="12187.2 300.66 11958.53 300.66 11958.53 1121.84 12187.21 1446.82 12187.2 300.66"/><path id="Left" class="cls-1" d="M12187.21,1844.19,11101,300.66h-228.68V1676.25c8.42,94.14,87.5,167.94,183.84,167.94l229.51,0c-101.92,0-184.53-82.67-184.53-184.59L11101,698l228.68,325h0l577,820Z"/><path class="cls-2" d="M11329.72,1023,11101,698l.14,961.6c0,101.93,82.61,184.56,184.53,184.59h44v-5.59Z"/><polygon class="cls-2" points="12187.22 300.66 12187.21 1446.82 11380.66 300.66 11101.06 300.66 12187.21 1844.19 12415.9 1844.19 12415.9 300.95 12187.22 300.66"/><path class="cls-1" d="M2076.25,300.66V1150L1451.42,300.66H1041.8V1645.2c0,109.91,89.1,199,199,199h199V950.95l652.6,893.28H2476.6V300.66Z"/></svg>
</h2>
<ul>
<li><a href="https://ratul.org/">Ratul Mahajan</a> (CEO and Researcher)</li>
</ul>
</div>
<div class="row">
<div class="col-md-4">
</div>
</div>
</div>
</div>
</div>
</section>
<section id="publications" class="odd-section">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="page-header">
<h1>Publications</h1>
</div>
<h2>Conference Papers</h2>
<div>
<p><a name="event-driven-pldi16"></a>
Ryan Beckett, Aarti Gupta, Ratul Mahajan, and David Walker.
<b>A General Approach to Network Configuration Verification</b>. To appear in <em>ACM SIGCOMM Conference on Communications
Architectures, Protocols and Applications (SIGCOMM), Los Angeles , California</em>,
August 2017.
[ <a href="resources/Minesweeper.pdf">paper</a> |
<a href="resources/Minesweeper.pptx">slides</a>]
</p>
</div>
</div>
</div>
</div>
</section>
<footer id="footer" class="even-section">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<a href="https://github.com/batfish/batfish/tree/smt">
<div><img src="img/minesweeper-icon.png" class="img-responsive center-block" height="90" width="90" alt="minesweeper-icon" /></div>
<div><span class="lead">Minesweeper on Github</span></div>
</a>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Scrolling Nav JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/scrolling-nav.js"></script>
</body>
</html>