File: dogbone.xml

package info (click to toggle)
simgrid 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,192 kB
  • sloc: cpp: 124,913; ansic: 66,744; python: 8,560; java: 6,773; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,194; perl: 1,436; makefile: 111; lisp: 49; javascript: 7; sed: 6
file content (73 lines) | stat: -rw-r--r-- 2,085 bytes parent folder | download | duplicates (4)
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
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">

<!-- Describe a dogbone graph, with 4 hosts:
  -
  -  S1 ___[ 1 ]___                 ___[ 3 ]___ C1
  -                \               /
  -                 R1 __[ 2 ]__ R2
  -                /               \
  -  S2 ___[ 4 ]__/                 \__[ 5 ]___ C2
  -
  -  This platform is a valid ns-3 platform, even if it exhibits routes of length >1,
  -  because when you only keep the routes of length 1,
  -  you get a graph where every host can speak to any other host.
  -
  -  For example, S1__C1 is (l1,l2,l3) of length >1
  -  But it's also S1__C1 = S1__R1, R1__R2, R2__C1 which are all of length 1
  -
  -  https://simgrid.org/doc/latest/ns3.html
  -->

<platform version="4.1">
  <zone  id="AS0"  routing="Full">
    <host id="S1" speed="1Gf"/>
    <host id="C1" speed="1Gf"/>
    <host id="S2" speed="1Gf"/>
    <host id="C2" speed="1Gf"/>
    <router id="R1"/>
    <router id="R2"/>

    <link id="1" bandwidth="100MBps" latency="10ms"/>
    <link id="2" bandwidth="100MBps" latency="10ms"/>
    <link id="3" bandwidth="100MBps" latency="10ms"/>
    <link id="4" bandwidth="100MBps" latency="10ms"/>
    <link id="5" bandwidth="100MBps" latency="10ms"/>

    <route src="S1" dst="C1">
      <link_ctn id="1"/>
      <link_ctn id="2"/>
      <link_ctn id="3"/>
    </route>
    <route src="S2" dst="C2">
      <link_ctn id="4"/>
      <link_ctn id="2"/>
      <link_ctn id="5"/>
    </route>
    <route src="S1" dst="C2">
      <link_ctn id="1"/>
      <link_ctn id="2"/>
      <link_ctn id="5"/>
    </route>
    <route src="S2" dst="C1">
      <link_ctn id="4"/>
      <link_ctn id="2"/>
      <link_ctn id="3"/>
    </route>
    <route src="S1" dst="R1">
      <link_ctn id="1"/>
    </route>
    <route src="R1" dst="R2">
      <link_ctn id="2"/>
    </route>
    <route src="R2" dst="C1">
      <link_ctn id="3"/>
    </route>
    <route src="S2" dst="R1">
      <link_ctn id="4"/>
    </route>
    <route src="R2" dst="C2">
      <link_ctn id="5"/>
    </route>
  </zone>
</platform>