| 1 |
#LyX 2.3 created this file. For more info see http://www.lyx.org/ |
| 2 |
\lyxformat 544 |
| 3 |
\begin_document |
| 4 |
\begin_header |
| 5 |
\save_transient_properties true |
| 6 |
\origin unavailable |
| 7 |
\textclass article |
| 8 |
\begin_preamble |
| 9 |
\usepackage{a4wide} |
| 10 |
|
| 11 |
\usepackage{url} |
| 12 |
\urlstyle{rm} |
| 13 |
|
| 14 |
\usepackage[pdftex=true, |
| 15 |
pdftitle={Evaluation of a Simple Load Balancing Improvement for Reliable Server Pooling with Heterogeneous Server Pools}, |
| 16 |
pdfauthor={Thomas Dreibholz}, |
| 17 |
pdfsubject={Reliable Server Pooling}, |
| 18 |
pdfkeywords={Reliable Server Pooling, Redundancy, Load Balancing, Heterogeneous Pools, Performance Evaluation}, |
| 19 |
pdfpagemode=UseOutlines, |
| 20 |
plainpages=false, |
| 21 |
hypertexnames=true, |
| 22 |
pdfpagelabels=true, |
| 23 |
hyperindex=true, |
| 24 |
colorlinks=true]{hyperref} |
| 25 |
|
| 26 |
\usepackage{color} |
| 27 |
\definecolor{darkred}{rgb}{0.5,0,0} |
| 28 |
\definecolor{darkgreen}{rgb}{0,0.5,0} |
| 29 |
\definecolor{darkblue}{rgb}{0,0,0.5} |
| 30 |
\definecolor{black}{rgb}{0,0,0} |
| 31 |
\hypersetup{colorlinks |
| 32 |
,linkcolor=darkblue |
| 33 |
,urlcolor=blue |
| 34 |
,citecolor=darkblue, |
| 35 |
,filecolor=darkgreen} |
| 36 |
\end_preamble |
| 37 |
\use_default_options false |
| 38 |
\maintain_unincluded_children false |
| 39 |
\language english |
| 40 |
\language_package default |
| 41 |
\inputencoding utf8 |
| 42 |
\fontencoding global |
| 43 |
\font_roman "times" "default" |
| 44 |
\font_sans "default" "default" |
| 45 |
\font_typewriter "default" "default" |
| 46 |
\font_math "auto" "auto" |
| 47 |
\font_default_family default |
| 48 |
\use_non_tex_fonts false |
| 49 |
\font_sc false |
| 50 |
\font_osf false |
| 51 |
\font_sf_scale 100 100 |
| 52 |
\font_tt_scale 100 100 |
| 53 |
\use_microtype false |
| 54 |
\use_dash_ligatures true |
| 55 |
\graphics default |
| 56 |
\default_output_format default |
| 57 |
\output_sync 0 |
| 58 |
\bibtex_command default |
| 59 |
\index_command default |
| 60 |
\paperfontsize 11 |
| 61 |
\spacing single |
| 62 |
\use_hyperref false |
| 63 |
\papersize a4paper |
| 64 |
\use_geometry false |
| 65 |
\use_package amsmath 1 |
| 66 |
\use_package amssymb 1 |
| 67 |
\use_package cancel 1 |
| 68 |
\use_package esint 0 |
| 69 |
\use_package mathdots 1 |
| 70 |
\use_package mathtools 1 |
| 71 |
\use_package mhchem 1 |
| 72 |
\use_package stackrel 1 |
| 73 |
\use_package stmaryrd 1 |
| 74 |
\use_package undertilde 1 |
| 75 |
\cite_engine basic |
| 76 |
\cite_engine_type default |
| 77 |
\biblio_style plain |
| 78 |
\use_bibtopic false |
| 79 |
\use_indices false |
| 80 |
\paperorientation portrait |
| 81 |
\suppress_date false |
| 82 |
\justification true |
| 83 |
\use_refstyle 0 |
| 84 |
\use_minted 0 |
| 85 |
\index Index |
| 86 |
\shortcut idx |
| 87 |
\color #008000 |
| 88 |
\end_index |
| 89 |
\secnumdepth 3 |
| 90 |
\tocdepth 3 |
| 91 |
\paragraph_separation indent |
| 92 |
\paragraph_indentation default |
| 93 |
\is_math_indent 0 |
| 94 |
\math_numbering_side default |
| 95 |
\quotes_style english |
| 96 |
\dynamic_quotes 0 |
| 97 |
\papercolumns 1 |
| 98 |
\papersides 1 |
| 99 |
\paperpagestyle default |
| 100 |
\tracking_changes false |
| 101 |
\output_changes false |
| 102 |
\html_math_output 0 |
| 103 |
\html_css_as_file 0 |
| 104 |
\html_be_strict false |
| 105 |
\end_header |
| 106 |
|
| 107 |
\begin_body |
| 108 |
|
| 109 |
\begin_layout Title |
| 110 |
The |
| 111 |
\noun on |
| 112 |
rsplib |
| 113 |
\noun default |
| 114 |
RSerPool Implementation Handbook |
| 115 |
\end_layout |
| 116 |
|
| 117 |
\begin_layout Author |
| 118 |
Thomas Dreibholz |
| 119 |
\begin_inset Newline newline |
| 120 |
\end_inset |
| 121 |
|
| 122 |
Simula Metropolitan Centre for Digital Engineering |
| 123 |
\begin_inset Newline newline |
| 124 |
\end_inset |
| 125 |
|
| 126 |
Centre for Resilient Networks and Applications |
| 127 |
\end_layout |
| 128 |
|
| 129 |
\begin_layout Author |
| 130 |
\begin_inset ERT |
| 131 |
status open |
| 132 |
|
| 133 |
\begin_layout Plain Layout |
| 134 |
|
| 135 |
|
| 136 |
\backslash |
| 137 |
href{mailto:[email protected]}{[email protected]} |
| 138 |
\end_layout |
| 139 |
|
| 140 |
\end_inset |
| 141 |
|
| 142 |
|
| 143 |
\end_layout |
| 144 |
|
| 145 |
\begin_layout Date |
| 146 |
January |
| 147 |
\begin_inset space \thinspace{} |
| 148 |
\end_inset |
| 149 |
|
| 150 |
6, 2023 |
| 151 |
\end_layout |
| 152 |
|
| 153 |
\begin_layout Standard |
| 154 |
\begin_inset CommandInset toc |
| 155 |
LatexCommand tableofcontents |
| 156 |
|
| 157 |
\end_inset |
| 158 |
|
| 159 |
|
| 160 |
\end_layout |
| 161 |
|
| 162 |
\begin_layout Section |
| 163 |
Introduction |
| 164 |
\end_layout |
| 165 |
|
| 166 |
\begin_layout Standard |
| 167 |
This is the documentation for the |
| 168 |
\noun on |
| 169 |
rsplib |
| 170 |
\noun default |
| 171 |
RSerPool package. |
| 172 |
It contains information how to install and make use of |
| 173 |
\noun on |
| 174 |
rsplib |
| 175 |
\noun default |
| 176 |
. |
| 177 |
For a detailed introduction to RSerPool and its concepts itself, see |
| 178 |
\begin_inset space ~ |
| 179 |
\end_inset |
| 180 |
|
| 181 |
|
| 182 |
\begin_inset CommandInset citation |
| 183 |
LatexCommand cite |
| 184 |
key "Dre2006" |
| 185 |
literal "true" |
| 186 |
|
| 187 |
\end_inset |
| 188 |
|
| 189 |
. |
| 190 |
For questions about RSerPool and |
| 191 |
\noun on |
| 192 |
rsplib |
| 193 |
\noun default |
| 194 |
, see our mailing lists at |
| 195 |
\begin_inset space ~ |
| 196 |
\end_inset |
| 197 |
|
| 198 |
|
| 199 |
\begin_inset CommandInset citation |
| 200 |
LatexCommand cite |
| 201 |
key "RSerPoolPage" |
| 202 |
literal "true" |
| 203 |
|
| 204 |
\end_inset |
| 205 |
|
| 206 |
. |
| 207 |
\end_layout |
| 208 |
|
| 209 |
\begin_layout Section |
| 210 |
What is RSerPool? |
| 211 |
\end_layout |
| 212 |
|
| 213 |
\begin_layout Standard |
| 214 |
\begin_inset Float figure |
| 215 |
wide false |
| 216 |
sideways false |
| 217 |
status collapsed |
| 218 |
|
| 219 |
\begin_layout Plain Layout |
| 220 |
\align center |
| 221 |
\begin_inset Graphics |
| 222 |
filename EN-RSerPool-Scenario-with-PPE.pdf |
| 223 |
width 80col% |
| 224 |
keepAspectRatio |
| 225 |
|
| 226 |
\end_inset |
| 227 |
|
| 228 |
|
| 229 |
\end_layout |
| 230 |
|
| 231 |
\begin_layout Plain Layout |
| 232 |
\begin_inset Caption Standard |
| 233 |
|
| 234 |
\begin_layout Plain Layout |
| 235 |
\begin_inset CommandInset label |
| 236 |
LatexCommand label |
| 237 |
name "cap:The-RSerPool-Architecture" |
| 238 |
|
| 239 |
\end_inset |
| 240 |
|
| 241 |
The RSerPool Architecture |
| 242 |
\end_layout |
| 243 |
|
| 244 |
\end_inset |
| 245 |
|
| 246 |
|
| 247 |
\end_layout |
| 248 |
|
| 249 |
\end_inset |
| 250 |
|
| 251 |
|
| 252 |
\begin_inset Float figure |
| 253 |
wide false |
| 254 |
sideways false |
| 255 |
status collapsed |
| 256 |
|
| 257 |
\begin_layout Plain Layout |
| 258 |
\align center |
| 259 |
\begin_inset Graphics |
| 260 |
filename EN-RSerPool-ProtocolStack.pdf |
| 261 |
width 80col% |
| 262 |
keepAspectRatio |
| 263 |
|
| 264 |
\end_inset |
| 265 |
|
| 266 |
|
| 267 |
\end_layout |
| 268 |
|
| 269 |
\begin_layout Plain Layout |
| 270 |
\begin_inset Caption Standard |
| 271 |
|
| 272 |
\begin_layout Plain Layout |
| 273 |
\begin_inset CommandInset label |
| 274 |
LatexCommand label |
| 275 |
name "cap:The-RSerPool-Protocol-Stack" |
| 276 |
|
| 277 |
\end_inset |
| 278 |
|
| 279 |
The RSerPool Protocol Stack |
| 280 |
\end_layout |
| 281 |
|
| 282 |
\end_inset |
| 283 |
|
| 284 |
|
| 285 |
\end_layout |
| 286 |
|
| 287 |
\end_inset |
| 288 |
|
| 289 |
Figure |
| 290 |
\begin_inset space ~ |
| 291 |
\end_inset |
| 292 |
|
| 293 |
|
| 294 |
\begin_inset CommandInset ref |
| 295 |
LatexCommand ref |
| 296 |
reference "cap:The-RSerPool-Architecture" |
| 297 |
|
| 298 |
\end_inset |
| 299 |
|
| 300 |
provides an illustration of the Reliable Server Pooling |
| 301 |
\begin_inset space ~ |
| 302 |
\end_inset |
| 303 |
|
| 304 |
(RSerPool) architecture as defined by the Internet Draft |
| 305 |
\begin_inset space ~ |
| 306 |
\end_inset |
| 307 |
|
| 308 |
|
| 309 |
\begin_inset CommandInset citation |
| 310 |
LatexCommand cite |
| 311 |
key "rfc-rserpool-overview" |
| 312 |
literal "true" |
| 313 |
|
| 314 |
\end_inset |
| 315 |
|
| 316 |
; the protocol stack of RSerPool is shown in figure |
| 317 |
\begin_inset space ~ |
| 318 |
\end_inset |
| 319 |
|
| 320 |
|
| 321 |
\begin_inset CommandInset ref |
| 322 |
LatexCommand ref |
| 323 |
reference "cap:The-RSerPool-Protocol-Stack" |
| 324 |
|
| 325 |
\end_inset |
| 326 |
|
| 327 |
. |
| 328 |
An RSerPool scenario consists of three component classes |
| 329 |
\begin_inset space ~ |
| 330 |
\end_inset |
| 331 |
|
| 332 |
|
| 333 |
\begin_inset CommandInset citation |
| 334 |
LatexCommand cite |
| 335 |
key "rfc-rserpool-overview" |
| 336 |
literal "true" |
| 337 |
|
| 338 |
\end_inset |
| 339 |
|
| 340 |
: servers of a pool are called |
| 341 |
\emph on |
| 342 |
pool elements |
| 343 |
\emph default |
| 344 |
|
| 345 |
\begin_inset space ~ |
| 346 |
\end_inset |
| 347 |
|
| 348 |
(PE). |
| 349 |
Each pool is identified by a unique |
| 350 |
\emph on |
| 351 |
pool handle |
| 352 |
\emph default |
| 353 |
|
| 354 |
\begin_inset space ~ |
| 355 |
\end_inset |
| 356 |
|
| 357 |
(PH) in the handlespace, which is the set of all pools. |
| 358 |
The handlespace is managed by |
| 359 |
\emph on |
| 360 |
pool registrars |
| 361 |
\emph default |
| 362 |
(PR). |
| 363 |
PRs of an |
| 364 |
\emph on |
| 365 |
operation scope |
| 366 |
\emph default |
| 367 |
(the domain which is covered by the handlespace, e.g. |
| 368 |
\begin_inset space ~ |
| 369 |
\end_inset |
| 370 |
|
| 371 |
an organization or building) synchronize their view of the handlespace using |
| 372 |
the Endpoint haNdlespace Redundancy Protocol (ENRP |
| 373 |
\begin_inset space ~ |
| 374 |
\end_inset |
| 375 |
|
| 376 |
|
| 377 |
\begin_inset CommandInset citation |
| 378 |
LatexCommand cite |
| 379 |
key "rfc-rserpool-enrp,draft-dreibholz-rserpool-enrp-takeover,rfc-rserpool-common-param" |
| 380 |
literal "true" |
| 381 |
|
| 382 |
\end_inset |
| 383 |
|
| 384 |
), transported via SCTP |
| 385 |
\begin_inset space ~ |
| 386 |
\end_inset |
| 387 |
|
| 388 |
|
| 389 |
\begin_inset CommandInset citation |
| 390 |
LatexCommand cite |
| 391 |
key "RFC4960,Jun2005,JST2000b,SCI2002a" |
| 392 |
literal "true" |
| 393 |
|
| 394 |
\end_inset |
| 395 |
|
| 396 |
. |
| 397 |
\end_layout |
| 398 |
|
| 399 |
\begin_layout Standard |
| 400 |
Unlike already available solutions in the area of GRID and high-performance |
| 401 |
computing, the fundamental property of RSerPool is to be |
| 402 |
\begin_inset Quotes eld |
| 403 |
\end_inset |
| 404 |
|
| 405 |
lightweight |
| 406 |
\begin_inset Quotes erd |
| 407 |
\end_inset |
| 408 |
|
| 409 |
, i.e. |
| 410 |
\begin_inset space ~ |
| 411 |
\end_inset |
| 412 |
|
| 413 |
it must also be usable low-performance devices like telecommunications equipment |
| 414 |
or routers. |
| 415 |
This property restricts the RSerPool architecture to the management of |
| 416 |
pools and sessions only, but on the other hand makes a very efficient realizati |
| 417 |
on possible |
| 418 |
\begin_inset space ~ |
| 419 |
\end_inset |
| 420 |
|
| 421 |
|
| 422 |
\begin_inset CommandInset citation |
| 423 |
LatexCommand cite |
| 424 |
key "IJHIT2008,FGCN2007-HsMgt,Contel2005" |
| 425 |
literal "true" |
| 426 |
|
| 427 |
\end_inset |
| 428 |
|
| 429 |
. |
| 430 |
In particular, an operation scope has a limited range, e.g. |
| 431 |
\begin_inset space ~ |
| 432 |
\end_inset |
| 433 |
|
| 434 |
a company or organization; RSerPool does not intend to scale to the whole |
| 435 |
Internet. |
| 436 |
Nevertheless, it is assumed that PEs can be distributed globally, for their |
| 437 |
service to survive localized disasters |
| 438 |
\begin_inset space ~ |
| 439 |
\end_inset |
| 440 |
|
| 441 |
|
| 442 |
\begin_inset CommandInset citation |
| 443 |
LatexCommand cite |
| 444 |
key "KiVS2007" |
| 445 |
literal "true" |
| 446 |
|
| 447 |
\end_inset |
| 448 |
|
| 449 |
. |
| 450 |
\end_layout |
| 451 |
|
| 452 |
\begin_layout Standard |
| 453 |
PEs choose an arbitrary PR to register into a pool by using the Aggregate |
| 454 |
Server Access Protocol (ASAP |
| 455 |
\begin_inset space ~ |
| 456 |
\end_inset |
| 457 |
|
| 458 |
|
| 459 |
\begin_inset CommandInset citation |
| 460 |
LatexCommand cite |
| 461 |
key "rfc-rserpool-asap,draft-dreibholz-rserpool-asap-hropt,rfc-rserpool-common-param" |
| 462 |
literal "true" |
| 463 |
|
| 464 |
\end_inset |
| 465 |
|
| 466 |
), again transported via SCTP. |
| 467 |
Upon registration at a PR, the chosen PR becomes the Home-PR |
| 468 |
\begin_inset space ~ |
| 469 |
\end_inset |
| 470 |
|
| 471 |
(PR-H) of the newly registered PE. |
| 472 |
A PR-H is responsible for monitoring its PEs' availability by using ASAP |
| 473 |
Endpoint Keep-Alive messages (to be acknowledged by the PE within a given |
| 474 |
timeout) and propagates the information about its PEs to the other PRs |
| 475 |
of the operation scope via ENRP Update messages. |
| 476 |
\end_layout |
| 477 |
|
| 478 |
\begin_layout Standard |
| 479 |
A client is called |
| 480 |
\emph on |
| 481 |
pool user |
| 482 |
\emph default |
| 483 |
|
| 484 |
\begin_inset space ~ |
| 485 |
\end_inset |
| 486 |
|
| 487 |
(PU) in RSerPool terminology. |
| 488 |
To access the service of a pool given by its PH, a PE has to be selected. |
| 489 |
This selection procedure – called |
| 490 |
\emph on |
| 491 |
handle resolution |
| 492 |
\emph default |
| 493 |
– is performed by an arbitrary PR of the operation scope. |
| 494 |
A PU can request a handle resolution from a PR using the ASAP protocol. |
| 495 |
The PR selects PE identities by using a pool-specific server selection |
| 496 |
rule, denoted as |
| 497 |
\emph on |
| 498 |
pool policy |
| 499 |
\emph default |
| 500 |
. |
| 501 |
A set of adaptive and non-adaptive pool policies is defined in |
| 502 |
\begin_inset space ~ |
| 503 |
\end_inset |
| 504 |
|
| 505 |
|
| 506 |
\begin_inset CommandInset citation |
| 507 |
LatexCommand cite |
| 508 |
key "rfc-rserpool-policies,draft-dreibholz-rserpool-delay" |
| 509 |
literal "true" |
| 510 |
|
| 511 |
\end_inset |
| 512 |
|
| 513 |
; for a detailed discussion of these policies, see |
| 514 |
\begin_inset space ~ |
| 515 |
\end_inset |
| 516 |
|
| 517 |
|
| 518 |
\begin_inset CommandInset citation |
| 519 |
LatexCommand cite |
| 520 |
key "Dre2006,LCN2005,Tencon2005,Euromicro2007,ICDS2008-LUD,ICDS2008-Failover,ADCOM2007,AINTEC2007,FGCN2007-LoadBalancing" |
| 521 |
literal "true" |
| 522 |
|
| 523 |
\end_inset |
| 524 |
|
| 525 |
. |
| 526 |
\end_layout |
| 527 |
|
| 528 |
\begin_layout Section |
| 529 |
Installation |
| 530 |
\end_layout |
| 531 |
|
| 532 |
\begin_layout Standard |
| 533 |
In this section, the installation of the |
| 534 |
\emph on |
| 535 |
\noun on |
| 536 |
rsplib |
| 537 |
\emph default |
| 538 |
\noun default |
| 539 |
package is described. |
| 540 |
\end_layout |
| 541 |
|
| 542 |
\begin_layout Subsection |
| 543 |
Installation of the SCTP Protocol |
| 544 |
\end_layout |
| 545 |
|
| 546 |
\begin_layout Standard |
| 547 |
The first step is to decide which SCTP implementation should be used. |
| 548 |
You have the choice between kernel SCTP and userland SCTP. |
| 549 |
In most cases, you probably want kernel SCTP. |
| 550 |
It is most efficient and the implementation should be sufficiently stable. |
| 551 |
\end_layout |
| 552 |
|
| 553 |
\begin_layout Subsubsection |
| 554 |
Installation of Kernel SCTP for Linux |
| 555 |
\end_layout |
| 556 |
|
| 557 |
\begin_layout Standard |
| 558 |
A SCTP kernel module is already provided by all major Linux distributions. |
| 559 |
To load it into the kernel, call: |
| 560 |
\end_layout |
| 561 |
|
| 562 |
\begin_layout Standard |
| 563 |
|
| 564 |
\family typewriter |
| 565 |
sudo modprobe sctp |
| 566 |
\end_layout |
| 567 |
|
| 568 |
\begin_layout Standard |
| 569 |
\noindent |
| 570 |
In order to load it permanently, add a line |
| 571 |
\begin_inset Quotes eld |
| 572 |
\end_inset |
| 573 |
|
| 574 |
sctp |
| 575 |
\begin_inset Quotes erd |
| 576 |
\end_inset |
| 577 |
|
| 578 |
to /etc/modules. |
| 579 |
After that, the module will be loaded automatically at boot time. |
| 580 |
Also make sure that the SCTP include files are installed (in particular: |
| 581 |
/usr/include/netinet/sctp.h). |
| 582 |
If they are not installed, install the package libsctp-dev (or similar |
| 583 |
name). |
| 584 |
For Debian/Ubuntu Linux, you can use: |
| 585 |
\end_layout |
| 586 |
|
| 587 |
\begin_layout Standard |
| 588 |
|
| 589 |
\family typewriter |
| 590 |
sudo apt-get install libsctp-dev |
| 591 |
\end_layout |
| 592 |
|
| 593 |
\begin_layout Subsubsection |
| 594 |
Installation of Userland SCTP |
| 595 |
\noun on |
| 596 |
sctplib/socketapi |
| 597 |
\end_layout |
| 598 |
|
| 599 |
\begin_layout Standard |
| 600 |
In the usual case, you use kernel SCTP. |
| 601 |
Then, the following steps can be skipped! However, if you decide to use |
| 602 |
our userland SCTP implementation |
| 603 |
\noun on |
| 604 |
sctplib |
| 605 |
\noun default |
| 606 |
|
| 607 |
\begin_inset space ~ |
| 608 |
\end_inset |
| 609 |
|
| 610 |
|
| 611 |
\begin_inset CommandInset citation |
| 612 |
LatexCommand cite |
| 613 |
key "sctplib" |
| 614 |
literal "true" |
| 615 |
|
| 616 |
\end_inset |
| 617 |
|
| 618 |
, the following steps have to be performed. |
| 619 |
The |
| 620 |
\noun on |
| 621 |
sctplib |
| 622 |
\noun default |
| 623 |
userland SCTP implementation consists of two packages: |
| 624 |
\noun on |
| 625 |
sctplib |
| 626 |
\noun default |
| 627 |
containing the actual SCTP implementation and |
| 628 |
\noun on |
| 629 |
socketapi |
| 630 |
\noun default |
| 631 |
containing a BSD sockets API for |
| 632 |
\noun on |
| 633 |
sctplib |
| 634 |
\noun default |
| 635 |
. |
| 636 |
You need both. |
| 637 |
Get the latest versions from |
| 638 |
\begin_inset space ~ |
| 639 |
\end_inset |
| 640 |
|
| 641 |
|
| 642 |
\begin_inset CommandInset citation |
| 643 |
LatexCommand cite |
| 644 |
key "RSerPoolPage" |
| 645 |
literal "true" |
| 646 |
|
| 647 |
\end_inset |
| 648 |
|
| 649 |
(https://www.nntb.no/~dreibh/rserpool |
| 650 |
\begin_inset Flex URL |
| 651 |
status collapsed |
| 652 |
|
| 653 |
\begin_layout Plain Layout |
| 654 |
|
| 655 |
https://www.nntb.no/~dreibh/rserpool |
| 656 |
\end_layout |
| 657 |
|
| 658 |
\end_inset |
| 659 |
|
| 660 |
). |
| 661 |
First, unpack, configure and install |
| 662 |
\noun on |
| 663 |
sctplib |
| 664 |
\noun default |
| 665 |
: |
| 666 |
\end_layout |
| 667 |
|
| 668 |
\begin_layout Standard |
| 669 |
|
| 670 |
\family typewriter |
| 671 |
tar xzf sctplib-<version>.tar.gz |
| 672 |
\end_layout |
| 673 |
|
| 674 |
\begin_layout Standard |
| 675 |
cd |
| 676 |
\family typewriter |
| 677 |
sctplib-<version> |
| 678 |
\end_layout |
| 679 |
|
| 680 |
\begin_layout Standard |
| 681 |
|
| 682 |
\family typewriter |
| 683 |
./configure --enable-shared --enable-static <Options> |
| 684 |
\end_layout |
| 685 |
|
| 686 |
\begin_layout Standard |
| 687 |
|
| 688 |
\family typewriter |
| 689 |
make |
| 690 |
\end_layout |
| 691 |
|
| 692 |
\begin_layout Standard |
| 693 |
|
| 694 |
\family typewriter |
| 695 |
sudo make install |
| 696 |
\end_layout |
| 697 |
|
| 698 |
\begin_layout Standard |
| 699 |
\noindent |
| 700 |
Useful options are |
| 701 |
\begin_inset Quotes eld |
| 702 |
\end_inset |
| 703 |
|
| 704 |
|
| 705 |
\family typewriter |
| 706 |
--enable-static --disable-shared --enable-maintainer-mode |
| 707 |
\family default |
| 708 |
|
| 709 |
\begin_inset Quotes erd |
| 710 |
\end_inset |
| 711 |
|
| 712 |
to generate a static library with debug symbols. |
| 713 |
This is useful for debugging purposes (e.g. |
| 714 |
\begin_inset space ~ |
| 715 |
\end_inset |
| 716 |
|
| 717 |
memory leak detection using Valgrind |
| 718 |
\begin_inset space ~ |
| 719 |
\end_inset |
| 720 |
|
| 721 |
|
| 722 |
\begin_inset CommandInset citation |
| 723 |
LatexCommand cite |
| 724 |
key "Valgrind" |
| 725 |
literal "true" |
| 726 |
|
| 727 |
\end_inset |
| 728 |
|
| 729 |
). |
| 730 |
To use SCTP over UDP (defined in |
| 731 |
\begin_inset space ~ |
| 732 |
\end_inset |
| 733 |
|
| 734 |
|
| 735 |
\begin_inset CommandInset citation |
| 736 |
LatexCommand cite |
| 737 |
key "draft-tuexen-sctp-udp-encaps" |
| 738 |
literal "true" |
| 739 |
|
| 740 |
\end_inset |
| 741 |
|
| 742 |
), use |
| 743 |
\begin_inset Quotes eld |
| 744 |
\end_inset |
| 745 |
|
| 746 |
|
| 747 |
\family typewriter |
| 748 |
--enable-sctp-over-udp |
| 749 |
\family default |
| 750 |
|
| 751 |
\begin_inset Quotes erd |
| 752 |
\end_inset |
| 753 |
|
| 754 |
. |
| 755 |
The next step is to install the socketapi package: |
| 756 |
\end_layout |
| 757 |
|
| 758 |
\begin_layout Standard |
| 759 |
|
| 760 |
\family typewriter |
| 761 |
tar xzf socketapi-<version>.tar.gz |
| 762 |
\end_layout |
| 763 |
|
| 764 |
\begin_layout Standard |
| 765 |
|
| 766 |
\family typewriter |
| 767 |
cd socketapi-<version> |
| 768 |
\end_layout |
| 769 |
|
| 770 |
\begin_layout Standard |
| 771 |
|
| 772 |
\family typewriter |
| 773 |
./configure --enable-shared --enable-static <Options> |
| 774 |
\end_layout |
| 775 |
|
| 776 |
\begin_layout Standard |
| 777 |
|
| 778 |
\family typewriter |
| 779 |
make |
| 780 |
\end_layout |
| 781 |
|
| 782 |
\begin_layout Standard |
| 783 |
|
| 784 |
\family typewriter |
| 785 |
sudo make install |
| 786 |
\end_layout |
| 787 |
|
| 788 |
\begin_layout Standard |
| 789 |
\noindent |
| 790 |
Again, you can use |
| 791 |
\begin_inset Quotes eld |
| 792 |
\end_inset |
| 793 |
|
| 794 |
|
| 795 |
\family typewriter |
| 796 |
--enable-static --disable-shared --enable-maintainer-mode |
| 797 |
\family default |
| 798 |
|
| 799 |
\begin_inset Quotes erd |
| 800 |
\end_inset |
| 801 |
|
| 802 |
to generate a static library with debug symbols. |
| 803 |
If you want to use kernel SCTP and SCTP over UDP simultaneously, add |
| 804 |
\begin_inset Quotes eld |
| 805 |
\end_inset |
| 806 |
|
| 807 |
|
| 808 |
\family typewriter |
| 809 |
--enable-sctp-over-udp |
| 810 |
\family default |
| 811 |
|
| 812 |
\begin_inset Quotes erd |
| 813 |
\end_inset |
| 814 |
|
| 815 |
. |
| 816 |
In this case, the socketapi will not abort if it finds a loaded kernel |
| 817 |
SCTP module. |
| 818 |
\end_layout |
| 819 |
|
| 820 |
\begin_layout Subsection |
| 821 |
Installation of the |
| 822 |
\noun on |
| 823 |
rsplib |
| 824 |
\noun default |
| 825 |
Package |
| 826 |
\end_layout |
| 827 |
|
| 828 |
\begin_layout Standard |
| 829 |
After installing SCTP support, the |
| 830 |
\noun on |
| 831 |
rsplib |
| 832 |
\noun default |
| 833 |
package can be installed. |
| 834 |
\end_layout |
| 835 |
|
| 836 |
\begin_layout Subsubsection |
| 837 |
\begin_inset CommandInset label |
| 838 |
LatexCommand label |
| 839 |
name "subsec:Preparation-Work" |
| 840 |
|
| 841 |
\end_inset |
| 842 |
|
| 843 |
Preparation Work |
| 844 |
\end_layout |
| 845 |
|
| 846 |
\begin_layout Standard |
| 847 |
In order to prepare your system for the installation of the |
| 848 |
\noun on |
| 849 |
rsplib |
| 850 |
\noun default |
| 851 |
package, it is recommended to do the following tasks: |
| 852 |
\end_layout |
| 853 |
|
| 854 |
\begin_layout Itemize |
| 855 |
The Component Status Protocol |
| 856 |
\begin_inset space ~ |
| 857 |
\end_inset |
| 858 |
|
| 859 |
(CSP) can be used to send status messages of PRs, PEs and PUs to a central |
| 860 |
monitoring program (cspmonitor, to be explained later). |
| 861 |
This is a helpful feature to keep an overview of large, distributed test |
| 862 |
setups. |
| 863 |
You can set a default address and report interval for CSP by defining two |
| 864 |
environment variables: |
| 865 |
\begin_inset Newline newline |
| 866 |
\end_inset |
| 867 |
|
| 868 |
|
| 869 |
\family typewriter |
| 870 |
CSP_SERVER=<Address>:<Port> |
| 871 |
\begin_inset Newline newline |
| 872 |
\end_inset |
| 873 |
|
| 874 |
CSP_INTERVAL=<Report interval in milliseconds> |
| 875 |
\family default |
| 876 |
|
| 877 |
\begin_inset Newline newline |
| 878 |
\end_inset |
| 879 |
|
| 880 |
Useful settings are CSP_SERVER=127.0.0.1:2960 and CSP_INTERVAL=333. |
| 881 |
\end_layout |
| 882 |
|
| 883 |
\begin_layout Itemize |
| 884 |
For debugging, it is useful to turn on the generation of core dumps. |
| 885 |
Under the bash shell, this can be done by |
| 886 |
\begin_inset Quotes eld |
| 887 |
\end_inset |
| 888 |
|
| 889 |
ulimit -c unlimited |
| 890 |
\begin_inset Quotes erd |
| 891 |
\end_inset |
| 892 |
|
| 893 |
. |
| 894 |
\end_layout |
| 895 |
|
| 896 |
\begin_layout Standard |
| 897 |
To make all settings above permanent, you can append them to your shell |
| 898 |
configuration (usually ~/.bashrc). |
| 899 |
Example (your settings may be different!): |
| 900 |
\end_layout |
| 901 |
|
| 902 |
\begin_layout Standard |
| 903 |
|
| 904 |
\family typewriter |
| 905 |
... |
| 906 |
\end_layout |
| 907 |
|
| 908 |
\begin_layout Standard |
| 909 |
|
| 910 |
\family typewriter |
| 911 |
export CSP_SERVER=127.0.0.1:2960 |
| 912 |
\end_layout |
| 913 |
|
| 914 |
\begin_layout Standard |
| 915 |
|
| 916 |
\family typewriter |
| 917 |
export CSP_INTERVAL=333 |
| 918 |
\end_layout |
| 919 |
|
| 920 |
\begin_layout Standard |
| 921 |
|
| 922 |
\family typewriter |
| 923 |
ulimit -c unlimited |
| 924 |
\end_layout |
| 925 |
|
| 926 |
\begin_layout Standard |
| 927 |
In order to use RSerPool, your host needs at least one multicast-capable |
| 928 |
network interface with at least a private IP address (i.e. |
| 929 |
\begin_inset space ~ |
| 930 |
\end_inset |
| 931 |
|
| 932 |
192.168.x.y; 10.a.b.c; 172.16.n.m - 172.31.i.j). |
| 933 |
If your host is already connected to a network and has an IP address, everythin |
| 934 |
g should be fine. |
| 935 |
For testing with a non-connected host, you can just set up a dummy interface: |
| 936 |
\end_layout |
| 937 |
|
| 938 |
\begin_layout Standard |
| 939 |
|
| 940 |
\family typewriter |
| 941 |
sudo ifconfig dummy0 10.255.255.1 netmask 255.255.255.0 broadcast 10.255.255.255 |
| 942 |
up multicast |
| 943 |
\end_layout |
| 944 |
|
| 945 |
\begin_layout Standard |
| 946 |
In order to permanently set up a dummy interface, you can add the following |
| 947 |
lines to /etc/network/interfaces (Debian/Ubuntu Linux; may be different |
| 948 |
for other distributions!): |
| 949 |
\end_layout |
| 950 |
|
| 951 |
\begin_layout Standard |
| 952 |
|
| 953 |
\family typewriter |
| 954 |
auto dummy0 |
| 955 |
\end_layout |
| 956 |
|
| 957 |
\begin_layout Standard |
| 958 |
|
| 959 |
\family typewriter |
| 960 |
iface dummy0 |
| 961 |
\end_layout |
| 962 |
|
| 963 |
\begin_layout Standard |
| 964 |
|
| 965 |
\family typewriter |
| 966 |
inet static address 172.31.249.1 netmask 255.255.255.252 |
| 967 |
\begin_inset space ~ |
| 968 |
\end_inset |
| 969 |
|
| 970 |
|
| 971 |
\begin_inset space ~ |
| 972 |
\end_inset |
| 973 |
|
| 974 |
|
| 975 |
\begin_inset space ~ |
| 976 |
\end_inset |
| 977 |
|
| 978 |
|
| 979 |
\family default |
| 980 |
(You may need to change this!) |
| 981 |
\end_layout |
| 982 |
|
| 983 |
\begin_layout Standard |
| 984 |
|
| 985 |
\family typewriter |
| 986 |
post-up ip link set dummy0 up multicast on |
| 987 |
\end_layout |
| 988 |
|
| 989 |
\begin_layout Standard |
| 990 |
|
| 991 |
\family typewriter |
| 992 |
pre-down ip link set dummy0 up multicast off |
| 993 |
\end_layout |
| 994 |
|
| 995 |
\begin_layout Standard |
| 996 |
After appending these lines, they will be loaded automatically each time |
| 997 |
a new bash shell is started. |
| 998 |
Your system should now be ready to install the |
| 999 |
\noun on |
| 1000 |
rsplib |
| 1001 |
\noun default |
| 1002 |
package. |
| 1003 |
\end_layout |
| 1004 |
|
| 1005 |
\begin_layout Subsubsection |
| 1006 |
\begin_inset CommandInset label |
| 1007 |
LatexCommand label |
| 1008 |
name "subsec:Configuration-and-Installation" |
| 1009 |
|
| 1010 |
\end_inset |
| 1011 |
|
| 1012 |
Configuration and Installation |
| 1013 |
\end_layout |
| 1014 |
|
| 1015 |
\begin_layout Standard |
| 1016 |
In order to install |
| 1017 |
\noun on |
| 1018 |
rsplib |
| 1019 |
\noun default |
| 1020 |
, get the latest version from |
| 1021 |
\begin_inset space ~ |
| 1022 |
\end_inset |
| 1023 |
|
| 1024 |
|
| 1025 |
\begin_inset CommandInset citation |
| 1026 |
LatexCommand cite |
| 1027 |
key "RSerPoolPage" |
| 1028 |
literal "true" |
| 1029 |
|
| 1030 |
\end_inset |
| 1031 |
|
| 1032 |
( |
| 1033 |
\begin_inset Flex URL |
| 1034 |
status collapsed |
| 1035 |
|
| 1036 |
\begin_layout Plain Layout |
| 1037 |
|
| 1038 |
https://www.nntb.no/~dreibh/rserpool |
| 1039 |
\end_layout |
| 1040 |
|
| 1041 |
\end_inset |
| 1042 |
|
| 1043 |
), unpack, configure and compile it: |
| 1044 |
\end_layout |
| 1045 |
|
| 1046 |
\begin_layout Standard |
| 1047 |
|
| 1048 |
\family typewriter |
| 1049 |
tar xzf rsplib-<version>.tar.gz |
| 1050 |
\end_layout |
| 1051 |
|
| 1052 |
\begin_layout Standard |
| 1053 |
cd |
| 1054 |
\family typewriter |
| 1055 |
rsplib-<version> |
| 1056 |
\end_layout |
| 1057 |
|
| 1058 |
\begin_layout Standard |
| 1059 |
|
| 1060 |
\family typewriter |
| 1061 |
cmake . |
| 1062 |
<Options> |
| 1063 |
\end_layout |
| 1064 |
|
| 1065 |
\begin_layout Standard |
| 1066 |
|
| 1067 |
\family typewriter |
| 1068 |
make |
| 1069 |
\end_layout |
| 1070 |
|
| 1071 |
\begin_layout Standard |
| 1072 |
|
| 1073 |
\family typewriter |
| 1074 |
sudo make install |
| 1075 |
\begin_inset space ~ |
| 1076 |
\end_inset |
| 1077 |
|
| 1078 |
|
| 1079 |
\begin_inset space ~ |
| 1080 |
\end_inset |
| 1081 |
|
| 1082 |
|
| 1083 |
\begin_inset space ~ |
| 1084 |
\end_inset |
| 1085 |
|
| 1086 |
|
| 1087 |
\family default |
| 1088 |
(This step is optional and not needed to run the examples!) |
| 1089 |
\end_layout |
| 1090 |
|
| 1091 |
\begin_layout Standard |
| 1092 |
\noindent |
| 1093 |
You may use the following options: |
| 1094 |
\end_layout |
| 1095 |
|
| 1096 |
\begin_layout Description |
| 1097 |
|
| 1098 |
\family typewriter |
| 1099 |
-DUSE_KERNEL_SCTP=1 |
| 1100 |
\family default |
| 1101 |
Enables usage of kernel SCTP ( |
| 1102 |
\series bold |
| 1103 |
default |
| 1104 |
\series default |
| 1105 |
). |
| 1106 |
\end_layout |
| 1107 |
|
| 1108 |
\begin_layout Description |
| 1109 |
|
| 1110 |
\family typewriter |
| 1111 |
-DUSE_KERNEL_SCTP=0 |
| 1112 |
\family default |
| 1113 |
Use userland SCTP (i.e. |
| 1114 |
\begin_inset space ~ |
| 1115 |
\end_inset |
| 1116 |
|
| 1117 |
|
| 1118 |
\noun on |
| 1119 |
sctplib |
| 1120 |
\noun default |
| 1121 |
/ |
| 1122 |
\noun on |
| 1123 |
socketapi |
| 1124 |
\noun default |
| 1125 |
) instead of kernel SCTP. |
| 1126 |
\end_layout |
| 1127 |
|
| 1128 |
\begin_layout Description |
| 1129 |
|
| 1130 |
\family typewriter |
| 1131 |
-DMAX_LOGLEVEL= |
| 1132 |
\begin_inset Formula $n$ |
| 1133 |
\end_inset |
| 1134 |
|
| 1135 |
|
| 1136 |
\family default |
| 1137 |
Allows for reduction of the maximum logging verbosity to |
| 1138 |
\begin_inset Formula $n$ |
| 1139 |
\end_inset |
| 1140 |
|
| 1141 |
. |
| 1142 |
Setting a lower value here makes the programs smaller, at cost of reduces |
| 1143 |
logging capabilities ( |
| 1144 |
\series bold |
| 1145 |
default: 9 |
| 1146 |
\series default |
| 1147 |
). |
| 1148 |
\end_layout |
| 1149 |
|
| 1150 |
\begin_layout Description |
| 1151 |
|
| 1152 |
\family typewriter |
| 1153 |
-DENABLE_QT=1 |
| 1154 |
\family default |
| 1155 |
Enables Qt usage; this is necessary for the Fractal Generator client. |
| 1156 |
Without Qt, the client's compilation will be skipped. |
| 1157 |
The ./configure script expects the environment variable QTDIR set to the |
| 1158 |
Qt directory. |
| 1159 |
You may need to set it appropriately, e.g. |
| 1160 |
\begin_inset space ~ |
| 1161 |
\end_inset |
| 1162 |
|
| 1163 |
"export QTDIR=/usr/share/qt5" for Ubuntu Linux. |
| 1164 |
This setting depends on your distribution; use "locate qwidget.h" to find |
| 1165 |
out the directory. |
| 1166 |
It is recommended to add the setting of QTDIR to your shell configuration |
| 1167 |
(usually ~/.bashrc). |
| 1168 |
( |
| 1169 |
\series bold |
| 1170 |
default |
| 1171 |
\series default |
| 1172 |
) |
| 1173 |
\end_layout |
| 1174 |
|
| 1175 |
\begin_layout Description |
| 1176 |
|
| 1177 |
\family typewriter |
| 1178 |
-DENABLE_QT=0 |
| 1179 |
\family default |
| 1180 |
Disables Qt usage; the Fractal Generator client will |
| 1181 |
\series bold |
| 1182 |
not |
| 1183 |
\series default |
| 1184 |
be available. |
| 1185 |
\end_layout |
| 1186 |
|
| 1187 |
\begin_layout Description |
| 1188 |
|
| 1189 |
\family typewriter |
| 1190 |
-DENABLE_REGISTRAR_STATISTICS=1 |
| 1191 |
\family default |
| 1192 |
Adds registrar option to write statistics file. |
| 1193 |
( |
| 1194 |
\series bold |
| 1195 |
default |
| 1196 |
\series default |
| 1197 |
) |
| 1198 |
\end_layout |
| 1199 |
|
| 1200 |
\begin_layout Description |
| 1201 |
|
| 1202 |
\family typewriter |
| 1203 |
-DENABLE_REGISTRAR_STATISTICS=0 |
| 1204 |
\family default |
| 1205 |
Do not compile in the statistics option. |
| 1206 |
In this case, the dependency on |
| 1207 |
\noun on |
| 1208 |
libbz2 |
| 1209 |
\noun default |
| 1210 |
is removed. |
| 1211 |
\end_layout |
| 1212 |
|
| 1213 |
\begin_layout Description |
| 1214 |
|
| 1215 |
\family typewriter |
| 1216 |
-DENABLE_HSMGTVERIFY=1 |
| 1217 |
\family default |
| 1218 |
Enable Handlespace Management verification. |
| 1219 |
This is useful for debugging only; it makes the very PR slow! |
| 1220 |
\end_layout |
| 1221 |
|
| 1222 |
\begin_layout Description |
| 1223 |
|
| 1224 |
\family typewriter |
| 1225 |
-DENABLE_HSMGTVERIFY=0 |
| 1226 |
\family default |
| 1227 |
Turns off Handlespace Management verification. |
| 1228 |
( |
| 1229 |
\series bold |
| 1230 |
default |
| 1231 |
\series default |
| 1232 |
) |
| 1233 |
\end_layout |
| 1234 |
|
| 1235 |
\begin_layout Description |
| 1236 |
|
| 1237 |
\family typewriter |
| 1238 |
-DENABLE_CSP=1 |
| 1239 |
\family default |
| 1240 |
Enable the Component Status Protocol support (strongly recommended!) ( |
| 1241 |
\series bold |
| 1242 |
default |
| 1243 |
\series default |
| 1244 |
) |
| 1245 |
\end_layout |
| 1246 |
|
| 1247 |
\begin_layout Description |
| 1248 |
|
| 1249 |
\family typewriter |
| 1250 |
-DENABLE_CSP=0 |
| 1251 |
\family default |
| 1252 |
Turns the Component Status Protocol support off. |
| 1253 |
\end_layout |
| 1254 |
|
| 1255 |
\begin_layout Description |
| 1256 |
|
| 1257 |
\family typewriter |
| 1258 |
-DBUILD_TEST_PROGRAMS=1 |
| 1259 |
\family default |
| 1260 |
Enable building of test programs. |
| 1261 |
\end_layout |
| 1262 |
|
| 1263 |
\begin_layout Description |
| 1264 |
|
| 1265 |
\family typewriter |
| 1266 |
-DBUILD_TEST_PROGRAMS=0 |
| 1267 |
\family default |
| 1268 |
Disable building of test programs. |
| 1269 |
( |
| 1270 |
\series bold |
| 1271 |
default |
| 1272 |
\series default |
| 1273 |
) |
| 1274 |
\end_layout |
| 1275 |
|
| 1276 |
\begin_layout Standard |
| 1277 |
\noindent |
| 1278 |
The |
| 1279 |
\noun on |
| 1280 |
rsplib |
| 1281 |
\noun default |
| 1282 |
package also provides filter and coloring rules for |
| 1283 |
\noun on |
| 1284 |
Wireshark |
| 1285 |
\noun default |
| 1286 |
|
| 1287 |
\begin_inset space ~ |
| 1288 |
\end_inset |
| 1289 |
|
| 1290 |
|
| 1291 |
\begin_inset CommandInset citation |
| 1292 |
LatexCommand cite |
| 1293 |
key "WiresharkUsersGuide" |
| 1294 |
literal "true" |
| 1295 |
|
| 1296 |
\end_inset |
| 1297 |
|
| 1298 |
. |
| 1299 |
You can find them in the rsplib/wireshark/ subdirectory. |
| 1300 |
Just copy the files |
| 1301 |
\begin_inset Quotes eld |
| 1302 |
\end_inset |
| 1303 |
|
| 1304 |
dfilters |
| 1305 |
\begin_inset Quotes erd |
| 1306 |
\end_inset |
| 1307 |
|
| 1308 |
and |
| 1309 |
\begin_inset Quotes eld |
| 1310 |
\end_inset |
| 1311 |
|
| 1312 |
colorfilters |
| 1313 |
\begin_inset Quotes erd |
| 1314 |
\end_inset |
| 1315 |
|
| 1316 |
to your |
| 1317 |
\noun on |
| 1318 |
Wireshark |
| 1319 |
\noun default |
| 1320 |
settings directory: ~/.wireshark (Ubuntu/Debian) or /root/.wireshark (you |
| 1321 |
need root permission to do so, i.e. |
| 1322 |
\begin_inset space ~ |
| 1323 |
\end_inset |
| 1324 |
|
| 1325 |
use |
| 1326 |
\begin_inset Quotes eld |
| 1327 |
\end_inset |
| 1328 |
|
| 1329 |
sudo |
| 1330 |
\begin_inset Quotes erd |
| 1331 |
\end_inset |
| 1332 |
|
| 1333 |
!). |
| 1334 |
Optionally, you can also copy the file |
| 1335 |
\begin_inset Quotes eld |
| 1336 |
\end_inset |
| 1337 |
|
| 1338 |
preferences |
| 1339 |
\begin_inset Quotes erd |
| 1340 |
\end_inset |
| 1341 |
|
| 1342 |
(if you do not have your own preferences configured yet, otherwise this |
| 1343 |
would overwrite them!). |
| 1344 |
You do |
| 1345 |
\series bold |
| 1346 |
not |
| 1347 |
\series default |
| 1348 |
need to install the provided dissectors, they have already contributed |
| 1349 |
to the |
| 1350 |
\noun on |
| 1351 |
Wireshark |
| 1352 |
\noun default |
| 1353 |
developers and are included already! |
| 1354 |
\end_layout |
| 1355 |
|
| 1356 |
\begin_layout Subsection |
| 1357 |
\begin_inset CommandInset label |
| 1358 |
LatexCommand label |
| 1359 |
name "subsec:Testing-the-Installation" |
| 1360 |
|
| 1361 |
\end_inset |
| 1362 |
|
| 1363 |
Testing the Installation |
| 1364 |
\end_layout |
| 1365 |
|
| 1366 |
\begin_layout Standard |
| 1367 |
To perform a test of the installation, start the following programs in the |
| 1368 |
rsplib/ subdirectory of the |
| 1369 |
\noun on |
| 1370 |
rsplib |
| 1371 |
\noun default |
| 1372 |
package: |
| 1373 |
\end_layout |
| 1374 |
|
| 1375 |
\begin_layout Enumerate |
| 1376 |
Start the CSP monitor, it will print out useful information about the components |
| 1377 |
started: |
| 1378 |
\family typewriter |
| 1379 |
|
| 1380 |
\begin_inset Newline newline |
| 1381 |
\end_inset |
| 1382 |
|
| 1383 |
./cspmonitor |
| 1384 |
\end_layout |
| 1385 |
|
| 1386 |
\begin_layout Enumerate |
| 1387 |
First, start a registrar: |
| 1388 |
\family typewriter |
| 1389 |
|
| 1390 |
\begin_inset Newline newline |
| 1391 |
\end_inset |
| 1392 |
|
| 1393 |
./rspregistrar |
| 1394 |
\end_layout |
| 1395 |
|
| 1396 |
\begin_layout Enumerate |
| 1397 |
Start a PE for the Fractal Generator service: |
| 1398 |
\family typewriter |
| 1399 |
|
| 1400 |
\begin_inset Newline newline |
| 1401 |
\end_inset |
| 1402 |
|
| 1403 |
./rspserver -fractal |
| 1404 |
\begin_inset Newline newline |
| 1405 |
\end_inset |
| 1406 |
|
| 1407 |
|
| 1408 |
\family default |
| 1409 |
The PE should find the PR and show its PE |
| 1410 |
\begin_inset space ~ |
| 1411 |
\end_inset |
| 1412 |
|
| 1413 |
ID upon startup. |
| 1414 |
When it shows the ID, it has successfully registered. |
| 1415 |
If something does not work, use the parameter -loglevel=5 to increase the |
| 1416 |
verbosity of the log output. |
| 1417 |
Also refer to subsection |
| 1418 |
\begin_inset space ~ |
| 1419 |
\end_inset |
| 1420 |
|
| 1421 |
|
| 1422 |
\begin_inset CommandInset ref |
| 1423 |
LatexCommand ref |
| 1424 |
reference "subsec:Preparation-Work" |
| 1425 |
|
| 1426 |
\end_inset |
| 1427 |
|
| 1428 |
to check your system configuration. |
| 1429 |
\begin_inset Newline newline |
| 1430 |
\end_inset |
| 1431 |
|
| 1432 |
Have a look at the CSP monitor output. |
| 1433 |
It should show the PR and PE. |
| 1434 |
\end_layout |
| 1435 |
|
| 1436 |
\begin_layout Enumerate |
| 1437 |
Start a PU for the Fractal Generator service: |
| 1438 |
\family typewriter |
| 1439 |
|
| 1440 |
\begin_inset Newline newline |
| 1441 |
\end_inset |
| 1442 |
|
| 1443 |
./fractalpooluser |
| 1444 |
\family default |
| 1445 |
|
| 1446 |
\begin_inset Newline newline |
| 1447 |
\end_inset |
| 1448 |
|
| 1449 |
You should now see the calculation progress in the PU's window. |
| 1450 |
Also have a look at the CSP monitor output; it should show the PU. |
| 1451 |
\end_layout |
| 1452 |
|
| 1453 |
\begin_layout Enumerate |
| 1454 |
Start more PEs, PUs and PRs. |
| 1455 |
You can turn on the |
| 1456 |
\begin_inset Quotes eld |
| 1457 |
\end_inset |
| 1458 |
|
| 1459 |
unreliable mode |
| 1460 |
\begin_inset Quotes erd |
| 1461 |
\end_inset |
| 1462 |
|
| 1463 |
of the PE using the parameter -fgpfailureafter=20. |
| 1464 |
When all PEs are in unreliable mode, you should see the failovers. |
| 1465 |
You can also abort and restart the PRs. |
| 1466 |
Also have a look at the CSP monitor output. |
| 1467 |
\end_layout |
| 1468 |
|
| 1469 |
\begin_layout Enumerate |
| 1470 |
Start |
| 1471 |
\noun on |
| 1472 |
Wireshark |
| 1473 |
\noun default |
| 1474 |
, sniff on the |
| 1475 |
\begin_inset Quotes eld |
| 1476 |
\end_inset |
| 1477 |
|
| 1478 |
lo |
| 1479 |
\begin_inset Quotes erd |
| 1480 |
\end_inset |
| 1481 |
|
| 1482 |
(loopback, only local traffic) or the |
| 1483 |
\begin_inset Quotes erd |
| 1484 |
\end_inset |
| 1485 |
|
| 1486 |
any |
| 1487 |
\begin_inset Quotes erd |
| 1488 |
\end_inset |
| 1489 |
|
| 1490 |
interface. |
| 1491 |
If you have set up the filter and coloring rules (see subsection |
| 1492 |
\begin_inset space ~ |
| 1493 |
\end_inset |
| 1494 |
|
| 1495 |
|
| 1496 |
\begin_inset CommandInset ref |
| 1497 |
LatexCommand ref |
| 1498 |
reference "subsec:Testing-the-Installation" |
| 1499 |
|
| 1500 |
\end_inset |
| 1501 |
|
| 1502 |
), you can select some useful filters and get the RSerPool traffic nicely |
| 1503 |
colorized. |
| 1504 |
\end_layout |
| 1505 |
|
| 1506 |
\begin_layout Section |
| 1507 |
The Programs |
| 1508 |
\end_layout |
| 1509 |
|
| 1510 |
\begin_layout Standard |
| 1511 |
All installable programs in the rsplib/ subdirectory also have a manual |
| 1512 |
page (suffix: |
| 1513 |
\begin_inset space ~ |
| 1514 |
\end_inset |
| 1515 |
|
| 1516 |
.8). |
| 1517 |
You can view the manual page in the rsplib/ directory using |
| 1518 |
\end_layout |
| 1519 |
|
| 1520 |
\begin_layout Standard |
| 1521 |
|
| 1522 |
\family typewriter |
| 1523 |
man ./<program name>.8 |
| 1524 |
\end_layout |
| 1525 |
|
| 1526 |
\begin_layout Standard |
| 1527 |
\noindent |
| 1528 |
After installation (make install, see subsection |
| 1529 |
\begin_inset space ~ |
| 1530 |
\end_inset |
| 1531 |
|
| 1532 |
|
| 1533 |
\begin_inset CommandInset ref |
| 1534 |
LatexCommand ref |
| 1535 |
reference "subsec:Configuration-and-Installation" |
| 1536 |
|
| 1537 |
\end_inset |
| 1538 |
|
| 1539 |
), the manual pages will also be available directly. |
| 1540 |
\end_layout |
| 1541 |
|
| 1542 |
\begin_layout Standard |
| 1543 |
The programs included in rsplib/ subdirectory have the following purposes: |
| 1544 |
\end_layout |
| 1545 |
|
| 1546 |
\begin_layout Description |
| 1547 |
rspregistrar The PR implementation. |
| 1548 |
\end_layout |
| 1549 |
|
| 1550 |
\begin_layout Description |
| 1551 |
rspserver A PE which provides multiple services. |
| 1552 |
The actual service started is given by command-line parameter. |
| 1553 |
\end_layout |
| 1554 |
|
| 1555 |
\begin_layout Description |
| 1556 |
rspterminal A simple PU for services like Echo, Discard, Daytime and CharGen. |
| 1557 |
\end_layout |
| 1558 |
|
| 1559 |
\begin_layout Description |
| 1560 |
pingpongclient A simple PU for a request-response example service with cookie-ba |
| 1561 |
sed failover |
| 1562 |
\begin_inset space ~ |
| 1563 |
\end_inset |
| 1564 |
|
| 1565 |
|
| 1566 |
\begin_inset CommandInset citation |
| 1567 |
LatexCommand cite |
| 1568 |
key "LCN2002,IJAIT2009" |
| 1569 |
literal "true" |
| 1570 |
|
| 1571 |
\end_inset |
| 1572 |
|
| 1573 |
. |
| 1574 |
\end_layout |
| 1575 |
|
| 1576 |
\begin_layout Description |
| 1577 |
calcappclient The PU for the CalcApp service used for performance measurements |
| 1578 |
(see |
| 1579 |
\begin_inset space ~ |
| 1580 |
\end_inset |
| 1581 |
|
| 1582 |
|
| 1583 |
\begin_inset CommandInset citation |
| 1584 |
LatexCommand cite |
| 1585 |
key "Dre2006,KiVS2007,Contel2009" |
| 1586 |
literal "true" |
| 1587 |
|
| 1588 |
\end_inset |
| 1589 |
|
| 1590 |
). |
| 1591 |
\end_layout |
| 1592 |
|
| 1593 |
\begin_layout Description |
| 1594 |
fractalpooluser The PU for the FractalGenerator service. |
| 1595 |
\end_layout |
| 1596 |
|
| 1597 |
\begin_layout Description |
| 1598 |
scriptingclient The PU for the scripting service (remote script execution |
| 1599 |
with input/output data transfer; see also |
| 1600 |
\begin_inset space ~ |
| 1601 |
\end_inset |
| 1602 |
|
| 1603 |
|
| 1604 |
\begin_inset CommandInset citation |
| 1605 |
LatexCommand cite |
| 1606 |
key "OMNeT++Workshop2008" |
| 1607 |
literal "true" |
| 1608 |
|
| 1609 |
\end_inset |
| 1610 |
|
| 1611 |
). |
| 1612 |
\end_layout |
| 1613 |
|
| 1614 |
\begin_layout Description |
| 1615 |
cspmonitor The CSP monitor program to view status information of running |
| 1616 |
components. |
| 1617 |
\end_layout |
| 1618 |
|
| 1619 |
\begin_layout Description |
| 1620 |
hsdump A ENRP-based test utility to dump the handlespace of a PR. |
| 1621 |
\end_layout |
| 1622 |
|
| 1623 |
\begin_layout Section |
| 1624 |
The |
| 1625 |
\noun on |
| 1626 |
rsplib |
| 1627 |
\noun default |
| 1628 |
API |
| 1629 |
\end_layout |
| 1630 |
|
| 1631 |
\begin_layout Subsection |
| 1632 |
Initialization/Clean-Up |
| 1633 |
\end_layout |
| 1634 |
|
| 1635 |
\begin_layout Subsubsection |
| 1636 |
rsp_initinfo() |
| 1637 |
\end_layout |
| 1638 |
|
| 1639 |
\begin_layout Standard |
| 1640 |
... |
| 1641 |
\end_layout |
| 1642 |
|
| 1643 |
\begin_layout Subsubsection |
| 1644 |
rsp_freeinfo() |
| 1645 |
\end_layout |
| 1646 |
|
| 1647 |
\begin_layout Standard |
| 1648 |
... |
| 1649 |
\end_layout |
| 1650 |
|
| 1651 |
\begin_layout Subsubsection |
| 1652 |
rsp_initarg() |
| 1653 |
\end_layout |
| 1654 |
|
| 1655 |
\begin_layout Standard |
| 1656 |
... |
| 1657 |
\end_layout |
| 1658 |
|
| 1659 |
\begin_layout Subsubsection |
| 1660 |
rsp_initialize() |
| 1661 |
\end_layout |
| 1662 |
|
| 1663 |
\begin_layout Standard |
| 1664 |
... |
| 1665 |
\end_layout |
| 1666 |
|
| 1667 |
\begin_layout Subsubsection |
| 1668 |
rsp_cleanup() |
| 1669 |
\end_layout |
| 1670 |
|
| 1671 |
\begin_layout Standard |
| 1672 |
... |
| 1673 |
\end_layout |
| 1674 |
|
| 1675 |
\begin_layout Subsection |
| 1676 |
Basic Mode API |
| 1677 |
\end_layout |
| 1678 |
|
| 1679 |
\begin_layout Subsubsection |
| 1680 |
rsp_pe_registration() |
| 1681 |
\end_layout |
| 1682 |
|
| 1683 |
\begin_layout Standard |
| 1684 |
... |
| 1685 |
\end_layout |
| 1686 |
|
| 1687 |
\begin_layout Subsubsection |
| 1688 |
rsp_pe_deregistration() |
| 1689 |
\end_layout |
| 1690 |
|
| 1691 |
\begin_layout Standard |
| 1692 |
... |
| 1693 |
\end_layout |
| 1694 |
|
| 1695 |
\begin_layout Subsubsection |
| 1696 |
rsp_pe_failure() |
| 1697 |
\end_layout |
| 1698 |
|
| 1699 |
\begin_layout Standard |
| 1700 |
... |
| 1701 |
\end_layout |
| 1702 |
|
| 1703 |
\begin_layout Subsubsection |
| 1704 |
rsp_getaddrinfo() |
| 1705 |
\end_layout |
| 1706 |
|
| 1707 |
\begin_layout Standard |
| 1708 |
... |
| 1709 |
\end_layout |
| 1710 |
|
| 1711 |
\begin_layout Subsubsection |
| 1712 |
rsp_freeaddrinfo() |
| 1713 |
\end_layout |
| 1714 |
|
| 1715 |
\begin_layout Standard |
| 1716 |
... |
| 1717 |
\end_layout |
| 1718 |
|
| 1719 |
\begin_layout Subsection |
| 1720 |
Enhanced Mode API Socket Functions |
| 1721 |
\end_layout |
| 1722 |
|
| 1723 |
\begin_layout Subsubsection |
| 1724 |
rsp_socket() |
| 1725 |
\end_layout |
| 1726 |
|
| 1727 |
\begin_layout Standard |
| 1728 |
... |
| 1729 |
\end_layout |
| 1730 |
|
| 1731 |
\begin_layout Subsubsection |
| 1732 |
rsp_update_session_parameters() |
| 1733 |
\end_layout |
| 1734 |
|
| 1735 |
\begin_layout Standard |
| 1736 |
... |
| 1737 |
\end_layout |
| 1738 |
|
| 1739 |
\begin_layout Subsubsection |
| 1740 |
rsp_bind() |
| 1741 |
\end_layout |
| 1742 |
|
| 1743 |
\begin_layout Standard |
| 1744 |
... |
| 1745 |
\end_layout |
| 1746 |
|
| 1747 |
\begin_layout Subsubsection |
| 1748 |
rsp_listen() |
| 1749 |
\end_layout |
| 1750 |
|
| 1751 |
\begin_layout Standard |
| 1752 |
... |
| 1753 |
\end_layout |
| 1754 |
|
| 1755 |
\begin_layout Subsubsection |
| 1756 |
rsp_getsockname() |
| 1757 |
\end_layout |
| 1758 |
|
| 1759 |
\begin_layout Standard |
| 1760 |
... |
| 1761 |
\end_layout |
| 1762 |
|
| 1763 |
\begin_layout Subsubsection |
| 1764 |
rsp_getpeername() |
| 1765 |
\end_layout |
| 1766 |
|
| 1767 |
\begin_layout Standard |
| 1768 |
... |
| 1769 |
\end_layout |
| 1770 |
|
| 1771 |
\begin_layout Subsubsection |
| 1772 |
rsp_close() |
| 1773 |
\end_layout |
| 1774 |
|
| 1775 |
\begin_layout Standard |
| 1776 |
... |
| 1777 |
\end_layout |
| 1778 |
|
| 1779 |
\begin_layout Subsubsection |
| 1780 |
rsp_poll() |
| 1781 |
\end_layout |
| 1782 |
|
| 1783 |
\begin_layout Standard |
| 1784 |
... |
| 1785 |
\end_layout |
| 1786 |
|
| 1787 |
\begin_layout Subsubsection |
| 1788 |
rsp_select() |
| 1789 |
\end_layout |
| 1790 |
|
| 1791 |
\begin_layout Standard |
| 1792 |
... |
| 1793 |
\end_layout |
| 1794 |
|
| 1795 |
\begin_layout Subsubsection |
| 1796 |
rsp_getsockopt() |
| 1797 |
\end_layout |
| 1798 |
|
| 1799 |
\begin_layout Standard |
| 1800 |
... |
| 1801 |
\end_layout |
| 1802 |
|
| 1803 |
\begin_layout Subsubsection |
| 1804 |
rsp_setsockopt() |
| 1805 |
\end_layout |
| 1806 |
|
| 1807 |
\begin_layout Standard |
| 1808 |
... |
| 1809 |
\end_layout |
| 1810 |
|
| 1811 |
\begin_layout Subsection |
| 1812 |
Enhanced Mode API Pool Element Functions |
| 1813 |
\end_layout |
| 1814 |
|
| 1815 |
\begin_layout Subsubsection |
| 1816 |
rsp_register() |
| 1817 |
\end_layout |
| 1818 |
|
| 1819 |
\begin_layout Standard |
| 1820 |
... |
| 1821 |
\end_layout |
| 1822 |
|
| 1823 |
\begin_layout Subsubsection |
| 1824 |
rsp_deregister() |
| 1825 |
\end_layout |
| 1826 |
|
| 1827 |
\begin_layout Standard |
| 1828 |
... |
| 1829 |
\end_layout |
| 1830 |
|
| 1831 |
\begin_layout Subsubsection |
| 1832 |
rsp_accept() |
| 1833 |
\end_layout |
| 1834 |
|
| 1835 |
\begin_layout Standard |
| 1836 |
... |
| 1837 |
\end_layout |
| 1838 |
|
| 1839 |
\begin_layout Subsubsection |
| 1840 |
rsp_connect() |
| 1841 |
\end_layout |
| 1842 |
|
| 1843 |
\begin_layout Standard |
| 1844 |
... |
| 1845 |
\end_layout |
| 1846 |
|
| 1847 |
\begin_layout Subsection |
| 1848 |
Enhanced Mode API Pool User Functions |
| 1849 |
\end_layout |
| 1850 |
|
| 1851 |
\begin_layout Subsubsection |
| 1852 |
rsp_has_cookie() |
| 1853 |
\end_layout |
| 1854 |
|
| 1855 |
\begin_layout Standard |
| 1856 |
... |
| 1857 |
\end_layout |
| 1858 |
|
| 1859 |
\begin_layout Subsubsection |
| 1860 |
rsp_forcefailover() |
| 1861 |
\end_layout |
| 1862 |
|
| 1863 |
\begin_layout Standard |
| 1864 |
... |
| 1865 |
\end_layout |
| 1866 |
|
| 1867 |
\begin_layout Subsubsection |
| 1868 |
rsp_sendmsg() |
| 1869 |
\end_layout |
| 1870 |
|
| 1871 |
\begin_layout Standard |
| 1872 |
... |
| 1873 |
\end_layout |
| 1874 |
|
| 1875 |
\begin_layout Subsubsection |
| 1876 |
rsp_send_cookie() |
| 1877 |
\end_layout |
| 1878 |
|
| 1879 |
\begin_layout Standard |
| 1880 |
... |
| 1881 |
\end_layout |
| 1882 |
|
| 1883 |
\begin_layout Subsubsection |
| 1884 |
rsp_recvmsg() |
| 1885 |
\end_layout |
| 1886 |
|
| 1887 |
\begin_layout Standard |
| 1888 |
... |
| 1889 |
\end_layout |
| 1890 |
|
| 1891 |
\begin_layout Subsubsection |
| 1892 |
rsp_recvfullmsg() |
| 1893 |
\end_layout |
| 1894 |
|
| 1895 |
\begin_layout Standard |
| 1896 |
... |
| 1897 |
\end_layout |
| 1898 |
|
| 1899 |
\begin_layout Subsubsection |
| 1900 |
rsp_read() |
| 1901 |
\end_layout |
| 1902 |
|
| 1903 |
\begin_layout Standard |
| 1904 |
... |
| 1905 |
\end_layout |
| 1906 |
|
| 1907 |
\begin_layout Subsubsection |
| 1908 |
rsp_recv() |
| 1909 |
\end_layout |
| 1910 |
|
| 1911 |
\begin_layout Standard |
| 1912 |
... |
| 1913 |
\end_layout |
| 1914 |
|
| 1915 |
\begin_layout Subsubsection |
| 1916 |
rsp_write() |
| 1917 |
\end_layout |
| 1918 |
|
| 1919 |
\begin_layout Standard |
| 1920 |
... |
| 1921 |
\end_layout |
| 1922 |
|
| 1923 |
\begin_layout Subsubsection |
| 1924 |
rsp_send() |
| 1925 |
\end_layout |
| 1926 |
|
| 1927 |
\begin_layout Standard |
| 1928 |
... |
| 1929 |
\end_layout |
| 1930 |
|
| 1931 |
\begin_layout Subsection |
| 1932 |
Enhanced Mode API Miscellaneous Functions |
| 1933 |
\end_layout |
| 1934 |
|
| 1935 |
\begin_layout Subsubsection |
| 1936 |
rsp_mapsocket() |
| 1937 |
\end_layout |
| 1938 |
|
| 1939 |
\begin_layout Standard |
| 1940 |
... |
| 1941 |
\end_layout |
| 1942 |
|
| 1943 |
\begin_layout Subsubsection |
| 1944 |
rsp_unmapsocket() |
| 1945 |
\end_layout |
| 1946 |
|
| 1947 |
\begin_layout Standard |
| 1948 |
... |
| 1949 |
\end_layout |
| 1950 |
|
| 1951 |
\begin_layout Subsubsection |
| 1952 |
rsp_print_notification() |
| 1953 |
\end_layout |
| 1954 |
|
| 1955 |
\begin_layout Standard |
| 1956 |
... |
| 1957 |
\end_layout |
| 1958 |
|
| 1959 |
\begin_layout Subsubsection |
| 1960 |
rsp_getpolicybytype() |
| 1961 |
\end_layout |
| 1962 |
|
| 1963 |
\begin_layout Standard |
| 1964 |
... |
| 1965 |
\end_layout |
| 1966 |
|
| 1967 |
\begin_layout Subsubsection |
| 1968 |
rsp_getpolicybyname() |
| 1969 |
\end_layout |
| 1970 |
|
| 1971 |
\begin_layout Standard |
| 1972 |
... |
| 1973 |
\end_layout |
| 1974 |
|
| 1975 |
\begin_layout Subsubsection |
| 1976 |
rsp_csp_setstatus() |
| 1977 |
\end_layout |
| 1978 |
|
| 1979 |
\begin_layout Standard |
| 1980 |
... |
| 1981 |
\end_layout |
| 1982 |
|
| 1983 |
\begin_layout Section* |
| 1984 |
Testbed Platform |
| 1985 |
\end_layout |
| 1986 |
|
| 1987 |
\begin_layout Standard |
| 1988 |
A large-scale and realistic Internet testbed platform with support for the |
| 1989 |
multi-homing feature of the underlying SCTP protocol is NorNet. |
| 1990 |
A description of NorNet is provided in |
| 1991 |
\begin_inset space \thinspace{} |
| 1992 |
\end_inset |
| 1993 |
|
| 1994 |
|
| 1995 |
\begin_inset CommandInset citation |
| 1996 |
LatexCommand cite |
| 1997 |
key "PAMS2013-NorNet,ComNets2013-Core,CAIA2015,NNUW2-Dreibholz-NorNetCore-Tutorial" |
| 1998 |
literal "true" |
| 1999 |
|
| 2000 |
\end_inset |
| 2001 |
|
| 2002 |
, some further information can be found on the project website at |
| 2003 |
\begin_inset space \thinspace{} |
| 2004 |
\end_inset |
| 2005 |
|
| 2006 |
|
| 2007 |
\begin_inset Flex URL |
| 2008 |
status collapsed |
| 2009 |
|
| 2010 |
\begin_layout Plain Layout |
| 2011 |
|
| 2012 |
https://www.nntb.no |
| 2013 |
\end_layout |
| 2014 |
|
| 2015 |
\end_inset |
| 2016 |
|
| 2017 |
. |
| 2018 |
\end_layout |
| 2019 |
|
| 2020 |
\begin_layout Standard |
| 2021 |
\begin_inset CommandInset bibtex |
| 2022 |
LatexCommand bibtex |
| 2023 |
bibfiles "Referenzarchiv" |
| 2024 |
options "bibtotoc,alphaurl" |
| 2025 |
|
| 2026 |
\end_inset |
| 2027 |
|
| 2028 |
|
| 2029 |
\end_layout |
| 2030 |
|
| 2031 |
\end_body |
| 2032 |
\end_document |