Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
afe10813101ab6b74edf18a61d4b6493ccdcace2
[simgrid.git] / docs / source / XML_reference.rst
1 .. raw:: html
2
3    <object id="TOC" data="graphical-toc.svg" type="image/svg+xml"></object>
4    <script>
5    window.onload=function() { // Wait for the SVG to be loaded before changing it
6      var elem=document.querySelector("#TOC").contentDocument.getElementById("ReferenceBox")
7      elem.style="opacity:0.93999999;fill:#ff0000;fill-opacity:0.1;stroke:#000000;stroke-width:0.35277778;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1";
8    }
9    </script>
10    <br/>
11    <br/>
12
13 .. _platform_reference:
14
15 Complete XML Reference
16 **********************
17
18 Your platform description should follow the specification presented in the
19 `simgrid.dtd <https://simgrid.org/simgrid.dtd>`_ DTD file. The same DTD is used for both platform and deployment files.
20
21 Here is the complete list of all existing tags in the DTD:
22
23 :ref:`pf_tag_actor`: request the creation of an actor (deployment file, not in the platform). |br|
24 :ref:`pf_tag_argument`: pass parameters to the created actors (deployment file, not in the platform). |br|
25 :ref:`pf_tag_backbone`: building clusters manually from the XML (deprecated, please use the C++ API). |br|
26 :ref:`pf_tag_bypassRoute`: tweeking the routing (advanced tag). |br|
27 :ref:`pf_tag_bypassZoneRoute`: tweeking the routing (expert-only tag). |br|
28 :ref:`pf_tag_cabinet`: building clusters manually from the XML (deprecated, please use the C++ API). |br|
29 :ref:`pf_tag_config`: pass simulation parameters from the XML file. |br|
30 :ref:`pf_tag_disk`: storage resource. |br|
31 :ref:`pf_tag_host`: computing resource. |br|
32 :ref:`pf_tag_host_link`: building clusters manually from the XML (deprecated, please use the C++ API). |br|
33 :ref:`pf_tag_link`: communication resource. |br|
34 :ref:`pf_tag_link_ctn`: name of a link to be included in a route. |br|
35 :ref:`pf_tag_peer`: host located in a :ref:`pf_rm_vivaldi` zone. |br|
36 :ref:`pf_tag_platform`: root tag of any platform description. |br|
37 :ref:`pf_tag_prop`: attach used-defined properties to your :ref:`pf_tag_actor`, :ref:`pf_tag_disk`, :ref:`pf_tag_host`, :ref:`pf_tag_link` or :ref:`pf_tag_zone`. |br|
38 :ref:`pf_tag_route`: intra-zone network path. |br|
39 :ref:`pf_tag_router`: like an :ref:`pf_tag_host` that cannot host actors (for network routing algorithms). |br|
40 :ref:`pf_tag_zone`: area of the network containing elements (:ref:`pf_tag_disk`, :ref:`pf_tag_host`, :ref:`pf_tag_link` and sub-:ref:`pf_tag_zone`). |br|
41 :ref:`pf_tag_zoneRoute`: inter-zone network path.
42
43 -------------------------------------------------------------------------------
44
45 .. _pf_tag_cluster:
46
47 <cluster>
48 ---------
49
50 This complex tag builds a full zone, with some hosts, links, a router, and the relevant routing algorithm. There is several
51 kind of specifically tailored cluster types: crossbar clusters (contention-free internal network), backbone clusters
52 (constrained internal network), fat-trees, DragonFly and Torus (star clusters are similar, but can only be created from the
53 C++ code). The ``topology`` attribute is used to choose the type of cluster while the ``topo_parameters`` attribute is used
54 to configure the topology. Please refer to the  :ref:`examples in the documentation <platform_examples>` for all details.
55
56 Regardless of its topology, each cluster comes with a router that can be used for inter-zone routing. Its name is defined
57 as ``${prefix}${clusterId}_router${suffix}``.
58
59 **Parent tags:** :ref:`pf_tag_platform`, :ref:`pf_tag_zone` |br|
60 **Children tags:** none |br|
61 **Attributes:**
62
63 :``id``: The identifier of the cluster. Facilitates referring to this cluster.
64 :``prefix``: Each node of the cluster has to have a name. This name will be prefixed with this prefix.
65 :``suffix``: Each node of the cluster will be suffixed with this suffix
66 :``radical``: Regexp used to generate cluster nodes name.
67
68     Syntax: "10-20" will give you 11 machines numbered from 10 to 20, "10-20;2" will give you 12 machines, one with the number 2, others numbered as before.
69
70     The produced number is concatenated between prefix and suffix to form machine names.
71 :``speed``: Same as the ``speed`` attribute of the :ref:`pf_tag_host` tag.
72 :``core``: Same as the ``core`` attribute of the :ref:`pf_tag_host` tag.
73 :``bw``: Bandwidth for the links between nodes and backbone (if any). See :ref:`pf_tag_link` for syntax/details.
74 :``lat``: Latency for the links between nodes and backbone (if any). See :ref:`pf_tag_link` for syntax/details.
75 :``sharing_policy``: Sharing policy for the links between nodes and backbone (if any). See :ref:`pf_tag_link` for syntax/details.
76 :``bb_bw``: Bandwidth for backbone (if any). See :ref:`pf_tag_link` for syntax/details.
77
78     If bb_bw and bb_lat attributes are omitted, no backbone is created (alternative cluster architecture described earlier).
79 :``bb_lat``: Latency for backbone (if any). See :ref:`pf_tag_link` section for syntax/details.
80
81     If bb_lat and bb_bw attributes are omitted, no backbone is created (alternative cluster architecture described earlier).
82 :``bb_sharing_policy``: Sharing policy for the backbone (if any). See :ref:`pf_tag_link` section for syntax/details.
83 :``limiter_link``: Bandwidth for limiter link (if any).
84
85     This adds a specific link for each node, to set the maximum bandwidth reached when communicating in both directions at the same time.
86
87     In theory this value should be 2*bw for splitduplex links, but in reality this might be less. This value will depend heavily on the communication model, and on the cluster's hardware, so no default value can be set, this has to be measured.
88
89     More details can be obtained in `Toward Better Simulation of MPI Applications on Ethernet/TCP Networks <https://hal.inria.fr/hal-00919507/>`_
90 :``loopback_bw``: Bandwidth for loopback (if any). See :ref:`pf_tag_link` section for syntax/details.
91
92     If loopback_bw and loopback_lat attributes are omitted, no loopback link is created and all intra-node communication will use the main network link of the node.
93
94     The sharing policy of a loopback link is **FATPIPE** :ref:`pf_tag_link`.
95 :``loopback_lat``: Latency for loopback (if any). See loopback_bw for more info.
96 :``topology``: Network topology to use.
97
98     SimGrid currently supports FLAT (with or without backbone, as described before), TORUS, FAT_TREE and DRAGONFLY attributes for this tag.
99
100     See :ref:`platform_examples` for more details.
101
102 :``topo_parameters``: Specific parameters to pass for the topology defined in the topology tag.
103
104     For torus networks, comma-separated list of the number of nodes in each dimension of the torus.
105
106     Please refer to :ref:`platform_examples`.
107
108 -------------------------------------------------------------------------------
109
110 .. _pf_tag_config:
111
112 <config>
113 --------
114
115 Adding configuration flags directly into the platform file becomes particularly
116 useful when the realism of the described platform depends on some specific
117 flags. For example, this could help you to finely tune SMPI. Almost all
118 :ref:`command-line configuration items <options_list>` can be configured this
119 way.
120
121 Each configuration flag is described as a :ref:`pf_tag_prop` whose ``id`` is the
122 name of the flag and ``value`` is what it has to be set to.
123
124 **Parent tags:** :ref:`pf_tag_platform` (must appear before any other tags) |br|
125 **Children tags:** :ref:`pf_tag_prop` |br|
126 **Attributes:** none
127
128 .. code-block:: xml
129
130    <?xml version = '1.0'?>
131    <!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">
132    <platform version = "4.1">
133      <config>
134        <prop id = "maxmin/precision" value = "0.000010" />
135        <prop id = "cpu/optim" value = "TI" />
136        <prop id = "network/model" value = "SMPI" />
137        <prop id = "network/bandwidth-factor" value = "65472:0.940694;15424:0.697866;9376:0.58729" />
138      </config>
139
140      <!-- The rest of your platform -->
141    </platform>
142
143 -------------------------------------------------------------------------------
144
145 .. _pf_tag_disk:
146
147 <disk>
148 ------
149
150 SimGrid can simulate the time it takes to read or write data on disk, even if the stored data is not made persistent in
151 any way by SimGrid. This means that your application will correctly be slowed down when doing simulated I/O, but there
152 is no way to get the data stored this way.
153
154 We decided to not model anything beyond raw access in SimGrid because we believe that there is not single way of doing so.
155 We provide an example model of file system as a plugin, (sparsely) documented in :ref:`plugin_filesystem`.
156
157 **Parent tags:** :ref:`pf_tag_host` |br|
158 **Children tags:** :ref:`pf_tag_prop` |br|
159 **Attributes:**
160
161 :``id``: A name of your choice (must be unique on this host).
162 :``read_bw``: Read bandwidth for this disk. You must specify a unit as follows.
163
164    **Units in bytes and powers of 2** (1 KiBps = 1,024 Bps):
165      Bps, KiBps, MiBps, GiBps, TiBps, PiBps, or EiBps. |br|
166    **Units in bits  and powers of 2** (1 Bps = 8 bps):
167      bps, Kibps, Mibps, Gibps, Tibps, Pibps, or Eibps. |br|
168    **Units in bytes and powers of 10**  (1 KBps = 1,000 Bps):
169      Bps, KBps, MBps, GBps, TBps, PBps, or EBps. |br|
170    **Units in bits  and powers of 10:**
171      bps, Kbps, Mbps, Gbps, Tbps, Pbps, or Ebps.
172
173 :``write_bw``: Write bandwidth for this disk. You must specify a unit as for the read bandwidth.
174
175 .. code-block:: xml
176
177     <host id="alice" speed="1Gf">
178       <disk id="Disk1" read_bw="200MBps" write_bw="80MBps">
179         <!-- you can add properties for anything you want: they are not used by SimGrid -->
180         <prop id="content" value="storage/content/small_content.txt"/>
181       </disk>
182       <prop id="ram" value="100B" />
183     </host>
184
185 -------------------------------------------------------------------------------
186
187 .. _pf_tag_host:
188
189 <host>
190 ------
191
192 A host is the computing resource on which an actor can run. See :cpp:class:`simgrid::s4u::Host`.
193
194 **Parent tags:** :ref:`pf_tag_zone` (only leaf zones, i.e., zones containing neither inner zones nor clusters) |br|
195 **Children tags:** :ref:`pf_tag_mount`, :ref:`pf_tag_prop`, :ref:`pf_tag_disk` |br|
196 **Attributes:**
197
198 :``id``: Host name.
199    Must be unique over the whole platform.
200 :``speed``: Computational power (per core, in flop/s).
201    If you use DVFS, provide a comma-separated list of values for each pstate (see :ref:`howto_dvfs`).
202 :``core``: Amount of cores (default: 1).
203    See :ref:`howto_multicore`.
204 :``availability_file``:
205    File containing the availability profile.
206    Almost every lines of such files describe timed events as ``date ratio``.
207    Example:
208
209    .. code-block:: python
210
211       1 0.5
212       2 0.2
213       5 1
214       LOOPAFTER 5
215
216    - At time t = 1, half of the host computational power (0.5 means 50%) is used to process some background load, hence
217      only 50% of this initial power remains available to your own simulation.
218    - At time t = 2, the available power drops at 20% of the initial value.
219    - At time t = 5, the host can compute at full speed again.
220    - At time t = 10, the profile is reset (as we are 5 seconds after the last event). Then the available speed will drop
221      again to 50% at time t = 11.
222
223    If your profile does not contain any LOOPAFTER line, then it will
224    be executed only once and not repeated.
225
226    .. warning:: Don't get fooled: Bandwidth and Latency profiles of a :ref:`pf_tag_link` contain absolute values, while
227       Availability profiles of a :ref:`pf_tag_host` contain ratios.
228 :``state_file``: File containing the state profile.
229    Almost every lines of such files describe timed events as ``date boolean``.
230    Example:
231
232    .. code-block:: python
233
234       1 0
235       2 1
236       LOOPAFTER 8
237
238    - At time t = 1, the host is turned off (a zero value means OFF)
239    - At time t = 2, the host is turned back on (any other value than zero means ON)
240    - At time t = 10, the profile is reset (as we are 8 seconds after the last event). Then the host will be turned off
241      again at time t = 11.
242
243    If your profile does not contain any LOOPAFTER line, then it will
244    be executed only once and not repeated.
245
246 :``coordinates``: Vivaldi coordinates (meaningful for Vivaldi zones only).
247    See :ref:`pf_tag_peer`.
248 :``pstate``: Initial pstate (default: 0, the first one).
249    See :ref:`howto_dvfs`.
250
251 -------------------------------------------------------------------------------
252
253 .. _pf_tag_link:
254
255 <link>
256 ------
257
258 SimGrid links usually represent one-hop network connections (see :cpp:class:`simgrid::s4u::Link`), i.e., a single wire.
259 They can also be used to abstract a larger network interconnect, e.g., the entire transcontinental network, into a
260 single element. Links are characterized by their bandwidth and latency, and their sharing is realistic wrt TCP connexions.
261 Another unusual point is that SimGrid links can be used to connect more than two elements, just like
262 hyperlinks in an `hypergraph <https://en.wikipedia.org/wiki/Hypergraph>`_.
263
264 **Parent tags:** :ref:`pf_tag_zone` (both leaf zones and inner zones) |br|
265 **Children tags:** :ref:`pf_tag_prop` |br|
266 **Attributes:**
267
268 :``id``:  Link name. Must be unique over the whole platform.
269 :``bandwidth``: Maximum bandwidth for this link. You must specify a unit as follows.
270
271    **Units in bytes and powers of 2** (1 KiBps = 1,024 Bps):
272      Bps, KiBps, MiBps, GiBps, TiBps, PiBps, or EiBps. |br|
273    **Units in bits  and powers of 2** (1 Bps = 8 bps):
274      bps, Kibps, Mibps, Gibps, Tibps, Pibps, or Eibps. |br|
275    **Units in bytes and powers of 10**  (1 KBps = 1,000 Bps):
276      Bps, KBps, MBps, GBps, TBps, PBps, or EBps. |br|
277    **Units in bits  and powers of 10:**
278      bps, Kbps, Mbps, Gbps, Tbps, Pbps, or Ebps.
279
280 :``latency``: Latency for this link (default: 0.0). You must specify a unit as follows.
281
282    ==== =========== ======================
283    Unit Meaning     Duration in seconds
284    ==== =========== ======================
285    ps   picosecond  10⁻¹² = 0.000000000001
286    ns   nanosecond  10⁻⁹ = 0.000000001
287    us   microsecond 10⁻⁶ = 0.000001
288    ms   millisecond 10⁻³ = 0.001
289    s    second      1
290    m    minute      60
291    h    hour        60 * 60
292    d    day         60 * 60 * 24
293    w    week        60 * 60 * 24 * 7
294    ==== =========== ======================
295
296 :``sharing_policy``: Sharing policy for the link. Possible values are ``SHARED``, ``FATPIPE`` or ``SPLITDUPLEX``
297    (default: ``SPLITDUPLEX``).
298
299    If set to ``SPLITDUPLEX``, the link models the full-duplex
300    behavior, as meant in TCP or UDP. To that extend, the link is
301    actually split in two links whose names are suffixed with "_UP" and
302    "_DOWN". You should then specify the direction to use when
303    referring to that link in a :ref:`pf_tag_link_ctn`.
304
305    If set to ``FATPIPE``, flows have no impact on each other, hence
306    each flow can exploit the full bandwidth. This models Internet
307    backbones that cannot get saturated by your application. From your
308    application point of view, there is no congestion on these
309    backbones.
310
311    If set to ``SHARED``, the available bandwidth is fairly shared
312    among ALL flows traversing this link. The resulting link is not
313    full-duplex (as UDP or TCP would be): communications in both
314    directions share the same link. Prefer ``SPLITDUPLEX`` for TCP flows.
315
316 :``bandwidth_file``: File containing the bandwidth profile.
317    Almost every lines of such files describe timed events as ``date
318    bandwidth`` (in bytes per second).
319    Example:
320
321    .. code-block:: python
322
323       4.0 40000000
324       8.0 60000000
325       LOOPAFTER 12.0
326
327    - At time t = 4, the bandwidth is of 40 Mb/s.
328    - At time t = 8, it raises to 60 Mb/s.
329    - At time t = 24, it drops at 40 MBps again.
330
331    If your profile does not contain any LOOPAFTER line, then it will
332    be executed only once and not repeated.
333
334    .. warning:: Don't get fooled: Bandwidth and Latency profiles of a :ref:`pf_tag_link` contain absolute values, while
335       Availability profiles of a :ref:`pf_tag_host` contain ratios.
336
337 :``latency_file``: File containing the latency profile.
338    Almost every lines of such files describe timed events as ``date
339    latency`` (in seconds).
340    Example:
341
342    .. code-block:: python
343
344       1.0 0.001
345       3.0 0.1
346       LOOPAFTER 5.0
347
348    - At time t = 1, the latency is of 1ms (0.001 second)
349    - At time t = 3, the latency is of 100ms (0.1 second)
350    - At time t = 8 (5 seconds after the last event), the profile loops.
351    - At time t = 9 (1 second after the loop reset), the latency is back at 1ms.
352
353    If your profile does not contain any LOOPAFTER line, then it will
354    be executed only once and not repeated.
355
356   .. warning:: Don't get fooled: Bandwidth and Latency profiles of a :ref:`pf_tag_link` contain absolute values, while
357       Availability profiles of a :ref:`pf_tag_host` contain ratios.
358
359 :``state_file``: File containing the state profile. See :ref:`pf_tag_host`.
360
361 -------------------------------------------------------------------------------
362
363 .. _pf_tag_link_ctn:
364
365 <link_ctn>
366 ----------
367
368 An element in a route, representing a previously defined link.
369
370 **Parent tags:** :ref:`pf_tag_route` |br|
371 **Children tags:** none |br|
372 **Attributes:**
373
374 :``id``: Link that is to be included in this route.
375 :``direction``: either ``UP`` (by default) or ``DOWN``, specifying whether to
376                 use the uplink or downlink component of the link (that must
377                 follow the ``SPLITDUPLEX`` sharing policy). |br|
378                 Please refer to the ``sharing_policy`` attribute in
379                 :ref:`pf_tag_link`.
380
381 -------------------------------------------------------------------------------
382
383 .. _pf_tag_peer:
384
385 <peer>
386 ------
387
388 This tag represents a peer, as in Peer-to-Peer (P2P) networks. It is
389 handy to model situations where hosts have an asymmetric
390 connectivity. Computers connected through set-top-boxes usually have a
391 much better download rate than their upload rate.  To model this,
392 <peer> creates and connects several elements: a host, an upload link
393 and a download link.
394
395 **Parent tags:** :ref:`pf_tag_zone` (only with Vivaldi routing) |br|
396 **Children tags:** none |br|
397 **Attributes:**
398
399 :``id``: Name of the host. Must be unique on the whole platform.
400 :``speed``: Computational power (in flop/s).
401
402    If you use DVFS, provide a comma-separated list of values for each pstate (see :ref:`howto_dvfs`).
403 :``bw_in``: Bandwidth of the private downstream link, along with its
404             unit. See :ref:`pf_tag_link`.
405 :``bw_out``: Bandwidth of the private upstream link, along with its
406              unit. See :ref:`pf_tag_link`.
407 :``lat``: Latency of both private links. See :ref:`pf_tag_link`.
408 :``coordinates``: Coordinates of the gateway for this peer.
409
410    The communication latency between a host A = (xA,yA,zA) and a host B = (xB,yB,zB) is computed as follows:
411
412    latency = sqrt( (xA-xB)² + (yA-yB)² ) + zA + zB
413
414    See the documentation of
415    :cpp:class:`simgrid::kernel::routing::VivaldiZone` for details on
416    how the latency is computed from the coordinates, and on how the up
417    and down bandwidth are used.
418 :``availability_file``: File containing the availability profile.
419    See the full description in :ref:`pf_tag_host`
420 :``state_file``: File containing the state profile.
421    See the full description in :ref:`pf_tag_host`
422
423 -------------------------------------------------------------------------------
424
425 .. _pf_tag_platform:
426
427 <platform>
428 ----------
429
430 **Parent tags:** none (this is the root tag of every file) |br|
431 **Children tags:** :ref:`pf_tag_config` (must come first),
432 :ref:`pf_tag_cluster`, :ref:`pf_tag_cabinet`, :ref:`pf_tag_peer`,
433 :ref:`pf_tag_zone`, :ref:`pf_tag_trace`, :ref:`pf_tag_trace_connect`, or
434 :ref:`pf_tag_actor` in :ref:`deployment <deploy>` files. |br|
435 **Attributes:**
436
437 :``version``: Version of the DTD, describing the whole XML format.
438               This versioning allow future evolutions, even if we
439               avoid backward-incompatible changes. The current version
440               is **4.1**. The ``simgrid_update_xml`` program can
441               upgrade most of the past platform files to the most recent
442               formalism.
443
444 -------------------------------------------------------------------------------
445
446 .. _pf_tag_prop:
447
448 <prop>
449 ------
450
451 This tag can be used to attach user-defined properties to some
452 platform elements. Both the name and the value can be any string of
453 your wish. You can use this to pass extra parameters to your code and
454 the plugins.
455
456 From your code, you can interact with these properties using the
457 following functions:
458
459 - Actor: :cpp:func:`simgrid::s4u::Actor::get_property`
460 - Cluster: this is a zone, see below.
461 - Disk: :cpp:func:`simgrid::s4u::Disk::get_property`
462 - Host: :cpp:func:`simgrid::s4u::Host::get_property`
463 - Link: :cpp:func:`simgrid::s4u::Link::get_property`
464 - Zone: :cpp:func:`simgrid::s4u::NetZone::get_property`
465
466 **Parent tags:** :ref:`pf_tag_actor`, :ref:`pf_tag_config`, :ref:`pf_tag_cluster`, :ref:`pf_tag_host`,
467 :ref:`pf_tag_link`, :ref:`pf_tag_disk`,:ref:`pf_tag_zone` |br|
468 **Children tags:** none |br|
469 **Attributes:**
470
471 :``id``: Name of the defined property.
472 :``value``: Value of the defined property.
473
474 -------------------------------------------------------------------------------
475
476 .. _pf_tag_route:
477
478 <route>
479 -------
480
481 A path between two network locations, composed of several occurrences of :ref:`pf_tag_link`. It is only relevant for
482 intra-:ref:`pf_tag_zone` routes. Inter-zone routes must be declared with :ref:`pf_tag_zoneRoute`. More detail can be
483 found in the following sections :ref:`pf_routes` and :ref:`pf_route_usage`.
484
485 **Parent tags:** :ref:`pf_tag_zone` |br|
486 **Children tags:** :ref:`pf_tag_link_ctn` |br|
487 **Attributes:**
488
489 :``src``: Host from which this route starts. Must be the name of an existing host.
490 :``dst``: Host to which this route leads. Must be the name of an existing host.
491 :``symmetrical``: Whether this route is symmetrical, ie, whether we
492                   are defining the route ``dst -> src`` at the same
493                   time. Valid values: ``yes``, ``no``, ``YES``, ``NO``
494                   (default: YES).
495
496 -------------------------------------------------------------------------------
497
498 .. _pf_tag_router:
499
500 <router>
501 --------
502
503 A router is similar to a :ref:`pf_tag_host`, but it cannot contain any actor. It is only useful to some routing
504 algorithms. In particular, they are useful when you want to use the NS3 bindings to break the routes that are longer
505 than 1 hop.
506
507 **Parent tags:** :ref:`pf_tag_zone` (only leaf zones, i.e., zones containing neither inner zones nor clusters) |br|
508 **Attributes:**
509
510 :``id``: Router name.
511    No other host or router may have the same name over the whole platform.
512 :``coordinates``: Vivaldi coordinates. See :ref:`pf_tag_peer`.
513
514 -------------------------------------------------------------------------------
515
516 .. _pf_tag_zone:
517
518 <zone>
519 ------
520
521 A networking zone is an area in which elements are located. See :cpp:class:`simgrid::s4u::NetZone`.
522
523 **Parent tags:** :ref:`pf_tag_platform`, :ref:`pf_tag_zone` (only internal nodes, i.e., zones
524 containing only inner zones or clusters but no basic
525 elements such as host or peer) |br|
526 **Children tags (if internal zone):** :ref:`pf_tag_cluster`, :ref:`pf_tag_link`, :ref:`pf_tag_zone` |br|
527 **Children tags (if leaf zone):** :ref:`pf_tag_host`, :ref:`pf_tag_link`, :ref:`pf_tag_peer` |br|
528 **Attributes:**
529
530 :``id``: Zone name.
531    No other zone may have the same name over the whole platform.
532 :``routing``: Routing algorithm to use.
533
534 -------------------------------------------------------------------------------
535
536 .. _pf_tag_zoneRoute:
537
538 <zoneRoute>
539 -----------
540
541 All information to factorize the routes between two zones; intra-zone paths must be declared with :ref:`pf_tag_route`.
542 Since zones form a tree, :ref:`pf_tag_zoneRoute` is probably best used to connect sibling zones.
543
544 When declaring a zoneRoute, you must give the source and destination zones, along with the gateway in each zone (i.e.,
545 the point to reach within that zone to reach the declared route), and the list of links to go from one zone to another.
546 More detail can be found in the following sections :ref:`pf_routes` and :ref:`pf_route_usage`.
547
548 **Parent tags:** :ref:`pf_tag_zone` |br|
549 **Children tags:** :ref:`pf_tag_link_ctn` |br|
550 **Attributes:**
551
552 :``src``: Zone from which this route starts. Must be an existing zone.
553 :``dst``: Zone to which this route leads. Must be an existing zone.
554 :``gw_src``: Netpoint (within src zone) from which this route starts. Must be an existing host/router.
555 :``gw_dst``: Netpoint (within dst zone) to which this route leads. Must be an existing host/router.
556 :``symmetrical``: Whether this route is symmetrical, ie, whether we are defining the route ``dst -> src`` at the same
557                   time. Valid values: ``yes``, ``no``, ``YES``, ``NO``. 
558
559 -------------------------------------------------------------------------------
560
561 Advanced tags
562 -------------
563
564 The following list contains some tags that are less often used. They are still valid, but unless you know what you are
565 doing, there is a good chance that you don't really want to use them.
566
567
568 -------------------------------------------------------------------------------
569
570 .. _pf_tag_bypassRoute:
571
572 <bypassRoute>
573 ^^^^^^^^^^^^^
574
575 This tag can be used to completely bypass the classical :ref:`routing algorithm <pf_route_usage>` for a pair of hosts. The
576 provided list of links will be used directly, with no further routing computation. This is an advanced tag that is rarely
577 used in practice.
578
579 **Parent tags:** :ref:`pf_tag_zone` |br|
580 **Children tags:** :ref:`pf_tag_link_ctn` |br|
581 **Attributes:**
582
583 :``src``: Host from which this route starts. Must be the name of an existing host.
584 :``dst``: Host to which this route leads. Must be the name of an existing host.
585 :``symmetrical``: Whether this route is symmetrical, ie, whether we are defining the route ``dst -> src`` at the same time.
586                   Valid values: ``yes``, ``no``, ``YES``, ``NO`` (default: YES).
587
588 -------------------------------------------------------------------------------
589
590 .. _pf_tag_bypassZoneRoute:
591
592 <bypassZoneRoute>
593 ^^^^^^^^^^^^^^^^^
594
595 This tag can be used to completely bypass the classical :ref:`routing algorithm <pf_route_usage>` between two zones. When
596 provided, it breaks the recursive search and the provided links will be used instead. This tag should probably be reserved
597 to experts.
598
599 **Parent tags:** :ref:`pf_tag_zone` |br|
600 **Children tags:** :ref:`pf_tag_link_ctn` |br|
601 **Attributes:**
602
603 :``src``: Zone from which this route starts. Must be an existing zone.
604 :``dst``: Zone to which this route leads. Must be an existing zone.
605 :``gw_src``: Netpoint (within src zone) from which this route starts. Must be an existing host/router.
606 :``gw_dst``: Netpoint (within dst zone) to which this route leads. Must be an existing host/router.
607 :``symmetrical``: Whether this route is symmetrical, ie, whether we are defining the route ``dst -> src`` at the same
608                   time. Valid values: ``yes``, ``no``, ``YES``, ``NO``. 
609
610 -------------------------------------------------------------------------------
611
612 .. _pf_tag_backbone:
613
614 <backbone>
615 ^^^^^^^^^^
616
617 Within a manually-built cluster, specify the backbone to use. See the documentation of :ref:`pf_tag_cabinet` for all
618 details, even if you should probably stop using this tag and switch to the C++ interface.
619
620 **Parent tags:** :ref:`pf_tag_zone` with ``routing="Cluster"`` attribute |br|
621 **Children tags:** none |br|
622 **Attributes:**
623
624 :``id``: No other link in the platform shall have the same identifier.
625 :``bw``: Bandwidth, see the :ref:`pf_tag_link` for syntax/details.
626 :``lat``: Latency, see the :ref:`pf_tag_link` for syntax/details.
627
628 -------------------------------------------------------------------------------
629
630 .. _pf_tag_cabinet:
631
632 <cabinet>
633 ^^^^^^^^^
634
635 The cabinet tag is a shortcut for creating a set of (homogenous) hosts and links quickly, as in cabinets of data centers.
636 This is mostly useful when manually describing a cluster, i.e. a ``<zone routing="Cluster">`` where you manually specify
637 the content with :ref:`pf_tag_cabinet`, :ref:`pf_tag_backbone` and maybe :ref:`pf_tag_host_link`.
638
639 But this approach is somewhat deprecated now, as the C++ interface is both more convinient and more powerful. For example,
640 the core amount or link characteristics cannot be changed with this tag.
641
642 **Parent tags:** :ref:`pf_tag_zone` with ``routing="Cluster"`` attribute |br|
643 **Children tags:** none |br|
644 **Attributes:**
645
646 :``id``: The identifier of the cabinet. Facilitates referring to it.
647 :``prefix``: Each node of the cabinet has to have a name. This name will be prefixed with this prefix.
648 :``suffix``: Each node of the cabinet will be suffixed with this suffix.
649 :``radical``: Regexp used to generate cabinet nodes name.
650     Syntax: "10-20" will give you 11 machines numbered from 10 to 20, "10-20;2" will give you 12 machines, one with the number 2, others numbered as before.
651
652     The produced number is concatenated between prefix and suffix to form machine names.
653 :``speed``: Same as the ``speed`` attribute of the :ref:`pf_tag_host` tag.
654 :``bw``: Bandwidth for the links between nodes and backbone (if any). See the :ref:`pf_tag_link` for syntax/details.
655 :``lat``: Latency for the links between nodes and backbone (if any). See the :ref:`pf_tag_link` for syntax/details.
656
657 **Example**
658
659 .. literalinclude:: ../../examples/platforms/meta_cluster.xml
660
661 The hosts generated in the above example are named host-1.cluster, host-2.cluster1
662 etc.
663
664 -------------------------------------------------------------------------------
665
666 .. _pf_tag_host_link:
667
668 <host_link>
669 ^^^^^^^^^^^
670
671 Specify the up and down private links of a given host, which must be in a Cluster zone.
672
673 **Parent tags:** :ref:`pf_tag_zone` with ``routing="Cluster"`` attribute |br|
674 **Children tags:** none |br|
675 **Attributes:**
676
677 :``id``: Identifier of the host to be connected.
678 :``up``: Link id to be used for the outgoing communications.
679 :``down``: Link id to be used for the incoming communications.
680
681
682 .. |br| raw:: html
683      
684    <br />